@openremote/or-rules 1.32.0-snapshot.20261012115031 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/umd/index.bundle.js +1 -1
- package/package.json +17 -17
|
@@ -829,7 +829,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
|
|
|
829
829
|
font-weight: 600;
|
|
830
830
|
line-height: 125.303%;
|
|
831
831
|
}
|
|
832
|
-
`;class eU extends ez{static finalizeStyles(t){return[eY,...super.finalizeStyles(t)]}}let eH=t=>(i,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,i)}):customElements.define(t,i)},eV={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:X};function eW(t){return(i,n)=>{let r;return"object"==typeof n?((t=eV,i,n)=>{let{kind:r,metadata:o}=n,a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),a.set(n.name,t),"accessor"===r){let{name:r}=n;return{set(n){let o=i.get.call(this);i.set.call(this,n),this.requestUpdate(r,o,t)},init(i){return void 0!==i&&this.C(r,void 0,t,i),i}}}if("setter"===r){let{name:r}=n;return function(n){let o=this[r];i.call(this,n),this.requestUpdate(r,o,t)}}throw Error("Unsupported decorator location: "+r)})(t,i,n):(r=i.hasOwnProperty(n),i.constructor.createProperty(n,t),r?Object.getOwnPropertyDescriptor(i,n):void 0)}}function eq(t){return eW({...t,state:!0,attribute:!1})}let eG=(t,i,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof i&&Object.defineProperty(t,i,n),n);function eK(t,i){return(n,r,o)=>{let a=i=>i.renderRoot?.querySelector(t)??null;if(i){let t,{get:i,set:s}="object"==typeof r?n:o??(t=Symbol(),{get(){return this[t]},set(i){this[t]=i}});return eG(n,r,{get(){let t=i.call(this);return void 0===t&&(null!==(t=a(this))||this.hasUpdated)&&s.call(this,t),t}})}return eG(n,r,{get(){return a(this)}})}}function eX(i){return(n,r)=>eG(n,r,{get(){return(this.renderRoot??(t??=document.createDocumentFragment())).querySelectorAll(i)}})}function eZ(t){return(i,n)=>{let{slot:r,selector:o}=t??{},a="slot"+(r?`[name=${r}]`:":not([name])");return eG(i,n,{get(){let i=this.renderRoot?.querySelector(a),n=i?.assignedElements(t)??[];return void 0===o?n:n.filter(t=>t.matches(o))}})}}n(44532),(m6=go||(go={})).CREATE="CREATE",m6.UPDATE="UPDATE",m6.DELETE="DELETE",m6.DELETE_FINISHED="DELETE_FINISHED",(m8=ga||(ga={})).LOW="LOW",m8.MEDIUM="MEDIUM",m8.HIGH="HIGH",(m7=gs||(gs={})).MANUAL="MANUAL",m7.CLIENT="CLIENT",m7.GLOBAL_RULESET="GLOBAL_RULESET",m7.REALM_RULESET="REALM_RULESET",m7.ASSET_RULESET="ASSET_RULESET",m7.AGENT="AGENT",(m9=gl||(gl={})).OPEN="OPEN",m9.ACKNOWLEDGED="ACKNOWLEDGED",m9.IN_PROGRESS="IN_PROGRESS",m9.RESOLVED="RESOLVED",m9.CLOSED="CLOSED",(fe=gc||(gc={})).BOTTOM_LEFT="BOTTOM_LEFT",fe.BOTTOM_RIGHT="BOTTOM_RIGHT",fe.TOP_LEFT="TOP_LEFT",fe.TOP_RIGHT="TOP_RIGHT",(ft=gd||(gd={})).CREATE="CREATE",ft.READ="READ",ft.UPDATE="UPDATE",ft.DELETE="DELETE",(fi=gu||(gu={})).NONE="NONE",fi.FORECAST="FORECAST",fi.SETPOINT="SETPOINT",(fn=gh||(gh={})).DISCONNECTED="DISCONNECTED",fn.CONNECTING="CONNECTING",fn.DISCONNECTING="DISCONNECTING",fn.CONNECTED="CONNECTED",fn.DISABLED="DISABLED",fn.WAITING="WAITING",fn.ERROR="ERROR",fn.STOPPED="STOPPED",(fr=gp||(gp={})).REQUEST_START="REQUEST_START",fr.REQUEST_REPEATING="REQUEST_REPEATING",fr.REQUEST_CANCEL="REQUEST_CANCEL",fr.READY="READY",fr.COMPLETED="COMPLETED",fr.RUNNING="RUNNING",fr.CANCELLED="CANCELLED",(fo=gm||(gm={})).TOGGLE="TOGGLE",fo.INCREMENT="INCREMENT",fo.DECREMENT="DECREMENT",fo.NEGATE="NEGATE",(fa=gf||(gf={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",fa.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",fa.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",fa.INVALID_VALUE="INVALID_VALUE",fa.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",fa.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",fa.CANNOT_PROCESS="CANNOT_PROCESS",fa.QUEUE_FULL="QUEUE_FULL",fa.UNKNOWN="UNKNOWN",fa.ASSET_ID_MISSING="ASSET_ID_MISSING",fa.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(fs=gg||(gg={})).PUBLIC="PUBLIC",fs.SHARED="SHARED",fs.PRIVATE="PRIVATE",(fl=gb||(gb={})).OFF="OFF",fl.ONE_MIN="ONE_MIN",fl.FIVE_MIN="FIVE_MIN",fl.QUARTER="QUARTER",fl.ONE_HOUR="ONE_HOUR",(fc=g_||(g_={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",fc.KEEP_LAYOUT="KEEP_LAYOUT",fc.REDIRECT="REDIRECT",fc.BLOCK_DEVICE="BLOCK_DEVICE",(fd=gy||(gy={})).CSV="CSV",fd.CSV_CROSSTAB="CSV_CROSSTAB",fd.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(fu=gv||(gv={})).MINUTE="MINUTE",fu.HOUR="HOUR",fu.DAY="DAY",fu.WEEK="WEEK",fu.MONTH="MONTH",fu.YEAR="YEAR",(fh=gx||(gx={})).MIN="MIN",fh.AVG="AVG",fh.MAX="MAX",fh.DIFFERENCE="DIFFERENCE",fh.COUNT="COUNT",fh.SUM="SUM",fh.MODE="MODE",fh.MEDIAN="MEDIAN",(fp=gw||(gw={})).TERMINATING="TERMINATING",fp.DISABLED="DISABLED",fp.ALREADY_CONNECTED="ALREADY_CONNECTED",fp.UNRECOGNISED="UNRECOGNISED",fp.PERMANENT_ERROR="PERMANENT_ERROR",fp.SYNC_ERROR="SYNC_ERROR",(fm=gk||(gk={})).HTTPS="HTTPS",fm.HTTP="HTTP",fm.TCP="TCP",(ff=gE||(gE={})).GET="GET",ff.POST="POST",ff.PUT="PUT",ff.DELETE="DELETE",ff.OPTIONS="OPTIONS",ff.PATCH="PATCH",(fg=gF||(gF={})).KEYCLOAK="KEYCLOAK",fg.NONE="NONE",(fb=gC||(gC={})).WEBSOCKET="WEBSOCKET",fb.POLLING="POLLING",(f_=gT||(gT={})).INTERNAL="INTERNAL",f_.CLIENT="CLIENT",f_.GLOBAL_RULESET="GLOBAL_RULESET",f_.REALM_RULESET="REALM_RULESET",f_.ASSET_RULESET="ASSET_RULESET",(fy=gA||(gA={})).REALM="REALM",fy.USER="USER",fy.ASSET="ASSET",fy.CUSTOM="CUSTOM",(fv=gS||(gS={})).NORMAL="NORMAL",fv.HIGH="HIGH",(fx=gM||(gM={})).DEVICE="DEVICE",fx.TOPIC="TOPIC",fx.CONDITION="CONDITION",(fw=gD||(gD={})).ALWAYS="ALWAYS",fw.ONCE="ONCE",fw.HOURLY="HOURLY",fw.DAILY="DAILY",fw.WEEKLY="WEEKLY",fw.MONTHLY="MONTHLY",fw.ANNUALLY="ANNUALLY",(fk=gL||(gL={})).TITLE="TITLE",fk.SOURCE="SOURCE",fk.STATUS="STATUS",fk.SENT_ON="SENT_ON",fk.DELIVERED_ON="DELIVERED_ON",(fE=gI||(gI={})).MESSAGE_INVALID="MESSAGE_INVALID",fE.CERTIFICATE_INVALID="CERTIFICATE_INVALID",fE.UNAUTHORIZED="UNAUTHORIZED",fE.FORBIDDEN="FORBIDDEN",fE.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",fE.CONFIG_DISABLED="CONFIG_DISABLED",fE.USER_DISABLED="USER_DISABLED",fE.SERVER_ERROR="SERVER_ERROR",fE.ASSET_ERROR="ASSET_ERROR",fE.SERVER_BUSY="SERVER_BUSY",(fF=gO||(gO={})).PRIVATE="PRIVATE",fF.PROTECTED="PROTECTED",fF.PUBLIC="PUBLIC",(fC=gR||(gR={})).EXACT="EXACT",fC.BEGIN="BEGIN",fC.END="END",fC.CONTAINS="CONTAINS",(fT=gP||(gP={})).EQUALS="EQUALS",fT.GREATER_THAN="GREATER_THAN",fT.GREATER_EQUALS="GREATER_EQUALS",fT.LESS_THAN="LESS_THAN",fT.LESS_EQUALS="LESS_EQUALS",fT.BETWEEN="BETWEEN",(fA=g$||(g$={})).CREATED_ON="CREATED_ON",fA.NAME="NAME",fA.ASSET_TYPE="ASSET_TYPE",fA.PARENT_ID="PARENT_ID",fA.REALM="REALM",(fS=gN||(gN={})).RESTRICTED="RESTRICTED",fS.LINKED="LINKED",fS.REALM="REALM",(fM=gB||(gB={})).AT_LEAST_ONE="AT_LEAST_ONE",fM.ALL="ALL",fM.NONE="NONE",(fD=gz||(gz={})).AND="AND",fD.OR="OR",(fL=gj||(gj={})).CREATED_ON="CREATED_ON",fL.FIRST_NAME="FIRST_NAME",fL.LAST_NAME="LAST_NAME",fL.USERNAME="USERNAME",fL.EMAIL="EMAIL",(fI=gY||(gY={})).STOPPED="STOPPED",fI.RUNNING="RUNNING",fI.ERROR="ERROR",(fO=gU||(gU={})).JAVASCRIPT="JAVASCRIPT",fO.GROOVY="GROOVY",fO.JSON="JSON",fO.FLOW="FLOW",(fR=gH||(gH={})).READY="READY",fR.DEPLOYED="DEPLOYED",fR.COMPILATION_ERROR="COMPILATION_ERROR",fR.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",fR.EXECUTION_ERROR="EXECUTION_ERROR",fR.LOOP_ERROR="LOOP_ERROR",fR.DISABLED="DISABLED",fR.PAUSED="PAUSED",fR.EXPIRED="EXPIRED",fR.REMOVED="REMOVED",fR.EMPTY="EMPTY",(fP=gV||(gV={})).SUNRISE="SUNRISE",fP.SUNSET="SUNSET",fP.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",fP.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",fP.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",fP.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",fP.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",fP.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",fP.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",fP.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",fP.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",fP.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",fP.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",fP.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",fP.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",fP.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",fP.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",fP.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",fP.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",fP.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(f$=gW||(gW={})).NUMBER="NUMBER",f$.NUMBER_ARRAY="NUMBER_ARRAY",f$.STRING="STRING",f$.BOOLEAN="BOOLEAN",f$.TRIGGER="TRIGGER",f$.COLOR="COLOR",f$.ANY="ANY",(fN=gq||(gq={})).NEW_LINE="NEW_LINE",fN.SPACER="SPACER",(fB=gG||(gG={})).INPUT="INPUT",fB.PROCESSOR="PROCESSOR",fB.OUTPUT="OUTPUT",fB.THEN="THEN",(fz=gK||(gK={})).TEXT="TEXT",fz.MULTILINE="MULTILINE",fz.NUMBER="NUMBER",fz.DROPDOWN="DROPDOWN",fz.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",fz.CHECKBOX="CHECKBOX",fz.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",fz.COLOR="COLOR",fz.DATE="DATE",(fj=gX||(gX={})).ADD="ADD",fj.ADD_OR_REPLACE="ADD_OR_REPLACE",fj.REPLACE="REPLACE",fj.DELETE="DELETE",fj.CLEAR="CLEAR",(fY=gZ||(gZ={})).PER_ASSET="PER_ASSET",fY.GLOBAL="GLOBAL",(fU=gJ||(gJ={})).READ_ADMIN="read:admin",fU.READ_LOGS="read:logs",fU.READ_USERS="read:users",fU.READ_MAP="read:map",fU.READ_ASSETS="read:assets",fU.READ_RULES="read:rules",fU.READ_INSIGHTS="read:insights",fU.READ_ALARMS="read:alarms",fU.READ_NOTIFICATIONS="read:notifications",fU.READ_SERVICES="read:services",fU.READ_TUNNELS="read:tunnels",fU.WRITE_SERVICES="write:services",fU.WRITE_USER="write:user",fU.WRITE_ADMIN="write:admin",fU.WRITE_LOGS="write:logs",fU.WRITE_ASSETS="write:assets",fU.WRITE_ATTRIBUTES="write:attributes",fU.WRITE_RULES="write:rules",fU.WRITE_INSIGHTS="write:insights",fU.WRITE_ALARMS="write:alarms",fU.WRITE_NOTIFICATIONS="write:notifications",fU.WRITE_TUNNELS="write:tunnels",fU.READ="read",fU.WRITE="write",(fH=gQ||(gQ={})).REGISTER="REGISTER",fH.UPDATE="UPDATE",fH.DEREGISTER="DEREGISTER",(fV=g0||(g0={})).AVAILABLE="AVAILABLE",fV.UNAVAILABLE="UNAVAILABLE",(fW=g1||(g1={})).ASSET="ASSET",fW.AGENT="AGENT",fW.NOTIFICATION="NOTIFICATION",fW.ALARM="ALARM",fW.RULES="RULES",fW.PROTOCOL="PROTOCOL",fW.GATEWAY="GATEWAY",fW.MODEL_AND_VALUES="MODEL_AND_VALUES",fW.API="API",fW.DATA="DATA",(fq=g2||(g2={})).INFO="INFO",fq.WARN="WARN",fq.ERROR="ERROR",(fG=g3||(g3={})).NUMERIC="numeric",fG.DIGIT_2="2-digit",fG.FULL="full",fG.LONG="long",fG.MEDIUM="medium",fG.SHORT="short",fG.NARROW="narrow",(fK=g5||(g5={})).SECONDLY="SECONDLY",fK.MINUTELY="MINUTELY",fK.HOURLY="HOURLY",fK.DAILY="DAILY",fK.WEEKLY="WEEKLY",fK.MONTHLY="MONTHLY",fK.YEARLY="YEARLY",(fX=g4||(g4={})).OMIT="OMIT",fX.BACKWARD="BACKWARD",fX.FORWARD="FORWARD",(fZ=g6||(g6={})).JAPANESE="JAPANESE",fZ.BUDDHIST="BUDDHIST",fZ.ROC="ROC",fZ.ISLAMIC="ISLAMIC",fZ.ISO8601="ISO8601",fZ.CHINESE="CHINESE",fZ.ETHIOPIC="ETHIOPIC",fZ.HEBREW="HEBREW",fZ.GREGORIAN="GREGORIAN",(fJ=g8||(g8={})).SU="SU",fJ.MO="MO",fJ.TU="TU",fJ.WE="WE",fJ.TH="TH",fJ.FR="FR",fJ.SA="SA",(fQ=g7||(g7={})).PEOPLECOUNTERASSET="PeopleCounterAsset",fQ.MAILAGENT="MailAgent",fQ.UDPAGENT="UDPAgent",fQ.ROOMASSET="RoomAsset",fQ.CITYASSET="CityAsset",fQ.VENTILATIONASSET="VentilationAsset",fQ.TRADFRILIGHTASSET="TradfriLightAsset",fQ.CONSOLEASSET="ConsoleAsset",fQ.PRESENCESENSORASSET="PresenceSensorAsset",fQ.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",fQ.LIGHTASSET="LightAsset",fQ.KNXAGENT="KNXAgent",fQ.THETHINGSSTACKAGENT="TheThingsStackAgent",fQ.PLUGASSET="PlugAsset",fQ.CHIRPSTACKAGENT="ChirpStackAgent",fQ.WEATHERASSET="WeatherAsset",fQ.THINGASSET="ThingAsset",fQ.WEBSOCKETAGENT="WebsocketAgent",fQ.TCPAGENT="TCPAgent",fQ.GATEWAYASSET="GatewayAsset",fQ.SERIALAGENT="SerialAgent",fQ.BLUETOOTHMESHAGENT="BluetoothMeshAgent",fQ.PARKINGASSET="ParkingAsset",fQ.TRADFRIPLUGASSET="TradfriPlugAsset",fQ.SIMULATORAGENT="SimulatorAgent",fQ.SNMPAGENT="SNMPAgent",fQ.GROUPASSET="GroupAsset",fQ.BUILDINGASSET="BuildingAsset",fQ.MODBUSSERIALAGENT="ModbusSerialAgent",fQ.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",fQ.MQTTAGENT="MQTTAgent",fQ.VELBUSTCPAGENT="VelbusTCPAgent",fQ.ARTNETLIGHTASSET="ArtnetLightAsset",fQ.VELBUSSERIALAGENT="VelbusSerialAgent",fQ.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",fQ.MICROPHONEASSET="MicrophoneAsset",fQ.MODBUSTCPAGENT="ModbusTcpAgent",fQ.ZWAVEAGENT="ZWaveAgent",fQ.HTTPAGENT="HTTPAgent",fQ.DOORASSET="DoorAsset",fQ.THERMOSTATASSET="ThermostatAsset",fQ.SHIPASSET="ShipAsset",(f0=g9||(g9={})).COLOURRGB="colourRGB",f0.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",f0.PRICEHOURLY="priceHourly",f0.MQTTPORT="MQTTPort",f0.PINGDISABLED="pingDisabled",f0.FLOW="flow",f0.CHILDASSETTYPE="childAssetType",f0.LASTACCESS="lastAccess",f0.POSITION="position",f0.NETWORKKEY="networkKey",f0.UNIVERSE="universe",f0.ROUTINGMODE="routingMode",f0.MSSINUMBER="MSSINumber",f0.LASTWILLRETAIN="lastWillRetain",f0.LASTWILLTOPIC="lastWillTopic",f0.SERIALBAUDRATE="serialBaudrate",f0.SUBSCRIBEQOS="subscribeQos",f0.LEDCOUNT="lEDCount",f0.LOCKED="locked",f0.CLOUDCOVERAGE="cloudCoverage",f0.BASEURL="baseURL",f0.PROTOCOL="protocol",f0.REQUIREDVALUES="requiredValues",f0.REGION="region",f0.CONSOLEPLATFORM="consolePlatform",f0.GATEWAYSTATUS="gatewayStatus",f0.NO2LEVEL="NO2Level",f0.ATMOSPHERICPRESSURE="atmosphericPressure",f0.SERIALPORT="serialPort",f0.APPLICATIONID="applicationId",f0.TAGS="tags",f0.UNLOCK="unlock",f0.CHECKINTERVALSECONDS="checkIntervalSeconds",f0.LOCATION="location",f0.CLIENTSECRET="clientSecret",f0.WINDDIRECTION="windDirection",f0.WINDSPEED="windSpeed",f0.PARTICLESPM10="particlesPM10",f0.APPLICATIONKEY="applicationKey",f0.LENGTH="length",f0.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",f0.USERNAMEPASSWORD="usernamePassword",f0.WATERLEVEL="waterLevel",f0.CONNECTHEADERS="connectHeaders",f0.CONSOLENAME="consoleName",f0.WEBSOCKETQUERY="websocketQuery",f0.PREFERHTML="preferHTML",f0.PARITY="parity",f0.COOLING="cooling",f0.POLLINGMILLIS="pollingMillis",f0.SOILTEMPERATURE="soilTemperature",f0.SUNIRRADIANCE="sunIrradiance",f0.MESSAGEMAXLENGTH="messageMaxLength",f0.WINDGUSTSPEED="windGustSpeed",f0.LIGHTID="lightId",f0.PROXYADDRESS="proxyAddress",f0.REQUESTQUERYPARAMETERS="requestQueryParameters",f0.MQTTHOST="MQTTHost",f0.SECUREGRPC="secureGRPC",f0.MODEL="model",f0.STREET="street",f0.MANUFACTURER="manufacturer",f0.DELETEPROCESSEDMAIL="deleteProcessedMail",f0.RESUMESESSION="resumeSession",f0.ONOFF="onOff",f0.APIKEY="ApiKey",f0.CITY="city",f0.PRESENCE="presence",f0.SPACESOCCUPIED="spacesOccupied",f0.STARTTLS="startTLS",f0.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",f0.WEBSOCKETPATH="websocketPath",f0.AGENTSTATUS="agentStatus",f0.PRICEDAILY="priceDaily",f0.COUNTGROWTHMINUTE="countGrowthMinute",f0.IMONUMBER="IMONumber",f0.ATTRIBUTION="Attribution",f0.TENANTID="tenantId",f0.REQUESTHEADERS="requestHeaders",f0.HOST="host",f0.COUNTOUTMINUTE="countOutMinute",f0.MESSAGECHARSET="messageCharset",f0.CERTIFICATEALIAS="certificateAlias",f0.EMAIL="email",f0.BINDPORT="bindPort",f0.CONSOLEVERSION="consoleVersion",f0.PARTICLESPM1="particlesPM1",f0.MTU="mtu",f0.SPEED="speed",f0.MESSAGESTRIPDELIMITER="messageStripDelimiter",f0.AREA="area",f0.COUNTRY="country",f0.SHIPTYPE="shipType",f0.CONNECTSUBSCRIPTIONS="connectSubscriptions",f0.RELATIVEHUMIDITY="relativeHumidity",f0.SOURCEADDRESS="sourceAddress",f0.RAINFALL="rainfall",f0.OAUTHGRANT="oAuthGrant",f0.OZONELEVEL="ozoneLevel",f0.SEQUENCENUMBER="sequenceNumber",f0.COUNTINMINUTE="countInMinute",f0.PORT="port",f0.SUNALTITUDE="sunAltitude",f0.COUNTOUT="countOut",f0.ROOMNUMBER="roomNumber",f0.TUNNELINGSUPPORTED="tunnelingSupported",f0.ENINUMBER="ENINumber",f0.PARTICLESPM2_5="particlesPM2_5",f0.AGENTDISABLED="agentDisabled",f0.DISABLED="disabled",f0.COUNTIN="countIn",f0.MESSAGESOURCEADDRESS="messageSourceAddress",f0.PROVISIONWEATHERASSET="ProvisionWeatherAsset",f0.TIMEINJECTIONINTERVAL="timeInjectionInterval",f0.TEMPERATURESETPOINT="temperatureSetpoint",f0.CONSOLEPROVIDERS="consoleProviders",f0.COUNTTOTAL="countTotal",f0.SPACESBUFFER="spacesBuffer",f0.DEVICECONFIG="deviceConfig",f0.SPACESTOTAL="spacesTotal",f0.BINDHOST="bindHost",f0.FANSPEED="fanSpeed",f0.MESSAGECONVERTBINARY="messageConvertBinary",f0.NOTES="notes",f0.MAILFOLDERNAME="mailFolderName",f0.MESSAGEDELIMITERS="messageDelimiters",f0.TEMPERATURE="temperature",f0.SUNZENITH="sunZenith",f0.SNMPVERSIONVALUE="SNMPVersionValue",f0.BRIGHTNESS="brightness",f0.POSTALCODE="postalCode",f0.SPACESOPEN="spacesOpen",f0.HUMIDITY="humidity",f0.SOUNDLEVEL="soundLevel",f0.SECUREMODE="secureMode",f0.DIRECTION="direction",f0.STOPBITS="stopbits",f0.UVINDEX="uVIndex",f0.CONNECTURL="connectURL",f0.CLIENTID="clientId",f0.NATMODE="NATMode",f0.UPDATEONWRITE="updateOnWrite",f0.LASTWILLPAYLOAD="lastWillPayload",f0.GROUPID="groupId",f0.FOLLOWREDIRECTS="followRedirects",f0.SUNAZIMUTH="sunAzimuth",f0.MESSAGECONVERTHEX="messageConvertHex",f0.WEBSOCKETMODE="websocketMode",f0.COLOURTEMPERATURE="colourTemperature",f0.PUBLISHQOS="publishQos",f0.DATABITS="dataBits",(f1=be||(be={})).FORMAT="format",f1.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",f1.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",f1.SECRET="secret",f1.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",f1.ATTRIBUTELINKS="attributeLinks",f1.RULERESETIMMEDIATE="ruleResetImmediate",f1.RULESTATE="ruleState",f1.AGENTLINKCONFIG="agentLinkConfig",f1.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",f1.FORECAST="forecast",f1.STOREDATAPOINTS="storeDataPoints",f1.LABEL="label",f1.CONSTRAINTS="constraints",f1.UNITS="units",f1.USERCONNECTED="userConnected",f1.SHOWONDASHBOARD="showOnDashboard",f1.READONLY="readOnly",f1.MULTILINE="multiline",f1.ACCESSPUBLICWRITE="accessPublicWrite",f1.MOMENTARY="momentary",f1.AGENTLINK="agentLink",f1.ACCESSRESTRICTEDREAD="accessRestrictedRead",f1.ACCESSPUBLICREAD="accessPublicRead",(f2=bt||(bt={})).ASSETQUERY="assetQuery",f2.WSURL="WS_URL",f2.COLOURRGB="colourRGB",f2.VALUEFORMAT="valueFormat",f2.TEXT="text",f2.BYTE="byte",f2.USERNAMEANDPASSWORD="usernameAndPassword",f2.HTTPURL="HTTP_URL",f2.ATTRIBUTELINK="attributeLink",f2.ASSETID="assetID",f2.NUMBERMAP="numberMap",f2.HTTPMETHOD="HTTPMethod",f2.ATTRIBUTESTATE="attributeState",f2.POSITIVENUMBER="positiveNumber",f2.POSITIVEINTEGER="positiveInteger",f2.EXECUTIONSTATUS="executionStatus",f2.BIGINTEGER="bigInteger",f2.VALUEDESCRIPTOR="valueDescriptor",f2.PERIODDURATIONISO8601="periodDurationISO8601",f2.LONG="long",f2.DATEANDTIME="dateAndTime",f2.BOOLEANMAP="booleanMap",f2.MQTTQOS="MQTTQos",f2.NEGATIVEINTEGER="negativeInteger",f2.TCPIPPORTNUMBER="TCP_IPPortNumber",f2.GEOJSONPOINT="GEO_JSONPoint",f2.SNMPVERSION="SNMPVersion",f2.ASSETTYPE="assetType",f2.JSONOBJECT="JSONObject",f2.INTEGERMAP="integerMap",f2.BIGNUMBER="bigNumber",f2.IPADDRESS="IPAddress",f2.EMAIL="email",f2.TIMESTAMP="timestamp",f2.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",f2.ATTRIBUTEREFERENCE="attributeReference",f2.UUID="UUID",f2.INTEGER="integer",f2.OAUTHGRANT="oAuthGrant",f2.NUMBER="number",f2.DEVICECONFIGMAP="DeviceConfigMap",f2.TEXTMAP="textMap",f2.WEBSOCKETSUBSCRIPTION="websocketSubscription",f2.BOOLEAN="boolean",f2.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",f2.FORECASTCONFIGURATION="forecastConfiguration",f2.TIMEDURATIONISO8601="timeDurationISO8601",f2.TIMESTAMPISO8601="timestampISO8601",f2.CONSOLEPROVIDERS="consoleProviders",f2.MULTIVALUEDTEXTMAP="multivaluedTextMap",f2.NEGATIVENUMBER="negativeNumber",f2.PARITYBIT="Paritybit",f2.JSON="JSON",f2.CRONEXPRESSION="CRONExpression",f2.INTEGERBYTE="integerByte",f2.AGENTLINK="agentLink",f2.DIRECTION="direction",f2.HOSTORIPADDRESS="hostOrIPAddress",f2.STOPBITS="Stopbits",f2.CALENDAREVENT="calendarEvent",f2.CONNECTIONSTATUS="connectionStatus",f2.VALUECONSTRAINT="valueConstraint",(f3=bi||(bi={})).MONTH="month",f3.MILE_SCANDINAVIAN="mile_scandinavian",f3.VAR="var",f3.OUNCE="ounce",f3.HECTARE="hectare",f3.YARD="yard",f3.YEAR="year",f3.GIGA="giga",f3.JOULE="joule",f3.VOLT="volt",f3.HERTZ="hertz",f3.MILE="mile",f3.DEGREE="degree",f3.KILO="kilo",f3.BTU="btu",f3.TERA="tera",f3.FOOT="foot",f3.MEGA="mega",f3.KELVIN="kelvin",f3.CARBON="carbon",f3.DECIBEL_ATTENUATED="decibel_attenuated",f3.INCH="inch",f3.SQUARED="squared",f3.PERCENTAGE="percentage",f3.IN_HG="inch_mercury",f3.CENTI="centi",f3.GRAM="gram",f3.CUBED="cubed",f3.DAY="day",f3.RADIAN="radian",f3.OHM="ohm",f3.MINUTE="minute",f3.PART_PER_MILLION="ppm",f3.AMP="amp",f3.MASS_POUND="pound",f3.KNOT="knot",f3.METRE="metre",f3.LITRE="litre",f3.FLUID_OUNCE="fluid_ounce",f3.HOUR="hour",f3.ACRE="acre",f3.CELSIUS="celsius",f3.RPM="rpm",f3.PASCAL="pascal",f3.DECIBEL="decibel",f3.LUMEN="lumen",f3.WEEK="week",f3.FAHRENHEIT="fahrenheit",f3.WATT="watt",f3.GALLON="gallon",f3.LUX="lux",f3.MILLI="milli",f3.BAR="bar",f3.HECTO="hecto",f3.PEAK="peak",f3.SECOND="second",f3.MICRO="micro",f3.PER="per",f3.STONE="stone",bn||(bn={});class eJ{static getAssetDescriptors(){return eJ._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(i=>i.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let i=this._assetTypeInfos.find(i=>i.assetDescriptor.name===t);return i?i.assetDescriptor:void 0}static getAttributeDescriptor(t,i){if(!t)return;let n=this.getAssetTypeInfo(i||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(i=>i.name===t)}static getValueDescriptor(t){let i;if(!t)return;if(t.endsWith("[]"))for(i=0;t.endsWith("[]");)t=t.substring(0,t.length-2),i++;let n=this._valueDescriptors.find(i=>i.name===t);return n&&i&&(n=Object.assign(Object.assign({},n),{arrayDimensions:i})),n}static resolveValueDescriptor(t,i){let n;return i&&("string"==typeof i&&(n=eJ.getValueDescriptor(i)),n=i.jsonType?i:eJ.getValueDescriptor(i.type)),!n&&t&&(n=eJ.getValueDescriptor("JSON")),n}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 i=1,n=t.find(t=>null!=t);for(;Array.isArray(n);)n=n.find(t=>null!=t),i++;let r=this.resolveValueTypeFromValue(n);if(!r)return;for(;i>0;)r+="[]",i--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,i,n){let r,o;if(i&&"string"!=typeof i)r=i;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof i&&(r=this.getAttributeDescriptor(i,o)),!r&&n&&(r={type:n.type,name:n.name,meta:n.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(i=>i.name===t)}static getAssetDescriptorColour(t,i){let n=this.getAssetDescriptor(t);return n&&n.colour?n.colour:i}static getAssetDescriptorIcon(t,i){let n=this.getAssetDescriptor(t);return n&&n.icon?n.icon:i}}eJ._assetTypeInfos=[],eJ._metaItemDescriptors=[],eJ._valueDescriptors=[];let eQ=t=>"string"==typeof t,e0=()=>{let t,i,n=new Promise((n,r)=>{t=n,i=r});return n.resolve=t,n.reject=i,n},e1=t=>null==t?"":String(t),e2=/###/g,e3=t=>t&&t.includes("###")?t.replace(e2,"."):t,e5=t=>!t||eQ(t),e4=(t,i,n)=>{let r=eQ(i)?i.split("."):i,o=0;for(;o<r.length-1;){if(e5(t))return{};let i=e3(r[o]);!t[i]&&n&&(t[i]=new n),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{},++o}return e5(t)?{}:{obj:t,k:e3(r[o])}},e6=(t,i,n)=>{let{obj:r,k:o}=e4(t,i,Object);if(void 0!==r||1===i.length){r[o]=n;return}let a=i[i.length-1],s=i.slice(0,i.length-1),l=e4(t,s,Object);for(;void 0===l.obj&&s.length;)a=`${s[s.length-1]}.${a}`,l=e4(t,s=s.slice(0,s.length-1),Object),l?.obj&&void 0!==l.obj[`${l.k}.${a}`]&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},e8=(t,i)=>{let{obj:n,k:r}=e4(t,i);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},e7=(t,i,n)=>{for(let r in i)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(t,r)?eQ(t[r])||t[r]instanceof String||eQ(i[r])||i[r]instanceof String?n&&(t[r]=i[r]):e7(t[r],i[r],n):t[r]=i[r]);return t},e9={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},te=t=>eQ(t)?t.replace(/[&<>"'\/]/g,t=>e9[t]):t,tt=[" ",",","?","!",";"],ti=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let i=this.regExpMap.get(t);if(void 0!==i)return i;let n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),tn=(t,i,n=".")=>{if(!t)return;if(t[i]){if(!Object.prototype.hasOwnProperty.call(t,i))return;return t[i]}let r=i.split(n),o=t;for(let t=0;t<r.length;){let i;if(!o||"object"!=typeof o)return;let a="";for(let s=t;s<r.length;++s)if(s!==t&&(a+=n),a+=r[s],void 0!==(i=o[a])){if(["string","number","boolean"].includes(typeof i)&&s<r.length-1)continue;t+=s-t+1;break}o=i}return o},tr=t=>t?.replace(/_/g,"-"),to={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,i){console?.[t]?.apply?.(console,i)}};var ta=new class t{constructor(t,i={}){this.init(t,i)}init(t,i={}){this.prefix=i.prefix||"i18next:",this.logger=t||to,this.options=i,this.debug=i.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,n,r){return r&&!this.debug?null:(t=t.map(t=>eQ(t)?t.replace(/[\r\n\x00-\x1F\x7F]/g," "):t),eQ(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[i](t))}create(i){return new t(this.logger,{...{prefix:`${this.prefix}:${i}:`},...this.options})}clone(i){return(i=i||this.options).prefix=i.prefix||this.prefix,new t(this.logger,i)}};class ts{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(t=>{this.observers[t]||(this.observers[t]=new Map);let n=this.observers[t].get(i)||0;this.observers[t].set(i,n+1)}),this}off(t,i){if(this.observers[t]){if(!i)return void delete this.observers[t];this.observers[t].delete(i)}}once(t,i){let n=(...r)=>{i(...r),this.off(t,n)};return this.on(t,n),this}emit(t,...i){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([t,n])=>{for(let r=0;r<n;r++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(t,...i)})}}class tl extends ts{constructor(t,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=i,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,n,r={}){let o,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;t.includes(".")?o=t.split("."):(o=[t,i],n&&(Array.isArray(n)?o.push(...n):eQ(n)&&a?o.push(...n.split(a)):o.push(n)));let l=e8(this.data,o);return(!l&&!i&&!n&&t.includes(".")&&(t=o[0],i=o[1],n=o.slice(2).join(".")),!l&&s&&eQ(n))?tn(this.data?.[t]?.[i],n,a):l}addResource(t,i,n,r,o={silent:!1}){let a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,s=[t,i];n&&(s=s.concat(a?n.split(a):n)),t.includes(".")&&(s=t.split("."),r=i,i=s[1]),this.addNamespaces(i),e6(this.data,s,r),o.silent||this.emit("added",t,i,n,r)}addResources(t,i,n,r={silent:!1}){for(let r in n)(eQ(n[r])||Array.isArray(n[r]))&&this.addResource(t,i,r,n[r],{silent:!0});r.silent||this.emit("added",t,i,n)}addResourceBundle(t,i,n,r,o,a={silent:!1,skipCopy:!1}){let s=[t,i];t.includes(".")&&(s=t.split("."),r=n,n=i,i=s[1]),this.addNamespaces(i);let l=e8(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?e7(l,n,o):l={...l,...n},e6(this.data,s,l),a.silent||this.emit("added",t,i,n)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return void 0!==this.getResource(t,i)}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(t=>i[t]&&Object.keys(i[t]).length>0)}toJSON(){return this.data}}var tc={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,i,n,r,o){return t.forEach(t=>{i=this.processors[t]?.process(i,n,r,o)??i}),i}};let td=Symbol("i18next/PATH_KEY");function tu(t,i){let n,r,o,{[td]:a}=t((r=[],(o=Object.create(null)).get=(t,i)=>(n?.revoke?.(),i===td)?r:(r.push(i),(n=Proxy.revocable(t,o)).proxy),Proxy.revocable(Object.create(null),o).proxy)),s=i?.keySeparator??".",l=i?.nsSeparator??":",c=i?.enableSelector==="strict";if(a.length>1&&l){let t=i?.ns,n=c?Array.isArray(t)?t:t?[t]:null:Array.isArray(t)?t:null;if(n&&(c?n:n.length>1?n.slice(1):[]).includes(a[0]))return`${a[0]}${l}${a.slice(1).join(s)}`}return a.join(s)}let th=t=>!eQ(t)&&"boolean"!=typeof t&&"number"!=typeof t;class tp extends ts{constructor(t,i={}){super(),((t,i,n)=>{t.forEach(t=>{i[t]&&(n[t]=i[t])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ta.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,i={interpolation:{}}){let n={...i};if(null==t)return!1;let r=this.resolve(t,n);if(r?.res===void 0)return!1;let o=th(r.res);return!1!==n.returnObjects||!o}extractFromKey(t,i){let n=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=i.ns||this.options.defaultNS||[],a=n&&t.includes(n),s=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!((t,i,n)=>{i=i||"",n=n||"";let r=tt.filter(t=>!i.includes(t)&&!n.includes(t));if(0===r.length)return!0;let o=ti.getRegExp(`(${r.map(t=>"?"===t?"\\?":t).join("|")})`),a=!o.test(t);if(!a){let i=t.indexOf(n);i>0&&!o.test(t.substring(0,i))&&(a=!0)}return a})(t,n,r);if(a&&!s){let i=t.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:t,namespaces:eQ(o)?[o]:o};let a=t.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(o=a.shift()),t=a.join(r)}return{key:t,namespaces:eQ(o)?[o]:o}}translate(t,i,n){let r="object"==typeof i?{...i}:i;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==t)return"";"function"==typeof t&&(t=tu(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]),t=t.map(t=>"function"==typeof t?tu(t,{...this.options,...r}):String(t));let o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],d=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===d&&(d=":");let u=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return h?o?{res:`${c}${d}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${d}${s}`:o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:s;let p=this.resolve(t,r),m=p?.res,f=p?.usedKey||s,g=p?.exactUsedKey||s,b=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!eQ(r.count),v=tp.hasDefaultValue(r),x=y?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&y?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",k=y&&!r.ordinal&&0===r.count,E=k&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${x}`]||r[`defaultValue${w}`]||r.defaultValue,F=m;_&&!m&&v&&(F=E);let C=th(F),T=Object.prototype.toString.apply(F);if(_&&F&&C&&!["[object Number]","[object Function]","[object RegExp]"].includes(T)&&!(eQ(b)&&Array.isArray(F))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,F,{...r,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(p.res=t,p.usedParams=this.getUsedParamsDetails(r),p):t}if(a){let t=Array.isArray(F),i=t?[]:{},n=t?g:f;for(let t in F)if(Object.prototype.hasOwnProperty.call(F,t)){let o=`${n}${a}${t}`;v&&!m?i[t]=this.translate(o,{...r,defaultValue:th(E)?E[t]:void 0,...{joinArrays:!1,ns:l}}):i[t]=this.translate(o,{...r,joinArrays:!1,ns:l}),i[t]===o&&(i[t]=F[t])}m=i}}else if(_&&eQ(b)&&Array.isArray(m))(m=m.join(b))&&(m=this.extendTranslation(m,t,r,n));else{let i=!1,o=!1;!this.isValidLookup(m)&&v&&(i=!0,m=E),this.isValidLookup(m)||(o=!0,m=s);let l=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:m,h=v&&E!==m&&this.options.updateMissing;if(o||i||h){if(this.logger.log(h?"updateKey":"missingKey",u,c,y&&!h?`${s}${this.pluralResolver.getSuffix(u,r.count,r)}`:s,h?E:m),a){let t=this.resolve(s,{...r,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let n=0;n<i.length;n++)t.push(i[n]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(r.lng||this.language):t.push(r.lng||this.language);let n=(t,i,n)=>{let o=v&&n!==m?n:l;this.options.missingKeyHandler?this.options.missingKeyHandler(t,c,i,o,h,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,c,i,o,h,r),this.emit("missingKey",t,c,i,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?t.forEach(t=>{let i=this.pluralResolver.getSuffixes(t,r);k&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!i.includes(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{n([t],s+i,r[`defaultValue${i}`]||E)})}):n(t,s,E))}m=this.extendTranslation(m,t,r,p,n),o&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}${d}${s}`),(o||i)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${s}`:s,i?m:void 0,r))}return o?(p.res=m,p.usedParams=this.getUsedParamsDetails(r),p):m}extendTranslation(t,i,n,r,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let s=eQ(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){let i=t.match(this.interpolator.nestingRegexp);a=i&&i.length}let l=n.replace&&!eQ(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,n.lng||this.language||r.usedLng,n),s){let i=t.match(this.interpolator.nestingRegexp);a<(i&&i.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(...t)=>o?.[0]!==t[0]||n.context?this.translate(...t,i):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${i[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,s=eQ(a)?[a]:a;return null!=t&&s?.length&&!1!==n.applyPostProcessor&&(t=tc.handle(s,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,i={}){let n,r,o,a,s;return eQ(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(t=>"function"==typeof t?tu(t,{...this.options,...i}):t)),t.forEach(t=>{if(this.isValidLookup(n))return;let l=this.extractFromKey(t,i),c=l.key;r=c;let d=l.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let u=void 0!==i.count&&!eQ(i.count),h=u&&!i.ordinal&&0===i.count,p=void 0!==i.context&&(eQ(i.context)||"number"==typeof i.context)&&""!==i.context,m=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);d.forEach(t=>{this.isValidLookup(n)||(s=t,!this.checkedLoadedFor[`${m[0]}-${t}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${m[0]}-${t}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(r=>{let s;if(this.isValidLookup(n))return;a=r;let l=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,c,r,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(r,i.count,i));let n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.ordinal&&t.startsWith(o)&&l.push(c+t.replace(o,this.options.pluralSeparator)),l.push(c+t),h&&l.push(c+n)),p){let r=`${c}${this.options.contextSeparator||"_"}${i.context}`;l.push(r),u&&(i.ordinal&&t.startsWith(o)&&l.push(r+t.replace(o,this.options.pluralSeparator)),l.push(r+t),h&&l.push(r+n))}}for(;s=l.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,t,s,i))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}getResource(t,i,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,i,n,r):this.resourceStore.getResource(t,i,n,r)}getUsedParamsDetails(t={}){let i=t.replace&&!eQ(t.replace),n=i?t.replace:t;if(i&&void 0!==t.count&&(n={...n,count:t.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i)for(let t of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[t];return n}static hasDefaultValue(t){for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&i.startsWith("defaultValue")&&void 0!==t[i])return!0;return!1}}class tm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ta.create("languageUtils")}getScriptPartFromCode(t){if(!(t=tr(t))||!t.includes("-"))return null;let i=t.split("-");return 2===i.length||(i.pop(),"x"===i[i.length-1].toLowerCase())?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(!(t=tr(t))||!t.includes("-"))return t;let i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(eQ(t)&&t.includes("-")){let i;try{i=Intl.getCanonicalLocales(t)[0]}catch(t){}return(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)?i:this.options.lowerCaseLng?t.toLowerCase():t}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){let i;return t?(t.forEach(t=>{if(i)return;let n=this.formatLanguageCode(t);(!this.options.supportedLngs||this.isSupportedCode(n))&&(i=n)}),!i&&this.options.supportedLngs&&t.forEach(t=>{if(i)return;let n=this.getScriptPartFromCode(t);if(this.isSupportedCode(n))return i=n;let r=this.getLanguagePartFromCode(t);if(this.isSupportedCode(r))return i=r;i=this.options.supportedLngs.find(t=>t===r||(!!t.includes("-")||!!r.includes("-"))&&!!(t.includes("-")&&!r.includes("-")&&t.slice(0,t.indexOf("-"))===r||t.startsWith(r)&&r.length>1))}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i):null}getFallbackCodes(t,i){if(!t)return[];if("function"==typeof t&&(t=t(i)),eQ(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let n=t[i];return n||(n=t[this.getScriptPartFromCode(i)]),n||(n=t[this.formatLanguageCode(i)]),n||(n=t[this.getLanguagePartFromCode(i)]),n||(n=t.default),n||[]}toResolveHierarchy(t,i){let n=this.getFallbackCodes((!1===i?[]:i)||this.options.fallbackLng||[],t),r=[],o=t=>{t&&(this.isSupportedCode(t)?r.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return eQ(t)&&(t.includes("-")||t.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):eQ(t)&&o(this.formatLanguageCode(t)),n.forEach(t=>{r.includes(t)||o(this.formatLanguageCode(t))}),r}}let tf={zero:0,one:1,two:2,few:3,many:4,other:5},tg={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class tb{constructor(t,i={}){this.languageUtils=t,this.options=i,this.logger=ta.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,i={}){let n,r=tr("dev"===t?"en":t),o=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];try{n=new Intl.PluralRules(r,{type:o})}catch(o){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),tg;if(!t.match(/-|_/))return tg;let r=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(r,i)}return this.pluralRulesCache[a]=n,n}needsPlural(t,i={}){let n=this.getRule(t,i);return n||(n=this.getRule("dev",i)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,i,n={}){return this.getSuffixes(t,n).map(t=>`${i}${t}`)}getSuffixes(t,i={}){let n=this.getRule(t,i);return(n||(n=this.getRule("dev",i)),n)?n.resolvedOptions().pluralCategories.sort((t,i)=>tf[t]-tf[i]).map(t=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${t}`):[]}getSuffix(t,i,n={}){let r=this.getRule(t,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(i)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",i,n))}}let t_=(t,i,n,r=".",o=!0)=>{let a,s=void 0!==(a=e8(t,n))?a:e8(i,n);return!s&&o&&eQ(n)&&void 0===(s=tn(t,n,r))&&(s=tn(i,n,r)),s},ty=t=>t.replace(/\$/g,"$$$$");class tv{constructor(t={}){this.logger=ta.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:i,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:b,alwaysFormat:_}=t.interpolation;this.escape=void 0!==i?i:te,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"{{",this.suffix=s?s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=g||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==_&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(t,i)=>t?.source===i?(t.lastIndex=0,t):RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,i,n,r){let o,a,s,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=t=>{if(!t.includes(this.formatSeparator)){let o=t_(i,l,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...i,interpolationkey:t}):o}let o=t.split(this.formatSeparator),a=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(t_(i,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...i,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&"string"==typeof t&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let d=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>t},{regex:this.regexp,safeValue:t=>this.escapeValue?this.escape(t):t}].forEach(i=>{for(s=0;o=i.regex.exec(t);){let n=o[1].trim();if(void 0===(a=c(n)))if("function"==typeof d){let i=d(t,o,r);a=eQ(i)?i:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else if(u){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),a="";else eQ(a)||this.useRawValueToEscape||(a=e1(a));let l=i.safeValue(a);if(t=t.replace(o[0],ty(l)),u?(i.regex.lastIndex+=l.length,i.regex.lastIndex-=o[0].length):i.regex.lastIndex=0,++s>=this.maxReplaces)break}}),t}nest(t,i,n={}){let r,o,a,s=(t,i)=>{let n=this.nestingOptionsSeparator;if(!t.includes(n))return t;let r=t.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),o=`{${r[1]}`;t=r[0];let s=(o=this.interpolate(o,a)).match(/'/g),l=o.match(/"/g);((s?.length??0)%2!=0||l)&&(l?.length??0)%2==0||(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),i&&(a={...i,...a})}catch(i){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,i),`${t}${n}${o}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,t};for(;r=this.nestingRegexp.exec(t);){let l=[];(a=(a={...n}).replace&&!eQ(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==c&&(l=r[1].slice(c).split(this.formatSeparator).map(t=>t.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),(o=i(s.call(this,r[1].trim(),a),a))&&r[0]===t&&!eQ(o))return o;eQ(o)||(o=e1(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),o=""),l.length&&(o=l.reduce((t,i)=>this.format(t,i,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}let tx=t=>{let i={};return(n,r,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=r+JSON.stringify(a),l=i[s];return l||(l=t(tr(r),o),i[s]=l),l(n)}},tw=t=>(i,n,r)=>t(tr(n),r)(i);class tk{constructor(t={}){this.logger=ta.create("formatter"),this.options=t,this.init(t)}init(t,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";let n=i.cacheInBuiltFormats?tx:tw;this.formats={number:n((t,i)=>{let n=new Intl.NumberFormat(t,{...i});return t=>n.format(t)}),currency:n((t,i)=>{let n=new Intl.NumberFormat(t,{...i,style:"currency"});return t=>n.format(t)}),datetime:n((t,i)=>{let n=new Intl.DateTimeFormat(t,{...i});return t=>n.format(t)}),relativetime:n((t,i)=>{let n=new Intl.RelativeTimeFormat(t,{...i});return t=>n.format(t,i.range||"day")}),list:n((t,i)=>{let n=new Intl.ListFormat(t,{...i});return t=>n.format(t)})}}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=tx(i)}format(t,i,n,r={}){if(!i||null==t)return t;let o=i.split(this.formatSeparator),a=[];for(let t=0;t<o.length;t++){let i=o[t];for(;i.indexOf("(")>-1&&!i.includes(")")&&t+1<o.length;)i=`${i}${this.formatSeparator}${o[++t]}`;a.push(i)}return a.reduce((t,i)=>{let{formatName:o,formatOptions:a}=(t=>{let i=t.toLowerCase().trim(),n={};if(t.includes("(")){let r=t.split("(");i=r[0].toLowerCase().trim();let o=r[1].slice(0,-1);"currency"!==i||o.includes(":")?"relativetime"!==i||o.includes(":")?o.split(";").forEach(t=>{if(t){let[i,...r]=t.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),a=i.trim();n[a]||(n[a]=o),"false"===o&&(n[a]=!1),"true"===o&&(n[a]=!0),isNaN(o)||(n[a]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:i,formatOptions:n}})(i);if(this.formats[o]){let i=t;try{let s=r?.formatParams?.[r.interpolationkey]||{},l=s.locale||s.lng||r.locale||r.lng||n;i=this.formats[o](t,l,{...a,...r,...s})}catch(t){this.logger.warn(t)}return i}return this.logger.warn(`there was no format function for ${o}`),t},t)}}class tE extends ts{constructor(t,i,n,r={}){super(),this.backend=t,this.store=i,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ta.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(t,i,n,r){let o={},a={},s={},l={};return t.forEach(t=>{let r=!0;i.forEach(i=>{let s=`${t}|${i}`;!n.reload&&this.store.hasResourceBundle(t,i)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===a[s]&&(a[s]=!0):(this.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[i]&&(l[i]=!0)))}),r||(s[t]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,i,n){let r=t.split("|"),o=r[0],a=r[1];i&&this.emit("failedLoading",o,a,i),!i&&n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&n&&(this.state[t]=0);let s={};this.queue.forEach(n=>{((t,i,n)=>{let{obj:r,k:o}=e4(t,i,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],a),void 0!==n.pending[t]&&(delete n.pending[t],n.pendingCount--),i&&n.errors.push(i),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(t=>{s[t]||(s[t]={});let i=n.loaded[t];i.length&&i.forEach(i=>{void 0===s[t][i]&&(s[t][i]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(t=>!t.done)}read(t,i,n,r=0,o=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:i,fcName:n,tried:r,wait:o,callback:a});this.readingCalls++;let s=(s,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}s&&l&&r<this.maxRetries?setTimeout(()=>{this.read(t,i,n,r+1,2*o,a)},o):a(s,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(t,i);n&&"function"==typeof n.then?n.then(t=>s(null,t)).catch(s):s(null,n)}catch(t){s(t)}return}return l(t,i,s)}prepareLoading(t,i,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();eQ(t)&&(t=this.languageUtils.toResolveHierarchy(t)),eQ(i)&&(i=[i]);let o=this.queueLoad(t,i,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(t=>{this.loadOne(t)})}load(t,i,n){this.prepareLoading(t,i,{},n)}reload(t,i,n){this.prepareLoading(t,i,{reload:!0},n)}loadOne(t,i=""){let n=t.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,a)=>{n&&this.logger.warn(`${i}loading namespace ${o} for language ${r} failed`,n),!n&&a&&this.logger.log(`${i}loaded namespace ${o} for language ${r}`,a),this.loaded(t,n,a)})}saveMissing(t,i,n,r,o,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i))return void this.logger.warn(`did not save key "${n}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;(o=5===c.length?c(t,i,n,r,l):c(t,i,n,r))&&"function"==typeof o.then?o.then(t=>s(null,t)).catch(s):s(null,o)}catch(t){s(t)}else c(t,i,n,r,s,l)}t&&t[0]&&this.store.addResource(t[0],i,n,r)}}}let tF=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let i={};if("object"==typeof t[1]&&(i=t[1]),eQ(t[1])&&(i.defaultValue=t[1]),eQ(t[2])&&(i.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){let n=t[3]||t[2];Object.keys(n).forEach(t=>{i[t]=n[t]})}return i},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),tC=t=>(eQ(t.ns)&&(t.ns=[t.ns]),eQ(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),eQ(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),tT=()=>{};class tA extends ts{constructor(t={},i){if(super(),this.options=tC(t),this.services={},this.logger=ta,this.modules={external:[]},(t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(i=>{"function"==typeof t[i]&&(t[i]=t[i].bind(t))})})(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(t={},i){this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),null==t.defaultNS&&t.ns&&(eQ(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let n=tF();this.options={...n,...this.options,...tC(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;this.modules.logger?ta.init(r(this.modules.logger),this.options):ta.init(null,this.options),t=this.modules.formatter?this.modules.formatter:tk;let i=new tm(this.options);this.store=new tl(this.options.resources,this.options);let n=this.services;n.logger=ta,n.resourceStore=this.store,n.languageUtils=i,n.pluralResolver=new tb(i,{prepend:this.options.pluralSeparator}),t&&(n.formatter=r(t),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new tv(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new tE(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(t,...i)=>{this.emit(t,...i)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new tp(this.services,this.options),this.translator.on("*",(t,...i)=>{this.emit(t,...i)}),this.modules.external.forEach(t=>{t.init&&t.init(this)})}if(this.format=this.options.interpolation.format,i||(i=tT),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=(...i)=>this.store[t](...i)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=(...i)=>(this.store[t](...i),this)});let o=e0(),a=()=>{let t=(t,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),i(t,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),o}loadResources(t,i=tT){let n=i,r=eQ(t)?t:this.language;if("function"==typeof t&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let t=[],i=i=>{i&&"cimode"!==i&&this.services.languageUtils.toResolveHierarchy(i).forEach(i=>{"cimode"!==i&&(t.includes(i)||t.push(i))})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(t=>i(t)),this.options.preload?.forEach?.(t=>i(t)),this.services.backendConnector.load(t,this.options.ns,t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(t)})}else n(null)}reloadResources(t,i,n){let r=e0();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof i&&(n=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),n||(n=tT),this.services.backendConnector.reload(t,i,t=>{r.resolve(),n(t)}),r}use(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&tc.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!["cimode","dev"].includes(t)){for(let t=0;t<this.languages.length;t++){let i=this.languages[t];if(!["cimode","dev"].includes(i)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,i){this.isLanguageChangingTo=t;let n=e0();this.emit("languageChanging",t);let r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(o,a)=>{a?this.isLanguageChangingTo===t&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,n.resolve((...t)=>this.t(...t)),i&&i(o,(...t)=>this.t(...t))},a=i=>{t||i||!this.services.languageDetector||(i=[]);let n=eQ(i)?i:i&&i[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(eQ(i)?[i]:i);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,t=>{o(t,a)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),n}getFixedT(t,i,n,r){let o=r?.scopeNs,a=(t,i,...r)=>{let s,l;(s="object"!=typeof i?this.options.overloadTranslationOptionHandler([t,i].concat(r)):{...i}).lng=s.lng||a.lng,s.lngs=s.lngs||a.lngs;let c=void 0!==s.ns&&null!==s.ns;s.ns=s.ns||a.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||n||a.keyPrefix);let d={...this.options,...s};Array.isArray(o)&&!c&&(d.ns=o),"function"==typeof s.keyPrefix&&(s.keyPrefix=tu(s.keyPrefix,d));let u=this.options.keySeparator||".";return s.keyPrefix&&Array.isArray(t)?l=t.map(t=>("function"==typeof t&&(t=tu(t,d)),`${s.keyPrefix}${u}${t}`)):("function"==typeof t&&(t=tu(t,d)),l=s.keyPrefix?`${s.keyPrefix}${u}${t}`:t),this.t(l,s)};return eQ(t)?a.lng=t:a.lngs=t,a.ns=i,a.keyPrefix=n,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=i.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let a=(t,i)=>{let n=this.services.backendConnector.state[`${t}|${i}`];return -1===n||0===n||2===n};if(i.precheck){let t=i.precheck(this,a);if(void 0!==t)return t}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!r||a(o,t)))}loadNamespaces(t,i){let n=e0();return this.options.ns?(eQ(t)&&(t=[t]),t.forEach(t=>{this.options.ns.includes(t)||this.options.ns.push(t)}),this.loadResources(t=>{n.resolve(),i&&i(t)}),n):(i&&i(),Promise.resolve())}loadLanguages(t,i){let n=e0();eQ(t)&&(t=[t]);let r=this.options.preload||[],o=t.filter(t=>!r.includes(t)&&this.services.languageUtils.isSupportedCode(t));return o.length?(this.options.preload=r.concat(o),this.loadResources(t=>{n.resolve(),i&&i(t)}),n):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let i=new Intl.Locale(t);if(i&&i.getTextInfo){let t=i.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}let i=this.services?.languageUtils||new tm(tF());return t.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(i.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},i){let n=new tA(t,i);return n.createInstance=tA.createInstance,n}cloneInstance(t={},i=tT){let n=t.forkResourceStore;n&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},o=new tA(r);if((void 0!==t.debug||void 0!==t.prefix)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(t=>{o[t]=this[t]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new tl(Object.keys(this.store.data).reduce((t,i)=>(t[i]={...this.store.data[i]},t[i]=Object.keys(t[i]).reduce((n,r)=>(n[r]={...t[i][r]},n),t[i]),t),{}),r),o.services.resourceStore=o.store),t.interpolation){let i={...tF().interpolation,...this.options.interpolation,...t.interpolation},n={...r,interpolation:i};o.services.interpolator=new tv(n)}return o.translator=new tp(o.services,r),o.translator.on("*",(t,...i)=>{o.emit(t,...i)}),o.init(r,i),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let tS=tA.createInstance();tS.createInstance,tS.dir,tS.init,tS.loadResources,tS.reloadResources,tS.use,tS.changeLanguage,tS.getFixedT,tS.t,tS.exists,tS.setDefaultNamespace,tS.hasLoadedNamespace,tS.loadNamespaces,tS.loadLanguages;var tM=n(14867),tD=n.n(tM);n(83472);class tL{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,i)=>{this._resolve=t,this._reject=i}),Object.freeze(this)}}function tI(t,i,n=!0){if(null==t||null==i)return t===i;if(t.constructor!==i.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===i;if(t===i||t.valueOf()===i.valueOf())return!0;if(Array.isArray(t)&&t.length!==i.length||t instanceof Date||!(t instanceof Object)||!(i instanceof Object))return!1;if(n){if(Array.isArray(t))return t.every((t,n)=>tI(t,i[n]));let n=Object.keys(t);return Object.keys(i).every(t=>-1!==n.indexOf(t))&&n.every(n=>tI(t[n],i[n]))}return!1}function tO(t){if(null==t)return"";let i=!1;return t.split(/([A-Z]|\d)/).map((t,n,r)=>{if(!t)return t;if(!i)return i=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let i=!r[n-1]||"_"===r[n-1],o=n+1<r.length&&r[n+1]&&"_"!==r[n+1],a=n+3>r.length||!r[n+1]&&!r[n+3];(!i||o)&&(t=" "+t),!o&&(i||a)||(t=t.toLowerCase())}return t}).join("").trim()}function tR(t,i){if(i===t)return!0;let n=t.endsWith("*"),r=!n&&t.startsWith("*"),o=!n&&!r&&t.startsWith("^")&&t.endsWith("$");if(n&&i.startsWith(t.substr(0,t.length-1))||r&&i.endsWith(t.substr(1)))return!0;if(o)try{return new RegExp(t).test(i)}catch(t){console.error("Failed to compile needle as a RegExp: "+t)}return!1}function tP(t,i){return Object.keys(t).find(n=>t[n]===i)}let t$=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];function tN(t,i,n,r,o,a,s){let l="";if(a?Array.isArray(a)?l+=a.toString().replace(" ",""):l+=a.toString():l+="0",l+=" ",o?Array.isArray(o)?l+=o.toString().replace(" ",""):l+=o.toString():l+="0",l+=" ",r?Array.isArray(r)?l+=r.toString().replace(" ",""):l+=r.toString():l+="0",l+=" ",n?Array.isArray(n)?l+=n.toString().replace(" ",""):l+=n.toString():l+="*",l+=" ",i)if(Array.isArray(i))if("number"==typeof i[0]){let t=[];i.forEach(i=>{t.push(t$[i].toString())}),l+=t.toString().replace(" ","")}else l+=i.toString().replace(" ","");else l+=i.toString();else l+="*";return l+=" ",s?l+=s.toString():l+="?",l+=" ",t?Array.isArray(t)?l+=t.toString().replace(" ",""):l+=t:l+="*",l}function tB(t,i){let n=t.split(" ");if(!Number.isNaN(Number(n[0]))&&!Number.isNaN(Number(n[1]))&&!Number.isNaN(Number(n[2]))&&(!Number.isNaN(Number(n[3]))||"*"==n[3])){let t=(!Number.isNaN(Number(n[6]))?n[6]:new Date().getFullYear()).toString(),r="";r=1==(r="*"!=n[4]?t$.indexOf(n[4]).toString():new Date().getMonth().toString()).length?"0"+r:r;let o=1==n[3].length&&"*"!=n[3]?"0"+n[3]:n[3].replace("*","01"),a=1==n[2].length&&"*"!=n[2]?"0"+n[2]:n[2].replace("*","00"),s=1==n[1].length&&"*"!=n[1]?"0"+n[1]:n[1].replace("*","00"),l=1==n[0].length&&"*"!=n[0]?"0"+n[0]:n[0].replace("*","00");if(t.length>0&&r.length>0)if(i)return tD().utc({year:Number(t),month:Number(r),date:Number(o),hour:Number(a),minute:Number(s),second:Number(l)}).toISOString();else return tD()({year:Number(t),month:Number(r),date:Number(o),hour:Number(a),minute:Number(s),second:Number(l)}).toISOString()}}function tz(t,i,n){let r="string"==typeof t?t:t.name;return i&&i.meta&&i.meta.hasOwnProperty(r)?i.meta[r]:n&&n.meta?n.meta[r]:void 0}function tj(t){return("string"==typeof t&&(t=eJ.getAssetDescriptor(t)),t)?tS.t("label.asset."+t.name,{defaultValue:tO(t.name)}):""}function tY(t,i){let n="string"==typeof t?eJ.getMetaItemDescriptor(t):t;return n?{name:n.name,type:n.type,value:i}:{name:typeof t,type:eJ.resolveValueTypeFromValue(i),value:i}}function tU(t,i,n,r,o){return function(t,i,n,r,o,a){let s=tG("label",t,i,n,o),l="";if(s||(s=tz("label",t,i&&i.meta?i:void 0)),r&&(l=tW(tq("units",t,i,n,o))),!s){let n=t?t.name:i?"string"==typeof i?i:i.name:void 0;s=a||(n?tO(n):void 0)}return s?s+(l?" ("+l+")":""):l}(t,i,n,r,!0,o)}function tH(t,i,n,r,o,a){let s=tV(t?t.value:void 0,()=>tq("format",t,i,n,o),void 0,a),l=tq("units",t,i,n,!0);return r&&l&&l.length&&(s=tW(tq("units",t,i,n,o),s)),s}function tV(t,i,n,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=i&&i();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(n||tS.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?tS.t("on"):tS.t("off")),r.asOpenClosed&&(o=t?tS.t("open"):tS.t("closed")),r.asPressedReleased&&(o=t?tS.t("pressed"):tS.t("released"));break;case"object":if(r.momentJsFormat)o=tD()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let i,n=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),i=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-i.getTime())/864e5+1)/7));o="2-digit"===r.week?String(n).padStart(2,"0"):Number(n).toString(10)}else o=new Intl.DateTimeFormat(n||tS.language,r).format(t)}else o=Object(t).toString()}return o}function tW(t,i){if(!t)return"";i||(i="");let n=t.map((t,n)=>{if(3!==t.length||t.toUpperCase()!==t)return tS.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(tS.language,{currency:t,style:"currency"}).formatToParts();if(0!==n||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!i)return r[0].value;i=r[0].value+i}}).join("");return i.length>0?i+" "+n:n}function tq(t,i,n,r,o){let a,s=[],l=tG(t,i&&"string"==typeof i?i:i?i.name:n?"string"==typeof n?n:n.name:void 0,n,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(i&&i.meta&&(a=tz(t,i,n)))if("format"!==t)return a;else s.push(a);if(n&&"string"!=typeof n&&n.hasOwnProperty(t)){if(a=n[t],"format"!==t)return a;s.push(a)}if(n&&n.type){if(a=eJ.getValueDescriptor(n.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 tG(t,i,n,r,o,a){let s;if(i?s="string"==typeof i?i:i.name:n&&(s="string"==typeof n?n:n.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),n&&"string"!=typeof n&&(l.push(c+n.type+"."+s),l.push(c+n.type)),l.push(c+s),l.length>0)return tS.t(l,{defaultValue:a||""})}function tK(t,i){let n=i.ref.name;if(t.attributes)if(i.deleted)delete t.attributes[n];else{let r=t.attributes[n];r&&(r.value=i.value,r.timestamp=i.timestamp)}return Object.assign({},t)}function tX(t){return(i,n)=>{let r=t(i),o=t(n);return r||o?r&&!o?1:!r&&o?-1:r-o:0}}function tZ(t){return(i,n)=>{let r=t(i),o=t(n);return r||o?r&&!o?1:!r&&o?-1:r.localeCompare(o):0}}function tJ(t,i){let n=new tL;return t.dispatchEvent(i),window.setTimeout(()=>{n.resolve(i.detail)}),n.promise}function tQ(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}class t0{constructor(t){t&&Object.assign(this,t)}matches(t){var i,n,r,o,a,s,l;if((null==(i=this.ids)?void 0:i.length)&&(!t.id||!this.ids.includes(t.id))||(null==(n=this.types)?void 0:n.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(i=>!i.id||t.parentId===i.id))return!1;if(null==(a=this.paths)?void 0:a.length){let i=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var n;return(null!=(n=t.path)?n:[]).every((t,n)=>i[n]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(i=>t0._evalValuePredicate(t.name,i)))&&(!this.attributes||t0._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!t0._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?t0._collectNames(this.attributes):[]}static _evalValuePredicate(t,i){var n;switch(i.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==i.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==i.caseSensitive?i.value:null==(n=i.value)?void 0:n.toLowerCase();switch(i.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return i.negate?!r:r}case"boolean":return t===i.value;case"number":{let n;if("number"!=typeof t)return!1;switch(i.operator){case"GREATER_THAN":n=t>i.value;break;case"GREATER_EQUALS":n=t>=i.value;break;case"LESS_THAN":n=t<i.value;break;case"LESS_EQUALS":n=t<=i.value;break;case"BETWEEN":n=t>=i.value&&t<=i.rangeValue;break;default:n=t===i.value}return i.negate?!n:n}}return!1}static _evalPredicate(t,i){var n,r;let o=null==(n=i.name)?void 0:n.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!i.negated;let s=!i.value||t0._evalValuePredicate(a.value,i.value);return i.negated?!s:s}static _evalGroup(t,i){var n,r,o;let a=null!=(n=i.operator)?n:"AND",s=[...(null!=(r=i.items)?r:[]).map(i=>t0._evalPredicate(t,i)),...(null!=(o=i.groups)?o:[]).map(i=>t0._evalGroup(t,i))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var i,n;return[...(null!=(i=t.items)?i:[]).map(t=>{var i;return null==(i=t.name)?void 0:i.value}).filter(t=>!!t),...(null!=(n=t.groups)?n:[]).flatMap(t=>t0._collectNames(t))]}}t0._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var t1=function(t,i,n,r){return new(n||(n=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 i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};let t2=n(74461);class t3{constructor(t,i,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=i,this._enableCompleteCallback=n,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 u=t3._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=u.providers;for(let t of(u.providers={},d)){let i=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};u.providers[t]=i}let m=oJ.getAppName();m.length>0&&0>u.apps.indexOf(m)&&u.apps.push(m),this._registration=u,o&&(u.name=o),a&&(u.version=a),s&&(u.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 t1(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()),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 t1(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 i=this._pendingProviderEnables[t];yield this.enableProvider(i)}})}enableProvider(t,i){return t1(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 n={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:i},r=yield this.sendProviderMessage(n,!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().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return t1(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 i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,i})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,i){return t1(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(!i)return void this._doSendProviderMessage(t);let n=t.provider+t.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new tL,o=()=>{delete this._pendingProviderPromises[n],r.reject("No response from provider")};return this._pendingProviderPromises[n]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,i)=>{this._registrationTimer=window.setTimeout(()=>t1(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),i(t)}}))})}_sendRegistration(t){return t1(this,void 0,void 0,function*(){this._normaliseRegistration();let i=!!this._registration.id;try{let t=yield oJ.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(t&&i&&t3._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(t){let i=t&&t.response?t.response.status:void 0;return 403===i||409===i}storeData(t,i){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:i},!1)}retrieveData(t){return t1(this,void 0,void 0,function*(){let i=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([i,new Promise((t,i)=>setTimeout(i,2e3))]);if(t&&t.value){let i=t.value;return"null"===i?void 0:i}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,i){this._providerMessageListeners[t.provider+t.action]=i}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,i){let n={type:t,data:i};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_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 i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(i):window.localStorage.setItem(i,JSON.stringify(t.value))}break;case"RETRIEVE":{let i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(i);if(null!==n)try{n=JSON.parse(n)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:i,value:n}))}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 i=JSON.parse(t),n=i.provider,r=i.action,o=this._pendingProviderPromises[n+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+r],o[0].resolve(i));let a=this._providerMessageListeners[n+r];a&&a(i)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:t2.name,version:t2.version,platform:t2.os.toString(),apps:[],model:((t2.manufacturer?t2.manufacturer+" ":"")+(t2.product?t2.product:"")).trim()}}_initialiseProvider(t){return t1(this,void 0,void 0,function*(){let i;console.debug("Console: initialising provider '"+t+"'");try{i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=i.version,this._registration.providers[t].requiresPermission=i.requiresPermission,this._registration.providers[t].hasPermission=i.hasPermission,this._registration.providers[t].success=i.success,this._registration.providers[t].enabled=i.enabled,this._registration.providers[t].disabled=i.disabled,this._registration.providers[t].data=i.data}catch(t){console.error(t),i={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(i.success||(console.debug("Provider initialisation failed: '"+t+"'"),i.disabled=!0,this._registration.providers[t].disabled=!0),i.disabled||i.enabled){let i=this._pendingProviderEnables.indexOf(t);i>=0&&this._pendingProviderEnables.splice(i,1)}})}}function t5(t,i){return function(){return t.apply(i,arguments)}}let{toString:t4}=Object.prototype,{getPrototypeOf:t6}=Object,{iterator:t8,toStringTag:t7}=Symbol,t9=(({hasOwnProperty:t})=>(i,n)=>t.call(i,n))(Object.prototype),ie=t=>"string"==typeof t&&("__proto__"===t||"constructor"===t||"prototype"===t),it=(t,i,n)=>t===Object.prototype||!n&&null===i,ii=(t,i)=>{let n=t,r=[];for(;null!=n&&-1===r.indexOf(n);){r.push(n);let o=t6(n);if(it(n,o,n===t))break;if(t9(n,i))return!0;n=o}return!1},ir=(h=Object.create(null),t=>{let i=t4.call(t);return h[i]||(h[i]=i.slice(8,-1).toLowerCase())}),io=t=>(t=t.toLowerCase(),i=>ir(i)===t),ia=t=>i=>typeof i===t,{isArray:is}=Array,il=ia("undefined");function ic(t){return null!==t&&!il(t)&&null!==t.constructor&&!il(t.constructor)&&ih(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let id=io("ArrayBuffer"),iu=ia("string"),ih=ia("function"),ip=ia("number"),im=t=>null!==t&&"object"==typeof t,ig=t=>{if(!im(t))return!1;let i=t6(t);return(null===i||i===Object.prototype||null===t6(i))&&!ii(t,t7)&&!ii(t,t8)},ib=io("Date"),i_=io("File"),iy=io("Blob"),iv=io("FileList"),ix=io("Set"),iw="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ik=void 0!==iw.FormData?iw.FormData:void 0,iE=io("URLSearchParams"),[iF,iC,iT,iA]=["ReadableStream","Request","Response","Headers"].map(io);function iS(t,i,{allOwnKeys:n=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),is(t))for(r=0,o=t.length;r<o;r++)i.call(null,t[r],r,t);else{let o;if(ic(t))return;let a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],i.call(null,t[o],o,t)}}function iM(t,i){let n;if(ic(t))return null;i=i.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(i===(n=r[o]).toLowerCase())return n;return null}let iD="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,iL=t=>!il(t)&&t!==iD,iI=(p="u">typeof Uint8Array&&t6(Uint8Array),t=>p&&t instanceof p),iO=io("HTMLFormElement"),{propertyIsEnumerable:iR}=Object.prototype,iP=io("RegExp"),i$=(t,i)=>{let n=Object.getOwnPropertyDescriptors(t),r={};iS(n,(n,o)=>{let a;!1!==(a=i(n,o,t))&&(r[o]=a||n)}),Object.defineProperties(t,r)},iN=io("AsyncFunction"),iB=(m2="function"==typeof setImmediate,m3=ih(iD.postMessage),m2?setImmediate:m3?(m5=`axios@${Math.random()}`,m4=[],iD.addEventListener("message",({source:t,data:i})=>{t===iD&&i===m5&&m4.length&&m4.shift()()},!1),t=>{m4.push(t),iD.postMessage(m5,"*")}):t=>setTimeout(t)),iz="u">typeof queueMicrotask?queueMicrotask.bind(iD):"u">typeof process&&process.nextTick||iB,ij=t=>null!=t&&ih(t[t8]),iY={isArray:is,isArrayBuffer:id,isBuffer:ic,isFormData:t=>{if(!t)return!1;if(ik&&t instanceof ik)return!0;let i=t6(t);if(!i||i===Object.prototype||!ih(t.append))return!1;let n=ir(t);return"formdata"===n||"object"===n&&ih(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&id(t.buffer)},isString:iu,isNumber:ip,isBoolean:t=>!0===t||!1===t,isObject:im,isPlainObject:ig,isEmptyObject:t=>{if(!im(t)||ic(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:iF,isRequest:iC,isResponse:iT,isHeaders:iA,isUndefined:il,isDate:ib,isFile:i_,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:iy,isRegExp:iP,isFunction:ih,isStream:t=>im(t)&&ih(t.pipe),isURLSearchParams:iE,isTypedArray:iI,isFileList:iv,forEach:iS,merge:function t(...i){let{caseless:n,skipUndefined:r}=iL(this)&&this||{},o={},a=(i,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&"string"==typeof a&&iM(o,a)||a,l=t9(o,s)?o[s]:void 0;ig(l)&&ig(i)?o[s]=t(l,i):ig(i)?o[s]=t({},i):is(i)?o[s]=i.slice():r&&il(i)||(o[s]=i)};for(let t=0,n=i.length;t<n;t++){let n=i[t];if(!n||ic(n)||(iS(n,a),"object"!=typeof n||is(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let t=0;t<r.length;t++){let i=r[t];iR.call(n,i)&&a(n[i],i)}}return o},extend:(t,i,n,{allOwnKeys:r}={})=>(iS(i,(i,r)=>{n&&ih(i)?Object.defineProperty(t,r,{__proto__:null,value:t5(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:i,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,i,n,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:i.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,i,n,r)=>{let o,a,s,l={};if(i=i||{},null==t)return i;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,i))&&!l[s]&&(i[s]=t[s],l[s]=!0);t=!1!==n&&t6(t)}while(t&&(!n||n(t,i))&&t!==Object.prototype);return i},kindOf:ir,kindOfTest:io,endsWith:(t,i,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=i.length;let r=t.indexOf(i,n);return -1!==r&&r===n},toArray:t=>{if(!t)return null;if(is(t))return t;let i=t.length;if(!ip(i))return null;let n=Array(i);for(;i-- >0;)n[i]=t[i];return n},forEachEntry:(t,i)=>{let n,r=(t&&t[t8]).call(t);for(;(n=r.next())&&!n.done;){let r=n.value;i.call(t,r[0],r[1])}},matchAll:(t,i)=>{let n,r=[];for(;null!==(n=t.exec(i));)r.push(n);return r},isHTMLForm:iO,hasOwnProperty:t9,hasOwnProp:t9,hasOwnInPrototypeChain:ii,getSafeProp:(t,i)=>null!=t&&ii(t,i)?t[i]:void 0,toSafeFlatObject:t=>{if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let i=t6(t);if(null===i&&(t=>{if(!Object.isExtensible(t))return!1;let i=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&i.push(...Object.getOwnPropertySymbols(t)),i.every(i=>{if(ie(i))return!1;let n=Object.getOwnPropertyDescriptor(t,i);return!!n&&n.configurable&&!0===n.writable})})(t))return t;let n=Object.create(null),r=Object.create(null),o=[],a=t;for(;null!=a&&-1===o.indexOf(a);){o.push(a);let s=a===t?i:t6(a);if(it(a,s,a===t))break;let l=Object.getOwnPropertyNames(a);for(let i of(Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a)),l))!ie(i)&&(t9(r,i)||(n[i]=t[i],r[i]=!0));a=s}return n},reduceDescriptors:i$,freezeMethods:t=>{i$(t,(i,n)=>{if(ih(t)&&["arguments","caller","callee"].includes(n))return!1;if(ih(t[n])){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(t,i)=>{let n={};return(is(t)?t:String(t).split(i)).forEach(t=>{n[t]=!0}),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,n){return i.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,i)=>null!=t&&Number.isFinite(t*=1)?t:i,findKey:iM,global:iD,isContextDefined:iL,isSpecCompliantForm:function(t){return!!(t&&ih(t.append)&&"FormData"===t[t7]&&t[t8])},toJSONObject:t=>{let i=new WeakSet,n=t=>{if(im(t)){if(i.has(t))return;if(ic(t))return t;if(!("toJSON"in t)){let r;if(i.add(t),ix(t))for(let i of(r=[],t)){let t=n(i);il(t)||r.push(t)}else r=is(t)?[]:{},iS(t,(t,i)=>{let o=n(t);il(o)||(r[i]=o)});return i.delete(t),r}}return t};return n(t)},isAsyncFn:iN,isThenable:t=>t&&(im(t)||ih(t))&&ih(t.then)&&ih(t.catch),setImmediate:iB,asap:iz,isIterable:ij,isSafeIterable:t=>null!=t&&ii(t,t8)&&ij(t)},iU=iY.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"]),iH=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),iV=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function iW(t,i){return iY.isArray(t)?t.map(t=>iW(t,i)):function(t){let i=0,n=t.length;for(;i<n;){let n=t.charCodeAt(i);if(9!==n&&32!==n)break;i+=1}for(;n>i;){let i=t.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===i&&n===t.length?t:t.slice(i,n)}(String(t).replace(i,""))}function iq(t){let i=Object.create(null);return iY.forEach(t.toJSON(),(t,n)=>{i[n]=iW(t,iV)}),i}let iG=Symbol("internals");function iK(t){return t&&String(t).trim().toLowerCase()}function iX(t){return!1===t||null==t?t:iY.isArray(t)?t.map(iX):iW(String(t),iH)}let iZ=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function iJ(t){let i=0,n=t.length;for(;i<n;){let n=t.charCodeAt(i);if(9!==n&&32!==n)break;i+=1}for(;n>i;){let i=t.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===i&&n===t.length?t:t.slice(i,n)}function iQ(t,i,n,r,o){if(iY.isFunction(r))return r.call(this,i,n);if(o&&(i=n),iY.isString(i)){if(iY.isString(r))return -1!==i.indexOf(r);if(iY.isRegExp(r))return r.test(i)}}class i0{constructor(t){t&&this.set(t)}set(t,i,n){let r=this;function o(t,i,n){let o=iK(i);if(!o)return;let a=iY.findKey(r,o);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||i]=iX(t))}let a=(t,i)=>iY.forEach(t,(t,n)=>o(t,n,i));if(iY.isPlainObject(t)||t instanceof this.constructor)a(t,i);else{let r;if(iY.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let n,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim();let i=iY.hasOwnProp(l,n);!n||i&&iY.hasOwnProp(iU,n)||("set-cookie"===n?i?l[n].push(r):l[n]=[r]:l[n]=i?l[n]+", "+r:r)}),l),i)}else if(iY.isObject(t)&&iY.isSafeIterable(t)){let n=Object.create(null),r,o;for(let i of t){if(!iY.isArray(i))throw TypeError("Object iterator must return a key-value pair");o=i[0],iY.hasOwnProp(n,o)?(r=n[o],n[o]=iY.isArray(r)?[...r,i[1]]:[r,i[1]]):n[o]=i[1]}a(n,i)}else null!=t&&o(i,t,n)}return this}get(t,i){if(t=iK(t)){let n=iY.findKey(this,t);if(n){let t=this[n];if(!i)return t;if(!0===i){let i,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;i=r.exec(t);)n[i[1]]=i[2];return n}if(iY.isFunction(i))return i.call(this,t,n);if(iY.isRegExp(i))return i.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=iK(t)){let n=iY.findKey(this,t);return!!(n&&void 0!==this[n]&&(!i||iQ(this,this[n],n,i)))}return!1}delete(t,i){let n=this,r=!1;function o(t){if(t=iK(t)){let o=iY.findKey(n,t);o&&(!i||iQ(n,n[o],o,i))&&(delete n[o],r=!0)}}return iY.isArray(t)?t.forEach(o):o(t),r}clear(t){let i=Object.keys(this),n=i.length,r=!1;for(;n--;){let o=i[n];(!t||iQ(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let i=this,n={};return iY.forEach(this,(r,o)=>{let a=iY.findKey(n,o);if(a){i[a]=iX(r),delete i[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n):String(o).trim();s!==o&&delete i[o],i[s]=iX(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let i=Object.create(null);return iY.forEach(this,(n,r)=>{null!=n&&!1!==n&&(i[r]=t&&iY.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join("\n")}getSetCookie(){let t=this.get("set-cookie");return iY.isArray(t)?t:null==t||!1===t?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return function(t){let i=Object.create(null),n=String(t),r=0,o=!1,a=!1;function s(t){let o=iJ(n.slice(r,t)),a=o.indexOf("=");if(a<1)return;let s=iJ(o.slice(0,a));if(!iZ.test(s))return;let l=s.toLowerCase();if("__proto__"===l||"constructor"===l||"prototype"===l)return;let c=iJ(o.slice(a+1));i[l]=function(t){let i=t.length-1;if(i<1||34!==t.charCodeAt(0)||34!==t.charCodeAt(i))return t;let n="";for(let r=1;r<i;r++){let o=t.charCodeAt(r);if(34===o||92===o&&(r+=1)>=i)return t;n+=t[r]}return n}(c)}for(let t=0;t<n.length;t++){let i=n.charCodeAt(t);o?a?a=!1:92===i?a=!0:34===i&&(o=!1):34===i?o=!0:(44===i||59===i)&&(s(t),r=t+1)}return s(n.length),i}(t)}static concat(t,...i){let n=new this(t);return i.forEach(t=>n.set(t)),n}static accessor(t){let i=(this[iG]=this[iG]={accessors:{}}).accessors,n=this.prototype;function r(t){let r=iK(t);if(!i[r]){let o;o=iY.toCamelCase(" "+t),["get","set","has"].forEach(i=>{Object.defineProperty(n,i+o,{__proto__:null,value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})}),i[r]=!0}}return iY.isArray(t)?t.forEach(r):r(t),this}}i0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),iY.reduceDescriptors(i0.prototype,({value:t},i)=>{let n=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(t){this[n]=t}}}),iY.freezeMethods(i0);let i1="[REDACTED ****]";function i2(t){try{return String(t)}catch(t){return""}}class i3 extends Error{static from(t,i,n,r,o,a){let s=t.message;!s&&iY.isArray(t.errors)&&t.errors.length&&(s=t.errors.map(t=>{try{return t&&t.message?i2(t.message):i2(t)}catch(t){return""}}).filter(Boolean).join("; ")||t.name||"AggregateError");let l=new i3(s,i||t.code,n,r,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,null!=t.status&&null==l.status&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(t,i,n,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,i,n,r=this.config,o=r&&iY.hasOwnProp(r,"redact")?r.redact:void 0,a=iY.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),i=[],(n=r=>{let o;if(null===r||"object"!=typeof r||iY.isBuffer(r))return r;if(-1===i.indexOf(r)){if(r instanceof i0&&(r=r.toJSON()),i.push(r),iY.isArray(r))o=[],r.forEach((t,i)=>{let r=n(t);iY.isUndefined(r)||(o[i]=r)});else{if(!iY.isPlainObject(r)&&function(t){if(iY.hasOwnProp(t,"toJSON"))return!0;let i=Object.getPrototypeOf(t);for(;i&&i!==Object.prototype;){if(iY.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}(r))return i.pop(),r;for(let[i,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(i.toLowerCase())?i1:n(a);iY.isUndefined(r)||(o[i]=r)}}return i.pop(),o}})(r)):iY.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}}}i3.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",i3.ERR_BAD_OPTION="ERR_BAD_OPTION",i3.ECONNABORTED="ECONNABORTED",i3.ETIMEDOUT="ETIMEDOUT",i3.ECONNREFUSED="ECONNREFUSED",i3.ERR_NETWORK="ERR_NETWORK",i3.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",i3.ERR_DEPRECATED="ERR_DEPRECATED",i3.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",i3.ERR_BAD_REQUEST="ERR_BAD_REQUEST",i3.ERR_CANCELED="ERR_CANCELED",i3.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",i3.ERR_INVALID_URL="ERR_INVALID_URL",i3.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let i5=i3;function i4(t){return iY.isPlainObject(t)||iY.isArray(t)}function i6(t){return iY.endsWith(t,"[]")?t.slice(0,-2):t}function i8(t,i,n){return t?t.concat(i).map(function(t,i){return t=i6(t),!n&&i?"["+t+"]":t}).join(n?".":""):i}let i7=iY.toFlatObject(iY,{},null,function(t){return/^is[A-Z]/.test(t)}),i9=function(t,i,n){if(!iY.isObject(t))throw TypeError("target must be an object");i=i||new FormData;let r=(t,i)=>{let r=iY.getSafeProp(n,t);return iY.isUndefined(r)?i:r},o=r("metaTokens",!0),a=r("visitor")||f,s=r("dots",!1),l=r("indexes",!1),c=r("Blob")||"u">typeof Blob&&Blob,d=r("maxDepth",100),u=c&&iY.isSpecCompliantForm(i),h=[];if(!iY.isFunction(a))throw TypeError("visitor must be a function");function p(t){if(null===t)return"";if(iY.isDate(t))return t.toISOString();if(iY.isBoolean(t))return t.toString();if(!u&&iY.isBlob(t))throw new i5("Blob is not supported. Use a Buffer instead.");if(iY.isArrayBuffer(t)||iY.isTypedArray(t)){if(u&&"function"==typeof c)return new c([t]);throw new i5("Blob is not supported. Use a Buffer instead.",i5.ERR_NOT_SUPPORT)}return t}function m(t){if(t>d)throw new i5("Object is too deeply nested ("+t+" levels). Max depth: "+d,i5.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(t,n,r){let a=t;if(iY.isReactNative(i)&&iY.isReactNativeBlob(t))return i.append(i8(r,n,s),p(t)),!1;if(t&&!r&&"object"==typeof t)if(iY.endsWith(n,"{}"))n=o?n:n.slice(0,-2),t=function(t){if(1/0===d)return JSON.stringify(t);let i=[];return JSON.stringify(t,function(t,n){if(!iY.isObject(n))return n;for(;i.length&&i[i.length-1]!==this;)i.pop();return i.push(n),m(1+i.length-1),n})}(t);else{var c;if(iY.isArray(t)&&(c=t,iY.isArray(c)&&!c.some(i4))||(iY.isFileList(t)||iY.endsWith(n,"[]"))&&(a=iY.toArray(t)))return n=i6(n),a.forEach(function(t,r){iY.isUndefined(t)||null===t||i.append(!0===l?i8([n],r,s):null===l?n:n+"[]",p(t))}),!1}return!!i4(t)||(i.append(i8(r,n,s),p(t)),!1)}let g=Object.assign(i7,{defaultVisitor:f,convertValue:p,isVisitable:i4});if(!iY.isObject(t))throw TypeError("data must be an object");return!function t(n,r,o=0){if(!iY.isUndefined(n)){if(m(o),-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),iY.forEach(n,function(n,s){!0===(!(iY.isUndefined(n)||null===n)&&a.call(i,n,iY.isString(s)?s.trim():s,r,g))&&t(n,r?r.concat(s):[s],o+1)}),h.pop()}}(t),i};function ne(t){let i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return i[t]})}function nt(t,i){this._pairs=[],t&&i9(t,this,i)}let ni=nt.prototype;function nn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nr(t,i,n){let r;if(!i)return t;t=t||"";let o=iY.isFunction(n)?{serialize:n}:n,a=iY.getSafeProp(o,"encode")||nn,s=iY.getSafeProp(o,"serialize");if(r=s?s(i,o):iY.isURLSearchParams(i)?i.toString():new nt(i,o).toString(a)){let i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}ni.append=function(t,i){this._pairs.push([t,i])},ni.toString=function(t){let i=t?i=>t.call(this,i,ne):ne;return this._pairs.map(function(t){return i(t[0])+"="+i(t[1])},"").join("&")};let no=Symbol("internals");function na(t){return t?t.length:0}function ns(t){if(t)for(;t.length&&null===t[t.length-1];)t.pop()}function nl(t,i){let n=t.handlers,r=na(n);n!==i.handlersRef?(i.handlersRef=n,i.handlerEntries.clear()):r!==i.handlersLength&&(r?i.handlerEntries.forEach(function(t,r){n[t.index]!==t.handler&&i.handlerEntries.delete(r)}):i.handlerEntries.clear()),i.handlersLength=r}let nc=class{constructor(){this.handlers=[],this[no]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,i,n){let r={fulfilled:t,rejected:i,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[no];null==this.handlers&&(this.handlers=[]),nl(this,o);let a=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,a}eject(t){let i=this[no];nl(this,i);let n=i.handlerEntries.get(t);if(n){if(i.handlerEntries.delete(t),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,i.iterationDepth||(ns(this.handlers),i.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],nl(this,this[no]))}forEach(t){let i=this[no];nl(this,i),i.iterationDepth++;try{iY.forEach(this.handlers,function(i){null!==i&&t(i)})}finally{--i.iterationDepth||(nl(this,i),ns(this.handlers),i.handlersLength=na(this.handlers))}}},nd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},nu="u">typeof URLSearchParams?URLSearchParams:nt,nh="u">typeof FormData?FormData:null,np="u">typeof Blob?Blob:null,nm="u">typeof window&&"u">typeof document,nf="object"==typeof navigator&&navigator||void 0,ng=nm&&(!nf||0>["ReactNative","NativeScript","NS"].indexOf(nf.product)),nb="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,n_=nm&&window.location.href||"http://localhost",ny={...S,isBrowser:!0,classes:{URLSearchParams:nu,FormData:nh,Blob:np},protocols:["http","https","file","blob","url","data"]};function nv(t){if(t>100)throw new i5("FormData field is too deeply nested ("+t+" levels). Max depth: 100",i5.ERR_FORM_DATA_DEPTH_EXCEEDED)}let nx=function(t){if(iY.isFormData(t)&&iY.isFunction(t.entries)){let i={};return iY.forEachEntry(t,(t,n)=>{!function t(i,n,r,o){nv(o);let a=i[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=i.length;return(a=!a&&iY.isArray(r)?r.length:a,l)?iY.hasOwnProp(r,a)?r[a]=iY.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n:(iY.hasOwnProp(r,a)&&iY.isObject(r[a])||(r[a]=[]),t(i,n,r[a],o)&&iY.isArray(r[a])&&(r[a]=function(t){let i,n,r={},o=Object.keys(t),a=o.length;for(i=0;i<a;i++)r[n=o[i]]=t[n];return r}(r[a]))),!s}(function(t){let i,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(i=r.exec(t));)nv(n.length),n.push("[]"===i[0]?"":i[1]||i[0]);return n}(t),n,i,0)}),i}return null},nw=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),nk=(t,i)=>null!=t&&iY.hasOwnProp(t,i)?t[i]:void 0,nE={transitional:nd,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){let n,r=i.getContentType()||"",o=r.indexOf("application/json")>-1,a=iY.isObject(t);if(a&&iY.isHTMLForm(t)&&(t=new FormData(t)),iY.isFormData(t))return o?JSON.stringify(nx(t)):t;if(iY.isArrayBuffer(t)||iY.isBuffer(t)||iY.isStream(t)||iY.isFile(t)||iY.isBlob(t)||iY.isReadableStream(t))return t;if(iY.isArrayBufferView(t))return t.buffer;if(iY.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let i=nk(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return i9(t,new ny.classes.URLSearchParams,{visitor:function(t,i,n,r){return ny.isNode&&iY.isBuffer(t)?(this.append(i,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...i}).toString();if((n=iY.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=nk(this,"env"),o=r&&r.FormData;return i9(n?{"files[]":t}:t,o&&new o,i)}}if(a||o){i.setContentType("application/json",!1);var s=t;if(iY.isString(s))try{return(0,JSON.parse)(s),iY.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let i=nk(this,"transitional")||nE.transitional,n=i&&i.forcedJSONParsing,r=nk(this,"responseType"),o="json"===r;if(iY.isResponse(t)||iY.isReadableStream(t))return t;if(t&&iY.isString(t)&&(n&&!r||o)){let n=i&&i.silentJSONParsing;try{return JSON.parse(t,nk(this,"parseReviver"))}catch(t){if(!n&&o){if("SyntaxError"===t.name)throw i5.from(t,i5.ERR_BAD_RESPONSE,this,null,nk(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ny.classes.FormData,Blob:ny.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function nF(t,i){let n=this||nE,r=i||n,o=i0.from(r.headers),a=r.data;return iY.forEach(t,function(t){a=t.call(n,a,o.normalize(),i?i.status:void 0)}),o.normalize(),a}function nC(t){return!!(t&&t.__CANCEL__)}iY.forEach(nw,t=>{nE.headers[t]={}});let nT=class extends i5{constructor(t,i,n){super(null==t?"canceled":t,i5.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function nA(t,i,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(new i5("Request failed with status code "+n.status,n.status>=400&&n.status<500?i5.ERR_BAD_REQUEST:i5.ERR_BAD_RESPONSE,n.config,n.request,n))}let nS=/[\t\n\r]/g;function nM(t){if("string"!=typeof t)return t;let i=0;for(;i<t.length&&32>=t.charCodeAt(i);)i++;return t.slice(i).replace(nS,"")}function nD(t){let i=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return i&&i[1]||""}let nL=function(t,i){let n,r=Array(t=t||10),o=Array(t),a=0,s=0;return i=void 0!==i?i:1e3,function(l){let c=Date.now(),d=o[s];n||(n=c),r[a]=l,o[a]=c;let u=s,h=0;for(;u!==a;)h+=r[u++],u%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-n<i)return;let p=d&&c-d;return p?Math.round(1e3*h/p):void 0}},nI=function(t,i){let n,r,o=0,a=1e3/i,s=(i,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),t(...i)};return[(...t)=>{let i=Date.now(),l=i-o;l>=a?s(t,i):(n=t,r||(r=setTimeout(()=>{r=null,s(n)},a-l)))},()=>n&&s(n),(...t)=>s(t)]},nO=(t,i,n=3)=>{let r=0,o=nL(50,250);return nI(n=>{if(!n||!iY.isNumber(n.loaded))return;let a=n.loaded,s=n.lengthComputable?n.total:void 0,l=Math.max(0,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:n,lengthComputable:null!=s,[i?"download":"upload"]:!0})},n)},nR=(t,i)=>{let n=null!=t;return[r=>i[0]({lengthComputable:n,total:t,loaded:r}),i[1]]},nP=(t,i=iY.asap)=>(...n)=>i(()=>t(...n)),n$=ny.hasStandardBrowserEnv?(m=new URL(ny.origin),f=ny.navigator&&/(msie|trident)/i.test(ny.navigator.userAgent),t=>(t=new URL(t,ny.origin),m.protocol===t.protocol&&m.host===t.host&&(f||m.port===t.port))):()=>!0,nN=ny.hasStandardBrowserEnv?{write(t,i,n,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(i)}`];iY.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),iY.isString(r)&&l.push(`path=${r}`),iY.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),iY.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let i=document.cookie.split(";");for(let n=0;n<i.length;n++){let r=i[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},nB=/^https?:(?!\/\/)/i;function nz(t,i){if("string"==typeof t){let r=nM(t);if(nB.test(r)){var n;let t,o,a;throw new i5(`Invalid URL ${JSON.stringify((a=(-1===(o=(t=r.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${i1}@`)).indexOf("#"))?t:t.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${i1}`),-1===o?a:`${a}#${!(n=t.slice(o+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,i,n="")=>`${i}${n}${i1}`)}`))}: missing "//" after protocol`,i5.ERR_INVALID_URL,i)}}}function nj(t,i,n,r){nz(i,r);let o=!("string"==typeof i&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));if(t&&(o||!1===n)){nz(t,r);if(!i)return t;let n=t.length;for(;n>0&&47===t.charCodeAt(n-1);)n--;return t.slice(0,n)+"/"+i.replace(/^\/+/,"")}return i}let nY=t=>t instanceof i0?{...t}:t;function nU(t,i){var n;t=t||{},i=i||{};let r=Object.create(null);function o(t,i,n,r){return iY.isPlainObject(t)&&iY.isPlainObject(i)?iY.merge.call({caseless:r},t,i):iY.isPlainObject(i)?iY.merge({},i):iY.isArray(i)?i.slice():i}function a(t,i,n,r){return iY.isUndefined(i)?iY.isUndefined(t)?void 0:o(void 0,t,n,r):o(t,i,n,r)}function s(t,i){if(!iY.isUndefined(i))return o(void 0,i)}function l(t,i){return iY.isUndefined(i)?iY.isUndefined(t)?void 0:o(void 0,t):o(void 0,i)}function c(n,r,a){return iY.hasOwnProp(i,a)?o(n,r):iY.hasOwnProp(t,a)?o(void 0,n):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:c,headers:(t,i,n)=>a(nY(t),nY(i),n,!0)};return iY.forEach((n={...t,...i},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(t=>Object.getOwnPropertyDescriptor(n,t).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=iY.hasOwnProp(d,n)?d[n]:a,s=o(iY.hasOwnProp(t,n)?t[n]:void 0,iY.hasOwnProp(i,n)?i[n]:void 0,n);iY.isUndefined(s)&&o!==c||(r[n]=s)}),iY.hasOwnProp(i,"validateStatus")&&iY.isUndefined(i.validateStatus)&&!1===function(n){let r=iY.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!iY.isUndefined(r)){if(!iY.isPlainObject(r))return;else if(iY.hasOwnProp(r,n))return r[n]}let o=iY.hasOwnProp(t,"transitional")?t.transitional:void 0;if(iY.isPlainObject(o)&&iY.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(iY.hasOwnProp(t,"validateStatus")?r.validateStatus=o(void 0,t.validateStatus):delete r.validateStatus),r}let nH=["content-type","content-length"],nV=function(t){let i=nU({},t),n=t=>iY.hasOwnProp(i,t)?i[t]:void 0,r=n("data"),o=n("withXSRFToken"),a=n("xsrfHeaderName"),s=n("xsrfCookieName"),l=n("headers"),c=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(i.headers=l=i0.from(l),i.url=nr(nj(d,h,u,i),n("params"),n("paramsSerializer")),c){let i=iY.getSafeProp(c,"username")||"",n=iY.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(i+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))):"")))}catch(i){throw i5.from(i,i5.ERR_BAD_OPTION_VALUE,t)}}if(iY.isFormData(r)){let t=iY.getSafeProp(r,"getHeaders");if(ny.hasStandardBrowserEnv||ny.hasStandardBrowserWebWorkerEnv||iY.isReactNative(r))l.setContentType(void 0);else{var p,m;iY.isFunction(t)&&(p=l,m=t.call(r),"content-only"!==n("formDataHeaderPolicy")?p.set(m):Object.entries(m||{}).forEach(([t,i])=>{nH.includes(t.toLowerCase())&&p.set(t,i)}))}}if(ny.hasStandardBrowserEnv&&(iY.isFunction(o)&&(o=o(i)),!0===o||null==o&&n$(i.url))){let t=a&&s&&nN.read(s);t&&l.set(a,t)}return i},nW="u">typeof XMLHttpRequest&&function(t){return new Promise(function(i,n){let r,o,a,s,l,c,d=nV(t),u=d.data,h=i0.from(d.headers).normalize(),{responseType:p,onUploadProgress:m,onDownloadProgress:f}=d;function g(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let b=new XMLHttpRequest;function _(r){if(!b)return;if(0===b.status&&"file"!==(nD(nM(d.url))||nD(ny.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new i5("Request aborted",i5.ECONNABORTED,t,b)),g(),b=null;return}try{r?c&&c(r):l&&l()}catch(t){setTimeout(()=>{throw t})}if(!b)return;let o=i0.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());nA(function(t){i(t),g()},function(t){n(t),g()},{data:p&&"text"!==p&&"json"!==p?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:o,config:t,request:b}),b=null}b.open(d.method.toUpperCase(),d.url,!0),b.timeout=d.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new i5("Request aborted",i5.ECONNABORTED,t,b)),g(),b=null)},b.onerror=function(i){let r=new i5(i&&i.message?i.message:"Network Error",i5.ERR_NETWORK,t,b);r.event=i||null,n(r),g(),b=null},b.ontimeout=function(){let i=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",r=d.transitional||nd;d.timeoutErrorMessage&&(i=d.timeoutErrorMessage),n(new i5(i,r.clarifyTimeoutError?i5.ETIMEDOUT:i5.ECONNABORTED,t,b)),g(),b=null},void 0===u&&h.setContentType(null),"setRequestHeader"in b&&iY.forEach(iq(h),function(t,i){b.setRequestHeader(i,t)}),iY.isUndefined(d.withCredentials)||(b.withCredentials=!!d.withCredentials),p&&"json"!==p&&(b.responseType=d.responseType),f&&([a,l,c]=nO(f,!0),b.addEventListener("progress",a)),m&&b.upload&&([o,s]=nO(m),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(r=i=>{b&&(n(!i||i.type?new nT(null,t,b):i),b.abort(),g(),b=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=nD(d.url);if(y&&!ny.protocols.includes(y)){n(new i5("Unsupported protocol "+y+":",i5.ERR_BAD_REQUEST,t)),g();return}b.send(u||null)})},nq=function*(t,i){let n,r=t.byteLength;if(!i||r<i)return void(yield t);let o=0;for(;o<r;)n=o+i,yield t.slice(o,n),o=n},nG=async function*(t,i){for await(let n of nK(t))yield*nq(n,i)},nK=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let i=t.getReader();try{for(;;){let{done:t,value:n}=await i.read();if(t)break;yield n}}finally{await i.cancel()}},nX=(t,i,n,r)=>{let o,a=nG(t,i),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:i,value:r}=await a.next();if(i){l(),t.close();return}let o=r.byteLength;if(n){let t=s+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},nZ=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,nJ=(t,i,n)=>i+2<n&&nZ(t.charCodeAt(i+1))&&nZ(t.charCodeAt(i+2)),nQ=t=>t<=57?t-48:(223&t)-55,n0=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||43===t||47===t||45===t||95===t,n1=t=>9===t||10===t||12===t||13===t||32===t,n2=t=>{var i;let n,r,o=t.length,a=0,s=0,l=!1;for(let i=0;i<o;i++){let n=t.charCodeAt(i);if(37===n&&nJ(t,i,o)&&(n=16*nQ(t.charCodeAt(i+1))+nQ(t.charCodeAt(i+2)),i+=2),!n1(n)){if(61===n){s++;continue}if(!n0(n)||s>0){l=!0;continue}a++}}if(l||s>2||s>0&&(a+s)%4!=0||a%4==1){let i,n;return i=t.length,n=0,i>0&&61===t.charCodeAt(i-1)&&(n++,i>1&&61===t.charCodeAt(i-2)&&n++),Math.floor((i-n)*3/4)}return n=Math.floor((i=a)/4),3*n+(2==(r=i%4)?1:2*(3===r))},n3={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:n5}=iY,n4=t=>{if(!iY.isString(t))return t;try{return decodeURIComponent(t)}catch(i){return t}},n6=(t,...i)=>{try{return!!t(...i)}catch(t){return!1}},n8=t=>{let i,n=void 0!==iY.global&&null!==iY.global?iY.global:globalThis,{ReadableStream:r,TextEncoder:o}=n,{fetch:a,Request:s,Response:l}=t=iY.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},t),c=a?n5(a):"function"==typeof fetch,d=n5(s),u=n5(l);if(!c)return!1;let h=c&&n5(r),p=c&&("function"==typeof o?(i=new o,t=>i.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&h&&n6(()=>{let t=!1,i=new s(ny.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),n=i.headers.has("Content-Type");return null!=i.body&&i.body.cancel(),t&&!n}),f=u&&h&&n6(()=>iY.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(i,n)=>{let r=i&&i[t];if(r)return r.call(i);throw new i5(`Response type '${t}' is not supported`,i5.ERR_NOT_SUPPORT,n)})});let b=async t=>{if(null==t)return 0;if(iY.isBlob(t))return t.size;if(iY.isSpecCompliantForm(t)){let i=new s(ny.origin,{method:"POST",body:t});return(await i.arrayBuffer()).byteLength}return iY.isArrayBufferView(t)||iY.isArrayBuffer(t)?t.byteLength:(iY.isURLSearchParams(t)&&(t+=""),iY.isString(t))?(await p(t)).byteLength:void 0},_=async(t,i)=>{let n=iY.toFiniteNumber(t.getContentLength());return null==n?b(i):n};return async t=>{let i,{url:n,method:r,data:c,signal:u,cancelToken:p,timeout:y,onDownloadProgress:v,onUploadProgress:x,responseType:w,headers:k,withCredentials:E="same-origin",fetchOptions:F,maxContentLength:C,maxBodyLength:T,maxRedirects:A}=nV(t),S=iY.isNumber(C)&&C>-1,M=iY.isNumber(T)&&T>-1,D=a||fetch;w=w?(w+"").toLowerCase():"text";let L=((t,i)=>{if(t=t?t.filter(Boolean):[],!i&&!t.length)return;let n=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let i=t instanceof Error?t:this.reason;n.abort(i instanceof i5?i:new nT(i instanceof Error?i.message:i))}},a=i&&setTimeout(()=>{a=null,o(new i5(`timeout of ${i}ms exceeded`,i5.ETIMEDOUT))},i),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>{if(!r){if(t.aborted)return void o.call(t);t.addEventListener("abort",o,{once:!0})}});let{signal:l}=n;return l.unsubscribe=()=>iY.asap(s),l})([u,p&&p.toAbortSignal()],y),I=null,O=L&&L.unsubscribe&&(()=>{L.unsubscribe()}),R=null,P=()=>new i5("Request body larger than maxBodyLength limit",i5.ERR_BAD_REQUEST,t,I);try{var $,N;let a,u,p,y,B=(u="auth",iY.hasOwnProp(t,u)?t[u]:void 0);if(B){let t=iY.getSafeProp(B,"username")||"",i=iY.getSafeProp(B,"password")||"";a={username:t,password:i}}if(p=($=n).indexOf("://"),y=$,-1!==p&&(y=y.slice(p+3)),y.includes("@")||y.includes(":")){let t=new URL(n,ny.origin);if(!a&&(t.username||t.password)){let i=n4(t.username),n=n4(t.password);a={username:i,password:n}}(t.username||t.password)&&(t.username="",t.password="",n=t.href)}if(a){let t;k.delete("authorization"),k.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))))))}if(S&&"string"==typeof n&&n.startsWith("data:")){let i;if(N=n,i="string"==typeof N?N.indexOf("#"):-1,((t,i)=>{if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let r=t.slice(5,n),o=t.slice(n+1);if(/;base64/i.test(r))return i(o);let a=0;for(let t=0,i=o.length;t<i;t++){let n=o.charCodeAt(t);if(37===n&&nJ(o,t,i))a+=1,t+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&t+1<i){let i=o.charCodeAt(t+1);i>=56320&&i<=57343?(a+=4,t++):a+=3}else a+=3}return a})(-1===i?N:N.slice(0,i),n2)>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I)}if(M&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(i=t,t>T))throw P()}let z=M&&(iY.isReadableStream(c)||iY.isStream(c)),j=(t,i,n)=>nX(t,65536,t=>{if(M&&t>T)throw R=P();i&&i(t)},n);if(m&&"get"!==r&&"head"!==r&&(x||z)){if(i=null==i?await _(k,c):i,0!==i||z){let t,r=new s(n,{method:"POST",body:c,duplex:"half"});if(iY.isFormData(c)&&(t=r.headers.get("content-type"))&&k.setContentType(t),r.body){let[t,n]=x&&nR(i,nO(nP(x)))||[];c=j(r.body,t,n)}}}else if(z&&!d&&h&&"get"!==r&&"head"!==r)c=j(c);else if(z&&d&&!m&&"get"!==r&&"head"!==r)throw new i5("Stream request bodies are not supported by the current fetch implementation",i5.ERR_NOT_SUPPORT,t,I);iY.isString(E)||(E=E?"include":"omit");let Y=d&&"credentials"in s.prototype;if(iY.isFormData(c)){let t=k.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&k.delete("content-type")}k.set("User-Agent","axios/1.20.0",!1);let U=null==F?F:Object.assign(Object.create(null),F);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let H=Object.assign(Object.create(null),U,{signal:L,method:r.toUpperCase(),headers:iq(k.normalize()),body:c,duplex:"half",credentials:Y?E:void 0});d&&(iY.forEach(n3,(t,i)=>{void 0===H[i]&&(H[i]=t)}),void 0===H.signal&&(H.signal=null),void 0===H.body&&(H.body=null)),0===A&&(H.redirect="manual",U&&(U.redirect="manual")),I=d&&new s(n,H);let V=await (d?D(I,U):D(n,H)),W=i0.from(V.headers);if(S){let i=iY.toFiniteNumber(W.getContentLength());if(null!=i&&i>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I)}let q=f&&("stream"===w||"response"===w);if(f&&V.body&&(v||S||q&&O)){let i={};["status","statusText","headers"].forEach(t=>{i[t]=V[t]});let n=iY.toFiniteNumber(W.getContentLength()),[r,o]=v&&nR(n,nO(nP(v),!0))||[];V=new l(nX(V.body,65536,i=>{if(S&&i>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I);r&&r(i)},()=>{o&&o(),O&&O()}),i)}w=w||"text";let G=await g[iY.findKey(g,w)||"text"](V,t);if(S&&!f&&!q){let i;if(null!=G&&("number"==typeof G.byteLength?i=G.byteLength:"number"==typeof G.size?i=G.size:"string"==typeof G&&(i="function"==typeof o?new o().encode(G).byteLength:G.length)),"number"==typeof i&&i>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I)}return!q&&O&&O(),await new Promise((i,n)=>{nA(i,n,{data:G,headers:i0.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:I})})}catch(i){if(O&&O(),L&&L.aborted&&L.reason instanceof i5){let n=L.reason;throw n.config=t,I&&(n.request=I),i!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:i,writable:!0,enumerable:!1,configurable:!0}),n}if(R)throw I&&!R.request&&(R.request=I),R;if(i instanceof i5)throw I&&!i.request&&(i.request=I),i;if(i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message)){let n=new i5("Network Error",i5.ERR_NETWORK,t,I,i&&i.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:i.cause||i,writable:!0,enumerable:!1,configurable:!0}),n}throw i5.from(i,i&&i.code,t,I,i&&i.response)}}},n7=new Map,n9=t=>{let i=t&&t.env||{},{fetch:n,Request:r,Response:o}=i,a=[r,o,n],s=a.length,l,c,d=n7;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:n8(i)),d=c;return c};n9();let re={http:null,xhr:nW,fetch:{get:n9}};iY.forEach(re,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:i})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:i})}});let rt=t=>`- ${t}`,ri=t=>iY.isFunction(t)||null===t||!1===t,rn=function(t,i){let n,r,{length:o}=t=iY.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=n=t[s],!ri(n)&&void 0===(r=re[(o=String(n)).toLowerCase()]))throw new i5(`Unknown adapter '${o}'`);if(r&&(iY.isFunction(r)||(r=r.get(i))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,i])=>`adapter ${t} `+(!1===i?"is not supported by the environment":"is not available in the build"));throw new i5("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rt).join("\n"):" "+rt(t[0]):"as no adapter specified"),i5.ERR_NOT_SUPPORT)}return r};function rr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nT(null,t)}function ro(t){let i=iY.toSafeFlatObject(t);return rr(i),i.headers=i0.from(iY.getSafeProp(i,"headers")),i.data=nF.call(i,i.transformRequest),-1!==["post","put","patch"].indexOf(i.method)&&i.headers.setContentType("application/x-www-form-urlencoded",!1),rn(i.adapter||nE.adapter,i)(i).then(function(t){rr(i),i.response=t;try{t.data=nF.call(i,i.transformResponse,t)}finally{delete i.response}return t.headers=i0.from(t.headers),t},function(t){if(!nC(t)&&(rr(i),t&&t.response)){i.response=t.response;try{t.response.data=nF.call(i,i.transformResponse,t.response)}finally{delete i.response}t.response.headers=i0.from(t.response.headers)}return Promise.reject(t)})}let ra={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{ra[t]=function(n){return typeof n===t||"a"+(i<1?"n ":" ")+t}});let rs={};ra.transitional=function(t,i,n){function r(t,i){return"[Axios v1.20.0] Transitional option '"+t+"'"+i+(n?". "+n:"")}return(n,o,a)=>{if(!1===t)throw new i5(r(o," has been removed"+(i?" in "+i:"")),i5.ERR_DEPRECATED);return i&&!rs[o]&&(rs[o]=!0,console.warn(r(o," has been deprecated since v"+i+" and will be removed in the near future"))),!t||t(n,o,a)}},ra.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};let rl=function(t,i,n){if("object"!=typeof t||null===t)throw new i5("options must be an object",i5.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(i,a)?i[a]:void 0;if(s){let i=t[a],n=void 0===i||s(i,a,t);if(!0!==n)throw new i5("option "+a+" must be "+n,i5.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i5("Unknown option "+a,i5.ERR_BAD_OPTION)}};class rc{constructor(t){this.defaults=t||{},this.interceptors={request:new nc,response:new nc}}async request(t,i){try{return await this._request(t,i)}catch(t){if(t instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=Error();let n=i.stack,r="";if("string"==typeof n){let t=n.indexOf("\n");r=-1===t?"":n.slice(t+1)}if(t.stack){if(r){let i=r.indexOf("\n"),n=-1===i?-1:r.indexOf("\n",i+1),o=-1===n?"":r.slice(n+1);String(t.stack).endsWith(o)||(t.stack+="\n"+r)}}else t.stack=r}catch(t){}throw t}}_request(t,i){let n,r;"string"==typeof t?(i=i||{}).url=t:i=t||{};let{transitional:o,paramsSerializer:a,headers:s}=i=nU(this.defaults,i);void 0!==o&&rl(o,{silentJSONParsing:ra.transitional(ra.boolean),forcedJSONParsing:ra.transitional(ra.boolean),clarifyTimeoutError:ra.transitional(ra.boolean),legacyInterceptorReqResOrdering:ra.transitional(ra.boolean),advertiseZstdAcceptEncoding:ra.transitional(ra.boolean),validateStatusUndefinedResolves:ra.transitional(ra.boolean)},!1),null!=a&&(iY.isFunction(a)?i.paramsSerializer={serialize:a}:rl(a,{encode:ra.function,serialize:ra.function},!0)),void 0!==i.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),rl(i,{baseUrl:ra.spelling("baseURL"),withXsrfToken:ra.spelling("withXSRFToken")},!0),i.method=(iY.getSafeProp(i,"method")||iY.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=s&&iY.merge(s.common,s[i.method]);s&&iY.forEach(nw.concat("common"),t=>{delete s[t]}),i.headers=i0.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(i))return;d=d&&t.synchronous;let n=i.transitional||nd;n&&n.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[ro.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,n=Promise.resolve(i);h<r;)n=n.then(t[h++],t[h++]);return n}r=c.length;let p=i;for(;h<r;){let t=c[h++],i=c[h++];try{p=t?t(p):p}catch(t){if(!i){n=Promise.reject(t);break}try{let r=i.call(this,t);iY.isThenable(r)&&(n=Promise.resolve(r).then(()=>ro.call(this,p)))}catch(t){n=Promise.reject(t)}break}}if(!n)try{n=ro.call(this,p)}catch(t){n=Promise.reject(t)}for(h=0,r=u.length;h<r;)n=n.then(u[h++],u[h++]);return n}getUri(t){return nr(nj((t=nU(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}iY.forEach(["delete","get","head","options"],function(t){rc.prototype[t]=function(i,n){return this.request(nU(n||{},{method:t,url:i,data:n&&iY.hasOwnProp(n,"data")?n.data:void 0}))}}),iY.forEach(["post","put","patch","query"],function(t){function i(i){return function(n,r,o){return this.request(nU(o||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rc.prototype[t]=i(),"query"!==t&&(rc.prototype[t+"Form"]=i(!0))});let rd=class t{constructor(t){let i;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){i=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](t);n._listeners=null}),this.promise.then=t=>{let i,r=new Promise(t=>{n.subscribe(t),i=t}).then(t);return r.cancel=function(){n.unsubscribe(i)},r},t(function(t,r,o){n.reason||(n.reason=new nT(t,r,o),i(n.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 i=this._listeners.indexOf(t);-1!==i&&this._listeners.splice(i,1)}toAbortSignal(){let t=new AbortController,i=i=>{t.abort(i)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let i;return{token:new t(function(t){i=t}),cancel:i}}},ru={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ru).forEach(([t,i])=>{void 0===ru[i]&&(ru[i]=t)});let rh=function t(i){let n=new rc(i),r=t5(rc.prototype.request,n);return iY.extend(r,rc.prototype,n,{allOwnKeys:!0}),iY.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(nU(i,n))},r}(nE);rh.Axios=rc,rh.CanceledError=nT,rh.CancelToken=rd,rh.isCancel=nC,rh.VERSION="1.20.0",rh.toFormData=i9,rh.AxiosError=i5,rh.Cancel=rh.CanceledError,rh.all=function(t){return Promise.all(t)},rh.spread=function(t){return function(i){return t.apply(null,i)}},rh.isAxiosError=function(t){return iY.isObject(t)&&!0===t.isAxiosError},rh.mergeConfig=nU,rh.AxiosHeaders=i0,rh.formToJSON=t=>nx(iY.isHTMLForm(t)?new FormData(t):t),rh.getAdapter=rn,rh.HttpStatusCode=ru,rh.default=rh;class rp{constructor(t){this.httpClient=t}createProvisioningConfig(t,i){return this.httpClient.request({method:"POST",url:rR`provisioning`,data:t,options:i})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rR`provisioning`,options:t})}deleteProvisioningConfig(t,i){return this.httpClient.request({method:"DELETE",url:rR`provisioning/${t}`,options:i})}updateProvisioningConfig(t,i,n){return this.httpClient.request({method:"PUT",url:rR`provisioning/${t}`,data:i,options:n})}}class rm{constructor(t){this.httpClient=t}getNotifications(t,i){return this.httpClient.request({method:"GET",url:rR`notification`,queryParams:t,options:i})}removeNotifications(t,i){return this.httpClient.request({method:"DELETE",url:rR`notification`,queryParams:t,options:i})}sendNotification(t,i){return this.httpClient.request({method:"POST",url:rR`notification/alert`,data:t,options:i})}getNotificationsCount(t,i){return this.httpClient.request({method:"GET",url:rR`notification/count`,queryParams:t,options:i})}removeNotification(t,i){return this.httpClient.request({method:"DELETE",url:rR`notification/${t}`,options:i})}notificationAcknowledged(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`notification/${t}/acknowledged`,queryParams:n,data:i,options:r})}notificationDelivered(t,i,n){return this.httpClient.request({method:"PUT",url:rR`notification/${t}/delivered`,queryParams:i,options:n})}}class rf{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rR`dashboard`,data:t,options:i})}update(t,i){return this.httpClient.request({method:"PUT",url:rR`dashboard`,data:t,options:i})}getAllRealmDashboards(t,i){return this.httpClient.request({method:"GET",url:rR`dashboard/all/${t}`,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rR`dashboard/query`,data:t,options:i})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`dashboard/${t}/${i}`,options:n})}get(t,i,n){return this.httpClient.request({method:"GET",url:rR`dashboard/${t}/${i}`,options:n})}}class rg{constructor(t){this.httpClient=t}startTunnel(t,i){return this.httpClient.request({method:"POST",url:rR`gateway/tunnel`,data:t,options:i})}stopTunnel(t,i){return this.httpClient.request({method:"DELETE",url:rR`gateway/tunnel`,data:t,options:i})}getAllActiveTunnelInfos(t,i){return this.httpClient.request({method:"GET",url:rR`gateway/tunnel/${t}`,options:i})}getGatewayActiveTunnelInfos(t,i,n){return this.httpClient.request({method:"GET",url:rR`gateway/tunnel/${t}/${i}`,options:n})}getActiveTunnelInfo(t,i,n,r,o){return this.httpClient.request({method:"GET",url:rR`gateway/tunnel/${t}/${i}/${n}/${r}`,options:o})}}class rb{constructor(t){this.httpClient=t}getDatapointExport(t,i){return this.httpClient.request({method:"GET",url:rR`asset/datapoint/export`,queryParams:t,options:i})}getDatapointPeriod(t,i){return this.httpClient.request({method:"GET",url:rR`asset/datapoint/periods`,queryParams:t,options:i})}getDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rR`asset/datapoint/${t}/${i}`,data:n,options:r})}}class r_{constructor(t){this.httpClient=t}register(t,i){return this.httpClient.request({method:"POST",url:rR`console/register`,data:t,options:i})}}class ry{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rR`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rR`info`,options:t})}}class rv{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rR`agent/assetDiscovery/${t}`,queryParams:i,options:n})}doProtocolAssetImport(t,i,n,r){return this.httpClient.request({method:"POST",url:rR`agent/assetImport/${t}`,queryParams:n,data:i,options:r})}doProtocolInstanceDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rR`agent/instanceDiscovery/${t}`,queryParams:i,options:n})}}class rx{constructor(t){this.httpClient=t}getServices(t,i){return this.httpClient.request({method:"GET",url:rR`service`,queryParams:t,options:i})}registerService(t,i){return this.httpClient.request({method:"POST",url:rR`service`,data:t,options:i})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rR`service/global`,options:t})}registerGlobalService(t,i){return this.httpClient.request({method:"POST",url:rR`service/global`,data:t,options:i})}deregisterService(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`service/${t}/${i}`,options:n})}getService(t,i,n){return this.httpClient.request({method:"GET",url:rR`service/${t}/${i}`,options:n})}heartbeat(t,i,n){return this.httpClient.request({method:"PUT",url:rR`service/${t}/${i}`,options:n})}}class rw{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rR`configuration/manager`,options:t})}update(t,i){return this.httpClient.request({method:"PUT",url:rR`configuration/manager`,data:t,options:i})}fileUpload(t,i,n){return this.httpClient.request({method:"POST",url:rR`configuration/manager/file`,queryParams:i,data:t,options:n})}getManagerConfigImage(t,i){return this.httpClient.request({method:"GET",url:rR`configuration/manager/image/${t}`,options:i})}}class rk{constructor(t){this.httpClient=t}getPredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rR`asset/predicted/${t}/${i}`,data:n,options:r})}writePredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`asset/predicted/${t}/${i}`,data:n,options:r})}}class rE{constructor(t){this.httpClient=t}getAssetDescriptors(t,i){return this.httpClient.request({method:"GET",url:rR`model/assetDescriptors`,queryParams:t,options:i})}getAssetInfo(t,i,n){return this.httpClient.request({method:"GET",url:rR`model/assetInfo/${t}`,queryParams:i,options:n})}getAssetInfos(t,i){return this.httpClient.request({method:"GET",url:rR`model/assetInfos`,queryParams:t,options:i})}getValueDescriptorSchema(t,i){return this.httpClient.request({method:"GET",url:rR`model/getValueDescriptorSchema`,queryParams:t,options:i})}getMetaItemDescriptors(t,i){return this.httpClient.request({method:"GET",url:rR`model/metaItemDescriptors`,queryParams:t,options:i})}getValueDescriptors(t,i){return this.httpClient.request({method:"GET",url:rR`model/valueDescriptors`,queryParams:t,options:i})}}class rF{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rR`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rR`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rR`apps/info`,options:t})}}class rC{constructor(t){this.httpClient=t}deleteConnections(t,i){return this.httpClient.request({method:"DELETE",url:rR`gateway/connection`,queryParams:t,options:i})}getConnections(t){return this.httpClient.request({method:"GET",url:rR`gateway/connection`,options:t})}deleteConnection(t,i){return this.httpClient.request({method:"DELETE",url:rR`gateway/connection/${t}`,options:i})}getConnection(t,i){return this.httpClient.request({method:"GET",url:rR`gateway/connection/${t}`,options:i})}setConnection(t,i,n){return this.httpClient.request({method:"PUT",url:rR`gateway/connection/${t}`,data:i,options:n})}getConnectionStatus(t,i){return this.httpClient.request({method:"GET",url:rR`gateway/status/${t}`,options:i})}}class rT{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rR`flow`,options:t})}getNodeDefinition(t,i){return this.httpClient.request({method:"GET",url:rR`flow/${t}`,options:i})}getAllNodeDefinitionsByType(t,i){return this.httpClient.request({method:"GET",url:rR`flow/${t}`,options:i})}}class rA{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rR`realm`,data:t,options:i})}getAll(t){return this.httpClient.request({method:"GET",url:rR`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rR`realm/accessible`,options:t})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rR`realm/${t}`,options:i})}get(t,i){return this.httpClient.request({method:"GET",url:rR`realm/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rR`realm/${t}`,data:i,options:n})}}class rS{constructor(t){this.httpClient=t}createGlobalRuleset(t,i){return this.httpClient.request({method:"POST",url:rR`rules`,data:t,options:i})}getGlobalRulesets(t,i){return this.httpClient.request({method:"GET",url:rR`rules`,queryParams:t,options:i})}createAssetRuleset(t,i){return this.httpClient.request({method:"POST",url:rR`rules/asset`,data:t,options:i})}getAssetRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rR`rules/asset/for/${t}`,queryParams:i,options:n})}deleteAssetRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rR`rules/asset/${t}`,options:i})}getAssetRuleset(t,i){return this.httpClient.request({method:"GET",url:rR`rules/asset/${t}`,options:i})}updateAssetRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`rules/asset/${t}`,data:i,options:n})}getAssetGeofences(t,i){return this.httpClient.request({method:"GET",url:rR`rules/geofences/${t}`,options:i})}getAssetEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rR`rules/info/asset/${t}`,options:i})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rR`rules/info/global`,options:t})}getRealmEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rR`rules/info/realm/${t}`,options:i})}createRealmRuleset(t,i){return this.httpClient.request({method:"POST",url:rR`rules/realm`,data:t,options:i})}getRealmRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rR`rules/realm/for/${t}`,queryParams:i,options:n})}deleteRealmRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rR`rules/realm/${t}`,options:i})}getRealmRuleset(t,i){return this.httpClient.request({method:"GET",url:rR`rules/realm/${t}`,options:i})}updateRealmRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`rules/realm/${t}`,data:i,options:n})}deleteGlobalRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rR`rules/${t}`,options:i})}getGlobalRuleset(t,i){return this.httpClient.request({method:"GET",url:rR`rules/${t}`,options:i})}updateGlobalRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`rules/${t}`,data:i,options:n})}}class rM{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,i){return this.httpClient.request({method:"PUT",url:rR`user/locale`,data:t,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rR`user/query`,data:t,options:i})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rR`user/request-password-reset`,options:t})}updatePasswordCurrent(t,i){return this.httpClient.request({method:"PUT",url:rR`user/reset-password`,data:t,options:i})}updateCurrent(t,i){return this.httpClient.request({method:"PUT",url:rR`user/update`,data:t,options:i})}getCurrent(t){return this.httpClient.request({method:"GET",url:rR`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rR`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,i){return this.httpClient.request({method:"GET",url:rR`user/userRoles/${t}`,options:i})}disconnectUserSession(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`user/${t}/disconnect/${i}`,options:n})}requestPasswordReset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`user/${t}/request-password-reset/${i}`,options:n})}updatePassword(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`user/${t}/reset-password/${i}`,data:n,options:r})}resetSecret(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/reset-secret/${i}`,options:n})}updateRoles(t,i,n){return this.httpClient.request({method:"PUT",url:rR`user/${t}/roles`,data:i,options:n})}getUserRealmRoles(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/userRealmRoles/${i}`,options:n})}updateUserRealmRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`user/${t}/userRealmRoles/${i}`,data:n,options:r})}getUserClientRoles(t,i,n,r){return this.httpClient.request({method:"GET",url:rR`user/${t}/userRoles/${i}/${n}`,options:r})}updateUserClientRoles(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rR`user/${t}/userRoles/${i}/${n}`,data:r,options:o})}getUserSessions(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/userSessions/${i}`,options:n})}create(t,i,n){return this.httpClient.request({method:"POST",url:rR`user/${t}/users`,data:i,options:n})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rR`user/${t}/users`,data:i,options:n})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`user/${t}/users/${i}`,options:n})}getClientRoles(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/${i}/roles`,options:n})}updateClientRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`user/${t}/${i}/roles`,data:n,options:r})}get(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/${i}`,options:n})}}class rD{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rR`asset`,data:t,options:i})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rR`asset`,queryParams:t,options:i})}writeAttributeValues(t,i){return this.httpClient.request({method:"PUT",url:rR`asset/attributes`,data:t,options:i})}writeAttributeEvents(t,i){return this.httpClient.request({method:"PUT",url:rR`asset/attributes/timestamp`,data:t,options:i})}queryCount(t,i){return this.httpClient.request({method:"POST",url:rR`asset/count`,data:t,options:i})}updateNoneParent(t,i){return this.httpClient.request({method:"DELETE",url:rR`asset/parent`,queryParams:t,options:i})}getPartial(t,i){return this.httpClient.request({method:"GET",url:rR`asset/partial/${t}`,options:i})}queryAssets(t,i){return this.httpClient.request({method:"POST",url:rR`asset/query`,data:t,options:i})}queryAssetTree(t,i){return this.httpClient.request({method:"POST",url:rR`asset/tree`,data:t,options:i})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rR`asset/user/current`,options:t})}createUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rR`asset/user/link`,data:t,options:i})}getUserAssetLinks(t,i){return this.httpClient.request({method:"GET",url:rR`asset/user/link`,queryParams:t,options:i})}deleteUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rR`asset/user/link/delete`,data:t,options:i})}deleteAllUserAssetLinks(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`asset/user/link/${t}/${i}`,options:n})}deleteUserAssetLink(t,i,n,r){return this.httpClient.request({method:"DELETE",url:rR`asset/user/link/${t}/${i}/${n}`,options:r})}get(t,i){return this.httpClient.request({method:"GET",url:rR`asset/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rR`asset/${t}`,data:i,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`asset/${t}/attribute/${i}`,data:n,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rR`asset/${t}/attribute/${i}/${n}`,data:r,options:o})}updateParent(t,i,n){return this.httpClient.request({method:"PUT",url:rR`asset/${t}/child`,queryParams:i,options:n})}}class rL{constructor(t){this.httpClient=t}createAlarm(t,i,n){return this.httpClient.request({method:"POST",url:rR`alarm`,queryParams:i,data:t,options:n})}getAlarms(t,i){return this.httpClient.request({method:"GET",url:rR`alarm`,queryParams:t,options:i})}removeAlarms(t,i){return this.httpClient.request({method:"DELETE",url:rR`alarm`,data:t,options:i})}setAssetLinks(t,i){return this.httpClient.request({method:"PUT",url:rR`alarm/assets`,data:t,options:i})}getAlarm(t,i){return this.httpClient.request({method:"GET",url:rR`alarm/${t}`,options:i})}removeAlarm(t,i){return this.httpClient.request({method:"DELETE",url:rR`alarm/${t}`,options:i})}updateAlarm(t,i,n){return this.httpClient.request({method:"PUT",url:rR`alarm/${t}`,data:i,options:n})}getAssetLinks(t,i,n){return this.httpClient.request({method:"GET",url:rR`alarm/${t}/assets`,queryParams:i,options:n})}}class rI{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rR`map`,options:t})}saveSettings(t,i){return this.httpClient.request({method:"PUT",url:rR`map`,data:t,options:i})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rR`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rR`map/getCustomMapInfo`,options:t})}getTile(t,i,n,r){return this.httpClient.request({method:"GET",url:rR`map/tile/${t}/${i}/${n}`,options:r})}uploadMap(t,i){return this.httpClient.request({method:"POST",url:rR`map/upload`,queryParams:t,options:i})}}class rO{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rR`syslog/config`,options:t})}updateConfig(t,i){return this.httpClient.request({method:"PUT",url:rR`syslog/config`,data:t,options:i})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rR`syslog/event`,options:t})}getEvents(t,i){return this.httpClient.request({method:"GET",url:rR`syslog/event`,queryParams:t,options:i})}}function rR(t,...i){let n="";for(let r=0;r<i.length;r++)n+=t[r],n+=encodeURIComponent(i[r]);return n+t[t.length-1]}class rP{constructor(t,i=rh.create()){this._provisioningResource=new rN(t,i),this._notificationResource=new rB(t,i),this._dashboardResource=new rz(t,i),this._gatewayServiceResource=new rj(t,i),this._assetDatapointResource=new rY(t,i),this._consoleResource=new rU(t,i),this._statusResource=new rH(t,i),this._agentResource=new rV(t,i),this._externalServiceResource=new rW(t,i),this._configurationResource=new rq(t,i),this._assetPredictedDatapointResource=new rG(t,i),this._assetModelResource=new rK(t,i),this._appResource=new rX(t,i),this._gatewayClientResource=new rZ(t,i),this._flowResource=new rJ(t,i),this._realmResource=new rQ(t,i),this._rulesResource=new r0(t,i),this._userResource=new r1(t,i),this._assetResource=new r2(t,i),this._alarmResource=new r3(t,i),this._mapResource=new r5(t,i),this._syslogResource=new r4(t,i),this._assetResource=new r2(t,i)}get ProvisioningResource(){return this._provisioningResource}get NotificationResource(){return this._notificationResource}get DashboardResource(){return this._dashboardResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConsoleResource(){return this._consoleResource}get StatusResource(){return this._statusResource}get AgentResource(){return this._agentResource}get ExternalServiceResource(){return this._externalServiceResource}get ConfigurationResource(){return this._configurationResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AssetModelResource(){return this._assetModelResource}get AppResource(){return this._appResource}get GatewayClientResource(){return this._gatewayClientResource}get FlowResource(){return this._flowResource}get RealmResource(){return this._realmResource}get RulesResource(){return this._rulesResource}get UserResource(){return this._userResource}get AssetResource(){return this._assetResource}get AlarmResource(){return this._alarmResource}get MapResource(){return this._mapResource}get SyslogResource(){return this._syslogResource}}class r${constructor(t){this.axios=t}request(t){let i={};i.method=t.method,i.url=t.url,i.params=t.queryParams,i.data=t.data,function(t,i){if(void 0!=i)for(let n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}(i,t.options);let n=t.copyFn;return this.axios.request(i).then(t=>(n&&t.data&&(t.originalData=t.data,t.data=n(t.data)),t))}}class rN extends rp{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rB extends rm{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rz extends rf{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rj extends rg{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rY extends rb{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rU extends r_{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rH extends ry{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rV extends rv{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rW extends rx{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rq extends rw{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rG extends rk{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rK extends rE{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rX extends rF{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rZ extends rC{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rJ extends rT{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rQ extends rA{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r0 extends rS{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r1 extends rM{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r2 extends rD{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r3 extends rL{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r5 extends rI{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r4 extends rO{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}var r6=n(88183),r8=n.n(r6);rh.isAxiosError;let r7=new class{get api(){return this._client}constructor(){this._axiosInstance=rh.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>r8().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 rP(t,this._axiosInstance)}};var r9=function(t,i,n,r){return new(n||(n=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 i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};(f5=br||(br={})).DISCONNECTED="DISCONNECTED",f5.CONNECTED="CONNECTED",f5.CONNECTING="CONNECTING";let oe="SUBSCRIBED:",ot="UNAUTHORIZED:",oi="TRIGGERED:",on="EVENT:";class or{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oo.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=br.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,i){if(0===t.length)return;let n=t.indexOf(i);n>=0&&t.splice(n,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===br.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(br.CONNECTING),this._connectingDeferred=new tL,this._doConnect().then(t=>{if(this._connectingDeferred){let i=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oo.MIN_RECONNECT_DELAY,this._onStatusChanged(br.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),i.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!==br.DISCONNECTED&&this._doDisconnect())}subscribe(t,i){let n={eventSubscription:t,callback:i,deferred:new tL};return null!=this._pendingSubscription||this._status!==br.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,i),this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return r9(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)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===br.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==br.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,i,n){return r9(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+or._subscriptionCounter++;if(!this._assetEventPromise){let t;oJ.authenticated||(t={filterType:"asset",realm:oJ.displayRealm});let i={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(i,t=>{this._assetEventCallbackMap.forEach(i=>i(t))})}return this._assetEventCallbackMap.set(o,t=>{let i=t.asset.id;r?r.find(t=>i===t)&&n(t):t.asset.realm===oJ.displayRealm&&n(t)}),this._assetEventPromise.then(()=>{try{if(r&&i){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=>{n({eventType:"asset",asset:t,cause:"READ"})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),i}return o})})}subscribeAttributeEvents(t,i,n){return r9(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"+or._subscriptionCounter++;if(!this._attributeEventPromise){let t;oJ.authenticated||(t={filterType:"asset",realm:oJ.displayRealm});let i={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(i,t=>{this._attributeEventCallbackMap.forEach(i=>i(t))})}let l=i=>{let a=i.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&n(i)}):o?o.find(t=>a.id===t)&&n(i):i.realm===oJ.displayRealm&&n(i)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(i&&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(([i,n])=>{(!a||a.find(n=>n.id===t.id&&n.name===i))&&l({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:t.id,name:i}})})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),i}return s})})}_processNextSubscription(){this._status===br.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(i=>{let n=t.deferred;t.deferred=null,n&&n.resolve(i)},i=>{let n=t.deferred;t.deferred=null,n&&n.reject(i)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(i=>i(t))},0))}_onMessageReceived(t,i){let n=this._subscriptionMap.get(t);n&&n.callback(i)}_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===br.CONNECTED&&this._onStatusChanged(br.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(br.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<oo.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oo.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}or.MIN_RECONNECT_DELAY=0,or.MAX_RECONNECT_DELAY=3e4,or._subscriptionCounter=0;class oo extends or{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="+oJ.config.realm;return this._connectDeferred=new tL,(oJ.authenticated?oJ.retrieveAuthorizationHeader().then(i=>{t+="&Authorization="+i}):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 i=t.data;if(i&&i.startsWith(oe)){let t=JSON.parse(i.substring(oe.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(t.subscriptionId)}else if(i.startsWith(ot)){let t=JSON.parse(i.substring(ot.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),n.reject("Unauthorized"))}else if(i.startsWith(oi)){let t=JSON.parse(i.substring(oi.length));t.events&&t.events.forEach(i=>{this._onMessageReceived(t.subscriptionId,i)})}else if(i.startsWith(on)){let t=JSON.parse(i.substring(on.length));if(t.messageID){let i=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),i&&i.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 tL,t.subscriptionId||(t.subscriptionId=oo._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 i=on+JSON.stringify(t);this._webSocket.send(i)}_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 i=new tL;return this._repliesDeferred.set(t.messageID,i),this._webSocket.send(on+JSON.stringify(t)),i.promise}}oo._subscriptionCounter=1;let oa=["__proto__","constructor","prototype"];function os(t){return!("string"!=typeof t||0===t.length||t.length>128||oa.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%:\s]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function ol(t){return!(!os(t)||t.indexOf("/")>-1||t.indexOf("@")>-1)}let oc={lng:ol,ns:function(t){return!(!os(t)||t.indexOf("//")>-1)}};function od(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function ou(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let oh=/\{\{(.+?)\}\}/g;function op(t,i){let n=!1,r=t.replace(oh,(t,r)=>{let o=r.trim();if(oa.indexOf(o)>-1)return t;let a=i[o];if(null==a)return t;let s=oc[o]||ol,l=String(a).split("+");for(let i of l)if(!s(i))return n=!0,t;return l.join("+")});return n?null:r}let om="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?i=fetch:om&&"function"==typeof om.fetch&&(i=om.fetch);let of=ou()&&om?om.XMLHttpRequest:void 0,og="function"==typeof ActiveXObject&&om?om.ActiveXObject:void 0,ob=["__proto__","constructor","prototype"],o_=(t,i)=>{if(i&&"object"==typeof i){let n="";for(let t of Object.keys(i))ob.indexOf(t)>-1||(n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(i[t]));if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t},oy=(t,n,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(i=>{r(null,{status:t.status,data:i})}).catch(r)};if(o){let i=o(t,n);if(i instanceof Promise)return void i.then(a).catch(r)}"function"==typeof fetch?fetch(t,n).then(a).catch(r):i(t,n).then(a).catch(r)},ov=(t,n,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),i&&0!==n.indexOf("file:")){var a=n,s=r,l=o;t.queryStringParams&&(a=o_(a,t.queryStringParams));let i={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(i["Content-Type"]="application/json");let c="function"==typeof t.requestOptions?t.requestOptions(s):t.requestOptions,d={method:s?"POST":"GET",body:s?t.stringify(s):void 0,headers:i,...t._omitFetchOptions?{}:c},u="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{oy(a,d,l,u)}catch(i){if(!c||0===Object.keys(c).length||!i.message||0>i.message.indexOf("not implemented"))return l(i);try{Object.keys(c).forEach(t=>{delete d[t]}),oy(a,d,l,u),t._omitFetchOptions=!0}catch(t){l(t)}}return}if(ou()||"function"==typeof ActiveXObject){var c=n,d=r,u=o;d&&"object"==typeof d&&(d=o_("",d).slice(1)),t.queryStringParams&&(c=o_(c,t.queryStringParams));try{let i=of?new of:new og("MSXML2.XMLHTTP.3.0");i.open(d?"POST":"GET",c,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,d&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))ob.indexOf(t)>-1||i.setRequestHeader(t,n[t]);i.onreadystatechange=()=>{i.readyState>3&&u(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var ox=class{constructor(t,i={},n={}){this.services=t,this.options=i,this.allOptions=n,this.type="backend",this.init(t,i,n)}init(t,i={},n={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,i,n)=>({[i]:n||""}),parseLoadPayload:(t,i)=>void 0,request:ov,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...i},this.allOptions=n,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,i,n){this._readAny(t,t,i,i,n)}read(t,i,n){this._readAny([t],t,[i],i,n)}_readAny(t,i,n,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,n)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=op(a,{lng:t.join("+"),ns:n.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(od).join(", ")+"] namespaces=["+n.map(od).join(", ")+"]"),!1);this.loadUrl(s,o,i,r)})}loadUrl(t,i,n,r){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof r?[r]:r),a=od(function(t){if("string"!=typeof t||0===t.length)return t;try{let i=new URL(t);if(i.username||i.password)return i.username="",i.password="",i.toString();return t}catch(i){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return i("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return i("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let n=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>n.indexOf(t)>-1))return i("failed loading "+a+": "+od(t.message),!0)}if(t)return i(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,n,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return i(l,!1);i(null,s)})}create(t,i,n,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(i,n,r),s=0,l=[],c=[];t.forEach(n=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(n,i));let d=op(r,{lng:n,ns:i});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(i,n)=>{s+=1,l.push(i),c.push(n),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:i,logger:n}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{i.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(i=>{this.allOptions.ns.forEach(r=>{t.read(i,r,"read",null,null,(o,a)=>{o&&n.warn(`loading namespace ${r} for language ${i} failed`,o),!o&&a&&n.log(`loaded namespace ${r} for language ${i}`,a),t.loaded(`${i}|${r}`,o,a)})})})}};ox.type="backend";let ow=t=>(...i)=>({_$litDirective$:t,values:i});class ok{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}class oE extends ok{constructor(t){if(super(t),this.it=ek,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ek||null==t)return this._t=void 0,this.it=t;if(t===ew)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 i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}oE.directiveName="unsafeHTML",oE.resultType=1,ow(oE);class oF extends oE{}oF.directiveName="unsafeSVG",oF.resultType=2;let oC=ow(oF),oT={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var oA=function(t,i,n,r){var o,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(i,n,s):o(i,n))||s);return a>3&&s&&Object.defineProperty(i,n,s),s};class oS extends CustomEvent{constructor(){super(oS.NAME,{bubbles:!0,composed:!0})}}oS.NAME="or-iconset-added";let oM=new class{constructor(){this._icons={}}addIconSet(t,i){this._icons[t]=i,this._defaultIconSet||(this._defaultIconSet=i),i.onAdd&&i.onAdd(),window.dispatchEvent(new oS)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return ev``;let i=(t||"").split(":"),n=i.pop(),r=i.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),n&&o)?o.getIconTemplate(n):ev``}};function oD(t,i,n,r,o){let a=r||eJ.getAssetDescriptorColour(t,i),s=o||eJ.getAssetDescriptorIcon(t,n);return s||(s=eJ.getAssetDescriptorIcon("ThingAsset")),ev`<or-icon style="--or-icon-fill: ${a?"#"+a:"unset"}" icon="${s}"></or-icon>`}let oL=class extends eU{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[P`
|
|
832
|
+
`;class eU extends ez{static finalizeStyles(t){return[eY,...super.finalizeStyles(t)]}}let eH=t=>(i,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,i)}):customElements.define(t,i)},eV={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:X};function eW(t){return(i,n)=>{let r;return"object"==typeof n?((t=eV,i,n)=>{let{kind:r,metadata:o}=n,a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),a.set(n.name,t),"accessor"===r){let{name:r}=n;return{set(n){let o=i.get.call(this);i.set.call(this,n),this.requestUpdate(r,o,t)},init(i){return void 0!==i&&this.C(r,void 0,t,i),i}}}if("setter"===r){let{name:r}=n;return function(n){let o=this[r];i.call(this,n),this.requestUpdate(r,o,t)}}throw Error("Unsupported decorator location: "+r)})(t,i,n):(r=i.hasOwnProperty(n),i.constructor.createProperty(n,t),r?Object.getOwnPropertyDescriptor(i,n):void 0)}}function eq(t){return eW({...t,state:!0,attribute:!1})}let eG=(t,i,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof i&&Object.defineProperty(t,i,n),n);function eK(t,i){return(n,r,o)=>{let a=i=>i.renderRoot?.querySelector(t)??null;if(i){let t,{get:i,set:s}="object"==typeof r?n:o??(t=Symbol(),{get(){return this[t]},set(i){this[t]=i}});return eG(n,r,{get(){let t=i.call(this);return void 0===t&&(null!==(t=a(this))||this.hasUpdated)&&s.call(this,t),t}})}return eG(n,r,{get(){return a(this)}})}}function eX(i){return(n,r)=>eG(n,r,{get(){return(this.renderRoot??(t??=document.createDocumentFragment())).querySelectorAll(i)}})}function eZ(t){return(i,n)=>{let{slot:r,selector:o}=t??{},a="slot"+(r?`[name=${r}]`:":not([name])");return eG(i,n,{get(){let i=this.renderRoot?.querySelector(a),n=i?.assignedElements(t)??[];return void 0===o?n:n.filter(t=>t.matches(o))}})}}n(44532),(m6=go||(go={})).CREATE="CREATE",m6.UPDATE="UPDATE",m6.DELETE="DELETE",m6.DELETE_FINISHED="DELETE_FINISHED",(m8=ga||(ga={})).LOW="LOW",m8.MEDIUM="MEDIUM",m8.HIGH="HIGH",(m7=gs||(gs={})).MANUAL="MANUAL",m7.CLIENT="CLIENT",m7.GLOBAL_RULESET="GLOBAL_RULESET",m7.REALM_RULESET="REALM_RULESET",m7.ASSET_RULESET="ASSET_RULESET",m7.AGENT="AGENT",(m9=gl||(gl={})).OPEN="OPEN",m9.ACKNOWLEDGED="ACKNOWLEDGED",m9.IN_PROGRESS="IN_PROGRESS",m9.RESOLVED="RESOLVED",m9.CLOSED="CLOSED",(fe=gc||(gc={})).BOTTOM_LEFT="BOTTOM_LEFT",fe.BOTTOM_RIGHT="BOTTOM_RIGHT",fe.TOP_LEFT="TOP_LEFT",fe.TOP_RIGHT="TOP_RIGHT",(ft=gd||(gd={})).CREATE="CREATE",ft.READ="READ",ft.UPDATE="UPDATE",ft.DELETE="DELETE",(fi=gu||(gu={})).NONE="NONE",fi.FORECAST="FORECAST",fi.SETPOINT="SETPOINT",(fn=gh||(gh={})).DISCONNECTED="DISCONNECTED",fn.CONNECTING="CONNECTING",fn.DISCONNECTING="DISCONNECTING",fn.CONNECTED="CONNECTED",fn.DISABLED="DISABLED",fn.WAITING="WAITING",fn.ERROR="ERROR",fn.STOPPED="STOPPED",(fr=gp||(gp={})).REQUEST_START="REQUEST_START",fr.REQUEST_REPEATING="REQUEST_REPEATING",fr.REQUEST_CANCEL="REQUEST_CANCEL",fr.READY="READY",fr.COMPLETED="COMPLETED",fr.RUNNING="RUNNING",fr.CANCELLED="CANCELLED",(fo=gm||(gm={})).TOGGLE="TOGGLE",fo.INCREMENT="INCREMENT",fo.DECREMENT="DECREMENT",fo.NEGATE="NEGATE",(fa=gf||(gf={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",fa.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",fa.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",fa.INVALID_VALUE="INVALID_VALUE",fa.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",fa.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",fa.CANNOT_PROCESS="CANNOT_PROCESS",fa.QUEUE_FULL="QUEUE_FULL",fa.UNKNOWN="UNKNOWN",fa.ASSET_ID_MISSING="ASSET_ID_MISSING",fa.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(fs=gg||(gg={})).PUBLIC="PUBLIC",fs.SHARED="SHARED",fs.PRIVATE="PRIVATE",(fl=gb||(gb={})).OFF="OFF",fl.ONE_MIN="ONE_MIN",fl.FIVE_MIN="FIVE_MIN",fl.QUARTER="QUARTER",fl.ONE_HOUR="ONE_HOUR",(fc=g_||(g_={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",fc.KEEP_LAYOUT="KEEP_LAYOUT",fc.REDIRECT="REDIRECT",fc.BLOCK_DEVICE="BLOCK_DEVICE",(fd=gy||(gy={})).CSV="CSV",fd.CSV_CROSSTAB="CSV_CROSSTAB",fd.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(fu=gv||(gv={})).MINUTE="MINUTE",fu.HOUR="HOUR",fu.DAY="DAY",fu.WEEK="WEEK",fu.MONTH="MONTH",fu.YEAR="YEAR",(fh=gx||(gx={})).MIN="MIN",fh.AVG="AVG",fh.MAX="MAX",fh.DIFFERENCE="DIFFERENCE",fh.COUNT="COUNT",fh.SUM="SUM",fh.MODE="MODE",fh.MEDIAN="MEDIAN",(fp=gw||(gw={})).TERMINATING="TERMINATING",fp.DISABLED="DISABLED",fp.ALREADY_CONNECTED="ALREADY_CONNECTED",fp.UNRECOGNISED="UNRECOGNISED",fp.PERMANENT_ERROR="PERMANENT_ERROR",fp.SYNC_ERROR="SYNC_ERROR",(fm=gk||(gk={})).HTTPS="HTTPS",fm.HTTP="HTTP",fm.TCP="TCP",(ff=gE||(gE={})).GET="GET",ff.POST="POST",ff.PUT="PUT",ff.DELETE="DELETE",ff.OPTIONS="OPTIONS",ff.PATCH="PATCH",(fg=gF||(gF={})).KEYCLOAK="KEYCLOAK",fg.NONE="NONE",(fb=gC||(gC={})).WEBSOCKET="WEBSOCKET",fb.POLLING="POLLING",(f_=gT||(gT={})).INTERNAL="INTERNAL",f_.CLIENT="CLIENT",f_.GLOBAL_RULESET="GLOBAL_RULESET",f_.REALM_RULESET="REALM_RULESET",f_.ASSET_RULESET="ASSET_RULESET",(fy=gA||(gA={})).REALM="REALM",fy.USER="USER",fy.ASSET="ASSET",fy.CUSTOM="CUSTOM",(fv=gS||(gS={})).NORMAL="NORMAL",fv.HIGH="HIGH",(fx=gM||(gM={})).DEVICE="DEVICE",fx.TOPIC="TOPIC",fx.CONDITION="CONDITION",(fw=gD||(gD={})).ALWAYS="ALWAYS",fw.ONCE="ONCE",fw.HOURLY="HOURLY",fw.DAILY="DAILY",fw.WEEKLY="WEEKLY",fw.MONTHLY="MONTHLY",fw.ANNUALLY="ANNUALLY",(fk=gL||(gL={})).TITLE="TITLE",fk.SOURCE="SOURCE",fk.STATUS="STATUS",fk.SENT_ON="SENT_ON",fk.DELIVERED_ON="DELIVERED_ON",(fE=gI||(gI={})).MESSAGE_INVALID="MESSAGE_INVALID",fE.CERTIFICATE_INVALID="CERTIFICATE_INVALID",fE.UNAUTHORIZED="UNAUTHORIZED",fE.FORBIDDEN="FORBIDDEN",fE.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",fE.CONFIG_DISABLED="CONFIG_DISABLED",fE.USER_DISABLED="USER_DISABLED",fE.SERVER_ERROR="SERVER_ERROR",fE.ASSET_ERROR="ASSET_ERROR",fE.SERVER_BUSY="SERVER_BUSY",(fF=gO||(gO={})).PRIVATE="PRIVATE",fF.PROTECTED="PROTECTED",fF.PUBLIC="PUBLIC",(fC=gR||(gR={})).EXACT="EXACT",fC.BEGIN="BEGIN",fC.END="END",fC.CONTAINS="CONTAINS",(fT=gP||(gP={})).EQUALS="EQUALS",fT.GREATER_THAN="GREATER_THAN",fT.GREATER_EQUALS="GREATER_EQUALS",fT.LESS_THAN="LESS_THAN",fT.LESS_EQUALS="LESS_EQUALS",fT.BETWEEN="BETWEEN",(fA=g$||(g$={})).CREATED_ON="CREATED_ON",fA.NAME="NAME",fA.ASSET_TYPE="ASSET_TYPE",fA.PARENT_ID="PARENT_ID",fA.REALM="REALM",(fS=gN||(gN={})).RESTRICTED="RESTRICTED",fS.LINKED="LINKED",fS.REALM="REALM",(fM=gB||(gB={})).AT_LEAST_ONE="AT_LEAST_ONE",fM.ALL="ALL",fM.NONE="NONE",(fD=gz||(gz={})).AND="AND",fD.OR="OR",(fL=gj||(gj={})).CREATED_ON="CREATED_ON",fL.FIRST_NAME="FIRST_NAME",fL.LAST_NAME="LAST_NAME",fL.USERNAME="USERNAME",fL.EMAIL="EMAIL",(fI=gY||(gY={})).STOPPED="STOPPED",fI.RUNNING="RUNNING",fI.ERROR="ERROR",(fO=gU||(gU={})).JAVASCRIPT="JAVASCRIPT",fO.GROOVY="GROOVY",fO.JSON="JSON",fO.FLOW="FLOW",(fR=gH||(gH={})).READY="READY",fR.DEPLOYED="DEPLOYED",fR.COMPILATION_ERROR="COMPILATION_ERROR",fR.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",fR.EXECUTION_ERROR="EXECUTION_ERROR",fR.LOOP_ERROR="LOOP_ERROR",fR.DISABLED="DISABLED",fR.PAUSED="PAUSED",fR.EXPIRED="EXPIRED",fR.REMOVED="REMOVED",fR.EMPTY="EMPTY",(fP=gV||(gV={})).SUNRISE="SUNRISE",fP.SUNSET="SUNSET",fP.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",fP.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",fP.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",fP.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",fP.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",fP.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",fP.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",fP.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",fP.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",fP.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",fP.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",fP.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",fP.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",fP.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",fP.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",fP.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",fP.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",fP.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(f$=gW||(gW={})).NUMBER="NUMBER",f$.NUMBER_ARRAY="NUMBER_ARRAY",f$.STRING="STRING",f$.BOOLEAN="BOOLEAN",f$.TRIGGER="TRIGGER",f$.COLOR="COLOR",f$.ANY="ANY",(fN=gq||(gq={})).NEW_LINE="NEW_LINE",fN.SPACER="SPACER",(fB=gG||(gG={})).INPUT="INPUT",fB.PROCESSOR="PROCESSOR",fB.OUTPUT="OUTPUT",fB.THEN="THEN",(fz=gK||(gK={})).TEXT="TEXT",fz.MULTILINE="MULTILINE",fz.NUMBER="NUMBER",fz.DROPDOWN="DROPDOWN",fz.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",fz.CHECKBOX="CHECKBOX",fz.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",fz.COLOR="COLOR",fz.DATE="DATE",(fj=gX||(gX={})).ADD="ADD",fj.ADD_OR_REPLACE="ADD_OR_REPLACE",fj.REPLACE="REPLACE",fj.DELETE="DELETE",fj.CLEAR="CLEAR",(fY=gZ||(gZ={})).PER_ASSET="PER_ASSET",fY.GLOBAL="GLOBAL",(fU=gJ||(gJ={})).READ_ADMIN="read:admin",fU.READ_LOGS="read:logs",fU.READ_USERS="read:users",fU.READ_MAP="read:map",fU.READ_ASSETS="read:assets",fU.READ_RULES="read:rules",fU.READ_INSIGHTS="read:insights",fU.READ_ALARMS="read:alarms",fU.READ_NOTIFICATIONS="read:notifications",fU.READ_SERVICES="read:services",fU.READ_TUNNELS="read:tunnels",fU.WRITE_SERVICES="write:services",fU.WRITE_USER="write:user",fU.WRITE_ADMIN="write:admin",fU.WRITE_LOGS="write:logs",fU.WRITE_ASSETS="write:assets",fU.WRITE_ATTRIBUTES="write:attributes",fU.WRITE_RULES="write:rules",fU.WRITE_INSIGHTS="write:insights",fU.WRITE_ALARMS="write:alarms",fU.WRITE_NOTIFICATIONS="write:notifications",fU.WRITE_TUNNELS="write:tunnels",fU.READ="read",fU.WRITE="write",(fH=gQ||(gQ={})).REGISTER="REGISTER",fH.UPDATE="UPDATE",fH.DEREGISTER="DEREGISTER",(fV=g0||(g0={})).AVAILABLE="AVAILABLE",fV.UNAVAILABLE="UNAVAILABLE",(fW=g1||(g1={})).ASSET="ASSET",fW.AGENT="AGENT",fW.NOTIFICATION="NOTIFICATION",fW.ALARM="ALARM",fW.RULES="RULES",fW.PROTOCOL="PROTOCOL",fW.GATEWAY="GATEWAY",fW.MODEL_AND_VALUES="MODEL_AND_VALUES",fW.API="API",fW.DATA="DATA",(fq=g2||(g2={})).INFO="INFO",fq.WARN="WARN",fq.ERROR="ERROR",(fG=g3||(g3={})).NUMERIC="numeric",fG.DIGIT_2="2-digit",fG.FULL="full",fG.LONG="long",fG.MEDIUM="medium",fG.SHORT="short",fG.NARROW="narrow",(fK=g5||(g5={})).SECONDLY="SECONDLY",fK.MINUTELY="MINUTELY",fK.HOURLY="HOURLY",fK.DAILY="DAILY",fK.WEEKLY="WEEKLY",fK.MONTHLY="MONTHLY",fK.YEARLY="YEARLY",(fX=g4||(g4={})).OMIT="OMIT",fX.BACKWARD="BACKWARD",fX.FORWARD="FORWARD",(fZ=g6||(g6={})).JAPANESE="JAPANESE",fZ.BUDDHIST="BUDDHIST",fZ.ROC="ROC",fZ.ISLAMIC="ISLAMIC",fZ.ISO8601="ISO8601",fZ.CHINESE="CHINESE",fZ.ETHIOPIC="ETHIOPIC",fZ.HEBREW="HEBREW",fZ.GREGORIAN="GREGORIAN",(fJ=g8||(g8={})).SU="SU",fJ.MO="MO",fJ.TU="TU",fJ.WE="WE",fJ.TH="TH",fJ.FR="FR",fJ.SA="SA",(fQ=g7||(g7={})).PEOPLECOUNTERASSET="PeopleCounterAsset",fQ.MAILAGENT="MailAgent",fQ.UDPAGENT="UDPAgent",fQ.ROOMASSET="RoomAsset",fQ.CITYASSET="CityAsset",fQ.VENTILATIONASSET="VentilationAsset",fQ.TRADFRILIGHTASSET="TradfriLightAsset",fQ.CONSOLEASSET="ConsoleAsset",fQ.PRESENCESENSORASSET="PresenceSensorAsset",fQ.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",fQ.LIGHTASSET="LightAsset",fQ.KNXAGENT="KNXAgent",fQ.THETHINGSSTACKAGENT="TheThingsStackAgent",fQ.PLUGASSET="PlugAsset",fQ.CHIRPSTACKAGENT="ChirpStackAgent",fQ.WEATHERASSET="WeatherAsset",fQ.THINGASSET="ThingAsset",fQ.WEBSOCKETAGENT="WebsocketAgent",fQ.TCPAGENT="TCPAgent",fQ.GATEWAYASSET="GatewayAsset",fQ.SERIALAGENT="SerialAgent",fQ.BLUETOOTHMESHAGENT="BluetoothMeshAgent",fQ.PARKINGASSET="ParkingAsset",fQ.TRADFRIPLUGASSET="TradfriPlugAsset",fQ.SIMULATORAGENT="SimulatorAgent",fQ.SNMPAGENT="SNMPAgent",fQ.GROUPASSET="GroupAsset",fQ.BUILDINGASSET="BuildingAsset",fQ.MODBUSSERIALAGENT="ModbusSerialAgent",fQ.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",fQ.MQTTAGENT="MQTTAgent",fQ.VELBUSTCPAGENT="VelbusTCPAgent",fQ.ARTNETLIGHTASSET="ArtnetLightAsset",fQ.VELBUSSERIALAGENT="VelbusSerialAgent",fQ.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",fQ.MICROPHONEASSET="MicrophoneAsset",fQ.MODBUSTCPAGENT="ModbusTcpAgent",fQ.ZWAVEAGENT="ZWaveAgent",fQ.HTTPAGENT="HTTPAgent",fQ.DOORASSET="DoorAsset",fQ.THERMOSTATASSET="ThermostatAsset",fQ.SHIPASSET="ShipAsset",(f0=g9||(g9={})).COLOURRGB="colourRGB",f0.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",f0.PRICEHOURLY="priceHourly",f0.MQTTPORT="MQTTPort",f0.PINGDISABLED="pingDisabled",f0.FLOW="flow",f0.CHILDASSETTYPE="childAssetType",f0.LASTACCESS="lastAccess",f0.POSITION="position",f0.NETWORKKEY="networkKey",f0.UNIVERSE="universe",f0.ROUTINGMODE="routingMode",f0.MSSINUMBER="MSSINumber",f0.LASTWILLRETAIN="lastWillRetain",f0.LASTWILLTOPIC="lastWillTopic",f0.SERIALBAUDRATE="serialBaudrate",f0.SUBSCRIBEQOS="subscribeQos",f0.LEDCOUNT="lEDCount",f0.LOCKED="locked",f0.CLOUDCOVERAGE="cloudCoverage",f0.BASEURL="baseURL",f0.PROTOCOL="protocol",f0.REQUIREDVALUES="requiredValues",f0.REGION="region",f0.CONSOLEPLATFORM="consolePlatform",f0.GATEWAYSTATUS="gatewayStatus",f0.NO2LEVEL="NO2Level",f0.ATMOSPHERICPRESSURE="atmosphericPressure",f0.SERIALPORT="serialPort",f0.APPLICATIONID="applicationId",f0.TAGS="tags",f0.UNLOCK="unlock",f0.CHECKINTERVALSECONDS="checkIntervalSeconds",f0.LOCATION="location",f0.CLIENTSECRET="clientSecret",f0.WINDDIRECTION="windDirection",f0.WINDSPEED="windSpeed",f0.PARTICLESPM10="particlesPM10",f0.APPLICATIONKEY="applicationKey",f0.LENGTH="length",f0.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",f0.USERNAMEPASSWORD="usernamePassword",f0.WATERLEVEL="waterLevel",f0.CONNECTHEADERS="connectHeaders",f0.CONSOLENAME="consoleName",f0.WEBSOCKETQUERY="websocketQuery",f0.PREFERHTML="preferHTML",f0.PARITY="parity",f0.COOLING="cooling",f0.POLLINGMILLIS="pollingMillis",f0.SOILTEMPERATURE="soilTemperature",f0.SUNIRRADIANCE="sunIrradiance",f0.MESSAGEMAXLENGTH="messageMaxLength",f0.WINDGUSTSPEED="windGustSpeed",f0.LIGHTID="lightId",f0.PROXYADDRESS="proxyAddress",f0.REQUESTQUERYPARAMETERS="requestQueryParameters",f0.MQTTHOST="MQTTHost",f0.SECUREGRPC="secureGRPC",f0.MODEL="model",f0.STREET="street",f0.MANUFACTURER="manufacturer",f0.DELETEPROCESSEDMAIL="deleteProcessedMail",f0.RESUMESESSION="resumeSession",f0.ONOFF="onOff",f0.APIKEY="ApiKey",f0.CITY="city",f0.PRESENCE="presence",f0.SPACESOCCUPIED="spacesOccupied",f0.STARTTLS="startTLS",f0.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",f0.WEBSOCKETPATH="websocketPath",f0.AGENTSTATUS="agentStatus",f0.PRICEDAILY="priceDaily",f0.COUNTGROWTHMINUTE="countGrowthMinute",f0.IMONUMBER="IMONumber",f0.ATTRIBUTION="Attribution",f0.TENANTID="tenantId",f0.REQUESTHEADERS="requestHeaders",f0.HOST="host",f0.COUNTOUTMINUTE="countOutMinute",f0.MESSAGECHARSET="messageCharset",f0.CERTIFICATEALIAS="certificateAlias",f0.EMAIL="email",f0.BINDPORT="bindPort",f0.CONSOLEVERSION="consoleVersion",f0.PARTICLESPM1="particlesPM1",f0.MTU="mtu",f0.SPEED="speed",f0.MESSAGESTRIPDELIMITER="messageStripDelimiter",f0.AREA="area",f0.COUNTRY="country",f0.SHIPTYPE="shipType",f0.CONNECTSUBSCRIPTIONS="connectSubscriptions",f0.RELATIVEHUMIDITY="relativeHumidity",f0.SOURCEADDRESS="sourceAddress",f0.RAINFALL="rainfall",f0.OAUTHGRANT="oAuthGrant",f0.OZONELEVEL="ozoneLevel",f0.SEQUENCENUMBER="sequenceNumber",f0.COUNTINMINUTE="countInMinute",f0.PORT="port",f0.SUNALTITUDE="sunAltitude",f0.COUNTOUT="countOut",f0.ROOMNUMBER="roomNumber",f0.TUNNELINGSUPPORTED="tunnelingSupported",f0.ENINUMBER="ENINumber",f0.PARTICLESPM2_5="particlesPM2_5",f0.AGENTDISABLED="agentDisabled",f0.DISABLED="disabled",f0.COUNTIN="countIn",f0.MESSAGESOURCEADDRESS="messageSourceAddress",f0.PROVISIONWEATHERASSET="ProvisionWeatherAsset",f0.TIMEINJECTIONINTERVAL="timeInjectionInterval",f0.TEMPERATURESETPOINT="temperatureSetpoint",f0.CONSOLEPROVIDERS="consoleProviders",f0.COUNTTOTAL="countTotal",f0.SPACESBUFFER="spacesBuffer",f0.DEVICECONFIG="deviceConfig",f0.SPACESTOTAL="spacesTotal",f0.BINDHOST="bindHost",f0.FANSPEED="fanSpeed",f0.MESSAGECONVERTBINARY="messageConvertBinary",f0.NOTES="notes",f0.MAILFOLDERNAME="mailFolderName",f0.MESSAGEDELIMITERS="messageDelimiters",f0.TEMPERATURE="temperature",f0.SUNZENITH="sunZenith",f0.SNMPVERSIONVALUE="SNMPVersionValue",f0.BRIGHTNESS="brightness",f0.POSTALCODE="postalCode",f0.SPACESOPEN="spacesOpen",f0.HUMIDITY="humidity",f0.SOUNDLEVEL="soundLevel",f0.SECUREMODE="secureMode",f0.DIRECTION="direction",f0.STOPBITS="stopbits",f0.UVINDEX="uVIndex",f0.CONNECTURL="connectURL",f0.CLIENTID="clientId",f0.NATMODE="NATMode",f0.UPDATEONWRITE="updateOnWrite",f0.LASTWILLPAYLOAD="lastWillPayload",f0.GROUPID="groupId",f0.FOLLOWREDIRECTS="followRedirects",f0.SUNAZIMUTH="sunAzimuth",f0.MESSAGECONVERTHEX="messageConvertHex",f0.WEBSOCKETMODE="websocketMode",f0.COLOURTEMPERATURE="colourTemperature",f0.PUBLISHQOS="publishQos",f0.DATABITS="dataBits",(f1=be||(be={})).FORMAT="format",f1.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",f1.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",f1.SECRET="secret",f1.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",f1.ATTRIBUTELINKS="attributeLinks",f1.RULERESETIMMEDIATE="ruleResetImmediate",f1.RULESTATE="ruleState",f1.AGENTLINKCONFIG="agentLinkConfig",f1.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",f1.FORECAST="forecast",f1.STOREDATAPOINTS="storeDataPoints",f1.LABEL="label",f1.CONSTRAINTS="constraints",f1.UNITS="units",f1.USERCONNECTED="userConnected",f1.SHOWONDASHBOARD="showOnDashboard",f1.READONLY="readOnly",f1.MULTILINE="multiline",f1.ACCESSPUBLICWRITE="accessPublicWrite",f1.MOMENTARY="momentary",f1.AGENTLINK="agentLink",f1.ACCESSRESTRICTEDREAD="accessRestrictedRead",f1.ACCESSPUBLICREAD="accessPublicRead",(f2=bt||(bt={})).ASSETQUERY="assetQuery",f2.WSURL="WS_URL",f2.COLOURRGB="colourRGB",f2.VALUEFORMAT="valueFormat",f2.TEXT="text",f2.BYTE="byte",f2.USERNAMEANDPASSWORD="usernameAndPassword",f2.HTTPURL="HTTP_URL",f2.ATTRIBUTELINK="attributeLink",f2.ASSETID="assetID",f2.NUMBERMAP="numberMap",f2.HTTPMETHOD="HTTPMethod",f2.ATTRIBUTESTATE="attributeState",f2.POSITIVENUMBER="positiveNumber",f2.POSITIVEINTEGER="positiveInteger",f2.EXECUTIONSTATUS="executionStatus",f2.BIGINTEGER="bigInteger",f2.VALUEDESCRIPTOR="valueDescriptor",f2.PERIODDURATIONISO8601="periodDurationISO8601",f2.LONG="long",f2.DATEANDTIME="dateAndTime",f2.BOOLEANMAP="booleanMap",f2.MQTTQOS="MQTTQos",f2.NEGATIVEINTEGER="negativeInteger",f2.TCPIPPORTNUMBER="TCP_IPPortNumber",f2.GEOJSONPOINT="GEO_JSONPoint",f2.SNMPVERSION="SNMPVersion",f2.ASSETTYPE="assetType",f2.JSONOBJECT="JSONObject",f2.INTEGERMAP="integerMap",f2.BIGNUMBER="bigNumber",f2.IPADDRESS="IPAddress",f2.EMAIL="email",f2.TIMESTAMP="timestamp",f2.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",f2.ATTRIBUTEREFERENCE="attributeReference",f2.UUID="UUID",f2.INTEGER="integer",f2.OAUTHGRANT="oAuthGrant",f2.NUMBER="number",f2.DEVICECONFIGMAP="DeviceConfigMap",f2.TEXTMAP="textMap",f2.WEBSOCKETSUBSCRIPTION="websocketSubscription",f2.BOOLEAN="boolean",f2.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",f2.FORECASTCONFIGURATION="forecastConfiguration",f2.TIMEDURATIONISO8601="timeDurationISO8601",f2.TIMESTAMPISO8601="timestampISO8601",f2.CONSOLEPROVIDERS="consoleProviders",f2.MULTIVALUEDTEXTMAP="multivaluedTextMap",f2.NEGATIVENUMBER="negativeNumber",f2.PARITYBIT="Paritybit",f2.JSON="JSON",f2.CRONEXPRESSION="CRONExpression",f2.INTEGERBYTE="integerByte",f2.AGENTLINK="agentLink",f2.DIRECTION="direction",f2.HOSTORIPADDRESS="hostOrIPAddress",f2.STOPBITS="Stopbits",f2.CALENDAREVENT="calendarEvent",f2.CONNECTIONSTATUS="connectionStatus",f2.VALUECONSTRAINT="valueConstraint",(f3=bi||(bi={})).MONTH="month",f3.MILE_SCANDINAVIAN="mile_scandinavian",f3.VAR="var",f3.OUNCE="ounce",f3.HECTARE="hectare",f3.YARD="yard",f3.YEAR="year",f3.GIGA="giga",f3.JOULE="joule",f3.VOLT="volt",f3.HERTZ="hertz",f3.MILE="mile",f3.DEGREE="degree",f3.KILO="kilo",f3.BTU="btu",f3.TERA="tera",f3.FOOT="foot",f3.MEGA="mega",f3.KELVIN="kelvin",f3.CARBON="carbon",f3.DECIBEL_ATTENUATED="decibel_attenuated",f3.INCH="inch",f3.SQUARED="squared",f3.PERCENTAGE="percentage",f3.IN_HG="inch_mercury",f3.CENTI="centi",f3.GRAM="gram",f3.CUBED="cubed",f3.DAY="day",f3.RADIAN="radian",f3.OHM="ohm",f3.MINUTE="minute",f3.PART_PER_MILLION="ppm",f3.AMP="amp",f3.MASS_POUND="pound",f3.KNOT="knot",f3.METRE="metre",f3.LITRE="litre",f3.FLUID_OUNCE="fluid_ounce",f3.HOUR="hour",f3.ACRE="acre",f3.CELSIUS="celsius",f3.RPM="rpm",f3.PASCAL="pascal",f3.DECIBEL="decibel",f3.LUMEN="lumen",f3.WEEK="week",f3.FAHRENHEIT="fahrenheit",f3.WATT="watt",f3.GALLON="gallon",f3.LUX="lux",f3.MILLI="milli",f3.BAR="bar",f3.HECTO="hecto",f3.PEAK="peak",f3.SECOND="second",f3.MICRO="micro",f3.PER="per",f3.STONE="stone",bn||(bn={});class eJ{static getAssetDescriptors(){return eJ._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(i=>i.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let i=this._assetTypeInfos.find(i=>i.assetDescriptor.name===t);return i?i.assetDescriptor:void 0}static getAttributeDescriptor(t,i){if(!t)return;let n=this.getAssetTypeInfo(i||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(i=>i.name===t)}static getValueDescriptor(t){let i;if(!t)return;if(t.endsWith("[]"))for(i=0;t.endsWith("[]");)t=t.substring(0,t.length-2),i++;let n=this._valueDescriptors.find(i=>i.name===t);return n&&i&&(n=Object.assign(Object.assign({},n),{arrayDimensions:i})),n}static resolveValueDescriptor(t,i){let n;return i&&("string"==typeof i&&(n=eJ.getValueDescriptor(i)),n=i.jsonType?i:eJ.getValueDescriptor(i.type)),!n&&t&&(n=eJ.getValueDescriptor("JSON")),n}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 i=1,n=t.find(t=>null!=t);for(;Array.isArray(n);)n=n.find(t=>null!=t),i++;let r=this.resolveValueTypeFromValue(n);if(!r)return;for(;i>0;)r+="[]",i--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,i,n){let r,o;if(i&&"string"!=typeof i)r=i;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof i&&(r=this.getAttributeDescriptor(i,o)),!r&&n&&(r={type:n.type,name:n.name,meta:n.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(i=>i.name===t)}static getAssetDescriptorColour(t,i){let n=this.getAssetDescriptor(t);return n&&n.colour?n.colour:i}static getAssetDescriptorIcon(t,i){let n=this.getAssetDescriptor(t);return n&&n.icon?n.icon:i}}eJ._assetTypeInfos=[],eJ._metaItemDescriptors=[],eJ._valueDescriptors=[];let eQ=t=>"string"==typeof t,e0=()=>{let t,i,n=new Promise((n,r)=>{t=n,i=r});return n.resolve=t,n.reject=i,n},e1=t=>null==t?"":String(t),e2=/###/g,e3=t=>t&&t.includes("###")?t.replace(e2,"."):t,e5=t=>!t||eQ(t),e4=(t,i,n)=>{let r=eQ(i)?i.split("."):i,o=0;for(;o<r.length-1;){if(e5(t))return{};let i=e3(r[o]);!t[i]&&n&&(t[i]=new n),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{},++o}return e5(t)?{}:{obj:t,k:e3(r[o])}},e6=(t,i,n)=>{let{obj:r,k:o}=e4(t,i,Object);if(void 0!==r||1===i.length){r[o]=n;return}let a=i[i.length-1],s=i.slice(0,i.length-1),l=e4(t,s,Object);for(;void 0===l.obj&&s.length;)a=`${s[s.length-1]}.${a}`,l=e4(t,s=s.slice(0,s.length-1),Object),l?.obj&&void 0!==l.obj[`${l.k}.${a}`]&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},e8=(t,i)=>{let{obj:n,k:r}=e4(t,i);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},e7=(t,i,n)=>{for(let r in i)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(t,r)?eQ(t[r])||t[r]instanceof String||eQ(i[r])||i[r]instanceof String?n&&(t[r]=i[r]):e7(t[r],i[r],n):t[r]=i[r]);return t},e9={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},te=t=>eQ(t)?t.replace(/[&<>"'\/]/g,t=>e9[t]):t,tt=[" ",",","?","!",";"],ti=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let i=this.regExpMap.get(t);if(void 0!==i)return i;let n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),tn=(t,i,n=".")=>{if(!t)return;if(t[i]){if(!Object.prototype.hasOwnProperty.call(t,i))return;return t[i]}let r=i.split(n),o=t;for(let t=0;t<r.length;){let i;if(!o||"object"!=typeof o)return;let a="";for(let s=t;s<r.length;++s)if(s!==t&&(a+=n),a+=r[s],void 0!==(i=o[a])){if(["string","number","boolean"].includes(typeof i)&&s<r.length-1)continue;t+=s-t+1;break}o=i}return o},tr=t=>t?.replace(/_/g,"-"),to={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,i){console?.[t]?.apply?.(console,i)}};var ta=new class t{constructor(t,i={}){this.init(t,i)}init(t,i={}){this.prefix=i.prefix||"i18next:",this.logger=t||to,this.options=i,this.debug=i.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,n,r){return r&&!this.debug?null:(t=t.map(t=>eQ(t)?t.replace(/[\r\n\x00-\x1F\x7F]/g," "):t),eQ(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[i](t))}create(i){return new t(this.logger,{...{prefix:`${this.prefix}:${i}:`},...this.options})}clone(i){return(i=i||this.options).prefix=i.prefix||this.prefix,new t(this.logger,i)}};class ts{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(t=>{this.observers[t]||(this.observers[t]=new Map);let n=this.observers[t].get(i)||0;this.observers[t].set(i,n+1)}),this}off(t,i){if(this.observers[t]){if(!i)return void delete this.observers[t];this.observers[t].delete(i)}}once(t,i){let n=(...r)=>{i(...r),this.off(t,n)};return this.on(t,n),this}emit(t,...i){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([t,n])=>{for(let r=0;r<n;r++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(t,...i)})}}class tl extends ts{constructor(t,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=i,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,n,r={}){let o,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;t.includes(".")?o=t.split("."):(o=[t,i],n&&(Array.isArray(n)?o.push(...n):eQ(n)&&a?o.push(...n.split(a)):o.push(n)));let l=e8(this.data,o);return(!l&&!i&&!n&&t.includes(".")&&(t=o[0],i=o[1],n=o.slice(2).join(".")),!l&&s&&eQ(n))?tn(this.data?.[t]?.[i],n,a):l}addResource(t,i,n,r,o={silent:!1}){let a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,s=[t,i];n&&(s=s.concat(a?n.split(a):n)),t.includes(".")&&(s=t.split("."),r=i,i=s[1]),this.addNamespaces(i),e6(this.data,s,r),o.silent||this.emit("added",t,i,n,r)}addResources(t,i,n,r={silent:!1}){for(let r in n)(eQ(n[r])||Array.isArray(n[r]))&&this.addResource(t,i,r,n[r],{silent:!0});r.silent||this.emit("added",t,i,n)}addResourceBundle(t,i,n,r,o,a={silent:!1,skipCopy:!1}){let s=[t,i];t.includes(".")&&(s=t.split("."),r=n,n=i,i=s[1]),this.addNamespaces(i);let l=e8(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?e7(l,n,o):l={...l,...n},e6(this.data,s,l),a.silent||this.emit("added",t,i,n)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return void 0!==this.getResource(t,i)}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(t=>i[t]&&Object.keys(i[t]).length>0)}toJSON(){return this.data}}var tc={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,i,n,r,o){return t.forEach(t=>{i=this.processors[t]?.process(i,n,r,o)??i}),i}};let td=Symbol("i18next/PATH_KEY");function tu(t,i){let n,r,o,{[td]:a}=t((r=[],(o=Object.create(null)).get=(t,i)=>(n?.revoke?.(),i===td)?r:(r.push(i),(n=Proxy.revocable(t,o)).proxy),Proxy.revocable(Object.create(null),o).proxy)),s=i?.keySeparator??".",l=i?.nsSeparator??":",c=i?.enableSelector==="strict";if(a.length>1&&l){let t=i?.ns,n=c?Array.isArray(t)?t:t?[t]:null:Array.isArray(t)?t:null;if(n&&(c?n:n.length>1?n.slice(1):[]).includes(a[0]))return`${a[0]}${l}${a.slice(1).join(s)}`}return a.join(s)}let th=t=>!eQ(t)&&"boolean"!=typeof t&&"number"!=typeof t;class tp extends ts{constructor(t,i={}){super(),((t,i,n)=>{t.forEach(t=>{i[t]&&(n[t]=i[t])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ta.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,i={interpolation:{}}){let n={...i};if(null==t)return!1;let r=this.resolve(t,n);if(r?.res===void 0)return!1;let o=th(r.res);return!1!==n.returnObjects||!o}extractFromKey(t,i){let n=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=i.ns||this.options.defaultNS||[],a=n&&t.includes(n),s=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!((t,i,n)=>{i=i||"",n=n||"";let r=tt.filter(t=>!i.includes(t)&&!n.includes(t));if(0===r.length)return!0;let o=ti.getRegExp(`(${r.map(t=>"?"===t?"\\?":t).join("|")})`),a=!o.test(t);if(!a){let i=t.indexOf(n);i>0&&!o.test(t.substring(0,i))&&(a=!0)}return a})(t,n,r);if(a&&!s){let i=t.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:t,namespaces:eQ(o)?[o]:o};let a=t.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(o=a.shift()),t=a.join(r)}return{key:t,namespaces:eQ(o)?[o]:o}}translate(t,i,n){let r="object"==typeof i?{...i}:i;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==t)return"";"function"==typeof t&&(t=tu(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]),t=t.map(t=>"function"==typeof t?tu(t,{...this.options,...r}):String(t));let o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],d=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===d&&(d=":");let u=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return h?o?{res:`${c}${d}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${d}${s}`:o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:s;let p=this.resolve(t,r),m=p?.res,f=p?.usedKey||s,g=p?.exactUsedKey||s,b=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!eQ(r.count),v=tp.hasDefaultValue(r),x=y?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&y?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",k=y&&!r.ordinal&&0===r.count,E=k&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${x}`]||r[`defaultValue${w}`]||r.defaultValue,F=m;_&&!m&&v&&(F=E);let C=th(F),T=Object.prototype.toString.apply(F);if(_&&F&&C&&!["[object Number]","[object Function]","[object RegExp]"].includes(T)&&!(eQ(b)&&Array.isArray(F))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,F,{...r,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(p.res=t,p.usedParams=this.getUsedParamsDetails(r),p):t}if(a){let t=Array.isArray(F),i=t?[]:{},n=t?g:f;for(let t in F)if(Object.prototype.hasOwnProperty.call(F,t)){let o=`${n}${a}${t}`;v&&!m?i[t]=this.translate(o,{...r,defaultValue:th(E)?E[t]:void 0,...{joinArrays:!1,ns:l}}):i[t]=this.translate(o,{...r,joinArrays:!1,ns:l}),i[t]===o&&(i[t]=F[t])}m=i}}else if(_&&eQ(b)&&Array.isArray(m))(m=m.join(b))&&(m=this.extendTranslation(m,t,r,n));else{let i=!1,o=!1;!this.isValidLookup(m)&&v&&(i=!0,m=E),this.isValidLookup(m)||(o=!0,m=s);let l=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:m,h=v&&E!==m&&this.options.updateMissing;if(o||i||h){if(this.logger.log(h?"updateKey":"missingKey",u,c,y&&!h?`${s}${this.pluralResolver.getSuffix(u,r.count,r)}`:s,h?E:m),a){let t=this.resolve(s,{...r,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let n=0;n<i.length;n++)t.push(i[n]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(r.lng||this.language):t.push(r.lng||this.language);let n=(t,i,n)=>{let o=v&&n!==m?n:l;this.options.missingKeyHandler?this.options.missingKeyHandler(t,c,i,o,h,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,c,i,o,h,r),this.emit("missingKey",t,c,i,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?t.forEach(t=>{let i=this.pluralResolver.getSuffixes(t,r);k&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!i.includes(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{n([t],s+i,r[`defaultValue${i}`]||E)})}):n(t,s,E))}m=this.extendTranslation(m,t,r,p,n),o&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}${d}${s}`),(o||i)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${s}`:s,i?m:void 0,r))}return o?(p.res=m,p.usedParams=this.getUsedParamsDetails(r),p):m}extendTranslation(t,i,n,r,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let s=eQ(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){let i=t.match(this.interpolator.nestingRegexp);a=i&&i.length}let l=n.replace&&!eQ(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,n.lng||this.language||r.usedLng,n),s){let i=t.match(this.interpolator.nestingRegexp);a<(i&&i.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(...t)=>o?.[0]!==t[0]||n.context?this.translate(...t,i):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${i[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,s=eQ(a)?[a]:a;return null!=t&&s?.length&&!1!==n.applyPostProcessor&&(t=tc.handle(s,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,i={}){let n,r,o,a,s;return eQ(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(t=>"function"==typeof t?tu(t,{...this.options,...i}):t)),t.forEach(t=>{if(this.isValidLookup(n))return;let l=this.extractFromKey(t,i),c=l.key;r=c;let d=l.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let u=void 0!==i.count&&!eQ(i.count),h=u&&!i.ordinal&&0===i.count,p=void 0!==i.context&&(eQ(i.context)||"number"==typeof i.context)&&""!==i.context,m=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);d.forEach(t=>{this.isValidLookup(n)||(s=t,!this.checkedLoadedFor[`${m[0]}-${t}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${m[0]}-${t}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(r=>{let s;if(this.isValidLookup(n))return;a=r;let l=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,c,r,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(r,i.count,i));let n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.ordinal&&t.startsWith(o)&&l.push(c+t.replace(o,this.options.pluralSeparator)),l.push(c+t),h&&l.push(c+n)),p){let r=`${c}${this.options.contextSeparator||"_"}${i.context}`;l.push(r),u&&(i.ordinal&&t.startsWith(o)&&l.push(r+t.replace(o,this.options.pluralSeparator)),l.push(r+t),h&&l.push(r+n))}}for(;s=l.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,t,s,i))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}getResource(t,i,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,i,n,r):this.resourceStore.getResource(t,i,n,r)}getUsedParamsDetails(t={}){let i=t.replace&&!eQ(t.replace),n=i?t.replace:t;if(i&&void 0!==t.count&&(n={...n,count:t.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i)for(let t of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[t];return n}static hasDefaultValue(t){for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&i.startsWith("defaultValue")&&void 0!==t[i])return!0;return!1}}class tm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ta.create("languageUtils")}getScriptPartFromCode(t){if(!(t=tr(t))||!t.includes("-"))return null;let i=t.split("-");return 2===i.length||(i.pop(),"x"===i[i.length-1].toLowerCase())?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(!(t=tr(t))||!t.includes("-"))return t;let i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(eQ(t)&&t.includes("-")){let i;try{i=Intl.getCanonicalLocales(t)[0]}catch(t){}return(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)?i:this.options.lowerCaseLng?t.toLowerCase():t}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){let i;return t?(t.forEach(t=>{if(i)return;let n=this.formatLanguageCode(t);(!this.options.supportedLngs||this.isSupportedCode(n))&&(i=n)}),!i&&this.options.supportedLngs&&t.forEach(t=>{if(i)return;let n=this.getScriptPartFromCode(t);if(this.isSupportedCode(n))return i=n;let r=this.getLanguagePartFromCode(t);if(this.isSupportedCode(r))return i=r;i=this.options.supportedLngs.find(t=>t===r||(!!t.includes("-")||!!r.includes("-"))&&!!(t.includes("-")&&!r.includes("-")&&t.slice(0,t.indexOf("-"))===r||t.startsWith(r)&&r.length>1))}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i):null}getFallbackCodes(t,i){if(!t)return[];if("function"==typeof t&&(t=t(i)),eQ(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let n=t[i];return n||(n=t[this.getScriptPartFromCode(i)]),n||(n=t[this.formatLanguageCode(i)]),n||(n=t[this.getLanguagePartFromCode(i)]),n||(n=t.default),n||[]}toResolveHierarchy(t,i){let n=this.getFallbackCodes((!1===i?[]:i)||this.options.fallbackLng||[],t),r=[],o=t=>{t&&(this.isSupportedCode(t)?r.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return eQ(t)&&(t.includes("-")||t.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):eQ(t)&&o(this.formatLanguageCode(t)),n.forEach(t=>{r.includes(t)||o(this.formatLanguageCode(t))}),r}}let tf={zero:0,one:1,two:2,few:3,many:4,other:5},tg={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class tb{constructor(t,i={}){this.languageUtils=t,this.options=i,this.logger=ta.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,i={}){let n,r=tr("dev"===t?"en":t),o=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];try{n=new Intl.PluralRules(r,{type:o})}catch(o){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),tg;if(!t.match(/-|_/))return tg;let r=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(r,i)}return this.pluralRulesCache[a]=n,n}needsPlural(t,i={}){let n=this.getRule(t,i);return n||(n=this.getRule("dev",i)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,i,n={}){return this.getSuffixes(t,n).map(t=>`${i}${t}`)}getSuffixes(t,i={}){let n=this.getRule(t,i);return(n||(n=this.getRule("dev",i)),n)?n.resolvedOptions().pluralCategories.sort((t,i)=>tf[t]-tf[i]).map(t=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${t}`):[]}getSuffix(t,i,n={}){let r=this.getRule(t,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(i)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",i,n))}}let t_=(t,i,n,r=".",o=!0)=>{let a,s=void 0!==(a=e8(t,n))?a:e8(i,n);return!s&&o&&eQ(n)&&void 0===(s=tn(t,n,r))&&(s=tn(i,n,r)),s},ty=t=>t.replace(/\$/g,"$$$$");class tv{constructor(t={}){this.logger=ta.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:i,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:b,alwaysFormat:_}=t.interpolation;this.escape=void 0!==i?i:te,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"{{",this.suffix=s?s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=g||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==_&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(t,i)=>t?.source===i?(t.lastIndex=0,t):RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,i,n,r){let o,a,s,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=t=>{if(!t.includes(this.formatSeparator)){let o=t_(i,l,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...i,interpolationkey:t}):o}let o=t.split(this.formatSeparator),a=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(t_(i,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...i,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&"string"==typeof t&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let d=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>t},{regex:this.regexp,safeValue:t=>this.escapeValue?this.escape(t):t}].forEach(i=>{for(s=0;o=i.regex.exec(t);){let n=o[1].trim();if(void 0===(a=c(n)))if("function"==typeof d){let i=d(t,o,r);a=eQ(i)?i:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else if(u){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),a="";else eQ(a)||this.useRawValueToEscape||(a=e1(a));let l=i.safeValue(a);if(t=t.replace(o[0],ty(l)),u?(i.regex.lastIndex+=l.length,i.regex.lastIndex-=o[0].length):i.regex.lastIndex=0,++s>=this.maxReplaces)break}}),t}nest(t,i,n={}){let r,o,a,s=(t,i)=>{let n=this.nestingOptionsSeparator;if(!t.includes(n))return t;let r=t.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),o=`{${r[1]}`;t=r[0];let s=(o=this.interpolate(o,a)).match(/'/g),l=o.match(/"/g);((s?.length??0)%2!=0||l)&&(l?.length??0)%2==0||(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),i&&(a={...i,...a})}catch(i){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,i),`${t}${n}${o}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,t};for(;r=this.nestingRegexp.exec(t);){let l=[];(a=(a={...n}).replace&&!eQ(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==c&&(l=r[1].slice(c).split(this.formatSeparator).map(t=>t.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),(o=i(s.call(this,r[1].trim(),a),a))&&r[0]===t&&!eQ(o))return o;eQ(o)||(o=e1(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),o=""),l.length&&(o=l.reduce((t,i)=>this.format(t,i,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}let tx=t=>{let i={};return(n,r,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=r+JSON.stringify(a),l=i[s];return l||(l=t(tr(r),o),i[s]=l),l(n)}},tw=t=>(i,n,r)=>t(tr(n),r)(i);class tk{constructor(t={}){this.logger=ta.create("formatter"),this.options=t,this.init(t)}init(t,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";let n=i.cacheInBuiltFormats?tx:tw;this.formats={number:n((t,i)=>{let n=new Intl.NumberFormat(t,{...i});return t=>n.format(t)}),currency:n((t,i)=>{let n=new Intl.NumberFormat(t,{...i,style:"currency"});return t=>n.format(t)}),datetime:n((t,i)=>{let n=new Intl.DateTimeFormat(t,{...i});return t=>n.format(t)}),relativetime:n((t,i)=>{let n=new Intl.RelativeTimeFormat(t,{...i});return t=>n.format(t,i.range||"day")}),list:n((t,i)=>{let n=new Intl.ListFormat(t,{...i});return t=>n.format(t)})}}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=tx(i)}format(t,i,n,r={}){if(!i||null==t)return t;let o=i.split(this.formatSeparator),a=[];for(let t=0;t<o.length;t++){let i=o[t];for(;i.indexOf("(")>-1&&!i.includes(")")&&t+1<o.length;)i=`${i}${this.formatSeparator}${o[++t]}`;a.push(i)}return a.reduce((t,i)=>{let{formatName:o,formatOptions:a}=(t=>{let i=t.toLowerCase().trim(),n={};if(t.includes("(")){let r=t.split("(");i=r[0].toLowerCase().trim();let o=r[1].slice(0,-1);"currency"!==i||o.includes(":")?"relativetime"!==i||o.includes(":")?o.split(";").forEach(t=>{if(t){let[i,...r]=t.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),a=i.trim();n[a]||(n[a]=o),"false"===o&&(n[a]=!1),"true"===o&&(n[a]=!0),isNaN(o)||(n[a]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:i,formatOptions:n}})(i);if(this.formats[o]){let i=t;try{let s=r?.formatParams?.[r.interpolationkey]||{},l=s.locale||s.lng||r.locale||r.lng||n;i=this.formats[o](t,l,{...a,...r,...s})}catch(t){this.logger.warn(t)}return i}return this.logger.warn(`there was no format function for ${o}`),t},t)}}class tE extends ts{constructor(t,i,n,r={}){super(),this.backend=t,this.store=i,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ta.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(t,i,n,r){let o={},a={},s={},l={};return t.forEach(t=>{let r=!0;i.forEach(i=>{let s=`${t}|${i}`;!n.reload&&this.store.hasResourceBundle(t,i)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===a[s]&&(a[s]=!0):(this.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[i]&&(l[i]=!0)))}),r||(s[t]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,i,n){let r=t.split("|"),o=r[0],a=r[1];i&&this.emit("failedLoading",o,a,i),!i&&n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&n&&(this.state[t]=0);let s={};this.queue.forEach(n=>{((t,i,n)=>{let{obj:r,k:o}=e4(t,i,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],a),void 0!==n.pending[t]&&(delete n.pending[t],n.pendingCount--),i&&n.errors.push(i),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(t=>{s[t]||(s[t]={});let i=n.loaded[t];i.length&&i.forEach(i=>{void 0===s[t][i]&&(s[t][i]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(t=>!t.done)}read(t,i,n,r=0,o=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:i,fcName:n,tried:r,wait:o,callback:a});this.readingCalls++;let s=(s,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}s&&l&&r<this.maxRetries?setTimeout(()=>{this.read(t,i,n,r+1,2*o,a)},o):a(s,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(t,i);n&&"function"==typeof n.then?n.then(t=>s(null,t)).catch(s):s(null,n)}catch(t){s(t)}return}return l(t,i,s)}prepareLoading(t,i,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();eQ(t)&&(t=this.languageUtils.toResolveHierarchy(t)),eQ(i)&&(i=[i]);let o=this.queueLoad(t,i,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(t=>{this.loadOne(t)})}load(t,i,n){this.prepareLoading(t,i,{},n)}reload(t,i,n){this.prepareLoading(t,i,{reload:!0},n)}loadOne(t,i=""){let n=t.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,a)=>{n&&this.logger.warn(`${i}loading namespace ${o} for language ${r} failed`,n),!n&&a&&this.logger.log(`${i}loaded namespace ${o} for language ${r}`,a),this.loaded(t,n,a)})}saveMissing(t,i,n,r,o,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i))return void this.logger.warn(`did not save key "${n}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;(o=5===c.length?c(t,i,n,r,l):c(t,i,n,r))&&"function"==typeof o.then?o.then(t=>s(null,t)).catch(s):s(null,o)}catch(t){s(t)}else c(t,i,n,r,s,l)}t&&t[0]&&this.store.addResource(t[0],i,n,r)}}}let tF=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let i={};if("object"==typeof t[1]&&(i=t[1]),eQ(t[1])&&(i.defaultValue=t[1]),eQ(t[2])&&(i.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){let n=t[3]||t[2];Object.keys(n).forEach(t=>{i[t]=n[t]})}return i},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),tC=t=>(eQ(t.ns)&&(t.ns=[t.ns]),eQ(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),eQ(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),tT=()=>{};class tA extends ts{constructor(t={},i){if(super(),this.options=tC(t),this.services={},this.logger=ta,this.modules={external:[]},(t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(i=>{"function"==typeof t[i]&&(t[i]=t[i].bind(t))})})(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(t={},i){this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),null==t.defaultNS&&t.ns&&(eQ(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let n=tF();this.options={...n,...this.options,...tC(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;this.modules.logger?ta.init(r(this.modules.logger),this.options):ta.init(null,this.options),t=this.modules.formatter?this.modules.formatter:tk;let i=new tm(this.options);this.store=new tl(this.options.resources,this.options);let n=this.services;n.logger=ta,n.resourceStore=this.store,n.languageUtils=i,n.pluralResolver=new tb(i,{prepend:this.options.pluralSeparator}),t&&(n.formatter=r(t),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new tv(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new tE(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(t,...i)=>{this.emit(t,...i)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new tp(this.services,this.options),this.translator.on("*",(t,...i)=>{this.emit(t,...i)}),this.modules.external.forEach(t=>{t.init&&t.init(this)})}if(this.format=this.options.interpolation.format,i||(i=tT),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=(...i)=>this.store[t](...i)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=(...i)=>(this.store[t](...i),this)});let o=e0(),a=()=>{let t=(t,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),i(t,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),o}loadResources(t,i=tT){let n=i,r=eQ(t)?t:this.language;if("function"==typeof t&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let t=[],i=i=>{i&&"cimode"!==i&&this.services.languageUtils.toResolveHierarchy(i).forEach(i=>{"cimode"!==i&&(t.includes(i)||t.push(i))})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(t=>i(t)),this.options.preload?.forEach?.(t=>i(t)),this.services.backendConnector.load(t,this.options.ns,t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(t)})}else n(null)}reloadResources(t,i,n){let r=e0();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof i&&(n=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),n||(n=tT),this.services.backendConnector.reload(t,i,t=>{r.resolve(),n(t)}),r}use(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&tc.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!["cimode","dev"].includes(t)){for(let t=0;t<this.languages.length;t++){let i=this.languages[t];if(!["cimode","dev"].includes(i)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,i){this.isLanguageChangingTo=t;let n=e0();this.emit("languageChanging",t);let r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(o,a)=>{a?this.isLanguageChangingTo===t&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,n.resolve((...t)=>this.t(...t)),i&&i(o,(...t)=>this.t(...t))},a=i=>{t||i||!this.services.languageDetector||(i=[]);let n=eQ(i)?i:i&&i[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(eQ(i)?[i]:i);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,t=>{o(t,a)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),n}getFixedT(t,i,n,r){let o=r?.scopeNs,a=(t,i,...r)=>{let s,l;(s="object"!=typeof i?this.options.overloadTranslationOptionHandler([t,i].concat(r)):{...i}).lng=s.lng||a.lng,s.lngs=s.lngs||a.lngs;let c=void 0!==s.ns&&null!==s.ns;s.ns=s.ns||a.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||n||a.keyPrefix);let d={...this.options,...s};Array.isArray(o)&&!c&&(d.ns=o),"function"==typeof s.keyPrefix&&(s.keyPrefix=tu(s.keyPrefix,d));let u=this.options.keySeparator||".";return s.keyPrefix&&Array.isArray(t)?l=t.map(t=>("function"==typeof t&&(t=tu(t,d)),`${s.keyPrefix}${u}${t}`)):("function"==typeof t&&(t=tu(t,d)),l=s.keyPrefix?`${s.keyPrefix}${u}${t}`:t),this.t(l,s)};return eQ(t)?a.lng=t:a.lngs=t,a.ns=i,a.keyPrefix=n,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=i.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let a=(t,i)=>{let n=this.services.backendConnector.state[`${t}|${i}`];return -1===n||0===n||2===n};if(i.precheck){let t=i.precheck(this,a);if(void 0!==t)return t}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!r||a(o,t)))}loadNamespaces(t,i){let n=e0();return this.options.ns?(eQ(t)&&(t=[t]),t.forEach(t=>{this.options.ns.includes(t)||this.options.ns.push(t)}),this.loadResources(t=>{n.resolve(),i&&i(t)}),n):(i&&i(),Promise.resolve())}loadLanguages(t,i){let n=e0();eQ(t)&&(t=[t]);let r=this.options.preload||[],o=t.filter(t=>!r.includes(t)&&this.services.languageUtils.isSupportedCode(t));return o.length?(this.options.preload=r.concat(o),this.loadResources(t=>{n.resolve(),i&&i(t)}),n):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let i=new Intl.Locale(t);if(i&&i.getTextInfo){let t=i.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}let i=this.services?.languageUtils||new tm(tF());return t.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(i.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},i){let n=new tA(t,i);return n.createInstance=tA.createInstance,n}cloneInstance(t={},i=tT){let n=t.forkResourceStore;n&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},o=new tA(r);if((void 0!==t.debug||void 0!==t.prefix)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(t=>{o[t]=this[t]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new tl(Object.keys(this.store.data).reduce((t,i)=>(t[i]={...this.store.data[i]},t[i]=Object.keys(t[i]).reduce((n,r)=>(n[r]={...t[i][r]},n),t[i]),t),{}),r),o.services.resourceStore=o.store),t.interpolation){let i={...tF().interpolation,...this.options.interpolation,...t.interpolation},n={...r,interpolation:i};o.services.interpolator=new tv(n)}return o.translator=new tp(o.services,r),o.translator.on("*",(t,...i)=>{o.emit(t,...i)}),o.init(r,i),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let tS=tA.createInstance();tS.createInstance,tS.dir,tS.init,tS.loadResources,tS.reloadResources,tS.use,tS.changeLanguage,tS.getFixedT,tS.t,tS.exists,tS.setDefaultNamespace,tS.hasLoadedNamespace,tS.loadNamespaces,tS.loadLanguages;var tM=n(14867),tD=n.n(tM);n(83472);class tL{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,i)=>{this._resolve=t,this._reject=i}),Object.freeze(this)}}function tI(t,i,n=!0){if(null==t||null==i)return t===i;if(t.constructor!==i.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===i;if(t===i||t.valueOf()===i.valueOf())return!0;if(Array.isArray(t)&&t.length!==i.length||t instanceof Date||!(t instanceof Object)||!(i instanceof Object))return!1;if(n){if(Array.isArray(t))return t.every((t,n)=>tI(t,i[n]));let n=Object.keys(t);return Object.keys(i).every(t=>-1!==n.indexOf(t))&&n.every(n=>tI(t[n],i[n]))}return!1}function tO(t){if(null==t)return"";let i=!1;return t.split(/([A-Z]|\d)/).map((t,n,r)=>{if(!t)return t;if(!i)return i=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let i=!r[n-1]||"_"===r[n-1],o=n+1<r.length&&r[n+1]&&"_"!==r[n+1],a=n+3>r.length||!r[n+1]&&!r[n+3];(!i||o)&&(t=" "+t),!o&&(i||a)||(t=t.toLowerCase())}return t}).join("").trim()}function tR(t,i){if(i===t)return!0;let n=t.endsWith("*"),r=!n&&t.startsWith("*"),o=!n&&!r&&t.startsWith("^")&&t.endsWith("$");if(n&&i.startsWith(t.substr(0,t.length-1))||r&&i.endsWith(t.substr(1)))return!0;if(o)try{return new RegExp(t).test(i)}catch(t){console.error("Failed to compile needle as a RegExp: "+t)}return!1}function tP(t,i){return Object.keys(t).find(n=>t[n]===i)}let t$=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];function tN(t,i,n,r,o,a,s){let l="";if(a?Array.isArray(a)?l+=a.toString().replace(" ",""):l+=a.toString():l+="0",l+=" ",o?Array.isArray(o)?l+=o.toString().replace(" ",""):l+=o.toString():l+="0",l+=" ",r?Array.isArray(r)?l+=r.toString().replace(" ",""):l+=r.toString():l+="0",l+=" ",n?Array.isArray(n)?l+=n.toString().replace(" ",""):l+=n.toString():l+="*",l+=" ",i)if(Array.isArray(i))if("number"==typeof i[0]){let t=[];i.forEach(i=>{t.push(t$[i].toString())}),l+=t.toString().replace(" ","")}else l+=i.toString().replace(" ","");else l+=i.toString();else l+="*";return l+=" ",s?l+=s.toString():l+="?",l+=" ",t?Array.isArray(t)?l+=t.toString().replace(" ",""):l+=t:l+="*",l}function tB(t,i){let n=t.split(" ");if(!Number.isNaN(Number(n[0]))&&!Number.isNaN(Number(n[1]))&&!Number.isNaN(Number(n[2]))&&(!Number.isNaN(Number(n[3]))||"*"==n[3])){let t=(!Number.isNaN(Number(n[6]))?n[6]:new Date().getFullYear()).toString(),r="";r=1==(r="*"!=n[4]?t$.indexOf(n[4]).toString():new Date().getMonth().toString()).length?"0"+r:r;let o=1==n[3].length&&"*"!=n[3]?"0"+n[3]:n[3].replace("*","01"),a=1==n[2].length&&"*"!=n[2]?"0"+n[2]:n[2].replace("*","00"),s=1==n[1].length&&"*"!=n[1]?"0"+n[1]:n[1].replace("*","00"),l=1==n[0].length&&"*"!=n[0]?"0"+n[0]:n[0].replace("*","00");if(t.length>0&&r.length>0)if(i)return tD().utc({year:Number(t),month:Number(r),date:Number(o),hour:Number(a),minute:Number(s),second:Number(l)}).toISOString();else return tD()({year:Number(t),month:Number(r),date:Number(o),hour:Number(a),minute:Number(s),second:Number(l)}).toISOString()}}function tz(t,i,n){let r="string"==typeof t?t:t.name;return i&&i.meta&&i.meta.hasOwnProperty(r)?i.meta[r]:n&&n.meta?n.meta[r]:void 0}function tj(t){return("string"==typeof t&&(t=eJ.getAssetDescriptor(t)),t)?tS.t("label.asset."+t.name,{defaultValue:tO(t.name)}):""}function tY(t,i){let n="string"==typeof t?eJ.getMetaItemDescriptor(t):t;return n?{name:n.name,type:n.type,value:i}:{name:typeof t,type:eJ.resolveValueTypeFromValue(i),value:i}}function tU(t,i,n,r,o){return function(t,i,n,r,o,a){let s=tG("label",t,i,n,o),l="";if(s||(s=tz("label",t,i&&i.meta?i:void 0)),r&&(l=tW(tq("units",t,i,n,o))),!s){let n=t?t.name:i?"string"==typeof i?i:i.name:void 0;s=a||(n?tO(n):void 0)}return s?s+(l?" ("+l+")":""):l}(t,i,n,r,!0,o)}function tH(t,i,n,r,o,a){let s=tV(t?t.value:void 0,()=>tq("format",t,i,n,o),void 0,a),l=tq("units",t,i,n,!0);return r&&l&&l.length&&(s=tW(tq("units",t,i,n,o),s)),s}function tV(t,i,n,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=i&&i();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(n||tS.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?tS.t("on"):tS.t("off")),r.asOpenClosed&&(o=t?tS.t("open"):tS.t("closed")),r.asPressedReleased&&(o=t?tS.t("pressed"):tS.t("released"));break;case"object":if(r.momentJsFormat)o=tD()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let i,n=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),i=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-i.getTime())/864e5+1)/7));o="2-digit"===r.week?String(n).padStart(2,"0"):Number(n).toString(10)}else o=new Intl.DateTimeFormat(n||tS.language,r).format(t)}else o=Object(t).toString()}return o}function tW(t,i){if(!t)return"";i||(i="");let n=t.map((t,n)=>{if(3!==t.length||t.toUpperCase()!==t)return tS.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(tS.language,{currency:t,style:"currency"}).formatToParts();if(0!==n||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!i)return r[0].value;i=r[0].value+i}}).join("");return i.length>0?i+" "+n:n}function tq(t,i,n,r,o){let a,s=[],l=tG(t,i&&"string"==typeof i?i:i?i.name:n?"string"==typeof n?n:n.name:void 0,n,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(i&&i.meta&&(a=tz(t,i,n)))if("format"!==t)return a;else s.push(a);if(n&&"string"!=typeof n&&n.hasOwnProperty(t)){if(a=n[t],"format"!==t)return a;s.push(a)}if(n&&n.type){if(a=eJ.getValueDescriptor(n.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 tG(t,i,n,r,o,a){let s;if(i?s="string"==typeof i?i:i.name:n&&(s="string"==typeof n?n:n.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),n&&"string"!=typeof n&&(l.push(c+n.type+"."+s),l.push(c+n.type)),l.push(c+s),l.length>0)return tS.t(l,{defaultValue:a||""})}function tK(t,i){let n=i.ref.name;if(t.attributes)if(i.deleted)delete t.attributes[n];else{let r=t.attributes[n];r&&(r.value=i.value,r.timestamp=i.timestamp)}return Object.assign({},t)}function tX(t){return(i,n)=>{let r=t(i),o=t(n);return r||o?r&&!o?1:!r&&o?-1:r-o:0}}function tZ(t){return(i,n)=>{let r=t(i),o=t(n);return r||o?r&&!o?1:!r&&o?-1:r.localeCompare(o):0}}function tJ(t,i){let n=new tL;return t.dispatchEvent(i),window.setTimeout(()=>{n.resolve(i.detail)}),n.promise}function tQ(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}class t0{constructor(t){t&&Object.assign(this,t)}matches(t){var i,n,r,o,a,s,l;if((null==(i=this.ids)?void 0:i.length)&&(!t.id||!this.ids.includes(t.id))||(null==(n=this.types)?void 0:n.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(i=>!i.id||t.parentId===i.id))return!1;if(null==(a=this.paths)?void 0:a.length){let i=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var n;return(null!=(n=t.path)?n:[]).every((t,n)=>i[n]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(i=>t0._evalValuePredicate(t.name,i)))&&(!this.attributes||t0._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!t0._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?t0._collectNames(this.attributes):[]}static _evalValuePredicate(t,i){var n;switch(i.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==i.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==i.caseSensitive?i.value:null==(n=i.value)?void 0:n.toLowerCase();switch(i.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return i.negate?!r:r}case"boolean":return t===i.value;case"number":{let n;if("number"!=typeof t)return!1;switch(i.operator){case"GREATER_THAN":n=t>i.value;break;case"GREATER_EQUALS":n=t>=i.value;break;case"LESS_THAN":n=t<i.value;break;case"LESS_EQUALS":n=t<=i.value;break;case"BETWEEN":n=t>=i.value&&t<=i.rangeValue;break;default:n=t===i.value}return i.negate?!n:n}}return!1}static _evalPredicate(t,i){var n,r;let o=null==(n=i.name)?void 0:n.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!i.negated;let s=!i.value||t0._evalValuePredicate(a.value,i.value);return i.negated?!s:s}static _evalGroup(t,i){var n,r,o;let a=null!=(n=i.operator)?n:"AND",s=[...(null!=(r=i.items)?r:[]).map(i=>t0._evalPredicate(t,i)),...(null!=(o=i.groups)?o:[]).map(i=>t0._evalGroup(t,i))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var i,n;return[...(null!=(i=t.items)?i:[]).map(t=>{var i;return null==(i=t.name)?void 0:i.value}).filter(t=>!!t),...(null!=(n=t.groups)?n:[]).flatMap(t=>t0._collectNames(t))]}}t0._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var t1=function(t,i,n,r){return new(n||(n=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 i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};let t2=n(74461);class t3{constructor(t,i,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=i,this._enableCompleteCallback=n,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 u=t3._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=u.providers;for(let t of(u.providers={},d)){let i=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};u.providers[t]=i}let m=oJ.getAppName();m.length>0&&0>u.apps.indexOf(m)&&u.apps.push(m),this._registration=u,o&&(u.name=o),a&&(u.version=a),s&&(u.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 t1(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()),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 t1(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 i=this._pendingProviderEnables[t];yield this.enableProvider(i)}})}enableProvider(t,i){return t1(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 n={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:i},r=yield this.sendProviderMessage(n,!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().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return t1(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 i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,i})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,i){return t1(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(!i)return void this._doSendProviderMessage(t);let n=t.provider+t.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new tL,o=()=>{delete this._pendingProviderPromises[n],r.reject("No response from provider")};return this._pendingProviderPromises[n]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,i)=>{this._registrationTimer=window.setTimeout(()=>t1(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),i(t)}}))})}_sendRegistration(t){return t1(this,void 0,void 0,function*(){this._normaliseRegistration();let i=!!this._registration.id;try{let t=yield oJ.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(t&&i&&t3._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(t){let i=t&&t.response?t.response.status:void 0;return 403===i||409===i}storeData(t,i){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:i},!1)}retrieveData(t){return t1(this,void 0,void 0,function*(){let i=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([i,new Promise((t,i)=>setTimeout(i,2e3))]);if(t&&t.value){let i=t.value;return"null"===i?void 0:i}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,i){this._providerMessageListeners[t.provider+t.action]=i}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,i){let n={type:t,data:i};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_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 i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(i):window.localStorage.setItem(i,JSON.stringify(t.value))}break;case"RETRIEVE":{let i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(i);if(null!==n)try{n=JSON.parse(n)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:i,value:n}))}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 i=JSON.parse(t),n=i.provider,r=i.action,o=this._pendingProviderPromises[n+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+r],o[0].resolve(i));let a=this._providerMessageListeners[n+r];a&&a(i)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:t2.name,version:t2.version,platform:t2.os.toString(),apps:[],model:((t2.manufacturer?t2.manufacturer+" ":"")+(t2.product?t2.product:"")).trim()}}_initialiseProvider(t){return t1(this,void 0,void 0,function*(){let i;console.debug("Console: initialising provider '"+t+"'");try{i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=i.version,this._registration.providers[t].requiresPermission=i.requiresPermission,this._registration.providers[t].hasPermission=i.hasPermission,this._registration.providers[t].success=i.success,this._registration.providers[t].enabled=i.enabled,this._registration.providers[t].disabled=i.disabled,this._registration.providers[t].data=i.data}catch(t){console.error(t),i={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(i.success||(console.debug("Provider initialisation failed: '"+t+"'"),i.disabled=!0,this._registration.providers[t].disabled=!0),i.disabled||i.enabled){let i=this._pendingProviderEnables.indexOf(t);i>=0&&this._pendingProviderEnables.splice(i,1)}})}}function t5(t,i){return function(){return t.apply(i,arguments)}}let{toString:t4}=Object.prototype,{getPrototypeOf:t6}=Object,{iterator:t8,toStringTag:t7}=Symbol,t9=(({hasOwnProperty:t})=>(i,n)=>t.call(i,n))(Object.prototype),ie=t=>"string"==typeof t&&("__proto__"===t||"constructor"===t||"prototype"===t),it=(t,i,n)=>t===Object.prototype||!n&&null===i,ii=(t,i)=>{let n=t,r=[];for(;null!=n&&-1===r.indexOf(n);){r.push(n);let o=t6(n);if(it(n,o,n===t))break;if(t9(n,i))return!0;n=o}return!1},ir=(h=Object.create(null),t=>{let i=t4.call(t);return h[i]||(h[i]=i.slice(8,-1).toLowerCase())}),io=t=>(t=t.toLowerCase(),i=>ir(i)===t),ia=t=>i=>typeof i===t,{isArray:is}=Array,il=ia("undefined");function ic(t){return null!==t&&!il(t)&&null!==t.constructor&&!il(t.constructor)&&ih(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let id=io("ArrayBuffer"),iu=ia("string"),ih=ia("function"),ip=ia("number"),im=t=>null!==t&&"object"==typeof t,ig=t=>{if(!im(t))return!1;let i=t6(t);return(null===i||i===Object.prototype||null===t6(i))&&!ii(t,t7)&&!ii(t,t8)},ib=io("Date"),i_=io("File"),iy=io("Blob"),iv=io("FileList"),ix=io("Set"),iw="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ik=void 0!==iw.FormData?iw.FormData:void 0,iE=io("URLSearchParams"),[iF,iC,iT,iA]=["ReadableStream","Request","Response","Headers"].map(io);function iS(t,i,{allOwnKeys:n=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),is(t))for(r=0,o=t.length;r<o;r++)i.call(null,t[r],r,t);else{let o;if(ic(t))return;let a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],i.call(null,t[o],o,t)}}function iM(t,i){let n;if(ic(t))return null;i=i.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(i===(n=r[o]).toLowerCase())return n;return null}let iD="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,iL=t=>!il(t)&&t!==iD,iI=(p="u">typeof Uint8Array&&t6(Uint8Array),t=>p&&t instanceof p),iO=io("HTMLFormElement"),{propertyIsEnumerable:iR}=Object.prototype,iP=io("RegExp"),i$=(t,i)=>{let n=Object.getOwnPropertyDescriptors(t),r={};iS(n,(n,o)=>{let a;!1!==(a=i(n,o,t))&&(r[o]=a||n)}),Object.defineProperties(t,r)},iN=io("AsyncFunction"),iB=(m2="function"==typeof setImmediate,m3=ih(iD.postMessage),m2?setImmediate:m3?(m5=`axios@${Math.random()}`,m4=[],iD.addEventListener("message",({source:t,data:i})=>{t===iD&&i===m5&&m4.length&&m4.shift()()},!1),t=>{m4.push(t),iD.postMessage(m5,"*")}):t=>setTimeout(t)),iz="u">typeof queueMicrotask?queueMicrotask.bind(iD):"u">typeof process&&process.nextTick||iB,ij=t=>null!=t&&ih(t[t8]),iY={isArray:is,isArrayBuffer:id,isBuffer:ic,isFormData:t=>{if(!t)return!1;if(ik&&t instanceof ik)return!0;let i=t6(t);if(!i||i===Object.prototype||!ih(t.append))return!1;let n=ir(t);return"formdata"===n||"object"===n&&ih(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&id(t.buffer)},isString:iu,isNumber:ip,isBoolean:t=>!0===t||!1===t,isObject:im,isPlainObject:ig,isEmptyObject:t=>{if(!im(t)||ic(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:iF,isRequest:iC,isResponse:iT,isHeaders:iA,isUndefined:il,isDate:ib,isFile:i_,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:iy,isRegExp:iP,isFunction:ih,isStream:t=>im(t)&&ih(t.pipe),isURLSearchParams:iE,isTypedArray:iI,isFileList:iv,forEach:iS,merge:function t(...i){let{caseless:n,skipUndefined:r}=iL(this)&&this||{},o={},a=(i,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&"string"==typeof a&&iM(o,a)||a,l=t9(o,s)?o[s]:void 0;ig(l)&&ig(i)?o[s]=t(l,i):ig(i)?o[s]=t({},i):is(i)?o[s]=i.slice():r&&il(i)||(o[s]=i)};for(let t=0,n=i.length;t<n;t++){let n=i[t];if(!n||ic(n)||(iS(n,a),"object"!=typeof n||is(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let t=0;t<r.length;t++){let i=r[t];iR.call(n,i)&&a(n[i],i)}}return o},extend:(t,i,n,{allOwnKeys:r}={})=>(iS(i,(i,r)=>{n&&ih(i)?Object.defineProperty(t,r,{__proto__:null,value:t5(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:i,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,i,n,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:i.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,i,n,r)=>{let o,a,s,l={};if(i=i||{},null==t)return i;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,i))&&!l[s]&&(i[s]=t[s],l[s]=!0);t=!1!==n&&t6(t)}while(t&&(!n||n(t,i))&&t!==Object.prototype);return i},kindOf:ir,kindOfTest:io,endsWith:(t,i,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=i.length;let r=t.indexOf(i,n);return -1!==r&&r===n},toArray:t=>{if(!t)return null;if(is(t))return t;let i=t.length;if(!ip(i))return null;let n=Array(i);for(;i-- >0;)n[i]=t[i];return n},forEachEntry:(t,i)=>{let n,r=(t&&t[t8]).call(t);for(;(n=r.next())&&!n.done;){let r=n.value;i.call(t,r[0],r[1])}},matchAll:(t,i)=>{let n,r=[];for(;null!==(n=t.exec(i));)r.push(n);return r},isHTMLForm:iO,hasOwnProperty:t9,hasOwnProp:t9,hasOwnInPrototypeChain:ii,getSafeProp:(t,i)=>null!=t&&ii(t,i)?t[i]:void 0,toSafeFlatObject:t=>{if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let i=t6(t);if(null===i&&(t=>{if(!Object.isExtensible(t))return!1;let i=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&i.push(...Object.getOwnPropertySymbols(t)),i.every(i=>{if(ie(i))return!1;let n=Object.getOwnPropertyDescriptor(t,i);return!!n&&n.configurable&&!0===n.writable})})(t))return t;let n=Object.create(null),r=Object.create(null),o=[],a=t;for(;null!=a&&-1===o.indexOf(a);){o.push(a);let s=a===t?i:t6(a);if(it(a,s,a===t))break;let l=Object.getOwnPropertyNames(a);for(let i of(Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a)),l))!ie(i)&&(t9(r,i)||(n[i]=t[i],r[i]=!0));a=s}return n},reduceDescriptors:i$,freezeMethods:t=>{i$(t,(i,n)=>{if(ih(t)&&["arguments","caller","callee"].includes(n))return!1;if(ih(t[n])){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(t,i)=>{let n={};return(is(t)?t:String(t).split(i)).forEach(t=>{n[t]=!0}),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,n){return i.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,i)=>null!=t&&Number.isFinite(t*=1)?t:i,findKey:iM,global:iD,isContextDefined:iL,isSpecCompliantForm:function(t){return!!(t&&ih(t.append)&&"FormData"===t[t7]&&t[t8])},toJSONObject:t=>{let i=new WeakSet,n=t=>{if(im(t)){if(i.has(t))return;if(ic(t))return t;if(!("toJSON"in t)){let r;if(i.add(t),ix(t))for(let i of(r=[],t)){let t=n(i);il(t)||r.push(t)}else r=is(t)?[]:{},iS(t,(t,i)=>{let o=n(t);il(o)||(r[i]=o)});return i.delete(t),r}}return t};return n(t)},isAsyncFn:iN,isThenable:t=>t&&(im(t)||ih(t))&&ih(t.then)&&ih(t.catch),setImmediate:iB,asap:iz,isIterable:ij,isSafeIterable:t=>null!=t&&ii(t,t8)&&ij(t)},iU=iY.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"]),iH=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),iV=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function iW(t,i){return iY.isArray(t)?t.map(t=>iW(t,i)):function(t){let i=0,n=t.length;for(;i<n;){let n=t.charCodeAt(i);if(9!==n&&32!==n)break;i+=1}for(;n>i;){let i=t.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===i&&n===t.length?t:t.slice(i,n)}(String(t).replace(i,""))}function iq(t){let i=Object.create(null);return iY.forEach(t.toJSON(),(t,n)=>{i[n]=iW(t,iV)}),i}let iG=Symbol("internals");function iK(t){return t&&String(t).trim().toLowerCase()}function iX(t){return!1===t||null==t?t:iY.isArray(t)?t.map(iX):iW(String(t),iH)}let iZ=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function iJ(t){let i=0,n=t.length;for(;i<n;){let n=t.charCodeAt(i);if(9!==n&&32!==n)break;i+=1}for(;n>i;){let i=t.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===i&&n===t.length?t:t.slice(i,n)}function iQ(t,i,n,r,o){if(iY.isFunction(r))return r.call(this,i,n);if(o&&(i=n),iY.isString(i)){if(iY.isString(r))return -1!==i.indexOf(r);if(iY.isRegExp(r))return r.test(i)}}class i0{constructor(t){t&&this.set(t)}set(t,i,n){let r=this;function o(t,i,n){let o=iK(i);if(!o)return;let a=iY.findKey(r,o);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||i]=iX(t))}let a=(t,i)=>iY.forEach(t,(t,n)=>o(t,n,i));if(iY.isPlainObject(t)||t instanceof this.constructor)a(t,i);else{let r;if(iY.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let n,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim();let i=iY.hasOwnProp(l,n);!n||i&&iY.hasOwnProp(iU,n)||("set-cookie"===n?i?l[n].push(r):l[n]=[r]:l[n]=i?l[n]+", "+r:r)}),l),i)}else if(iY.isObject(t)&&iY.isSafeIterable(t)){let n=Object.create(null),r,o;for(let i of t){if(!iY.isArray(i))throw TypeError("Object iterator must return a key-value pair");o=i[0],iY.hasOwnProp(n,o)?(r=n[o],n[o]=iY.isArray(r)?[...r,i[1]]:[r,i[1]]):n[o]=i[1]}a(n,i)}else null!=t&&o(i,t,n)}return this}get(t,i){if(t=iK(t)){let n=iY.findKey(this,t);if(n){let t=this[n];if(!i)return t;if(!0===i){let i,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;i=r.exec(t);)n[i[1]]=i[2];return n}if(iY.isFunction(i))return i.call(this,t,n);if(iY.isRegExp(i))return i.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=iK(t)){let n=iY.findKey(this,t);return!!(n&&void 0!==this[n]&&(!i||iQ(this,this[n],n,i)))}return!1}delete(t,i){let n=this,r=!1;function o(t){if(t=iK(t)){let o=iY.findKey(n,t);o&&(!i||iQ(n,n[o],o,i))&&(delete n[o],r=!0)}}return iY.isArray(t)?t.forEach(o):o(t),r}clear(t){let i=Object.keys(this),n=i.length,r=!1;for(;n--;){let o=i[n];(!t||iQ(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let i=this,n={};return iY.forEach(this,(r,o)=>{let a=iY.findKey(n,o);if(a){i[a]=iX(r),delete i[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n):String(o).trim();s!==o&&delete i[o],i[s]=iX(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let i=Object.create(null);return iY.forEach(this,(n,r)=>{null!=n&&!1!==n&&(i[r]=t&&iY.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join("\n")}getSetCookie(){let t=this.get("set-cookie");return iY.isArray(t)?t:null==t||!1===t?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return function(t){let i=Object.create(null),n=String(t),r=0,o=!1,a=!1;function s(t){let o=iJ(n.slice(r,t)),a=o.indexOf("=");if(a<1)return;let s=iJ(o.slice(0,a));if(!iZ.test(s))return;let l=s.toLowerCase();if("__proto__"===l||"constructor"===l||"prototype"===l)return;let c=iJ(o.slice(a+1));i[l]=function(t){let i=t.length-1;if(i<1||34!==t.charCodeAt(0)||34!==t.charCodeAt(i))return t;let n="";for(let r=1;r<i;r++){let o=t.charCodeAt(r);if(34===o||92===o&&(r+=1)>=i)return t;n+=t[r]}return n}(c)}for(let t=0;t<n.length;t++){let i=n.charCodeAt(t);o?a?a=!1:92===i?a=!0:34===i&&(o=!1):34===i?o=!0:(44===i||59===i)&&(s(t),r=t+1)}return s(n.length),i}(t)}static concat(t,...i){let n=new this(t);return i.forEach(t=>n.set(t)),n}static accessor(t){let i=(this[iG]=this[iG]={accessors:{}}).accessors,n=this.prototype;function r(t){let r=iK(t);if(!i[r]){let o;o=iY.toCamelCase(" "+t),["get","set","has"].forEach(i=>{Object.defineProperty(n,i+o,{__proto__:null,value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})}),i[r]=!0}}return iY.isArray(t)?t.forEach(r):r(t),this}}i0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),iY.reduceDescriptors(i0.prototype,({value:t},i)=>{let n=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(t){this[n]=t}}}),iY.freezeMethods(i0);let i1="[REDACTED ****]";function i2(t){try{return String(t)}catch(t){return""}}class i3 extends Error{static from(t,i,n,r,o,a){let s=t.message;!s&&iY.isArray(t.errors)&&t.errors.length&&(s=t.errors.map(t=>{try{return t&&t.message?i2(t.message):i2(t)}catch(t){return""}}).filter(Boolean).join("; ")||t.name||"AggregateError");let l=new i3(s,i||t.code,n,r,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,null!=t.status&&null==l.status&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(t,i,n,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,i,n,r=this.config,o=r&&iY.hasOwnProp(r,"redact")?r.redact:void 0,a=iY.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),i=[],(n=r=>{let o;if(null===r||"object"!=typeof r||iY.isBuffer(r))return r;if(-1===i.indexOf(r)){if(r instanceof i0&&(r=r.toJSON()),i.push(r),iY.isArray(r))o=[],r.forEach((t,i)=>{let r=n(t);iY.isUndefined(r)||(o[i]=r)});else{if(!iY.isPlainObject(r)&&function(t){if(iY.hasOwnProp(t,"toJSON"))return!0;let i=Object.getPrototypeOf(t);for(;i&&i!==Object.prototype;){if(iY.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}(r))return i.pop(),r;for(let[i,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(i.toLowerCase())?i1:n(a);iY.isUndefined(r)||(o[i]=r)}}return i.pop(),o}})(r)):iY.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}}}i3.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",i3.ERR_BAD_OPTION="ERR_BAD_OPTION",i3.ECONNABORTED="ECONNABORTED",i3.ETIMEDOUT="ETIMEDOUT",i3.ECONNREFUSED="ECONNREFUSED",i3.ERR_NETWORK="ERR_NETWORK",i3.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",i3.ERR_DEPRECATED="ERR_DEPRECATED",i3.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",i3.ERR_BAD_REQUEST="ERR_BAD_REQUEST",i3.ERR_CANCELED="ERR_CANCELED",i3.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",i3.ERR_INVALID_URL="ERR_INVALID_URL",i3.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let i5=i3;function i4(t){return iY.isPlainObject(t)||iY.isArray(t)}function i6(t){return iY.endsWith(t,"[]")?t.slice(0,-2):t}function i8(t,i,n){return t?t.concat(i).map(function(t,i){return t=i6(t),!n&&i?"["+t+"]":t}).join(n?".":""):i}let i7=iY.toFlatObject(iY,{},null,function(t){return/^is[A-Z]/.test(t)}),i9=function(t,i,n){if(!iY.isObject(t))throw TypeError("target must be an object");i=i||new FormData;let r=(t,i)=>{let r=iY.getSafeProp(n,t);return iY.isUndefined(r)?i:r},o=r("metaTokens",!0),a=r("visitor")||f,s=r("dots",!1),l=r("indexes",!1),c=r("Blob")||"u">typeof Blob&&Blob,d=r("maxDepth",100),u=c&&iY.isSpecCompliantForm(i),h=[];if(!iY.isFunction(a))throw TypeError("visitor must be a function");function p(t){if(null===t)return"";if(iY.isDate(t))return t.toISOString();if(iY.isBoolean(t))return t.toString();if(!u&&iY.isBlob(t))throw new i5("Blob is not supported. Use a Buffer instead.");if(iY.isArrayBuffer(t)||iY.isTypedArray(t)){if(u&&"function"==typeof c)return new c([t]);throw new i5("Blob is not supported. Use a Buffer instead.",i5.ERR_NOT_SUPPORT)}return t}function m(t){if(t>d)throw new i5("Object is too deeply nested ("+t+" levels). Max depth: "+d,i5.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(t,n,r){let a=t;if(iY.isReactNative(i)&&iY.isReactNativeBlob(t))return i.append(i8(r,n,s),p(t)),!1;if(t&&!r&&"object"==typeof t)if(iY.endsWith(n,"{}"))n=o?n:n.slice(0,-2),t=function(t){if(1/0===d)return JSON.stringify(t);let i=[];return JSON.stringify(t,function(t,n){if(!iY.isObject(n))return n;for(;i.length&&i[i.length-1]!==this;)i.pop();return i.push(n),m(1+i.length-1),n})}(t);else{var c;if(iY.isArray(t)&&(c=t,iY.isArray(c)&&!c.some(i4))||(iY.isFileList(t)||iY.endsWith(n,"[]"))&&(a=iY.toArray(t)))return n=i6(n),a.forEach(function(t,r){iY.isUndefined(t)||null===t||i.append(!0===l?i8([n],r,s):null===l?n:n+"[]",p(t))}),!1}return!!i4(t)||(i.append(i8(r,n,s),p(t)),!1)}let g=Object.assign(i7,{defaultVisitor:f,convertValue:p,isVisitable:i4});if(!iY.isObject(t))throw TypeError("data must be an object");return!function t(n,r,o=0){if(!iY.isUndefined(n)){if(m(o),-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),iY.forEach(n,function(n,s){!0===(!(iY.isUndefined(n)||null===n)&&a.call(i,n,iY.isString(s)?s.trim():s,r,g))&&t(n,r?r.concat(s):[s],o+1)}),h.pop()}}(t),i};function ne(t){let i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return i[t]})}function nt(t,i){this._pairs=[],t&&i9(t,this,i)}let ni=nt.prototype;function nn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nr(t,i,n){let r;if(!i)return t;t=t||"";let o=iY.isFunction(n)?{serialize:n}:n,a=iY.getSafeProp(o,"encode")||nn,s=iY.getSafeProp(o,"serialize");if(r=s?s(i,o):iY.isURLSearchParams(i)?i.toString():new nt(i,o).toString(a)){let i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}ni.append=function(t,i){this._pairs.push([t,i])},ni.toString=function(t){let i=t?i=>t.call(this,i,ne):ne;return this._pairs.map(function(t){return i(t[0])+"="+i(t[1])},"").join("&")};let no=Symbol("internals");function na(t){return t?t.length:0}function ns(t){if(t)for(;t.length&&null===t[t.length-1];)t.pop()}function nl(t,i){let n=t.handlers,r=na(n);n!==i.handlersRef?(i.handlersRef=n,i.handlerEntries.clear()):r!==i.handlersLength&&(r?i.handlerEntries.forEach(function(t,r){n[t.index]!==t.handler&&i.handlerEntries.delete(r)}):i.handlerEntries.clear()),i.handlersLength=r}let nc=class{constructor(){this.handlers=[],this[no]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,i,n){let r={fulfilled:t,rejected:i,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[no];null==this.handlers&&(this.handlers=[]),nl(this,o);let a=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,a}eject(t){let i=this[no];nl(this,i);let n=i.handlerEntries.get(t);if(n){if(i.handlerEntries.delete(t),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,i.iterationDepth||(ns(this.handlers),i.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],nl(this,this[no]))}forEach(t){let i=this[no];nl(this,i),i.iterationDepth++;try{iY.forEach(this.handlers,function(i){null!==i&&t(i)})}finally{--i.iterationDepth||(nl(this,i),ns(this.handlers),i.handlersLength=na(this.handlers))}}},nd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},nu="u">typeof URLSearchParams?URLSearchParams:nt,nh="u">typeof FormData?FormData:null,np="u">typeof Blob?Blob:null,nm="u">typeof window&&"u">typeof document,nf="object"==typeof navigator&&navigator||void 0,ng=nm&&(!nf||0>["ReactNative","NativeScript","NS"].indexOf(nf.product)),nb="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,n_=nm&&window.location.href||"http://localhost",ny={...S,isBrowser:!0,classes:{URLSearchParams:nu,FormData:nh,Blob:np},protocols:["http","https","file","blob","url","data"]};function nv(t){if(t>100)throw new i5("FormData field is too deeply nested ("+t+" levels). Max depth: 100",i5.ERR_FORM_DATA_DEPTH_EXCEEDED)}let nx=function(t){if(iY.isFormData(t)&&iY.isFunction(t.entries)){let i={};return iY.forEachEntry(t,(t,n)=>{!function t(i,n,r,o){nv(o);let a=i[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=i.length;return(a=!a&&iY.isArray(r)?r.length:a,l)?iY.hasOwnProp(r,a)?r[a]=iY.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n:(iY.hasOwnProp(r,a)&&iY.isObject(r[a])||(r[a]=[]),t(i,n,r[a],o)&&iY.isArray(r[a])&&(r[a]=function(t){let i,n,r={},o=Object.keys(t),a=o.length;for(i=0;i<a;i++)r[n=o[i]]=t[n];return r}(r[a]))),!s}(function(t){let i,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(i=r.exec(t));)nv(n.length),n.push("[]"===i[0]?"":i[1]||i[0]);return n}(t),n,i,0)}),i}return null},nw=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),nk=(t,i)=>null!=t&&iY.hasOwnProp(t,i)?t[i]:void 0,nE={transitional:nd,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){let n,r=i.getContentType()||"",o=r.indexOf("application/json")>-1,a=iY.isObject(t);if(a&&iY.isHTMLForm(t)&&(t=new FormData(t)),iY.isFormData(t))return o?JSON.stringify(nx(t)):t;if(iY.isArrayBuffer(t)||iY.isBuffer(t)||iY.isStream(t)||iY.isFile(t)||iY.isBlob(t)||iY.isReadableStream(t))return t;if(iY.isArrayBufferView(t))return t.buffer;if(iY.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let i=nk(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return i9(t,new ny.classes.URLSearchParams,{visitor:function(t,i,n,r){return ny.isNode&&iY.isBuffer(t)?(this.append(i,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...i}).toString();if((n=iY.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=nk(this,"env"),o=r&&r.FormData;return i9(n?{"files[]":t}:t,o&&new o,i)}}if(a||o){i.setContentType("application/json",!1);var s=t;if(iY.isString(s))try{return(0,JSON.parse)(s),iY.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let i=nk(this,"transitional")||nE.transitional,n=i&&i.forcedJSONParsing,r=nk(this,"responseType"),o="json"===r;if(iY.isResponse(t)||iY.isReadableStream(t))return t;if(t&&iY.isString(t)&&(n&&!r||o)){let n=i&&i.silentJSONParsing;try{return JSON.parse(t,nk(this,"parseReviver"))}catch(t){if(!n&&o){if("SyntaxError"===t.name)throw i5.from(t,i5.ERR_BAD_RESPONSE,this,null,nk(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ny.classes.FormData,Blob:ny.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function nF(t,i){let n=this||nE,r=i||n,o=i0.from(r.headers),a=r.data;return iY.forEach(t,function(t){a=t.call(n,a,o.normalize(),i?i.status:void 0)}),o.normalize(),a}function nC(t){return!!(t&&t.__CANCEL__)}iY.forEach(nw,t=>{nE.headers[t]={}});let nT=class extends i5{constructor(t,i,n){super(null==t?"canceled":t,i5.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function nA(t,i,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(new i5("Request failed with status code "+n.status,n.status>=400&&n.status<500?i5.ERR_BAD_REQUEST:i5.ERR_BAD_RESPONSE,n.config,n.request,n))}let nS=/[\t\n\r]/g;function nM(t){if("string"!=typeof t)return t;let i=0;for(;i<t.length&&32>=t.charCodeAt(i);)i++;return t.slice(i).replace(nS,"")}function nD(t){let i=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return i&&i[1]||""}let nL=function(t,i){let n,r=Array(t=t||10),o=Array(t),a=0,s=0;return i=void 0!==i?i:1e3,function(l){let c=Date.now(),d=o[s];n||(n=c),r[a]=l,o[a]=c;let u=s,h=0;for(;u!==a;)h+=r[u++],u%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-n<i)return;let p=d&&c-d;return p?Math.round(1e3*h/p):void 0}},nI=function(t,i){let n,r,o=0,a=1e3/i,s=(i,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),t(...i)};return[(...t)=>{let i=Date.now(),l=i-o;l>=a?s(t,i):(n=t,r||(r=setTimeout(()=>{r=null,s(n)},a-l)))},()=>n&&s(n),(...t)=>s(t)]},nO=(t,i,n=3)=>{let r=0,o=nL(50,250);return nI(n=>{if(!n||!iY.isNumber(n.loaded))return;let a=n.loaded,s=n.lengthComputable?n.total:void 0,l=Math.max(0,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:n,lengthComputable:null!=s,[i?"download":"upload"]:!0})},n)},nR=(t,i)=>{let n=null!=t;return[r=>i[0]({lengthComputable:n,total:t,loaded:r}),i[1]]},nP=(t,i=iY.asap)=>(...n)=>i(()=>t(...n)),n$=ny.hasStandardBrowserEnv?(m=new URL(ny.origin),f=ny.navigator&&/(msie|trident)/i.test(ny.navigator.userAgent),t=>(t=new URL(t,ny.origin),m.protocol===t.protocol&&m.host===t.host&&(f||m.port===t.port))):()=>!0,nN=ny.hasStandardBrowserEnv?{write(t,i,n,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(i)}`];iY.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),iY.isString(r)&&l.push(`path=${r}`),iY.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),iY.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let i=document.cookie.split(";");for(let n=0;n<i.length;n++){let r=i[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},nB=/^https?:(?!\/\/)/i;function nz(t,i){if("string"==typeof t){let r=nM(t);if(nB.test(r)){var n;let t,o,a;throw new i5(`Invalid URL ${JSON.stringify((a=(-1===(o=(t=r.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${i1}@`)).indexOf("#"))?t:t.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${i1}`),-1===o?a:`${a}#${!(n=t.slice(o+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,i,n="")=>`${i}${n}${i1}`)}`))}: missing "//" after protocol`,i5.ERR_INVALID_URL,i)}}}function nj(t,i,n,r){nz(i,r);let o=!("string"==typeof i&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));if(t&&(o||!1===n)){nz(t,r);if(!i)return t;let n=t.length;for(;n>0&&47===t.charCodeAt(n-1);)n--;return t.slice(0,n)+"/"+i.replace(/^\/+/,"")}return i}let nY=t=>t instanceof i0?{...t}:t;function nU(t,i){var n;t=t||{},i=i||{};let r=Object.create(null);function o(t,i,n,r){return iY.isPlainObject(t)&&iY.isPlainObject(i)?iY.merge.call({caseless:r},t,i):iY.isPlainObject(i)?iY.merge({},i):iY.isArray(i)?i.slice():i}function a(t,i,n,r){return iY.isUndefined(i)?iY.isUndefined(t)?void 0:o(void 0,t,n,r):o(t,i,n,r)}function s(t,i){if(!iY.isUndefined(i))return o(void 0,i)}function l(t,i){return iY.isUndefined(i)?iY.isUndefined(t)?void 0:o(void 0,t):o(void 0,i)}function c(n,r,a){return iY.hasOwnProp(i,a)?o(n,r):iY.hasOwnProp(t,a)?o(void 0,n):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:c,headers:(t,i,n)=>a(nY(t),nY(i),n,!0)};return iY.forEach((n={...t,...i},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(t=>Object.getOwnPropertyDescriptor(n,t).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=iY.hasOwnProp(d,n)?d[n]:a,s=o(iY.hasOwnProp(t,n)?t[n]:void 0,iY.hasOwnProp(i,n)?i[n]:void 0,n);iY.isUndefined(s)&&o!==c||(r[n]=s)}),iY.hasOwnProp(i,"validateStatus")&&iY.isUndefined(i.validateStatus)&&!1===function(n){let r=iY.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!iY.isUndefined(r)){if(!iY.isPlainObject(r))return;else if(iY.hasOwnProp(r,n))return r[n]}let o=iY.hasOwnProp(t,"transitional")?t.transitional:void 0;if(iY.isPlainObject(o)&&iY.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(iY.hasOwnProp(t,"validateStatus")?r.validateStatus=o(void 0,t.validateStatus):delete r.validateStatus),r}let nH=["content-type","content-length"],nV=function(t){let i=nU({},t),n=t=>iY.hasOwnProp(i,t)?i[t]:void 0,r=n("data"),o=n("withXSRFToken"),a=n("xsrfHeaderName"),s=n("xsrfCookieName"),l=n("headers"),c=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(i.headers=l=i0.from(l),i.url=nr(nj(d,h,u,i),n("params"),n("paramsSerializer")),c){let i=iY.getSafeProp(c,"username")||"",n=iY.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(i+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))):"")))}catch(i){throw i5.from(i,i5.ERR_BAD_OPTION_VALUE,t)}}if(iY.isFormData(r)){let t=iY.getSafeProp(r,"getHeaders");if(ny.hasStandardBrowserEnv||ny.hasStandardBrowserWebWorkerEnv||iY.isReactNative(r))l.setContentType(void 0);else{var p,m;iY.isFunction(t)&&(p=l,m=t.call(r),"content-only"!==n("formDataHeaderPolicy")?p.set(m):Object.entries(m||{}).forEach(([t,i])=>{nH.includes(t.toLowerCase())&&p.set(t,i)}))}}if(ny.hasStandardBrowserEnv&&(iY.isFunction(o)&&(o=o(i)),!0===o||null==o&&n$(i.url))){let t=a&&s&&nN.read(s);t&&l.set(a,t)}return i},nW="u">typeof XMLHttpRequest&&function(t){return new Promise(function(i,n){let r,o,a,s,l,c,d=nV(t),u=d.data,h=i0.from(d.headers).normalize(),{responseType:p,onUploadProgress:m,onDownloadProgress:f}=d;function g(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let b=new XMLHttpRequest;function _(r){if(!b)return;if(0===b.status&&"file"!==(nD(nM(d.url))||nD(ny.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new i5("Request aborted",i5.ECONNABORTED,t,b)),g(),b=null;return}try{r?c&&c(r):l&&l()}catch(t){setTimeout(()=>{throw t})}if(!b)return;let o=i0.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());nA(function(t){i(t),g()},function(t){n(t),g()},{data:p&&"text"!==p&&"json"!==p?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:o,config:t,request:b}),b=null}b.open(d.method.toUpperCase(),d.url,!0),b.timeout=d.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new i5("Request aborted",i5.ECONNABORTED,t,b)),g(),b=null)},b.onerror=function(i){let r=new i5(i&&i.message?i.message:"Network Error",i5.ERR_NETWORK,t,b);r.event=i||null,n(r),g(),b=null},b.ontimeout=function(){let i=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",r=d.transitional||nd;d.timeoutErrorMessage&&(i=d.timeoutErrorMessage),n(new i5(i,r.clarifyTimeoutError?i5.ETIMEDOUT:i5.ECONNABORTED,t,b)),g(),b=null},void 0===u&&h.setContentType(null),"setRequestHeader"in b&&iY.forEach(iq(h),function(t,i){b.setRequestHeader(i,t)}),iY.isUndefined(d.withCredentials)||(b.withCredentials=!!d.withCredentials),p&&"json"!==p&&(b.responseType=d.responseType),f&&([a,l,c]=nO(f,!0),b.addEventListener("progress",a)),m&&b.upload&&([o,s]=nO(m),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(r=i=>{b&&(n(!i||i.type?new nT(null,t,b):i),b.abort(),g(),b=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=nD(d.url);if(y&&!ny.protocols.includes(y)){n(new i5("Unsupported protocol "+y+":",i5.ERR_BAD_REQUEST,t)),g();return}b.send(u||null)})},nq=function*(t,i){let n,r=t.byteLength;if(!i||r<i)return void(yield t);let o=0;for(;o<r;)n=o+i,yield t.slice(o,n),o=n},nG=async function*(t,i){for await(let n of nK(t))yield*nq(n,i)},nK=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let i=t.getReader();try{for(;;){let{done:t,value:n}=await i.read();if(t)break;yield n}}finally{await i.cancel()}},nX=(t,i,n,r)=>{let o,a=nG(t,i),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:i,value:r}=await a.next();if(i){l(),t.close();return}let o=r.byteLength;if(n){let t=s+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},nZ=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,nJ=(t,i,n)=>i+2<n&&nZ(t.charCodeAt(i+1))&&nZ(t.charCodeAt(i+2)),nQ=t=>t<=57?t-48:(223&t)-55,n0=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||43===t||47===t||45===t||95===t,n1=t=>9===t||10===t||12===t||13===t||32===t,n2=t=>{var i;let n,r,o=t.length,a=0,s=0,l=!1;for(let i=0;i<o;i++){let n=t.charCodeAt(i);if(37===n&&nJ(t,i,o)&&(n=16*nQ(t.charCodeAt(i+1))+nQ(t.charCodeAt(i+2)),i+=2),!n1(n)){if(61===n){s++;continue}if(!n0(n)||s>0){l=!0;continue}a++}}if(l||s>2||s>0&&(a+s)%4!=0||a%4==1){let i,n;return i=t.length,n=0,i>0&&61===t.charCodeAt(i-1)&&(n++,i>1&&61===t.charCodeAt(i-2)&&n++),Math.floor((i-n)*3/4)}return n=Math.floor((i=a)/4),3*n+(2==(r=i%4)?1:2*(3===r))},n3={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:n5}=iY,n4=t=>{if(!iY.isString(t))return t;try{return decodeURIComponent(t)}catch(i){return t}},n6=(t,...i)=>{try{return!!t(...i)}catch(t){return!1}},n8=t=>{let i,n=void 0!==iY.global&&null!==iY.global?iY.global:globalThis,{ReadableStream:r,TextEncoder:o}=n,{fetch:a,Request:s,Response:l}=t=iY.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},t),c=a?n5(a):"function"==typeof fetch,d=n5(s),u=n5(l);if(!c)return!1;let h=c&&n5(r),p=c&&("function"==typeof o?(i=new o,t=>i.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&h&&n6(()=>{let t=!1,i=new s(ny.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),n=i.headers.has("Content-Type");return null!=i.body&&i.body.cancel(),t&&!n}),f=u&&h&&n6(()=>iY.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(i,n)=>{let r=i&&i[t];if(r)return r.call(i);throw new i5(`Response type '${t}' is not supported`,i5.ERR_NOT_SUPPORT,n)})});let b=async t=>{if(null==t)return 0;if(iY.isBlob(t))return t.size;if(iY.isSpecCompliantForm(t)){let i=new s(ny.origin,{method:"POST",body:t});return(await i.arrayBuffer()).byteLength}return iY.isArrayBufferView(t)||iY.isArrayBuffer(t)?t.byteLength:(iY.isURLSearchParams(t)&&(t+=""),iY.isString(t))?(await p(t)).byteLength:void 0},_=async(t,i)=>{let n=iY.toFiniteNumber(t.getContentLength());return null==n?b(i):n};return async t=>{let i,{url:n,method:r,data:c,signal:u,cancelToken:p,timeout:y,onDownloadProgress:v,onUploadProgress:x,responseType:w,headers:k,withCredentials:E="same-origin",fetchOptions:F,maxContentLength:C,maxBodyLength:T,maxRedirects:A}=nV(t),S=iY.isNumber(C)&&C>-1,M=iY.isNumber(T)&&T>-1,D=a||fetch;w=w?(w+"").toLowerCase():"text";let L=((t,i)=>{if(t=t?t.filter(Boolean):[],!i&&!t.length)return;let n=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let i=t instanceof Error?t:this.reason;n.abort(i instanceof i5?i:new nT(i instanceof Error?i.message:i))}},a=i&&setTimeout(()=>{a=null,o(new i5(`timeout of ${i}ms exceeded`,i5.ETIMEDOUT))},i),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>{if(!r){if(t.aborted)return void o.call(t);t.addEventListener("abort",o,{once:!0})}});let{signal:l}=n;return l.unsubscribe=()=>iY.asap(s),l})([u,p&&p.toAbortSignal()],y),I=null,O=L&&L.unsubscribe&&(()=>{L.unsubscribe()}),R=null,P=()=>new i5("Request body larger than maxBodyLength limit",i5.ERR_BAD_REQUEST,t,I);try{var $,N;let a,u,p,y,B=(u="auth",iY.hasOwnProp(t,u)?t[u]:void 0);if(B){let t=iY.getSafeProp(B,"username")||"",i=iY.getSafeProp(B,"password")||"";a={username:t,password:i}}if(p=($=n).indexOf("://"),y=$,-1!==p&&(y=y.slice(p+3)),y.includes("@")||y.includes(":")){let t=new URL(n,ny.origin);if(!a&&(t.username||t.password)){let i=n4(t.username),n=n4(t.password);a={username:i,password:n}}(t.username||t.password)&&(t.username="",t.password="",n=t.href)}if(a){let t;k.delete("authorization"),k.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))))))}if(S&&"string"==typeof n&&n.startsWith("data:")){let i;if(N=n,i="string"==typeof N?N.indexOf("#"):-1,((t,i)=>{if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let r=t.slice(5,n),o=t.slice(n+1);if(/;base64/i.test(r))return i(o);let a=0;for(let t=0,i=o.length;t<i;t++){let n=o.charCodeAt(t);if(37===n&&nJ(o,t,i))a+=1,t+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&t+1<i){let i=o.charCodeAt(t+1);i>=56320&&i<=57343?(a+=4,t++):a+=3}else a+=3}return a})(-1===i?N:N.slice(0,i),n2)>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I)}if(M&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(i=t,t>T))throw P()}let z=M&&(iY.isReadableStream(c)||iY.isStream(c)),j=(t,i,n)=>nX(t,65536,t=>{if(M&&t>T)throw R=P();i&&i(t)},n);if(m&&"get"!==r&&"head"!==r&&(x||z)){if(i=null==i?await _(k,c):i,0!==i||z){let t,r=new s(n,{method:"POST",body:c,duplex:"half"});if(iY.isFormData(c)&&(t=r.headers.get("content-type"))&&k.setContentType(t),r.body){let[t,n]=x&&nR(i,nO(nP(x)))||[];c=j(r.body,t,n)}}}else if(z&&!d&&h&&"get"!==r&&"head"!==r)c=j(c);else if(z&&d&&!m&&"get"!==r&&"head"!==r)throw new i5("Stream request bodies are not supported by the current fetch implementation",i5.ERR_NOT_SUPPORT,t,I);iY.isString(E)||(E=E?"include":"omit");let Y=d&&"credentials"in s.prototype;if(iY.isFormData(c)){let t=k.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&k.delete("content-type")}k.set("User-Agent","axios/1.20.0",!1);let U=null==F?F:Object.assign(Object.create(null),F);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let H=Object.assign(Object.create(null),U,{signal:L,method:r.toUpperCase(),headers:iq(k.normalize()),body:c,duplex:"half",credentials:Y?E:void 0});d&&(iY.forEach(n3,(t,i)=>{void 0===H[i]&&(H[i]=t)}),void 0===H.signal&&(H.signal=null),void 0===H.body&&(H.body=null)),0===A&&(H.redirect="manual",U&&(U.redirect="manual")),I=d&&new s(n,H);let V=await (d?D(I,U):D(n,H)),W=i0.from(V.headers);if(S){let i=iY.toFiniteNumber(W.getContentLength());if(null!=i&&i>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I)}let q=f&&("stream"===w||"response"===w);if(f&&V.body&&(v||S||q&&O)){let i={};["status","statusText","headers"].forEach(t=>{i[t]=V[t]});let n=iY.toFiniteNumber(W.getContentLength()),[r,o]=v&&nR(n,nO(nP(v),!0))||[];V=new l(nX(V.body,65536,i=>{if(S&&i>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I);r&&r(i)},()=>{o&&o(),O&&O()}),i)}w=w||"text";let G=await g[iY.findKey(g,w)||"text"](V,t);if(S&&!f&&!q){let i;if(null!=G&&("number"==typeof G.byteLength?i=G.byteLength:"number"==typeof G.size?i=G.size:"string"==typeof G&&(i="function"==typeof o?new o().encode(G).byteLength:G.length)),"number"==typeof i&&i>C)throw new i5("maxContentLength size of "+C+" exceeded",i5.ERR_BAD_RESPONSE,t,I)}return!q&&O&&O(),await new Promise((i,n)=>{nA(i,n,{data:G,headers:i0.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:I})})}catch(i){if(O&&O(),L&&L.aborted&&L.reason instanceof i5){let n=L.reason;throw n.config=t,I&&(n.request=I),i!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:i,writable:!0,enumerable:!1,configurable:!0}),n}if(R)throw I&&!R.request&&(R.request=I),R;if(i instanceof i5)throw I&&!i.request&&(i.request=I),i;if(i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message)){let n=new i5("Network Error",i5.ERR_NETWORK,t,I,i&&i.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:i.cause||i,writable:!0,enumerable:!1,configurable:!0}),n}throw i5.from(i,i&&i.code,t,I,i&&i.response)}}},n7=new Map,n9=t=>{let i=t&&t.env||{},{fetch:n,Request:r,Response:o}=i,a=[r,o,n],s=a.length,l,c,d=n7;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:n8(i)),d=c;return c};n9();let re={http:null,xhr:nW,fetch:{get:n9}};iY.forEach(re,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:i})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:i})}});let rt=t=>`- ${t}`,ri=t=>iY.isFunction(t)||null===t||!1===t,rn=function(t,i){let n,r,{length:o}=t=iY.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=n=t[s],!ri(n)&&void 0===(r=re[(o=String(n)).toLowerCase()]))throw new i5(`Unknown adapter '${o}'`);if(r&&(iY.isFunction(r)||(r=r.get(i))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,i])=>`adapter ${t} `+(!1===i?"is not supported by the environment":"is not available in the build"));throw new i5("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rt).join("\n"):" "+rt(t[0]):"as no adapter specified"),i5.ERR_NOT_SUPPORT)}return r};function rr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nT(null,t)}function ro(t){let i=iY.toSafeFlatObject(t);return rr(i),i.headers=i0.from(iY.getSafeProp(i,"headers")),i.data=nF.call(i,i.transformRequest),-1!==["post","put","patch"].indexOf(i.method)&&i.headers.setContentType("application/x-www-form-urlencoded",!1),rn(i.adapter||nE.adapter,i)(i).then(function(t){rr(i),i.response=t;try{t.data=nF.call(i,i.transformResponse,t)}finally{delete i.response}return t.headers=i0.from(t.headers),t},function(t){if(!nC(t)&&(rr(i),t&&t.response)){i.response=t.response;try{t.response.data=nF.call(i,i.transformResponse,t.response)}finally{delete i.response}t.response.headers=i0.from(t.response.headers)}return Promise.reject(t)})}let ra={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{ra[t]=function(n){return typeof n===t||"a"+(i<1?"n ":" ")+t}});let rs={};ra.transitional=function(t,i,n){function r(t,i){return"[Axios v1.20.0] Transitional option '"+t+"'"+i+(n?". "+n:"")}return(n,o,a)=>{if(!1===t)throw new i5(r(o," has been removed"+(i?" in "+i:"")),i5.ERR_DEPRECATED);return i&&!rs[o]&&(rs[o]=!0,console.warn(r(o," has been deprecated since v"+i+" and will be removed in the near future"))),!t||t(n,o,a)}},ra.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};let rl=function(t,i,n){if("object"!=typeof t||null===t)throw new i5("options must be an object",i5.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(i,a)?i[a]:void 0;if(s){let i=t[a],n=void 0===i||s(i,a,t);if(!0!==n)throw new i5("option "+a+" must be "+n,i5.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i5("Unknown option "+a,i5.ERR_BAD_OPTION)}};class rc{constructor(t){this.defaults=t||{},this.interceptors={request:new nc,response:new nc}}async request(t,i){try{return await this._request(t,i)}catch(t){if(t instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=Error();let n=i.stack,r="";if("string"==typeof n){let t=n.indexOf("\n");r=-1===t?"":n.slice(t+1)}if(t.stack){if(r){let i=r.indexOf("\n"),n=-1===i?-1:r.indexOf("\n",i+1),o=-1===n?"":r.slice(n+1);String(t.stack).endsWith(o)||(t.stack+="\n"+r)}}else t.stack=r}catch(t){}throw t}}_request(t,i){let n,r;"string"==typeof t?(i=i||{}).url=t:i=t||{};let{transitional:o,paramsSerializer:a,headers:s}=i=nU(this.defaults,i);void 0!==o&&rl(o,{silentJSONParsing:ra.transitional(ra.boolean),forcedJSONParsing:ra.transitional(ra.boolean),clarifyTimeoutError:ra.transitional(ra.boolean),legacyInterceptorReqResOrdering:ra.transitional(ra.boolean),advertiseZstdAcceptEncoding:ra.transitional(ra.boolean),validateStatusUndefinedResolves:ra.transitional(ra.boolean)},!1),null!=a&&(iY.isFunction(a)?i.paramsSerializer={serialize:a}:rl(a,{encode:ra.function,serialize:ra.function},!0)),void 0!==i.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),rl(i,{baseUrl:ra.spelling("baseURL"),withXsrfToken:ra.spelling("withXSRFToken")},!0),i.method=(iY.getSafeProp(i,"method")||iY.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=s&&iY.merge(s.common,s[i.method]);s&&iY.forEach(nw.concat("common"),t=>{delete s[t]}),i.headers=i0.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(i))return;d=d&&t.synchronous;let n=i.transitional||nd;n&&n.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[ro.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,n=Promise.resolve(i);h<r;)n=n.then(t[h++],t[h++]);return n}r=c.length;let p=i;for(;h<r;){let t=c[h++],i=c[h++];try{p=t?t(p):p}catch(t){if(!i){n=Promise.reject(t);break}try{let r=i.call(this,t);iY.isThenable(r)&&(n=Promise.resolve(r).then(()=>ro.call(this,p)))}catch(t){n=Promise.reject(t)}break}}if(!n)try{n=ro.call(this,p)}catch(t){n=Promise.reject(t)}for(h=0,r=u.length;h<r;)n=n.then(u[h++],u[h++]);return n}getUri(t){return nr(nj((t=nU(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}iY.forEach(["delete","get","head","options"],function(t){rc.prototype[t]=function(i,n){return this.request(nU(n||{},{method:t,url:i,data:n&&iY.hasOwnProp(n,"data")?n.data:void 0}))}}),iY.forEach(["post","put","patch","query"],function(t){function i(i){return function(n,r,o){return this.request(nU(o||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rc.prototype[t]=i(),"query"!==t&&(rc.prototype[t+"Form"]=i(!0))});let rd=class t{constructor(t){let i;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){i=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](t);n._listeners=null}),this.promise.then=t=>{let i,r=new Promise(t=>{n.subscribe(t),i=t}).then(t);return r.cancel=function(){n.unsubscribe(i)},r},t(function(t,r,o){n.reason||(n.reason=new nT(t,r,o),i(n.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 i=this._listeners.indexOf(t);-1!==i&&this._listeners.splice(i,1)}toAbortSignal(){let t=new AbortController,i=i=>{t.abort(i)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let i;return{token:new t(function(t){i=t}),cancel:i}}},ru={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ru).forEach(([t,i])=>{void 0===ru[i]&&(ru[i]=t)});let rh=function t(i){let n=new rc(i),r=t5(rc.prototype.request,n);return iY.extend(r,rc.prototype,n,{allOwnKeys:!0}),iY.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(nU(i,n))},r}(nE);rh.Axios=rc,rh.CanceledError=nT,rh.CancelToken=rd,rh.isCancel=nC,rh.VERSION="1.20.0",rh.toFormData=i9,rh.AxiosError=i5,rh.Cancel=rh.CanceledError,rh.all=function(t){return Promise.all(t)},rh.spread=function(t){return function(i){return t.apply(null,i)}},rh.isAxiosError=function(t){return iY.isObject(t)&&!0===t.isAxiosError},rh.mergeConfig=nU,rh.AxiosHeaders=i0,rh.formToJSON=t=>nx(iY.isHTMLForm(t)?new FormData(t):t),rh.getAdapter=rn,rh.HttpStatusCode=ru,rh.default=rh;class rp{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rR`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rR`info`,options:t})}}class rm{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,i){return this.httpClient.request({method:"PUT",url:rR`user/locale`,data:t,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rR`user/query`,data:t,options:i})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rR`user/request-password-reset`,options:t})}updatePasswordCurrent(t,i){return this.httpClient.request({method:"PUT",url:rR`user/reset-password`,data:t,options:i})}updateCurrent(t,i){return this.httpClient.request({method:"PUT",url:rR`user/update`,data:t,options:i})}getCurrent(t){return this.httpClient.request({method:"GET",url:rR`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rR`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,i){return this.httpClient.request({method:"GET",url:rR`user/userRoles/${t}`,options:i})}disconnectUserSession(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`user/${t}/disconnect/${i}`,options:n})}requestPasswordReset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`user/${t}/request-password-reset/${i}`,options:n})}updatePassword(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`user/${t}/reset-password/${i}`,data:n,options:r})}resetSecret(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/reset-secret/${i}`,options:n})}updateRoles(t,i,n){return this.httpClient.request({method:"PUT",url:rR`user/${t}/roles`,data:i,options:n})}getUserRealmRoles(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/userRealmRoles/${i}`,options:n})}updateUserRealmRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`user/${t}/userRealmRoles/${i}`,data:n,options:r})}getUserClientRoles(t,i,n,r){return this.httpClient.request({method:"GET",url:rR`user/${t}/userRoles/${i}/${n}`,options:r})}updateUserClientRoles(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rR`user/${t}/userRoles/${i}/${n}`,data:r,options:o})}getUserSessions(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/userSessions/${i}`,options:n})}create(t,i,n){return this.httpClient.request({method:"POST",url:rR`user/${t}/users`,data:i,options:n})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rR`user/${t}/users`,data:i,options:n})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`user/${t}/users/${i}`,options:n})}getClientRoles(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/${i}/roles`,options:n})}updateClientRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`user/${t}/${i}/roles`,data:n,options:r})}get(t,i,n){return this.httpClient.request({method:"GET",url:rR`user/${t}/${i}`,options:n})}}class rf{constructor(t){this.httpClient=t}createProvisioningConfig(t,i){return this.httpClient.request({method:"POST",url:rR`provisioning`,data:t,options:i})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rR`provisioning`,options:t})}deleteProvisioningConfig(t,i){return this.httpClient.request({method:"DELETE",url:rR`provisioning/${t}`,options:i})}updateProvisioningConfig(t,i,n){return this.httpClient.request({method:"PUT",url:rR`provisioning/${t}`,data:i,options:n})}}class rg{constructor(t){this.httpClient=t}getPredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rR`asset/predicted/${t}/${i}`,data:n,options:r})}writePredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`asset/predicted/${t}/${i}`,data:n,options:r})}}class rb{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rR`dashboard`,data:t,options:i})}update(t,i){return this.httpClient.request({method:"PUT",url:rR`dashboard`,data:t,options:i})}getAllRealmDashboards(t,i){return this.httpClient.request({method:"GET",url:rR`dashboard/all/${t}`,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rR`dashboard/query`,data:t,options:i})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`dashboard/${t}/${i}`,options:n})}get(t,i,n){return this.httpClient.request({method:"GET",url:rR`dashboard/${t}/${i}`,options:n})}}class r_{constructor(t){this.httpClient=t}createAlarm(t,i,n){return this.httpClient.request({method:"POST",url:rR`alarm`,queryParams:i,data:t,options:n})}getAlarms(t,i){return this.httpClient.request({method:"GET",url:rR`alarm`,queryParams:t,options:i})}removeAlarms(t,i){return this.httpClient.request({method:"DELETE",url:rR`alarm`,data:t,options:i})}setAssetLinks(t,i){return this.httpClient.request({method:"PUT",url:rR`alarm/assets`,data:t,options:i})}getAlarm(t,i){return this.httpClient.request({method:"GET",url:rR`alarm/${t}`,options:i})}removeAlarm(t,i){return this.httpClient.request({method:"DELETE",url:rR`alarm/${t}`,options:i})}updateAlarm(t,i,n){return this.httpClient.request({method:"PUT",url:rR`alarm/${t}`,data:i,options:n})}getAssetLinks(t,i,n){return this.httpClient.request({method:"GET",url:rR`alarm/${t}/assets`,queryParams:i,options:n})}}class ry{constructor(t){this.httpClient=t}deleteConnections(t,i){return this.httpClient.request({method:"DELETE",url:rR`gateway/connection`,queryParams:t,options:i})}getConnections(t){return this.httpClient.request({method:"GET",url:rR`gateway/connection`,options:t})}deleteConnection(t,i){return this.httpClient.request({method:"DELETE",url:rR`gateway/connection/${t}`,options:i})}getConnection(t,i){return this.httpClient.request({method:"GET",url:rR`gateway/connection/${t}`,options:i})}setConnection(t,i,n){return this.httpClient.request({method:"PUT",url:rR`gateway/connection/${t}`,data:i,options:n})}getConnectionStatus(t,i){return this.httpClient.request({method:"GET",url:rR`gateway/status/${t}`,options:i})}}class rv{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rR`asset`,data:t,options:i})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rR`asset`,queryParams:t,options:i})}writeAttributeValues(t,i){return this.httpClient.request({method:"PUT",url:rR`asset/attributes`,data:t,options:i})}writeAttributeEvents(t,i){return this.httpClient.request({method:"PUT",url:rR`asset/attributes/timestamp`,data:t,options:i})}queryCount(t,i){return this.httpClient.request({method:"POST",url:rR`asset/count`,data:t,options:i})}updateNoneParent(t,i){return this.httpClient.request({method:"DELETE",url:rR`asset/parent`,queryParams:t,options:i})}getPartial(t,i){return this.httpClient.request({method:"GET",url:rR`asset/partial/${t}`,options:i})}queryAssets(t,i){return this.httpClient.request({method:"POST",url:rR`asset/query`,data:t,options:i})}queryAssetTree(t,i){return this.httpClient.request({method:"POST",url:rR`asset/tree`,data:t,options:i})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rR`asset/user/current`,options:t})}createUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rR`asset/user/link`,data:t,options:i})}getUserAssetLinks(t,i){return this.httpClient.request({method:"GET",url:rR`asset/user/link`,queryParams:t,options:i})}deleteUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rR`asset/user/link/delete`,data:t,options:i})}deleteAllUserAssetLinks(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`asset/user/link/${t}/${i}`,options:n})}deleteUserAssetLink(t,i,n,r){return this.httpClient.request({method:"DELETE",url:rR`asset/user/link/${t}/${i}/${n}`,options:r})}get(t,i){return this.httpClient.request({method:"GET",url:rR`asset/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rR`asset/${t}`,data:i,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`asset/${t}/attribute/${i}`,data:n,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rR`asset/${t}/attribute/${i}/${n}`,data:r,options:o})}updateParent(t,i,n){return this.httpClient.request({method:"PUT",url:rR`asset/${t}/child`,queryParams:i,options:n})}}class rx{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rR`configuration/manager`,options:t})}update(t,i){return this.httpClient.request({method:"PUT",url:rR`configuration/manager`,data:t,options:i})}fileUpload(t,i,n){return this.httpClient.request({method:"POST",url:rR`configuration/manager/file`,queryParams:i,data:t,options:n})}getManagerConfigImage(t,i){return this.httpClient.request({method:"GET",url:rR`configuration/manager/image/${t}`,options:i})}}class rw{constructor(t){this.httpClient=t}getServices(t,i){return this.httpClient.request({method:"GET",url:rR`service`,queryParams:t,options:i})}registerService(t,i){return this.httpClient.request({method:"POST",url:rR`service`,data:t,options:i})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rR`service/global`,options:t})}registerGlobalService(t,i){return this.httpClient.request({method:"POST",url:rR`service/global`,data:t,options:i})}deregisterService(t,i,n){return this.httpClient.request({method:"DELETE",url:rR`service/${t}/${i}`,options:n})}getService(t,i,n){return this.httpClient.request({method:"GET",url:rR`service/${t}/${i}`,options:n})}heartbeat(t,i,n){return this.httpClient.request({method:"PUT",url:rR`service/${t}/${i}`,options:n})}}class rk{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rR`map`,options:t})}saveSettings(t,i){return this.httpClient.request({method:"PUT",url:rR`map`,data:t,options:i})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rR`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rR`map/getCustomMapInfo`,options:t})}getTile(t,i,n,r){return this.httpClient.request({method:"GET",url:rR`map/tile/${t}/${i}/${n}`,options:r})}uploadMap(t,i){return this.httpClient.request({method:"POST",url:rR`map/upload`,queryParams:t,options:i})}}class rE{constructor(t){this.httpClient=t}getDatapointExport(t,i){return this.httpClient.request({method:"GET",url:rR`asset/datapoint/export`,queryParams:t,options:i})}getDatapointPeriod(t,i){return this.httpClient.request({method:"GET",url:rR`asset/datapoint/periods`,queryParams:t,options:i})}getDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rR`asset/datapoint/${t}/${i}`,data:n,options:r})}}class rF{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rR`syslog/config`,options:t})}updateConfig(t,i){return this.httpClient.request({method:"PUT",url:rR`syslog/config`,data:t,options:i})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rR`syslog/event`,options:t})}getEvents(t,i){return this.httpClient.request({method:"GET",url:rR`syslog/event`,queryParams:t,options:i})}}class rC{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rR`flow`,options:t})}getNodeDefinition(t,i){return this.httpClient.request({method:"GET",url:rR`flow/${t}`,options:i})}getAllNodeDefinitionsByType(t,i){return this.httpClient.request({method:"GET",url:rR`flow/${t}`,options:i})}}class rT{constructor(t){this.httpClient=t}getNotifications(t,i){return this.httpClient.request({method:"GET",url:rR`notification`,queryParams:t,options:i})}removeNotifications(t,i){return this.httpClient.request({method:"DELETE",url:rR`notification`,queryParams:t,options:i})}sendNotification(t,i){return this.httpClient.request({method:"POST",url:rR`notification/alert`,data:t,options:i})}getNotificationsCount(t,i){return this.httpClient.request({method:"GET",url:rR`notification/count`,queryParams:t,options:i})}removeNotification(t,i){return this.httpClient.request({method:"DELETE",url:rR`notification/${t}`,options:i})}notificationAcknowledged(t,i,n,r){return this.httpClient.request({method:"PUT",url:rR`notification/${t}/acknowledged`,queryParams:n,data:i,options:r})}notificationDelivered(t,i,n){return this.httpClient.request({method:"PUT",url:rR`notification/${t}/delivered`,queryParams:i,options:n})}}class rA{constructor(t){this.httpClient=t}createGlobalRuleset(t,i){return this.httpClient.request({method:"POST",url:rR`rules`,data:t,options:i})}getGlobalRulesets(t,i){return this.httpClient.request({method:"GET",url:rR`rules`,queryParams:t,options:i})}createAssetRuleset(t,i){return this.httpClient.request({method:"POST",url:rR`rules/asset`,data:t,options:i})}getAssetRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rR`rules/asset/for/${t}`,queryParams:i,options:n})}deleteAssetRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rR`rules/asset/${t}`,options:i})}getAssetRuleset(t,i){return this.httpClient.request({method:"GET",url:rR`rules/asset/${t}`,options:i})}updateAssetRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`rules/asset/${t}`,data:i,options:n})}getAssetGeofences(t,i){return this.httpClient.request({method:"GET",url:rR`rules/geofences/${t}`,options:i})}getAssetEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rR`rules/info/asset/${t}`,options:i})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rR`rules/info/global`,options:t})}getRealmEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rR`rules/info/realm/${t}`,options:i})}createRealmRuleset(t,i){return this.httpClient.request({method:"POST",url:rR`rules/realm`,data:t,options:i})}getRealmRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rR`rules/realm/for/${t}`,queryParams:i,options:n})}deleteRealmRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rR`rules/realm/${t}`,options:i})}getRealmRuleset(t,i){return this.httpClient.request({method:"GET",url:rR`rules/realm/${t}`,options:i})}updateRealmRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`rules/realm/${t}`,data:i,options:n})}deleteGlobalRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rR`rules/${t}`,options:i})}getGlobalRuleset(t,i){return this.httpClient.request({method:"GET",url:rR`rules/${t}`,options:i})}updateGlobalRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rR`rules/${t}`,data:i,options:n})}}class rS{constructor(t){this.httpClient=t}getAssetDescriptors(t,i){return this.httpClient.request({method:"GET",url:rR`model/assetDescriptors`,queryParams:t,options:i})}getAssetInfo(t,i,n){return this.httpClient.request({method:"GET",url:rR`model/assetInfo/${t}`,queryParams:i,options:n})}getAssetInfos(t,i){return this.httpClient.request({method:"GET",url:rR`model/assetInfos`,queryParams:t,options:i})}getValueDescriptorSchema(t,i){return this.httpClient.request({method:"GET",url:rR`model/getValueDescriptorSchema`,queryParams:t,options:i})}getMetaItemDescriptors(t,i){return this.httpClient.request({method:"GET",url:rR`model/metaItemDescriptors`,queryParams:t,options:i})}getValueDescriptors(t,i){return this.httpClient.request({method:"GET",url:rR`model/valueDescriptors`,queryParams:t,options:i})}}class rM{constructor(t){this.httpClient=t}startTunnel(t,i){return this.httpClient.request({method:"POST",url:rR`gateway/tunnel`,data:t,options:i})}stopTunnel(t,i){return this.httpClient.request({method:"DELETE",url:rR`gateway/tunnel`,data:t,options:i})}getAllActiveTunnelInfos(t,i){return this.httpClient.request({method:"GET",url:rR`gateway/tunnel/${t}`,options:i})}getGatewayActiveTunnelInfos(t,i,n){return this.httpClient.request({method:"GET",url:rR`gateway/tunnel/${t}/${i}`,options:n})}getActiveTunnelInfo(t,i,n,r,o){return this.httpClient.request({method:"GET",url:rR`gateway/tunnel/${t}/${i}/${n}/${r}`,options:o})}}class rD{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rR`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rR`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rR`apps/info`,options:t})}}class rL{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rR`realm`,data:t,options:i})}getAll(t){return this.httpClient.request({method:"GET",url:rR`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rR`realm/accessible`,options:t})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rR`realm/${t}`,options:i})}get(t,i){return this.httpClient.request({method:"GET",url:rR`realm/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rR`realm/${t}`,data:i,options:n})}}class rI{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rR`agent/assetDiscovery/${t}`,queryParams:i,options:n})}doProtocolAssetImport(t,i,n,r){return this.httpClient.request({method:"POST",url:rR`agent/assetImport/${t}`,queryParams:n,data:i,options:r})}doProtocolInstanceDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rR`agent/instanceDiscovery/${t}`,queryParams:i,options:n})}}class rO{constructor(t){this.httpClient=t}register(t,i){return this.httpClient.request({method:"POST",url:rR`console/register`,data:t,options:i})}}function rR(t,...i){let n="";for(let r=0;r<i.length;r++)n+=t[r],n+=encodeURIComponent(i[r]);return n+t[t.length-1]}class rP{constructor(t,i=rh.create()){this._statusResource=new rN(t,i),this._userResource=new rB(t,i),this._provisioningResource=new rz(t,i),this._assetPredictedDatapointResource=new rj(t,i),this._dashboardResource=new rY(t,i),this._alarmResource=new rU(t,i),this._gatewayClientResource=new rH(t,i),this._assetResource=new rV(t,i),this._configurationResource=new rW(t,i),this._externalServiceResource=new rq(t,i),this._mapResource=new rG(t,i),this._assetDatapointResource=new rK(t,i),this._syslogResource=new rX(t,i),this._flowResource=new rZ(t,i),this._notificationResource=new rJ(t,i),this._rulesResource=new rQ(t,i),this._assetModelResource=new r0(t,i),this._gatewayServiceResource=new r1(t,i),this._appResource=new r2(t,i),this._realmResource=new r3(t,i),this._agentResource=new r5(t,i),this._consoleResource=new r4(t,i),this._assetResource=new rV(t,i)}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get NotificationResource(){return this._notificationResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}}class r${constructor(t){this.axios=t}request(t){let i={};i.method=t.method,i.url=t.url,i.params=t.queryParams,i.data=t.data,function(t,i){if(void 0!=i)for(let n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}(i,t.options);let n=t.copyFn;return this.axios.request(i).then(t=>(n&&t.data&&(t.originalData=t.data,t.data=n(t.data)),t))}}class rN extends rp{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rB extends rm{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rz extends rf{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rj extends rg{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rY extends rb{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rU extends r_{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rH extends ry{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rV extends rv{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rW extends rx{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rq extends rw{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rG extends rk{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rK extends rE{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rX extends rF{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rZ extends rC{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rJ extends rT{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class rQ extends rA{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r0 extends rS{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r1 extends rM{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r2 extends rD{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r3 extends rL{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r5 extends rI{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}class r4 extends rO{constructor(t,i=rh.create()){i.defaults.baseURL=t,super(new r$(i))}}var r6=n(88183),r8=n.n(r6);rh.isAxiosError;let r7=new class{get api(){return this._client}constructor(){this._axiosInstance=rh.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>r8().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 rP(t,this._axiosInstance)}};var r9=function(t,i,n,r){return new(n||(n=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 i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};(f5=br||(br={})).DISCONNECTED="DISCONNECTED",f5.CONNECTED="CONNECTED",f5.CONNECTING="CONNECTING";let oe="SUBSCRIBED:",ot="UNAUTHORIZED:",oi="TRIGGERED:",on="EVENT:";class or{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oo.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=br.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,i){if(0===t.length)return;let n=t.indexOf(i);n>=0&&t.splice(n,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===br.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(br.CONNECTING),this._connectingDeferred=new tL,this._doConnect().then(t=>{if(this._connectingDeferred){let i=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oo.MIN_RECONNECT_DELAY,this._onStatusChanged(br.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),i.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!==br.DISCONNECTED&&this._doDisconnect())}subscribe(t,i){let n={eventSubscription:t,callback:i,deferred:new tL};return null!=this._pendingSubscription||this._status!==br.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,i),this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return r9(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)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===br.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==br.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,i,n){return r9(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+or._subscriptionCounter++;if(!this._assetEventPromise){let t;oJ.authenticated||(t={filterType:"asset",realm:oJ.displayRealm});let i={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(i,t=>{this._assetEventCallbackMap.forEach(i=>i(t))})}return this._assetEventCallbackMap.set(o,t=>{let i=t.asset.id;r?r.find(t=>i===t)&&n(t):t.asset.realm===oJ.displayRealm&&n(t)}),this._assetEventPromise.then(()=>{try{if(r&&i){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=>{n({eventType:"asset",asset:t,cause:"READ"})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),i}return o})})}subscribeAttributeEvents(t,i,n){return r9(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"+or._subscriptionCounter++;if(!this._attributeEventPromise){let t;oJ.authenticated||(t={filterType:"asset",realm:oJ.displayRealm});let i={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(i,t=>{this._attributeEventCallbackMap.forEach(i=>i(t))})}let l=i=>{let a=i.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&n(i)}):o?o.find(t=>a.id===t)&&n(i):i.realm===oJ.displayRealm&&n(i)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(i&&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(([i,n])=>{(!a||a.find(n=>n.id===t.id&&n.name===i))&&l({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:t.id,name:i}})})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),i}return s})})}_processNextSubscription(){this._status===br.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(i=>{let n=t.deferred;t.deferred=null,n&&n.resolve(i)},i=>{let n=t.deferred;t.deferred=null,n&&n.reject(i)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(i=>i(t))},0))}_onMessageReceived(t,i){let n=this._subscriptionMap.get(t);n&&n.callback(i)}_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===br.CONNECTED&&this._onStatusChanged(br.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(br.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<oo.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oo.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}or.MIN_RECONNECT_DELAY=0,or.MAX_RECONNECT_DELAY=3e4,or._subscriptionCounter=0;class oo extends or{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="+oJ.config.realm;return this._connectDeferred=new tL,(oJ.authenticated?oJ.retrieveAuthorizationHeader().then(i=>{t+="&Authorization="+i}):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 i=t.data;if(i&&i.startsWith(oe)){let t=JSON.parse(i.substring(oe.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(t.subscriptionId)}else if(i.startsWith(ot)){let t=JSON.parse(i.substring(ot.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),n.reject("Unauthorized"))}else if(i.startsWith(oi)){let t=JSON.parse(i.substring(oi.length));t.events&&t.events.forEach(i=>{this._onMessageReceived(t.subscriptionId,i)})}else if(i.startsWith(on)){let t=JSON.parse(i.substring(on.length));if(t.messageID){let i=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),i&&i.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 tL,t.subscriptionId||(t.subscriptionId=oo._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 i=on+JSON.stringify(t);this._webSocket.send(i)}_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 i=new tL;return this._repliesDeferred.set(t.messageID,i),this._webSocket.send(on+JSON.stringify(t)),i.promise}}oo._subscriptionCounter=1;let oa=["__proto__","constructor","prototype"];function os(t){return!("string"!=typeof t||0===t.length||t.length>128||oa.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%:\s]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function ol(t){return!(!os(t)||t.indexOf("/")>-1||t.indexOf("@")>-1)}let oc={lng:ol,ns:function(t){return!(!os(t)||t.indexOf("//")>-1)}};function od(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function ou(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let oh=/\{\{(.+?)\}\}/g;function op(t,i){let n=!1,r=t.replace(oh,(t,r)=>{let o=r.trim();if(oa.indexOf(o)>-1)return t;let a=i[o];if(null==a)return t;let s=oc[o]||ol,l=String(a).split("+");for(let i of l)if(!s(i))return n=!0,t;return l.join("+")});return n?null:r}let om="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?i=fetch:om&&"function"==typeof om.fetch&&(i=om.fetch);let of=ou()&&om?om.XMLHttpRequest:void 0,og="function"==typeof ActiveXObject&&om?om.ActiveXObject:void 0,ob=["__proto__","constructor","prototype"],o_=(t,i)=>{if(i&&"object"==typeof i){let n="";for(let t of Object.keys(i))ob.indexOf(t)>-1||(n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(i[t]));if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t},oy=(t,n,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(i=>{r(null,{status:t.status,data:i})}).catch(r)};if(o){let i=o(t,n);if(i instanceof Promise)return void i.then(a).catch(r)}"function"==typeof fetch?fetch(t,n).then(a).catch(r):i(t,n).then(a).catch(r)},ov=(t,n,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),i&&0!==n.indexOf("file:")){var a=n,s=r,l=o;t.queryStringParams&&(a=o_(a,t.queryStringParams));let i={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(i["Content-Type"]="application/json");let c="function"==typeof t.requestOptions?t.requestOptions(s):t.requestOptions,d={method:s?"POST":"GET",body:s?t.stringify(s):void 0,headers:i,...t._omitFetchOptions?{}:c},u="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{oy(a,d,l,u)}catch(i){if(!c||0===Object.keys(c).length||!i.message||0>i.message.indexOf("not implemented"))return l(i);try{Object.keys(c).forEach(t=>{delete d[t]}),oy(a,d,l,u),t._omitFetchOptions=!0}catch(t){l(t)}}return}if(ou()||"function"==typeof ActiveXObject){var c=n,d=r,u=o;d&&"object"==typeof d&&(d=o_("",d).slice(1)),t.queryStringParams&&(c=o_(c,t.queryStringParams));try{let i=of?new of:new og("MSXML2.XMLHTTP.3.0");i.open(d?"POST":"GET",c,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,d&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))ob.indexOf(t)>-1||i.setRequestHeader(t,n[t]);i.onreadystatechange=()=>{i.readyState>3&&u(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var ox=class{constructor(t,i={},n={}){this.services=t,this.options=i,this.allOptions=n,this.type="backend",this.init(t,i,n)}init(t,i={},n={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,i,n)=>({[i]:n||""}),parseLoadPayload:(t,i)=>void 0,request:ov,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...i},this.allOptions=n,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,i,n){this._readAny(t,t,i,i,n)}read(t,i,n){this._readAny([t],t,[i],i,n)}_readAny(t,i,n,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,n)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=op(a,{lng:t.join("+"),ns:n.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(od).join(", ")+"] namespaces=["+n.map(od).join(", ")+"]"),!1);this.loadUrl(s,o,i,r)})}loadUrl(t,i,n,r){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof r?[r]:r),a=od(function(t){if("string"!=typeof t||0===t.length)return t;try{let i=new URL(t);if(i.username||i.password)return i.username="",i.password="",i.toString();return t}catch(i){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return i("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return i("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let n=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>n.indexOf(t)>-1))return i("failed loading "+a+": "+od(t.message),!0)}if(t)return i(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,n,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return i(l,!1);i(null,s)})}create(t,i,n,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(i,n,r),s=0,l=[],c=[];t.forEach(n=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(n,i));let d=op(r,{lng:n,ns:i});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(i,n)=>{s+=1,l.push(i),c.push(n),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:i,logger:n}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{i.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(i=>{this.allOptions.ns.forEach(r=>{t.read(i,r,"read",null,null,(o,a)=>{o&&n.warn(`loading namespace ${r} for language ${i} failed`,o),!o&&a&&n.log(`loaded namespace ${r} for language ${i}`,a),t.loaded(`${i}|${r}`,o,a)})})})}};ox.type="backend";let ow=t=>(...i)=>({_$litDirective$:t,values:i});class ok{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}class oE extends ok{constructor(t){if(super(t),this.it=ek,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ek||null==t)return this._t=void 0,this.it=t;if(t===ew)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 i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}oE.directiveName="unsafeHTML",oE.resultType=1,ow(oE);class oF extends oE{}oF.directiveName="unsafeSVG",oF.resultType=2;let oC=ow(oF),oT={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var oA=function(t,i,n,r){var o,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(i,n,s):o(i,n))||s);return a>3&&s&&Object.defineProperty(i,n,s),s};class oS extends CustomEvent{constructor(){super(oS.NAME,{bubbles:!0,composed:!0})}}oS.NAME="or-iconset-added";let oM=new class{constructor(){this._icons={}}addIconSet(t,i){this._icons[t]=i,this._defaultIconSet||(this._defaultIconSet=i),i.onAdd&&i.onAdd(),window.dispatchEvent(new oS)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return ev``;let i=(t||"").split(":"),n=i.pop(),r=i.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),n&&o)?o.getIconTemplate(n):ev``}};function oD(t,i,n,r,o){let a=r||eJ.getAssetDescriptorColour(t,i),s=o||eJ.getAssetDescriptorIcon(t,n);return s||(s=eJ.getAssetDescriptorIcon("ThingAsset")),ev`<or-icon style="--or-icon-fill: ${a?"#"+a:"unset"}" icon="${s}"></or-icon>`}let oL=class extends eU{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[P`
|
|
833
833
|
:host {
|
|
834
834
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
835
835
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-rules",
|
|
3
|
-
"version": "1.32.0
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "OpenRemote rules related UI components",
|
|
5
5
|
"customElements": "build/custom-elements.json",
|
|
6
6
|
"main": "build/dist/umd/index.bundle.js",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"author": "OpenRemote",
|
|
28
28
|
"license": "AGPL-3.0-or-later",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@openremote/core": "1.32.0
|
|
31
|
-
"@openremote/model": "1.32.0
|
|
32
|
-
"@openremote/or-asset-tree": "1.32.0
|
|
33
|
-
"@openremote/or-attribute-input": "1.32.0
|
|
34
|
-
"@openremote/or-attribute-picker": "1.32.0
|
|
35
|
-
"@openremote/or-components": "1.32.0
|
|
36
|
-
"@openremote/or-element": "1.32.0
|
|
37
|
-
"@openremote/or-icon": "1.32.0
|
|
38
|
-
"@openremote/or-map": "1.32.0
|
|
39
|
-
"@openremote/or-mwc-components": "1.32.0
|
|
40
|
-
"@openremote/or-scheduler": "1.32.0
|
|
41
|
-
"@openremote/or-translate": "1.32.0
|
|
42
|
-
"@openremote/or-tree-menu": "1.32.0
|
|
43
|
-
"@openremote/or-vaadin-components": "1.32.0
|
|
44
|
-
"@openremote/rest": "1.32.0
|
|
30
|
+
"@openremote/core": "1.32.0",
|
|
31
|
+
"@openremote/model": "1.32.0",
|
|
32
|
+
"@openremote/or-asset-tree": "1.32.0",
|
|
33
|
+
"@openremote/or-attribute-input": "1.32.0",
|
|
34
|
+
"@openremote/or-attribute-picker": "1.32.0",
|
|
35
|
+
"@openremote/or-components": "1.32.0",
|
|
36
|
+
"@openremote/or-element": "1.32.0",
|
|
37
|
+
"@openremote/or-icon": "1.32.0",
|
|
38
|
+
"@openremote/or-map": "1.32.0",
|
|
39
|
+
"@openremote/or-mwc-components": "1.32.0",
|
|
40
|
+
"@openremote/or-scheduler": "1.32.0",
|
|
41
|
+
"@openremote/or-translate": "1.32.0",
|
|
42
|
+
"@openremote/or-tree-menu": "1.32.0",
|
|
43
|
+
"@openremote/or-vaadin-components": "1.32.0",
|
|
44
|
+
"@openremote/rest": "1.32.0",
|
|
45
45
|
"ace-builds": "^1.44.0",
|
|
46
46
|
"iso-639-1": "^3.1.6",
|
|
47
47
|
"linqts": "^3.2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"shortid": "^2.2.15"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@openremote/util": "1.32.0
|
|
55
|
+
"@openremote/util": "1.32.0",
|
|
56
56
|
"@types/shortid": "^0.0.29"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|