@openremote/or-attribute-picker 1.32.0 → 1.32.2
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 ORAttributePicker;(()=>{var e={3260(e){"use strict";let t=(async function(){
|
|
|
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 or(e,t,n){return e?t(e):n?.(e)}eM(oo),n(4532),(fh=hx||(hx={})).CREATE="CREATE",fh.UPDATE="UPDATE",fh.DELETE="DELETE",fh.DELETE_FINISHED="DELETE_FINISHED",(fp=hw||(hw={})).LOW="LOW",fp.MEDIUM="MEDIUM",fp.HIGH="HIGH",(fb=hk||(hk={})).MANUAL="MANUAL",fb.CLIENT="CLIENT",fb.GLOBAL_RULESET="GLOBAL_RULESET",fb.REALM_RULESET="REALM_RULESET",fb.ASSET_RULESET="ASSET_RULESET",fb.AGENT="AGENT",(f_=hE||(hE={})).OPEN="OPEN",f_.ACKNOWLEDGED="ACKNOWLEDGED",f_.IN_PROGRESS="IN_PROGRESS",f_.RESOLVED="RESOLVED",f_.CLOSED="CLOSED",(fg=hA||(hA={})).BOTTOM_LEFT="BOTTOM_LEFT",fg.BOTTOM_RIGHT="BOTTOM_RIGHT",fg.TOP_LEFT="TOP_LEFT",fg.TOP_RIGHT="TOP_RIGHT",(fv=hC||(hC={})).CREATE="CREATE",fv.READ="READ",fv.UPDATE="UPDATE",fv.DELETE="DELETE",(fy=hT||(hT={})).NONE="NONE",fy.FORECAST="FORECAST",fy.SETPOINT="SETPOINT",(fF=hL||(hL={})).DISCONNECTED="DISCONNECTED",fF.CONNECTING="CONNECTING",fF.DISCONNECTING="DISCONNECTING",fF.CONNECTED="CONNECTED",fF.DISABLED="DISABLED",fF.WAITING="WAITING",fF.ERROR="ERROR",fF.STOPPED="STOPPED",(fx=hM||(hM={})).REQUEST_START="REQUEST_START",fx.REQUEST_REPEATING="REQUEST_REPEATING",fx.REQUEST_CANCEL="REQUEST_CANCEL",fx.READY="READY",fx.COMPLETED="COMPLETED",fx.RUNNING="RUNNING",fx.CANCELLED="CANCELLED",(fw=hD||(hD={})).TOGGLE="TOGGLE",fw.INCREMENT="INCREMENT",fw.DECREMENT="DECREMENT",fw.NEGATE="NEGATE",(fk=hS||(hS={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",fk.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",fk.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",fk.INVALID_VALUE="INVALID_VALUE",fk.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",fk.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",fk.CANNOT_PROCESS="CANNOT_PROCESS",fk.QUEUE_FULL="QUEUE_FULL",fk.UNKNOWN="UNKNOWN",fk.ASSET_ID_MISSING="ASSET_ID_MISSING",fk.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(fE=hI||(hI={})).PUBLIC="PUBLIC",fE.SHARED="SHARED",fE.PRIVATE="PRIVATE",(fA=hO||(hO={})).OFF="OFF",fA.ONE_MIN="ONE_MIN",fA.FIVE_MIN="FIVE_MIN",fA.QUARTER="QUARTER",fA.ONE_HOUR="ONE_HOUR",(fC=hY||(hY={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",fC.KEEP_LAYOUT="KEEP_LAYOUT",fC.REDIRECT="REDIRECT",fC.BLOCK_DEVICE="BLOCK_DEVICE",(fT=hR||(hR={})).CSV="CSV",fT.CSV_CROSSTAB="CSV_CROSSTAB",fT.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(fL=hN||(hN={})).MINUTE="MINUTE",fL.HOUR="HOUR",fL.DAY="DAY",fL.WEEK="WEEK",fL.MONTH="MONTH",fL.YEAR="YEAR",(fM=hP||(hP={})).MIN="MIN",fM.AVG="AVG",fM.MAX="MAX",fM.DIFFERENCE="DIFFERENCE",fM.COUNT="COUNT",fM.SUM="SUM",fM.MODE="MODE",fM.MEDIAN="MEDIAN",(fD=hB||(hB={})).TERMINATING="TERMINATING",fD.DISABLED="DISABLED",fD.ALREADY_CONNECTED="ALREADY_CONNECTED",fD.UNRECOGNISED="UNRECOGNISED",fD.PERMANENT_ERROR="PERMANENT_ERROR",fD.SYNC_ERROR="SYNC_ERROR",(fS=hj||(hj={})).HTTPS="HTTPS",fS.HTTP="HTTP",fS.TCP="TCP",(fI=hH||(hH={})).GET="GET",fI.POST="POST",fI.PUT="PUT",fI.DELETE="DELETE",fI.OPTIONS="OPTIONS",fI.PATCH="PATCH",(fO=hz||(hz={})).KEYCLOAK="KEYCLOAK",fO.NONE="NONE",(fY=hU||(hU={})).WEBSOCKET="WEBSOCKET",fY.POLLING="POLLING",(fR=h$||(h$={})).INTERNAL="INTERNAL",fR.CLIENT="CLIENT",fR.GLOBAL_RULESET="GLOBAL_RULESET",fR.REALM_RULESET="REALM_RULESET",fR.ASSET_RULESET="ASSET_RULESET",(fN=hV||(hV={})).REALM="REALM",fN.USER="USER",fN.ASSET="ASSET",fN.CUSTOM="CUSTOM",(fP=hW||(hW={})).NORMAL="NORMAL",fP.HIGH="HIGH",(fB=hq||(hq={})).DEVICE="DEVICE",fB.TOPIC="TOPIC",fB.CONDITION="CONDITION",(fj=hG||(hG={})).ALWAYS="ALWAYS",fj.ONCE="ONCE",fj.HOURLY="HOURLY",fj.DAILY="DAILY",fj.WEEKLY="WEEKLY",fj.MONTHLY="MONTHLY",fj.ANNUALLY="ANNUALLY",(fH=hK||(hK={})).TITLE="TITLE",fH.SOURCE="SOURCE",fH.STATUS="STATUS",fH.SENT_ON="SENT_ON",fH.DELIVERED_ON="DELIVERED_ON",(fz=hX||(hX={})).MESSAGE_INVALID="MESSAGE_INVALID",fz.CERTIFICATE_INVALID="CERTIFICATE_INVALID",fz.UNAUTHORIZED="UNAUTHORIZED",fz.FORBIDDEN="FORBIDDEN",fz.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",fz.CONFIG_DISABLED="CONFIG_DISABLED",fz.USER_DISABLED="USER_DISABLED",fz.SERVER_ERROR="SERVER_ERROR",fz.ASSET_ERROR="ASSET_ERROR",fz.SERVER_BUSY="SERVER_BUSY",(fU=hJ||(hJ={})).PRIVATE="PRIVATE",fU.PROTECTED="PROTECTED",fU.PUBLIC="PUBLIC",(f$=hQ||(hQ={})).EXACT="EXACT",f$.BEGIN="BEGIN",f$.END="END",f$.CONTAINS="CONTAINS",(fV=hZ||(hZ={})).EQUALS="EQUALS",fV.GREATER_THAN="GREATER_THAN",fV.GREATER_EQUALS="GREATER_EQUALS",fV.LESS_THAN="LESS_THAN",fV.LESS_EQUALS="LESS_EQUALS",fV.BETWEEN="BETWEEN",(fW=h0||(h0={})).CREATED_ON="CREATED_ON",fW.NAME="NAME",fW.ASSET_TYPE="ASSET_TYPE",fW.PARENT_ID="PARENT_ID",fW.REALM="REALM",(fq=h1||(h1={})).RESTRICTED="RESTRICTED",fq.LINKED="LINKED",fq.REALM="REALM",(fG=h2||(h2={})).AT_LEAST_ONE="AT_LEAST_ONE",fG.ALL="ALL",fG.NONE="NONE",(fK=h5||(h5={})).AND="AND",fK.OR="OR",(fX=h4||(h4={})).CREATED_ON="CREATED_ON",fX.FIRST_NAME="FIRST_NAME",fX.LAST_NAME="LAST_NAME",fX.USERNAME="USERNAME",fX.EMAIL="EMAIL",(fJ=h3||(h3={})).STOPPED="STOPPED",fJ.RUNNING="RUNNING",fJ.ERROR="ERROR",(fQ=h6||(h6={})).JAVASCRIPT="JAVASCRIPT",fQ.GROOVY="GROOVY",fQ.JSON="JSON",fQ.FLOW="FLOW",(fZ=h7||(h7={})).READY="READY",fZ.DEPLOYED="DEPLOYED",fZ.COMPILATION_ERROR="COMPILATION_ERROR",fZ.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",fZ.EXECUTION_ERROR="EXECUTION_ERROR",fZ.LOOP_ERROR="LOOP_ERROR",fZ.DISABLED="DISABLED",fZ.PAUSED="PAUSED",fZ.EXPIRED="EXPIRED",fZ.REMOVED="REMOVED",fZ.EMPTY="EMPTY",(f0=h8||(h8={})).SUNRISE="SUNRISE",f0.SUNSET="SUNSET",f0.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",f0.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",f0.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",f0.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",f0.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",f0.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",f0.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",f0.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",f0.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",f0.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",f0.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",f0.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",f0.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",f0.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",f0.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",f0.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",f0.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",f0.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(f1=h9||(h9={})).NUMBER="NUMBER",f1.NUMBER_ARRAY="NUMBER_ARRAY",f1.STRING="STRING",f1.BOOLEAN="BOOLEAN",f1.TRIGGER="TRIGGER",f1.COLOR="COLOR",f1.ANY="ANY",(f2=pe||(pe={})).NEW_LINE="NEW_LINE",f2.SPACER="SPACER",(f5=pt||(pt={})).INPUT="INPUT",f5.PROCESSOR="PROCESSOR",f5.OUTPUT="OUTPUT",f5.THEN="THEN",(f4=pn||(pn={})).TEXT="TEXT",f4.MULTILINE="MULTILINE",f4.NUMBER="NUMBER",f4.DROPDOWN="DROPDOWN",f4.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",f4.CHECKBOX="CHECKBOX",f4.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",f4.COLOR="COLOR",f4.DATE="DATE",(f3=pi||(pi={})).ADD="ADD",f3.ADD_OR_REPLACE="ADD_OR_REPLACE",f3.REPLACE="REPLACE",f3.DELETE="DELETE",f3.CLEAR="CLEAR",(f6=po||(po={})).PER_ASSET="PER_ASSET",f6.GLOBAL="GLOBAL",(f7=pr||(pr={})).READ_ADMIN="read:admin",f7.READ_LOGS="read:logs",f7.READ_USERS="read:users",f7.READ_MAP="read:map",f7.READ_ASSETS="read:assets",f7.READ_RULES="read:rules",f7.READ_INSIGHTS="read:insights",f7.READ_ALARMS="read:alarms",f7.READ_NOTIFICATIONS="read:notifications",f7.READ_SERVICES="read:services",f7.READ_TUNNELS="read:tunnels",f7.WRITE_SERVICES="write:services",f7.WRITE_USER="write:user",f7.WRITE_ADMIN="write:admin",f7.WRITE_LOGS="write:logs",f7.WRITE_ASSETS="write:assets",f7.WRITE_ATTRIBUTES="write:attributes",f7.WRITE_RULES="write:rules",f7.WRITE_INSIGHTS="write:insights",f7.WRITE_ALARMS="write:alarms",f7.WRITE_NOTIFICATIONS="write:notifications",f7.WRITE_TUNNELS="write:tunnels",f7.READ="read",f7.WRITE="write",(f8=pa||(pa={})).REGISTER="REGISTER",f8.UPDATE="UPDATE",f8.DEREGISTER="DEREGISTER",(f9=ps||(ps={})).AVAILABLE="AVAILABLE",f9.UNAVAILABLE="UNAVAILABLE",(he=pl||(pl={})).ASSET="ASSET",he.AGENT="AGENT",he.NOTIFICATION="NOTIFICATION",he.ALARM="ALARM",he.RULES="RULES",he.PROTOCOL="PROTOCOL",he.GATEWAY="GATEWAY",he.MODEL_AND_VALUES="MODEL_AND_VALUES",he.API="API",he.DATA="DATA",(ht=pd||(pd={})).INFO="INFO",ht.WARN="WARN",ht.ERROR="ERROR",(hn=pc||(pc={})).NUMERIC="numeric",hn.DIGIT_2="2-digit",hn.FULL="full",hn.LONG="long",hn.MEDIUM="medium",hn.SHORT="short",hn.NARROW="narrow",(hi=pm||(pm={})).SECONDLY="SECONDLY",hi.MINUTELY="MINUTELY",hi.HOURLY="HOURLY",hi.DAILY="DAILY",hi.WEEKLY="WEEKLY",hi.MONTHLY="MONTHLY",hi.YEARLY="YEARLY",(ho=pu||(pu={})).OMIT="OMIT",ho.BACKWARD="BACKWARD",ho.FORWARD="FORWARD",(hr=pf||(pf={})).JAPANESE="JAPANESE",hr.BUDDHIST="BUDDHIST",hr.ROC="ROC",hr.ISLAMIC="ISLAMIC",hr.ISO8601="ISO8601",hr.CHINESE="CHINESE",hr.ETHIOPIC="ETHIOPIC",hr.HEBREW="HEBREW",hr.GREGORIAN="GREGORIAN",(ha=ph||(ph={})).SU="SU",ha.MO="MO",ha.TU="TU",ha.WE="WE",ha.TH="TH",ha.FR="FR",ha.SA="SA",(hs=pp||(pp={})).PEOPLECOUNTERASSET="PeopleCounterAsset",hs.MAILAGENT="MailAgent",hs.UDPAGENT="UDPAgent",hs.ROOMASSET="RoomAsset",hs.CITYASSET="CityAsset",hs.VENTILATIONASSET="VentilationAsset",hs.TRADFRILIGHTASSET="TradfriLightAsset",hs.CONSOLEASSET="ConsoleAsset",hs.PRESENCESENSORASSET="PresenceSensorAsset",hs.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",hs.LIGHTASSET="LightAsset",hs.KNXAGENT="KNXAgent",hs.THETHINGSSTACKAGENT="TheThingsStackAgent",hs.PLUGASSET="PlugAsset",hs.CHIRPSTACKAGENT="ChirpStackAgent",hs.WEATHERASSET="WeatherAsset",hs.THINGASSET="ThingAsset",hs.WEBSOCKETAGENT="WebsocketAgent",hs.TCPAGENT="TCPAgent",hs.GATEWAYASSET="GatewayAsset",hs.SERIALAGENT="SerialAgent",hs.BLUETOOTHMESHAGENT="BluetoothMeshAgent",hs.PARKINGASSET="ParkingAsset",hs.TRADFRIPLUGASSET="TradfriPlugAsset",hs.SIMULATORAGENT="SimulatorAgent",hs.SNMPAGENT="SNMPAgent",hs.GROUPASSET="GroupAsset",hs.BUILDINGASSET="BuildingAsset",hs.MODBUSSERIALAGENT="ModbusSerialAgent",hs.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",hs.MQTTAGENT="MQTTAgent",hs.VELBUSTCPAGENT="VelbusTCPAgent",hs.ARTNETLIGHTASSET="ArtnetLightAsset",hs.VELBUSSERIALAGENT="VelbusSerialAgent",hs.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",hs.MICROPHONEASSET="MicrophoneAsset",hs.MODBUSTCPAGENT="ModbusTcpAgent",hs.ZWAVEAGENT="ZWaveAgent",hs.HTTPAGENT="HTTPAgent",hs.DOORASSET="DoorAsset",hs.THERMOSTATASSET="ThermostatAsset",hs.SHIPASSET="ShipAsset",(hl=pb||(pb={})).COLOURRGB="colourRGB",hl.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",hl.PRICEHOURLY="priceHourly",hl.MQTTPORT="MQTTPort",hl.PINGDISABLED="pingDisabled",hl.FLOW="flow",hl.CHILDASSETTYPE="childAssetType",hl.LASTACCESS="lastAccess",hl.POSITION="position",hl.NETWORKKEY="networkKey",hl.UNIVERSE="universe",hl.ROUTINGMODE="routingMode",hl.MSSINUMBER="MSSINumber",hl.LASTWILLRETAIN="lastWillRetain",hl.LASTWILLTOPIC="lastWillTopic",hl.SERIALBAUDRATE="serialBaudrate",hl.SUBSCRIBEQOS="subscribeQos",hl.LEDCOUNT="lEDCount",hl.LOCKED="locked",hl.CLOUDCOVERAGE="cloudCoverage",hl.BASEURL="baseURL",hl.PROTOCOL="protocol",hl.REQUIREDVALUES="requiredValues",hl.REGION="region",hl.CONSOLEPLATFORM="consolePlatform",hl.GATEWAYSTATUS="gatewayStatus",hl.NO2LEVEL="NO2Level",hl.ATMOSPHERICPRESSURE="atmosphericPressure",hl.SERIALPORT="serialPort",hl.APPLICATIONID="applicationId",hl.TAGS="tags",hl.UNLOCK="unlock",hl.CHECKINTERVALSECONDS="checkIntervalSeconds",hl.LOCATION="location",hl.CLIENTSECRET="clientSecret",hl.WINDDIRECTION="windDirection",hl.WINDSPEED="windSpeed",hl.PARTICLESPM10="particlesPM10",hl.APPLICATIONKEY="applicationKey",hl.LENGTH="length",hl.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",hl.USERNAMEPASSWORD="usernamePassword",hl.WATERLEVEL="waterLevel",hl.CONNECTHEADERS="connectHeaders",hl.CONSOLENAME="consoleName",hl.WEBSOCKETQUERY="websocketQuery",hl.PREFERHTML="preferHTML",hl.PARITY="parity",hl.COOLING="cooling",hl.POLLINGMILLIS="pollingMillis",hl.SOILTEMPERATURE="soilTemperature",hl.SUNIRRADIANCE="sunIrradiance",hl.MESSAGEMAXLENGTH="messageMaxLength",hl.WINDGUSTSPEED="windGustSpeed",hl.LIGHTID="lightId",hl.PROXYADDRESS="proxyAddress",hl.REQUESTQUERYPARAMETERS="requestQueryParameters",hl.MQTTHOST="MQTTHost",hl.SECUREGRPC="secureGRPC",hl.MODEL="model",hl.STREET="street",hl.MANUFACTURER="manufacturer",hl.DELETEPROCESSEDMAIL="deleteProcessedMail",hl.RESUMESESSION="resumeSession",hl.ONOFF="onOff",hl.APIKEY="ApiKey",hl.CITY="city",hl.PRESENCE="presence",hl.SPACESOCCUPIED="spacesOccupied",hl.STARTTLS="startTLS",hl.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",hl.WEBSOCKETPATH="websocketPath",hl.AGENTSTATUS="agentStatus",hl.PRICEDAILY="priceDaily",hl.COUNTGROWTHMINUTE="countGrowthMinute",hl.IMONUMBER="IMONumber",hl.ATTRIBUTION="Attribution",hl.TENANTID="tenantId",hl.REQUESTHEADERS="requestHeaders",hl.HOST="host",hl.COUNTOUTMINUTE="countOutMinute",hl.MESSAGECHARSET="messageCharset",hl.CERTIFICATEALIAS="certificateAlias",hl.EMAIL="email",hl.BINDPORT="bindPort",hl.CONSOLEVERSION="consoleVersion",hl.PARTICLESPM1="particlesPM1",hl.MTU="mtu",hl.SPEED="speed",hl.MESSAGESTRIPDELIMITER="messageStripDelimiter",hl.AREA="area",hl.COUNTRY="country",hl.SHIPTYPE="shipType",hl.CONNECTSUBSCRIPTIONS="connectSubscriptions",hl.RELATIVEHUMIDITY="relativeHumidity",hl.SOURCEADDRESS="sourceAddress",hl.RAINFALL="rainfall",hl.OAUTHGRANT="oAuthGrant",hl.OZONELEVEL="ozoneLevel",hl.SEQUENCENUMBER="sequenceNumber",hl.COUNTINMINUTE="countInMinute",hl.PORT="port",hl.SUNALTITUDE="sunAltitude",hl.COUNTOUT="countOut",hl.ROOMNUMBER="roomNumber",hl.TUNNELINGSUPPORTED="tunnelingSupported",hl.ENINUMBER="ENINumber",hl.PARTICLESPM2_5="particlesPM2_5",hl.AGENTDISABLED="agentDisabled",hl.DISABLED="disabled",hl.COUNTIN="countIn",hl.MESSAGESOURCEADDRESS="messageSourceAddress",hl.PROVISIONWEATHERASSET="ProvisionWeatherAsset",hl.TIMEINJECTIONINTERVAL="timeInjectionInterval",hl.TEMPERATURESETPOINT="temperatureSetpoint",hl.CONSOLEPROVIDERS="consoleProviders",hl.COUNTTOTAL="countTotal",hl.SPACESBUFFER="spacesBuffer",hl.DEVICECONFIG="deviceConfig",hl.SPACESTOTAL="spacesTotal",hl.BINDHOST="bindHost",hl.FANSPEED="fanSpeed",hl.MESSAGECONVERTBINARY="messageConvertBinary",hl.NOTES="notes",hl.MAILFOLDERNAME="mailFolderName",hl.MESSAGEDELIMITERS="messageDelimiters",hl.TEMPERATURE="temperature",hl.SUNZENITH="sunZenith",hl.SNMPVERSIONVALUE="SNMPVersionValue",hl.BRIGHTNESS="brightness",hl.POSTALCODE="postalCode",hl.SPACESOPEN="spacesOpen",hl.HUMIDITY="humidity",hl.SOUNDLEVEL="soundLevel",hl.SECUREMODE="secureMode",hl.DIRECTION="direction",hl.STOPBITS="stopbits",hl.UVINDEX="uVIndex",hl.CONNECTURL="connectURL",hl.CLIENTID="clientId",hl.NATMODE="NATMode",hl.UPDATEONWRITE="updateOnWrite",hl.LASTWILLPAYLOAD="lastWillPayload",hl.GROUPID="groupId",hl.FOLLOWREDIRECTS="followRedirects",hl.SUNAZIMUTH="sunAzimuth",hl.MESSAGECONVERTHEX="messageConvertHex",hl.WEBSOCKETMODE="websocketMode",hl.COLOURTEMPERATURE="colourTemperature",hl.PUBLISHQOS="publishQos",hl.DATABITS="dataBits",(hd=p_||(p_={})).FORMAT="format",hd.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",hd.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",hd.SECRET="secret",hd.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",hd.ATTRIBUTELINKS="attributeLinks",hd.RULERESETIMMEDIATE="ruleResetImmediate",hd.RULESTATE="ruleState",hd.AGENTLINKCONFIG="agentLinkConfig",hd.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",hd.FORECAST="forecast",hd.STOREDATAPOINTS="storeDataPoints",hd.LABEL="label",hd.CONSTRAINTS="constraints",hd.UNITS="units",hd.USERCONNECTED="userConnected",hd.SHOWONDASHBOARD="showOnDashboard",hd.READONLY="readOnly",hd.MULTILINE="multiline",hd.ACCESSPUBLICWRITE="accessPublicWrite",hd.MOMENTARY="momentary",hd.AGENTLINK="agentLink",hd.ACCESSRESTRICTEDREAD="accessRestrictedRead",hd.ACCESSPUBLICREAD="accessPublicRead",(hc=pg||(pg={})).ASSETQUERY="assetQuery",hc.WSURL="WS_URL",hc.COLOURRGB="colourRGB",hc.VALUEFORMAT="valueFormat",hc.TEXT="text",hc.BYTE="byte",hc.USERNAMEANDPASSWORD="usernameAndPassword",hc.HTTPURL="HTTP_URL",hc.ATTRIBUTELINK="attributeLink",hc.ASSETID="assetID",hc.NUMBERMAP="numberMap",hc.HTTPMETHOD="HTTPMethod",hc.ATTRIBUTESTATE="attributeState",hc.POSITIVENUMBER="positiveNumber",hc.POSITIVEINTEGER="positiveInteger",hc.EXECUTIONSTATUS="executionStatus",hc.BIGINTEGER="bigInteger",hc.VALUEDESCRIPTOR="valueDescriptor",hc.PERIODDURATIONISO8601="periodDurationISO8601",hc.LONG="long",hc.DATEANDTIME="dateAndTime",hc.BOOLEANMAP="booleanMap",hc.MQTTQOS="MQTTQos",hc.NEGATIVEINTEGER="negativeInteger",hc.TCPIPPORTNUMBER="TCP_IPPortNumber",hc.GEOJSONPOINT="GEO_JSONPoint",hc.SNMPVERSION="SNMPVersion",hc.ASSETTYPE="assetType",hc.JSONOBJECT="JSONObject",hc.INTEGERMAP="integerMap",hc.BIGNUMBER="bigNumber",hc.IPADDRESS="IPAddress",hc.EMAIL="email",hc.TIMESTAMP="timestamp",hc.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",hc.ATTRIBUTEREFERENCE="attributeReference",hc.UUID="UUID",hc.INTEGER="integer",hc.OAUTHGRANT="oAuthGrant",hc.NUMBER="number",hc.DEVICECONFIGMAP="DeviceConfigMap",hc.TEXTMAP="textMap",hc.WEBSOCKETSUBSCRIPTION="websocketSubscription",hc.BOOLEAN="boolean",hc.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",hc.FORECASTCONFIGURATION="forecastConfiguration",hc.TIMEDURATIONISO8601="timeDurationISO8601",hc.TIMESTAMPISO8601="timestampISO8601",hc.CONSOLEPROVIDERS="consoleProviders",hc.MULTIVALUEDTEXTMAP="multivaluedTextMap",hc.NEGATIVENUMBER="negativeNumber",hc.PARITYBIT="Paritybit",hc.JSON="JSON",hc.CRONEXPRESSION="CRONExpression",hc.INTEGERBYTE="integerByte",hc.AGENTLINK="agentLink",hc.DIRECTION="direction",hc.HOSTORIPADDRESS="hostOrIPAddress",hc.STOPBITS="Stopbits",hc.CALENDAREVENT="calendarEvent",hc.CONNECTIONSTATUS="connectionStatus",hc.VALUECONSTRAINT="valueConstraint",(hm=pv||(pv={})).MONTH="month",hm.MILE_SCANDINAVIAN="mile_scandinavian",hm.VAR="var",hm.OUNCE="ounce",hm.HECTARE="hectare",hm.YARD="yard",hm.YEAR="year",hm.GIGA="giga",hm.JOULE="joule",hm.VOLT="volt",hm.HERTZ="hertz",hm.MILE="mile",hm.DEGREE="degree",hm.KILO="kilo",hm.BTU="btu",hm.TERA="tera",hm.FOOT="foot",hm.MEGA="mega",hm.KELVIN="kelvin",hm.CARBON="carbon",hm.DECIBEL_ATTENUATED="decibel_attenuated",hm.INCH="inch",hm.SQUARED="squared",hm.PERCENTAGE="percentage",hm.IN_HG="inch_mercury",hm.CENTI="centi",hm.GRAM="gram",hm.CUBED="cubed",hm.DAY="day",hm.RADIAN="radian",hm.OHM="ohm",hm.MINUTE="minute",hm.PART_PER_MILLION="ppm",hm.AMP="amp",hm.MASS_POUND="pound",hm.KNOT="knot",hm.METRE="metre",hm.LITRE="litre",hm.FLUID_OUNCE="fluid_ounce",hm.HOUR="hour",hm.ACRE="acre",hm.CELSIUS="celsius",hm.RPM="rpm",hm.PASCAL="pascal",hm.DECIBEL="decibel",hm.LUMEN="lumen",hm.WEEK="week",hm.FAHRENHEIT="fahrenheit",hm.WATT="watt",hm.GALLON="gallon",hm.LUX="lux",hm.MILLI="milli",hm.BAR="bar",hm.HECTO="hecto",hm.PEAK="peak",hm.SECOND="second",hm.MICRO="micro",hm.PER="per",hm.STONE="stone",py||(py={});class oa{static getAssetDescriptors(){return oa._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=oa.getValueDescriptor(t)),n=t.jsonType?t:oa.getValueDescriptor(t.type)),!n&&e&&(n=oa.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 i=this.resolveValueTypeFromValue(n);if(!i)return;for(;t>0;)i+="[]",t--;return i}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let i,o;if(t&&"string"!=typeof t)i=t;else{let o=this.getAssetTypeInfo(e||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof t&&(i=this.getAttributeDescriptor(t,o)),!i&&n&&(i={type:n.type,name:n.name,meta:n.meta})}return i&&(o=this.getValueDescriptor(i.type)),[i,o]}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}}oa._assetTypeInfos=[],oa._metaItemDescriptors=[],oa._valueDescriptors=[];let os=e=>"string"==typeof e,ol=()=>{let e,t,n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n},od=e=>null==e?"":String(e),oc=/###/g,om=e=>e&&e.includes("###")?e.replace(oc,"."):e,ou=e=>!e||os(e),of=(e,t,n)=>{let i=os(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(ou(e))return{};let t=om(i[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return ou(e)?{}:{obj:e,k:om(i[o])}},oh=(e,t,n)=>{let{obj:i,k:o}=of(e,t,Object);if(void 0!==i||1===t.length){i[o]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=of(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=of(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},op=(e,t)=>{let{obj:n,k:i}=of(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},ob=(e,t,n)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(Object.prototype.hasOwnProperty.call(e,i)?os(e[i])||e[i]instanceof String||os(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):ob(e[i],t[i],n):e[i]=t[i]);return e},o_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},og=e=>os(e)?e.replace(/[&<>"'\/]/g,e=>o_[e]):e,ov=[" ",",","?","!",";"],oy=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),oF=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(n),o=e;for(let e=0;e<i.length;){let t;if(!o||"object"!=typeof o)return;let r="";for(let a=e;a<i.length;++a)if(a!==e&&(r+=n),r+=i[a],void 0!==(t=o[r])){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},ox=e=>e?.replace(/_/g,"-"),ow={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 ok=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ow,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,i){return i&&!this.debug?null:(e=e.map(e=>os(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),os(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 oE{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=(...i)=>{t(...i),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 i=0;i<n;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,i])=>{for(let o=0;o<i;o++)n(e,...t)})}}class oA extends oE{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,i={}){let o,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):os(n)&&r?o.push(...n.split(r)):o.push(n)));let s=op(this.data,o);return(!s&&!t&&!n&&e.includes(".")&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&a&&os(n))?oF(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,i,o={silent:!1}){let r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),oh(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}addResources(e,t,n,i={silent:!1}){for(let i in n)(os(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,o,r={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);let s=op(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?ob(s,n,o):s={...s,...n},oh(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 oC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,i,o)??t}),t}};let oT=Symbol("i18next/PATH_KEY");function oL(e,t){let n,i,o,{[oT]:r}=e((i=[],(o=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===oT)?i:(i.push(t),(n=Proxy.revocable(e,o)).proxy),Proxy.revocable(Object.create(null),o).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&s){let e=t?.ns,n=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(l?n:n.length>1?n.slice(1):[]).includes(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let oM=e=>!os(e)&&"boolean"!=typeof e&&"number"!=typeof e;class oD extends oE{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=ok.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let i=this.resolve(e,n);if(i?.res===void 0)return!1;let o=oM(i.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=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 i=ov.filter(e=>!t.includes(e)&&!n.includes(e));if(0===i.length)return!0;let o=oy.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),r=!o.test(e);if(!r){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(r=!0)}return r})(e,n,i);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:os(o)?[o]:o};let r=e.split(n);(n!==i||n===i&&this.options.ns.includes(r[0]))&&(o=r.shift()),e=r.join(i)}return{key:e,namespaces:os(o)?[o]:o}}translate(e,t,n){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=oL(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?oL(e,{...this.options,...i}):String(e));let o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],i),l=s[s.length-1],d=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===d&&(d=":");let c=i.lng||this.language,m=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return m?o?{res:`${l}${d}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${d}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;let u=this.resolve(e,i),f=u?.res,h=u?.usedKey||a,p=u?.exactUsedKey||a,b=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==i.count&&!os(i.count),v=oD.hasDefaultValue(i),y=g?this.pluralResolver.getSuffix(c,i.count,i):"",F=i.ordinal&&g?this.pluralResolver.getSuffix(c,i.count,{ordinal:!1}):"",x=g&&!i.ordinal&&0===i.count,w=x&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${y}`]||i[`defaultValue${F}`]||i.defaultValue,k=f;_&&!f&&v&&(k=w);let E=oM(k),A=Object.prototype.toString.apply(k);if(_&&k&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(A)&&!(os(b)&&Array.isArray(k))){if(!i.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,k,{...i,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(u.res=e,u.usedParams=this.getUsedParamsDetails(i),u):e}if(r){let e=Array.isArray(k),t=e?[]:{},n=e?p:h;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let o=`${n}${r}${e}`;v&&!f?t[e]=this.translate(o,{...i,defaultValue:oM(w)?w[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(o,{...i,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=k[e])}f=t}}else if(_&&os(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,i,n));else{let t=!1,o=!1;!this.isValidLookup(f)&&v&&(t=!0,f=w),this.isValidLookup(f)||(o=!0,f=a);let s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,m=v&&w!==f&&this.options.updateMissing;if(o||t||m){if(this.logger.log(m?"updateKey":"missingKey",c,l,g&&!m?`${a}${this.pluralResolver.getSuffix(c,i.count,i)}`:a,m?w:f),r){let e=this.resolve(a,{...i,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,i.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(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let o=v&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,m,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,m,i),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);x&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,i[`defaultValue${t}`]||w)})}):n(e,a,w))}f=this.extendTranslation(f,e,i,u,n),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${d}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${d}${a}`:a,t?f:void 0,i))}return o?(u.res=f,u.usedParams=this.getUsedParamsDetails(i),u):f}extendTranslation(e,t,n,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){let r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=os(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&&!os(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||i.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[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=os(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=oC.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,i,o,r,a;return os(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?oL(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),l=s.key;i=l;let d=s.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let c=void 0!==t.count&&!os(t.count),m=c&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(os(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.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 "${i}" 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(i=>{let a;if(this.isValidLookup(n))return;r=i;let s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,i,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(i,t.count,t));let n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(o)&&s.push(l+e.replace(o,this.options.pluralSeparator)),s.push(l+e),m&&s.push(l+n)),u){let i=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(i),c&&(t.ordinal&&e.startsWith(o)&&s.push(i+e.replace(o,this.options.pluralSeparator)),s.push(i+e),m&&s.push(i+n))}}for(;a=s.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(i,e,a,t))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(e={}){let t=e.replace&&!os(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 oS{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ok.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ox(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=ox(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(os(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 i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.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)),os(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),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return os(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):os(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{i.includes(e)||o(this.formatLanguageCode(e))}),i}}let oI={zero:0,one:1,two:2,few:3,many:4,other:5},oO={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oY{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ok.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,i=ox("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:i,type:o});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(i,{type:o})}catch(o){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),oO;if(!e.match(/-|_/))return oO;let i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,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)=>oI[e]-oI[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let oR=(e,t,n,i=".",o=!0)=>{let r,a=void 0!==(r=op(e,n))?r:op(t,n);return!a&&o&&os(n)&&void 0===(a=oF(e,n,i))&&(a=oF(t,n,i)),a},oN=e=>e.replace(/\$/g,"$$$$");class oP{constructor(e={}){this.logger=ok.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:i,prefix:o,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:d,unescapePrefix:c,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:p,maxReplaces:b,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:og,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=d?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":d?d.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,i){let o,r,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let o=oR(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...i,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),r=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(oR(t,s,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...i,...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 d=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=i?.interpolation?.skipOnVariables!==void 0?i.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;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(r=l(n)))if("function"==typeof d){let t=d(e,o,i);r=os(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))r="";else if(c){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r="";else os(r)||this.useRawValueToEscape||(r=od(r));let s=t.safeValue(r);if(e=e.replace(o[0],oN(s)),c?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let i,o,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let i=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),o=`{${i[1]}`;e=i[0];let a=(o=this.interpolate(o,r)).match(/'/g),s=o.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let s=[];(r=(r={...n}).replace&&!os(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let l=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(s=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),(o=t(a.call(this,i[1].trim(),r),r))&&i[0]===e&&!os(o))return o;os(o)||(o=od(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}let oB=e=>{let t={};return(n,i,o)=>{let r=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(r={...r,[o.interpolationkey]:void 0});let a=i+JSON.stringify(r),s=t[a];return s||(s=e(ox(i),o),t[a]=s),s(n)}},oj=e=>(t,n,i)=>e(ox(n),i)(t);class oH{constructor(e={}){this.logger=ok.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?oB:oj;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()]=oB(t)}format(e,t,n,i={}){if(!t||null==e)return e;let o=t.split(this.formatSeparator),r=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:o,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=o),"false"===o&&(n[r]=!1),"true"===o&&(n[r]=!0),isNaN(o)||(n[r]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{let a=i?.formatParams?.[i.interpolationkey]||{},s=a.locale||a.lng||i.locale||i.lng||n;t=this.formats[o](e,s,{...r,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class oz extends oE{constructor(e,t,n,i={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ok.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(e,t,n,i){let o={},r={},a={},s={};return e.forEach(e=>{let i=!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,i=!1,void 0===r[a]&&(r[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),!t&&n&&this.store.addResourceBundle(o,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:i,k:o}=of(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[o],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,i=0,o=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:i,wait:o,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&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,n,i+1,2*o,r)},o):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={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();os(e)&&(e=this.languageUtils.toResolveHierarchy(e)),os(t)&&(t=[t]);let o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.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("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,i,o,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:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,n,i,s):l(e,t,n,i))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,i,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}let oU=()=>({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]),os(e[1])&&(t.defaultValue=e[1]),os(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}),o$=e=>(os(e.ns)&&(e.ns=[e.ns]),os(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),os(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),oV=()=>{};class oW extends oE{constructor(e={},t){if(super(),this.options=o$(e),this.services={},this.logger=ok,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&&(os(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=oU();this.options={...n,...this.options,...o$(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 i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?ok.init(i(this.modules.logger),this.options):ok.init(null,this.options),e=this.modules.formatter?this.modules.formatter:oH;let t=new oS(this.options);this.store=new oA(this.options.resources,this.options);let n=this.services;n.logger=ok,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new oY(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=i(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new oP(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new oz(i(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=i(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=i(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new oD(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=oV),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 o=ol(),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),o.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),o}loadResources(e,t=oV){let n=t,i=os(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.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))})};i?t(i):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 i=ol();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=oV),this.services.backendConnector.reload(e,t,e=>{i.resolve(),n(e)}),i}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&&oC.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=ol();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,r)=>{r?this.isLanguageChangingTo===e&&(i(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(o,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=os(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(os(t)?[t]:t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{o(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,i){let o=i?.scopeNs,r=(e,t,...i)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let l=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let d={...this.options,...a};Array.isArray(o)&&!l&&(d.ns=o),"function"==typeof a.keyPrefix&&(a.keyPrefix=oL(a.keyPrefix,d));let c=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=oL(e,d)),`${a.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=oL(e,d)),s=a.keyPrefix?`${a.keyPrefix}${c}${e}`:e),this.t(s,a)};return os(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],i=!!this.options&&this.options.fallbackLng,o=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)&&(!i||r(o,e)))}loadNamespaces(e,t){let n=ol();return this.options.ns?(os(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=ol();os(e)&&(e=[e]);let i=this.options.preload||[],o=e.filter(e=>!i.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=i.concat(o),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 oS(oU());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 oW(e,t);return n.createInstance=oW.createInstance,n}cloneInstance(e={},t=oV){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},o=new oW(i);if((void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new oA(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,i)=>(n[i]={...e[t][i]},n),e[t]),e),{}),i),o.services.resourceStore=o.store),e.interpolation){let t={...oU().interpolation,...this.options.interpolation,...e.interpolation},n={...i,interpolation:t};o.services.interpolator=new oP(n)}return o.translator=new oD(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let oq=oW.createInstance();oq.createInstance,oq.dir,oq.init,oq.loadResources,oq.reloadResources,oq.use,oq.changeLanguage,oq.getFixedT,oq.t,oq.exists,oq.setDefaultNamespace,oq.hasLoadedNamespace,oq.loadNamespaces,oq.loadLanguages;var oG=n(4867),oK=n.n(oG);n(3472);class oX{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 oJ(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)=>oJ(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>oJ(e[n],t[n]))}return!1}function oQ(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,i)=>{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=!i[n-1]||"_"===i[n-1],o=n+1<i.length&&i[n+1]&&"_"!==i[n+1],r=n+3>i.length||!i[n+1]&&!i[n+3];(!t||o)&&(e=" "+e),!o&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}function oZ(e,t){if(t===e)return!0;let n=e.endsWith("*"),i=!n&&e.startsWith("*"),o=!n&&!i&&e.startsWith("^")&&e.endsWith("$");if(n&&t.startsWith(e.substr(0,e.length-1))||i&&t.endsWith(e.substr(1)))return!0;if(o)try{return new RegExp(e).test(t)}catch(e){console.error("Failed to compile needle as a RegExp: "+e)}return!1}function o0(e,t,n){let i="string"==typeof e?e:e.name;return t&&t.meta&&t.meta.hasOwnProperty(i)?t.meta[i]:n&&n.meta?n.meta[i]:void 0}function o1(e){return("string"==typeof e&&(e=oa.getAssetDescriptor(e)),e)?oq.t("label.asset."+e.name,{defaultValue:oQ(e.name)}):""}function o2(e,t,n,i,o,r){let a=o5("label",e,t,n,o),s="";if(a||(a=o0("label",e,t&&t.meta?t:void 0)),i&&(s=function(e,t){if(!e)return"";t||(t="");let n=e.map((e,n)=>{if(3!==e.length||e.toUpperCase()!==e)return oq.t(["units."+e,"or:units."+e]);{let i=new Intl.NumberFormat(oq.language,{currency:e,style:"currency"}).formatToParts();if(0!==n||"currency"!==i[0].type)return"currency"===i[0].type?i[0].value:i[i.length-1].value;if(!t)return i[0].value;t=i[0].value+t}}).join("");return t.length>0?t+" "+n:n}(function(e,t,n,i,o){let r,a=[],s=o5(e,t&&"string"==typeof t?t:t?t.name:n?"string"==typeof n?n:n.name:void 0,n,i,o);if(s&&(r=JSON.parse(s)))if("format"!==e)return r;else a.push(r);if(t&&t.meta&&(r=o0(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=oa.getValueDescriptor(n.type)[e],"format"!==e)return r;a.push(r)}if("format"!==e||0===a.length)return r;let l={};return a.reverse().forEach(e=>{l=Object.assign(Object.assign({},l),e)}),l}("units",e,t,n,o))),!a){let n=e?e.name:t?"string"==typeof t?t:t.name:void 0;a=r||(n?oQ(n):void 0)}return a?a+(s?" ("+s+")":""):s}function o5(e,t,n,i,o,r){let a;if(t?a="string"==typeof t?t:t.name:n&&(a="string"==typeof n?n:n.name),!a)return;let s=[],l=e+"."+(o?"attribute":"meta")+".";if(i&&s.push(l+i+"."+a),n&&"string"!=typeof n&&(s.push(l+n.type+"."+a),s.push(l+n.type)),s.push(l+a),s.length>0)return oq.t(s,{defaultValue:r||""})}function o4(e){return(t,n)=>{let i=e(t),o=e(n);return i||o?i&&!o?1:!i&&o?-1:i.localeCompare(o):0}}function o3(e,t){let n=new oX;return e.dispatchEvent(t),window.setTimeout(()=>{n.resolve(t.detail)}),n.promise}class o6{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,i,o,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==(i=this.realm)?void 0:i.name)&&e.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.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=>o6._evalValuePredicate(e.name,t)))&&(!this.attributes||o6._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!o6._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?o6._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let i;if(null==e)return!1;let o=!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":i=o.startsWith(r);break;case"END":i=o.endsWith(r);break;case"CONTAINS":i=o.includes(r);break;default:i=o===r}return t.negate?!i:i}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,i;let o=null==(n=t.name)?void 0:n.value;if(!o)return!0;let r=null==(i=e.attributes)?void 0:i[o];if(!r)return!!t.negated;let a=!t.value||o6._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,i,o;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(i=t.items)?i:[]).map(t=>o6._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>o6._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=>o6._collectNames(e))]}}o6._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var o7=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let o8=n(4461);class o9{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 i=new URLSearchParams(window.location.search),o=i.get("consoleName"),r=i.get("consoleVersion"),a=i.get("consolePlatform"),s=i.get("consoleProviders"),l=i.get("consoleAutoEnable"),d=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=d;let c=o9._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={},d)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};c.providers[e]=t}let f=lX.getAppName();f.length>0&&0>c.apps.indexOf(f)&&c.apps.push(f),this._registration=c,o&&(c.name=o),r&&(c.version=r),a&&(c.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}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 o7(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 o7(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 o7(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},i=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=i.hasPermission,this._registration.providers[e].success=i.success,this._registration.providers[e].enabled=i.success,this._registration.providers[e].data=i.data;let o=this._pendingProviderEnables.indexOf(e);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),i})}disableProvider(e){return o7(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 o7(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 i=new oX,o=()=>{delete this._pendingProviderPromises[n],i.reject("No response from provider")};return this._pendingProviderPromises[n]=[i,window.setTimeout(o,5e3)],this._doSendProviderMessage(e),i.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>o7(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 o7(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield lX.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&&o9._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 o7(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,i=t.action,o=this._pendingProviderPromises[n+i];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+i],o[0].resolve(t));let r=this._providerMessageListeners[n+i];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:o8.name,version:o8.version,platform:o8.os.toString(),apps:[],model:((o8.manufacturer?o8.manufacturer+" ":"")+(o8.product?o8.product:"")).trim()}}_initialiseProvider(e){return o7(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 re(e,t){return function(){return e.apply(t,arguments)}}let{toString:rt}=Object.prototype,{getPrototypeOf:rn}=Object,{iterator:ri,toStringTag:ro}=Symbol,rr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ra=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),rs=(e,t,n)=>e===Object.prototype||!n&&null===t,rl=(e,t)=>{let n=e,i=[];for(;null!=n&&-1===i.indexOf(n);){i.push(n);let o=rn(n);if(rs(n,o,n===e))break;if(rr(n,t))return!0;n=o}return!1},rd=(r=Object.create(null),e=>{let t=rt.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),rc=e=>(e=e.toLowerCase(),t=>rd(t)===e),rm=e=>t=>typeof t===e,{isArray:ru}=Array,rf=rm("undefined");function rh(e){return null!==e&&!rf(e)&&null!==e.constructor&&!rf(e.constructor)&&r_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let rp=rc("ArrayBuffer"),rb=rm("string"),r_=rm("function"),rg=rm("number"),rv=e=>null!==e&&"object"==typeof e,ry=e=>{if(!rv(e))return!1;let t=rn(e);return(null===t||t===Object.prototype||null===rn(t))&&!rl(e,ro)&&!rl(e,ri)},rF=rc("Date"),rx=rc("File"),rw=rc("Blob"),rk=rc("FileList"),rE=rc("Set"),rA="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},rC=void 0!==rA.FormData?rA.FormData:void 0,rT=rc("URLSearchParams"),[rL,rM,rD,rS]=["ReadableStream","Request","Response","Headers"].map(rc);function rI(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),ru(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(rh(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function rO(e,t){let n;if(rh(e))return null;t=t.toLowerCase();let i=Object.keys(e),o=i.length;for(;o-- >0;)if(t===(n=i[o]).toLowerCase())return n;return null}let rY="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rR=e=>!rf(e)&&e!==rY,rN=(a="u">typeof Uint8Array&&rn(Uint8Array),e=>a&&e instanceof a),rP=rc("HTMLFormElement"),{propertyIsEnumerable:rB}=Object.prototype,rj=rc("RegExp"),rH=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};rI(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},rz=rc("AsyncFunction"),rU=(fc="function"==typeof setImmediate,fm=r_(rY.postMessage),fc?setImmediate:fm?(fu=`axios@${Math.random()}`,ff=[],rY.addEventListener("message",({source:e,data:t})=>{e===rY&&t===fu&&ff.length&&ff.shift()()},!1),e=>{ff.push(e),rY.postMessage(fu,"*")}):e=>setTimeout(e)),r$="u">typeof queueMicrotask?queueMicrotask.bind(rY):"u">typeof process&&process.nextTick||rU,rV=e=>null!=e&&r_(e[ri]),rW={isArray:ru,isArrayBuffer:rp,isBuffer:rh,isFormData:e=>{if(!e)return!1;if(rC&&e instanceof rC)return!0;let t=rn(e);if(!t||t===Object.prototype||!r_(e.append))return!1;let n=rd(e);return"formdata"===n||"object"===n&&r_(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rp(e.buffer)},isString:rb,isNumber:rg,isBoolean:e=>!0===e||!1===e,isObject:rv,isPlainObject:ry,isEmptyObject:e=>{if(!rv(e)||rh(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rL,isRequest:rM,isResponse:rD,isHeaders:rS,isUndefined:rf,isDate:rF,isFile:rx,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rw,isRegExp:rj,isFunction:r_,isStream:e=>rv(e)&&r_(e.pipe),isURLSearchParams:rT,isTypedArray:rN,isFileList:rk,forEach:rI,merge:function e(...t){let{caseless:n,skipUndefined:i}=rR(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&rO(o,r)||r,s=rr(o,a)?o[a]:void 0;ry(s)&&ry(t)?o[a]=e(s,t):ry(t)?o[a]=e({},t):ru(t)?o[a]=t.slice():i&&rf(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||rh(n)||(rI(n,r),"object"!=typeof n||ru(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];rB.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(rI(t,(t,i)=>{n&&r_(t)?Object.defineProperty(e,i,{__proto__:null,value:re(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),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,i)=>{e.prototype=Object.create(t.prototype,i),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,i)=>{let o,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)a=o[r],(!i||i(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&rn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rd,kindOfTest:rc,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(ru(e))return e;let t=e.length;if(!rg(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[ri]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:rP,hasOwnProperty:rr,hasOwnProp:rr,hasOwnInPrototypeChain:rl,getSafeProp:(e,t)=>null!=e&&rl(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=rn(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(ra(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),i=Object.create(null),o=[],r=e;for(;null!=r&&-1===o.indexOf(r);){o.push(r);let a=r===e?t:rn(r);if(rs(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!ra(t)&&(rr(i,t)||(n[t]=e[t],i[t]=!0));r=a}return n},reduceDescriptors:rH,freezeMethods:e=>{rH(e,(t,n)=>{if(r_(e)&&["arguments","caller","callee"].includes(n))return!1;if(r_(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(ru(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:rO,global:rY,isContextDefined:rR,isSpecCompliantForm:function(e){return!!(e&&r_(e.append)&&"FormData"===e[ro]&&e[ri])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(rv(e)){if(t.has(e))return;if(rh(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),rE(e))for(let t of(i=[],e)){let e=n(t);rf(e)||i.push(e)}else i=ru(e)?[]:{},rI(e,(e,t)=>{let o=n(e);rf(o)||(i[t]=o)});return t.delete(e),i}}return e};return n(e)},isAsyncFn:rz,isThenable:e=>e&&(rv(e)||r_(e))&&r_(e.then)&&r_(e.catch),setImmediate:rU,asap:r$,isIterable:rV,isSafeIterable:e=>null!=e&&rl(e,ri)&&rV(e)},rq=rW.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"]),rG=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rK=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rX(e,t){return rW.isArray(e)?e.map(e=>rX(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 rJ(e){let t=Object.create(null);return rW.forEach(e.toJSON(),(e,n)=>{t[n]=rX(e,rK)}),t}let rQ=Symbol("internals");function rZ(e){return e&&String(e).trim().toLowerCase()}function r0(e){return!1===e||null==e?e:rW.isArray(e)?e.map(r0):rX(String(e),rG)}let r1=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r2(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 r5(e,t,n,i,o){if(rW.isFunction(i))return i.call(this,t,n);if(o&&(t=n),rW.isString(t)){if(rW.isString(i))return -1!==t.indexOf(i);if(rW.isRegExp(i))return i.test(t)}}class r4{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=rZ(t);if(!o)return;let r=rW.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=r0(e))}let r=(e,t)=>rW.forEach(e,(e,n)=>o(e,n,t));if(rW.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(rW.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var a;let n,i,o,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim();let t=rW.hasOwnProp(s,n);!n||t&&rW.hasOwnProp(rq,n)||("set-cookie"===n?t?s[n].push(i):s[n]=[i]:s[n]=t?s[n]+", "+i:i)}),s),t)}else if(rW.isObject(e)&&rW.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!rW.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],rW.hasOwnProp(n,o)?(i=n[o],n[o]=rW.isArray(i)?[...i,t[1]]:[i,t[1]]):n[o]=t[1]}r(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=rZ(e)){let n=rW.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(rW.isFunction(t))return t.call(this,e,n);if(rW.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rZ(e)){let n=rW.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||r5(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=rZ(e)){let o=rW.findKey(n,e);o&&(!t||r5(n,n[o],o,t))&&(delete n[o],i=!0)}}return rW.isArray(e)?e.forEach(o):o(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let o=t[n];(!e||r5(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return rW.forEach(this,(i,o)=>{let r=rW.findKey(n,o);if(r){t[r]=r0(i),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=r0(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rW.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&rW.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 rW.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),i=0,o=!1,r=!1;function a(e){let o=r2(n.slice(i,e)),r=o.indexOf("=");if(r<1)return;let a=r2(o.slice(0,r));if(!r1.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=r2(o.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 i=1;i<t;i++){let o=e.charCodeAt(i);if(34===o||92===o&&(i+=1)>=t)return e;n+=e[i]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);o?r?r=!1:92===t?r=!0:34===t&&(o=!1):34===t?o=!0:(44===t||59===t)&&(a(e),i=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[rQ]=this[rQ]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=rZ(e);if(!t[i]){let o;o=rW.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{__proto__:null,value:function(n,i,o){return this[t].call(this,e,n,i,o)},configurable:!0})}),t[i]=!0}}return rW.isArray(e)?e.forEach(i):i(e),this}}r4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rW.reduceDescriptors(r4.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),rW.freezeMethods(r4);let r3="[REDACTED ****]";function r6(e){try{return String(e)}catch(e){return""}}class r7 extends Error{static from(e,t,n,i,o,r){let a=e.message;!a&&rW.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?r6(e.message):r6(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new r7(a,t||e.code,n,i,o);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,i,o){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),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,n,i=this.config,o=i&&rW.hasOwnProp(i,"redact")?i.redact:void 0,r=rW.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(n=i=>{let o;if(null===i||"object"!=typeof i||rW.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof r4&&(i=i.toJSON()),t.push(i),rW.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);rW.isUndefined(i)||(o[t]=i)});else{if(!rW.isPlainObject(i)&&function(e){if(rW.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rW.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,r]of(o=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?r3:n(r);rW.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):rW.toJSONObject(i);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}}}r7.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",r7.ERR_BAD_OPTION="ERR_BAD_OPTION",r7.ECONNABORTED="ECONNABORTED",r7.ETIMEDOUT="ETIMEDOUT",r7.ECONNREFUSED="ECONNREFUSED",r7.ERR_NETWORK="ERR_NETWORK",r7.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",r7.ERR_DEPRECATED="ERR_DEPRECATED",r7.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",r7.ERR_BAD_REQUEST="ERR_BAD_REQUEST",r7.ERR_CANCELED="ERR_CANCELED",r7.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",r7.ERR_INVALID_URL="ERR_INVALID_URL",r7.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let r8=r7;function r9(e){return rW.isPlainObject(e)||rW.isArray(e)}function ae(e){return rW.endsWith(e,"[]")?e.slice(0,-2):e}function at(e,t,n){return e?e.concat(t).map(function(e,t){return e=ae(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let an=rW.toFlatObject(rW,{},null,function(e){return/^is[A-Z]/.test(e)}),ai=function(e,t,n){if(!rW.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(e,t)=>{let i=rW.getSafeProp(n,e);return rW.isUndefined(i)?t:i},o=i("metaTokens",!0),r=i("visitor")||h,a=i("dots",!1),s=i("indexes",!1),l=i("Blob")||"u">typeof Blob&&Blob,d=i("maxDepth",100),c=l&&rW.isSpecCompliantForm(t),m=[];if(!rW.isFunction(r))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(rW.isDate(e))return e.toISOString();if(rW.isBoolean(e))return e.toString();if(!c&&rW.isBlob(e))throw new r8("Blob is not supported. Use a Buffer instead.");if(rW.isArrayBuffer(e)||rW.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new r8("Blob is not supported. Use a Buffer instead.",r8.ERR_NOT_SUPPORT)}return e}function f(e){if(e>d)throw new r8("Object is too deeply nested ("+e+" levels). Max depth: "+d,r8.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,i){let r=e;if(rW.isReactNative(t)&&rW.isReactNativeBlob(e))return t.append(at(i,n,a),u(e)),!1;if(e&&!i&&"object"==typeof e)if(rW.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(1/0===d)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!rW.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 l;if(rW.isArray(e)&&(l=e,rW.isArray(l)&&!l.some(r9))||(rW.isFileList(e)||rW.endsWith(n,"[]"))&&(r=rW.toArray(e)))return n=ae(n),r.forEach(function(e,i){rW.isUndefined(e)||null===e||t.append(!0===s?at([n],i,a):null===s?n:n+"[]",u(e))}),!1}return!!r9(e)||(t.append(at(i,n,a),u(e)),!1)}let p=Object.assign(an,{defaultVisitor:h,convertValue:u,isVisitable:r9});if(!rW.isObject(e))throw TypeError("data must be an object");return!function e(n,i,o=0){if(!rW.isUndefined(n)){if(f(o),-1!==m.indexOf(n))throw Error("Circular reference detected in "+i.join("."));m.push(n),rW.forEach(n,function(n,a){!0===(!(rW.isUndefined(n)||null===n)&&r.call(t,n,rW.isString(a)?a.trim():a,i,p))&&e(n,i?i.concat(a):[a],o+1)}),m.pop()}}(e),t};function ao(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ar(e,t){this._pairs=[],e&&ai(e,this,t)}let aa=ar.prototype;function as(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function al(e,t,n){let i;if(!t)return e;e=e||"";let o=rW.isFunction(n)?{serialize:n}:n,r=rW.getSafeProp(o,"encode")||as,a=rW.getSafeProp(o,"serialize");if(i=a?a(t,o):rW.isURLSearchParams(t)?t.toString():new ar(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}aa.append=function(e,t){this._pairs.push([e,t])},aa.toString=function(e){let t=e?t=>e.call(this,t,ao):ao;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let ad=Symbol("internals");function ac(e){return e?e.length:0}function am(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function au(e,t){let n=e.handlers,i=ac(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):i!==t.handlersLength&&(i?t.handlerEntries.forEach(function(e,i){n[e.index]!==e.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=i}let af=class{constructor(){this.handlers=[],this[ad]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let i={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[ad];null==this.handlers&&(this.handlers=[]),au(this,o);let r=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(r,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,r}eject(e){let t=this[ad];au(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||(am(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],au(this,this[ad]))}forEach(e){let t=this[ad];au(this,t),t.iterationDepth++;try{rW.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(au(this,t),am(this.handlers),t.handlersLength=ac(this.handlers))}}},ah={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ap="u">typeof URLSearchParams?URLSearchParams:ar,ab="u">typeof FormData?FormData:null,a_="u">typeof Blob?Blob:null,ag="u">typeof window&&"u">typeof document,av="object"==typeof navigator&&navigator||void 0,ay=ag&&(!av||0>["ReactNative","NativeScript","NS"].indexOf(av.product)),aF="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ax=ag&&window.location.href||"http://localhost",aw={...c,isBrowser:!0,classes:{URLSearchParams:ap,FormData:ab,Blob:a_},protocols:["http","https","file","blob","url","data"]};function ak(e){if(e>100)throw new r8("FormData field is too deeply nested ("+e+" levels). Max depth: 100",r8.ERR_FORM_DATA_DEPTH_EXCEEDED)}let aE=function(e){if(rW.isFormData(e)&&rW.isFunction(e.entries)){let t={};return rW.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){ak(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&rW.isArray(i)?i.length:r,s)?rW.hasOwnProp(i,r)?i[r]=rW.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(rW.hasOwnProp(i,r)&&rW.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&rW.isArray(i[r])&&(i[r]=function(e){let t,n,i={},o=Object.keys(e),r=o.length;for(t=0;t<r;t++)i[n=o[t]]=e[n];return i}(i[r]))),!a}(function(e){let t,n=[],i=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=i.exec(e));)ak(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},aA=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),aC=(e,t)=>null!=e&&rW.hasOwnProp(e,t)?e[t]:void 0,aT={transitional:ah,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=rW.isObject(e);if(r&&rW.isHTMLForm(e)&&(e=new FormData(e)),rW.isFormData(e))return o?JSON.stringify(aE(e)):e;if(rW.isArrayBuffer(e)||rW.isBuffer(e)||rW.isStream(e)||rW.isFile(e)||rW.isBlob(e)||rW.isReadableStream(e))return e;if(rW.isArrayBufferView(e))return e.buffer;if(rW.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=aC(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return ai(e,new aw.classes.URLSearchParams,{visitor:function(e,t,n,i){return aw.isNode&&rW.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=rW.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=aC(this,"env"),o=i&&i.FormData;return ai(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(rW.isString(a))try{return(0,JSON.parse)(a),rW.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=aC(this,"transitional")||aT.transitional,n=t&&t.forcedJSONParsing,i=aC(this,"responseType"),o="json"===i;if(rW.isResponse(e)||rW.isReadableStream(e))return e;if(e&&rW.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,aC(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw r8.from(e,r8.ERR_BAD_RESPONSE,this,null,aC(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:aw.classes.FormData,Blob:aw.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function aL(e,t){let n=this||aT,i=t||n,o=r4.from(i.headers),r=i.data;return rW.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function aM(e){return!!(e&&e.__CANCEL__)}rW.forEach(aA,e=>{aT.headers[e]={}});let aD=class extends r8{constructor(e,t,n){super(null==e?"canceled":e,r8.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function aS(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new r8("Request failed with status code "+n.status,n.status>=400&&n.status<500?r8.ERR_BAD_REQUEST:r8.ERR_BAD_RESPONSE,n.config,n.request,n))}let aI=/[\t\n\r]/g;function aO(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(aI,"")}function aY(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let aR=function(e,t){let n,i=Array(e=e||10),o=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),d=o[a];n||(n=l),i[r]=s,o[r]=l;let c=a,m=0;for(;c!==r;)m+=i[c++],c%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let u=d&&l-d;return u?Math.round(1e3*m/u):void 0}},aN=function(e,t){let n,i,o=0,r=1e3/t,a=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=r?a(e,t):(n=e,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},aP=(e,t,n=3)=>{let i=0,o=aR(50,250);return aN(n=>{if(!n||!rW.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),l=Math.max(0,s-i),d=o(l);i=Math.max(i,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a?(a-s)/d:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},aB=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},aj=(e,t=rW.asap)=>(...n)=>t(()=>e(...n)),aH=aw.hasStandardBrowserEnv?(s=new URL(aw.origin),l=aw.navigator&&/(msie|trident)/i.test(aw.navigator.userAgent),e=>(e=new URL(e,aw.origin),s.protocol===e.protocol&&s.host===e.host&&(l||s.port===e.port))):()=>!0,az=aw.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];rW.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),rW.isString(i)&&s.push(`path=${i}`),rW.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),rW.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 i=t[n].replace(/^\s+/,""),o=i.indexOf("=");if(-1!==o&&i.slice(0,o)===e)try{return decodeURIComponent(i.slice(o+1))}catch(e){return i.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},aU=/^https?:(?!\/\/)/i;function a$(e,t){if("string"==typeof e){let i=aO(e);if(aU.test(i)){var n;let e,o,r;throw new r8(`Invalid URL ${JSON.stringify((r=(-1===(o=(e=i.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${r3}@`)).indexOf("#"))?e:e.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${r3}`),-1===o?r:`${r}#${!(n=e.slice(o+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${r3}`)}`))}: missing "//" after protocol`,r8.ERR_INVALID_URL,t)}}}function aV(e,t,n,i){a$(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(o||!1===n)){a$(e,i);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 aW=e=>e instanceof r4?{...e}:e;function aq(e,t){var n;e=e||{},t=t||{};let i=Object.create(null);function o(e,t,n,i){return rW.isPlainObject(e)&&rW.isPlainObject(t)?rW.merge.call({caseless:i},e,t):rW.isPlainObject(t)?rW.merge({},t):rW.isArray(t)?t.slice():t}function r(e,t,n,i){return rW.isUndefined(t)?rW.isUndefined(e)?void 0:o(void 0,e,n,i):o(e,t,n,i)}function a(e,t){if(!rW.isUndefined(t))return o(void 0,t)}function s(e,t){return rW.isUndefined(t)?rW.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(n,i,r){return rW.hasOwnProp(t,r)?o(n,i):rW.hasOwnProp(e,r)?o(void 0,n):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={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:l,headers:(e,t,n)=>r(aW(e),aW(t),n,!0)};return rW.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 o=rW.hasOwnProp(d,n)?d[n]:r,a=o(rW.hasOwnProp(e,n)?e[n]:void 0,rW.hasOwnProp(t,n)?t[n]:void 0,n);rW.isUndefined(a)&&o!==l||(i[n]=a)}),rW.hasOwnProp(t,"validateStatus")&&rW.isUndefined(t.validateStatus)&&!1===function(n){let i=rW.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rW.isUndefined(i)){if(!rW.isPlainObject(i))return;else if(rW.hasOwnProp(i,n))return i[n]}let o=rW.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rW.isPlainObject(o)&&rW.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(rW.hasOwnProp(e,"validateStatus")?i.validateStatus=o(void 0,e.validateStatus):delete i.validateStatus),i}let aG=["content-type","content-length"],aK=function(e){let t=aq({},e),n=e=>rW.hasOwnProp(t,e)?t[e]:void 0,i=n("data"),o=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),d=n("baseURL"),c=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=r4.from(s),t.url=al(aV(d,m,c,t),n("params"),n("paramsSerializer")),l){let t=rW.getSafeProp(l,"username")||"",n=rW.getSafeProp(l,"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 r8.from(t,r8.ERR_BAD_OPTION_VALUE,e)}}if(rW.isFormData(i)){let e=rW.getSafeProp(i,"getHeaders");if(aw.hasStandardBrowserEnv||aw.hasStandardBrowserWebWorkerEnv||rW.isReactNative(i))s.setContentType(void 0);else{var u,f;rW.isFunction(e)&&(u=s,f=e.call(i),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{aG.includes(e.toLowerCase())&&u.set(e,t)}))}}if(aw.hasStandardBrowserEnv&&(rW.isFunction(o)&&(o=o(t)),!0===o||null==o&&aH(t.url))){let e=r&&a&&az.read(a);e&&s.set(r,e)}return t},aX="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let i,o,r,a,s,l,d=aK(e),c=d.data,m=r4.from(d.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:h}=d;function p(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(i),d.signal&&d.signal.removeEventListener("abort",i)}let b=new XMLHttpRequest;function _(i){if(!b)return;if(0===b.status&&"file"!==(aY(aO(d.url))||aY(aw.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new r8("Request aborted",r8.ECONNABORTED,e,b)),p(),b=null;return}try{i?l&&l(i):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!b)return;let o=r4.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());aS(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:o,config:e,request:b}),b=null}b.open(d.method.toUpperCase(),d.url,!0),b.timeout=d.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 r8("Request aborted",r8.ECONNABORTED,e,b)),p(),b=null)},b.onerror=function(t){let i=new r8(t&&t.message?t.message:"Network Error",r8.ERR_NETWORK,e,b);i.event=t||null,n(i),p(),b=null},b.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",i=d.transitional||ah;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new r8(t,i.clarifyTimeoutError?r8.ETIMEDOUT:r8.ECONNABORTED,e,b)),p(),b=null},void 0===c&&m.setContentType(null),"setRequestHeader"in b&&rW.forEach(rJ(m),function(e,t){b.setRequestHeader(t,e)}),rW.isUndefined(d.withCredentials)||(b.withCredentials=!!d.withCredentials),u&&"json"!==u&&(b.responseType=d.responseType),h&&([r,s,l]=aP(h,!0),b.addEventListener("progress",r)),f&&b.upload&&([o,a]=aP(f),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(i=t=>{b&&(n(!t||t.type?new aD(null,e,b):t),b.abort(),p(),b=null)},d.cancelToken&&d.cancelToken.subscribe(i),d.signal&&(d.signal.aborted?i():d.signal.addEventListener("abort",i)));let g=aY(d.url);if(g&&!aw.protocols.includes(g)){n(new r8("Unsupported protocol "+g+":",r8.ERR_BAD_REQUEST,e)),p();return}b.send(c||null)})},aJ=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let o=0;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},aQ=async function*(e,t){for await(let n of aZ(e))yield*aJ(n,t)},aZ=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()}},a0=(e,t,n,i)=>{let o,r=aQ(e,t),a=0,s=e=>{!o&&(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await r.next();if(t){s(),e.close();return}let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},a1=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,a2=(e,t,n)=>t+2<n&&a1(e.charCodeAt(t+1))&&a1(e.charCodeAt(t+2)),a5=e=>e<=57?e-48:(223&e)-55,a4=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,a3=e=>9===e||10===e||12===e||13===e||32===e,a6=e=>{var t;let n,i,o=e.length,r=0,a=0,s=!1;for(let t=0;t<o;t++){let n=e.charCodeAt(t);if(37===n&&a2(e,t,o)&&(n=16*a5(e.charCodeAt(t+1))+a5(e.charCodeAt(t+2)),t+=2),!a3(n)){if(61===n){a++;continue}if(!a4(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==(i=t%4)?1:2*(3===i))},a7={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:a8}=rW,a9=e=>{if(!rW.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},se=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},st=e=>{let t,n=void 0!==rW.global&&null!==rW.global?rW.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=rW.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?a8(r):"function"==typeof fetch,d=a8(a),c=a8(s);if(!l)return!1;let m=l&&a8(i),u=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=d&&m&&se(()=>{let e=!1,t=new a(aw.origin,{body:new i,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&&se(()=>rW.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new r8(`Response type '${e}' is not supported`,r8.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(rW.isBlob(e))return e.size;if(rW.isSpecCompliantForm(e)){let t=new a(aw.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rW.isArrayBufferView(e)||rW.isArrayBuffer(e)?e.byteLength:(rW.isURLSearchParams(e)&&(e+=""),rW.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=rW.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:i,data:l,signal:c,cancelToken:u,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:F,headers:x,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:A,maxRedirects:C}=aK(e),T=rW.isNumber(E)&&E>-1,L=rW.isNumber(A)&&A>-1,M=r||fetch;F=F?(F+"").toLowerCase():"text";let D=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,i=!1,o=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof r8?t:new aD(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new r8(`timeout of ${t}ms exceeded`,r8.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{if(!i){if(e.aborted)return void o.call(e);e.addEventListener("abort",o,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>rW.asap(a),s})([c,u&&u.toAbortSignal()],g),S=null,I=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),O=null,Y=()=>new r8("Request body larger than maxBodyLength limit",r8.ERR_BAD_REQUEST,e,S);try{var R,N;let r,c,u,g,P=(c="auth",rW.hasOwnProp(e,c)?e[c]:void 0);if(P){let e=rW.getSafeProp(P,"username")||"",t=rW.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,aw.origin);if(!r&&(e.username||e.password)){let t=a9(e.username),n=a9(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;x.delete("authorization"),x.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(T&&"string"==typeof n&&n.startsWith("data:")){let t;if(N=n,t="string"==typeof N?N.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let i=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(i))return t(o);let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&a2(o,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=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r})(-1===t?N:N.slice(0,t),a6)>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S)}if(L&&"get"!==i&&"head"!==i){let e=await b(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>A))throw Y()}let B=L&&(rW.isReadableStream(l)||rW.isStream(l)),j=(e,t,n)=>a0(e,65536,e=>{if(L&&e>A)throw O=Y();t&&t(e)},n);if(f&&"get"!==i&&"head"!==i&&(y||B)){if(t=null==t?await _(x,l):t,0!==t||B){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(rW.isFormData(l)&&(e=i.headers.get("content-type"))&&x.setContentType(e),i.body){let[e,n]=y&&aB(t,aP(aj(y)))||[];l=j(i.body,e,n)}}}else if(B&&!d&&m&&"get"!==i&&"head"!==i)l=j(l);else if(B&&d&&!f&&"get"!==i&&"head"!==i)throw new r8("Stream request bodies are not supported by the current fetch implementation",r8.ERR_NOT_SUPPORT,e,S);rW.isString(w)||(w=w?"include":"omit");let H=d&&"credentials"in a.prototype;if(rW.isFormData(l)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/1.20.0",!1);let z=null==k?k:Object.assign(Object.create(null),k);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:D,method:i.toUpperCase(),headers:rJ(x.normalize()),body:l,duplex:"half",credentials:H?w:void 0});d&&(rW.forEach(a7,(e,t)=>{void 0===U[t]&&(U[t]=e)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===C&&(U.redirect="manual",z&&(z.redirect="manual")),S=d&&new a(n,U);let $=await (d?M(S,z):M(n,U)),V=r4.from($.headers);if(T){let t=rW.toFiniteNumber(V.getContentLength());if(null!=t&&t>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S)}let W=h&&("stream"===F||"response"===F);if(h&&$.body&&(v||T||W&&I)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let n=rW.toFiniteNumber(V.getContentLength()),[i,o]=v&&aB(n,aP(aj(v),!0))||[];$=new s(a0($.body,65536,t=>{if(T&&t>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S);i&&i(t)},()=>{o&&o(),I&&I()}),t)}F=F||"text";let q=await p[rW.findKey(p,F)||"text"]($,e);if(T&&!h&&!W){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 o?new o().encode(q).byteLength:q.length)),"number"==typeof t&&t>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S)}return!W&&I&&I(),await new Promise((t,n)=>{aS(t,n,{data:q,headers:r4.from($.headers),status:$.status,statusText:$.statusText,config:e,request:S})})}catch(t){if(I&&I(),D&&D.aborted&&D.reason instanceof r8){let n=D.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(O)throw S&&!O.request&&(O.request=S),O;if(t instanceof r8)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new r8("Network Error",r8.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 r8.from(t,t&&t.code,e,S,t&&t.response)}}},sn=new Map,si=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,d=sn;for(;a--;)s=r[a],void 0===(l=d.get(s))&&d.set(s,l=a?new Map:st(t)),d=l;return l};si();let so={http:null,xhr:aX,fetch:{get:si}};rW.forEach(so,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let sr=e=>`- ${e}`,sa=e=>rW.isFunction(e)||null===e||!1===e,ss=function(e,t){let n,i,{length:o}=e=rW.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!sa(n)&&void 0===(i=so[(o=String(n)).toLowerCase()]))throw new r8(`Unknown adapter '${o}'`);if(i&&(rW.isFunction(i)||(i=i.get(t))))break;r[o||"#"+a]=i}if(!i){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 r8("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(sr).join("\n"):" "+sr(e[0]):"as no adapter specified"),r8.ERR_NOT_SUPPORT)}return i};function sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new aD(null,e)}function sd(e){let t=rW.toSafeFlatObject(e);return sl(t),t.headers=r4.from(rW.getSafeProp(t,"headers")),t.data=aL.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ss(t.adapter||aT.adapter,t)(t).then(function(e){sl(t),t.response=e;try{e.data=aL.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=r4.from(e.headers),e},function(e){if(!aM(e)&&(sl(t),e&&e.response)){t.response=e.response;try{e.response.data=aL.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=r4.from(e.response.headers)}return Promise.reject(e)})}let sc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let sm={};sc.transitional=function(e,t,n){function i(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new r8(i(o," has been removed"+(t?" in "+t:"")),r8.ERR_DEPRECATED);return t&&!sm[o]&&(sm[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},sc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let su=function(e,t,n){if("object"!=typeof e||null===e)throw new r8("options must be an object",r8.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let r=i[o],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 r8("option "+r+" must be "+n,r8.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new r8("Unknown option "+r,r8.ERR_BAD_OPTION)}};class sf{constructor(e){this.defaults=e||{},this.interceptors={request:new af,response:new af}}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,i="";if("string"==typeof n){let e=n.indexOf("\n");i=-1===e?"":n.slice(e+1)}if(e.stack){if(i){let t=i.indexOf("\n"),n=-1===t?-1:i.indexOf("\n",t+1),o=-1===n?"":i.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+i)}}else e.stack=i}catch(e){}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:r,headers:a}=t=aq(this.defaults,t);void 0!==o&&su(o,{silentJSONParsing:sc.transitional(sc.boolean),forcedJSONParsing:sc.transitional(sc.boolean),clarifyTimeoutError:sc.transitional(sc.boolean),legacyInterceptorReqResOrdering:sc.transitional(sc.boolean),advertiseZstdAcceptEncoding:sc.transitional(sc.boolean),validateStatusUndefinedResolves:sc.transitional(sc.boolean)},!1),null!=r&&(rW.isFunction(r)?t.paramsSerializer={serialize:r}:su(r,{encode:sc.function,serialize:sc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),su(t,{baseUrl:sc.spelling("baseURL"),withXsrfToken:sc.spelling("withXSRFToken")},!0),t.method=(rW.getSafeProp(t,"method")||rW.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&rW.merge(a.common,a[t.method]);a&&rW.forEach(aA.concat("common"),e=>{delete a[e]}),t.headers=r4.concat(s,a);let l=[],d=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;d=d&&e.synchronous;let n=t.transitional||ah;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let m=0;if(!d){let e=[sd.bind(this),void 0];for(e.unshift(...l),e.push(...c),i=e.length,n=Promise.resolve(t);m<i;)n=n.then(e[m++],e[m++]);return n}i=l.length;let u=t;for(;m<i;){let e=l[m++],t=l[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let i=t.call(this,e);rW.isThenable(i)&&(n=Promise.resolve(i).then(()=>sd.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=sd.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,i=c.length;m<i;)n=n.then(c[m++],c[m++]);return n}getUri(e){return al(aV((e=aq(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rW.forEach(["delete","get","head","options"],function(e){sf.prototype[e]=function(t,n){return this.request(aq(n||{},{method:e,url:t,data:n&&rW.hasOwnProp(n,"data")?n.data:void 0}))}}),rW.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(aq(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}sf.prototype[e]=t(),"query"!==e&&(sf.prototype[e+"Form"]=t(!0))});let sh=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,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new aD(e,i,o),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}}},sp={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(sp).forEach(([e,t])=>{void 0===sp[t]&&(sp[t]=e)});let sb=function e(t){let n=new sf(t),i=re(sf.prototype.request,n);return rW.extend(i,sf.prototype,n,{allOwnKeys:!0}),rW.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(aq(t,n))},i}(aT);sb.Axios=sf,sb.CanceledError=aD,sb.CancelToken=sh,sb.isCancel=aM,sb.VERSION="1.20.0",sb.toFormData=ai,sb.AxiosError=r8,sb.Cancel=sb.CanceledError,sb.all=function(e){return Promise.all(e)},sb.spread=function(e){return function(t){return e.apply(null,t)}},sb.isAxiosError=function(e){return rW.isObject(e)&&!0===e.isAxiosError},sb.mergeConfig=aq,sb.AxiosHeaders=r4,sb.formToJSON=e=>aE(rW.isHTMLForm(e)?new FormData(e):e),sb.getAdapter=ss,sb.HttpStatusCode=sp,sb.default=sb;class s_{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:sB`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:sB`info`,options:e})}}class sg{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:sB`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:sB`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:sB`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:sB`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:sB`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:sB`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:sB`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:sB`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:sB`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:sB`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:sB`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:sB`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:sB`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/${t}`,options:n})}}class sv{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:sB`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:sB`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:sB`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:sB`provisioning/${e}`,data:t,options:n})}}class sy{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:sB`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`asset/predicted/${e}/${t}`,data:n,options:i})}}class sF{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:sB`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:sB`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:sB`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:sB`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:sB`dashboard/${e}/${t}`,options:n})}}class sx{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:sB`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:sB`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:sB`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:sB`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:sB`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:sB`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:sB`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:sB`alarm/${e}/assets`,queryParams:t,options:n})}}class sw{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:sB`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:sB`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:sB`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:sB`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:sB`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:sB`gateway/status/${e}`,options:t})}}class sk{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:sB`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:sB`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:sB`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:sB`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:sB`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:sB`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:sB`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:sB`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:sB`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:sB`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:sB`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:sB`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:sB`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:sB`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:sB`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:sB`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`asset/${e}/attribute/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:sB`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:sB`asset/${e}/child`,queryParams:t,options:n})}}class sE{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:sB`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:sB`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:sB`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:sB`configuration/manager/image/${e}`,options:t})}}class sA{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:sB`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:sB`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:sB`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:sB`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:sB`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:sB`service/${e}/${t}`,options:n})}}class sC{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:sB`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:sB`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:sB`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:sB`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:sB`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:sB`map/upload`,queryParams:e,options:t})}}class sT{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:sB`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:sB`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:sB`asset/datapoint/${e}/${t}`,data:n,options:i})}}class sL{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:sB`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:sB`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:sB`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:sB`syslog/event`,queryParams:e,options:t})}}class sM{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:sB`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:sB`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:sB`flow/${e}`,options:t})}}class sD{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:sB`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:sB`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:sB`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:sB`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:sB`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:sB`notification/${e}/delivered`,queryParams:t,options:n})}}class sS{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:sB`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:sB`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:sB`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:sB`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:sB`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:sB`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:sB`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:sB`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:sB`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:sB`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:sB`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:sB`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:sB`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:sB`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:sB`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:sB`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`rules/${e}`,data:t,options:n})}}class sI{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:sB`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:sB`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:sB`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:sB`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:sB`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:sB`model/valueDescriptors`,queryParams:e,options:t})}}class sO{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:sB`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:sB`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:sB`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:sB`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:sB`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class sY{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:sB`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:sB`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:sB`apps/info`,options:e})}}class sR{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:sB`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:sB`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:sB`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:sB`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:sB`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:sB`realm/${e}`,data:t,options:n})}}class sN{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:sB`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:sB`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:sB`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class sP{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:sB`console/register`,data:e,options:t})}}function sB(e,...t){let n="";for(let i=0;i<t.length;i++)n+=e[i],n+=encodeURIComponent(t[i]);return n+e[e.length-1]}class sj{constructor(e,t=sb.create()){this._statusResource=new sz(e,t),this._userResource=new sU(e,t),this._provisioningResource=new s$(e,t),this._assetPredictedDatapointResource=new sV(e,t),this._dashboardResource=new sW(e,t),this._alarmResource=new sq(e,t),this._gatewayClientResource=new sG(e,t),this._assetResource=new sK(e,t),this._configurationResource=new sX(e,t),this._externalServiceResource=new sJ(e,t),this._mapResource=new sQ(e,t),this._assetDatapointResource=new sZ(e,t),this._syslogResource=new s0(e,t),this._flowResource=new s1(e,t),this._notificationResource=new s2(e,t),this._rulesResource=new s5(e,t),this._assetModelResource=new s4(e,t),this._gatewayServiceResource=new s3(e,t),this._appResource=new s6(e,t),this._realmResource=new s7(e,t),this._agentResource=new s8(e,t),this._consoleResource=new s9(e,t),this._assetResource=new sK(e,t)}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get NotificationResource(){return this._notificationResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}}class sH{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 sz extends s_{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sU extends sg{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s$ extends sv{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sV extends sy{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sW extends sF{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sq extends sx{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sG extends sw{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sK extends sk{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sX extends sE{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sJ extends sA{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sQ extends sC{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sZ extends sT{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s0 extends sL{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s1 extends sM{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s2 extends sD{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s5 extends sS{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s4 extends sI{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s3 extends sO{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s6 extends sY{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s7 extends sR{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s8 extends sN{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s9 extends sP{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}var le=n(8183),lt=n.n(le);sb.isAxiosError;let ln=new class{get api(){return this._client}constructor(){this._axiosInstance=sb.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>lt().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 sj(e,this._axiosInstance)}};var li=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};(hu=pF||(pF={})).DISCONNECTED="DISCONNECTED",hu.CONNECTED="CONNECTED",hu.CONNECTING="CONNECTING";let lo="SUBSCRIBED:",lr="UNAUTHORIZED:",la="TRIGGERED:",ls="EVENT:";class ll{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=ld.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=pF.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===pF.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(pF.CONNECTING),this._connectingDeferred=new oX,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=ld.MIN_RECONNECT_DELAY,this._onStatusChanged(pF.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!==pF.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new oX};return null!=this._pendingSubscription||this._status!==pF.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 li(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===pF.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==pF.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return li(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+ll._subscriptionCounter++;if(!this._assetEventPromise){let e;lX.authenticated||(e={filterType:"asset",realm:lX.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(o,e=>{let t=e.asset.id;i?i.find(e=>t===e)&&n(e):e.asset.realm===lX.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(i&&t){let e={messageID:"read-assets:"+i.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(o)&&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),o&&this.unsubscribe(o),t}return o})})}subscribeAttributeEvents(e,t,n){return li(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0],o=i?e.map(e=>e.id):e,r=i?e:void 0,a="AttributeEvent"+ll._subscriptionCounter++;if(!this._attributeEventPromise){let e;lX.authenticated||(e={filterType:"asset",realm:lX.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;i?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):o?o.find(e=>r.id===e)&&n(t):t.realm===lX.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&o){let e={messageID:"read-assets:"+o.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:o}};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===pF.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===pF.CONNECTED&&this._onStatusChanged(pF.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(pF.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<ld.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(ld.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ll.MIN_RECONNECT_DELAY=0,ll.MAX_RECONNECT_DELAY=3e4,ll._subscriptionCounter=0;class ld extends ll{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="+lX.config.realm;return this._connectDeferred=new oX,(lX.authenticated?lX.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(lo)){let e=JSON.parse(t.substring(lo.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(lr)){let e=JSON.parse(t.substring(lr.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(la)){let e=JSON.parse(t.substring(la.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(ls)){let e=JSON.parse(t.substring(ls.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 oX,e.subscriptionId||(e.subscriptionId=ld._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=ls+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 oX;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(ls+JSON.stringify(e)),t.promise}}ld._subscriptionCounter=1;let lc=["__proto__","constructor","prototype"];function lm(e){return!("string"!=typeof e||0===e.length||e.length>128||lc.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function lu(e){return!(!lm(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let lf={lng:lu,ns:function(e){return!(!lm(e)||e.indexOf("//")>-1)}};function lh(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function lp(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let lb=/\{\{(.+?)\}\}/g;function l_(e,t){let n=!1,i=e.replace(lb,(e,i)=>{let o=i.trim();if(lc.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=lf[o]||lu,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let lg="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?o=fetch:lg&&"function"==typeof lg.fetch&&(o=lg.fetch);let lv=lp()&&lg?lg.XMLHttpRequest:void 0,ly="function"==typeof ActiveXObject&&lg?lg.ActiveXObject:void 0,lF=["__proto__","constructor","prototype"],lx=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))lF.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},lw=(e,t,n,i)=>{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(i){let o=i(e,t);if(o instanceof Promise)return void o.then(r).catch(n)}"function"==typeof fetch?fetch(e,t).then(r).catch(n):o(e,t).then(r).catch(n)},lk=(e,t,n,i)=>{if("function"==typeof n&&(i=n,n=void 0),i=i||(()=>{}),o&&0!==t.indexOf("file:")){var r=t,a=n,s=i;e.queryStringParams&&(r=lx(r,e.queryStringParams));let o={..."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&&(o["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(o["Content-Type"]="application/json");let l="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,d={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:o,...e._omitFetchOptions?{}:l},c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{lw(r,d,s,c)}catch(t){if(!l||0===Object.keys(l).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(l).forEach(e=>{delete d[e]}),lw(r,d,s,c),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(lp()||"function"==typeof ActiveXObject){var l=t,d=n,c=i;d&&"object"==typeof d&&(d=lx("",d).slice(1)),e.queryStringParams&&(l=lx(l,e.queryStringParams));try{let t=lv?new lv:new ly("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",l,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,d&&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))lF.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(d)}catch(e){console&&console.log(e)}return}i(Error("No fetch and no xhr implementation found!"))};var lE=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:lk,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,i,o){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 o(null,{});let a=l_(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(lh).join(", ")+"] namespaces=["+n.map(lh).join(", ")+"]"),!1);this.loadUrl(a,o,t,i)})}loadUrl(e,t,n,i){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof i?[i]:i),r=lh(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,o,(e,o)=>{let a,s;if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+r+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+r+"; status code: "+o.status,!1);if(!o&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+lh(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof o.data?this.options.parse(o.data,n,i):o.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,i,o){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,i),a=0,s=[],l=[];e.forEach(n=>{let i=this.options.addPath;"function"==typeof this.options.addPath&&(i=this.options.addPath(n,t));let d=l_(i,{lng:n,ns:t});if(null==d){a+=1,o&&a===e.length&&o(s,l);return}this.options.request(this.options,d,r,(t,n)=>{a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,i=e.language;if(i&&"cimode"===i.toLowerCase())return;let o=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>o.indexOf(e)&&o.push(e)})};r(i),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),o.forEach(t=>{this.allOptions.ns.forEach(i=>{e.read(t,i,"read",null,null,(o,r)=>{o&&n.warn(`loading namespace ${i} for language ${t} failed`,o),!o&&r&&n.log(`loaded namespace ${i} for language ${t}`,r),e.loaded(`${t}|${i}`,o,r)})})})}};lE.type="backend";class lA extends nK{constructor(e){if(super(e),this.it=el,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===el||null==e)return this._t=void 0,this.it=e;if(e===es)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:[]}}}lA.directiveName="unsafeHTML",lA.resultType=1,nG(lA);class lC extends lA{}lC.directiveName="unsafeSVG",lC.resultType=2;let lT=nG(lC),lL={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 lM=function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class lD extends CustomEvent{constructor(){super(lD.NAME,{bubbles:!0,composed:!0})}}lD.NAME="or-iconset-added";let lS=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new lD)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return ea``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):ea``}},lI=class extends eT{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[g`
|
|
1608
|
+
`}_onOpenedChanged(e){this.opened=e.detail.value}}function or(e,t,n){return e?t(e):n?.(e)}eM(oo),n(4532),(fh=hx||(hx={})).CREATE="CREATE",fh.UPDATE="UPDATE",fh.DELETE="DELETE",fh.DELETE_FINISHED="DELETE_FINISHED",(fp=hw||(hw={})).LOW="LOW",fp.MEDIUM="MEDIUM",fp.HIGH="HIGH",(fb=hk||(hk={})).MANUAL="MANUAL",fb.CLIENT="CLIENT",fb.GLOBAL_RULESET="GLOBAL_RULESET",fb.REALM_RULESET="REALM_RULESET",fb.ASSET_RULESET="ASSET_RULESET",fb.AGENT="AGENT",(f_=hE||(hE={})).OPEN="OPEN",f_.ACKNOWLEDGED="ACKNOWLEDGED",f_.IN_PROGRESS="IN_PROGRESS",f_.RESOLVED="RESOLVED",f_.CLOSED="CLOSED",(fg=hA||(hA={})).BOTTOM_LEFT="BOTTOM_LEFT",fg.BOTTOM_RIGHT="BOTTOM_RIGHT",fg.TOP_LEFT="TOP_LEFT",fg.TOP_RIGHT="TOP_RIGHT",(fv=hC||(hC={})).CREATE="CREATE",fv.READ="READ",fv.UPDATE="UPDATE",fv.DELETE="DELETE",(fy=hT||(hT={})).NONE="NONE",fy.FORECAST="FORECAST",fy.SETPOINT="SETPOINT",(fF=hL||(hL={})).DISCONNECTED="DISCONNECTED",fF.CONNECTING="CONNECTING",fF.DISCONNECTING="DISCONNECTING",fF.CONNECTED="CONNECTED",fF.DISABLED="DISABLED",fF.WAITING="WAITING",fF.ERROR="ERROR",fF.STOPPED="STOPPED",(fx=hM||(hM={})).REQUEST_START="REQUEST_START",fx.REQUEST_REPEATING="REQUEST_REPEATING",fx.REQUEST_CANCEL="REQUEST_CANCEL",fx.READY="READY",fx.COMPLETED="COMPLETED",fx.RUNNING="RUNNING",fx.CANCELLED="CANCELLED",(fw=hD||(hD={})).TOGGLE="TOGGLE",fw.INCREMENT="INCREMENT",fw.DECREMENT="DECREMENT",fw.NEGATE="NEGATE",(fk=hS||(hS={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",fk.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",fk.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",fk.INVALID_VALUE="INVALID_VALUE",fk.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",fk.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",fk.CANNOT_PROCESS="CANNOT_PROCESS",fk.QUEUE_FULL="QUEUE_FULL",fk.UNKNOWN="UNKNOWN",fk.ASSET_ID_MISSING="ASSET_ID_MISSING",fk.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(fE=hI||(hI={})).PUBLIC="PUBLIC",fE.SHARED="SHARED",fE.PRIVATE="PRIVATE",(fA=hO||(hO={})).OFF="OFF",fA.ONE_MIN="ONE_MIN",fA.FIVE_MIN="FIVE_MIN",fA.QUARTER="QUARTER",fA.ONE_HOUR="ONE_HOUR",(fC=hY||(hY={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",fC.KEEP_LAYOUT="KEEP_LAYOUT",fC.REDIRECT="REDIRECT",fC.BLOCK_DEVICE="BLOCK_DEVICE",(fT=hR||(hR={})).CSV="CSV",fT.CSV_CROSSTAB="CSV_CROSSTAB",fT.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(fL=hN||(hN={})).MINUTE="MINUTE",fL.HOUR="HOUR",fL.DAY="DAY",fL.WEEK="WEEK",fL.MONTH="MONTH",fL.YEAR="YEAR",(fM=hP||(hP={})).MIN="MIN",fM.AVG="AVG",fM.MAX="MAX",fM.DIFFERENCE="DIFFERENCE",fM.COUNT="COUNT",fM.SUM="SUM",fM.MODE="MODE",fM.MEDIAN="MEDIAN",(fD=hB||(hB={})).TERMINATING="TERMINATING",fD.DISABLED="DISABLED",fD.ALREADY_CONNECTED="ALREADY_CONNECTED",fD.UNRECOGNISED="UNRECOGNISED",fD.PERMANENT_ERROR="PERMANENT_ERROR",fD.SYNC_ERROR="SYNC_ERROR",(fS=hj||(hj={})).HTTPS="HTTPS",fS.HTTP="HTTP",fS.TCP="TCP",(fI=hH||(hH={})).GET="GET",fI.POST="POST",fI.PUT="PUT",fI.DELETE="DELETE",fI.OPTIONS="OPTIONS",fI.PATCH="PATCH",(fO=hz||(hz={})).KEYCLOAK="KEYCLOAK",fO.NONE="NONE",(fY=hU||(hU={})).WEBSOCKET="WEBSOCKET",fY.POLLING="POLLING",(fR=h$||(h$={})).INTERNAL="INTERNAL",fR.CLIENT="CLIENT",fR.GLOBAL_RULESET="GLOBAL_RULESET",fR.REALM_RULESET="REALM_RULESET",fR.ASSET_RULESET="ASSET_RULESET",(fN=hV||(hV={})).REALM="REALM",fN.USER="USER",fN.ASSET="ASSET",fN.CUSTOM="CUSTOM",(fP=hW||(hW={})).NORMAL="NORMAL",fP.HIGH="HIGH",(fB=hq||(hq={})).DEVICE="DEVICE",fB.TOPIC="TOPIC",fB.CONDITION="CONDITION",(fj=hG||(hG={})).ALWAYS="ALWAYS",fj.ONCE="ONCE",fj.HOURLY="HOURLY",fj.DAILY="DAILY",fj.WEEKLY="WEEKLY",fj.MONTHLY="MONTHLY",fj.ANNUALLY="ANNUALLY",(fH=hK||(hK={})).TITLE="TITLE",fH.SOURCE="SOURCE",fH.STATUS="STATUS",fH.SENT_ON="SENT_ON",fH.DELIVERED_ON="DELIVERED_ON",(fz=hX||(hX={})).MESSAGE_INVALID="MESSAGE_INVALID",fz.CERTIFICATE_INVALID="CERTIFICATE_INVALID",fz.UNAUTHORIZED="UNAUTHORIZED",fz.FORBIDDEN="FORBIDDEN",fz.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",fz.CONFIG_DISABLED="CONFIG_DISABLED",fz.USER_DISABLED="USER_DISABLED",fz.SERVER_ERROR="SERVER_ERROR",fz.ASSET_ERROR="ASSET_ERROR",fz.SERVER_BUSY="SERVER_BUSY",(fU=hJ||(hJ={})).PRIVATE="PRIVATE",fU.PROTECTED="PROTECTED",fU.PUBLIC="PUBLIC",(f$=hQ||(hQ={})).EXACT="EXACT",f$.BEGIN="BEGIN",f$.END="END",f$.CONTAINS="CONTAINS",(fV=hZ||(hZ={})).EQUALS="EQUALS",fV.GREATER_THAN="GREATER_THAN",fV.GREATER_EQUALS="GREATER_EQUALS",fV.LESS_THAN="LESS_THAN",fV.LESS_EQUALS="LESS_EQUALS",fV.BETWEEN="BETWEEN",(fW=h0||(h0={})).CREATED_ON="CREATED_ON",fW.NAME="NAME",fW.ASSET_TYPE="ASSET_TYPE",fW.PARENT_ID="PARENT_ID",fW.REALM="REALM",(fq=h1||(h1={})).RESTRICTED="RESTRICTED",fq.LINKED="LINKED",fq.REALM="REALM",(fG=h2||(h2={})).AT_LEAST_ONE="AT_LEAST_ONE",fG.ALL="ALL",fG.NONE="NONE",(fK=h5||(h5={})).AND="AND",fK.OR="OR",(fX=h4||(h4={})).CREATED_ON="CREATED_ON",fX.FIRST_NAME="FIRST_NAME",fX.LAST_NAME="LAST_NAME",fX.USERNAME="USERNAME",fX.EMAIL="EMAIL",(fJ=h3||(h3={})).STOPPED="STOPPED",fJ.RUNNING="RUNNING",fJ.ERROR="ERROR",(fQ=h6||(h6={})).JAVASCRIPT="JAVASCRIPT",fQ.GROOVY="GROOVY",fQ.JSON="JSON",fQ.FLOW="FLOW",(fZ=h7||(h7={})).READY="READY",fZ.DEPLOYED="DEPLOYED",fZ.COMPILATION_ERROR="COMPILATION_ERROR",fZ.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",fZ.EXECUTION_ERROR="EXECUTION_ERROR",fZ.LOOP_ERROR="LOOP_ERROR",fZ.DISABLED="DISABLED",fZ.PAUSED="PAUSED",fZ.EXPIRED="EXPIRED",fZ.REMOVED="REMOVED",fZ.EMPTY="EMPTY",(f0=h8||(h8={})).SUNRISE="SUNRISE",f0.SUNSET="SUNSET",f0.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",f0.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",f0.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",f0.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",f0.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",f0.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",f0.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",f0.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",f0.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",f0.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",f0.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",f0.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",f0.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",f0.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",f0.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",f0.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",f0.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",f0.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(f1=h9||(h9={})).NUMBER="NUMBER",f1.NUMBER_ARRAY="NUMBER_ARRAY",f1.STRING="STRING",f1.BOOLEAN="BOOLEAN",f1.TRIGGER="TRIGGER",f1.COLOR="COLOR",f1.ANY="ANY",(f2=pe||(pe={})).NEW_LINE="NEW_LINE",f2.SPACER="SPACER",(f5=pt||(pt={})).INPUT="INPUT",f5.PROCESSOR="PROCESSOR",f5.OUTPUT="OUTPUT",f5.THEN="THEN",(f4=pn||(pn={})).TEXT="TEXT",f4.MULTILINE="MULTILINE",f4.NUMBER="NUMBER",f4.DROPDOWN="DROPDOWN",f4.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",f4.CHECKBOX="CHECKBOX",f4.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",f4.COLOR="COLOR",f4.DATE="DATE",(f3=pi||(pi={})).ADD="ADD",f3.ADD_OR_REPLACE="ADD_OR_REPLACE",f3.REPLACE="REPLACE",f3.DELETE="DELETE",f3.CLEAR="CLEAR",(f6=po||(po={})).PER_ASSET="PER_ASSET",f6.GLOBAL="GLOBAL",(f7=pr||(pr={})).READ_ADMIN="read:admin",f7.READ_LOGS="read:logs",f7.READ_USERS="read:users",f7.READ_MAP="read:map",f7.READ_ASSETS="read:assets",f7.READ_RULES="read:rules",f7.READ_INSIGHTS="read:insights",f7.READ_ALARMS="read:alarms",f7.READ_NOTIFICATIONS="read:notifications",f7.READ_SERVICES="read:services",f7.READ_TUNNELS="read:tunnels",f7.WRITE_SERVICES="write:services",f7.WRITE_USER="write:user",f7.WRITE_ADMIN="write:admin",f7.WRITE_LOGS="write:logs",f7.WRITE_ASSETS="write:assets",f7.WRITE_ATTRIBUTES="write:attributes",f7.WRITE_RULES="write:rules",f7.WRITE_INSIGHTS="write:insights",f7.WRITE_ALARMS="write:alarms",f7.WRITE_NOTIFICATIONS="write:notifications",f7.WRITE_TUNNELS="write:tunnels",f7.READ="read",f7.WRITE="write",(f8=pa||(pa={})).REGISTER="REGISTER",f8.UPDATE="UPDATE",f8.DEREGISTER="DEREGISTER",(f9=ps||(ps={})).AVAILABLE="AVAILABLE",f9.UNAVAILABLE="UNAVAILABLE",(he=pl||(pl={})).ASSET="ASSET",he.AGENT="AGENT",he.NOTIFICATION="NOTIFICATION",he.ALARM="ALARM",he.RULES="RULES",he.PROTOCOL="PROTOCOL",he.GATEWAY="GATEWAY",he.MODEL_AND_VALUES="MODEL_AND_VALUES",he.API="API",he.DATA="DATA",(ht=pd||(pd={})).INFO="INFO",ht.WARN="WARN",ht.ERROR="ERROR",(hn=pc||(pc={})).NUMERIC="numeric",hn.DIGIT_2="2-digit",hn.FULL="full",hn.LONG="long",hn.MEDIUM="medium",hn.SHORT="short",hn.NARROW="narrow",(hi=pm||(pm={})).SECONDLY="SECONDLY",hi.MINUTELY="MINUTELY",hi.HOURLY="HOURLY",hi.DAILY="DAILY",hi.WEEKLY="WEEKLY",hi.MONTHLY="MONTHLY",hi.YEARLY="YEARLY",(ho=pu||(pu={})).OMIT="OMIT",ho.BACKWARD="BACKWARD",ho.FORWARD="FORWARD",(hr=pf||(pf={})).JAPANESE="JAPANESE",hr.BUDDHIST="BUDDHIST",hr.ROC="ROC",hr.ISLAMIC="ISLAMIC",hr.ISO8601="ISO8601",hr.CHINESE="CHINESE",hr.ETHIOPIC="ETHIOPIC",hr.HEBREW="HEBREW",hr.GREGORIAN="GREGORIAN",(ha=ph||(ph={})).SU="SU",ha.MO="MO",ha.TU="TU",ha.WE="WE",ha.TH="TH",ha.FR="FR",ha.SA="SA",(hs=pp||(pp={})).PEOPLECOUNTERASSET="PeopleCounterAsset",hs.MAILAGENT="MailAgent",hs.UDPAGENT="UDPAgent",hs.ROOMASSET="RoomAsset",hs.CITYASSET="CityAsset",hs.VENTILATIONASSET="VentilationAsset",hs.TRADFRILIGHTASSET="TradfriLightAsset",hs.CONSOLEASSET="ConsoleAsset",hs.PRESENCESENSORASSET="PresenceSensorAsset",hs.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",hs.LIGHTASSET="LightAsset",hs.KNXAGENT="KNXAgent",hs.THETHINGSSTACKAGENT="TheThingsStackAgent",hs.PLUGASSET="PlugAsset",hs.CHIRPSTACKAGENT="ChirpStackAgent",hs.WEATHERASSET="WeatherAsset",hs.THINGASSET="ThingAsset",hs.WEBSOCKETAGENT="WebsocketAgent",hs.TCPAGENT="TCPAgent",hs.GATEWAYASSET="GatewayAsset",hs.SERIALAGENT="SerialAgent",hs.BLUETOOTHMESHAGENT="BluetoothMeshAgent",hs.PARKINGASSET="ParkingAsset",hs.TRADFRIPLUGASSET="TradfriPlugAsset",hs.SIMULATORAGENT="SimulatorAgent",hs.SNMPAGENT="SNMPAgent",hs.GROUPASSET="GroupAsset",hs.BUILDINGASSET="BuildingAsset",hs.MODBUSSERIALAGENT="ModbusSerialAgent",hs.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",hs.MQTTAGENT="MQTTAgent",hs.VELBUSTCPAGENT="VelbusTCPAgent",hs.ARTNETLIGHTASSET="ArtnetLightAsset",hs.VELBUSSERIALAGENT="VelbusSerialAgent",hs.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",hs.MICROPHONEASSET="MicrophoneAsset",hs.MODBUSTCPAGENT="ModbusTcpAgent",hs.ZWAVEAGENT="ZWaveAgent",hs.HTTPAGENT="HTTPAgent",hs.DOORASSET="DoorAsset",hs.THERMOSTATASSET="ThermostatAsset",hs.SHIPASSET="ShipAsset",(hl=pb||(pb={})).COLOURRGB="colourRGB",hl.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",hl.PRICEHOURLY="priceHourly",hl.MQTTPORT="MQTTPort",hl.PINGDISABLED="pingDisabled",hl.FLOW="flow",hl.CHILDASSETTYPE="childAssetType",hl.LASTACCESS="lastAccess",hl.POSITION="position",hl.NETWORKKEY="networkKey",hl.UNIVERSE="universe",hl.ROUTINGMODE="routingMode",hl.MSSINUMBER="MSSINumber",hl.LASTWILLRETAIN="lastWillRetain",hl.LASTWILLTOPIC="lastWillTopic",hl.SERIALBAUDRATE="serialBaudrate",hl.SUBSCRIBEQOS="subscribeQos",hl.LEDCOUNT="lEDCount",hl.LOCKED="locked",hl.CLOUDCOVERAGE="cloudCoverage",hl.BASEURL="baseURL",hl.PROTOCOL="protocol",hl.REQUIREDVALUES="requiredValues",hl.REGION="region",hl.CONSOLEPLATFORM="consolePlatform",hl.GATEWAYSTATUS="gatewayStatus",hl.NO2LEVEL="NO2Level",hl.ATMOSPHERICPRESSURE="atmosphericPressure",hl.SERIALPORT="serialPort",hl.APPLICATIONID="applicationId",hl.TAGS="tags",hl.UNLOCK="unlock",hl.CHECKINTERVALSECONDS="checkIntervalSeconds",hl.LOCATION="location",hl.CLIENTSECRET="clientSecret",hl.WINDDIRECTION="windDirection",hl.WINDSPEED="windSpeed",hl.PARTICLESPM10="particlesPM10",hl.APPLICATIONKEY="applicationKey",hl.LENGTH="length",hl.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",hl.USERNAMEPASSWORD="usernamePassword",hl.WATERLEVEL="waterLevel",hl.CONNECTHEADERS="connectHeaders",hl.CONSOLENAME="consoleName",hl.WEBSOCKETQUERY="websocketQuery",hl.PREFERHTML="preferHTML",hl.PARITY="parity",hl.COOLING="cooling",hl.POLLINGMILLIS="pollingMillis",hl.SOILTEMPERATURE="soilTemperature",hl.SUNIRRADIANCE="sunIrradiance",hl.MESSAGEMAXLENGTH="messageMaxLength",hl.WINDGUSTSPEED="windGustSpeed",hl.LIGHTID="lightId",hl.PROXYADDRESS="proxyAddress",hl.REQUESTQUERYPARAMETERS="requestQueryParameters",hl.MQTTHOST="MQTTHost",hl.SECUREGRPC="secureGRPC",hl.MODEL="model",hl.STREET="street",hl.MANUFACTURER="manufacturer",hl.DELETEPROCESSEDMAIL="deleteProcessedMail",hl.RESUMESESSION="resumeSession",hl.ONOFF="onOff",hl.APIKEY="ApiKey",hl.CITY="city",hl.PRESENCE="presence",hl.SPACESOCCUPIED="spacesOccupied",hl.STARTTLS="startTLS",hl.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",hl.WEBSOCKETPATH="websocketPath",hl.AGENTSTATUS="agentStatus",hl.PRICEDAILY="priceDaily",hl.COUNTGROWTHMINUTE="countGrowthMinute",hl.IMONUMBER="IMONumber",hl.ATTRIBUTION="Attribution",hl.TENANTID="tenantId",hl.REQUESTHEADERS="requestHeaders",hl.HOST="host",hl.COUNTOUTMINUTE="countOutMinute",hl.MESSAGECHARSET="messageCharset",hl.CERTIFICATEALIAS="certificateAlias",hl.EMAIL="email",hl.BINDPORT="bindPort",hl.CONSOLEVERSION="consoleVersion",hl.PARTICLESPM1="particlesPM1",hl.MTU="mtu",hl.SPEED="speed",hl.MESSAGESTRIPDELIMITER="messageStripDelimiter",hl.AREA="area",hl.COUNTRY="country",hl.SHIPTYPE="shipType",hl.CONNECTSUBSCRIPTIONS="connectSubscriptions",hl.RELATIVEHUMIDITY="relativeHumidity",hl.SOURCEADDRESS="sourceAddress",hl.RAINFALL="rainfall",hl.OAUTHGRANT="oAuthGrant",hl.OZONELEVEL="ozoneLevel",hl.SEQUENCENUMBER="sequenceNumber",hl.COUNTINMINUTE="countInMinute",hl.PORT="port",hl.SUNALTITUDE="sunAltitude",hl.COUNTOUT="countOut",hl.ROOMNUMBER="roomNumber",hl.TUNNELINGSUPPORTED="tunnelingSupported",hl.ENINUMBER="ENINumber",hl.PARTICLESPM2_5="particlesPM2_5",hl.AGENTDISABLED="agentDisabled",hl.DISABLED="disabled",hl.COUNTIN="countIn",hl.MESSAGESOURCEADDRESS="messageSourceAddress",hl.PROVISIONWEATHERASSET="ProvisionWeatherAsset",hl.TIMEINJECTIONINTERVAL="timeInjectionInterval",hl.TEMPERATURESETPOINT="temperatureSetpoint",hl.CONSOLEPROVIDERS="consoleProviders",hl.COUNTTOTAL="countTotal",hl.SPACESBUFFER="spacesBuffer",hl.DEVICECONFIG="deviceConfig",hl.SPACESTOTAL="spacesTotal",hl.BINDHOST="bindHost",hl.FANSPEED="fanSpeed",hl.MESSAGECONVERTBINARY="messageConvertBinary",hl.NOTES="notes",hl.MAILFOLDERNAME="mailFolderName",hl.MESSAGEDELIMITERS="messageDelimiters",hl.TEMPERATURE="temperature",hl.SUNZENITH="sunZenith",hl.SNMPVERSIONVALUE="SNMPVersionValue",hl.BRIGHTNESS="brightness",hl.POSTALCODE="postalCode",hl.SPACESOPEN="spacesOpen",hl.HUMIDITY="humidity",hl.SOUNDLEVEL="soundLevel",hl.SECUREMODE="secureMode",hl.DIRECTION="direction",hl.STOPBITS="stopbits",hl.UVINDEX="uVIndex",hl.CONNECTURL="connectURL",hl.CLIENTID="clientId",hl.NATMODE="NATMode",hl.UPDATEONWRITE="updateOnWrite",hl.LASTWILLPAYLOAD="lastWillPayload",hl.GROUPID="groupId",hl.FOLLOWREDIRECTS="followRedirects",hl.SUNAZIMUTH="sunAzimuth",hl.MESSAGECONVERTHEX="messageConvertHex",hl.WEBSOCKETMODE="websocketMode",hl.COLOURTEMPERATURE="colourTemperature",hl.PUBLISHQOS="publishQos",hl.DATABITS="dataBits",(hd=p_||(p_={})).FORMAT="format",hd.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",hd.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",hd.SECRET="secret",hd.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",hd.ATTRIBUTELINKS="attributeLinks",hd.RULERESETIMMEDIATE="ruleResetImmediate",hd.RULESTATE="ruleState",hd.AGENTLINKCONFIG="agentLinkConfig",hd.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",hd.FORECAST="forecast",hd.STOREDATAPOINTS="storeDataPoints",hd.LABEL="label",hd.CONSTRAINTS="constraints",hd.UNITS="units",hd.USERCONNECTED="userConnected",hd.SHOWONDASHBOARD="showOnDashboard",hd.READONLY="readOnly",hd.MULTILINE="multiline",hd.ACCESSPUBLICWRITE="accessPublicWrite",hd.MOMENTARY="momentary",hd.AGENTLINK="agentLink",hd.ACCESSRESTRICTEDREAD="accessRestrictedRead",hd.ACCESSPUBLICREAD="accessPublicRead",(hc=pg||(pg={})).ASSETQUERY="assetQuery",hc.WSURL="WS_URL",hc.COLOURRGB="colourRGB",hc.VALUEFORMAT="valueFormat",hc.TEXT="text",hc.BYTE="byte",hc.USERNAMEANDPASSWORD="usernameAndPassword",hc.HTTPURL="HTTP_URL",hc.ATTRIBUTELINK="attributeLink",hc.ASSETID="assetID",hc.NUMBERMAP="numberMap",hc.HTTPMETHOD="HTTPMethod",hc.ATTRIBUTESTATE="attributeState",hc.POSITIVENUMBER="positiveNumber",hc.POSITIVEINTEGER="positiveInteger",hc.EXECUTIONSTATUS="executionStatus",hc.BIGINTEGER="bigInteger",hc.VALUEDESCRIPTOR="valueDescriptor",hc.PERIODDURATIONISO8601="periodDurationISO8601",hc.LONG="long",hc.DATEANDTIME="dateAndTime",hc.BOOLEANMAP="booleanMap",hc.MQTTQOS="MQTTQos",hc.NEGATIVEINTEGER="negativeInteger",hc.TCPIPPORTNUMBER="TCP_IPPortNumber",hc.GEOJSONPOINT="GEO_JSONPoint",hc.SNMPVERSION="SNMPVersion",hc.ASSETTYPE="assetType",hc.JSONOBJECT="JSONObject",hc.INTEGERMAP="integerMap",hc.BIGNUMBER="bigNumber",hc.IPADDRESS="IPAddress",hc.EMAIL="email",hc.TIMESTAMP="timestamp",hc.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",hc.ATTRIBUTEREFERENCE="attributeReference",hc.UUID="UUID",hc.INTEGER="integer",hc.OAUTHGRANT="oAuthGrant",hc.NUMBER="number",hc.DEVICECONFIGMAP="DeviceConfigMap",hc.TEXTMAP="textMap",hc.WEBSOCKETSUBSCRIPTION="websocketSubscription",hc.BOOLEAN="boolean",hc.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",hc.FORECASTCONFIGURATION="forecastConfiguration",hc.TIMEDURATIONISO8601="timeDurationISO8601",hc.TIMESTAMPISO8601="timestampISO8601",hc.CONSOLEPROVIDERS="consoleProviders",hc.MULTIVALUEDTEXTMAP="multivaluedTextMap",hc.NEGATIVENUMBER="negativeNumber",hc.PARITYBIT="Paritybit",hc.JSON="JSON",hc.CRONEXPRESSION="CRONExpression",hc.INTEGERBYTE="integerByte",hc.AGENTLINK="agentLink",hc.DIRECTION="direction",hc.HOSTORIPADDRESS="hostOrIPAddress",hc.STOPBITS="Stopbits",hc.CALENDAREVENT="calendarEvent",hc.CONNECTIONSTATUS="connectionStatus",hc.VALUECONSTRAINT="valueConstraint",(hm=pv||(pv={})).MONTH="month",hm.MILE_SCANDINAVIAN="mile_scandinavian",hm.VAR="var",hm.OUNCE="ounce",hm.HECTARE="hectare",hm.YARD="yard",hm.YEAR="year",hm.GIGA="giga",hm.JOULE="joule",hm.VOLT="volt",hm.HERTZ="hertz",hm.MILE="mile",hm.DEGREE="degree",hm.KILO="kilo",hm.BTU="btu",hm.TERA="tera",hm.FOOT="foot",hm.MEGA="mega",hm.KELVIN="kelvin",hm.CARBON="carbon",hm.DECIBEL_ATTENUATED="decibel_attenuated",hm.INCH="inch",hm.SQUARED="squared",hm.PERCENTAGE="percentage",hm.IN_HG="inch_mercury",hm.CENTI="centi",hm.GRAM="gram",hm.CUBED="cubed",hm.DAY="day",hm.RADIAN="radian",hm.OHM="ohm",hm.MINUTE="minute",hm.PART_PER_MILLION="ppm",hm.AMP="amp",hm.MASS_POUND="pound",hm.KNOT="knot",hm.METRE="metre",hm.LITRE="litre",hm.FLUID_OUNCE="fluid_ounce",hm.HOUR="hour",hm.ACRE="acre",hm.CELSIUS="celsius",hm.RPM="rpm",hm.PASCAL="pascal",hm.DECIBEL="decibel",hm.LUMEN="lumen",hm.WEEK="week",hm.FAHRENHEIT="fahrenheit",hm.WATT="watt",hm.GALLON="gallon",hm.LUX="lux",hm.MILLI="milli",hm.BAR="bar",hm.HECTO="hecto",hm.PEAK="peak",hm.SECOND="second",hm.MICRO="micro",hm.PER="per",hm.STONE="stone",py||(py={});class oa{static getAssetDescriptors(){return oa._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=oa.getValueDescriptor(t)),n=t.jsonType?t:oa.getValueDescriptor(t.type)),!n&&e&&(n=oa.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 i=this.resolveValueTypeFromValue(n);if(!i)return;for(;t>0;)i+="[]",t--;return i}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let i,o;if(t&&"string"!=typeof t)i=t;else{let o=this.getAssetTypeInfo(e||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof t&&(i=this.getAttributeDescriptor(t,o)),!i&&n&&(i={type:n.type,name:n.name,meta:n.meta})}return i&&(o=this.getValueDescriptor(i.type)),[i,o]}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}}oa._assetTypeInfos=[],oa._metaItemDescriptors=[],oa._valueDescriptors=[];let os=e=>"string"==typeof e,ol=()=>{let e,t,n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n},od=e=>null==e?"":String(e),oc=/###/g,om=e=>e&&e.includes("###")?e.replace(oc,"."):e,ou=e=>!e||os(e),of=(e,t,n)=>{let i=os(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(ou(e))return{};let t=om(i[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return ou(e)?{}:{obj:e,k:om(i[o])}},oh=(e,t,n)=>{let{obj:i,k:o}=of(e,t,Object);if(void 0!==i||1===t.length){i[o]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=of(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=of(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},op=(e,t)=>{let{obj:n,k:i}=of(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},ob=(e,t,n)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(Object.prototype.hasOwnProperty.call(e,i)?os(e[i])||e[i]instanceof String||os(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):ob(e[i],t[i],n):e[i]=t[i]);return e},o_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},og=e=>os(e)?e.replace(/[&<>"'\/]/g,e=>o_[e]):e,ov=[" ",",","?","!",";"],oy=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),oF=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(n),o=e;for(let e=0;e<i.length;){let t;if(!o||"object"!=typeof o)return;let r="";for(let a=e;a<i.length;++a)if(a!==e&&(r+=n),r+=i[a],void 0!==(t=o[r])){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},ox=e=>e?.replace(/_/g,"-"),ow={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 ok=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ow,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,i){return i&&!this.debug?null:(e=e.map(e=>os(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),os(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 oE{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=(...i)=>{t(...i),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 i=0;i<n;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,i])=>{for(let o=0;o<i;o++)n(e,...t)})}}class oA extends oE{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,i={}){let o,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):os(n)&&r?o.push(...n.split(r)):o.push(n)));let s=op(this.data,o);return(!s&&!t&&!n&&e.includes(".")&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&a&&os(n))?oF(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,i,o={silent:!1}){let r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),oh(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}addResources(e,t,n,i={silent:!1}){for(let i in n)(os(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,o,r={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);let s=op(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?ob(s,n,o):s={...s,...n},oh(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 oC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,i,o)??t}),t}};let oT=Symbol("i18next/PATH_KEY");function oL(e,t){let n,i,o,{[oT]:r}=e((i=[],(o=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===oT)?i:(i.push(t),(n=Proxy.revocable(e,o)).proxy),Proxy.revocable(Object.create(null),o).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&s){let e=t?.ns,n=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(l?n:n.length>1?n.slice(1):[]).includes(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let oM=e=>!os(e)&&"boolean"!=typeof e&&"number"!=typeof e;class oD extends oE{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=ok.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let i=this.resolve(e,n);if(i?.res===void 0)return!1;let o=oM(i.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=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 i=ov.filter(e=>!t.includes(e)&&!n.includes(e));if(0===i.length)return!0;let o=oy.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),r=!o.test(e);if(!r){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(r=!0)}return r})(e,n,i);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:os(o)?[o]:o};let r=e.split(n);(n!==i||n===i&&this.options.ns.includes(r[0]))&&(o=r.shift()),e=r.join(i)}return{key:e,namespaces:os(o)?[o]:o}}translate(e,t,n){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=oL(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?oL(e,{...this.options,...i}):String(e));let o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],i),l=s[s.length-1],d=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===d&&(d=":");let c=i.lng||this.language,m=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return m?o?{res:`${l}${d}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${d}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;let u=this.resolve(e,i),f=u?.res,h=u?.usedKey||a,p=u?.exactUsedKey||a,b=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==i.count&&!os(i.count),v=oD.hasDefaultValue(i),y=g?this.pluralResolver.getSuffix(c,i.count,i):"",F=i.ordinal&&g?this.pluralResolver.getSuffix(c,i.count,{ordinal:!1}):"",x=g&&!i.ordinal&&0===i.count,w=x&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${y}`]||i[`defaultValue${F}`]||i.defaultValue,k=f;_&&!f&&v&&(k=w);let E=oM(k),A=Object.prototype.toString.apply(k);if(_&&k&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(A)&&!(os(b)&&Array.isArray(k))){if(!i.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,k,{...i,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(u.res=e,u.usedParams=this.getUsedParamsDetails(i),u):e}if(r){let e=Array.isArray(k),t=e?[]:{},n=e?p:h;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let o=`${n}${r}${e}`;v&&!f?t[e]=this.translate(o,{...i,defaultValue:oM(w)?w[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(o,{...i,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=k[e])}f=t}}else if(_&&os(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,i,n));else{let t=!1,o=!1;!this.isValidLookup(f)&&v&&(t=!0,f=w),this.isValidLookup(f)||(o=!0,f=a);let s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,m=v&&w!==f&&this.options.updateMissing;if(o||t||m){if(this.logger.log(m?"updateKey":"missingKey",c,l,g&&!m?`${a}${this.pluralResolver.getSuffix(c,i.count,i)}`:a,m?w:f),r){let e=this.resolve(a,{...i,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,i.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(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let o=v&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,m,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,m,i),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);x&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,i[`defaultValue${t}`]||w)})}):n(e,a,w))}f=this.extendTranslation(f,e,i,u,n),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${d}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${d}${a}`:a,t?f:void 0,i))}return o?(u.res=f,u.usedParams=this.getUsedParamsDetails(i),u):f}extendTranslation(e,t,n,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){let r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=os(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&&!os(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||i.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[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=os(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=oC.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,i,o,r,a;return os(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?oL(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),l=s.key;i=l;let d=s.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let c=void 0!==t.count&&!os(t.count),m=c&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(os(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.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 "${i}" 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(i=>{let a;if(this.isValidLookup(n))return;r=i;let s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,i,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(i,t.count,t));let n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(o)&&s.push(l+e.replace(o,this.options.pluralSeparator)),s.push(l+e),m&&s.push(l+n)),u){let i=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(i),c&&(t.ordinal&&e.startsWith(o)&&s.push(i+e.replace(o,this.options.pluralSeparator)),s.push(i+e),m&&s.push(i+n))}}for(;a=s.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(i,e,a,t))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(e={}){let t=e.replace&&!os(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 oS{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ok.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ox(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=ox(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(os(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 i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.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)),os(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),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return os(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):os(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{i.includes(e)||o(this.formatLanguageCode(e))}),i}}let oI={zero:0,one:1,two:2,few:3,many:4,other:5},oO={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oY{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ok.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,i=ox("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:i,type:o});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(i,{type:o})}catch(o){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),oO;if(!e.match(/-|_/))return oO;let i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,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)=>oI[e]-oI[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let oR=(e,t,n,i=".",o=!0)=>{let r,a=void 0!==(r=op(e,n))?r:op(t,n);return!a&&o&&os(n)&&void 0===(a=oF(e,n,i))&&(a=oF(t,n,i)),a},oN=e=>e.replace(/\$/g,"$$$$");class oP{constructor(e={}){this.logger=ok.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:i,prefix:o,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:d,unescapePrefix:c,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:p,maxReplaces:b,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:og,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=d?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":d?d.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,i){let o,r,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let o=oR(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...i,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),r=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(oR(t,s,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...i,...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 d=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=i?.interpolation?.skipOnVariables!==void 0?i.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;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(r=l(n)))if("function"==typeof d){let t=d(e,o,i);r=os(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))r="";else if(c){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r="";else os(r)||this.useRawValueToEscape||(r=od(r));let s=t.safeValue(r);if(e=e.replace(o[0],oN(s)),c?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let i,o,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let i=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),o=`{${i[1]}`;e=i[0];let a=(o=this.interpolate(o,r)).match(/'/g),s=o.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let s=[];(r=(r={...n}).replace&&!os(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let l=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(s=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),(o=t(a.call(this,i[1].trim(),r),r))&&i[0]===e&&!os(o))return o;os(o)||(o=od(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}let oB=e=>{let t={};return(n,i,o)=>{let r=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(r={...r,[o.interpolationkey]:void 0});let a=i+JSON.stringify(r),s=t[a];return s||(s=e(ox(i),o),t[a]=s),s(n)}},oj=e=>(t,n,i)=>e(ox(n),i)(t);class oH{constructor(e={}){this.logger=ok.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?oB:oj;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()]=oB(t)}format(e,t,n,i={}){if(!t||null==e)return e;let o=t.split(this.formatSeparator),r=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:o,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=o),"false"===o&&(n[r]=!1),"true"===o&&(n[r]=!0),isNaN(o)||(n[r]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{let a=i?.formatParams?.[i.interpolationkey]||{},s=a.locale||a.lng||i.locale||i.lng||n;t=this.formats[o](e,s,{...r,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class oz extends oE{constructor(e,t,n,i={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ok.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(e,t,n,i){let o={},r={},a={},s={};return e.forEach(e=>{let i=!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,i=!1,void 0===r[a]&&(r[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),!t&&n&&this.store.addResourceBundle(o,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:i,k:o}=of(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[o],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,i=0,o=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:i,wait:o,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&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,n,i+1,2*o,r)},o):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={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();os(e)&&(e=this.languageUtils.toResolveHierarchy(e)),os(t)&&(t=[t]);let o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.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("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,i,o,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:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,n,i,s):l(e,t,n,i))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,i,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}let oU=()=>({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]),os(e[1])&&(t.defaultValue=e[1]),os(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}),o$=e=>(os(e.ns)&&(e.ns=[e.ns]),os(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),os(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),oV=()=>{};class oW extends oE{constructor(e={},t){if(super(),this.options=o$(e),this.services={},this.logger=ok,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&&(os(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=oU();this.options={...n,...this.options,...o$(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 i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?ok.init(i(this.modules.logger),this.options):ok.init(null,this.options),e=this.modules.formatter?this.modules.formatter:oH;let t=new oS(this.options);this.store=new oA(this.options.resources,this.options);let n=this.services;n.logger=ok,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new oY(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=i(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new oP(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new oz(i(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=i(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=i(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new oD(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=oV),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 o=ol(),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),o.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),o}loadResources(e,t=oV){let n=t,i=os(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.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))})};i?t(i):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 i=ol();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=oV),this.services.backendConnector.reload(e,t,e=>{i.resolve(),n(e)}),i}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&&oC.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=ol();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,r)=>{r?this.isLanguageChangingTo===e&&(i(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(o,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=os(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(os(t)?[t]:t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{o(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,i){let o=i?.scopeNs,r=(e,t,...i)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let l=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let d={...this.options,...a};Array.isArray(o)&&!l&&(d.ns=o),"function"==typeof a.keyPrefix&&(a.keyPrefix=oL(a.keyPrefix,d));let c=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=oL(e,d)),`${a.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=oL(e,d)),s=a.keyPrefix?`${a.keyPrefix}${c}${e}`:e),this.t(s,a)};return os(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],i=!!this.options&&this.options.fallbackLng,o=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)&&(!i||r(o,e)))}loadNamespaces(e,t){let n=ol();return this.options.ns?(os(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=ol();os(e)&&(e=[e]);let i=this.options.preload||[],o=e.filter(e=>!i.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=i.concat(o),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 oS(oU());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 oW(e,t);return n.createInstance=oW.createInstance,n}cloneInstance(e={},t=oV){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},o=new oW(i);if((void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new oA(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,i)=>(n[i]={...e[t][i]},n),e[t]),e),{}),i),o.services.resourceStore=o.store),e.interpolation){let t={...oU().interpolation,...this.options.interpolation,...e.interpolation},n={...i,interpolation:t};o.services.interpolator=new oP(n)}return o.translator=new oD(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let oq=oW.createInstance();oq.createInstance,oq.dir,oq.init,oq.loadResources,oq.reloadResources,oq.use,oq.changeLanguage,oq.getFixedT,oq.t,oq.exists,oq.setDefaultNamespace,oq.hasLoadedNamespace,oq.loadNamespaces,oq.loadLanguages;var oG=n(4867),oK=n.n(oG);n(3472);class oX{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 oJ(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)=>oJ(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>oJ(e[n],t[n]))}return!1}function oQ(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,i)=>{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=!i[n-1]||"_"===i[n-1],o=n+1<i.length&&i[n+1]&&"_"!==i[n+1],r=n+3>i.length||!i[n+1]&&!i[n+3];(!t||o)&&(e=" "+e),!o&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}function oZ(e,t){if(t===e)return!0;let n=e.endsWith("*"),i=!n&&e.startsWith("*"),o=!n&&!i&&e.startsWith("^")&&e.endsWith("$");if(n&&t.startsWith(e.substr(0,e.length-1))||i&&t.endsWith(e.substr(1)))return!0;if(o)try{return new RegExp(e).test(t)}catch(e){console.error("Failed to compile needle as a RegExp: "+e)}return!1}function o0(e,t,n){let i="string"==typeof e?e:e.name;return t&&t.meta&&t.meta.hasOwnProperty(i)?t.meta[i]:n&&n.meta?n.meta[i]:void 0}function o1(e){return("string"==typeof e&&(e=oa.getAssetDescriptor(e)),e)?oq.t("label.asset."+e.name,{defaultValue:oQ(e.name)}):""}function o2(e,t,n,i,o,r){let a=o5("label",e,t,n,o),s="";if(a||(a=o0("label",e,t&&t.meta?t:void 0)),i&&(s=function(e,t){if(!e)return"";t||(t="");let n=e.map((e,n)=>{if(3!==e.length||e.toUpperCase()!==e)return oq.t(["units."+e,"or:units."+e]);{let i=new Intl.NumberFormat(oq.language,{currency:e,style:"currency"}).formatToParts();if(0!==n||"currency"!==i[0].type)return"currency"===i[0].type?i[0].value:i[i.length-1].value;if(!t)return i[0].value;t=i[0].value+t}}).join("");return t.length>0?t+" "+n:n}(function(e,t,n,i,o){let r,a=[],s=o5(e,t&&"string"==typeof t?t:t?t.name:n?"string"==typeof n?n:n.name:void 0,n,i,o);if(s&&(r=JSON.parse(s)))if("format"!==e)return r;else a.push(r);if(t&&t.meta&&(r=o0(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=oa.getValueDescriptor(n.type)[e],"format"!==e)return r;a.push(r)}if("format"!==e||0===a.length)return r;let l={};return a.reverse().forEach(e=>{l=Object.assign(Object.assign({},l),e)}),l}("units",e,t,n,o))),!a){let n=e?e.name:t?"string"==typeof t?t:t.name:void 0;a=r||(n?oQ(n):void 0)}return a?a+(s?" ("+s+")":""):s}function o5(e,t,n,i,o,r){let a;if(t?a="string"==typeof t?t:t.name:n&&(a="string"==typeof n?n:n.name),!a)return;let s=[],l=e+"."+(o?"attribute":"meta")+".";if(i&&s.push(l+i+"."+a),n&&"string"!=typeof n&&(s.push(l+n.type+"."+a),s.push(l+n.type)),s.push(l+a),s.length>0)return oq.t(s,{defaultValue:r||""})}function o4(e){return(t,n)=>{let i=e(t),o=e(n);return i||o?i&&!o?1:!i&&o?-1:i.localeCompare(o):0}}function o3(e,t){let n=new oX;return e.dispatchEvent(t),window.setTimeout(()=>{n.resolve(t.detail)}),n.promise}class o6{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,i,o,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==(i=this.realm)?void 0:i.name)&&e.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.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=>o6._evalValuePredicate(e.name,t)))&&(!this.attributes||o6._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!o6._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?o6._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let i;if(null==e)return!1;let o=!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":i=o.startsWith(r);break;case"END":i=o.endsWith(r);break;case"CONTAINS":i=o.includes(r);break;default:i=o===r}return t.negate?!i:i}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,i;let o=null==(n=t.name)?void 0:n.value;if(!o)return!0;let r=null==(i=e.attributes)?void 0:i[o];if(!r)return!!t.negated;let a=!t.value||o6._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,i,o;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(i=t.items)?i:[]).map(t=>o6._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>o6._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=>o6._collectNames(e))]}}o6._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var o7=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let o8=n(4461);class o9{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 i=new URLSearchParams(window.location.search),o=i.get("consoleName"),r=i.get("consoleVersion"),a=i.get("consolePlatform"),s=i.get("consoleProviders"),l=i.get("consoleAutoEnable"),d=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=d;let c=o9._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={},d)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};c.providers[e]=t}let f=lX.getAppName();f.length>0&&0>c.apps.indexOf(f)&&c.apps.push(f),this._registration=c,o&&(c.name=o),r&&(c.version=r),a&&(c.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}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 o7(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 o7(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 o7(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},i=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=i.hasPermission,this._registration.providers[e].success=i.success,this._registration.providers[e].enabled=i.success,this._registration.providers[e].data=i.data;let o=this._pendingProviderEnables.indexOf(e);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),i})}disableProvider(e){return o7(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 o7(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 i=new oX,o=()=>{delete this._pendingProviderPromises[n],i.reject("No response from provider")};return this._pendingProviderPromises[n]=[i,window.setTimeout(o,5e3)],this._doSendProviderMessage(e),i.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>o7(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 o7(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield lX.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&&o9._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 o7(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,i=t.action,o=this._pendingProviderPromises[n+i];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+i],o[0].resolve(t));let r=this._providerMessageListeners[n+i];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:o8.name,version:o8.version,platform:o8.os.toString(),apps:[],model:((o8.manufacturer?o8.manufacturer+" ":"")+(o8.product?o8.product:"")).trim()}}_initialiseProvider(e){return o7(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 re(e,t){return function(){return e.apply(t,arguments)}}let{toString:rt}=Object.prototype,{getPrototypeOf:rn}=Object,{iterator:ri,toStringTag:ro}=Symbol,rr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ra=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),rs=(e,t,n)=>e===Object.prototype||!n&&null===t,rl=(e,t)=>{let n=e,i=[];for(;null!=n&&-1===i.indexOf(n);){i.push(n);let o=rn(n);if(rs(n,o,n===e))break;if(rr(n,t))return!0;n=o}return!1},rd=(r=Object.create(null),e=>{let t=rt.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),rc=e=>(e=e.toLowerCase(),t=>rd(t)===e),rm=e=>t=>typeof t===e,{isArray:ru}=Array,rf=rm("undefined");function rh(e){return null!==e&&!rf(e)&&null!==e.constructor&&!rf(e.constructor)&&r_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let rp=rc("ArrayBuffer"),rb=rm("string"),r_=rm("function"),rg=rm("number"),rv=e=>null!==e&&"object"==typeof e,ry=e=>{if(!rv(e))return!1;let t=rn(e);return(null===t||t===Object.prototype||null===rn(t))&&!rl(e,ro)&&!rl(e,ri)},rF=rc("Date"),rx=rc("File"),rw=rc("Blob"),rk=rc("FileList"),rE=rc("Set"),rA="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},rC=void 0!==rA.FormData?rA.FormData:void 0,rT=rc("URLSearchParams"),[rL,rM,rD,rS]=["ReadableStream","Request","Response","Headers"].map(rc);function rI(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),ru(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(rh(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function rO(e,t){let n;if(rh(e))return null;t=t.toLowerCase();let i=Object.keys(e),o=i.length;for(;o-- >0;)if(t===(n=i[o]).toLowerCase())return n;return null}let rY="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rR=e=>!rf(e)&&e!==rY,rN=(a="u">typeof Uint8Array&&rn(Uint8Array),e=>a&&e instanceof a),rP=rc("HTMLFormElement"),{propertyIsEnumerable:rB}=Object.prototype,rj=rc("RegExp"),rH=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};rI(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},rz=rc("AsyncFunction"),rU=(fc="function"==typeof setImmediate,fm=r_(rY.postMessage),fc?setImmediate:fm?(fu=`axios@${Math.random()}`,ff=[],rY.addEventListener("message",({source:e,data:t})=>{e===rY&&t===fu&&ff.length&&ff.shift()()},!1),e=>{ff.push(e),rY.postMessage(fu,"*")}):e=>setTimeout(e)),r$="u">typeof queueMicrotask?queueMicrotask.bind(rY):"u">typeof process&&process.nextTick||rU,rV=e=>null!=e&&r_(e[ri]),rW={isArray:ru,isArrayBuffer:rp,isBuffer:rh,isFormData:e=>{if(!e)return!1;if(rC&&e instanceof rC)return!0;let t=rn(e);if(!t||t===Object.prototype||!r_(e.append))return!1;let n=rd(e);return"formdata"===n||"object"===n&&r_(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rp(e.buffer)},isString:rb,isNumber:rg,isBoolean:e=>!0===e||!1===e,isObject:rv,isPlainObject:ry,isEmptyObject:e=>{if(!rv(e)||rh(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rL,isRequest:rM,isResponse:rD,isHeaders:rS,isUndefined:rf,isDate:rF,isFile:rx,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rw,isRegExp:rj,isFunction:r_,isStream:e=>rv(e)&&r_(e.pipe),isURLSearchParams:rT,isTypedArray:rN,isFileList:rk,forEach:rI,merge:function e(...t){let{caseless:n,skipUndefined:i}=rR(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&rO(o,r)||r,s=rr(o,a)?o[a]:void 0;ry(s)&&ry(t)?o[a]=e(s,t):ry(t)?o[a]=e({},t):ru(t)?o[a]=t.slice():i&&rf(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||rh(n)||(rI(n,r),"object"!=typeof n||ru(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];rB.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(rI(t,(t,i)=>{n&&r_(t)?Object.defineProperty(e,i,{__proto__:null,value:re(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),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,i)=>{e.prototype=Object.create(t.prototype,i),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,i)=>{let o,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)a=o[r],(!i||i(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&rn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rd,kindOfTest:rc,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(ru(e))return e;let t=e.length;if(!rg(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[ri]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:rP,hasOwnProperty:rr,hasOwnProp:rr,hasOwnInPrototypeChain:rl,getSafeProp:(e,t)=>null!=e&&rl(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=rn(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(ra(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),i=Object.create(null),o=[],r=e;for(;null!=r&&-1===o.indexOf(r);){o.push(r);let a=r===e?t:rn(r);if(rs(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!ra(t)&&(rr(i,t)||(n[t]=e[t],i[t]=!0));r=a}return n},reduceDescriptors:rH,freezeMethods:e=>{rH(e,(t,n)=>{if(r_(e)&&["arguments","caller","callee"].includes(n))return!1;if(r_(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(ru(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:rO,global:rY,isContextDefined:rR,isSpecCompliantForm:function(e){return!!(e&&r_(e.append)&&"FormData"===e[ro]&&e[ri])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(rv(e)){if(t.has(e))return;if(rh(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),rE(e))for(let t of(i=[],e)){let e=n(t);rf(e)||i.push(e)}else i=ru(e)?[]:{},rI(e,(e,t)=>{let o=n(e);rf(o)||(i[t]=o)});return t.delete(e),i}}return e};return n(e)},isAsyncFn:rz,isThenable:e=>e&&(rv(e)||r_(e))&&r_(e.then)&&r_(e.catch),setImmediate:rU,asap:r$,isIterable:rV,isSafeIterable:e=>null!=e&&rl(e,ri)&&rV(e)},rq=rW.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"]),rG=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rK=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rX(e,t){return rW.isArray(e)?e.map(e=>rX(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 rJ(e){let t=Object.create(null);return rW.forEach(e.toJSON(),(e,n)=>{t[n]=rX(e,rK)}),t}let rQ=Symbol("internals");function rZ(e){return e&&String(e).trim().toLowerCase()}function r0(e){return!1===e||null==e?e:rW.isArray(e)?e.map(r0):rX(String(e),rG)}let r1=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r2(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 r5(e,t,n,i,o){if(rW.isFunction(i))return i.call(this,t,n);if(o&&(t=n),rW.isString(t)){if(rW.isString(i))return -1!==t.indexOf(i);if(rW.isRegExp(i))return i.test(t)}}class r4{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=rZ(t);if(!o)return;let r=rW.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=r0(e))}let r=(e,t)=>rW.forEach(e,(e,n)=>o(e,n,t));if(rW.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(rW.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var a;let n,i,o,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim();let t=rW.hasOwnProp(s,n);!n||t&&rW.hasOwnProp(rq,n)||("set-cookie"===n?t?s[n].push(i):s[n]=[i]:s[n]=t?s[n]+", "+i:i)}),s),t)}else if(rW.isObject(e)&&rW.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!rW.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],rW.hasOwnProp(n,o)?(i=n[o],n[o]=rW.isArray(i)?[...i,t[1]]:[i,t[1]]):n[o]=t[1]}r(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=rZ(e)){let n=rW.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(rW.isFunction(t))return t.call(this,e,n);if(rW.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rZ(e)){let n=rW.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||r5(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=rZ(e)){let o=rW.findKey(n,e);o&&(!t||r5(n,n[o],o,t))&&(delete n[o],i=!0)}}return rW.isArray(e)?e.forEach(o):o(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let o=t[n];(!e||r5(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return rW.forEach(this,(i,o)=>{let r=rW.findKey(n,o);if(r){t[r]=r0(i),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=r0(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rW.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&rW.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 rW.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),i=0,o=!1,r=!1;function a(e){let o=r2(n.slice(i,e)),r=o.indexOf("=");if(r<1)return;let a=r2(o.slice(0,r));if(!r1.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=r2(o.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 i=1;i<t;i++){let o=e.charCodeAt(i);if(34===o||92===o&&(i+=1)>=t)return e;n+=e[i]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);o?r?r=!1:92===t?r=!0:34===t&&(o=!1):34===t?o=!0:(44===t||59===t)&&(a(e),i=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[rQ]=this[rQ]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=rZ(e);if(!t[i]){let o;o=rW.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{__proto__:null,value:function(n,i,o){return this[t].call(this,e,n,i,o)},configurable:!0})}),t[i]=!0}}return rW.isArray(e)?e.forEach(i):i(e),this}}r4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rW.reduceDescriptors(r4.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),rW.freezeMethods(r4);let r3="[REDACTED ****]";function r6(e){try{return String(e)}catch(e){return""}}class r7 extends Error{static from(e,t,n,i,o,r){let a=e.message;!a&&rW.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?r6(e.message):r6(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new r7(a,t||e.code,n,i,o);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,i,o){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),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,n,i=this.config,o=i&&rW.hasOwnProp(i,"redact")?i.redact:void 0,r=rW.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(n=i=>{let o;if(null===i||"object"!=typeof i||rW.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof r4&&(i=i.toJSON()),t.push(i),rW.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);rW.isUndefined(i)||(o[t]=i)});else{if(!rW.isPlainObject(i)&&function(e){if(rW.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rW.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,r]of(o=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?r3:n(r);rW.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):rW.toJSONObject(i);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}}}r7.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",r7.ERR_BAD_OPTION="ERR_BAD_OPTION",r7.ECONNABORTED="ECONNABORTED",r7.ETIMEDOUT="ETIMEDOUT",r7.ECONNREFUSED="ECONNREFUSED",r7.ERR_NETWORK="ERR_NETWORK",r7.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",r7.ERR_DEPRECATED="ERR_DEPRECATED",r7.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",r7.ERR_BAD_REQUEST="ERR_BAD_REQUEST",r7.ERR_CANCELED="ERR_CANCELED",r7.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",r7.ERR_INVALID_URL="ERR_INVALID_URL",r7.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let r8=r7;function r9(e){return rW.isPlainObject(e)||rW.isArray(e)}function ae(e){return rW.endsWith(e,"[]")?e.slice(0,-2):e}function at(e,t,n){return e?e.concat(t).map(function(e,t){return e=ae(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let an=rW.toFlatObject(rW,{},null,function(e){return/^is[A-Z]/.test(e)}),ai=function(e,t,n){if(!rW.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(e,t)=>{let i=rW.getSafeProp(n,e);return rW.isUndefined(i)?t:i},o=i("metaTokens",!0),r=i("visitor")||h,a=i("dots",!1),s=i("indexes",!1),l=i("Blob")||"u">typeof Blob&&Blob,d=i("maxDepth",100),c=l&&rW.isSpecCompliantForm(t),m=[];if(!rW.isFunction(r))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(rW.isDate(e))return e.toISOString();if(rW.isBoolean(e))return e.toString();if(!c&&rW.isBlob(e))throw new r8("Blob is not supported. Use a Buffer instead.");if(rW.isArrayBuffer(e)||rW.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new r8("Blob is not supported. Use a Buffer instead.",r8.ERR_NOT_SUPPORT)}return e}function f(e){if(e>d)throw new r8("Object is too deeply nested ("+e+" levels). Max depth: "+d,r8.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,i){let r=e;if(rW.isReactNative(t)&&rW.isReactNativeBlob(e))return t.append(at(i,n,a),u(e)),!1;if(e&&!i&&"object"==typeof e)if(rW.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(1/0===d)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!rW.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 l;if(rW.isArray(e)&&(l=e,rW.isArray(l)&&!l.some(r9))||(rW.isFileList(e)||rW.endsWith(n,"[]"))&&(r=rW.toArray(e)))return n=ae(n),r.forEach(function(e,i){rW.isUndefined(e)||null===e||t.append(!0===s?at([n],i,a):null===s?n:n+"[]",u(e))}),!1}return!!r9(e)||(t.append(at(i,n,a),u(e)),!1)}let p=Object.assign(an,{defaultVisitor:h,convertValue:u,isVisitable:r9});if(!rW.isObject(e))throw TypeError("data must be an object");return!function e(n,i,o=0){if(!rW.isUndefined(n)){if(f(o),-1!==m.indexOf(n))throw Error("Circular reference detected in "+i.join("."));m.push(n),rW.forEach(n,function(n,a){!0===(!(rW.isUndefined(n)||null===n)&&r.call(t,n,rW.isString(a)?a.trim():a,i,p))&&e(n,i?i.concat(a):[a],o+1)}),m.pop()}}(e),t};function ao(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ar(e,t){this._pairs=[],e&&ai(e,this,t)}let aa=ar.prototype;function as(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function al(e,t,n){let i;if(!t)return e;e=e||"";let o=rW.isFunction(n)?{serialize:n}:n,r=rW.getSafeProp(o,"encode")||as,a=rW.getSafeProp(o,"serialize");if(i=a?a(t,o):rW.isURLSearchParams(t)?t.toString():new ar(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}aa.append=function(e,t){this._pairs.push([e,t])},aa.toString=function(e){let t=e?t=>e.call(this,t,ao):ao;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let ad=Symbol("internals");function ac(e){return e?e.length:0}function am(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function au(e,t){let n=e.handlers,i=ac(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):i!==t.handlersLength&&(i?t.handlerEntries.forEach(function(e,i){n[e.index]!==e.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=i}let af=class{constructor(){this.handlers=[],this[ad]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let i={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[ad];null==this.handlers&&(this.handlers=[]),au(this,o);let r=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(r,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,r}eject(e){let t=this[ad];au(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||(am(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],au(this,this[ad]))}forEach(e){let t=this[ad];au(this,t),t.iterationDepth++;try{rW.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(au(this,t),am(this.handlers),t.handlersLength=ac(this.handlers))}}},ah={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ap="u">typeof URLSearchParams?URLSearchParams:ar,ab="u">typeof FormData?FormData:null,a_="u">typeof Blob?Blob:null,ag="u">typeof window&&"u">typeof document,av="object"==typeof navigator&&navigator||void 0,ay=ag&&(!av||0>["ReactNative","NativeScript","NS"].indexOf(av.product)),aF="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ax=ag&&window.location.href||"http://localhost",aw={...c,isBrowser:!0,classes:{URLSearchParams:ap,FormData:ab,Blob:a_},protocols:["http","https","file","blob","url","data"]};function ak(e){if(e>100)throw new r8("FormData field is too deeply nested ("+e+" levels). Max depth: 100",r8.ERR_FORM_DATA_DEPTH_EXCEEDED)}let aE=function(e){if(rW.isFormData(e)&&rW.isFunction(e.entries)){let t={};return rW.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){ak(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&rW.isArray(i)?i.length:r,s)?rW.hasOwnProp(i,r)?i[r]=rW.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(rW.hasOwnProp(i,r)&&rW.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&rW.isArray(i[r])&&(i[r]=function(e){let t,n,i={},o=Object.keys(e),r=o.length;for(t=0;t<r;t++)i[n=o[t]]=e[n];return i}(i[r]))),!a}(function(e){let t,n=[],i=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=i.exec(e));)ak(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},aA=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),aC=(e,t)=>null!=e&&rW.hasOwnProp(e,t)?e[t]:void 0,aT={transitional:ah,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=rW.isObject(e);if(r&&rW.isHTMLForm(e)&&(e=new FormData(e)),rW.isFormData(e))return o?JSON.stringify(aE(e)):e;if(rW.isArrayBuffer(e)||rW.isBuffer(e)||rW.isStream(e)||rW.isFile(e)||rW.isBlob(e)||rW.isReadableStream(e))return e;if(rW.isArrayBufferView(e))return e.buffer;if(rW.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=aC(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return ai(e,new aw.classes.URLSearchParams,{visitor:function(e,t,n,i){return aw.isNode&&rW.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=rW.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=aC(this,"env"),o=i&&i.FormData;return ai(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(rW.isString(a))try{return(0,JSON.parse)(a),rW.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=aC(this,"transitional")||aT.transitional,n=t&&t.forcedJSONParsing,i=aC(this,"responseType"),o="json"===i;if(rW.isResponse(e)||rW.isReadableStream(e))return e;if(e&&rW.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,aC(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw r8.from(e,r8.ERR_BAD_RESPONSE,this,null,aC(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:aw.classes.FormData,Blob:aw.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function aL(e,t){let n=this||aT,i=t||n,o=r4.from(i.headers),r=i.data;return rW.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function aM(e){return!!(e&&e.__CANCEL__)}rW.forEach(aA,e=>{aT.headers[e]={}});let aD=class extends r8{constructor(e,t,n){super(null==e?"canceled":e,r8.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function aS(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new r8("Request failed with status code "+n.status,n.status>=400&&n.status<500?r8.ERR_BAD_REQUEST:r8.ERR_BAD_RESPONSE,n.config,n.request,n))}let aI=/[\t\n\r]/g;function aO(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(aI,"")}function aY(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let aR=function(e,t){let n,i=Array(e=e||10),o=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),d=o[a];n||(n=l),i[r]=s,o[r]=l;let c=a,m=0;for(;c!==r;)m+=i[c++],c%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let u=d&&l-d;return u?Math.round(1e3*m/u):void 0}},aN=function(e,t){let n,i,o=0,r=1e3/t,a=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=r?a(e,t):(n=e,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},aP=(e,t,n=3)=>{let i=0,o=aR(50,250);return aN(n=>{if(!n||!rW.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),l=Math.max(0,s-i),d=o(l);i=Math.max(i,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a?(a-s)/d:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},aB=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},aj=(e,t=rW.asap)=>(...n)=>t(()=>e(...n)),aH=aw.hasStandardBrowserEnv?(s=new URL(aw.origin),l=aw.navigator&&/(msie|trident)/i.test(aw.navigator.userAgent),e=>(e=new URL(e,aw.origin),s.protocol===e.protocol&&s.host===e.host&&(l||s.port===e.port))):()=>!0,az=aw.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];rW.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),rW.isString(i)&&s.push(`path=${i}`),rW.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),rW.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 i=t[n].replace(/^\s+/,""),o=i.indexOf("=");if(-1!==o&&i.slice(0,o)===e)try{return decodeURIComponent(i.slice(o+1))}catch(e){return i.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},aU=/^https?:(?!\/\/)/i;function a$(e,t){if("string"==typeof e){let i=aO(e);if(aU.test(i)){var n;let e,o,r;throw new r8(`Invalid URL ${JSON.stringify((r=(-1===(o=(e=i.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${r3}@`)).indexOf("#"))?e:e.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${r3}`),-1===o?r:`${r}#${!(n=e.slice(o+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${r3}`)}`))}: missing "//" after protocol`,r8.ERR_INVALID_URL,t)}}}function aV(e,t,n,i){a$(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(o||!1===n)){a$(e,i);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 aW=e=>e instanceof r4?{...e}:e;function aq(e,t){var n;e=e||{},t=t||{};let i=Object.create(null);function o(e,t,n,i){return rW.isPlainObject(e)&&rW.isPlainObject(t)?rW.merge.call({caseless:i},e,t):rW.isPlainObject(t)?rW.merge({},t):rW.isArray(t)?t.slice():t}function r(e,t,n,i){return rW.isUndefined(t)?rW.isUndefined(e)?void 0:o(void 0,e,n,i):o(e,t,n,i)}function a(e,t){if(!rW.isUndefined(t))return o(void 0,t)}function s(e,t){return rW.isUndefined(t)?rW.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(n,i,r){return rW.hasOwnProp(t,r)?o(n,i):rW.hasOwnProp(e,r)?o(void 0,n):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={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:l,headers:(e,t,n)=>r(aW(e),aW(t),n,!0)};return rW.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 o=rW.hasOwnProp(d,n)?d[n]:r,a=o(rW.hasOwnProp(e,n)?e[n]:void 0,rW.hasOwnProp(t,n)?t[n]:void 0,n);rW.isUndefined(a)&&o!==l||(i[n]=a)}),rW.hasOwnProp(t,"validateStatus")&&rW.isUndefined(t.validateStatus)&&!1===function(n){let i=rW.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rW.isUndefined(i)){if(!rW.isPlainObject(i))return;else if(rW.hasOwnProp(i,n))return i[n]}let o=rW.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rW.isPlainObject(o)&&rW.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(rW.hasOwnProp(e,"validateStatus")?i.validateStatus=o(void 0,e.validateStatus):delete i.validateStatus),i}let aG=["content-type","content-length"],aK=function(e){let t=aq({},e),n=e=>rW.hasOwnProp(t,e)?t[e]:void 0,i=n("data"),o=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),d=n("baseURL"),c=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=r4.from(s),t.url=al(aV(d,m,c,t),n("params"),n("paramsSerializer")),l){let t=rW.getSafeProp(l,"username")||"",n=rW.getSafeProp(l,"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 r8.from(t,r8.ERR_BAD_OPTION_VALUE,e)}}if(rW.isFormData(i)){let e=rW.getSafeProp(i,"getHeaders");if(aw.hasStandardBrowserEnv||aw.hasStandardBrowserWebWorkerEnv||rW.isReactNative(i))s.setContentType(void 0);else{var u,f;rW.isFunction(e)&&(u=s,f=e.call(i),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{aG.includes(e.toLowerCase())&&u.set(e,t)}))}}if(aw.hasStandardBrowserEnv&&(rW.isFunction(o)&&(o=o(t)),!0===o||null==o&&aH(t.url))){let e=r&&a&&az.read(a);e&&s.set(r,e)}return t},aX="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let i,o,r,a,s,l,d=aK(e),c=d.data,m=r4.from(d.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:h}=d;function p(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(i),d.signal&&d.signal.removeEventListener("abort",i)}let b=new XMLHttpRequest;function _(i){if(!b)return;if(0===b.status&&"file"!==(aY(aO(d.url))||aY(aw.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new r8("Request aborted",r8.ECONNABORTED,e,b)),p(),b=null;return}try{i?l&&l(i):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!b)return;let o=r4.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());aS(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:o,config:e,request:b}),b=null}b.open(d.method.toUpperCase(),d.url,!0),b.timeout=d.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 r8("Request aborted",r8.ECONNABORTED,e,b)),p(),b=null)},b.onerror=function(t){let i=new r8(t&&t.message?t.message:"Network Error",r8.ERR_NETWORK,e,b);i.event=t||null,n(i),p(),b=null},b.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",i=d.transitional||ah;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new r8(t,i.clarifyTimeoutError?r8.ETIMEDOUT:r8.ECONNABORTED,e,b)),p(),b=null},void 0===c&&m.setContentType(null),"setRequestHeader"in b&&rW.forEach(rJ(m),function(e,t){b.setRequestHeader(t,e)}),rW.isUndefined(d.withCredentials)||(b.withCredentials=!!d.withCredentials),u&&"json"!==u&&(b.responseType=d.responseType),h&&([r,s,l]=aP(h,!0),b.addEventListener("progress",r)),f&&b.upload&&([o,a]=aP(f),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(i=t=>{b&&(n(!t||t.type?new aD(null,e,b):t),b.abort(),p(),b=null)},d.cancelToken&&d.cancelToken.subscribe(i),d.signal&&(d.signal.aborted?i():d.signal.addEventListener("abort",i)));let g=aY(d.url);if(g&&!aw.protocols.includes(g)){n(new r8("Unsupported protocol "+g+":",r8.ERR_BAD_REQUEST,e)),p();return}b.send(c||null)})},aJ=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let o=0;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},aQ=async function*(e,t){for await(let n of aZ(e))yield*aJ(n,t)},aZ=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()}},a0=(e,t,n,i)=>{let o,r=aQ(e,t),a=0,s=e=>{!o&&(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await r.next();if(t){s(),e.close();return}let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},a1=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,a2=(e,t,n)=>t+2<n&&a1(e.charCodeAt(t+1))&&a1(e.charCodeAt(t+2)),a5=e=>e<=57?e-48:(223&e)-55,a4=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,a3=e=>9===e||10===e||12===e||13===e||32===e,a6=e=>{var t;let n,i,o=e.length,r=0,a=0,s=!1;for(let t=0;t<o;t++){let n=e.charCodeAt(t);if(37===n&&a2(e,t,o)&&(n=16*a5(e.charCodeAt(t+1))+a5(e.charCodeAt(t+2)),t+=2),!a3(n)){if(61===n){a++;continue}if(!a4(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==(i=t%4)?1:2*(3===i))},a7={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:a8}=rW,a9=e=>{if(!rW.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},se=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},st=e=>{let t,n=void 0!==rW.global&&null!==rW.global?rW.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=rW.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?a8(r):"function"==typeof fetch,d=a8(a),c=a8(s);if(!l)return!1;let m=l&&a8(i),u=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=d&&m&&se(()=>{let e=!1,t=new a(aw.origin,{body:new i,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&&se(()=>rW.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new r8(`Response type '${e}' is not supported`,r8.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(rW.isBlob(e))return e.size;if(rW.isSpecCompliantForm(e)){let t=new a(aw.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rW.isArrayBufferView(e)||rW.isArrayBuffer(e)?e.byteLength:(rW.isURLSearchParams(e)&&(e+=""),rW.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=rW.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:i,data:l,signal:c,cancelToken:u,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:F,headers:x,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:A,maxRedirects:C}=aK(e),T=rW.isNumber(E)&&E>-1,L=rW.isNumber(A)&&A>-1,M=r||fetch;F=F?(F+"").toLowerCase():"text";let D=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,i=!1,o=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof r8?t:new aD(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new r8(`timeout of ${t}ms exceeded`,r8.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{if(!i){if(e.aborted)return void o.call(e);e.addEventListener("abort",o,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>rW.asap(a),s})([c,u&&u.toAbortSignal()],g),S=null,I=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),O=null,Y=()=>new r8("Request body larger than maxBodyLength limit",r8.ERR_BAD_REQUEST,e,S);try{var R,N;let r,c,u,g,P=(c="auth",rW.hasOwnProp(e,c)?e[c]:void 0);if(P){let e=rW.getSafeProp(P,"username")||"",t=rW.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,aw.origin);if(!r&&(e.username||e.password)){let t=a9(e.username),n=a9(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;x.delete("authorization"),x.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(T&&"string"==typeof n&&n.startsWith("data:")){let t;if(N=n,t="string"==typeof N?N.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let i=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(i))return t(o);let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&a2(o,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=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r})(-1===t?N:N.slice(0,t),a6)>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S)}if(L&&"get"!==i&&"head"!==i){let e=await b(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>A))throw Y()}let B=L&&(rW.isReadableStream(l)||rW.isStream(l)),j=(e,t,n)=>a0(e,65536,e=>{if(L&&e>A)throw O=Y();t&&t(e)},n);if(f&&"get"!==i&&"head"!==i&&(y||B)){if(t=null==t?await _(x,l):t,0!==t||B){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(rW.isFormData(l)&&(e=i.headers.get("content-type"))&&x.setContentType(e),i.body){let[e,n]=y&&aB(t,aP(aj(y)))||[];l=j(i.body,e,n)}}}else if(B&&!d&&m&&"get"!==i&&"head"!==i)l=j(l);else if(B&&d&&!f&&"get"!==i&&"head"!==i)throw new r8("Stream request bodies are not supported by the current fetch implementation",r8.ERR_NOT_SUPPORT,e,S);rW.isString(w)||(w=w?"include":"omit");let H=d&&"credentials"in a.prototype;if(rW.isFormData(l)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/1.20.0",!1);let z=null==k?k:Object.assign(Object.create(null),k);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:D,method:i.toUpperCase(),headers:rJ(x.normalize()),body:l,duplex:"half",credentials:H?w:void 0});d&&(rW.forEach(a7,(e,t)=>{void 0===U[t]&&(U[t]=e)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===C&&(U.redirect="manual",z&&(z.redirect="manual")),S=d&&new a(n,U);let $=await (d?M(S,z):M(n,U)),V=r4.from($.headers);if(T){let t=rW.toFiniteNumber(V.getContentLength());if(null!=t&&t>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S)}let W=h&&("stream"===F||"response"===F);if(h&&$.body&&(v||T||W&&I)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let n=rW.toFiniteNumber(V.getContentLength()),[i,o]=v&&aB(n,aP(aj(v),!0))||[];$=new s(a0($.body,65536,t=>{if(T&&t>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S);i&&i(t)},()=>{o&&o(),I&&I()}),t)}F=F||"text";let q=await p[rW.findKey(p,F)||"text"]($,e);if(T&&!h&&!W){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 o?new o().encode(q).byteLength:q.length)),"number"==typeof t&&t>E)throw new r8("maxContentLength size of "+E+" exceeded",r8.ERR_BAD_RESPONSE,e,S)}return!W&&I&&I(),await new Promise((t,n)=>{aS(t,n,{data:q,headers:r4.from($.headers),status:$.status,statusText:$.statusText,config:e,request:S})})}catch(t){if(I&&I(),D&&D.aborted&&D.reason instanceof r8){let n=D.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(O)throw S&&!O.request&&(O.request=S),O;if(t instanceof r8)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new r8("Network Error",r8.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 r8.from(t,t&&t.code,e,S,t&&t.response)}}},sn=new Map,si=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,d=sn;for(;a--;)s=r[a],void 0===(l=d.get(s))&&d.set(s,l=a?new Map:st(t)),d=l;return l};si();let so={http:null,xhr:aX,fetch:{get:si}};rW.forEach(so,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let sr=e=>`- ${e}`,sa=e=>rW.isFunction(e)||null===e||!1===e,ss=function(e,t){let n,i,{length:o}=e=rW.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!sa(n)&&void 0===(i=so[(o=String(n)).toLowerCase()]))throw new r8(`Unknown adapter '${o}'`);if(i&&(rW.isFunction(i)||(i=i.get(t))))break;r[o||"#"+a]=i}if(!i){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 r8("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(sr).join("\n"):" "+sr(e[0]):"as no adapter specified"),r8.ERR_NOT_SUPPORT)}return i};function sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new aD(null,e)}function sd(e){let t=rW.toSafeFlatObject(e);return sl(t),t.headers=r4.from(rW.getSafeProp(t,"headers")),t.data=aL.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ss(t.adapter||aT.adapter,t)(t).then(function(e){sl(t),t.response=e;try{e.data=aL.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=r4.from(e.headers),e},function(e){if(!aM(e)&&(sl(t),e&&e.response)){t.response=e.response;try{e.response.data=aL.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=r4.from(e.response.headers)}return Promise.reject(e)})}let sc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let sm={};sc.transitional=function(e,t,n){function i(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new r8(i(o," has been removed"+(t?" in "+t:"")),r8.ERR_DEPRECATED);return t&&!sm[o]&&(sm[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},sc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let su=function(e,t,n){if("object"!=typeof e||null===e)throw new r8("options must be an object",r8.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let r=i[o],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 r8("option "+r+" must be "+n,r8.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new r8("Unknown option "+r,r8.ERR_BAD_OPTION)}};class sf{constructor(e){this.defaults=e||{},this.interceptors={request:new af,response:new af}}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,i="";if("string"==typeof n){let e=n.indexOf("\n");i=-1===e?"":n.slice(e+1)}if(e.stack){if(i){let t=i.indexOf("\n"),n=-1===t?-1:i.indexOf("\n",t+1),o=-1===n?"":i.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+i)}}else e.stack=i}catch(e){}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:r,headers:a}=t=aq(this.defaults,t);void 0!==o&&su(o,{silentJSONParsing:sc.transitional(sc.boolean),forcedJSONParsing:sc.transitional(sc.boolean),clarifyTimeoutError:sc.transitional(sc.boolean),legacyInterceptorReqResOrdering:sc.transitional(sc.boolean),advertiseZstdAcceptEncoding:sc.transitional(sc.boolean),validateStatusUndefinedResolves:sc.transitional(sc.boolean)},!1),null!=r&&(rW.isFunction(r)?t.paramsSerializer={serialize:r}:su(r,{encode:sc.function,serialize:sc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),su(t,{baseUrl:sc.spelling("baseURL"),withXsrfToken:sc.spelling("withXSRFToken")},!0),t.method=(rW.getSafeProp(t,"method")||rW.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&rW.merge(a.common,a[t.method]);a&&rW.forEach(aA.concat("common"),e=>{delete a[e]}),t.headers=r4.concat(s,a);let l=[],d=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;d=d&&e.synchronous;let n=t.transitional||ah;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let m=0;if(!d){let e=[sd.bind(this),void 0];for(e.unshift(...l),e.push(...c),i=e.length,n=Promise.resolve(t);m<i;)n=n.then(e[m++],e[m++]);return n}i=l.length;let u=t;for(;m<i;){let e=l[m++],t=l[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let i=t.call(this,e);rW.isThenable(i)&&(n=Promise.resolve(i).then(()=>sd.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=sd.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,i=c.length;m<i;)n=n.then(c[m++],c[m++]);return n}getUri(e){return al(aV((e=aq(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rW.forEach(["delete","get","head","options"],function(e){sf.prototype[e]=function(t,n){return this.request(aq(n||{},{method:e,url:t,data:n&&rW.hasOwnProp(n,"data")?n.data:void 0}))}}),rW.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(aq(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}sf.prototype[e]=t(),"query"!==e&&(sf.prototype[e+"Form"]=t(!0))});let sh=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,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new aD(e,i,o),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}}},sp={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(sp).forEach(([e,t])=>{void 0===sp[t]&&(sp[t]=e)});let sb=function e(t){let n=new sf(t),i=re(sf.prototype.request,n);return rW.extend(i,sf.prototype,n,{allOwnKeys:!0}),rW.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(aq(t,n))},i}(aT);sb.Axios=sf,sb.CanceledError=aD,sb.CancelToken=sh,sb.isCancel=aM,sb.VERSION="1.20.0",sb.toFormData=ai,sb.AxiosError=r8,sb.Cancel=sb.CanceledError,sb.all=function(e){return Promise.all(e)},sb.spread=function(e){return function(t){return e.apply(null,t)}},sb.isAxiosError=function(e){return rW.isObject(e)&&!0===e.isAxiosError},sb.mergeConfig=aq,sb.AxiosHeaders=r4,sb.formToJSON=e=>aE(rW.isHTMLForm(e)?new FormData(e):e),sb.getAdapter=ss,sb.HttpStatusCode=sp,sb.default=sb;class s_{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:sB`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:sB`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:sB`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:sB`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:sB`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:sB`realm/${e}`,data:t,options:n})}}class sg{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:sB`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:sB`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:sB`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:sB`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:sB`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:sB`model/valueDescriptors`,queryParams:e,options:t})}}class sv{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:sB`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:sB`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:sB`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:sB`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:sB`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class sy{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:sB`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:sB`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:sB`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:sB`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:sB`dashboard/${e}/${t}`,options:n})}}class sF{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:sB`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:sB`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:sB`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:sB`syslog/event`,queryParams:e,options:t})}}class sx{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:sB`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:sB`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:sB`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:sB`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:sB`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:sB`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:sB`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:sB`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:sB`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:sB`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:sB`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:sB`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:sB`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:sB`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:sB`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:sB`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`rules/${e}`,data:t,options:n})}}class sw{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:sB`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:sB`info`,options:e})}}class sk{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:sB`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:sB`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:sB`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:sB`provisioning/${e}`,data:t,options:n})}}class sE{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:sB`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:sB`configuration/manager`,data:e,options:t})}imageUpload(e,t,n){return this.httpClient.request({method:"POST",url:sB`configuration/manager/image`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:sB`configuration/manager/image/${e}`,options:t})}}class sA{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:sB`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:sB`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:sB`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:sB`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:sB`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:sB`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:sB`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:sB`alarm/${e}/assets`,queryParams:t,options:n})}}class sC{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:sB`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:sB`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:sB`apps/info`,options:e})}}class sT{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:sB`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:sB`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:sB`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:sB`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:sB`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:sB`map/upload`,queryParams:e,options:t})}}class sL{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:sB`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:sB`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:sB`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:sB`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:sB`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:sB`service/${e}/${t}`,options:n})}}class sM{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:sB`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:sB`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:sB`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:sB`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:sB`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:sB`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:sB`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:sB`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:sB`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:sB`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:sB`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:sB`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:sB`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:sB`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:sB`user/${e}/${t}`,options:n})}}class sD{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:sB`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`asset/predicted/${e}/${t}`,data:n,options:i})}}class sS{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:sB`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:sB`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:sB`flow/${e}`,options:t})}}class sI{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:sB`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:sB`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:sB`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:sB`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:sB`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:sB`gateway/status/${e}`,options:t})}}class sO{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:sB`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:sB`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:sB`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:sB`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:sB`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:sB`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:sB`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:sB`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:sB`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:sB`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:sB`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:sB`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:sB`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:sB`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:sB`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:sB`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:sB`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`asset/${e}/attribute/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:sB`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:sB`asset/${e}/child`,queryParams:t,options:n})}}class sY{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:sB`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:sB`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:sB`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:sB`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:sB`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:sB`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:sB`notification/${e}/delivered`,queryParams:t,options:n})}}class sR{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:sB`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:sB`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:sB`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class sN{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:sB`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:sB`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:sB`asset/datapoint/${e}/${t}`,data:n,options:i})}}class sP{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:sB`console/register`,data:e,options:t})}}function sB(e,...t){let n="";for(let i=0;i<t.length;i++)n+=e[i],n+=encodeURIComponent(t[i]);return n+e[e.length-1]}class sj{constructor(e,t=sb.create()){this._realmResource=new sz(e,t),this._assetModelResource=new sU(e,t),this._gatewayServiceResource=new s$(e,t),this._dashboardResource=new sV(e,t),this._syslogResource=new sW(e,t),this._rulesResource=new sq(e,t),this._statusResource=new sG(e,t),this._provisioningResource=new sK(e,t),this._configurationResource=new sX(e,t),this._alarmResource=new sJ(e,t),this._appResource=new sQ(e,t),this._mapResource=new sZ(e,t),this._externalServiceResource=new s0(e,t),this._userResource=new s1(e,t),this._assetPredictedDatapointResource=new s2(e,t),this._flowResource=new s5(e,t),this._gatewayClientResource=new s4(e,t),this._assetResource=new s3(e,t),this._notificationResource=new s6(e,t),this._agentResource=new s7(e,t),this._assetDatapointResource=new s8(e,t),this._consoleResource=new s9(e,t),this._assetResource=new s3(e,t)}get RealmResource(){return this._realmResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get RulesResource(){return this._rulesResource}get StatusResource(){return this._statusResource}get ProvisioningResource(){return this._provisioningResource}get ConfigurationResource(){return this._configurationResource}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get MapResource(){return this._mapResource}get ExternalServiceResource(){return this._externalServiceResource}get UserResource(){return this._userResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get FlowResource(){return this._flowResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get NotificationResource(){return this._notificationResource}get AgentResource(){return this._agentResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConsoleResource(){return this._consoleResource}}class sH{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 sz extends s_{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sU extends sg{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s$ extends sv{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sV extends sy{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sW extends sF{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sq extends sx{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sG extends sw{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sK extends sk{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sX extends sE{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sJ extends sA{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sQ extends sC{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class sZ extends sT{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s0 extends sL{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s1 extends sM{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s2 extends sD{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s5 extends sS{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s4 extends sI{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s3 extends sO{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s6 extends sY{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s7 extends sR{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s8 extends sN{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}class s9 extends sP{constructor(e,t=sb.create()){t.defaults.baseURL=e,super(new sH(t))}}var le=n(8183),lt=n.n(le);sb.isAxiosError;let ln=new class{get api(){return this._client}constructor(){this._axiosInstance=sb.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>lt().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 sj(e,this._axiosInstance)}};var li=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};(hu=pF||(pF={})).DISCONNECTED="DISCONNECTED",hu.CONNECTED="CONNECTED",hu.CONNECTING="CONNECTING";let lo="SUBSCRIBED:",lr="UNAUTHORIZED:",la="TRIGGERED:",ls="EVENT:";class ll{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=ld.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=pF.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===pF.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(pF.CONNECTING),this._connectingDeferred=new oX,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=ld.MIN_RECONNECT_DELAY,this._onStatusChanged(pF.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!==pF.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new oX};return null!=this._pendingSubscription||this._status!==pF.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 li(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===pF.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==pF.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return li(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+ll._subscriptionCounter++;if(!this._assetEventPromise){let e;lX.authenticated||(e={filterType:"asset",realm:lX.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(o,e=>{let t=e.asset.id;i?i.find(e=>t===e)&&n(e):e.asset.realm===lX.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(i&&t){let e={messageID:"read-assets:"+i.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(o)&&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),o&&this.unsubscribe(o),t}return o})})}subscribeAttributeEvents(e,t,n){return li(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0],o=i?e.map(e=>e.id):e,r=i?e:void 0,a="AttributeEvent"+ll._subscriptionCounter++;if(!this._attributeEventPromise){let e;lX.authenticated||(e={filterType:"asset",realm:lX.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;i?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):o?o.find(e=>r.id===e)&&n(t):t.realm===lX.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&o){let e={messageID:"read-assets:"+o.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:o}};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===pF.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===pF.CONNECTED&&this._onStatusChanged(pF.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(pF.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<ld.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(ld.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ll.MIN_RECONNECT_DELAY=0,ll.MAX_RECONNECT_DELAY=3e4,ll._subscriptionCounter=0;class ld extends ll{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="+lX.config.realm;return this._connectDeferred=new oX,(lX.authenticated?lX.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(lo)){let e=JSON.parse(t.substring(lo.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(lr)){let e=JSON.parse(t.substring(lr.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(la)){let e=JSON.parse(t.substring(la.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(ls)){let e=JSON.parse(t.substring(ls.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 oX,e.subscriptionId||(e.subscriptionId=ld._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=ls+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 oX;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(ls+JSON.stringify(e)),t.promise}}ld._subscriptionCounter=1;let lc=["__proto__","constructor","prototype"];function lm(e){return!("string"!=typeof e||0===e.length||e.length>128||lc.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function lu(e){return!(!lm(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let lf={lng:lu,ns:function(e){return!(!lm(e)||e.indexOf("//")>-1)}};function lh(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function lp(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let lb=/\{\{(.+?)\}\}/g;function l_(e,t){let n=!1,i=e.replace(lb,(e,i)=>{let o=i.trim();if(lc.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=lf[o]||lu,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let lg="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?o=fetch:lg&&"function"==typeof lg.fetch&&(o=lg.fetch);let lv=lp()&&lg?lg.XMLHttpRequest:void 0,ly="function"==typeof ActiveXObject&&lg?lg.ActiveXObject:void 0,lF=["__proto__","constructor","prototype"],lx=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))lF.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},lw=(e,t,n,i)=>{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(i){let o=i(e,t);if(o instanceof Promise)return void o.then(r).catch(n)}"function"==typeof fetch?fetch(e,t).then(r).catch(n):o(e,t).then(r).catch(n)},lk=(e,t,n,i)=>{if("function"==typeof n&&(i=n,n=void 0),i=i||(()=>{}),o&&0!==t.indexOf("file:")){var r=t,a=n,s=i;e.queryStringParams&&(r=lx(r,e.queryStringParams));let o={..."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&&(o["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(o["Content-Type"]="application/json");let l="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,d={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:o,...e._omitFetchOptions?{}:l},c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{lw(r,d,s,c)}catch(t){if(!l||0===Object.keys(l).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(l).forEach(e=>{delete d[e]}),lw(r,d,s,c),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(lp()||"function"==typeof ActiveXObject){var l=t,d=n,c=i;d&&"object"==typeof d&&(d=lx("",d).slice(1)),e.queryStringParams&&(l=lx(l,e.queryStringParams));try{let t=lv?new lv:new ly("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",l,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,d&&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))lF.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(d)}catch(e){console&&console.log(e)}return}i(Error("No fetch and no xhr implementation found!"))};var lE=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:lk,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,i,o){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 o(null,{});let a=l_(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(lh).join(", ")+"] namespaces=["+n.map(lh).join(", ")+"]"),!1);this.loadUrl(a,o,t,i)})}loadUrl(e,t,n,i){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof i?[i]:i),r=lh(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,o,(e,o)=>{let a,s;if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+r+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+r+"; status code: "+o.status,!1);if(!o&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+lh(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof o.data?this.options.parse(o.data,n,i):o.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,i,o){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,i),a=0,s=[],l=[];e.forEach(n=>{let i=this.options.addPath;"function"==typeof this.options.addPath&&(i=this.options.addPath(n,t));let d=l_(i,{lng:n,ns:t});if(null==d){a+=1,o&&a===e.length&&o(s,l);return}this.options.request(this.options,d,r,(t,n)=>{a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,i=e.language;if(i&&"cimode"===i.toLowerCase())return;let o=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>o.indexOf(e)&&o.push(e)})};r(i),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),o.forEach(t=>{this.allOptions.ns.forEach(i=>{e.read(t,i,"read",null,null,(o,r)=>{o&&n.warn(`loading namespace ${i} for language ${t} failed`,o),!o&&r&&n.log(`loaded namespace ${i} for language ${t}`,r),e.loaded(`${t}|${i}`,o,r)})})})}};lE.type="backend";class lA extends nK{constructor(e){if(super(e),this.it=el,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===el||null==e)return this._t=void 0,this.it=e;if(e===es)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:[]}}}lA.directiveName="unsafeHTML",lA.resultType=1,nG(lA);class lC extends lA{}lC.directiveName="unsafeSVG",lC.resultType=2;let lT=nG(lC),lL={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 lM=function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class lD extends CustomEvent{constructor(){super(lD.NAME,{bubbles:!0,composed:!0})}}lD.NAME="or-iconset-added";let lS=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new lD)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return ea``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):ea``}},lI=class extends eT{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[g`
|
|
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-attribute-picker",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.2",
|
|
4
4
|
"description": "OpenRemote attribute picker dialog",
|
|
5
5
|
"customElements": "build/custom-elements.json",
|
|
6
6
|
"main": "build/dist/umd/index.bundle.js",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"author": "OpenRemote",
|
|
28
28
|
"license": "AGPL-3.0-or-later",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@openremote/core": "1.32.
|
|
31
|
-
"@openremote/model": "1.32.
|
|
32
|
-
"@openremote/or-asset-tree": "1.32.
|
|
33
|
-
"@openremote/or-mwc-components": "1.32.
|
|
34
|
-
"@openremote/or-translate": "1.32.
|
|
35
|
-
"@openremote/or-vaadin-components": "1.32.
|
|
30
|
+
"@openremote/core": "1.32.2",
|
|
31
|
+
"@openremote/model": "1.32.2",
|
|
32
|
+
"@openremote/or-asset-tree": "1.32.2",
|
|
33
|
+
"@openremote/or-mwc-components": "1.32.2",
|
|
34
|
+
"@openremote/or-translate": "1.32.2",
|
|
35
|
+
"@openremote/or-vaadin-components": "1.32.2",
|
|
36
36
|
"lit": "^3.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@openremote/util": "1.32.
|
|
39
|
+
"@openremote/util": "1.32.2"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|