@openremote/or-attribute-input 1.25.0-snapshot.20260612132321 → 1.25.0-snapshot.20260615073528
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.
|
@@ -67,7 +67,7 @@ ${s.shaderPreludeCode.vertexSource}`,define:s.shaderDefine},defaultProjectionDat
|
|
|
67
67
|
:host([hidden]) {
|
|
68
68
|
display: none;
|
|
69
69
|
}
|
|
70
|
-
`,t7([eY({type:String})],t9.prototype,"value",void 0),t7([eY({type:Object})],t9.prototype,"options",void 0),t9=t7([eN("or-translate")],t9),(hq=u1||(u1={})).CREATE="CREATE",hq.UPDATE="UPDATE",hq.DELETE="DELETE",(hG=u2||(u2={})).LOW="LOW",hG.MEDIUM="MEDIUM",hG.HIGH="HIGH",(hK=u3||(u3={})).MANUAL="MANUAL",hK.CLIENT="CLIENT",hK.GLOBAL_RULESET="GLOBAL_RULESET",hK.REALM_RULESET="REALM_RULESET",hK.ASSET_RULESET="ASSET_RULESET",hK.AGENT="AGENT",(hX=u5||(u5={})).OPEN="OPEN",hX.ACKNOWLEDGED="ACKNOWLEDGED",hX.IN_PROGRESS="IN_PROGRESS",hX.RESOLVED="RESOLVED",hX.CLOSED="CLOSED",(hZ=u4||(u4={})).BOTTOM_LEFT="BOTTOM_LEFT",hZ.BOTTOM_RIGHT="BOTTOM_RIGHT",hZ.TOP_LEFT="TOP_LEFT",hZ.TOP_RIGHT="TOP_RIGHT",(hJ=u6||(u6={})).CREATE="CREATE",hJ.READ="READ",hJ.UPDATE="UPDATE",hJ.DELETE="DELETE",(hQ=u8||(u8={})).NONE="NONE",hQ.FORECAST="FORECAST",hQ.SETPOINT="SETPOINT",(h0=u7||(u7={})).DISCONNECTED="DISCONNECTED",h0.CONNECTING="CONNECTING",h0.DISCONNECTING="DISCONNECTING",h0.CONNECTED="CONNECTED",h0.DISABLED="DISABLED",h0.WAITING="WAITING",h0.ERROR="ERROR",h0.STOPPED="STOPPED",(h1=u9||(u9={})).REQUEST_START="REQUEST_START",h1.REQUEST_REPEATING="REQUEST_REPEATING",h1.REQUEST_CANCEL="REQUEST_CANCEL",h1.READY="READY",h1.COMPLETED="COMPLETED",h1.RUNNING="RUNNING",h1.CANCELLED="CANCELLED",(h2=pe||(pe={})).TOGGLE="TOGGLE",h2.INCREMENT="INCREMENT",h2.DECREMENT="DECREMENT",h2.NEGATE="NEGATE",(h3=pt||(pt={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",h3.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",h3.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",h3.INVALID_VALUE="INVALID_VALUE",h3.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",h3.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",h3.CANNOT_PROCESS="CANNOT_PROCESS",h3.QUEUE_FULL="QUEUE_FULL",h3.UNKNOWN="UNKNOWN",h3.ASSET_ID_MISSING="ASSET_ID_MISSING",h3.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(h5=pn||(pn={})).PUBLIC="PUBLIC",h5.SHARED="SHARED",h5.PRIVATE="PRIVATE",(h4=pi||(pi={})).OFF="OFF",h4.ONE_MIN="ONE_MIN",h4.FIVE_MIN="FIVE_MIN",h4.QUARTER="QUARTER",h4.ONE_HOUR="ONE_HOUR",(h6=pr||(pr={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",h6.KEEP_LAYOUT="KEEP_LAYOUT",h6.REDIRECT="REDIRECT",h6.BLOCK_DEVICE="BLOCK_DEVICE",(h8=po||(po={})).CSV="CSV",h8.CSV_CROSSTAB="CSV_CROSSTAB",h8.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(h7=pa||(pa={})).MINUTE="MINUTE",h7.HOUR="HOUR",h7.DAY="DAY",h7.WEEK="WEEK",h7.MONTH="MONTH",h7.YEAR="YEAR",(h9=ps||(ps={})).MIN="MIN",h9.AVG="AVG",h9.MAX="MAX",h9.DIFFERENCE="DIFFERENCE",h9.COUNT="COUNT",h9.SUM="SUM",h9.MODE="MODE",h9.MEDIAN="MEDIAN",(ue=pl||(pl={})).TERMINATING="TERMINATING",ue.DISABLED="DISABLED",ue.ALREADY_CONNECTED="ALREADY_CONNECTED",ue.UNRECOGNISED="UNRECOGNISED",ue.PERMANENT_ERROR="PERMANENT_ERROR",ue.SYNC_ERROR="SYNC_ERROR",(ut=pc||(pc={})).HTTPS="HTTPS",ut.HTTP="HTTP",ut.TCP="TCP",(un=pd||(pd={})).GET="GET",un.POST="POST",un.PUT="PUT",un.DELETE="DELETE",un.OPTIONS="OPTIONS",un.PATCH="PATCH",(ui=ph||(ph={})).KEYCLOAK="KEYCLOAK",ui.BASIC="BASIC",ui.NONE="NONE",(ur=pu||(pu={})).WEBSOCKET="WEBSOCKET",ur.POLLING="POLLING",(uo=pp||(pp={})).INTERNAL="INTERNAL",uo.CLIENT="CLIENT",uo.GLOBAL_RULESET="GLOBAL_RULESET",uo.REALM_RULESET="REALM_RULESET",uo.ASSET_RULESET="ASSET_RULESET",(ua=pm||(pm={})).REALM="REALM",ua.USER="USER",ua.ASSET="ASSET",ua.CUSTOM="CUSTOM",(us=pf||(pf={})).NORMAL="NORMAL",us.HIGH="HIGH",(ul=pg||(pg={})).DEVICE="DEVICE",ul.TOPIC="TOPIC",ul.CONDITION="CONDITION",(uc=pb||(pb={})).ALWAYS="ALWAYS",uc.ONCE="ONCE",uc.HOURLY="HOURLY",uc.DAILY="DAILY",uc.WEEKLY="WEEKLY",uc.MONTHLY="MONTHLY",uc.ANNUALLY="ANNUALLY",(ud=pv||(pv={})).MESSAGE_INVALID="MESSAGE_INVALID",ud.CERTIFICATE_INVALID="CERTIFICATE_INVALID",ud.UNAUTHORIZED="UNAUTHORIZED",ud.FORBIDDEN="FORBIDDEN",ud.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",ud.CONFIG_DISABLED="CONFIG_DISABLED",ud.USER_DISABLED="USER_DISABLED",ud.SERVER_ERROR="SERVER_ERROR",ud.ASSET_ERROR="ASSET_ERROR",ud.SERVER_BUSY="SERVER_BUSY",(uh=p_||(p_={})).PRIVATE="PRIVATE",uh.PROTECTED="PROTECTED",uh.PUBLIC="PUBLIC",(uu=py||(py={})).EXACT="EXACT",uu.BEGIN="BEGIN",uu.END="END",uu.CONTAINS="CONTAINS",(up=px||(px={})).EQUALS="EQUALS",up.GREATER_THAN="GREATER_THAN",up.GREATER_EQUALS="GREATER_EQUALS",up.LESS_THAN="LESS_THAN",up.LESS_EQUALS="LESS_EQUALS",up.BETWEEN="BETWEEN",(um=pw||(pw={})).CREATED_ON="CREATED_ON",um.NAME="NAME",um.ASSET_TYPE="ASSET_TYPE",um.PARENT_ID="PARENT_ID",um.REALM="REALM",(uf=pk||(pk={})).RESTRICTED="RESTRICTED",uf.LINKED="LINKED",uf.REALM="REALM",(ug=pM||(pM={})).AT_LEAST_ONE="AT_LEAST_ONE",ug.ALL="ALL",ug.NONE="NONE",(ub=pF||(pF={})).AND="AND",ub.OR="OR",(uv=pE||(pE={})).CREATED_ON="CREATED_ON",uv.FIRST_NAME="FIRST_NAME",uv.LAST_NAME="LAST_NAME",uv.USERNAME="USERNAME",uv.EMAIL="EMAIL",(u_=pC||(pC={})).STOPPED="STOPPED",u_.RUNNING="RUNNING",u_.ERROR="ERROR",(uy=pT||(pT={})).JAVASCRIPT="JAVASCRIPT",uy.GROOVY="GROOVY",uy.JSON="JSON",uy.FLOW="FLOW",(ux=pA||(pA={})).READY="READY",ux.DEPLOYED="DEPLOYED",ux.COMPILATION_ERROR="COMPILATION_ERROR",ux.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",ux.EXECUTION_ERROR="EXECUTION_ERROR",ux.LOOP_ERROR="LOOP_ERROR",ux.DISABLED="DISABLED",ux.PAUSED="PAUSED",ux.EXPIRED="EXPIRED",ux.REMOVED="REMOVED",ux.EMPTY="EMPTY",(uw=pS||(pS={})).SUNRISE="SUNRISE",uw.SUNSET="SUNSET",uw.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",uw.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",uw.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",uw.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",uw.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",uw.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",uw.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",uw.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",uw.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",uw.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",uw.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",uw.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",uw.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",uw.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",uw.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",uw.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",uw.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",uw.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(uk=pL||(pL={})).NUMBER="NUMBER",uk.NUMBER_ARRAY="NUMBER_ARRAY",uk.STRING="STRING",uk.BOOLEAN="BOOLEAN",uk.TRIGGER="TRIGGER",uk.COLOR="COLOR",uk.ANY="ANY",(uM=pD||(pD={})).NEW_LINE="NEW_LINE",uM.SPACER="SPACER",(uF=pI||(pI={})).INPUT="INPUT",uF.PROCESSOR="PROCESSOR",uF.OUTPUT="OUTPUT",uF.THEN="THEN",(uE=pz||(pz={})).TEXT="TEXT",uE.MULTILINE="MULTILINE",uE.NUMBER="NUMBER",uE.DROPDOWN="DROPDOWN",uE.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",uE.CHECKBOX="CHECKBOX",uE.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",uE.COLOR="COLOR",uE.DATE="DATE",(uC=pO||(pO={})).ADD="ADD",uC.ADD_OR_REPLACE="ADD_OR_REPLACE",uC.REPLACE="REPLACE",uC.DELETE="DELETE",uC.CLEAR="CLEAR",(uT=pR||(pR={})).PER_ASSET="PER_ASSET",uT.GLOBAL="GLOBAL",(uA=pP||(pP={})).READ_ADMIN="read:admin",uA.READ_LOGS="read:logs",uA.READ_USERS="read:users",uA.READ_MAP="read:map",uA.READ_ASSETS="read:assets",uA.READ_RULES="read:rules",uA.READ_INSIGHTS="read:insights",uA.READ_ALARMS="read:alarms",uA.READ_SERVICES="read:services",uA.WRITE_SERVICES="write:services",uA.WRITE_USER="write:user",uA.WRITE_ADMIN="write:admin",uA.WRITE_LOGS="write:logs",uA.WRITE_ASSETS="write:assets",uA.WRITE_ATTRIBUTES="write:attributes",uA.WRITE_RULES="write:rules",uA.WRITE_INSIGHTS="write:insights",uA.WRITE_ALARMS="write:alarms",uA.READ="read",uA.WRITE="write",(uS=p$||(p$={})).REGISTER="REGISTER",uS.UPDATE="UPDATE",uS.DEREGISTER="DEREGISTER",(uL=pB||(pB={})).AVAILABLE="AVAILABLE",uL.UNAVAILABLE="UNAVAILABLE",(uD=pN||(pN={})).ASSET="ASSET",uD.AGENT="AGENT",uD.NOTIFICATION="NOTIFICATION",uD.ALARM="ALARM",uD.RULES="RULES",uD.PROTOCOL="PROTOCOL",uD.GATEWAY="GATEWAY",uD.MODEL_AND_VALUES="MODEL_AND_VALUES",uD.API="API",uD.DATA="DATA",(uI=pj||(pj={})).INFO="INFO",uI.WARN="WARN",uI.ERROR="ERROR",(uz=pY||(pY={})).NUMERIC="numeric",uz.DIGIT_2="2-digit",uz.FULL="full",uz.LONG="long",uz.MEDIUM="medium",uz.SHORT="short",uz.NARROW="narrow",(uO=pH||(pH={})).SECONDLY="SECONDLY",uO.MINUTELY="MINUTELY",uO.HOURLY="HOURLY",uO.DAILY="DAILY",uO.WEEKLY="WEEKLY",uO.MONTHLY="MONTHLY",uO.YEARLY="YEARLY",(uR=pV||(pV={})).OMIT="OMIT",uR.BACKWARD="BACKWARD",uR.FORWARD="FORWARD",(uP=pU||(pU={})).JAPANESE="JAPANESE",uP.BUDDHIST="BUDDHIST",uP.ROC="ROC",uP.ISLAMIC="ISLAMIC",uP.ISO8601="ISO8601",uP.CHINESE="CHINESE",uP.ETHIOPIC="ETHIOPIC",uP.HEBREW="HEBREW",uP.GREGORIAN="GREGORIAN",(u$=pW||(pW={})).SU="SU",u$.MO="MO",u$.TU="TU",u$.WE="WE",u$.TH="TH",u$.FR="FR",u$.SA="SA",(uB=pq||(pq={})).PEOPLECOUNTERASSET="PeopleCounterAsset",uB.MAILAGENT="MailAgent",uB.UDPAGENT="UDPAgent",uB.ROOMASSET="RoomAsset",uB.CITYASSET="CityAsset",uB.VENTILATIONASSET="VentilationAsset",uB.TRADFRILIGHTASSET="TradfriLightAsset",uB.CONSOLEASSET="ConsoleAsset",uB.PRESENCESENSORASSET="PresenceSensorAsset",uB.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",uB.LIGHTASSET="LightAsset",uB.KNXAGENT="KNXAgent",uB.THETHINGSSTACKAGENT="TheThingsStackAgent",uB.PLUGASSET="PlugAsset",uB.CHIRPSTACKAGENT="ChirpStackAgent",uB.WEATHERASSET="WeatherAsset",uB.THINGASSET="ThingAsset",uB.WEBSOCKETAGENT="WebsocketAgent",uB.TCPAGENT="TCPAgent",uB.GATEWAYASSET="GatewayAsset",uB.SERIALAGENT="SerialAgent",uB.BLUETOOTHMESHAGENT="BluetoothMeshAgent",uB.PARKINGASSET="ParkingAsset",uB.TRADFRIPLUGASSET="TradfriPlugAsset",uB.SIMULATORAGENT="SimulatorAgent",uB.SNMPAGENT="SNMPAgent",uB.GROUPASSET="GroupAsset",uB.BUILDINGASSET="BuildingAsset",uB.MODBUSSERIALAGENT="ModbusSerialAgent",uB.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",uB.MQTTAGENT="MQTTAgent",uB.VELBUSTCPAGENT="VelbusTCPAgent",uB.ARTNETLIGHTASSET="ArtnetLightAsset",uB.VELBUSSERIALAGENT="VelbusSerialAgent",uB.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",uB.MICROPHONEASSET="MicrophoneAsset",uB.MODBUSTCPAGENT="ModbusTcpAgent",uB.ZWAVEAGENT="ZWaveAgent",uB.HTTPAGENT="HTTPAgent",uB.DOORASSET="DoorAsset",uB.THERMOSTATASSET="ThermostatAsset",uB.SHIPASSET="ShipAsset",(uN=pG||(pG={})).COLOURRGB="colourRGB",uN.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",uN.PRICEHOURLY="priceHourly",uN.MQTTPORT="MQTTPort",uN.PINGDISABLED="pingDisabled",uN.FLOW="flow",uN.CHILDASSETTYPE="childAssetType",uN.LASTACCESS="lastAccess",uN.POSITION="position",uN.NETWORKKEY="networkKey",uN.UNIVERSE="universe",uN.ROUTINGMODE="routingMode",uN.MSSINUMBER="MSSINumber",uN.LASTWILLRETAIN="lastWillRetain",uN.LASTWILLTOPIC="lastWillTopic",uN.SERIALBAUDRATE="serialBaudrate",uN.SUBSCRIBEQOS="subscribeQos",uN.LEDCOUNT="lEDCount",uN.LOCKED="locked",uN.CLOUDCOVERAGE="cloudCoverage",uN.BASEURL="baseURL",uN.PROTOCOL="protocol",uN.REQUIREDVALUES="requiredValues",uN.REGION="region",uN.CONSOLEPLATFORM="consolePlatform",uN.GATEWAYSTATUS="gatewayStatus",uN.NO2LEVEL="NO2Level",uN.ATMOSPHERICPRESSURE="atmosphericPressure",uN.SERIALPORT="serialPort",uN.APPLICATIONID="applicationId",uN.TAGS="tags",uN.UNLOCK="unlock",uN.CHECKINTERVALSECONDS="checkIntervalSeconds",uN.LOCATION="location",uN.CLIENTSECRET="clientSecret",uN.WINDDIRECTION="windDirection",uN.WINDSPEED="windSpeed",uN.PARTICLESPM10="particlesPM10",uN.APPLICATIONKEY="applicationKey",uN.LENGTH="length",uN.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",uN.USERNAMEPASSWORD="usernamePassword",uN.WATERLEVEL="waterLevel",uN.CONNECTHEADERS="connectHeaders",uN.CONSOLENAME="consoleName",uN.WEBSOCKETQUERY="websocketQuery",uN.PREFERHTML="preferHTML",uN.PARITY="parity",uN.COOLING="cooling",uN.POLLINGMILLIS="pollingMillis",uN.SOILTEMPERATURE="soilTemperature",uN.SUNIRRADIANCE="sunIrradiance",uN.MESSAGEMAXLENGTH="messageMaxLength",uN.WINDGUSTSPEED="windGustSpeed",uN.LIGHTID="lightId",uN.PROXYADDRESS="proxyAddress",uN.REQUESTQUERYPARAMETERS="requestQueryParameters",uN.MQTTHOST="MQTTHost",uN.SECUREGRPC="secureGRPC",uN.MODEL="model",uN.STREET="street",uN.MANUFACTURER="manufacturer",uN.DELETEPROCESSEDMAIL="deleteProcessedMail",uN.RESUMESESSION="resumeSession",uN.ONOFF="onOff",uN.APIKEY="ApiKey",uN.CITY="city",uN.PRESENCE="presence",uN.SPACESOCCUPIED="spacesOccupied",uN.STARTTLS="startTLS",uN.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",uN.WEBSOCKETPATH="websocketPath",uN.AGENTSTATUS="agentStatus",uN.PRICEDAILY="priceDaily",uN.COUNTGROWTHMINUTE="countGrowthMinute",uN.IMONUMBER="IMONumber",uN.ATTRIBUTION="Attribution",uN.TENANTID="tenantId",uN.REQUESTHEADERS="requestHeaders",uN.HOST="host",uN.COUNTOUTMINUTE="countOutMinute",uN.MESSAGECHARSET="messageCharset",uN.CERTIFICATEALIAS="certificateAlias",uN.EMAIL="email",uN.BINDPORT="bindPort",uN.CONSOLEVERSION="consoleVersion",uN.PARTICLESPM1="particlesPM1",uN.MTU="mtu",uN.SPEED="speed",uN.MESSAGESTRIPDELIMITER="messageStripDelimiter",uN.AREA="area",uN.COUNTRY="country",uN.SHIPTYPE="shipType",uN.CONNECTSUBSCRIPTIONS="connectSubscriptions",uN.RELATIVEHUMIDITY="relativeHumidity",uN.SOURCEADDRESS="sourceAddress",uN.RAINFALL="rainfall",uN.OAUTHGRANT="oAuthGrant",uN.OZONELEVEL="ozoneLevel",uN.SEQUENCENUMBER="sequenceNumber",uN.COUNTINMINUTE="countInMinute",uN.PORT="port",uN.SUNALTITUDE="sunAltitude",uN.COUNTOUT="countOut",uN.ROOMNUMBER="roomNumber",uN.TUNNELINGSUPPORTED="tunnelingSupported",uN.ENINUMBER="ENINumber",uN.PARTICLESPM2_5="particlesPM2_5",uN.AGENTDISABLED="agentDisabled",uN.DISABLED="disabled",uN.COUNTIN="countIn",uN.MESSAGESOURCEADDRESS="messageSourceAddress",uN.PROVISIONWEATHERASSET="ProvisionWeatherAsset",uN.TIMEINJECTIONINTERVAL="timeInjectionInterval",uN.TEMPERATURESETPOINT="temperatureSetpoint",uN.CONSOLEPROVIDERS="consoleProviders",uN.COUNTTOTAL="countTotal",uN.SPACESBUFFER="spacesBuffer",uN.DEVICECONFIG="deviceConfig",uN.SPACESTOTAL="spacesTotal",uN.BINDHOST="bindHost",uN.FANSPEED="fanSpeed",uN.MESSAGECONVERTBINARY="messageConvertBinary",uN.NOTES="notes",uN.MAILFOLDERNAME="mailFolderName",uN.MESSAGEDELIMITERS="messageDelimiters",uN.TEMPERATURE="temperature",uN.SUNZENITH="sunZenith",uN.SNMPVERSIONVALUE="SNMPVersionValue",uN.BRIGHTNESS="brightness",uN.POSTALCODE="postalCode",uN.SPACESOPEN="spacesOpen",uN.HUMIDITY="humidity",uN.SOUNDLEVEL="soundLevel",uN.SECUREMODE="secureMode",uN.DIRECTION="direction",uN.STOPBITS="stopbits",uN.UVINDEX="uVIndex",uN.CONNECTURL="connectURL",uN.CLIENTID="clientId",uN.NATMODE="NATMode",uN.UPDATEONWRITE="updateOnWrite",uN.LASTWILLPAYLOAD="lastWillPayload",uN.GROUPID="groupId",uN.FOLLOWREDIRECTS="followRedirects",uN.SUNAZIMUTH="sunAzimuth",uN.MESSAGECONVERTHEX="messageConvertHex",uN.WEBSOCKETMODE="websocketMode",uN.COLOURTEMPERATURE="colourTemperature",uN.PUBLISHQOS="publishQos",uN.DATABITS="dataBits",(uj=pK||(pK={})).FORMAT="format",uj.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",uj.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",uj.SECRET="secret",uj.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",uj.ATTRIBUTELINKS="attributeLinks",uj.RULERESETIMMEDIATE="ruleResetImmediate",uj.RULESTATE="ruleState",uj.AGENTLINKCONFIG="agentLinkConfig",uj.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",uj.FORECAST="forecast",uj.STOREDATAPOINTS="storeDataPoints",uj.LABEL="label",uj.CONSTRAINTS="constraints",uj.UNITS="units",uj.USERCONNECTED="userConnected",uj.SHOWONDASHBOARD="showOnDashboard",uj.READONLY="readOnly",uj.MULTILINE="multiline",uj.ACCESSPUBLICWRITE="accessPublicWrite",uj.MOMENTARY="momentary",uj.AGENTLINK="agentLink",uj.ACCESSRESTRICTEDREAD="accessRestrictedRead",uj.ACCESSPUBLICREAD="accessPublicRead",(uY=pX||(pX={})).ASSETQUERY="assetQuery",uY.WSURL="WS_URL",uY.COLOURRGB="colourRGB",uY.VALUEFORMAT="valueFormat",uY.TEXT="text",uY.BYTE="byte",uY.USERNAMEANDPASSWORD="usernameAndPassword",uY.HTTPURL="HTTP_URL",uY.ATTRIBUTELINK="attributeLink",uY.ASSETID="assetID",uY.NUMBERMAP="numberMap",uY.HTTPMETHOD="HTTPMethod",uY.ATTRIBUTESTATE="attributeState",uY.POSITIVENUMBER="positiveNumber",uY.POSITIVEINTEGER="positiveInteger",uY.EXECUTIONSTATUS="executionStatus",uY.BIGINTEGER="bigInteger",uY.VALUEDESCRIPTOR="valueDescriptor",uY.PERIODDURATIONISO8601="periodDurationISO8601",uY.LONG="long",uY.DATEANDTIME="dateAndTime",uY.BOOLEANMAP="booleanMap",uY.MQTTQOS="MQTTQos",uY.NEGATIVEINTEGER="negativeInteger",uY.TCPIPPORTNUMBER="TCP_IPPortNumber",uY.GEOJSONPOINT="GEO_JSONPoint",uY.SNMPVERSION="SNMPVersion",uY.ASSETTYPE="assetType",uY.JSONOBJECT="JSONObject",uY.INTEGERMAP="integerMap",uY.BIGNUMBER="bigNumber",uY.IPADDRESS="IPAddress",uY.EMAIL="email",uY.TIMESTAMP="timestamp",uY.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",uY.ATTRIBUTEREFERENCE="attributeReference",uY.UUID="UUID",uY.INTEGER="integer",uY.OAUTHGRANT="oAuthGrant",uY.NUMBER="number",uY.DEVICECONFIGMAP="DeviceConfigMap",uY.TEXTMAP="textMap",uY.WEBSOCKETSUBSCRIPTION="websocketSubscription",uY.BOOLEAN="boolean",uY.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",uY.FORECASTCONFIGURATION="forecastConfiguration",uY.TIMEDURATIONISO8601="timeDurationISO8601",uY.TIMESTAMPISO8601="timestampISO8601",uY.CONSOLEPROVIDERS="consoleProviders",uY.MULTIVALUEDTEXTMAP="multivaluedTextMap",uY.NEGATIVENUMBER="negativeNumber",uY.PARITYBIT="Paritybit",uY.JSON="JSON",uY.CRONEXPRESSION="CRONExpression",uY.INTEGERBYTE="integerByte",uY.AGENTLINK="agentLink",uY.DIRECTION="direction",uY.HOSTORIPADDRESS="hostOrIPAddress",uY.STOPBITS="Stopbits",uY.CALENDAREVENT="calendarEvent",uY.CONNECTIONSTATUS="connectionStatus",uY.VALUECONSTRAINT="valueConstraint",(uH=pZ||(pZ={})).MONTH="month",uH.MILE_SCANDINAVIAN="mile_scandinavian",uH.VAR="var",uH.OUNCE="ounce",uH.HECTARE="hectare",uH.YARD="yard",uH.YEAR="year",uH.GIGA="giga",uH.JOULE="joule",uH.VOLT="volt",uH.HERTZ="hertz",uH.MILE="mile",uH.DEGREE="degree",uH.KILO="kilo",uH.BTU="btu",uH.TERA="tera",uH.FOOT="foot",uH.MEGA="mega",uH.KELVIN="kelvin",uH.CARBON="carbon",uH.DECIBEL_ATTENUATED="decibel_attenuated",uH.INCH="inch",uH.SQUARED="squared",uH.PERCENTAGE="percentage",uH.IN_HG="inch_mercury",uH.CENTI="centi",uH.GRAM="gram",uH.CUBED="cubed",uH.DAY="day",uH.RADIAN="radian",uH.OHM="ohm",uH.MINUTE="minute",uH.PART_PER_MILLION="ppm",uH.AMP="amp",uH.MASS_POUND="pound",uH.KNOT="knot",uH.METRE="metre",uH.LITRE="litre",uH.FLUID_OUNCE="fluid_ounce",uH.HOUR="hour",uH.ACRE="acre",uH.CELSIUS="celsius",uH.RPM="rpm",uH.PASCAL="pascal",uH.DECIBEL="decibel",uH.LUMEN="lumen",uH.WEEK="week",uH.FAHRENHEIT="fahrenheit",uH.WATT="watt",uH.GALLON="gallon",uH.LUX="lux",uH.MILLI="milli",uH.BAR="bar",uH.HECTO="hecto",uH.PEAK="peak",uH.SECOND="second",uH.MICRO="micro",uH.PER="per",uH.STONE="stone",pJ||(pJ={});class ne{static getAssetDescriptors(){return ne._assetTypeInfos.map(t=>t.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(t){if(t)return t.assetDescriptor?t:("string"!=typeof t&&(t=t.name),this._assetTypeInfos.find(n=>n.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let n=this._assetTypeInfos.find(n=>n.assetDescriptor.name===t);return n?n.assetDescriptor:void 0}static getAttributeDescriptor(t,n){if(!t)return;let i=this.getAssetTypeInfo(n||"ThingAsset");if(i&&i.attributeDescriptors)return i.attributeDescriptors.find(n=>n.name===t)}static getValueDescriptor(t){let n;if(!t)return;if(t.endsWith("[]"))for(n=0;t.endsWith("[]");)t=t.substring(0,t.length-2),n++;let i=this._valueDescriptors.find(n=>n.name===t);return i&&n&&(i=Object.assign(Object.assign({},i),{arrayDimensions:n})),i}static resolveValueDescriptor(t,n){let i;return n&&("string"==typeof n&&(i=ne.getValueDescriptor(n)),i=n.jsonType?n:ne.getValueDescriptor(n.type)),!i&&t&&(i=ne.getValueDescriptor("JSON")),i}static resolveValueTypeFromValue(t){if(null!=t){if("number"==typeof t)return"number";if("string"==typeof t)return"text";if("boolean"==typeof t)return"boolean";if(Array.isArray(t)){let n=1,i=t.find(t=>null!=t);for(;Array.isArray(i);)i=i.find(t=>null!=t),n++;let r=this.resolveValueTypeFromValue(i);if(!r)return;for(;n>0;)r+="[]",n--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,n,i){let r,o;if(n&&"string"!=typeof n)r=n;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof n&&(r=this.getAttributeDescriptor(n,o)),!r&&i&&(r={type:i.type,name:i.name,meta:i.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(n=>n.name===t)}static getAssetDescriptorColour(t,n){let i=this.getAssetDescriptor(t);return i&&i.colour?i.colour:n}static getAssetDescriptorIcon(t,n){let i=this.getAssetDescriptor(t);return i&&i.icon?i.icon:n}}ne._assetTypeInfos=[],ne._metaItemDescriptors=[],ne._valueDescriptors=[],o(44532);var nt=o(88183),nn=o.n(nt),ni=o(14867),nr=o.n(ni);o(83472);class no{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n}),Object.freeze(this)}}function na(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>na(t[i],n[i]))}return!1}function ns(t){if(null==t)return"";let n=!1;return t.split(/([A-Z]|\d)/).map((t,i,r)=>{if(!t)return t;if(!n)return n=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let n=!r[i-1]||"_"===r[i-1],o=i+1<r.length&&r[i+1]&&"_"!==r[i+1],a=i+3>r.length||!r[i+1]&&!r[i+3];(!n||o)&&(t=" "+t),!o&&(n||a)||(t=t.toLowerCase())}return t}).join("").trim()}function nl(t,n,i){let r="string"==typeof t?t:t.name;return n&&n.meta&&n.meta.hasOwnProperty(r)?n.meta[r]:i&&i.meta?i.meta[r]:void 0}function nc(t,n){let i="string"==typeof t?ne.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:ne.resolveValueTypeFromValue(n),value:n}}function nd(t,n,i,r,o,a){let s=nf("label",t,n,i,o),l="";if(s||(s=nl("label",t,n&&n.meta?n:void 0)),r&&(l=np(nm("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?ns(i):void 0)}return s?s+(l?" ("+l+")":""):l}function nh(t,n,i,r,o,a){let s=nu(t?t.value:void 0,()=>nm("format",t,n,i,o),void 0,a),l=nm("units",t,n,i,!0);return r&&l&&l.length&&(s=np(nm("units",t,n,i,o),s)),s}function nu(t,n,i,r){let o="";if(null==t)o=r||"";else if("string"==typeof t)o=t;else if("number"==typeof t||"boolean"==typeof t||t instanceof Date){let r=n&&n();if(r&&0!==Object.keys(r).length)switch("number"==typeof t?r.asBoolean?t=!!t:r.asDate&&(t=new Date(t)):"boolean"==typeof t&&r.asNumber&&(t=+!!t),typeof t){case"number":o=new Intl.NumberFormat(i||t8.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t8.t("on"):t8.t("off")),r.asOpenClosed&&(o=t?t8.t("open"):t8.t("closed")),r.asPressedReleased&&(o=t?t8.t("pressed"):t8.t("released"));break;case"object":if(r.momentJsFormat)o=nr()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let n,i=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),n=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-n.getTime())/864e5+1)/7));o="2-digit"===r.week?String(i).padStart(2,"0"):Number(i).toString(10)}else o=new Intl.DateTimeFormat(i||t8.language,r).format(t)}else o=Object(t).toString()}return o}function np(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t8.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t8.language,{currency:t,style:"currency"}).formatToParts();if(0!==i||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!n)return r[0].value;n=r[0].value+n}}).join("");return n.length>0?n+" "+i:i}function nm(t,n,i,r,o){let a,s=[],l=nf(t,n&&"string"==typeof n?n:n?n.name:i?"string"==typeof i?i:i.name:void 0,i,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(n&&n.meta&&(a=nl(t,n,i)))if("format"!==t)return a;else s.push(a);if(i&&"string"!=typeof i&&i.hasOwnProperty(t)){if(a=i[t],"format"!==t)return a;s.push(a)}if(i&&i.type){if(a=ne.getValueDescriptor(i.type)[t],"format"!==t)return a;s.push(a)}if("format"!==t||0===s.length)return a;let c={};return s.reverse().forEach(t=>{c=Object.assign(Object.assign({},c),t)}),c}function nf(t,n,i,r,o,a){let s;if(n?s="string"==typeof n?n:n.name:i&&(s="string"==typeof i?i:i.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),i&&"string"!=typeof i&&(l.push(c+i.type+"."+s),l.push(c+i.type)),l.push(c+s),l.length>0)return t8.t(l,{defaultValue:a||""})}function ng(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}var nb=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};let nv=o(74461);class n_{constructor(t,n,i){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=n,this._enableCompleteCallback=i,window.OpenRemoteConsole=this;let r=new URLSearchParams(window.location.search),o=r.get("consoleName"),a=r.get("consoleVersion"),s=r.get("consolePlatform"),l=r.get("consoleProviders"),c=r.get("consoleAutoEnable"),d=l&&l.length>0?l.split(" "):["push"];this._pendingProviderEnables=d;let h=n_._createConsoleRegistration(),u=window.localStorage.getItem("OpenRemoteConsole:"+t);if(u)try{let t=JSON.parse(u);t.id&&(h.id=t.id),t.name&&(h.name=t.name),t.providers&&(h.providers=t.providers),t.apps&&(h.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=h.providers;for(let t of(h.providers={},d)){let n=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};h.providers[t]=n}let m=oY.getAppName();m.length>0&&0>h.apps.indexOf(m)&&h.apps.push(m),this._registration=h,o&&(h.name=o),a&&(h.version=a),s&&(h.platform=s),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let t=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return t&&("iP"===t.substring(0,2)||"Mac"===t.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nb(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 t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration(0)),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let t=this._pendingProviderEnables.length-1;t>-1;t--){let n=this._pendingProviderEnables[t];yield this.enableProvider(n)}})}enableProvider(t,n){return nb(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(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration(),this._callCompletedCallback())),r})}disableProvider(t){return nb(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(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: disabling provider '"+t+"'");let n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,n})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,n){return nb(this,void 0,void 0,function*(){if("storage"!==t.provider&&!this._registration.providers.hasOwnProperty(t.provider))throw console.debug("Invalid console provider '"+t.provider+"'"),Error("Invalid console provider '"+t.provider+"'");if(!n)return void this._doSendProviderMessage(t);let i=t.provider+t.action;if(this._pendingProviderPromises[i])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new no,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(t){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),console.debug("Sending registration in: "+(t=void 0!==t?t:2e3)+"ms"),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>{this._registrationTimer=null,console.debug("Console: updating registration");try{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={}),oY.rest.api.ConsoleResource.register(this._registration).then(n=>{if(200!==n.status)throw Error("Failed to register console");this._registration=n.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem("OpenRemoteConsole:"+this._realm,JSON.stringify(this._registration)),t()})}catch(t){console.error("Failed to register console"),n("Failed to register console")}})})}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nb(this,void 0,void 0,function*(){let n=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([n,new Promise((t,n)=>setTimeout(n,2e3))]);if(t&&t.value){let n=t.value;return"null"===n?void 0:n}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,n){this._providerMessageListeners[t.provider+t.action]=n}removeProviderMessageListener(t){delete this._providerMessageListeners[t.provider+t.action]}_postNativeShellMessage(t){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(t));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(t)}catch(t){console.error("Failed to send shell message towards console",t)}}_doSendGenericMessage(t,n){let i={type:t,data:n};this.isMobile?this._postNativeShellMessage(i):console.warn("Failed to send generic message to console.",i)}_doSendProviderMessage(t){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:t});else{if(!t.provider||!t.action)return;switch(t.provider.trim().toUpperCase()){case"PUSH":switch(t.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 '"+t.provider+"' and action '"+t.action+"'")}break;case"STORAGE":switch(t.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 n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(n):window.localStorage.setItem(n,JSON.stringify(t.value))}break;case"RETRIEVE":{let n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'retrieve' action requires a `key`");let i=window.localStorage.getItem(n);if(null!==i)try{i=JSON.parse(i)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:n,value:i}))}break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;default:console.error("Unsupported provider: "+t.provider)}}}_handleProviderResponse(t){if(!t)return;let n=JSON.parse(t),i=n.provider,r=n.action,o=this._pendingProviderPromises[i+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[i+r],o[0].resolve(n));let a=this._providerMessageListeners[i+r];a&&a(n)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:nv.name,version:nv.version,platform:nv.os.toString(),apps:[],model:((nv.manufacturer?nv.manufacturer+" ":"")+(nv.product?nv.product:"")).trim()}}_initialiseProvider(t){return nb(this,void 0,void 0,function*(){let n;console.debug("Console: initialising provider '"+t+"'");try{n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=n.version,this._registration.providers[t].requiresPermission=n.requiresPermission,this._registration.providers[t].hasPermission=n.hasPermission,this._registration.providers[t].success=n.success,this._registration.providers[t].enabled=n.enabled,this._registration.providers[t].disabled=n.disabled,this._registration.providers[t].data=n.data}catch(t){console.error(t),n={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(n.success||(console.debug("Provider initialisation failed: '"+t+"'"),n.disabled=!0,this._registration.providers[t].disabled=!0),n.disabled||n.enabled){let n=this._pendingProviderEnables.indexOf(t);n>=0&&this._pendingProviderEnables.splice(n,1)}})}}function ny(t,n){return function(){return t.apply(n,arguments)}}let{toString:nx}=Object.prototype,{getPrototypeOf:nw}=Object,{iterator:nk,toStringTag:nM}=Symbol,nF=(c=Object.create(null),t=>{let n=nx.call(t);return c[n]||(c[n]=n.slice(8,-1).toLowerCase())}),nE=t=>(t=t.toLowerCase(),n=>nF(n)===t),nC=t=>n=>typeof n===t,{isArray:nT}=Array,nA=nC("undefined");function nS(t){return null!==t&&!nA(t)&&null!==t.constructor&&!nA(t.constructor)&&nI(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nL=nE("ArrayBuffer"),nD=nC("string"),nI=nC("function"),nz=nC("number"),nO=t=>null!==t&&"object"==typeof t,nR=t=>{if("object"!==nF(t))return!1;let n=nw(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(nM in t)&&!(nk in t)},nP=nE("Date"),n$=nE("File"),nB=nE("Blob"),nN=nE("FileList"),nj="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nY=void 0!==nj.FormData?nj.FormData:void 0,nH=nE("URLSearchParams"),[nV,nU,nW,nq]=["ReadableStream","Request","Response","Headers"].map(nE);function nG(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nT(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nS(t))return;let a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],n.call(null,t[o],o,t)}}function nK(t,n){let i;if(nS(t))return null;n=n.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(n===(i=r[o]).toLowerCase())return i;return null}let nX="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nZ=t=>!nA(t)&&t!==nX,nJ=(d="u">typeof Uint8Array&&nw(Uint8Array),t=>d&&t instanceof d),nQ=nE("HTMLFormElement"),n0=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),n1=nE("RegExp"),n2=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nG(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},n3=nE("AsyncFunction"),n5=(hH="function"==typeof setImmediate,hV=nI(nX.postMessage),hH?setImmediate:hV?(hU=`axios@${Math.random()}`,hW=[],nX.addEventListener("message",({source:t,data:n})=>{t===nX&&n===hU&&hW.length&&hW.shift()()},!1),t=>{hW.push(t),nX.postMessage(hU,"*")}):t=>setTimeout(t)),n4="u">typeof queueMicrotask?queueMicrotask.bind(nX):"u">typeof process&&process.nextTick||n5,n6={isArray:nT,isArrayBuffer:nL,isBuffer:nS,isFormData:t=>{if(!t)return!1;if(nY&&t instanceof nY)return!0;let n=nw(t);if(!n||n===Object.prototype||!nI(t.append))return!1;let i=nF(t);return"formdata"===i||"object"===i&&nI(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nL(t.buffer)},isString:nD,isNumber:nz,isBoolean:t=>!0===t||!1===t,isObject:nO,isPlainObject:nR,isEmptyObject:t=>{if(!nO(t)||nS(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nV,isRequest:nU,isResponse:nW,isHeaders:nq,isUndefined:nA,isDate:nP,isFile:n$,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nB,isRegExp:n1,isFunction:nI,isStream:t=>nO(t)&&nI(t.pipe),isURLSearchParams:nH,isTypedArray:nJ,isFileList:nN,forEach:nG,merge:function t(...n){let{caseless:i,skipUndefined:r}=nZ(this)&&this||{},o={},a=(n,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=i&&nK(o,a)||a,l=n0(o,s)?o[s]:void 0;nR(l)&&nR(n)?o[s]=t(l,n):nR(n)?o[s]=t({},n):nT(n)?o[s]=n.slice():r&&nA(n)||(o[s]=n)};for(let t=0,i=n.length;t<i;t++)n[t]&&nG(n[t],a);return o},extend:(t,n,i,{allOwnKeys:r}={})=>(nG(n,(n,r)=>{i&&nI(n)?Object.defineProperty(t,r,{__proto__:null,value:ny(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&nw(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nF,kindOfTest:nE,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let r=t.indexOf(n,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(nT(t))return t;let n=t.length;if(!nz(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nk]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;n.call(t,r[0],r[1])}},matchAll:(t,n)=>{let i,r=[];for(;null!==(i=t.exec(n));)r.push(i);return r},isHTMLForm:nQ,hasOwnProperty:n0,hasOwnProp:n0,reduceDescriptors:n2,freezeMethods:t=>{n2(t,(n,i)=>{if(nI(t)&&["arguments","caller","callee"].includes(i))return!1;if(nI(t[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(nT(t)?t:String(t).split(n)).forEach(t=>{i[t]=!0}),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t*=1)?t:n,findKey:nK,global:nX,isContextDefined:nZ,isSpecCompliantForm:function(t){return!!(t&&nI(t.append)&&"FormData"===t[nM]&&t[nk])},toJSONObject:t=>{let n=new WeakSet,i=t=>{if(nO(t)){if(n.has(t))return;if(nS(t))return t;if(!("toJSON"in t)){n.add(t);let r=nT(t)?[]:{};return nG(t,(t,n)=>{let o=i(t);nA(o)||(r[n]=o)}),n.delete(t),r}}return t};return i(t)},isAsyncFn:n3,isThenable:t=>t&&(nO(t)||nI(t))&&nI(t.then)&&nI(t.catch),setImmediate:n5,asap:n4,isIterable:t=>null!=t&&nI(t[nk])},n8=n6.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"]),n7=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),n9=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ie(t,n){return n6.isArray(t)?t.map(t=>ie(t,n)):function(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}(String(t).replace(n,""))}function it(t){let n=Object.create(null);return n6.forEach(t.toJSON(),(t,i)=>{n[i]=ie(t,n9)}),n}let ii=Symbol("internals");function ir(t){return t&&String(t).trim().toLowerCase()}function io(t){return!1===t||null==t?t:n6.isArray(t)?t.map(io):ie(String(t),n7)}function ia(t,n,i,r,o){if(n6.isFunction(r))return r.call(this,n,i);if(o&&(n=i),n6.isString(n)){if(n6.isString(r))return -1!==n.indexOf(r);if(n6.isRegExp(r))return r.test(n)}}class is{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=ir(n);if(!o)throw Error("header name must be a non-empty string");let a=n6.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=io(t))}let a=(t,n)=>n6.forEach(t,(t,i)=>o(t,i,n));if(n6.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(n6.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&n8[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(n6.isObject(t)&&n6.isIterable(t)){let i={},r,o;for(let n of t){if(!n6.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[o=n[0]]=(r=i[o])?n6.isArray(r)?[...r,n[1]]:[r,n[1]]:n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=ir(t)){let i=n6.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n){let n,i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=r.exec(t);)i[n[1]]=n[2];return i}if(n6.isFunction(n))return n.call(this,t,i);if(n6.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ir(t)){let i=n6.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||ia(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=ir(t)){let o=n6.findKey(i,t);o&&(!n||ia(i,i[o],o,n))&&(delete i[o],r=!0)}}return n6.isArray(t)?t.forEach(o):o(t),r}clear(t){let n=Object.keys(this),i=n.length,r=!1;for(;i--;){let o=n[i];(!t||ia(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return n6.forEach(this,(r,o)=>{let a=n6.findKey(i,o);if(a){n[a]=io(r),delete n[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(o).trim();s!==o&&delete n[o],n[s]=io(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return n6.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&n6.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[ii]=this[ii]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=ir(t);if(!n[r]){let o;o=n6.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{__proto__:null,value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return n6.isArray(t)?t.forEach(r):r(t),this}}is.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n6.reduceDescriptors(is.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),n6.freezeMethods(is);class il extends Error{static from(t,n,i,r,o,a){let s=new il(t.message,n||t.code,i,r,o);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,n,i,r=this.config,o=r&&n6.hasOwnProp(r,"redact")?r.redact:void 0,a=n6.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),n=[],(i=r=>{let o;if(null===r||"object"!=typeof r||n6.isBuffer(r))return r;if(-1===n.indexOf(r)){if(r instanceof is&&(r=r.toJSON()),n.push(r),n6.isArray(r))o=[],r.forEach((t,n)=>{let r=i(t);n6.isUndefined(r)||(o[n]=r)});else{if(!n6.isPlainObject(r)&&function(t){if(n6.hasOwnProp(t,"toJSON"))return!0;let n=Object.getPrototypeOf(t);for(;n&&n!==Object.prototype;){if(n6.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}(r))return n.pop(),r;for(let[n,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(n.toLowerCase())?"[REDACTED ****]":i(a);n6.isUndefined(r)||(o[n]=r)}}return n.pop(),o}})(r)):n6.toJSONObject(r);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:a,code:this.code,status:this.status}}}il.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",il.ERR_BAD_OPTION="ERR_BAD_OPTION",il.ECONNABORTED="ECONNABORTED",il.ETIMEDOUT="ETIMEDOUT",il.ECONNREFUSED="ECONNREFUSED",il.ERR_NETWORK="ERR_NETWORK",il.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",il.ERR_DEPRECATED="ERR_DEPRECATED",il.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",il.ERR_BAD_REQUEST="ERR_BAD_REQUEST",il.ERR_CANCELED="ERR_CANCELED",il.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",il.ERR_INVALID_URL="ERR_INVALID_URL",il.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let ic=il;function id(t){return n6.isPlainObject(t)||n6.isArray(t)}function ih(t){return n6.endsWith(t,"[]")?t.slice(0,-2):t}function iu(t,n,i){return t?t.concat(n).map(function(t,n){return t=ih(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let ip=n6.toFlatObject(n6,{},null,function(t){return/^is[A-Z]/.test(t)}),im=function(t,n,i){if(!n6.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=n6.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!n6.isUndefined(n[t])})).metaTokens,o=i.visitor||u,a=i.dots,s=i.indexes,l=i.Blob||"u">typeof Blob&&Blob,c=void 0===i.maxDepth?100:i.maxDepth,d=l&&n6.isSpecCompliantForm(n);if(!n6.isFunction(o))throw TypeError("visitor must be a function");function h(t){if(null===t)return"";if(n6.isDate(t))return t.toISOString();if(n6.isBoolean(t))return t.toString();if(!d&&n6.isBlob(t))throw new ic("Blob is not supported. Use a Buffer instead.");return n6.isArrayBuffer(t)||n6.isTypedArray(t)?d&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,i,o){let l=t;if(n6.isReactNative(n)&&n6.isReactNativeBlob(t))return n.append(iu(o,i,a),h(t)),!1;if(t&&!o&&"object"==typeof t)if(n6.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var c;if(n6.isArray(t)&&(c=t,n6.isArray(c)&&!c.some(id))||(n6.isFileList(t)||n6.endsWith(i,"[]"))&&(l=n6.toArray(t)))return i=ih(i),l.forEach(function(t,r){n6.isUndefined(t)||null===t||n.append(!0===s?iu([i],r,a):null===s?i:i+"[]",h(t))}),!1}return!!id(t)||(n.append(iu(o,i,a),h(t)),!1)}let p=[],m=Object.assign(ip,{defaultVisitor:u,convertValue:h,isVisitable:id});if(!n6.isObject(t))throw TypeError("data must be an object");return!function t(i,r,a=0){if(!n6.isUndefined(i)){if(a>c)throw new ic("Object is too deeply nested ("+a+" levels). Max depth: "+c,ic.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(i))throw Error("Circular reference detected in "+r.join("."));p.push(i),n6.forEach(i,function(i,s){!0===(!(n6.isUndefined(i)||null===i)&&o.call(n,i,n6.isString(s)?s.trim():s,r,m))&&t(i,r?r.concat(s):[s],a+1)}),p.pop()}}(t),n};function ig(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function ib(t,n){this._pairs=[],t&&im(t,this,n)}let iv=ib.prototype;function i_(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iy(t,n,i){let r;if(!n)return t;let o=i&&i.encode||i_,a=n6.isFunction(i)?{serialize:i}:i,s=a&&a.serialize;if(r=s?s(n,a):n6.isURLSearchParams(n)?n.toString():new ib(n,a).toString(o)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}iv.append=function(t,n){this._pairs.push([t,n])},iv.toString=function(t){let n=t?function(n){return t.call(this,n,ig)}:ig;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let ix=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n6.forEach(this.handlers,function(n){null!==n&&t(n)})}},iw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ik="u">typeof URLSearchParams?URLSearchParams:ib,iM="u">typeof FormData?FormData:null,iF="u">typeof Blob?Blob:null,iE="u">typeof window&&"u">typeof document,iC="object"==typeof navigator&&navigator||void 0,iT=iE&&(!iC||0>["ReactNative","NativeScript","NS"].indexOf(iC.product)),iA="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iS=iE&&window.location.href||"http://localhost",iL={...C,isBrowser:!0,classes:{URLSearchParams:ik,FormData:iM,Blob:iF},protocols:["http","https","file","blob","url","data"]},iD=function(t){if(n6.isFormData(t)&&n6.isFunction(t.entries)){let n={};return n6.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&n6.isArray(r)?r.length:a,l)?n6.hasOwnProp(r,a)?r[a]=n6.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i:(n6.hasOwnProp(r,a)&&n6.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&n6.isArray(r[a])&&(r[a]=function(t){let n,i,r={},o=Object.keys(t),a=o.length;for(n=0;n<a;n++)r[i=o[n]]=t[i];return r}(r[a]))),!s}(n6.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null},iI=(t,n)=>null!=t&&n6.hasOwnProp(t,n)?t[n]:void 0,iz={transitional:iw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=n6.isObject(t);if(a&&n6.isHTMLForm(t)&&(t=new FormData(t)),n6.isFormData(t))return o?JSON.stringify(iD(t)):t;if(n6.isArrayBuffer(t)||n6.isBuffer(t)||n6.isStream(t)||n6.isFile(t)||n6.isBlob(t)||n6.isReadableStream(t))return t;if(n6.isArrayBufferView(t))return t.buffer;if(n6.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let n=iI(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return im(t,new iL.classes.URLSearchParams,{visitor:function(t,n,i,r){return iL.isNode&&n6.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n}).toString();if((i=n6.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=iI(this,"env"),o=r&&r.FormData;return im(i?{"files[]":t}:t,o&&new o,n)}}if(a||o){n.setContentType("application/json",!1);var s=t;if(n6.isString(s))try{return(0,JSON.parse)(s),n6.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let n=iI(this,"transitional")||iz.transitional,i=n&&n.forcedJSONParsing,r=iI(this,"responseType"),o="json"===r;if(n6.isResponse(t)||n6.isReadableStream(t))return t;if(t&&n6.isString(t)&&(i&&!r||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,iI(this,"parseReviver"))}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw ic.from(t,ic.ERR_BAD_RESPONSE,this,null,iI(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iL.classes.FormData,Blob:iL.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function iO(t,n){let i=this||iz,r=n||i,o=is.from(r.headers),a=r.data;return n6.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iR(t){return!!(t&&t.__CANCEL__)}n6.forEach(["delete","get","head","post","put","patch","query"],t=>{iz.headers[t]={}});let iP=class extends ic{constructor(t,n,i){super(null==t?"canceled":t,ic.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function i$(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new ic("Request failed with status code "+i.status,i.status>=400&&i.status<500?ic.ERR_BAD_REQUEST:ic.ERR_BAD_RESPONSE,i.config,i.request,i))}let iB=function(t,n){let i,r=Array(t=t||10),o=Array(t),a=0,s=0;return n=void 0!==n?n:1e3,function(l){let c=Date.now(),d=o[s];i||(i=c),r[a]=l,o[a]=c;let h=s,u=0;for(;h!==a;)u+=r[h++],h%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-i<n)return;let p=d&&c-d;return p?Math.round(1e3*u/p):void 0}},iN=function(t,n){let i,r,o=0,a=1e3/n,s=(n,a=Date.now())=>{o=a,i=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...t)=>{let n=Date.now(),l=n-o;l>=a?s(t,n):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},a-l)))},()=>i&&s(i)]},ij=(t,n,i=3)=>{let r=0,o=iB(50,250);return iN(i=>{if(!i||"number"!=typeof i.loaded)return;let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=null!=s?Math.min(a,s):a,c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iY=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iH=t=>(...n)=>n6.asap(()=>t(...n)),iV=iL.hasStandardBrowserEnv?(h=new URL(iL.origin),u=iL.navigator&&/(msie|trident)/i.test(iL.navigator.userAgent),t=>(t=new URL(t,iL.origin),h.protocol===t.protocol&&h.host===t.host&&(u||h.port===t.port))):()=>!0,iU=iL.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];n6.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),n6.isString(r)&&l.push(`path=${r}`),n6.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),n6.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)return decodeURIComponent(r.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function iW(t,n,i){let r=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return t&&(r||!1===i)?n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t:n}let iq=t=>t instanceof is?{...t}:t;function iG(t,n){n=n||{};let i=Object.create(null);function r(t,n,i,r){return n6.isPlainObject(t)&&n6.isPlainObject(n)?n6.merge.call({caseless:r},t,n):n6.isPlainObject(n)?n6.merge({},n):n6.isArray(n)?n.slice():n}function o(t,n,i,o){return n6.isUndefined(n)?n6.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!n6.isUndefined(n))return r(void 0,n)}function s(t,n){return n6.isUndefined(n)?n6.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return n6.hasOwnProp(n,a)?r(i,o):n6.hasOwnProp(t,a)?r(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage: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:(t,n,i)=>o(iq(t),iq(n),i,!0)};return n6.forEach(Object.keys({...t,...n}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n6.hasOwnProp(c,r)?c[r]:o,s=a(n6.hasOwnProp(t,r)?t[r]:void 0,n6.hasOwnProp(n,r)?n[r]:void 0,r);n6.isUndefined(s)&&a!==l||(i[r]=s)}),i}let iK=["content-type","content-length"],iX=t=>{let n=iG({},t),i=t=>n6.hasOwnProp(n,t)?n[t]:void 0,r=i("data"),o=i("withXSRFToken"),a=i("xsrfHeaderName"),s=i("xsrfCookieName"),l=i("headers"),c=i("auth"),d=i("baseURL"),h=i("allowAbsoluteUrls"),u=i("url");if(n.headers=l=is.from(l),n.url=iy(iW(d,u,h),t.params,t.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?encodeURIComponent(c.password).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))):""))),n6.isFormData(r))if(iL.hasStandardBrowserEnv||iL.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else{var p,m;n6.isFunction(r.getHeaders)&&(p=l,m=r.getHeaders(),"content-only"!==i("formDataHeaderPolicy")?p.set(m):Object.entries(m).forEach(([t,n])=>{iK.includes(t.toLowerCase())&&p.set(t,n)}))}if(iL.hasStandardBrowserEnv&&(n6.isFunction(o)&&(o=o(n)),!0===o||null==o&&iV(n.url))){let t=a&&s&&iU.read(s);t&&l.set(a,t)}return n},iZ="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,h=iX(t),u=h.data,p=is.from(h.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=h;function b(){l&&l(),c&&c(),h.cancelToken&&h.cancelToken.unsubscribe(o),h.signal&&h.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function _(){if(!v)return;let r=is.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());i$(function(t){n(t),b()},function(t){i(t),b()},{data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v}),v=null}v.open(h.method.toUpperCase(),h.url,!0),v.timeout=h.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(i(new ic("Request aborted",ic.ECONNABORTED,t,v)),b(),v=null)},v.onerror=function(n){let r=new ic(n&&n.message?n.message:"Network Error",ic.ERR_NETWORK,t,v);r.event=n||null,i(r),b(),v=null},v.ontimeout=function(){let n=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",r=h.transitional||iw;h.timeoutErrorMessage&&(n=h.timeoutErrorMessage),i(new ic(n,r.clarifyTimeoutError?ic.ETIMEDOUT:ic.ECONNABORTED,t,v)),b(),v=null},void 0===u&&p.setContentType(null),"setRequestHeader"in v&&n6.forEach(it(p),function(t,n){v.setRequestHeader(n,t)}),n6.isUndefined(h.withCredentials)||(v.withCredentials=!!h.withCredentials),m&&"json"!==m&&(v.responseType=h.responseType),g&&([s,c]=ij(g,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,l]=ij(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",l)),(h.cancelToken||h.signal)&&(o=n=>{v&&(i(!n||n.type?new iP(null,t,v):n),v.abort(),b(),v=null)},h.cancelToken&&h.cancelToken.subscribe(o),h.signal&&(h.signal.aborted?o():h.signal.addEventListener("abort",o)));let y=(r=h.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r))&&d[1]||"");y&&!iL.protocols.includes(y)?i(new ic("Unsupported protocol "+y+":",ic.ERR_BAD_REQUEST,t)):v.send(u||null)})},iJ=function*(t,n){let i,r=t.byteLength;if(!n||r<n)return void(yield t);let o=0;for(;o<r;)i=o+n,yield t.slice(o,i),o=i},iQ=async function*(t,n){for await(let i of i0(t))yield*iJ(i,n)},i0=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let n=t.getReader();try{for(;;){let{done:t,value:i}=await n.read();if(t)break;yield i}}finally{await n.cancel()}},i1=(t,n,i,r)=>{let o,a=iQ(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},{isFunction:i2}=n6,i3=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},i5=t=>{let n,i=void 0!==n6.global&&null!==n6.global?n6.global:globalThis,{ReadableStream:r,TextEncoder:o}=i,{fetch:a,Request:s,Response:l}=t=n6.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},t),c=a?i2(a):"function"==typeof fetch,d=i2(s),h=i2(l);if(!c)return!1;let u=c&&i2(r),p=c&&("function"==typeof o?(n=new o,t=>n.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&u&&i3(()=>{let t=!1,n=new s(iL.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),t&&!i}),f=h&&u&&i3(()=>n6.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new ic(`Response type '${t}' is not supported`,ic.ERR_NOT_SUPPORT,i)})});let b=async t=>{if(null==t)return 0;if(n6.isBlob(t))return t.size;if(n6.isSpecCompliantForm(t)){let n=new s(iL.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return n6.isArrayBufferView(t)||n6.isArrayBuffer(t)?t.byteLength:(n6.isURLSearchParams(t)&&(t+=""),n6.isString(t))?(await p(t)).byteLength:void 0},v=async(t,n)=>{let i=n6.toFiniteNumber(t.getContentLength());return null==i?b(n):i};return async t=>{let n,{url:i,method:r,data:c,signal:h,cancelToken:u,timeout:p,onDownloadProgress:b,onUploadProgress:_,responseType:y,headers:x,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:M,maxBodyLength:F}=iX(t),E=n6.isNumber(M)&&M>-1,C=n6.isNumber(F)&&F>-1,T=a||fetch;y=y?(y+"").toLowerCase():"text";let A=((t,n)=>{if(t=t?t.filter(Boolean):[],!n&&!t.length)return;let i=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let n=t instanceof Error?t:this.reason;i.abort(n instanceof ic?n:new iP(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new ic(`timeout of ${n}ms exceeded`,ic.ETIMEDOUT))},n),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));let{signal:l}=i;return l.unsubscribe=()=>n6.asap(s),l})([h,u&&u.toAbortSignal()],p),S=null,L=A&&A.unsubscribe&&(()=>{A.unsubscribe()});try{if(E&&"string"==typeof i&&i.startsWith("data:")&&function(t){if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let i=t.slice(5,n),r=t.slice(n+1);if(/;base64/i.test(i)){let t=r.length,n=r.length;for(let i=0;i<n;i++)if(37===r.charCodeAt(i)&&i+2<n){let n=r.charCodeAt(i+1),o=r.charCodeAt(i+2);(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(t-=2,i+=2)}let i=0,o=n-1,a=t=>t>=2&&37===r.charCodeAt(t-2)&&51===r.charCodeAt(t-1)&&(68===r.charCodeAt(t)||100===r.charCodeAt(t));o>=0&&(61===r.charCodeAt(o)?(i++,o--):a(o)&&(i++,o-=3)),1===i&&o>=0&&(61===r.charCodeAt(o)?i++:a(o)&&i++);let s=3*Math.floor(t/4)-(i||0);return s>0?s:0}if("u">typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let t=0,n=r.length;t<n;t++){let i=r.charCodeAt(t);if(i<128)o+=1;else if(i<2048)o+=2;else if(i>=55296&&i<=56319&&t+1<n){let n=r.charCodeAt(t+1);n>=56320&&n<=57343?(o+=4,t++):o+=3}else o+=3}return o}(i)>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S);if(C&&"get"!==r&&"head"!==r){let n=await v(x,c);if("number"==typeof n&&isFinite(n)&&n>F)throw new ic("Request body larger than maxBodyLength limit",ic.ERR_BAD_REQUEST,t,S)}if(_&&m&&"get"!==r&&"head"!==r&&0!==(n=await v(x,c))){let t,r=new s(i,{method:"POST",body:c,duplex:"half"});if(n6.isFormData(c)&&(t=r.headers.get("content-type"))&&x.setContentType(t),r.body){let[t,i]=iY(n,ij(iH(_)));c=i1(r.body,65536,t,i)}}n6.isString(w)||(w=w?"include":"omit");let a=d&&"credentials"in s.prototype;if(n6.isFormData(c)){let t=x.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&x.delete("content-type")}x.set("User-Agent","axios/1.16.1",!1);let h={...k,signal:A,method:r.toUpperCase(),headers:it(x.normalize()),body:c,duplex:"half",credentials:a?w:void 0};S=d&&new s(i,h);let u=await (d?T(S,k):T(i,h));if(E){let n=n6.toFiniteNumber(u.headers.get("content-length"));if(null!=n&&n>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S)}let p=f&&("stream"===y||"response"===y);if(f&&u.body&&(b||E||p&&L)){let n={};["status","statusText","headers"].forEach(t=>{n[t]=u[t]});let i=n6.toFiniteNumber(u.headers.get("content-length")),[r,o]=b&&iY(i,ij(iH(b),!0))||[];u=new l(i1(u.body,65536,n=>{if(E&&n>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S);r&&r(n)},()=>{o&&o(),L&&L()}),n)}y=y||"text";let D=await g[n6.findKey(g,y)||"text"](u,t);if(E&&!f&&!p){let n;if(null!=D&&("number"==typeof D.byteLength?n=D.byteLength:"number"==typeof D.size?n=D.size:"string"==typeof D&&(n="function"==typeof o?new o().encode(D).byteLength:D.length)),"number"==typeof n&&n>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S)}return!p&&L&&L(),await new Promise((n,i)=>{i$(n,i,{data:D,headers:is.from(u.headers),status:u.status,statusText:u.statusText,config:t,request:S})})}catch(n){if(L&&L(),A&&A.aborted&&A.reason instanceof ic){let i=A.reason;throw i.config=t,S&&(i.request=S),n!==i&&(i.cause=n),i}if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new ic("Network Error",ic.ERR_NETWORK,t,S,n&&n.response),{cause:n.cause||n});throw ic.from(n,n&&n.code,t,S,n&&n.response)}}},i4=new Map,i6=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=i4;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:i5(n)),d=c;return c};i6();let i8={http:null,xhr:iZ,fetch:{get:i6}};n6.forEach(i8,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});let i7=t=>`- ${t}`,i9=t=>n6.isFunction(t)||null===t||!1===t,re=function(t,n){let i,r,{length:o}=t=n6.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!i9(i)&&void 0===(r=i8[(o=String(i)).toLowerCase()]))throw new ic(`Unknown adapter '${o}'`);if(r&&(n6.isFunction(r)||(r=r.get(n))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new ic("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(i7).join("\n"):" "+i7(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iP(null,t)}function rn(t){return rt(t),t.headers=is.from(t.headers),t.data=iO.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),re(t.adapter||iz.adapter,t)(t).then(function(n){rt(t),t.response=n;try{n.data=iO.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=is.from(n.headers),n},function(n){if(!iR(n)&&(rt(t),n&&n.response)){t.response=n.response;try{n.response.data=iO.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=is.from(n.response.headers)}return Promise.reject(n)})}let ri={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{ri[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rr={};ri.transitional=function(t,n,i){function r(t,n){return"[Axios v1.16.1] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new ic(r(o," has been removed"+(n?" in "+n:"")),ic.ERR_DEPRECATED);return n&&!rr[o]&&(rr[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}},ri.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let ro=function(t,n,i){if("object"!=typeof t)throw new ic("options must be an object",ic.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new ic("option "+a+" must be "+i,ic.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ic("Unknown option "+a,ic.ERR_BAD_OPTION)}};class ra{constructor(t){this.defaults=t||{},this.interceptors={request:new ix,response:new ix}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=(()=>{if(!n.stack)return"";let t=n.stack.indexOf("\n");return -1===t?"":n.stack.slice(t+1)})();try{if(t.stack){if(i){let n=i.indexOf("\n"),r=-1===n?-1:i.indexOf("\n",n+1),o=-1===r?"":i.slice(r+1);String(t.stack).endsWith(o)||(t.stack+="\n"+i)}}else t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=iG(this.defaults,n);void 0!==o&&ro(o,{silentJSONParsing:ri.transitional(ri.boolean),forcedJSONParsing:ri.transitional(ri.boolean),clarifyTimeoutError:ri.transitional(ri.boolean),legacyInterceptorReqResOrdering:ri.transitional(ri.boolean)},!1),null!=a&&(n6.isFunction(a)?n.paramsSerializer={serialize:a}:ro(a,{encode:ri.function,serialize:ri.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ro(n,{baseUrl:ri.spelling("baseURL"),withXsrfToken:ri.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&n6.merge(s.common,s[n.method]);s&&n6.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete s[t]}),n.headers=is.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(n))return;d=d&&t.synchronous;let i=n.transitional||iw;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let h=[];this.interceptors.response.forEach(function(t){h.push(t.fulfilled,t.rejected)});let u=0;if(!d){let t=[rn.bind(this),void 0];for(t.unshift(...c),t.push(...h),r=t.length,i=Promise.resolve(n);u<r;)i=i.then(t[u++],t[u++]);return i}r=c.length;let p=n;for(;u<r;){let t=c[u++],n=c[u++];try{p=t(p)}catch(t){n.call(this,t);break}}try{i=rn.call(this,p)}catch(t){return Promise.reject(t)}for(u=0,r=h.length;u<r;)i=i.then(h[u++],h[u++]);return i}getUri(t){return iy(iW((t=iG(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}n6.forEach(["delete","get","head","options"],function(t){ra.prototype[t]=function(n,i){return this.request(iG(i||{},{method:t,url:n,data:(i||{}).data}))}}),n6.forEach(["post","put","patch","query"],function(t){function n(n){return function(i,r,o){return this.request(iG(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}ra.prototype[t]=n(),"query"!==t&&(ra.prototype[t+"Form"]=n(!0))});class rs{constructor(t){let n;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){n=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n,r=new Promise(t=>{i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},t(function(t,r,o){i.reason||(i.reason=new iP(t,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new rs(function(n){t=n}),cancel:t}}}let rl={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rl).forEach(([t,n])=>{rl[n]=t});let rc=function t(n){let i=new ra(n),r=ny(ra.prototype.request,i);return n6.extend(r,ra.prototype,i,{allOwnKeys:!0}),n6.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iG(n,i))},r}(iz);rc.Axios=ra,rc.CanceledError=iP,rc.CancelToken=rs,rc.isCancel=iR,rc.VERSION="1.16.1",rc.toFormData=im,rc.AxiosError=ic,rc.Cancel=rc.CanceledError,rc.all=function(t){return Promise.all(t)},rc.spread=function(t){return function(n){return t.apply(null,n)}},rc.isAxiosError=function(t){return n6.isObject(t)&&!0===t.isAxiosError},rc.mergeConfig=iG,rc.AxiosHeaders=is,rc.formToJSON=t=>iD(n6.isHTMLForm(t)?new FormData(t):t),rc.getAdapter=re,rc.HttpStatusCode=rl,rc.default=rc;class rd{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rD`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rD`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rD`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rD`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rD`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rh{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rD`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rD`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rD`asset/datapoint/${t}/${n}`,data:i,options:r})}}class ru{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rD`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rD`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rD`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rD`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rD`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rD`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rD`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rD`alarm/${t}/assets`,queryParams:n,options:i})}}class rp{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rD`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rD`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rD`apps/info`,options:t})}}class rm{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rD`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rD`info`,options:t})}}class rf{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rD`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rD`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rD`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rD`syslog/event`,queryParams:t,options:n})}}class rg{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rD`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rD`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rD`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rD`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rD`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rD`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rD`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rD`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rD`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rD`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rD`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rD`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rD`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rD`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rD`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rD`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`asset/${t}/attribute/${n}`,data:i,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rD`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rD`asset/${t}/child`,queryParams:n,options:i})}}class rb{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rD`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rD`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rD`flow/${t}`,options:n})}}class rv{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rD`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rD`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rD`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rD`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rD`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rD`model/valueDescriptors`,queryParams:t,options:n})}}class r_{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rD`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rD`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rD`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class ry{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rD`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rD`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rD`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rD`provisioning/${t}`,data:n,options:i})}}class rx{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rD`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rD`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rD`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rD`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rD`dashboard/${t}/${n}`,options:i})}}class rw{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rD`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`asset/predicted/${t}/${n}`,data:i,options:r})}}class rk{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rD`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rD`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rD`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rD`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rD`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rD`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rD`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rD`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rD`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rD`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rD`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rD`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rD`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/${n}`,options:i})}}class rM{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rD`console/register`,data:t,options:n})}}class rF{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rD`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rD`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rD`notification/alert`,data:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rD`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rD`notification/${t}/delivered`,queryParams:n,options:i})}}class rE{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rD`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rD`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rD`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rD`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rD`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rD`realm/${t}`,data:n,options:i})}}class rC{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rD`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rD`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rD`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rD`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rD`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rD`gateway/status/${t}`,options:n})}}class rT{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rD`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rD`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rD`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rD`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rD`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rD`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rD`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rD`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rD`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rD`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rD`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rD`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rD`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rD`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rD`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rD`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`rules/${t}`,data:n,options:i})}}class rA{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rD`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rD`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rD`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rD`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rD`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rD`map/upload`,queryParams:t,options:n})}}class rS{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rD`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rD`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rD`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rD`configuration/manager/image/${t}`,options:n})}}class rL{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rD`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rD`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rD`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rD`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rD`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rD`service/${t}/${n}`,options:i})}}function rD(t,...n){let i="";for(let r=0;r<n.length;r++)i+=t[r],i+=encodeURIComponent(n[r]);return i+t[t.length-1]}class rI{constructor(t,n=rc.create()){this._gatewayServiceResource=new rO(t,n),this._assetDatapointResource=new rR(t,n),this._alarmResource=new rP(t,n),this._appResource=new r$(t,n),this._statusResource=new rB(t,n),this._syslogResource=new rN(t,n),this._assetResource=new rj(t,n),this._flowResource=new rY(t,n),this._assetModelResource=new rH(t,n),this._agentResource=new rV(t,n),this._provisioningResource=new rU(t,n),this._dashboardResource=new rW(t,n),this._assetPredictedDatapointResource=new rq(t,n),this._userResource=new rG(t,n),this._consoleResource=new rK(t,n),this._notificationResource=new rX(t,n),this._realmResource=new rZ(t,n),this._gatewayClientResource=new rJ(t,n),this._rulesResource=new rQ(t,n),this._mapResource=new r0(t,n),this._configurationResource=new r1(t,n),this._externalServiceResource=new r2(t,n),this._assetResource=new rj(t,n)}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetDatapointResource(){return this._assetDatapointResource}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get StatusResource(){return this._statusResource}get SyslogResource(){return this._syslogResource}get AssetResource(){return this._assetResource}get FlowResource(){return this._flowResource}get AssetModelResource(){return this._assetModelResource}get AgentResource(){return this._agentResource}get ProvisioningResource(){return this._provisioningResource}get DashboardResource(){return this._dashboardResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get UserResource(){return this._userResource}get ConsoleResource(){return this._consoleResource}get NotificationResource(){return this._notificationResource}get RealmResource(){return this._realmResource}get GatewayClientResource(){return this._gatewayClientResource}get RulesResource(){return this._rulesResource}get MapResource(){return this._mapResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}}class rz{constructor(t){this.axios=t}request(t){let n={};n.method=t.method,n.url=t.url,n.params=t.queryParams,n.data=t.data,function(t,n){if(void 0!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}(n,t.options);let i=t.copyFn;return this.axios.request(n).then(t=>(i&&t.data&&(t.originalData=t.data,t.data=i(t.data)),t))}}class rO extends rd{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rR extends rh{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rP extends ru{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r$ extends rp{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rB extends rm{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rN extends rf{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rj extends rg{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rY extends rb{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rH extends rv{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rV extends r_{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rU extends ry{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rW extends rx{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rq extends rw{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rG extends rk{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rK extends rM{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rX extends rF{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rZ extends rE{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rJ extends rC{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rQ extends rT{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r0 extends rA{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r1 extends rS{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r2 extends rL{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}rc.isAxiosError;let r3=new class{get api(){return this._client}constructor(){this._axiosInstance=rc.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>nn().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rI(t,this._axiosInstance)}};var r5=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};(uV=pQ||(pQ={})).DISCONNECTED="DISCONNECTED",uV.CONNECTED="CONNECTED",uV.CONNECTING="CONNECTING";let r4="SUBSCRIBED:",r6="UNAUTHORIZED:",r8="TRIGGERED:",r7="EVENT:";class r9{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oe.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=pQ.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(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===pQ.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(pQ.CONNECTING),this._connectingDeferred=new no,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oe.MIN_RECONNECT_DELAY,this._onStatusChanged(pQ.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),n.resolve(t)}}).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!==pQ.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new no};return null!=this._pendingSubscription||this._status!==pQ.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return r5(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)){if(this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}return}})}sendEvent(t){this._status===pQ.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==pQ.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return r5(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+r9._subscriptionCounter++;if(!this._assetEventPromise){let t;oY.authenticated||(t={filterType:"asset",realm:oY.displayRealm});let n={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(n,t=>{this._assetEventCallbackMap.forEach(n=>n(t))})}return this._assetEventCallbackMap.set(o,t=>{let n=t.asset.id;r?r.find(t=>n===t)&&i(t):t.asset.realm===oY.displayRealm&&i(t)}),this._assetEventPromise.then(()=>{try{if(r&&n){let t={messageID:"read-assets:"+r.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(t).then(t=>{t.assets&&this._assetEventCallbackMap.has(o)&&t.assets.forEach(t=>{i({eventType:"asset",asset:t,cause:"READ"})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),n}return o})})}subscribeAttributeEvents(t,n,i){return r5(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+r9._subscriptionCounter++;if(!this._attributeEventPromise){let t;oY.authenticated||(t={filterType:"asset",realm:oY.displayRealm});let n={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(n,t=>{this._attributeEventCallbackMap.forEach(n=>n(t))})}let l=n=>{let a=n.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&i(n)}):o?o.find(t=>a.id===t)&&i(n):n.realm===oY.displayRealm&&i(n)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(n&&o){let t={messageID:"read-assets:"+o.join(",")+":"+s,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(t).then(t=>{t.assets&&this._attributeEventCallbackMap.has(s)&&t.assets.forEach(t=>{t.attributes&&Object.entries(t.attributes).forEach(([n,i])=>{(!a||a.find(i=>i.id===t.id&&i.name===n))&&l({eventType:"attribute",timestamp:i.timestamp,value:i.value,ref:{id:t.id,name:n}})})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),n}return s})})}_processNextSubscription(){this._status===pQ.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(n=>{let i=t.deferred;t.deferred=null,i&&i.resolve(n)},n=>{let i=t.deferred;t.deferred=null,i&&i.reject(n)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(n=>n(t))},0))}_onMessageReceived(t,n){let i=this._subscriptionMap.get(t);i&&i.callback(n)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let t in this._subscriptionMap)this._subscriptionMap.has(t)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(t));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===pQ.CONNECTED&&this._onStatusChanged(pQ.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(pQ.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<oe.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oe.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}r9.MIN_RECONNECT_DELAY=0,r9.MAX_RECONNECT_DELAY=3e4,r9._subscriptionCounter=0;class oe extends r9{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+oY.config.realm;return this._connectDeferred=new no,(oY.authenticated?oY.retrieveAuthorizationHeader().then(n=>{t+="&Authorization="+n}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.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 t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(r4)){let t=JSON.parse(n.substring(r4.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(r6)){let t=JSON.parse(n.substring(r6.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),i.reject("Unauthorized"))}else if(n.startsWith(r8)){let t=JSON.parse(n.substring(r8.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(r7)){let t=JSON.parse(n.substring(r7.length));if(t.messageID){let n=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),n&&n.resolve(t)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var t;null==(t=this._webSocket)||t.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(t){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new no,t.subscriptionId||(t.subscriptionId=oe._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let n=r7+JSON.stringify(t);this._webSocket.send(n)}_doSendWithReply(t){if(t.messageID||(t.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(t.messageID))return Promise.reject("There's already a pending send and reply with this ID");let n=new no;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(r7+JSON.stringify(t)),n.promise}}function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}oe._subscriptionCounter=1;var on=[],oi=on.forEach,or=on.slice;function oo(t){return oi.call(or.call(arguments,1),function(n){if(n)for(var i in n)void 0===t[i]&&(t[i]=n[i])}),t}function oa(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":ot(XMLHttpRequest))==="object"}var os=o(54550),ol=o.t(os,2);function oc(t){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&(p0="u">typeof global&&global.fetch?global.fetch:"u">typeof window&&window.fetch?window.fetch:fetch),oa()&&("u">typeof global&&global.XMLHttpRequest?p1=global.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(p1=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("u">typeof global&&global.ActiveXObject?p2=global.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(p2=window.ActiveXObject)),p0||!ol||p1||p2||(p0=os||ol),"function"!=typeof p0&&(p0=void 0);var od=function(t,n){if(n&&"object"===oc(n)){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oh=function(t,n,i){p0(t,n).then(function(t){if(!t.ok)return i(t.statusText||"Error",{status:t.status});t.text().then(function(n){i(null,{status:t.status,data:n})}).catch(i)}).catch(i)},ou=!1,op=function(t,n,i,r){t.queryStringParams&&(n=od(n,t.queryStringParams));var o=oo({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);i&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,s=oo({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:o},ou?{}:a);try{oh(n,s,r)}catch(t){if(!a||0===Object.keys(a).length||!t.message||0>t.message.indexOf("not implemented"))return r(t);try{Object.keys(a).forEach(function(t){delete s[t]}),oh(n,s,r),ou=!0}catch(t){r(t)}}},om=function(t,n,i,r){i&&"object"===oc(i)&&(i=od("",i).slice(1)),t.queryStringParams&&(n=od(n,t.queryStringParams));try{(o=p1?new p1:new p2("MSXML2.XMLHTTP.3.0")).open(i?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=t.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(t){console&&console.log(t)}};let of=function(t,n,i,r){return("function"==typeof i&&(r=i,i=void 0),r=r||function(){},p0)?op(t,n,i,r):oa()||"function"==typeof ActiveXObject?om(t,n,i,r):void r(Error("No fetch and no xhr implementation found!"))};var og=function(){var t;function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.services=t,this.options=i,this.allOptions=r,this.type="backend",this.init(t,i,r)}return t=[{key:"init",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=oo(i,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){var r,o;return r={},o=i||"",n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},request:of,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,r,o){var a,s,l=this,c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(t,i)),(c=(s=a=c)&&"function"==typeof s.then?a:Promise.resolve(a)).then(function(a){if(!a)return o(null,{});var s=l.services.interpolator.interpolate(a,{lng:t.join("+"),ns:i.join("+")});l.loadUrl(s,o,n,r)})}},{key:"loadUrl",value:function(t,n,i,r){var o=this;this.options.request(this.options,t,void 0,function(a,s){var l,c;if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);try{l="string"==typeof s.data?o.options.parse(s.data,i,r):s.data}catch(n){c="failed parsing "+t+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(t,n,i,r,o){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var s=this.options.parsePayload(n,i,r),l=0,c=[],d=[];t.forEach(function(i){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(i,n));var h=a.services.interpolator.interpolate(r,{lng:i,ns:n});a.options.request(a.options,h,s,function(n,i){l+=1,c.push(n),d.push(i),l===t.length&&o&&o(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,r=n.languageUtils,o=n.logger,a=i.language;if(!a||"cimode"!==a.toLowerCase()){var s=[],l=function(t){r.toResolveHierarchy(t).forEach(function(t){0>s.indexOf(t)&&s.push(t)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(t){return l(t)}),s.forEach(function(n){t.allOptions.ns.forEach(function(t){i.read(n,t,"read",null,null,function(r,a){r&&o.warn("loading namespace ".concat(t," for language ").concat(n," failed"),r),!r&&a&&o.log("loaded namespace ".concat(t," for language ").concat(n),a),i.loaded("".concat(n,"|").concat(t),r,a)})})})}}}],function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();og.type="backend";class ob extends eG{constructor(t){if(super(t),this.it=ex,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ex||null==t)return this._t=void 0,this.it=t;if(t===ey)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}ob.directiveName="unsafeHTML",ob.resultType=1,eq(ob);class ov extends ob{}ov.directiveName="unsafeSVG",ov.resultType=2;let o_=eq(ov),oy={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-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"/>'};var ox=function(t,n,i,r){var o,a=arguments.length,s=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s};class ow extends CustomEvent{constructor(){super(ow.NAME,{bubbles:!0,composed:!0})}}ow.NAME="or-iconset-added";let ok=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new ow)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return ev``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):ev``}},oM=class extends e${constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[z`
|
|
70
|
+
`,t7([eY({type:String})],t9.prototype,"value",void 0),t7([eY({type:Object})],t9.prototype,"options",void 0),t9=t7([eN("or-translate")],t9),(hq=u1||(u1={})).CREATE="CREATE",hq.UPDATE="UPDATE",hq.DELETE="DELETE",(hG=u2||(u2={})).LOW="LOW",hG.MEDIUM="MEDIUM",hG.HIGH="HIGH",(hK=u3||(u3={})).MANUAL="MANUAL",hK.CLIENT="CLIENT",hK.GLOBAL_RULESET="GLOBAL_RULESET",hK.REALM_RULESET="REALM_RULESET",hK.ASSET_RULESET="ASSET_RULESET",hK.AGENT="AGENT",(hX=u5||(u5={})).OPEN="OPEN",hX.ACKNOWLEDGED="ACKNOWLEDGED",hX.IN_PROGRESS="IN_PROGRESS",hX.RESOLVED="RESOLVED",hX.CLOSED="CLOSED",(hZ=u4||(u4={})).BOTTOM_LEFT="BOTTOM_LEFT",hZ.BOTTOM_RIGHT="BOTTOM_RIGHT",hZ.TOP_LEFT="TOP_LEFT",hZ.TOP_RIGHT="TOP_RIGHT",(hJ=u6||(u6={})).CREATE="CREATE",hJ.READ="READ",hJ.UPDATE="UPDATE",hJ.DELETE="DELETE",(hQ=u8||(u8={})).NONE="NONE",hQ.FORECAST="FORECAST",hQ.SETPOINT="SETPOINT",(h0=u7||(u7={})).DISCONNECTED="DISCONNECTED",h0.CONNECTING="CONNECTING",h0.DISCONNECTING="DISCONNECTING",h0.CONNECTED="CONNECTED",h0.DISABLED="DISABLED",h0.WAITING="WAITING",h0.ERROR="ERROR",h0.STOPPED="STOPPED",(h1=u9||(u9={})).REQUEST_START="REQUEST_START",h1.REQUEST_REPEATING="REQUEST_REPEATING",h1.REQUEST_CANCEL="REQUEST_CANCEL",h1.READY="READY",h1.COMPLETED="COMPLETED",h1.RUNNING="RUNNING",h1.CANCELLED="CANCELLED",(h2=pe||(pe={})).TOGGLE="TOGGLE",h2.INCREMENT="INCREMENT",h2.DECREMENT="DECREMENT",h2.NEGATE="NEGATE",(h3=pt||(pt={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",h3.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",h3.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",h3.INVALID_VALUE="INVALID_VALUE",h3.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",h3.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",h3.CANNOT_PROCESS="CANNOT_PROCESS",h3.QUEUE_FULL="QUEUE_FULL",h3.UNKNOWN="UNKNOWN",h3.ASSET_ID_MISSING="ASSET_ID_MISSING",h3.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(h5=pn||(pn={})).PUBLIC="PUBLIC",h5.SHARED="SHARED",h5.PRIVATE="PRIVATE",(h4=pi||(pi={})).OFF="OFF",h4.ONE_MIN="ONE_MIN",h4.FIVE_MIN="FIVE_MIN",h4.QUARTER="QUARTER",h4.ONE_HOUR="ONE_HOUR",(h6=pr||(pr={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",h6.KEEP_LAYOUT="KEEP_LAYOUT",h6.REDIRECT="REDIRECT",h6.BLOCK_DEVICE="BLOCK_DEVICE",(h8=po||(po={})).CSV="CSV",h8.CSV_CROSSTAB="CSV_CROSSTAB",h8.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(h7=pa||(pa={})).MINUTE="MINUTE",h7.HOUR="HOUR",h7.DAY="DAY",h7.WEEK="WEEK",h7.MONTH="MONTH",h7.YEAR="YEAR",(h9=ps||(ps={})).MIN="MIN",h9.AVG="AVG",h9.MAX="MAX",h9.DIFFERENCE="DIFFERENCE",h9.COUNT="COUNT",h9.SUM="SUM",h9.MODE="MODE",h9.MEDIAN="MEDIAN",(ue=pl||(pl={})).TERMINATING="TERMINATING",ue.DISABLED="DISABLED",ue.ALREADY_CONNECTED="ALREADY_CONNECTED",ue.UNRECOGNISED="UNRECOGNISED",ue.PERMANENT_ERROR="PERMANENT_ERROR",ue.SYNC_ERROR="SYNC_ERROR",(ut=pc||(pc={})).HTTPS="HTTPS",ut.HTTP="HTTP",ut.TCP="TCP",(un=pd||(pd={})).GET="GET",un.POST="POST",un.PUT="PUT",un.DELETE="DELETE",un.OPTIONS="OPTIONS",un.PATCH="PATCH",(ui=ph||(ph={})).KEYCLOAK="KEYCLOAK",ui.BASIC="BASIC",ui.NONE="NONE",(ur=pu||(pu={})).WEBSOCKET="WEBSOCKET",ur.POLLING="POLLING",(uo=pp||(pp={})).INTERNAL="INTERNAL",uo.CLIENT="CLIENT",uo.GLOBAL_RULESET="GLOBAL_RULESET",uo.REALM_RULESET="REALM_RULESET",uo.ASSET_RULESET="ASSET_RULESET",(ua=pm||(pm={})).REALM="REALM",ua.USER="USER",ua.ASSET="ASSET",ua.CUSTOM="CUSTOM",(us=pf||(pf={})).NORMAL="NORMAL",us.HIGH="HIGH",(ul=pg||(pg={})).DEVICE="DEVICE",ul.TOPIC="TOPIC",ul.CONDITION="CONDITION",(uc=pb||(pb={})).ALWAYS="ALWAYS",uc.ONCE="ONCE",uc.HOURLY="HOURLY",uc.DAILY="DAILY",uc.WEEKLY="WEEKLY",uc.MONTHLY="MONTHLY",uc.ANNUALLY="ANNUALLY",(ud=pv||(pv={})).MESSAGE_INVALID="MESSAGE_INVALID",ud.CERTIFICATE_INVALID="CERTIFICATE_INVALID",ud.UNAUTHORIZED="UNAUTHORIZED",ud.FORBIDDEN="FORBIDDEN",ud.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",ud.CONFIG_DISABLED="CONFIG_DISABLED",ud.USER_DISABLED="USER_DISABLED",ud.SERVER_ERROR="SERVER_ERROR",ud.ASSET_ERROR="ASSET_ERROR",ud.SERVER_BUSY="SERVER_BUSY",(uh=p_||(p_={})).PRIVATE="PRIVATE",uh.PROTECTED="PROTECTED",uh.PUBLIC="PUBLIC",(uu=py||(py={})).EXACT="EXACT",uu.BEGIN="BEGIN",uu.END="END",uu.CONTAINS="CONTAINS",(up=px||(px={})).EQUALS="EQUALS",up.GREATER_THAN="GREATER_THAN",up.GREATER_EQUALS="GREATER_EQUALS",up.LESS_THAN="LESS_THAN",up.LESS_EQUALS="LESS_EQUALS",up.BETWEEN="BETWEEN",(um=pw||(pw={})).CREATED_ON="CREATED_ON",um.NAME="NAME",um.ASSET_TYPE="ASSET_TYPE",um.PARENT_ID="PARENT_ID",um.REALM="REALM",(uf=pk||(pk={})).RESTRICTED="RESTRICTED",uf.LINKED="LINKED",uf.REALM="REALM",(ug=pM||(pM={})).AT_LEAST_ONE="AT_LEAST_ONE",ug.ALL="ALL",ug.NONE="NONE",(ub=pF||(pF={})).AND="AND",ub.OR="OR",(uv=pE||(pE={})).CREATED_ON="CREATED_ON",uv.FIRST_NAME="FIRST_NAME",uv.LAST_NAME="LAST_NAME",uv.USERNAME="USERNAME",uv.EMAIL="EMAIL",(u_=pC||(pC={})).STOPPED="STOPPED",u_.RUNNING="RUNNING",u_.ERROR="ERROR",(uy=pT||(pT={})).JAVASCRIPT="JAVASCRIPT",uy.GROOVY="GROOVY",uy.JSON="JSON",uy.FLOW="FLOW",(ux=pA||(pA={})).READY="READY",ux.DEPLOYED="DEPLOYED",ux.COMPILATION_ERROR="COMPILATION_ERROR",ux.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",ux.EXECUTION_ERROR="EXECUTION_ERROR",ux.LOOP_ERROR="LOOP_ERROR",ux.DISABLED="DISABLED",ux.PAUSED="PAUSED",ux.EXPIRED="EXPIRED",ux.REMOVED="REMOVED",ux.EMPTY="EMPTY",(uw=pS||(pS={})).SUNRISE="SUNRISE",uw.SUNSET="SUNSET",uw.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",uw.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",uw.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",uw.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",uw.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",uw.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",uw.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",uw.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",uw.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",uw.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",uw.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",uw.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",uw.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",uw.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",uw.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",uw.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",uw.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",uw.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(uk=pL||(pL={})).NUMBER="NUMBER",uk.NUMBER_ARRAY="NUMBER_ARRAY",uk.STRING="STRING",uk.BOOLEAN="BOOLEAN",uk.TRIGGER="TRIGGER",uk.COLOR="COLOR",uk.ANY="ANY",(uM=pD||(pD={})).NEW_LINE="NEW_LINE",uM.SPACER="SPACER",(uF=pI||(pI={})).INPUT="INPUT",uF.PROCESSOR="PROCESSOR",uF.OUTPUT="OUTPUT",uF.THEN="THEN",(uE=pz||(pz={})).TEXT="TEXT",uE.MULTILINE="MULTILINE",uE.NUMBER="NUMBER",uE.DROPDOWN="DROPDOWN",uE.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",uE.CHECKBOX="CHECKBOX",uE.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",uE.COLOR="COLOR",uE.DATE="DATE",(uC=pO||(pO={})).ADD="ADD",uC.ADD_OR_REPLACE="ADD_OR_REPLACE",uC.REPLACE="REPLACE",uC.DELETE="DELETE",uC.CLEAR="CLEAR",(uT=pR||(pR={})).PER_ASSET="PER_ASSET",uT.GLOBAL="GLOBAL",(uA=pP||(pP={})).READ_ADMIN="read:admin",uA.READ_LOGS="read:logs",uA.READ_USERS="read:users",uA.READ_MAP="read:map",uA.READ_ASSETS="read:assets",uA.READ_RULES="read:rules",uA.READ_INSIGHTS="read:insights",uA.READ_ALARMS="read:alarms",uA.READ_SERVICES="read:services",uA.WRITE_SERVICES="write:services",uA.WRITE_USER="write:user",uA.WRITE_ADMIN="write:admin",uA.WRITE_LOGS="write:logs",uA.WRITE_ASSETS="write:assets",uA.WRITE_ATTRIBUTES="write:attributes",uA.WRITE_RULES="write:rules",uA.WRITE_INSIGHTS="write:insights",uA.WRITE_ALARMS="write:alarms",uA.READ="read",uA.WRITE="write",(uS=p$||(p$={})).REGISTER="REGISTER",uS.UPDATE="UPDATE",uS.DEREGISTER="DEREGISTER",(uL=pB||(pB={})).AVAILABLE="AVAILABLE",uL.UNAVAILABLE="UNAVAILABLE",(uD=pN||(pN={})).ASSET="ASSET",uD.AGENT="AGENT",uD.NOTIFICATION="NOTIFICATION",uD.ALARM="ALARM",uD.RULES="RULES",uD.PROTOCOL="PROTOCOL",uD.GATEWAY="GATEWAY",uD.MODEL_AND_VALUES="MODEL_AND_VALUES",uD.API="API",uD.DATA="DATA",(uI=pj||(pj={})).INFO="INFO",uI.WARN="WARN",uI.ERROR="ERROR",(uz=pY||(pY={})).NUMERIC="numeric",uz.DIGIT_2="2-digit",uz.FULL="full",uz.LONG="long",uz.MEDIUM="medium",uz.SHORT="short",uz.NARROW="narrow",(uO=pH||(pH={})).SECONDLY="SECONDLY",uO.MINUTELY="MINUTELY",uO.HOURLY="HOURLY",uO.DAILY="DAILY",uO.WEEKLY="WEEKLY",uO.MONTHLY="MONTHLY",uO.YEARLY="YEARLY",(uR=pV||(pV={})).OMIT="OMIT",uR.BACKWARD="BACKWARD",uR.FORWARD="FORWARD",(uP=pU||(pU={})).JAPANESE="JAPANESE",uP.BUDDHIST="BUDDHIST",uP.ROC="ROC",uP.ISLAMIC="ISLAMIC",uP.ISO8601="ISO8601",uP.CHINESE="CHINESE",uP.ETHIOPIC="ETHIOPIC",uP.HEBREW="HEBREW",uP.GREGORIAN="GREGORIAN",(u$=pW||(pW={})).SU="SU",u$.MO="MO",u$.TU="TU",u$.WE="WE",u$.TH="TH",u$.FR="FR",u$.SA="SA",(uB=pq||(pq={})).PEOPLECOUNTERASSET="PeopleCounterAsset",uB.MAILAGENT="MailAgent",uB.UDPAGENT="UDPAgent",uB.ROOMASSET="RoomAsset",uB.CITYASSET="CityAsset",uB.VENTILATIONASSET="VentilationAsset",uB.TRADFRILIGHTASSET="TradfriLightAsset",uB.CONSOLEASSET="ConsoleAsset",uB.PRESENCESENSORASSET="PresenceSensorAsset",uB.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",uB.LIGHTASSET="LightAsset",uB.KNXAGENT="KNXAgent",uB.THETHINGSSTACKAGENT="TheThingsStackAgent",uB.PLUGASSET="PlugAsset",uB.CHIRPSTACKAGENT="ChirpStackAgent",uB.WEATHERASSET="WeatherAsset",uB.THINGASSET="ThingAsset",uB.WEBSOCKETAGENT="WebsocketAgent",uB.TCPAGENT="TCPAgent",uB.GATEWAYASSET="GatewayAsset",uB.SERIALAGENT="SerialAgent",uB.BLUETOOTHMESHAGENT="BluetoothMeshAgent",uB.PARKINGASSET="ParkingAsset",uB.TRADFRIPLUGASSET="TradfriPlugAsset",uB.SIMULATORAGENT="SimulatorAgent",uB.SNMPAGENT="SNMPAgent",uB.GROUPASSET="GroupAsset",uB.BUILDINGASSET="BuildingAsset",uB.MODBUSSERIALAGENT="ModbusSerialAgent",uB.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",uB.MQTTAGENT="MQTTAgent",uB.VELBUSTCPAGENT="VelbusTCPAgent",uB.ARTNETLIGHTASSET="ArtnetLightAsset",uB.VELBUSSERIALAGENT="VelbusSerialAgent",uB.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",uB.MICROPHONEASSET="MicrophoneAsset",uB.MODBUSTCPAGENT="ModbusTcpAgent",uB.ZWAVEAGENT="ZWaveAgent",uB.HTTPAGENT="HTTPAgent",uB.DOORASSET="DoorAsset",uB.THERMOSTATASSET="ThermostatAsset",uB.SHIPASSET="ShipAsset",(uN=pG||(pG={})).COLOURRGB="colourRGB",uN.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",uN.PRICEHOURLY="priceHourly",uN.MQTTPORT="MQTTPort",uN.PINGDISABLED="pingDisabled",uN.FLOW="flow",uN.CHILDASSETTYPE="childAssetType",uN.LASTACCESS="lastAccess",uN.POSITION="position",uN.NETWORKKEY="networkKey",uN.UNIVERSE="universe",uN.ROUTINGMODE="routingMode",uN.MSSINUMBER="MSSINumber",uN.LASTWILLRETAIN="lastWillRetain",uN.LASTWILLTOPIC="lastWillTopic",uN.SERIALBAUDRATE="serialBaudrate",uN.SUBSCRIBEQOS="subscribeQos",uN.LEDCOUNT="lEDCount",uN.LOCKED="locked",uN.CLOUDCOVERAGE="cloudCoverage",uN.BASEURL="baseURL",uN.PROTOCOL="protocol",uN.REQUIREDVALUES="requiredValues",uN.REGION="region",uN.CONSOLEPLATFORM="consolePlatform",uN.GATEWAYSTATUS="gatewayStatus",uN.NO2LEVEL="NO2Level",uN.ATMOSPHERICPRESSURE="atmosphericPressure",uN.SERIALPORT="serialPort",uN.APPLICATIONID="applicationId",uN.TAGS="tags",uN.UNLOCK="unlock",uN.CHECKINTERVALSECONDS="checkIntervalSeconds",uN.LOCATION="location",uN.CLIENTSECRET="clientSecret",uN.WINDDIRECTION="windDirection",uN.WINDSPEED="windSpeed",uN.PARTICLESPM10="particlesPM10",uN.APPLICATIONKEY="applicationKey",uN.LENGTH="length",uN.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",uN.USERNAMEPASSWORD="usernamePassword",uN.WATERLEVEL="waterLevel",uN.CONNECTHEADERS="connectHeaders",uN.CONSOLENAME="consoleName",uN.WEBSOCKETQUERY="websocketQuery",uN.PREFERHTML="preferHTML",uN.PARITY="parity",uN.COOLING="cooling",uN.POLLINGMILLIS="pollingMillis",uN.SOILTEMPERATURE="soilTemperature",uN.SUNIRRADIANCE="sunIrradiance",uN.MESSAGEMAXLENGTH="messageMaxLength",uN.WINDGUSTSPEED="windGustSpeed",uN.LIGHTID="lightId",uN.PROXYADDRESS="proxyAddress",uN.REQUESTQUERYPARAMETERS="requestQueryParameters",uN.MQTTHOST="MQTTHost",uN.SECUREGRPC="secureGRPC",uN.MODEL="model",uN.STREET="street",uN.MANUFACTURER="manufacturer",uN.DELETEPROCESSEDMAIL="deleteProcessedMail",uN.RESUMESESSION="resumeSession",uN.ONOFF="onOff",uN.APIKEY="ApiKey",uN.CITY="city",uN.PRESENCE="presence",uN.SPACESOCCUPIED="spacesOccupied",uN.STARTTLS="startTLS",uN.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",uN.WEBSOCKETPATH="websocketPath",uN.AGENTSTATUS="agentStatus",uN.PRICEDAILY="priceDaily",uN.COUNTGROWTHMINUTE="countGrowthMinute",uN.IMONUMBER="IMONumber",uN.ATTRIBUTION="Attribution",uN.TENANTID="tenantId",uN.REQUESTHEADERS="requestHeaders",uN.HOST="host",uN.COUNTOUTMINUTE="countOutMinute",uN.MESSAGECHARSET="messageCharset",uN.CERTIFICATEALIAS="certificateAlias",uN.EMAIL="email",uN.BINDPORT="bindPort",uN.CONSOLEVERSION="consoleVersion",uN.PARTICLESPM1="particlesPM1",uN.MTU="mtu",uN.SPEED="speed",uN.MESSAGESTRIPDELIMITER="messageStripDelimiter",uN.AREA="area",uN.COUNTRY="country",uN.SHIPTYPE="shipType",uN.CONNECTSUBSCRIPTIONS="connectSubscriptions",uN.RELATIVEHUMIDITY="relativeHumidity",uN.SOURCEADDRESS="sourceAddress",uN.RAINFALL="rainfall",uN.OAUTHGRANT="oAuthGrant",uN.OZONELEVEL="ozoneLevel",uN.SEQUENCENUMBER="sequenceNumber",uN.COUNTINMINUTE="countInMinute",uN.PORT="port",uN.SUNALTITUDE="sunAltitude",uN.COUNTOUT="countOut",uN.ROOMNUMBER="roomNumber",uN.TUNNELINGSUPPORTED="tunnelingSupported",uN.ENINUMBER="ENINumber",uN.PARTICLESPM2_5="particlesPM2_5",uN.AGENTDISABLED="agentDisabled",uN.DISABLED="disabled",uN.COUNTIN="countIn",uN.MESSAGESOURCEADDRESS="messageSourceAddress",uN.PROVISIONWEATHERASSET="ProvisionWeatherAsset",uN.TIMEINJECTIONINTERVAL="timeInjectionInterval",uN.TEMPERATURESETPOINT="temperatureSetpoint",uN.CONSOLEPROVIDERS="consoleProviders",uN.COUNTTOTAL="countTotal",uN.SPACESBUFFER="spacesBuffer",uN.DEVICECONFIG="deviceConfig",uN.SPACESTOTAL="spacesTotal",uN.BINDHOST="bindHost",uN.FANSPEED="fanSpeed",uN.MESSAGECONVERTBINARY="messageConvertBinary",uN.NOTES="notes",uN.MAILFOLDERNAME="mailFolderName",uN.MESSAGEDELIMITERS="messageDelimiters",uN.TEMPERATURE="temperature",uN.SUNZENITH="sunZenith",uN.SNMPVERSIONVALUE="SNMPVersionValue",uN.BRIGHTNESS="brightness",uN.POSTALCODE="postalCode",uN.SPACESOPEN="spacesOpen",uN.HUMIDITY="humidity",uN.SOUNDLEVEL="soundLevel",uN.SECUREMODE="secureMode",uN.DIRECTION="direction",uN.STOPBITS="stopbits",uN.UVINDEX="uVIndex",uN.CONNECTURL="connectURL",uN.CLIENTID="clientId",uN.NATMODE="NATMode",uN.UPDATEONWRITE="updateOnWrite",uN.LASTWILLPAYLOAD="lastWillPayload",uN.GROUPID="groupId",uN.FOLLOWREDIRECTS="followRedirects",uN.SUNAZIMUTH="sunAzimuth",uN.MESSAGECONVERTHEX="messageConvertHex",uN.WEBSOCKETMODE="websocketMode",uN.COLOURTEMPERATURE="colourTemperature",uN.PUBLISHQOS="publishQos",uN.DATABITS="dataBits",(uj=pK||(pK={})).FORMAT="format",uj.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",uj.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",uj.SECRET="secret",uj.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",uj.ATTRIBUTELINKS="attributeLinks",uj.RULERESETIMMEDIATE="ruleResetImmediate",uj.RULESTATE="ruleState",uj.AGENTLINKCONFIG="agentLinkConfig",uj.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",uj.FORECAST="forecast",uj.STOREDATAPOINTS="storeDataPoints",uj.LABEL="label",uj.CONSTRAINTS="constraints",uj.UNITS="units",uj.USERCONNECTED="userConnected",uj.SHOWONDASHBOARD="showOnDashboard",uj.READONLY="readOnly",uj.MULTILINE="multiline",uj.ACCESSPUBLICWRITE="accessPublicWrite",uj.MOMENTARY="momentary",uj.AGENTLINK="agentLink",uj.ACCESSRESTRICTEDREAD="accessRestrictedRead",uj.ACCESSPUBLICREAD="accessPublicRead",(uY=pX||(pX={})).ASSETQUERY="assetQuery",uY.WSURL="WS_URL",uY.COLOURRGB="colourRGB",uY.VALUEFORMAT="valueFormat",uY.TEXT="text",uY.BYTE="byte",uY.USERNAMEANDPASSWORD="usernameAndPassword",uY.HTTPURL="HTTP_URL",uY.ATTRIBUTELINK="attributeLink",uY.ASSETID="assetID",uY.NUMBERMAP="numberMap",uY.HTTPMETHOD="HTTPMethod",uY.ATTRIBUTESTATE="attributeState",uY.POSITIVENUMBER="positiveNumber",uY.POSITIVEINTEGER="positiveInteger",uY.EXECUTIONSTATUS="executionStatus",uY.BIGINTEGER="bigInteger",uY.VALUEDESCRIPTOR="valueDescriptor",uY.PERIODDURATIONISO8601="periodDurationISO8601",uY.LONG="long",uY.DATEANDTIME="dateAndTime",uY.BOOLEANMAP="booleanMap",uY.MQTTQOS="MQTTQos",uY.NEGATIVEINTEGER="negativeInteger",uY.TCPIPPORTNUMBER="TCP_IPPortNumber",uY.GEOJSONPOINT="GEO_JSONPoint",uY.SNMPVERSION="SNMPVersion",uY.ASSETTYPE="assetType",uY.JSONOBJECT="JSONObject",uY.INTEGERMAP="integerMap",uY.BIGNUMBER="bigNumber",uY.IPADDRESS="IPAddress",uY.EMAIL="email",uY.TIMESTAMP="timestamp",uY.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",uY.ATTRIBUTEREFERENCE="attributeReference",uY.UUID="UUID",uY.INTEGER="integer",uY.OAUTHGRANT="oAuthGrant",uY.NUMBER="number",uY.DEVICECONFIGMAP="DeviceConfigMap",uY.TEXTMAP="textMap",uY.WEBSOCKETSUBSCRIPTION="websocketSubscription",uY.BOOLEAN="boolean",uY.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",uY.FORECASTCONFIGURATION="forecastConfiguration",uY.TIMEDURATIONISO8601="timeDurationISO8601",uY.TIMESTAMPISO8601="timestampISO8601",uY.CONSOLEPROVIDERS="consoleProviders",uY.MULTIVALUEDTEXTMAP="multivaluedTextMap",uY.NEGATIVENUMBER="negativeNumber",uY.PARITYBIT="Paritybit",uY.JSON="JSON",uY.CRONEXPRESSION="CRONExpression",uY.INTEGERBYTE="integerByte",uY.AGENTLINK="agentLink",uY.DIRECTION="direction",uY.HOSTORIPADDRESS="hostOrIPAddress",uY.STOPBITS="Stopbits",uY.CALENDAREVENT="calendarEvent",uY.CONNECTIONSTATUS="connectionStatus",uY.VALUECONSTRAINT="valueConstraint",(uH=pZ||(pZ={})).MONTH="month",uH.MILE_SCANDINAVIAN="mile_scandinavian",uH.VAR="var",uH.OUNCE="ounce",uH.HECTARE="hectare",uH.YARD="yard",uH.YEAR="year",uH.GIGA="giga",uH.JOULE="joule",uH.VOLT="volt",uH.HERTZ="hertz",uH.MILE="mile",uH.DEGREE="degree",uH.KILO="kilo",uH.BTU="btu",uH.TERA="tera",uH.FOOT="foot",uH.MEGA="mega",uH.KELVIN="kelvin",uH.CARBON="carbon",uH.DECIBEL_ATTENUATED="decibel_attenuated",uH.INCH="inch",uH.SQUARED="squared",uH.PERCENTAGE="percentage",uH.IN_HG="inch_mercury",uH.CENTI="centi",uH.GRAM="gram",uH.CUBED="cubed",uH.DAY="day",uH.RADIAN="radian",uH.OHM="ohm",uH.MINUTE="minute",uH.PART_PER_MILLION="ppm",uH.AMP="amp",uH.MASS_POUND="pound",uH.KNOT="knot",uH.METRE="metre",uH.LITRE="litre",uH.FLUID_OUNCE="fluid_ounce",uH.HOUR="hour",uH.ACRE="acre",uH.CELSIUS="celsius",uH.RPM="rpm",uH.PASCAL="pascal",uH.DECIBEL="decibel",uH.LUMEN="lumen",uH.WEEK="week",uH.FAHRENHEIT="fahrenheit",uH.WATT="watt",uH.GALLON="gallon",uH.LUX="lux",uH.MILLI="milli",uH.BAR="bar",uH.HECTO="hecto",uH.PEAK="peak",uH.SECOND="second",uH.MICRO="micro",uH.PER="per",uH.STONE="stone",pJ||(pJ={});class ne{static getAssetDescriptors(){return ne._assetTypeInfos.map(t=>t.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(t){if(t)return t.assetDescriptor?t:("string"!=typeof t&&(t=t.name),this._assetTypeInfos.find(n=>n.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let n=this._assetTypeInfos.find(n=>n.assetDescriptor.name===t);return n?n.assetDescriptor:void 0}static getAttributeDescriptor(t,n){if(!t)return;let i=this.getAssetTypeInfo(n||"ThingAsset");if(i&&i.attributeDescriptors)return i.attributeDescriptors.find(n=>n.name===t)}static getValueDescriptor(t){let n;if(!t)return;if(t.endsWith("[]"))for(n=0;t.endsWith("[]");)t=t.substring(0,t.length-2),n++;let i=this._valueDescriptors.find(n=>n.name===t);return i&&n&&(i=Object.assign(Object.assign({},i),{arrayDimensions:n})),i}static resolveValueDescriptor(t,n){let i;return n&&("string"==typeof n&&(i=ne.getValueDescriptor(n)),i=n.jsonType?n:ne.getValueDescriptor(n.type)),!i&&t&&(i=ne.getValueDescriptor("JSON")),i}static resolveValueTypeFromValue(t){if(null!=t){if("number"==typeof t)return"number";if("string"==typeof t)return"text";if("boolean"==typeof t)return"boolean";if(Array.isArray(t)){let n=1,i=t.find(t=>null!=t);for(;Array.isArray(i);)i=i.find(t=>null!=t),n++;let r=this.resolveValueTypeFromValue(i);if(!r)return;for(;n>0;)r+="[]",n--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,n,i){let r,o;if(n&&"string"!=typeof n)r=n;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof n&&(r=this.getAttributeDescriptor(n,o)),!r&&i&&(r={type:i.type,name:i.name,meta:i.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(n=>n.name===t)}static getAssetDescriptorColour(t,n){let i=this.getAssetDescriptor(t);return i&&i.colour?i.colour:n}static getAssetDescriptorIcon(t,n){let i=this.getAssetDescriptor(t);return i&&i.icon?i.icon:n}}ne._assetTypeInfos=[],ne._metaItemDescriptors=[],ne._valueDescriptors=[],o(44532);var nt=o(88183),nn=o.n(nt),ni=o(14867),nr=o.n(ni);o(83472);class no{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n}),Object.freeze(this)}}function na(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>na(t[i],n[i]))}return!1}function ns(t){if(null==t)return"";let n=!1;return t.split(/([A-Z]|\d)/).map((t,i,r)=>{if(!t)return t;if(!n)return n=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let n=!r[i-1]||"_"===r[i-1],o=i+1<r.length&&r[i+1]&&"_"!==r[i+1],a=i+3>r.length||!r[i+1]&&!r[i+3];(!n||o)&&(t=" "+t),!o&&(n||a)||(t=t.toLowerCase())}return t}).join("").trim()}function nl(t,n,i){let r="string"==typeof t?t:t.name;return n&&n.meta&&n.meta.hasOwnProperty(r)?n.meta[r]:i&&i.meta?i.meta[r]:void 0}function nc(t,n){let i="string"==typeof t?ne.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:ne.resolveValueTypeFromValue(n),value:n}}function nd(t,n,i,r,o,a){let s=nf("label",t,n,i,o),l="";if(s||(s=nl("label",t,n&&n.meta?n:void 0)),r&&(l=np(nm("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?ns(i):void 0)}return s?s+(l?" ("+l+")":""):l}function nh(t,n,i,r,o,a){let s=nu(t?t.value:void 0,()=>nm("format",t,n,i,o),void 0,a),l=nm("units",t,n,i,!0);return r&&l&&l.length&&(s=np(nm("units",t,n,i,o),s)),s}function nu(t,n,i,r){let o="";if(null==t)o=r||"";else if("string"==typeof t)o=t;else if("number"==typeof t||"boolean"==typeof t||t instanceof Date){let r=n&&n();if(r&&0!==Object.keys(r).length)switch("number"==typeof t?r.asBoolean?t=!!t:r.asDate&&(t=new Date(t)):"boolean"==typeof t&&r.asNumber&&(t=+!!t),typeof t){case"number":o=new Intl.NumberFormat(i||t8.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t8.t("on"):t8.t("off")),r.asOpenClosed&&(o=t?t8.t("open"):t8.t("closed")),r.asPressedReleased&&(o=t?t8.t("pressed"):t8.t("released"));break;case"object":if(r.momentJsFormat)o=nr()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let n,i=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),n=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-n.getTime())/864e5+1)/7));o="2-digit"===r.week?String(i).padStart(2,"0"):Number(i).toString(10)}else o=new Intl.DateTimeFormat(i||t8.language,r).format(t)}else o=Object(t).toString()}return o}function np(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t8.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t8.language,{currency:t,style:"currency"}).formatToParts();if(0!==i||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!n)return r[0].value;n=r[0].value+n}}).join("");return n.length>0?n+" "+i:i}function nm(t,n,i,r,o){let a,s=[],l=nf(t,n&&"string"==typeof n?n:n?n.name:i?"string"==typeof i?i:i.name:void 0,i,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(n&&n.meta&&(a=nl(t,n,i)))if("format"!==t)return a;else s.push(a);if(i&&"string"!=typeof i&&i.hasOwnProperty(t)){if(a=i[t],"format"!==t)return a;s.push(a)}if(i&&i.type){if(a=ne.getValueDescriptor(i.type)[t],"format"!==t)return a;s.push(a)}if("format"!==t||0===s.length)return a;let c={};return s.reverse().forEach(t=>{c=Object.assign(Object.assign({},c),t)}),c}function nf(t,n,i,r,o,a){let s;if(n?s="string"==typeof n?n:n.name:i&&(s="string"==typeof i?i:i.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),i&&"string"!=typeof i&&(l.push(c+i.type+"."+s),l.push(c+i.type)),l.push(c+s),l.length>0)return t8.t(l,{defaultValue:a||""})}function ng(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}var nb=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};let nv=o(74461);class n_{constructor(t,n,i){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=n,this._enableCompleteCallback=i,window.OpenRemoteConsole=this;let r=new URLSearchParams(window.location.search),o=r.get("consoleName"),a=r.get("consoleVersion"),s=r.get("consolePlatform"),l=r.get("consoleProviders"),c=r.get("consoleAutoEnable"),d=l&&l.length>0?l.split(" "):["push"];this._pendingProviderEnables=d;let h=n_._createConsoleRegistration(),u=window.localStorage.getItem("OpenRemoteConsole:"+t);if(u)try{let t=JSON.parse(u);t.id&&(h.id=t.id),t.name&&(h.name=t.name),t.providers&&(h.providers=t.providers),t.apps&&(h.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=h.providers;for(let t of(h.providers={},d)){let n=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};h.providers[t]=n}let m=oY.getAppName();m.length>0&&0>h.apps.indexOf(m)&&h.apps.push(m),this._registration=h,o&&(h.name=o),a&&(h.version=a),s&&(h.platform=s),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let t=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return t&&("iP"===t.substring(0,2)||"Mac"===t.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nb(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 t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration(0)),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let t=this._pendingProviderEnables.length-1;t>-1;t--){let n=this._pendingProviderEnables[t];yield this.enableProvider(n)}})}enableProvider(t,n){return nb(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(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration(),this._callCompletedCallback())),r})}disableProvider(t){return nb(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(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: disabling provider '"+t+"'");let n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,n})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,n){return nb(this,void 0,void 0,function*(){if("storage"!==t.provider&&!this._registration.providers.hasOwnProperty(t.provider))throw console.debug("Invalid console provider '"+t.provider+"'"),Error("Invalid console provider '"+t.provider+"'");if(!n)return void this._doSendProviderMessage(t);let i=t.provider+t.action;if(this._pendingProviderPromises[i])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new no,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(t){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),console.debug("Sending registration in: "+(t=void 0!==t?t:2e3)+"ms"),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>{this._registrationTimer=null,console.debug("Console: updating registration");try{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={}),oY.rest.api.ConsoleResource.register(this._registration).then(n=>{if(200!==n.status)throw Error("Failed to register console");this._registration=n.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem("OpenRemoteConsole:"+this._realm,JSON.stringify(this._registration)),t()})}catch(t){console.error("Failed to register console"),n("Failed to register console")}})})}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nb(this,void 0,void 0,function*(){let n=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([n,new Promise((t,n)=>setTimeout(n,2e3))]);if(t&&t.value){let n=t.value;return"null"===n?void 0:n}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,n){this._providerMessageListeners[t.provider+t.action]=n}removeProviderMessageListener(t){delete this._providerMessageListeners[t.provider+t.action]}_postNativeShellMessage(t){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(t));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(t)}catch(t){console.error("Failed to send shell message towards console",t)}}_doSendGenericMessage(t,n){let i={type:t,data:n};this.isMobile?this._postNativeShellMessage(i):console.warn("Failed to send generic message to console.",i)}_doSendProviderMessage(t){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:t});else{if(!t.provider||!t.action)return;switch(t.provider.trim().toUpperCase()){case"PUSH":switch(t.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 '"+t.provider+"' and action '"+t.action+"'")}break;case"STORAGE":switch(t.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 n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(n):window.localStorage.setItem(n,JSON.stringify(t.value))}break;case"RETRIEVE":{let n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'retrieve' action requires a `key`");let i=window.localStorage.getItem(n);if(null!==i)try{i=JSON.parse(i)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:n,value:i}))}break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;default:console.error("Unsupported provider: "+t.provider)}}}_handleProviderResponse(t){if(!t)return;let n=JSON.parse(t),i=n.provider,r=n.action,o=this._pendingProviderPromises[i+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[i+r],o[0].resolve(n));let a=this._providerMessageListeners[i+r];a&&a(n)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:nv.name,version:nv.version,platform:nv.os.toString(),apps:[],model:((nv.manufacturer?nv.manufacturer+" ":"")+(nv.product?nv.product:"")).trim()}}_initialiseProvider(t){return nb(this,void 0,void 0,function*(){let n;console.debug("Console: initialising provider '"+t+"'");try{n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=n.version,this._registration.providers[t].requiresPermission=n.requiresPermission,this._registration.providers[t].hasPermission=n.hasPermission,this._registration.providers[t].success=n.success,this._registration.providers[t].enabled=n.enabled,this._registration.providers[t].disabled=n.disabled,this._registration.providers[t].data=n.data}catch(t){console.error(t),n={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(n.success||(console.debug("Provider initialisation failed: '"+t+"'"),n.disabled=!0,this._registration.providers[t].disabled=!0),n.disabled||n.enabled){let n=this._pendingProviderEnables.indexOf(t);n>=0&&this._pendingProviderEnables.splice(n,1)}})}}function ny(t,n){return function(){return t.apply(n,arguments)}}let{toString:nx}=Object.prototype,{getPrototypeOf:nw}=Object,{iterator:nk,toStringTag:nM}=Symbol,nF=(c=Object.create(null),t=>{let n=nx.call(t);return c[n]||(c[n]=n.slice(8,-1).toLowerCase())}),nE=t=>(t=t.toLowerCase(),n=>nF(n)===t),nC=t=>n=>typeof n===t,{isArray:nT}=Array,nA=nC("undefined");function nS(t){return null!==t&&!nA(t)&&null!==t.constructor&&!nA(t.constructor)&&nI(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nL=nE("ArrayBuffer"),nD=nC("string"),nI=nC("function"),nz=nC("number"),nO=t=>null!==t&&"object"==typeof t,nR=t=>{if("object"!==nF(t))return!1;let n=nw(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(nM in t)&&!(nk in t)},nP=nE("Date"),n$=nE("File"),nB=nE("Blob"),nN=nE("FileList"),nj="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nY=void 0!==nj.FormData?nj.FormData:void 0,nH=nE("URLSearchParams"),[nV,nU,nW,nq]=["ReadableStream","Request","Response","Headers"].map(nE);function nG(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nT(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nS(t))return;let a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],n.call(null,t[o],o,t)}}function nK(t,n){let i;if(nS(t))return null;n=n.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(n===(i=r[o]).toLowerCase())return i;return null}let nX="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nZ=t=>!nA(t)&&t!==nX,nJ=(d="u">typeof Uint8Array&&nw(Uint8Array),t=>d&&t instanceof d),nQ=nE("HTMLFormElement"),n0=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),n1=nE("RegExp"),n2=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nG(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},n3=nE("AsyncFunction"),n5=(hH="function"==typeof setImmediate,hV=nI(nX.postMessage),hH?setImmediate:hV?(hU=`axios@${Math.random()}`,hW=[],nX.addEventListener("message",({source:t,data:n})=>{t===nX&&n===hU&&hW.length&&hW.shift()()},!1),t=>{hW.push(t),nX.postMessage(hU,"*")}):t=>setTimeout(t)),n4="u">typeof queueMicrotask?queueMicrotask.bind(nX):"u">typeof process&&process.nextTick||n5,n6={isArray:nT,isArrayBuffer:nL,isBuffer:nS,isFormData:t=>{if(!t)return!1;if(nY&&t instanceof nY)return!0;let n=nw(t);if(!n||n===Object.prototype||!nI(t.append))return!1;let i=nF(t);return"formdata"===i||"object"===i&&nI(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nL(t.buffer)},isString:nD,isNumber:nz,isBoolean:t=>!0===t||!1===t,isObject:nO,isPlainObject:nR,isEmptyObject:t=>{if(!nO(t)||nS(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nV,isRequest:nU,isResponse:nW,isHeaders:nq,isUndefined:nA,isDate:nP,isFile:n$,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nB,isRegExp:n1,isFunction:nI,isStream:t=>nO(t)&&nI(t.pipe),isURLSearchParams:nH,isTypedArray:nJ,isFileList:nN,forEach:nG,merge:function t(...n){let{caseless:i,skipUndefined:r}=nZ(this)&&this||{},o={},a=(n,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=i&&nK(o,a)||a,l=n0(o,s)?o[s]:void 0;nR(l)&&nR(n)?o[s]=t(l,n):nR(n)?o[s]=t({},n):nT(n)?o[s]=n.slice():r&&nA(n)||(o[s]=n)};for(let t=0,i=n.length;t<i;t++)n[t]&&nG(n[t],a);return o},extend:(t,n,i,{allOwnKeys:r}={})=>(nG(n,(n,r)=>{i&&nI(n)?Object.defineProperty(t,r,{__proto__:null,value:ny(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&nw(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nF,kindOfTest:nE,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let r=t.indexOf(n,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(nT(t))return t;let n=t.length;if(!nz(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nk]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;n.call(t,r[0],r[1])}},matchAll:(t,n)=>{let i,r=[];for(;null!==(i=t.exec(n));)r.push(i);return r},isHTMLForm:nQ,hasOwnProperty:n0,hasOwnProp:n0,reduceDescriptors:n2,freezeMethods:t=>{n2(t,(n,i)=>{if(nI(t)&&["arguments","caller","callee"].includes(i))return!1;if(nI(t[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(nT(t)?t:String(t).split(n)).forEach(t=>{i[t]=!0}),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t*=1)?t:n,findKey:nK,global:nX,isContextDefined:nZ,isSpecCompliantForm:function(t){return!!(t&&nI(t.append)&&"FormData"===t[nM]&&t[nk])},toJSONObject:t=>{let n=new WeakSet,i=t=>{if(nO(t)){if(n.has(t))return;if(nS(t))return t;if(!("toJSON"in t)){n.add(t);let r=nT(t)?[]:{};return nG(t,(t,n)=>{let o=i(t);nA(o)||(r[n]=o)}),n.delete(t),r}}return t};return i(t)},isAsyncFn:n3,isThenable:t=>t&&(nO(t)||nI(t))&&nI(t.then)&&nI(t.catch),setImmediate:n5,asap:n4,isIterable:t=>null!=t&&nI(t[nk])},n8=n6.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"]),n7=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),n9=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ie(t,n){return n6.isArray(t)?t.map(t=>ie(t,n)):function(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}(String(t).replace(n,""))}function it(t){let n=Object.create(null);return n6.forEach(t.toJSON(),(t,i)=>{n[i]=ie(t,n9)}),n}let ii=Symbol("internals");function ir(t){return t&&String(t).trim().toLowerCase()}function io(t){return!1===t||null==t?t:n6.isArray(t)?t.map(io):ie(String(t),n7)}function ia(t,n,i,r,o){if(n6.isFunction(r))return r.call(this,n,i);if(o&&(n=i),n6.isString(n)){if(n6.isString(r))return -1!==n.indexOf(r);if(n6.isRegExp(r))return r.test(n)}}class is{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=ir(n);if(!o)throw Error("header name must be a non-empty string");let a=n6.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=io(t))}let a=(t,n)=>n6.forEach(t,(t,i)=>o(t,i,n));if(n6.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(n6.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&n8[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(n6.isObject(t)&&n6.isIterable(t)){let i={},r,o;for(let n of t){if(!n6.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[o=n[0]]=(r=i[o])?n6.isArray(r)?[...r,n[1]]:[r,n[1]]:n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=ir(t)){let i=n6.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n){let n,i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=r.exec(t);)i[n[1]]=n[2];return i}if(n6.isFunction(n))return n.call(this,t,i);if(n6.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ir(t)){let i=n6.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||ia(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=ir(t)){let o=n6.findKey(i,t);o&&(!n||ia(i,i[o],o,n))&&(delete i[o],r=!0)}}return n6.isArray(t)?t.forEach(o):o(t),r}clear(t){let n=Object.keys(this),i=n.length,r=!1;for(;i--;){let o=n[i];(!t||ia(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return n6.forEach(this,(r,o)=>{let a=n6.findKey(i,o);if(a){n[a]=io(r),delete n[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(o).trim();s!==o&&delete n[o],n[s]=io(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return n6.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&n6.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[ii]=this[ii]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=ir(t);if(!n[r]){let o;o=n6.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{__proto__:null,value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return n6.isArray(t)?t.forEach(r):r(t),this}}is.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n6.reduceDescriptors(is.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),n6.freezeMethods(is);class il extends Error{static from(t,n,i,r,o,a){let s=new il(t.message,n||t.code,i,r,o);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,n,i,r=this.config,o=r&&n6.hasOwnProp(r,"redact")?r.redact:void 0,a=n6.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),n=[],(i=r=>{let o;if(null===r||"object"!=typeof r||n6.isBuffer(r))return r;if(-1===n.indexOf(r)){if(r instanceof is&&(r=r.toJSON()),n.push(r),n6.isArray(r))o=[],r.forEach((t,n)=>{let r=i(t);n6.isUndefined(r)||(o[n]=r)});else{if(!n6.isPlainObject(r)&&function(t){if(n6.hasOwnProp(t,"toJSON"))return!0;let n=Object.getPrototypeOf(t);for(;n&&n!==Object.prototype;){if(n6.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}(r))return n.pop(),r;for(let[n,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(n.toLowerCase())?"[REDACTED ****]":i(a);n6.isUndefined(r)||(o[n]=r)}}return n.pop(),o}})(r)):n6.toJSONObject(r);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:a,code:this.code,status:this.status}}}il.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",il.ERR_BAD_OPTION="ERR_BAD_OPTION",il.ECONNABORTED="ECONNABORTED",il.ETIMEDOUT="ETIMEDOUT",il.ECONNREFUSED="ECONNREFUSED",il.ERR_NETWORK="ERR_NETWORK",il.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",il.ERR_DEPRECATED="ERR_DEPRECATED",il.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",il.ERR_BAD_REQUEST="ERR_BAD_REQUEST",il.ERR_CANCELED="ERR_CANCELED",il.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",il.ERR_INVALID_URL="ERR_INVALID_URL",il.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let ic=il;function id(t){return n6.isPlainObject(t)||n6.isArray(t)}function ih(t){return n6.endsWith(t,"[]")?t.slice(0,-2):t}function iu(t,n,i){return t?t.concat(n).map(function(t,n){return t=ih(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let ip=n6.toFlatObject(n6,{},null,function(t){return/^is[A-Z]/.test(t)}),im=function(t,n,i){if(!n6.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=n6.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!n6.isUndefined(n[t])})).metaTokens,o=i.visitor||u,a=i.dots,s=i.indexes,l=i.Blob||"u">typeof Blob&&Blob,c=void 0===i.maxDepth?100:i.maxDepth,d=l&&n6.isSpecCompliantForm(n);if(!n6.isFunction(o))throw TypeError("visitor must be a function");function h(t){if(null===t)return"";if(n6.isDate(t))return t.toISOString();if(n6.isBoolean(t))return t.toString();if(!d&&n6.isBlob(t))throw new ic("Blob is not supported. Use a Buffer instead.");return n6.isArrayBuffer(t)||n6.isTypedArray(t)?d&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,i,o){let l=t;if(n6.isReactNative(n)&&n6.isReactNativeBlob(t))return n.append(iu(o,i,a),h(t)),!1;if(t&&!o&&"object"==typeof t)if(n6.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var c;if(n6.isArray(t)&&(c=t,n6.isArray(c)&&!c.some(id))||(n6.isFileList(t)||n6.endsWith(i,"[]"))&&(l=n6.toArray(t)))return i=ih(i),l.forEach(function(t,r){n6.isUndefined(t)||null===t||n.append(!0===s?iu([i],r,a):null===s?i:i+"[]",h(t))}),!1}return!!id(t)||(n.append(iu(o,i,a),h(t)),!1)}let p=[],m=Object.assign(ip,{defaultVisitor:u,convertValue:h,isVisitable:id});if(!n6.isObject(t))throw TypeError("data must be an object");return!function t(i,r,a=0){if(!n6.isUndefined(i)){if(a>c)throw new ic("Object is too deeply nested ("+a+" levels). Max depth: "+c,ic.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(i))throw Error("Circular reference detected in "+r.join("."));p.push(i),n6.forEach(i,function(i,s){!0===(!(n6.isUndefined(i)||null===i)&&o.call(n,i,n6.isString(s)?s.trim():s,r,m))&&t(i,r?r.concat(s):[s],a+1)}),p.pop()}}(t),n};function ig(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function ib(t,n){this._pairs=[],t&&im(t,this,n)}let iv=ib.prototype;function i_(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iy(t,n,i){let r;if(!n)return t;let o=i&&i.encode||i_,a=n6.isFunction(i)?{serialize:i}:i,s=a&&a.serialize;if(r=s?s(n,a):n6.isURLSearchParams(n)?n.toString():new ib(n,a).toString(o)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}iv.append=function(t,n){this._pairs.push([t,n])},iv.toString=function(t){let n=t?function(n){return t.call(this,n,ig)}:ig;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let ix=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n6.forEach(this.handlers,function(n){null!==n&&t(n)})}},iw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ik="u">typeof URLSearchParams?URLSearchParams:ib,iM="u">typeof FormData?FormData:null,iF="u">typeof Blob?Blob:null,iE="u">typeof window&&"u">typeof document,iC="object"==typeof navigator&&navigator||void 0,iT=iE&&(!iC||0>["ReactNative","NativeScript","NS"].indexOf(iC.product)),iA="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iS=iE&&window.location.href||"http://localhost",iL={...C,isBrowser:!0,classes:{URLSearchParams:ik,FormData:iM,Blob:iF},protocols:["http","https","file","blob","url","data"]},iD=function(t){if(n6.isFormData(t)&&n6.isFunction(t.entries)){let n={};return n6.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&n6.isArray(r)?r.length:a,l)?n6.hasOwnProp(r,a)?r[a]=n6.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i:(n6.hasOwnProp(r,a)&&n6.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&n6.isArray(r[a])&&(r[a]=function(t){let n,i,r={},o=Object.keys(t),a=o.length;for(n=0;n<a;n++)r[i=o[n]]=t[i];return r}(r[a]))),!s}(n6.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null},iI=(t,n)=>null!=t&&n6.hasOwnProp(t,n)?t[n]:void 0,iz={transitional:iw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=n6.isObject(t);if(a&&n6.isHTMLForm(t)&&(t=new FormData(t)),n6.isFormData(t))return o?JSON.stringify(iD(t)):t;if(n6.isArrayBuffer(t)||n6.isBuffer(t)||n6.isStream(t)||n6.isFile(t)||n6.isBlob(t)||n6.isReadableStream(t))return t;if(n6.isArrayBufferView(t))return t.buffer;if(n6.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let n=iI(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return im(t,new iL.classes.URLSearchParams,{visitor:function(t,n,i,r){return iL.isNode&&n6.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n}).toString();if((i=n6.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=iI(this,"env"),o=r&&r.FormData;return im(i?{"files[]":t}:t,o&&new o,n)}}if(a||o){n.setContentType("application/json",!1);var s=t;if(n6.isString(s))try{return(0,JSON.parse)(s),n6.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let n=iI(this,"transitional")||iz.transitional,i=n&&n.forcedJSONParsing,r=iI(this,"responseType"),o="json"===r;if(n6.isResponse(t)||n6.isReadableStream(t))return t;if(t&&n6.isString(t)&&(i&&!r||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,iI(this,"parseReviver"))}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw ic.from(t,ic.ERR_BAD_RESPONSE,this,null,iI(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iL.classes.FormData,Blob:iL.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function iO(t,n){let i=this||iz,r=n||i,o=is.from(r.headers),a=r.data;return n6.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iR(t){return!!(t&&t.__CANCEL__)}n6.forEach(["delete","get","head","post","put","patch","query"],t=>{iz.headers[t]={}});let iP=class extends ic{constructor(t,n,i){super(null==t?"canceled":t,ic.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function i$(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new ic("Request failed with status code "+i.status,i.status>=400&&i.status<500?ic.ERR_BAD_REQUEST:ic.ERR_BAD_RESPONSE,i.config,i.request,i))}let iB=function(t,n){let i,r=Array(t=t||10),o=Array(t),a=0,s=0;return n=void 0!==n?n:1e3,function(l){let c=Date.now(),d=o[s];i||(i=c),r[a]=l,o[a]=c;let h=s,u=0;for(;h!==a;)u+=r[h++],h%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-i<n)return;let p=d&&c-d;return p?Math.round(1e3*u/p):void 0}},iN=function(t,n){let i,r,o=0,a=1e3/n,s=(n,a=Date.now())=>{o=a,i=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...t)=>{let n=Date.now(),l=n-o;l>=a?s(t,n):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},a-l)))},()=>i&&s(i)]},ij=(t,n,i=3)=>{let r=0,o=iB(50,250);return iN(i=>{if(!i||"number"!=typeof i.loaded)return;let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=null!=s?Math.min(a,s):a,c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iY=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iH=t=>(...n)=>n6.asap(()=>t(...n)),iV=iL.hasStandardBrowserEnv?(h=new URL(iL.origin),u=iL.navigator&&/(msie|trident)/i.test(iL.navigator.userAgent),t=>(t=new URL(t,iL.origin),h.protocol===t.protocol&&h.host===t.host&&(u||h.port===t.port))):()=>!0,iU=iL.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];n6.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),n6.isString(r)&&l.push(`path=${r}`),n6.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),n6.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)return decodeURIComponent(r.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function iW(t,n,i){let r=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return t&&(r||!1===i)?n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t:n}let iq=t=>t instanceof is?{...t}:t;function iG(t,n){n=n||{};let i=Object.create(null);function r(t,n,i,r){return n6.isPlainObject(t)&&n6.isPlainObject(n)?n6.merge.call({caseless:r},t,n):n6.isPlainObject(n)?n6.merge({},n):n6.isArray(n)?n.slice():n}function o(t,n,i,o){return n6.isUndefined(n)?n6.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!n6.isUndefined(n))return r(void 0,n)}function s(t,n){return n6.isUndefined(n)?n6.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return n6.hasOwnProp(n,a)?r(i,o):n6.hasOwnProp(t,a)?r(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage: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:(t,n,i)=>o(iq(t),iq(n),i,!0)};return n6.forEach(Object.keys({...t,...n}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n6.hasOwnProp(c,r)?c[r]:o,s=a(n6.hasOwnProp(t,r)?t[r]:void 0,n6.hasOwnProp(n,r)?n[r]:void 0,r);n6.isUndefined(s)&&a!==l||(i[r]=s)}),i}let iK=["content-type","content-length"],iX=t=>{let n=iG({},t),i=t=>n6.hasOwnProp(n,t)?n[t]:void 0,r=i("data"),o=i("withXSRFToken"),a=i("xsrfHeaderName"),s=i("xsrfCookieName"),l=i("headers"),c=i("auth"),d=i("baseURL"),h=i("allowAbsoluteUrls"),u=i("url");if(n.headers=l=is.from(l),n.url=iy(iW(d,u,h),t.params,t.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?encodeURIComponent(c.password).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))):""))),n6.isFormData(r))if(iL.hasStandardBrowserEnv||iL.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else{var p,m;n6.isFunction(r.getHeaders)&&(p=l,m=r.getHeaders(),"content-only"!==i("formDataHeaderPolicy")?p.set(m):Object.entries(m).forEach(([t,n])=>{iK.includes(t.toLowerCase())&&p.set(t,n)}))}if(iL.hasStandardBrowserEnv&&(n6.isFunction(o)&&(o=o(n)),!0===o||null==o&&iV(n.url))){let t=a&&s&&iU.read(s);t&&l.set(a,t)}return n},iZ="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,h=iX(t),u=h.data,p=is.from(h.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=h;function b(){l&&l(),c&&c(),h.cancelToken&&h.cancelToken.unsubscribe(o),h.signal&&h.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function _(){if(!v)return;let r=is.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());i$(function(t){n(t),b()},function(t){i(t),b()},{data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v}),v=null}v.open(h.method.toUpperCase(),h.url,!0),v.timeout=h.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(i(new ic("Request aborted",ic.ECONNABORTED,t,v)),b(),v=null)},v.onerror=function(n){let r=new ic(n&&n.message?n.message:"Network Error",ic.ERR_NETWORK,t,v);r.event=n||null,i(r),b(),v=null},v.ontimeout=function(){let n=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",r=h.transitional||iw;h.timeoutErrorMessage&&(n=h.timeoutErrorMessage),i(new ic(n,r.clarifyTimeoutError?ic.ETIMEDOUT:ic.ECONNABORTED,t,v)),b(),v=null},void 0===u&&p.setContentType(null),"setRequestHeader"in v&&n6.forEach(it(p),function(t,n){v.setRequestHeader(n,t)}),n6.isUndefined(h.withCredentials)||(v.withCredentials=!!h.withCredentials),m&&"json"!==m&&(v.responseType=h.responseType),g&&([s,c]=ij(g,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,l]=ij(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",l)),(h.cancelToken||h.signal)&&(o=n=>{v&&(i(!n||n.type?new iP(null,t,v):n),v.abort(),b(),v=null)},h.cancelToken&&h.cancelToken.subscribe(o),h.signal&&(h.signal.aborted?o():h.signal.addEventListener("abort",o)));let y=(r=h.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r))&&d[1]||"");y&&!iL.protocols.includes(y)?i(new ic("Unsupported protocol "+y+":",ic.ERR_BAD_REQUEST,t)):v.send(u||null)})},iJ=function*(t,n){let i,r=t.byteLength;if(!n||r<n)return void(yield t);let o=0;for(;o<r;)i=o+n,yield t.slice(o,i),o=i},iQ=async function*(t,n){for await(let i of i0(t))yield*iJ(i,n)},i0=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let n=t.getReader();try{for(;;){let{done:t,value:i}=await n.read();if(t)break;yield i}}finally{await n.cancel()}},i1=(t,n,i,r)=>{let o,a=iQ(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},{isFunction:i2}=n6,i3=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},i5=t=>{let n,i=void 0!==n6.global&&null!==n6.global?n6.global:globalThis,{ReadableStream:r,TextEncoder:o}=i,{fetch:a,Request:s,Response:l}=t=n6.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},t),c=a?i2(a):"function"==typeof fetch,d=i2(s),h=i2(l);if(!c)return!1;let u=c&&i2(r),p=c&&("function"==typeof o?(n=new o,t=>n.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&u&&i3(()=>{let t=!1,n=new s(iL.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),t&&!i}),f=h&&u&&i3(()=>n6.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new ic(`Response type '${t}' is not supported`,ic.ERR_NOT_SUPPORT,i)})});let b=async t=>{if(null==t)return 0;if(n6.isBlob(t))return t.size;if(n6.isSpecCompliantForm(t)){let n=new s(iL.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return n6.isArrayBufferView(t)||n6.isArrayBuffer(t)?t.byteLength:(n6.isURLSearchParams(t)&&(t+=""),n6.isString(t))?(await p(t)).byteLength:void 0},v=async(t,n)=>{let i=n6.toFiniteNumber(t.getContentLength());return null==i?b(n):i};return async t=>{let n,{url:i,method:r,data:c,signal:h,cancelToken:u,timeout:p,onDownloadProgress:b,onUploadProgress:_,responseType:y,headers:x,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:M,maxBodyLength:F}=iX(t),E=n6.isNumber(M)&&M>-1,C=n6.isNumber(F)&&F>-1,T=a||fetch;y=y?(y+"").toLowerCase():"text";let A=((t,n)=>{if(t=t?t.filter(Boolean):[],!n&&!t.length)return;let i=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let n=t instanceof Error?t:this.reason;i.abort(n instanceof ic?n:new iP(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new ic(`timeout of ${n}ms exceeded`,ic.ETIMEDOUT))},n),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));let{signal:l}=i;return l.unsubscribe=()=>n6.asap(s),l})([h,u&&u.toAbortSignal()],p),S=null,L=A&&A.unsubscribe&&(()=>{A.unsubscribe()});try{if(E&&"string"==typeof i&&i.startsWith("data:")&&function(t){if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let i=t.slice(5,n),r=t.slice(n+1);if(/;base64/i.test(i)){let t=r.length,n=r.length;for(let i=0;i<n;i++)if(37===r.charCodeAt(i)&&i+2<n){let n=r.charCodeAt(i+1),o=r.charCodeAt(i+2);(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(t-=2,i+=2)}let i=0,o=n-1,a=t=>t>=2&&37===r.charCodeAt(t-2)&&51===r.charCodeAt(t-1)&&(68===r.charCodeAt(t)||100===r.charCodeAt(t));o>=0&&(61===r.charCodeAt(o)?(i++,o--):a(o)&&(i++,o-=3)),1===i&&o>=0&&(61===r.charCodeAt(o)?i++:a(o)&&i++);let s=3*Math.floor(t/4)-(i||0);return s>0?s:0}if("u">typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let t=0,n=r.length;t<n;t++){let i=r.charCodeAt(t);if(i<128)o+=1;else if(i<2048)o+=2;else if(i>=55296&&i<=56319&&t+1<n){let n=r.charCodeAt(t+1);n>=56320&&n<=57343?(o+=4,t++):o+=3}else o+=3}return o}(i)>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S);if(C&&"get"!==r&&"head"!==r){let n=await v(x,c);if("number"==typeof n&&isFinite(n)&&n>F)throw new ic("Request body larger than maxBodyLength limit",ic.ERR_BAD_REQUEST,t,S)}if(_&&m&&"get"!==r&&"head"!==r&&0!==(n=await v(x,c))){let t,r=new s(i,{method:"POST",body:c,duplex:"half"});if(n6.isFormData(c)&&(t=r.headers.get("content-type"))&&x.setContentType(t),r.body){let[t,i]=iY(n,ij(iH(_)));c=i1(r.body,65536,t,i)}}n6.isString(w)||(w=w?"include":"omit");let a=d&&"credentials"in s.prototype;if(n6.isFormData(c)){let t=x.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&x.delete("content-type")}x.set("User-Agent","axios/1.16.1",!1);let h={...k,signal:A,method:r.toUpperCase(),headers:it(x.normalize()),body:c,duplex:"half",credentials:a?w:void 0};S=d&&new s(i,h);let u=await (d?T(S,k):T(i,h));if(E){let n=n6.toFiniteNumber(u.headers.get("content-length"));if(null!=n&&n>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S)}let p=f&&("stream"===y||"response"===y);if(f&&u.body&&(b||E||p&&L)){let n={};["status","statusText","headers"].forEach(t=>{n[t]=u[t]});let i=n6.toFiniteNumber(u.headers.get("content-length")),[r,o]=b&&iY(i,ij(iH(b),!0))||[];u=new l(i1(u.body,65536,n=>{if(E&&n>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S);r&&r(n)},()=>{o&&o(),L&&L()}),n)}y=y||"text";let D=await g[n6.findKey(g,y)||"text"](u,t);if(E&&!f&&!p){let n;if(null!=D&&("number"==typeof D.byteLength?n=D.byteLength:"number"==typeof D.size?n=D.size:"string"==typeof D&&(n="function"==typeof o?new o().encode(D).byteLength:D.length)),"number"==typeof n&&n>M)throw new ic("maxContentLength size of "+M+" exceeded",ic.ERR_BAD_RESPONSE,t,S)}return!p&&L&&L(),await new Promise((n,i)=>{i$(n,i,{data:D,headers:is.from(u.headers),status:u.status,statusText:u.statusText,config:t,request:S})})}catch(n){if(L&&L(),A&&A.aborted&&A.reason instanceof ic){let i=A.reason;throw i.config=t,S&&(i.request=S),n!==i&&(i.cause=n),i}if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new ic("Network Error",ic.ERR_NETWORK,t,S,n&&n.response),{cause:n.cause||n});throw ic.from(n,n&&n.code,t,S,n&&n.response)}}},i4=new Map,i6=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=i4;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:i5(n)),d=c;return c};i6();let i8={http:null,xhr:iZ,fetch:{get:i6}};n6.forEach(i8,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});let i7=t=>`- ${t}`,i9=t=>n6.isFunction(t)||null===t||!1===t,re=function(t,n){let i,r,{length:o}=t=n6.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!i9(i)&&void 0===(r=i8[(o=String(i)).toLowerCase()]))throw new ic(`Unknown adapter '${o}'`);if(r&&(n6.isFunction(r)||(r=r.get(n))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new ic("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(i7).join("\n"):" "+i7(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iP(null,t)}function rn(t){return rt(t),t.headers=is.from(t.headers),t.data=iO.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),re(t.adapter||iz.adapter,t)(t).then(function(n){rt(t),t.response=n;try{n.data=iO.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=is.from(n.headers),n},function(n){if(!iR(n)&&(rt(t),n&&n.response)){t.response=n.response;try{n.response.data=iO.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=is.from(n.response.headers)}return Promise.reject(n)})}let ri={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{ri[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rr={};ri.transitional=function(t,n,i){function r(t,n){return"[Axios v1.16.1] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new ic(r(o," has been removed"+(n?" in "+n:"")),ic.ERR_DEPRECATED);return n&&!rr[o]&&(rr[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}},ri.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let ro=function(t,n,i){if("object"!=typeof t)throw new ic("options must be an object",ic.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new ic("option "+a+" must be "+i,ic.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ic("Unknown option "+a,ic.ERR_BAD_OPTION)}};class ra{constructor(t){this.defaults=t||{},this.interceptors={request:new ix,response:new ix}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=(()=>{if(!n.stack)return"";let t=n.stack.indexOf("\n");return -1===t?"":n.stack.slice(t+1)})();try{if(t.stack){if(i){let n=i.indexOf("\n"),r=-1===n?-1:i.indexOf("\n",n+1),o=-1===r?"":i.slice(r+1);String(t.stack).endsWith(o)||(t.stack+="\n"+i)}}else t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=iG(this.defaults,n);void 0!==o&&ro(o,{silentJSONParsing:ri.transitional(ri.boolean),forcedJSONParsing:ri.transitional(ri.boolean),clarifyTimeoutError:ri.transitional(ri.boolean),legacyInterceptorReqResOrdering:ri.transitional(ri.boolean)},!1),null!=a&&(n6.isFunction(a)?n.paramsSerializer={serialize:a}:ro(a,{encode:ri.function,serialize:ri.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ro(n,{baseUrl:ri.spelling("baseURL"),withXsrfToken:ri.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&n6.merge(s.common,s[n.method]);s&&n6.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete s[t]}),n.headers=is.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(n))return;d=d&&t.synchronous;let i=n.transitional||iw;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let h=[];this.interceptors.response.forEach(function(t){h.push(t.fulfilled,t.rejected)});let u=0;if(!d){let t=[rn.bind(this),void 0];for(t.unshift(...c),t.push(...h),r=t.length,i=Promise.resolve(n);u<r;)i=i.then(t[u++],t[u++]);return i}r=c.length;let p=n;for(;u<r;){let t=c[u++],n=c[u++];try{p=t(p)}catch(t){n.call(this,t);break}}try{i=rn.call(this,p)}catch(t){return Promise.reject(t)}for(u=0,r=h.length;u<r;)i=i.then(h[u++],h[u++]);return i}getUri(t){return iy(iW((t=iG(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}n6.forEach(["delete","get","head","options"],function(t){ra.prototype[t]=function(n,i){return this.request(iG(i||{},{method:t,url:n,data:(i||{}).data}))}}),n6.forEach(["post","put","patch","query"],function(t){function n(n){return function(i,r,o){return this.request(iG(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}ra.prototype[t]=n(),"query"!==t&&(ra.prototype[t+"Form"]=n(!0))});class rs{constructor(t){let n;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){n=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n,r=new Promise(t=>{i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},t(function(t,r,o){i.reason||(i.reason=new iP(t,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new rs(function(n){t=n}),cancel:t}}}let rl={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rl).forEach(([t,n])=>{rl[n]=t});let rc=function t(n){let i=new ra(n),r=ny(ra.prototype.request,i);return n6.extend(r,ra.prototype,i,{allOwnKeys:!0}),n6.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iG(n,i))},r}(iz);rc.Axios=ra,rc.CanceledError=iP,rc.CancelToken=rs,rc.isCancel=iR,rc.VERSION="1.16.1",rc.toFormData=im,rc.AxiosError=ic,rc.Cancel=rc.CanceledError,rc.all=function(t){return Promise.all(t)},rc.spread=function(t){return function(n){return t.apply(null,n)}},rc.isAxiosError=function(t){return n6.isObject(t)&&!0===t.isAxiosError},rc.mergeConfig=iG,rc.AxiosHeaders=is,rc.formToJSON=t=>iD(n6.isHTMLForm(t)?new FormData(t):t),rc.getAdapter=re,rc.HttpStatusCode=rl,rc.default=rc;class rd{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rD`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rD`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rD`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rD`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rD`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rD`model/valueDescriptors`,queryParams:t,options:n})}}class rh{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rD`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rD`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rD`asset/datapoint/${t}/${n}`,data:i,options:r})}}class ru{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rD`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rD`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rD`flow/${t}`,options:n})}}class rp{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rD`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rD`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rD`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rD`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rD`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rD`gateway/status/${t}`,options:n})}}class rm{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rD`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rD`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rD`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rD`syslog/event`,queryParams:t,options:n})}}class rf{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rD`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rD`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rD`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rD`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rD`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rD`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rD`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rD`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rD`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rD`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rD`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rD`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rD`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rD`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rD`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rD`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`rules/${t}`,data:n,options:i})}}class rg{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rD`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rD`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rD`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rD`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rD`dashboard/${t}/${n}`,options:i})}}class rb{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rD`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rD`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rD`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rD`provisioning/${t}`,data:n,options:i})}}class rv{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rD`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rD`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rD`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rD`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rD`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rD`realm/${t}`,data:n,options:i})}}class r_{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rD`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rD`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rD`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rD`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rD`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rD`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rD`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rD`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rD`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rD`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rD`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rD`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rD`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rD`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rD`user/${t}/${n}`,options:i})}}class ry{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rD`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rD`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rD`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rD`configuration/manager/image/${t}`,options:n})}}class rx{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rD`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rD`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rD`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class rw{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rD`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rD`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rD`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rD`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rD`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rD`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rD`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rD`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rD`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rD`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rD`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rD`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rD`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rD`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rD`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rD`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`asset/${t}/attribute/${n}`,data:i,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rD`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rD`asset/${t}/child`,queryParams:n,options:i})}}class rk{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rD`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rD`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rD`notification/alert`,data:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rD`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rD`notification/${t}/delivered`,queryParams:n,options:i})}}class rM{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rD`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rD`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rD`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rD`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rD`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rF{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rD`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rD`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rD`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rD`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rD`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rD`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rD`service/${t}/${n}`,options:i})}}class rE{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rD`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rD`asset/predicted/${t}/${n}`,data:i,options:r})}}class rC{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rD`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rD`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rD`apps/info`,options:t})}}class rT{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rD`console/register`,data:t,options:n})}}class rA{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rD`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rD`info`,options:t})}}class rS{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rD`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rD`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rD`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rD`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rD`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rD`map/upload`,queryParams:t,options:n})}}class rL{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rD`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rD`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rD`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rD`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rD`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rD`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rD`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rD`alarm/${t}/assets`,queryParams:n,options:i})}}function rD(t,...n){let i="";for(let r=0;r<n.length;r++)i+=t[r],i+=encodeURIComponent(n[r]);return i+t[t.length-1]}class rI{constructor(t,n=rc.create()){this._assetModelResource=new rO(t,n),this._assetDatapointResource=new rR(t,n),this._flowResource=new rP(t,n),this._gatewayClientResource=new r$(t,n),this._syslogResource=new rB(t,n),this._rulesResource=new rN(t,n),this._dashboardResource=new rj(t,n),this._provisioningResource=new rY(t,n),this._realmResource=new rH(t,n),this._userResource=new rV(t,n),this._configurationResource=new rU(t,n),this._agentResource=new rW(t,n),this._assetResource=new rq(t,n),this._notificationResource=new rG(t,n),this._gatewayServiceResource=new rK(t,n),this._externalServiceResource=new rX(t,n),this._assetPredictedDatapointResource=new rZ(t,n),this._appResource=new rJ(t,n),this._consoleResource=new rQ(t,n),this._statusResource=new r0(t,n),this._mapResource=new r1(t,n),this._alarmResource=new r2(t,n),this._assetResource=new rq(t,n)}get AssetModelResource(){return this._assetModelResource}get AssetDatapointResource(){return this._assetDatapointResource}get FlowResource(){return this._flowResource}get GatewayClientResource(){return this._gatewayClientResource}get SyslogResource(){return this._syslogResource}get RulesResource(){return this._rulesResource}get DashboardResource(){return this._dashboardResource}get ProvisioningResource(){return this._provisioningResource}get RealmResource(){return this._realmResource}get UserResource(){return this._userResource}get ConfigurationResource(){return this._configurationResource}get AgentResource(){return this._agentResource}get AssetResource(){return this._assetResource}get NotificationResource(){return this._notificationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AppResource(){return this._appResource}get ConsoleResource(){return this._consoleResource}get StatusResource(){return this._statusResource}get MapResource(){return this._mapResource}get AlarmResource(){return this._alarmResource}}class rz{constructor(t){this.axios=t}request(t){let n={};n.method=t.method,n.url=t.url,n.params=t.queryParams,n.data=t.data,function(t,n){if(void 0!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}(n,t.options);let i=t.copyFn;return this.axios.request(n).then(t=>(i&&t.data&&(t.originalData=t.data,t.data=i(t.data)),t))}}class rO extends rd{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rR extends rh{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rP extends ru{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r$ extends rp{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rB extends rm{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rN extends rf{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rj extends rg{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rY extends rb{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rH extends rv{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rV extends r_{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rU extends ry{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rW extends rx{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rq extends rw{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rG extends rk{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rK extends rM{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rX extends rF{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rZ extends rE{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rJ extends rC{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class rQ extends rT{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r0 extends rA{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r1 extends rS{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}class r2 extends rL{constructor(t,n=rc.create()){n.defaults.baseURL=t,super(new rz(n))}}rc.isAxiosError;let r3=new class{get api(){return this._client}constructor(){this._axiosInstance=rc.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>nn().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rI(t,this._axiosInstance)}};var r5=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};(uV=pQ||(pQ={})).DISCONNECTED="DISCONNECTED",uV.CONNECTED="CONNECTED",uV.CONNECTING="CONNECTING";let r4="SUBSCRIBED:",r6="UNAUTHORIZED:",r8="TRIGGERED:",r7="EVENT:";class r9{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oe.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=pQ.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(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===pQ.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(pQ.CONNECTING),this._connectingDeferred=new no,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oe.MIN_RECONNECT_DELAY,this._onStatusChanged(pQ.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),n.resolve(t)}}).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!==pQ.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new no};return null!=this._pendingSubscription||this._status!==pQ.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return r5(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)){if(this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}return}})}sendEvent(t){this._status===pQ.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==pQ.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return r5(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+r9._subscriptionCounter++;if(!this._assetEventPromise){let t;oY.authenticated||(t={filterType:"asset",realm:oY.displayRealm});let n={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(n,t=>{this._assetEventCallbackMap.forEach(n=>n(t))})}return this._assetEventCallbackMap.set(o,t=>{let n=t.asset.id;r?r.find(t=>n===t)&&i(t):t.asset.realm===oY.displayRealm&&i(t)}),this._assetEventPromise.then(()=>{try{if(r&&n){let t={messageID:"read-assets:"+r.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(t).then(t=>{t.assets&&this._assetEventCallbackMap.has(o)&&t.assets.forEach(t=>{i({eventType:"asset",asset:t,cause:"READ"})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),n}return o})})}subscribeAttributeEvents(t,n,i){return r5(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+r9._subscriptionCounter++;if(!this._attributeEventPromise){let t;oY.authenticated||(t={filterType:"asset",realm:oY.displayRealm});let n={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(n,t=>{this._attributeEventCallbackMap.forEach(n=>n(t))})}let l=n=>{let a=n.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&i(n)}):o?o.find(t=>a.id===t)&&i(n):n.realm===oY.displayRealm&&i(n)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(n&&o){let t={messageID:"read-assets:"+o.join(",")+":"+s,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(t).then(t=>{t.assets&&this._attributeEventCallbackMap.has(s)&&t.assets.forEach(t=>{t.attributes&&Object.entries(t.attributes).forEach(([n,i])=>{(!a||a.find(i=>i.id===t.id&&i.name===n))&&l({eventType:"attribute",timestamp:i.timestamp,value:i.value,ref:{id:t.id,name:n}})})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),n}return s})})}_processNextSubscription(){this._status===pQ.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(n=>{let i=t.deferred;t.deferred=null,i&&i.resolve(n)},n=>{let i=t.deferred;t.deferred=null,i&&i.reject(n)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(n=>n(t))},0))}_onMessageReceived(t,n){let i=this._subscriptionMap.get(t);i&&i.callback(n)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let t in this._subscriptionMap)this._subscriptionMap.has(t)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(t));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===pQ.CONNECTED&&this._onStatusChanged(pQ.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(pQ.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<oe.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oe.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}r9.MIN_RECONNECT_DELAY=0,r9.MAX_RECONNECT_DELAY=3e4,r9._subscriptionCounter=0;class oe extends r9{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+oY.config.realm;return this._connectDeferred=new no,(oY.authenticated?oY.retrieveAuthorizationHeader().then(n=>{t+="&Authorization="+n}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.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 t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(r4)){let t=JSON.parse(n.substring(r4.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(r6)){let t=JSON.parse(n.substring(r6.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),i.reject("Unauthorized"))}else if(n.startsWith(r8)){let t=JSON.parse(n.substring(r8.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(r7)){let t=JSON.parse(n.substring(r7.length));if(t.messageID){let n=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),n&&n.resolve(t)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var t;null==(t=this._webSocket)||t.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(t){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new no,t.subscriptionId||(t.subscriptionId=oe._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let n=r7+JSON.stringify(t);this._webSocket.send(n)}_doSendWithReply(t){if(t.messageID||(t.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(t.messageID))return Promise.reject("There's already a pending send and reply with this ID");let n=new no;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(r7+JSON.stringify(t)),n.promise}}function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}oe._subscriptionCounter=1;var on=[],oi=on.forEach,or=on.slice;function oo(t){return oi.call(or.call(arguments,1),function(n){if(n)for(var i in n)void 0===t[i]&&(t[i]=n[i])}),t}function oa(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":ot(XMLHttpRequest))==="object"}var os=o(54550),ol=o.t(os,2);function oc(t){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&(p0="u">typeof global&&global.fetch?global.fetch:"u">typeof window&&window.fetch?window.fetch:fetch),oa()&&("u">typeof global&&global.XMLHttpRequest?p1=global.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(p1=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("u">typeof global&&global.ActiveXObject?p2=global.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(p2=window.ActiveXObject)),p0||!ol||p1||p2||(p0=os||ol),"function"!=typeof p0&&(p0=void 0);var od=function(t,n){if(n&&"object"===oc(n)){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oh=function(t,n,i){p0(t,n).then(function(t){if(!t.ok)return i(t.statusText||"Error",{status:t.status});t.text().then(function(n){i(null,{status:t.status,data:n})}).catch(i)}).catch(i)},ou=!1,op=function(t,n,i,r){t.queryStringParams&&(n=od(n,t.queryStringParams));var o=oo({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);i&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,s=oo({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:o},ou?{}:a);try{oh(n,s,r)}catch(t){if(!a||0===Object.keys(a).length||!t.message||0>t.message.indexOf("not implemented"))return r(t);try{Object.keys(a).forEach(function(t){delete s[t]}),oh(n,s,r),ou=!0}catch(t){r(t)}}},om=function(t,n,i,r){i&&"object"===oc(i)&&(i=od("",i).slice(1)),t.queryStringParams&&(n=od(n,t.queryStringParams));try{(o=p1?new p1:new p2("MSXML2.XMLHTTP.3.0")).open(i?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=t.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(t){console&&console.log(t)}};let of=function(t,n,i,r){return("function"==typeof i&&(r=i,i=void 0),r=r||function(){},p0)?op(t,n,i,r):oa()||"function"==typeof ActiveXObject?om(t,n,i,r):void r(Error("No fetch and no xhr implementation found!"))};var og=function(){var t;function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.services=t,this.options=i,this.allOptions=r,this.type="backend",this.init(t,i,r)}return t=[{key:"init",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=oo(i,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){var r,o;return r={},o=i||"",n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},request:of,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,r,o){var a,s,l=this,c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(t,i)),(c=(s=a=c)&&"function"==typeof s.then?a:Promise.resolve(a)).then(function(a){if(!a)return o(null,{});var s=l.services.interpolator.interpolate(a,{lng:t.join("+"),ns:i.join("+")});l.loadUrl(s,o,n,r)})}},{key:"loadUrl",value:function(t,n,i,r){var o=this;this.options.request(this.options,t,void 0,function(a,s){var l,c;if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);try{l="string"==typeof s.data?o.options.parse(s.data,i,r):s.data}catch(n){c="failed parsing "+t+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(t,n,i,r,o){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var s=this.options.parsePayload(n,i,r),l=0,c=[],d=[];t.forEach(function(i){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(i,n));var h=a.services.interpolator.interpolate(r,{lng:i,ns:n});a.options.request(a.options,h,s,function(n,i){l+=1,c.push(n),d.push(i),l===t.length&&o&&o(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,r=n.languageUtils,o=n.logger,a=i.language;if(!a||"cimode"!==a.toLowerCase()){var s=[],l=function(t){r.toResolveHierarchy(t).forEach(function(t){0>s.indexOf(t)&&s.push(t)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(t){return l(t)}),s.forEach(function(n){t.allOptions.ns.forEach(function(t){i.read(n,t,"read",null,null,function(r,a){r&&o.warn("loading namespace ".concat(t," for language ").concat(n," failed"),r),!r&&a&&o.log("loaded namespace ".concat(t," for language ").concat(n),a),i.loaded("".concat(n,"|").concat(t),r,a)})})})}}}],function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();og.type="backend";class ob extends eG{constructor(t){if(super(t),this.it=ex,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ex||null==t)return this._t=void 0,this.it=t;if(t===ey)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}ob.directiveName="unsafeHTML",ob.resultType=1,eq(ob);class ov extends ob{}ov.directiveName="unsafeSVG",ov.resultType=2;let o_=eq(ov),oy={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-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"/>'};var ox=function(t,n,i,r){var o,a=arguments.length,s=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s};class ow extends CustomEvent{constructor(){super(ow.NAME,{bubbles:!0,composed:!0})}}ow.NAME="or-iconset-added";let ok=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new ow)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return ev``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):ev``}},oM=class extends e${constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[z`
|
|
71
71
|
:host {
|
|
72
72
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
73
73
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|