@openremote/or-services 1.30.0 → 1.31.0-snapshot.20260903081447
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/dist/umd/index.bundle.js +1 -1
- package/package.json +9 -9
package/dist/umd/index.bundle.js
CHANGED
|
@@ -7,7 +7,7 @@ var ORServices;(()=>{var e={3260(e){"use strict";let t=(async function(){}).cons
|
|
|
7
7
|
font-weight: 600;
|
|
8
8
|
line-height: 125.303%;
|
|
9
9
|
}
|
|
10
|
-
`;class oM extends oI{static finalizeStyles(e){return[oL,...super.finalizeStyles(e)]}}let oU=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oj={attribute:!0,type:String,converter:t5,reflect:!1,hasChanged:t4};function o$(e){return(t,o)=>{let n;return"object"==typeof o?((e=oj,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function oG(e){return o$({...e,state:!0,attribute:!1})}let oq=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function oH(t){return(o,n)=>oq(o,n,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function oz(e){return(t,o)=>{let{slot:n,selector:r}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return oq(t,o,{get(){let t=this.renderRoot?.querySelector(i),o=t?.assignedElements(e)??[];return void 0===r?o:o.filter(e=>e.matches(r))}})}}o(4532),(m=eO||(eO={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",(b=eT||(eT={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eB||(eB={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eR||(eR={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(F=eN||(eN={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(g=eI||(eI={})).CREATE="CREATE",g.READ="READ",g.UPDATE="UPDATE",g.DELETE="DELETE",(v=eP||(eP={})).NONE="NONE",v.FORECAST="FORECAST",v.SETPOINT="SETPOINT",(y=eL||(eL={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(E=eM||(eM={})).REQUEST_START="REQUEST_START",E.REQUEST_REPEATING="REQUEST_REPEATING",E.REQUEST_CANCEL="REQUEST_CANCEL",E.READY="READY",E.COMPLETED="COMPLETED",E.RUNNING="RUNNING",E.CANCELLED="CANCELLED",(_=eU||(eU={})).TOGGLE="TOGGLE",_.INCREMENT="INCREMENT",_.DECREMENT="DECREMENT",_.NEGATE="NEGATE",(w=ej||(ej={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",w.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",w.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",w.INVALID_VALUE="INVALID_VALUE",w.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",w.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",w.CANNOT_PROCESS="CANNOT_PROCESS",w.QUEUE_FULL="QUEUE_FULL",w.UNKNOWN="UNKNOWN",w.ASSET_ID_MISSING="ASSET_ID_MISSING",w.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=e$||(e$={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(k=eG||(eG={})).OFF="OFF",k.ONE_MIN="ONE_MIN",k.FIVE_MIN="FIVE_MIN",k.QUARTER="QUARTER",k.ONE_HOUR="ONE_HOUR",(C=eq||(eq={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",C.KEEP_LAYOUT="KEEP_LAYOUT",C.REDIRECT="REDIRECT",C.BLOCK_DEVICE="BLOCK_DEVICE",(D=eH||(eH={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(S=ez||(ez={})).MINUTE="MINUTE",S.HOUR="HOUR",S.DAY="DAY",S.WEEK="WEEK",S.MONTH="MONTH",S.YEAR="YEAR",(x=eW||(eW={})).MIN="MIN",x.AVG="AVG",x.MAX="MAX",x.DIFFERENCE="DIFFERENCE",x.COUNT="COUNT",x.SUM="SUM",x.MODE="MODE",x.MEDIAN="MEDIAN",(O=eV||(eV={})).TERMINATING="TERMINATING",O.DISABLED="DISABLED",O.ALREADY_CONNECTED="ALREADY_CONNECTED",O.UNRECOGNISED="UNRECOGNISED",O.PERMANENT_ERROR="PERMANENT_ERROR",O.SYNC_ERROR="SYNC_ERROR",(T=eY||(eY={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(B=eK||(eK={})).GET="GET",B.POST="POST",B.PUT="PUT",B.DELETE="DELETE",B.OPTIONS="OPTIONS",B.PATCH="PATCH",(R=eJ||(eJ={})).KEYCLOAK="KEYCLOAK",R.NONE="NONE",(N=eX||(eX={})).WEBSOCKET="WEBSOCKET",N.POLLING="POLLING",(I=eQ||(eQ={})).INTERNAL="INTERNAL",I.CLIENT="CLIENT",I.GLOBAL_RULESET="GLOBAL_RULESET",I.REALM_RULESET="REALM_RULESET",I.ASSET_RULESET="ASSET_RULESET",(P=eZ||(eZ={})).REALM="REALM",P.USER="USER",P.ASSET="ASSET",P.CUSTOM="CUSTOM",(L=e0||(e0={})).NORMAL="NORMAL",L.HIGH="HIGH",(M=e1||(e1={})).DEVICE="DEVICE",M.TOPIC="TOPIC",M.CONDITION="CONDITION",(U=e2||(e2={})).ALWAYS="ALWAYS",U.ONCE="ONCE",U.HOURLY="HOURLY",U.DAILY="DAILY",U.WEEKLY="WEEKLY",U.MONTHLY="MONTHLY",U.ANNUALLY="ANNUALLY",(j=e3||(e3={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",($=e5||(e5={})).MESSAGE_INVALID="MESSAGE_INVALID",$.CERTIFICATE_INVALID="CERTIFICATE_INVALID",$.UNAUTHORIZED="UNAUTHORIZED",$.FORBIDDEN="FORBIDDEN",$.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",$.CONFIG_DISABLED="CONFIG_DISABLED",$.USER_DISABLED="USER_DISABLED",$.SERVER_ERROR="SERVER_ERROR",$.ASSET_ERROR="ASSET_ERROR",$.SERVER_BUSY="SERVER_BUSY",(G=e4||(e4={})).PRIVATE="PRIVATE",G.PROTECTED="PROTECTED",G.PUBLIC="PUBLIC",(q=e6||(e6={})).EXACT="EXACT",q.BEGIN="BEGIN",q.END="END",q.CONTAINS="CONTAINS",(H=e8||(e8={})).EQUALS="EQUALS",H.GREATER_THAN="GREATER_THAN",H.GREATER_EQUALS="GREATER_EQUALS",H.LESS_THAN="LESS_THAN",H.LESS_EQUALS="LESS_EQUALS",H.BETWEEN="BETWEEN",(z=e9||(e9={})).CREATED_ON="CREATED_ON",z.NAME="NAME",z.ASSET_TYPE="ASSET_TYPE",z.PARENT_ID="PARENT_ID",z.REALM="REALM",(W=e7||(e7={})).RESTRICTED="RESTRICTED",W.LINKED="LINKED",W.REALM="REALM",(V=te||(te={})).AT_LEAST_ONE="AT_LEAST_ONE",V.ALL="ALL",V.NONE="NONE",(Y=tt||(tt={})).AND="AND",Y.OR="OR",(K=to||(to={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=tn||(tn={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(X=tr||(tr={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=ti||(ti={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=ta||(ta={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=tc||(tc={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=ts||(ts={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(eo=tl||(tl={})).INPUT="INPUT",eo.PROCESSOR="PROCESSOR",eo.OUTPUT="OUTPUT",eo.THEN="THEN",(en=td||(td={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(er=tf||(tf={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=tu||(tu={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tm||(tm={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.READ="read",ea.WRITE="write",(ec=tb||(tb={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(es=th||(th={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(el=tp||(tp={})).ASSET="ASSET",el.AGENT="AGENT",el.NOTIFICATION="NOTIFICATION",el.ALARM="ALARM",el.RULES="RULES",el.PROTOCOL="PROTOCOL",el.GATEWAY="GATEWAY",el.MODEL_AND_VALUES="MODEL_AND_VALUES",el.API="API",el.DATA="DATA",(ed=tF||(tF={})).INFO="INFO",ed.WARN="WARN",ed.ERROR="ERROR",(ef=tg||(tg={})).NUMERIC="numeric",ef.DIGIT_2="2-digit",ef.FULL="full",ef.LONG="long",ef.MEDIUM="medium",ef.SHORT="short",ef.NARROW="narrow",(eu=tv||(tv={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(em=ty||(ty={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eb=tE||(tE={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=t_||(t_={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tw||(tw={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(eF=tA||(tA={})).COLOURRGB="colourRGB",eF.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eF.PRICEHOURLY="priceHourly",eF.MQTTPORT="MQTTPort",eF.PINGDISABLED="pingDisabled",eF.FLOW="flow",eF.CHILDASSETTYPE="childAssetType",eF.LASTACCESS="lastAccess",eF.POSITION="position",eF.NETWORKKEY="networkKey",eF.UNIVERSE="universe",eF.ROUTINGMODE="routingMode",eF.MSSINUMBER="MSSINumber",eF.LASTWILLRETAIN="lastWillRetain",eF.LASTWILLTOPIC="lastWillTopic",eF.SERIALBAUDRATE="serialBaudrate",eF.SUBSCRIBEQOS="subscribeQos",eF.LEDCOUNT="lEDCount",eF.LOCKED="locked",eF.CLOUDCOVERAGE="cloudCoverage",eF.BASEURL="baseURL",eF.PROTOCOL="protocol",eF.REQUIREDVALUES="requiredValues",eF.REGION="region",eF.CONSOLEPLATFORM="consolePlatform",eF.GATEWAYSTATUS="gatewayStatus",eF.NO2LEVEL="NO2Level",eF.ATMOSPHERICPRESSURE="atmosphericPressure",eF.SERIALPORT="serialPort",eF.APPLICATIONID="applicationId",eF.TAGS="tags",eF.UNLOCK="unlock",eF.CHECKINTERVALSECONDS="checkIntervalSeconds",eF.LOCATION="location",eF.CLIENTSECRET="clientSecret",eF.WINDDIRECTION="windDirection",eF.WINDSPEED="windSpeed",eF.PARTICLESPM10="particlesPM10",eF.APPLICATIONKEY="applicationKey",eF.LENGTH="length",eF.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eF.USERNAMEPASSWORD="usernamePassword",eF.WATERLEVEL="waterLevel",eF.CONNECTHEADERS="connectHeaders",eF.CONSOLENAME="consoleName",eF.WEBSOCKETQUERY="websocketQuery",eF.PREFERHTML="preferHTML",eF.PARITY="parity",eF.COOLING="cooling",eF.POLLINGMILLIS="pollingMillis",eF.SOILTEMPERATURE="soilTemperature",eF.SUNIRRADIANCE="sunIrradiance",eF.MESSAGEMAXLENGTH="messageMaxLength",eF.WINDGUSTSPEED="windGustSpeed",eF.LIGHTID="lightId",eF.PROXYADDRESS="proxyAddress",eF.REQUESTQUERYPARAMETERS="requestQueryParameters",eF.MQTTHOST="MQTTHost",eF.SECUREGRPC="secureGRPC",eF.MODEL="model",eF.STREET="street",eF.MANUFACTURER="manufacturer",eF.DELETEPROCESSEDMAIL="deleteProcessedMail",eF.RESUMESESSION="resumeSession",eF.ONOFF="onOff",eF.APIKEY="ApiKey",eF.CITY="city",eF.PRESENCE="presence",eF.SPACESOCCUPIED="spacesOccupied",eF.STARTTLS="startTLS",eF.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eF.WEBSOCKETPATH="websocketPath",eF.AGENTSTATUS="agentStatus",eF.PRICEDAILY="priceDaily",eF.COUNTGROWTHMINUTE="countGrowthMinute",eF.IMONUMBER="IMONumber",eF.ATTRIBUTION="Attribution",eF.TENANTID="tenantId",eF.REQUESTHEADERS="requestHeaders",eF.HOST="host",eF.COUNTOUTMINUTE="countOutMinute",eF.MESSAGECHARSET="messageCharset",eF.CERTIFICATEALIAS="certificateAlias",eF.EMAIL="email",eF.BINDPORT="bindPort",eF.CONSOLEVERSION="consoleVersion",eF.PARTICLESPM1="particlesPM1",eF.MTU="mtu",eF.SPEED="speed",eF.MESSAGESTRIPDELIMITER="messageStripDelimiter",eF.AREA="area",eF.COUNTRY="country",eF.SHIPTYPE="shipType",eF.CONNECTSUBSCRIPTIONS="connectSubscriptions",eF.RELATIVEHUMIDITY="relativeHumidity",eF.SOURCEADDRESS="sourceAddress",eF.RAINFALL="rainfall",eF.OAUTHGRANT="oAuthGrant",eF.OZONELEVEL="ozoneLevel",eF.SEQUENCENUMBER="sequenceNumber",eF.COUNTINMINUTE="countInMinute",eF.PORT="port",eF.SUNALTITUDE="sunAltitude",eF.COUNTOUT="countOut",eF.ROOMNUMBER="roomNumber",eF.TUNNELINGSUPPORTED="tunnelingSupported",eF.ENINUMBER="ENINumber",eF.PARTICLESPM2_5="particlesPM2_5",eF.AGENTDISABLED="agentDisabled",eF.DISABLED="disabled",eF.COUNTIN="countIn",eF.MESSAGESOURCEADDRESS="messageSourceAddress",eF.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eF.TIMEINJECTIONINTERVAL="timeInjectionInterval",eF.TEMPERATURESETPOINT="temperatureSetpoint",eF.CONSOLEPROVIDERS="consoleProviders",eF.COUNTTOTAL="countTotal",eF.SPACESBUFFER="spacesBuffer",eF.DEVICECONFIG="deviceConfig",eF.SPACESTOTAL="spacesTotal",eF.BINDHOST="bindHost",eF.FANSPEED="fanSpeed",eF.MESSAGECONVERTBINARY="messageConvertBinary",eF.NOTES="notes",eF.MAILFOLDERNAME="mailFolderName",eF.MESSAGEDELIMITERS="messageDelimiters",eF.TEMPERATURE="temperature",eF.SUNZENITH="sunZenith",eF.SNMPVERSIONVALUE="SNMPVersionValue",eF.BRIGHTNESS="brightness",eF.POSTALCODE="postalCode",eF.SPACESOPEN="spacesOpen",eF.HUMIDITY="humidity",eF.SOUNDLEVEL="soundLevel",eF.SECUREMODE="secureMode",eF.DIRECTION="direction",eF.STOPBITS="stopbits",eF.UVINDEX="uVIndex",eF.CONNECTURL="connectURL",eF.CLIENTID="clientId",eF.NATMODE="NATMode",eF.UPDATEONWRITE="updateOnWrite",eF.LASTWILLPAYLOAD="lastWillPayload",eF.GROUPID="groupId",eF.FOLLOWREDIRECTS="followRedirects",eF.SUNAZIMUTH="sunAzimuth",eF.MESSAGECONVERTHEX="messageConvertHex",eF.WEBSOCKETMODE="websocketMode",eF.COLOURTEMPERATURE="colourTemperature",eF.PUBLISHQOS="publishQos",eF.DATABITS="dataBits",(eg=tk||(tk={})).FORMAT="format",eg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eg.SECRET="secret",eg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eg.ATTRIBUTELINKS="attributeLinks",eg.RULERESETIMMEDIATE="ruleResetImmediate",eg.RULESTATE="ruleState",eg.AGENTLINKCONFIG="agentLinkConfig",eg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eg.FORECAST="forecast",eg.STOREDATAPOINTS="storeDataPoints",eg.LABEL="label",eg.CONSTRAINTS="constraints",eg.UNITS="units",eg.USERCONNECTED="userConnected",eg.SHOWONDASHBOARD="showOnDashboard",eg.READONLY="readOnly",eg.MULTILINE="multiline",eg.ACCESSPUBLICWRITE="accessPublicWrite",eg.MOMENTARY="momentary",eg.AGENTLINK="agentLink",eg.ACCESSRESTRICTEDREAD="accessRestrictedRead",eg.ACCESSPUBLICREAD="accessPublicRead",(ev=tC||(tC={})).ASSETQUERY="assetQuery",ev.WSURL="WS_URL",ev.COLOURRGB="colourRGB",ev.VALUEFORMAT="valueFormat",ev.TEXT="text",ev.BYTE="byte",ev.USERNAMEANDPASSWORD="usernameAndPassword",ev.HTTPURL="HTTP_URL",ev.ATTRIBUTELINK="attributeLink",ev.ASSETID="assetID",ev.NUMBERMAP="numberMap",ev.HTTPMETHOD="HTTPMethod",ev.ATTRIBUTESTATE="attributeState",ev.POSITIVENUMBER="positiveNumber",ev.POSITIVEINTEGER="positiveInteger",ev.EXECUTIONSTATUS="executionStatus",ev.BIGINTEGER="bigInteger",ev.VALUEDESCRIPTOR="valueDescriptor",ev.PERIODDURATIONISO8601="periodDurationISO8601",ev.LONG="long",ev.DATEANDTIME="dateAndTime",ev.BOOLEANMAP="booleanMap",ev.MQTTQOS="MQTTQos",ev.NEGATIVEINTEGER="negativeInteger",ev.TCPIPPORTNUMBER="TCP_IPPortNumber",ev.GEOJSONPOINT="GEO_JSONPoint",ev.SNMPVERSION="SNMPVersion",ev.ASSETTYPE="assetType",ev.JSONOBJECT="JSONObject",ev.INTEGERMAP="integerMap",ev.BIGNUMBER="bigNumber",ev.IPADDRESS="IPAddress",ev.EMAIL="email",ev.TIMESTAMP="timestamp",ev.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",ev.ATTRIBUTEREFERENCE="attributeReference",ev.UUID="UUID",ev.INTEGER="integer",ev.OAUTHGRANT="oAuthGrant",ev.NUMBER="number",ev.DEVICECONFIGMAP="DeviceConfigMap",ev.TEXTMAP="textMap",ev.WEBSOCKETSUBSCRIPTION="websocketSubscription",ev.BOOLEAN="boolean",ev.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",ev.FORECASTCONFIGURATION="forecastConfiguration",ev.TIMEDURATIONISO8601="timeDurationISO8601",ev.TIMESTAMPISO8601="timestampISO8601",ev.CONSOLEPROVIDERS="consoleProviders",ev.MULTIVALUEDTEXTMAP="multivaluedTextMap",ev.NEGATIVENUMBER="negativeNumber",ev.PARITYBIT="Paritybit",ev.JSON="JSON",ev.CRONEXPRESSION="CRONExpression",ev.INTEGERBYTE="integerByte",ev.AGENTLINK="agentLink",ev.DIRECTION="direction",ev.HOSTORIPADDRESS="hostOrIPAddress",ev.STOPBITS="Stopbits",ev.CALENDAREVENT="calendarEvent",ev.CONNECTIONSTATUS="connectionStatus",ev.VALUECONSTRAINT="valueConstraint",(ey=tD||(tD={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tS||(tS={});class oW{static getAssetDescriptors(){return oW._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oW.getValueDescriptor(t)),o=t.jsonType?t:oW.getValueDescriptor(t.type)),!o&&e&&(o=oW.getValueDescriptor("JSON")),o}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}function oV(e){return(oV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oK(e){var t=function(e,t){if("object"!=oV(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oV(t)?t:t+""}function oJ(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oK(n.key),n)}}function oX(e,t,o){return t&&oJ(e.prototype,t),o&&oJ(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oQ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oZ(e,t){return(oZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o0(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oZ(e,t)}function o1(e,t){if(t&&("object"==oV(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oQ(e)}function o2(e){return(o2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o3(e,t,o){return(t=oK(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function o5(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o6(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o4(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o4(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}oW._assetTypeInfos=[],oW._metaItemDescriptors=[],oW._valueDescriptors=[];var o8={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},o9=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.init(t,o)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||o8,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,o6(o6({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),o7=function(){function e(){oY(this,e),this.observers={}}return oX(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function ne(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function nt(e){return null==e?"":""+e}function no(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=n(i.shift());!e[a]&&o&&(e[a]=new o),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function nn(e,t,o){var n=no(e,t,Object);n.obj[n.k]=o}function nr(e,t){var o=no(e,t),n=o.obj,r=o.k;if(n)return n[r]}function ni(e,t,o){var n=nr(e,o);return void 0!==n?n:nr(t,o)}function na(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nc={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ns(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return nc[e]}):e}var nl="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,nd=[" ",",","?","!",";"];function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nu(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nm=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oX(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];o&&"string"!=typeof o&&(a=a.concat(o)),o&&"string"==typeof o&&(a=a.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(a=e.split("."));var c=nr(this.data,a);return c||!i||"string"!=typeof o?c:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var c=2,s=r.slice(a,a+c).join(n),l=i[s];void 0===l&&r.length>a+c;)c++,l=i[s=r.slice(a,a+c).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(a+c).join(n);if(d)return e(l,d,n);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];o&&(a=a.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),nn(this.data,a,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=o,o=t,t=a[1]),this.addNamespaces(t);var c=nr(this.data,a)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(c,o,r):c=nu(nu({},c),o),nn(this.data,a,c),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?nu(nu({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(o7),nb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function nh(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function np(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nh(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nF={},ng=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oQ(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=o9.create("translator"),i}return oX(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=nd.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(o);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,o,n);if(i&&!a){var c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oV(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],t),s=c.key,l=c.namespaces,d=l[l.length-1],f=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(u){var m=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(m).concat(s),b):"".concat(d).concat(m).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||s,F=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(h),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof v||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,np(np({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=_,b):_}if(a){var w="[object Array]"===g,A=w?[]:{},k=w?F:p;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(k).concat(a).concat(C);A[C]=this.translate(D,np(np({},t),{joinArrays:!1,ns:l})),A[C]===D&&(A[C]=h[C])}h=A}}else if(y&&"string"==typeof v&&"[object Array]"===g)(h=h.join(v))&&(h=this.extendTranslation(h,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(h)&&T&&(S=!0,h=R),this.isValidLookup(h)||(x=!0,h=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:h,I=T&&R!==h&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:h),a){var P=this.resolve(s,np(np({},t),{},{keySeparator:!1}));P&&P.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.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==h?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}h=this.extendTranslation(h,e,t,b,o),x&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,np(np({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(np(np({},o),{interpolation:np(np({},this.options.interpolation),o.interpolation)}));var a,c="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=np(np({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),c){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,u="string"==typeof f?[f]:f;return null!=e&&u&&u.length&&!1!==o.applyPostProcessor&&(e=nb.handle(u,e,t,this.options&&this.options.postProcessPassResolved?np({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,a=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,c),l=s.key;o=l;var d=s.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var f=void 0!==c.count&&"string"!=typeof c.count,u=f&&!c.ordinal&&0===c.count&&a.pluralResolver.shouldUseIntlApi(),m=void 0!==c.context&&("string"==typeof c.context||"number"==typeof c.context)&&""!==c.context,b=c.lngs?c.lngs:a.languageUtils.toResolveHierarchy(c.lng||a.language,c.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(i=e,!nF["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(nF["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(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!!!")),b.forEach(function(o){if(!a.isValidLookup(t)){r=o;var i,s=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,l,o,e,c);else{f&&(d=a.pluralResolver.getSuffix(o,c.count,c));var d,b="".concat(a.options.pluralSeparator,"zero");if(f&&(s.push(l+d),u&&s.push(l+b)),m){var h="".concat(l).concat(a.options.contextSeparator).concat(c.context);s.push(h),f&&(s.push(h+d),u&&s.push(h+b))}}for(;i=s.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(o,e,i,c))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(o7);function nv(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ny=function(){function e(t){oY(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o9.create("languageUtils")}return oX(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nv(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nE=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],n_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},nw=["v1","v2","v3"],nA={zero:0,one:1,two:2,few:3,many:4,other:5},nk=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.languageUtils=t,this.options=n,this.logger=o9.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nE.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:n_[e.fc]}})}),o)}return oX(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nA[e]-nA[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!nw.includes(this.options.compatibilityJSON)}}]),e}();function nC(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nD(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nC(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oX(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ns,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?na(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?na(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?na(t.nestingPrefix):t.nestingPrefixEscaped||na("$t("),this.nestingSuffix=t.nestingSuffix?na(t.nestingSuffix):t.nestingSuffixEscaped||na(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,a,c=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(c.formatSeparator)){var r=ni(t,s,e);return c.alwaysFormat?c.format(r,void 0,o,nD(nD(nD({},n),t),{},{interpolationkey:e})):r}var i=e.split(c.formatSeparator),a=i.shift().trim(),l=i.join(c.formatSeparator).trim();return c.format(ni(t,s,a),l,o,nD(nD(nD({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?l(c.escape(e)):l(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(u){i=r[0];continue}else c.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||c.useRawValueToEscape||(i=nt(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=c.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=nD({},i);function c(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,a)).match(/'/g),c=r.match(/"/g);(i&&i.length%2==0&&!c||c.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=nD(nD({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(c.call(this,o[1].trim(),a),a))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=nt(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nD(nD({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nx(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nO(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nx(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nT(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),a=t[i];return a||(a=e(n,r),t[i]=a),a(o)}}var nB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("formatter"),this.options=t,this.formats={number:nT(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nT(function(e,t){var o=new Intl.NumberFormat(e,nO(nO({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nT(function(e,t){var o=new Intl.DateTimeFormat(e,nO({},t));return function(e){return o.format(e)}}),relativetime:nT(function(e,t){var o=new Intl.RelativeTimeFormat(e,nO({},t));return function(e){return o.format(e,t.range||"day")}}),list:nT(function(e,t){var o=new Intl.ListFormat(e,nO({},t));return function(e){return o.format(e)}})},this.init(t)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nT(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o5(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o5(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),a=i.formatName,c=i.formatOptions;if(r.formats[a]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[a](e,d,nO(nO(nO({},c),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function nR(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nN(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nR(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nI=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=o9.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return oX(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},a={},c={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var c="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[c]=2:r.state[c]<0||(1===r.state[c]?void 0===a[c]&&(a[c]=!0):(r.state[c]=1,n=!1,void 0===a[c]&&(a[c]=!0),void 0===i[c]&&(i[c]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(c[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(o){var n,c,s,l;n=o.loaded,(s=(c=no(n,[r],Object)).obj)[l=c.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){a[e]||(a[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[o](e,t,function(c,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}c&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,a)},i):a(c,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,a){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&a&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,n,a)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,nN(nN({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(o7);function nP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nM(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nL(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nL(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nU(){}var nj=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.options=nP(r),t.services={},t.logger=o9,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oQ(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),o1(t,oQ(t));setTimeout(function(){t.init(r,i)},0)}return t}return oX(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oV(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oV(e[2])||"object"===oV(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nM(nM(nM({},n),this.options),nP(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nM(nM({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?o9.init(r(this.modules.logger),this.options):o9.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=nB);var i,a=new ny(this.options);this.store=new nm(this.options.resources,this.options);var c=this.services;c.logger=o9,c.resourceStore=this.store,c.languageUtils=a,c.pluralResolver=new nk(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=r(i),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new nS(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new nI(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ng(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nU),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[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(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=ne(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=ne();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nU),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&nb.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=ne();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},a=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oV(r)){for(var i,a=arguments.length,c=Array(a>2?a-2:0),s=2;s<a;s++)c[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else i=nM({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var c=o.precheck(this,a);if(void 0!==c)return c}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=ne();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=ne();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,r=nM(nM(nM({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ng(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(o7);o3(nj,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nj(e,t)});var n$=nj.createInstance();n$.createInstance=nj.createInstance,n$.createInstance,n$.init,n$.loadResources,n$.reloadResources,n$.use,n$.changeLanguage,n$.getFixedT,n$.t,n$.exists,n$.setDefaultNamespace,n$.hasLoadedNamespace,n$.loadNamespaces,n$.loadLanguages;let nG=n$;var nq=o(4867),nH=o.n(nq);o(3472);class nz{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function nW(e){return(t,o)=>{let n=e(t),r=e(o);return n||r?n&&!r?1:!n&&r?-1:n.localeCompare(r):0}}function nV(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class nY{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,a,c;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(c=this.names)||!c.length||!!this.names.every(t=>nY._evalValuePredicate(e.name,t)))&&(!this.attributes||nY._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nY._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nY._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let a=!t.value||nY._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",a=[...(null!=(n=t.items)?n:[]).map(t=>nY._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nY._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>nY._collectNames(e))]}}nY._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nK=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};let nJ=o(4461);class nX{constructor(e,t,o){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),r=n.get("consoleName"),i=n.get("consoleVersion"),a=n.get("consolePlatform"),c=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=c&&c.length>0?c.split(" "):["push"];this._pendingProviderEnables=l;let d=nX._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=d.providers;for(let e of(d.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let m=cp.getAppName();m.length>0&&0>d.apps.indexOf(m)&&d.apps.push(m),this._registration=d,r&&(d.name=r),i&&(d.version=i),a&&(d.platform=a),s&&(this._autoEnable="TRUE"===s||"true"===s)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nK(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nK(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return nK(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return nK(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return nK(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new nz,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>nK(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return nK(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield cp.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(o){if(e&&t&&nX._isStaleRegistrationResponse(o)){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 o}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return nK(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),o=t.provider,n=t.action,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nJ.name,version:nJ.version,platform:nJ.os.toString(),apps:[],model:((nJ.manufacturer?nJ.manufacturer+" ":"")+(nJ.product?nJ.product:"")).trim()}}_initialiseProvider(e){return nK(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function nQ(e,t){return function(){return e.apply(t,arguments)}}let{toString:nZ}=Object.prototype,{getPrototypeOf:n0}=Object,{iterator:n1,toStringTag:n2}=Symbol,n3=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),n5=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),n3(o,t))return!0;o=n0(o)}return!1},n4=(i=Object.create(null),e=>{let t=nZ.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),n6=e=>(e=e.toLowerCase(),t=>n4(t)===e),n8=e=>t=>typeof t===e,{isArray:n9}=Array,n7=n8("undefined");function re(e){return null!==e&&!n7(e)&&null!==e.constructor&&!n7(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let rt=n6("ArrayBuffer"),ro=n8("string"),rn=n8("function"),rr=n8("number"),ri=e=>null!==e&&"object"==typeof e,ra=e=>{if(!ri(e))return!1;let t=n0(e);return(null===t||t===Object.prototype||null===n0(t))&&!n5(e,n2)&&!n5(e,n1)},rc=n6("Date"),rs=n6("File"),rl=n6("Blob"),rd=n6("FileList"),rf="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ru=void 0!==rf.FormData?rf.FormData:void 0,rm=n6("URLSearchParams"),[rb,rh,rp,rF]=["ReadableStream","Request","Response","Headers"].map(n6);function rg(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),n9(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(re(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)r=i[n],t.call(null,e[r],r,e)}}function rv(e,t){let o;if(re(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let ry="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rE=e=>!n7(e)&&e!==ry,r_=(a="u">typeof Uint8Array&&n0(Uint8Array),e=>a&&e instanceof a),rw=n6("HTMLFormElement"),{propertyIsEnumerable:rA}=Object.prototype,rk=n6("RegExp"),rC=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rg(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rD=n6("AsyncFunction"),rS=(l="function"==typeof setImmediate,d=rn(ry.postMessage),l?setImmediate:d?(f=`axios@${Math.random()}`,u=[],ry.addEventListener("message",({source:e,data:t})=>{e===ry&&t===f&&u.length&&u.shift()()},!1),e=>{u.push(e),ry.postMessage(f,"*")}):e=>setTimeout(e)),rx="u">typeof queueMicrotask?queueMicrotask.bind(ry):"u">typeof process&&process.nextTick||rS,rO=e=>null!=e&&rn(e[n1]),rT={isArray:n9,isArrayBuffer:rt,isBuffer:re,isFormData:e=>{if(!e)return!1;if(ru&&e instanceof ru)return!0;let t=n0(e);if(!t||t===Object.prototype||!rn(e.append))return!1;let o=n4(e);return"formdata"===o||"object"===o&&rn(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rt(e.buffer)},isString:ro,isNumber:rr,isBoolean:e=>!0===e||!1===e,isObject:ri,isPlainObject:ra,isEmptyObject:e=>{if(!ri(e)||re(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rb,isRequest:rh,isResponse:rp,isHeaders:rF,isUndefined:n7,isDate:rc,isFile:rs,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rl,isRegExp:rk,isFunction:rn,isStream:e=>ri(e)&&rn(e.pipe),isURLSearchParams:rm,isTypedArray:r_,isFileList:rd,forEach:rg,merge:function e(...t){let{caseless:o,skipUndefined:n}=rE(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=o&&"string"==typeof i&&rv(r,i)||i,c=n3(r,a)?r[a]:void 0;ra(c)&&ra(t)?r[a]=e(c,t):ra(t)?r[a]=e({},t):n9(t)?r[a]=t.slice():n&&n7(t)||(r[a]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||re(o)||(rg(o,i),"object"!=typeof o||n9(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];rA.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rg(t,(t,n)=>{o&&rn(t)?Object.defineProperty(e,n,{__proto__:null,value:nQ(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let r,i,a,c={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=!1!==o&&n0(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:n4,kindOfTest:n6,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(n9(e))return e;let t=e.length;if(!rr(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[n1]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:rw,hasOwnProperty:n3,hasOwnProp:n3,hasOwnInPrototypeChain:n5,getSafeProp:(e,t)=>null!=e&&n5(e,t)?e[t]:void 0,reduceDescriptors:rC,freezeMethods:e=>{rC(e,(t,o)=>{if(rn(e)&&["arguments","caller","callee"].includes(o))return!1;if(rn(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(n9(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:rv,global:ry,isContextDefined:rE,isSpecCompliantForm:function(e){return!!(e&&rn(e.append)&&"FormData"===e[n2]&&e[n1])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(ri(e)){if(t.has(e))return;if(re(e))return e;if(!("toJSON"in e)){t.add(e);let n=n9(e)?[]:{};return rg(e,(e,t)=>{let r=o(e);n7(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rD,isThenable:e=>e&&(ri(e)||rn(e))&&rn(e.then)&&rn(e.catch),setImmediate:rS,asap:rx,isIterable:rO,isSafeIterable:e=>null!=e&&n5(e,n1)&&rO(e)},rB=rT.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"]),rR=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rN=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rI(e,t){return rT.isArray(e)?e.map(e=>rI(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function rP(e){let t=Object.create(null);return rT.forEach(e.toJSON(),(e,o)=>{t[o]=rI(e,rN)}),t}let rL=Symbol("internals");function rM(e){return e&&String(e).trim().toLowerCase()}function rU(e){return!1===e||null==e?e:rT.isArray(e)?e.map(rU):rI(String(e),rR)}function rj(e,t,o,n,r){if(rT.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rT.isString(t)){if(rT.isString(n))return -1!==t.indexOf(n);if(rT.isRegExp(n))return n.test(t)}}class r${constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rM(t);if(!r)return;let i=rT.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rU(e))}let i=(e,t)=>rT.forEach(e,(e,o)=>r(e,o,t));if(rT.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rT.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let o,n,r,c;i((c={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||c[o]&&rB[o]||("set-cookie"===o?c[o]?c[o].push(n):c[o]=[n]:c[o]=c[o]?c[o]+", "+n:n)}),c),t)}else if(rT.isObject(e)&&rT.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rT.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rT.hasOwnProp(o,r)?(n=o[r],o[r]=rT.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rM(e)){let o=rT.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(rT.isFunction(t))return t.call(this,e,o);if(rT.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rM(e)){let o=rT.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rj(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rM(e)){let r=rT.findKey(o,e);r&&(!t||rj(o,o[r],r,t))&&(delete o[r],n=!0)}}return rT.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rj(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rT.forEach(this,(n,r)=>{let i=rT.findKey(o,r);if(i){t[i]=rU(n),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();a!==r&&delete t[r],t[a]=rU(n),o[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rT.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rT.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[rL]=this[rL]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rM(e);if(!t[n]){let r;r=rT.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rT.isArray(e)?e.forEach(n):n(e),this}}r$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rT.reduceDescriptors(r$.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rT.freezeMethods(r$);class rG extends Error{static from(e,t,o,n,r,i){let a=new rG(e.message,t||e.code,o,n,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,o,n,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rT.hasOwnProp(n,"redact")?n.redact:void 0,i=rT.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rT.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof r$&&(n=n.toJSON()),t.push(n),rT.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rT.isUndefined(n)||(r[t]=n)});else{if(!rT.isPlainObject(n)&&function(e){if(rT.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rT.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rT.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rT.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rG.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rG.ERR_BAD_OPTION="ERR_BAD_OPTION",rG.ECONNABORTED="ECONNABORTED",rG.ETIMEDOUT="ETIMEDOUT",rG.ECONNREFUSED="ECONNREFUSED",rG.ERR_NETWORK="ERR_NETWORK",rG.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rG.ERR_DEPRECATED="ERR_DEPRECATED",rG.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rG.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rG.ERR_CANCELED="ERR_CANCELED",rG.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rG.ERR_INVALID_URL="ERR_INVALID_URL",rG.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rq=rG;function rH(e){return rT.isPlainObject(e)||rT.isArray(e)}function rz(e){return rT.endsWith(e,"[]")?e.slice(0,-2):e}function rW(e,t,o){return e?e.concat(t).map(function(e,t){return e=rz(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rV=rT.toFlatObject(rT,{},null,function(e){return/^is[A-Z]/.test(e)}),rY=function(e,t,o){if(!rT.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rT.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rT.isUndefined(t[e])})).metaTokens,r=o.visitor||m,i=o.dots,a=o.indexes,c=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=c&&rT.isSpecCompliantForm(t),d=[];if(!rT.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rT.isDate(e))return e.toISOString();if(rT.isBoolean(e))return e.toString();if(!l&&rT.isBlob(e))throw new rq("Blob is not supported. Use a Buffer instead.");if(rT.isArrayBuffer(e)||rT.isTypedArray(e)){if(l&&"function"==typeof c)return new c([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rq("Blob is not supported. Use a Buffer instead.",rq.ERR_NOT_SUPPORT)}return e}function u(e){if(e>s)throw new rq("Object is too deeply nested ("+e+" levels). Max depth: "+s,rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,o,r){let c=e;if(rT.isReactNative(t)&&rT.isReactNativeBlob(e))return t.append(rW(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rT.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rT.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),u(1+t.length-1),o})}(e);else{var l;if(rT.isArray(e)&&(l=e,rT.isArray(l)&&!l.some(rH))||(rT.isFileList(e)||rT.endsWith(o,"[]"))&&(c=rT.toArray(e)))return o=rz(o),c.forEach(function(e,n){rT.isUndefined(e)||null===e||t.append(!0===a?rW([o],n,i):null===a?o:o+"[]",f(e))}),!1}return!!rH(e)||(t.append(rW(r,o,i),f(e)),!1)}let b=Object.assign(rV,{defaultVisitor:m,convertValue:f,isVisitable:rH});if(!rT.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rT.isUndefined(o)){if(u(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rT.forEach(o,function(o,a){!0===(!(rT.isUndefined(o)||null===o)&&r.call(t,o,rT.isString(a)?a.trim():a,n,b))&&e(o,n?n.concat(a):[a],i+1)}),d.pop()}}(e),t};function rK(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rJ(e,t){this._pairs=[],e&&rY(e,this,t)}let rX=rJ.prototype;function rQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rZ(e,t,o){let n;if(!t)return e;e=e||"";let r=rT.isFunction(o)?{serialize:o}:o,i=rT.getSafeProp(r,"encode")||rQ,a=rT.getSafeProp(r,"serialize");if(n=a?a(t,r):rT.isURLSearchParams(t)?t.toString():new rJ(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rX.append=function(e,t){this._pairs.push([e,t])},rX.toString=function(e){let t=e?t=>e.call(this,t,rK):rK;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let r0=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rT.forEach(this.handlers,function(t){null!==t&&e(t)})}},r1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},r2="u">typeof URLSearchParams?URLSearchParams:rJ,r3="u">typeof FormData?FormData:null,r5="u">typeof Blob?Blob:null,r4="u">typeof window&&"u">typeof document,r6="object"==typeof navigator&&navigator||void 0,r8=r4&&(!r6||0>["ReactNative","NativeScript","NS"].indexOf(r6.product)),r9="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,r7=r4&&window.location.href||"http://localhost",ie={...tM,isBrowser:!0,classes:{URLSearchParams:r2,FormData:r3,Blob:r5},protocols:["http","https","file","blob","url","data"]};function it(e){if(e>100)throw new rq("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}let io=function(e){if(rT.isFormData(e)&&rT.isFunction(e.entries)){let t={};return rT.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){it(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),c=r>=t.length;return(i=!i&&rT.isArray(n)?n.length:i,c)?rT.hasOwnProp(n,i)?n[i]=rT.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rT.hasOwnProp(n,i)&&rT.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rT.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!a}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)it(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},ir=(e,t)=>null!=e&&rT.hasOwnProp(e,t)?e[t]:void 0,ii={transitional:r1,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rT.isObject(e);if(i&&rT.isHTMLForm(e)&&(e=new FormData(e)),rT.isFormData(e))return r?JSON.stringify(io(e)):e;if(rT.isArrayBuffer(e)||rT.isBuffer(e)||rT.isStream(e)||rT.isFile(e)||rT.isBlob(e)||rT.isReadableStream(e))return e;if(rT.isArrayBufferView(e))return e.buffer;if(rT.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=ir(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rY(e,new ie.classes.URLSearchParams,{visitor:function(e,t,o,n){return ie.isNode&&rT.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rT.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ir(this,"env"),r=n&&n.FormData;return rY(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rT.isString(a))try{return(0,JSON.parse)(a),rT.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=ir(this,"transitional")||ii.transitional,o=t&&t.forcedJSONParsing,n=ir(this,"responseType"),r="json"===n;if(rT.isResponse(e)||rT.isReadableStream(e))return e;if(e&&rT.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,ir(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rq.from(e,rq.ERR_BAD_RESPONSE,this,null,ir(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ia(e,t){let o=this||ii,n=t||o,r=r$.from(n.headers),i=n.data;return rT.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}rT.forEach(["delete","get","head","post","put","patch","query"],e=>{ii.headers[e]={}});let is=class extends rq{constructor(e,t,o){super(null==e?"canceled":e,rq.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function il(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rq("Request failed with status code "+o.status,o.status>=400&&o.status<500?rq.ERR_BAD_REQUEST:rq.ERR_BAD_RESPONSE,o.config,o.request,o))}let id=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(c){let s=Date.now(),l=r[a];o||(o=s),n[i]=c,r[i]=s;let d=a,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-o<t)return;let u=l&&s-l;return u?Math.round(1e3*f/u):void 0}},iu=function(e,t){let o,n,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),c=t-r;c>=i?a(e,t):(o=e,n||(n=setTimeout(()=>{n=null,a(o)},i-c)))},()=>o&&a(o)]},im=(e,t,o=3)=>{let n=0,r=id(50,250);return iu(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,a=o.lengthComputable?o.total:void 0,c=null!=a?Math.min(i,a):i,s=Math.max(0,c-n),l=r(s);n=Math.max(n,c),e({loaded:c,total:a,progress:a?c/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a?(a-c)/l:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})},o)},ib=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},ih=e=>(...t)=>rT.asap(()=>e(...t)),ip=ie.hasStandardBrowserEnv?(c=new URL(ie.origin),s=ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent),e=>(e=new URL(e,ie.origin),c.protocol===e.protocol&&c.host===e.host&&(s||c.port===e.port))):()=>!0,iF=ie.hasStandardBrowserEnv?{write(e,t,o,n,r,i,a){if("u"<typeof document)return;let c=[`${e}=${encodeURIComponent(t)}`];rT.isNumber(o)&&c.push(`expires=${new Date(o).toUTCString()}`),rT.isString(n)&&c.push(`path=${n}`),rT.isString(r)&&c.push(`domain=${r}`),!0===i&&c.push("secure"),rT.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ig=/^https?:(?!\/\/)/i,iv=/[\t\n\r]/g;function iy(e,t){if("string"==typeof e&&ig.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(iv,"")))throw new rq('Invalid URL: missing "//" after protocol',rq.ERR_INVALID_URL,t)}function iE(e,t,o,n){iy(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(iy(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let i_=e=>e instanceof r$?{...e}:e;function iw(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rT.isPlainObject(e)&&rT.isPlainObject(t)?rT.merge.call({caseless:n},e,t):rT.isPlainObject(t)?rT.merge({},t):rT.isArray(t)?t.slice():t}function r(e,t,o,r){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rT.isUndefined(t))return n(void 0,t)}function a(e,t){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function c(o,r,i){return rT.hasOwnProp(t,i)?n(o,r):rT.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(e,t,o)=>r(i_(e),i_(t),o,!0)};return rT.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rT.hasOwnProp(s,n)?s[n]:r,a=i(rT.hasOwnProp(e,n)?e[n]:void 0,rT.hasOwnProp(t,n)?t[n]:void 0,n);rT.isUndefined(a)&&i!==c||(o[n]=a)}),rT.hasOwnProp(t,"validateStatus")&&rT.isUndefined(t.validateStatus)&&!1===function(o){let n=rT.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rT.isUndefined(n)){if(!rT.isPlainObject(n))return;else if(rT.hasOwnProp(n,o))return n[o]}let r=rT.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rT.isPlainObject(r)&&rT.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rT.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let iA=["content-type","content-length"],ik=function(e){let t=iw({},e),o=e=>rT.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),a=o("xsrfCookieName"),c=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=c=r$.from(c),t.url=rZ(iE(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rT.getSafeProp(s,"username")||"",o=rT.getSafeProp(s,"password")||"";try{c.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rq.from(t,rq.ERR_BAD_OPTION_VALUE,e)}}if(rT.isFormData(n))if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv||rT.isReactNative(n))c.setContentType(void 0);else{var u,m;rT.isFunction(n.getHeaders)&&(u=c,m=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?u.set(m):Object.entries(m||{}).forEach(([e,t])=>{iA.includes(e.toLowerCase())&&u.set(e,t)}))}if(ie.hasStandardBrowserEnv&&(rT.isFunction(r)&&(r=r(t)),!0===r||null==r&&ip(t.url))){let e=i&&a&&iF.read(a);e&&c.set(i,e)}return t},iC="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,a,c,s,l,d=ik(e),f=d.data,u=r$.from(d.headers).normalize(),{responseType:m,onUploadProgress:b,onDownloadProgress:h}=d;function p(){c&&c(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let F=new XMLHttpRequest;function g(){if(!F)return;let n=r$.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());il(function(e){t(e),p()},function(e){o(e),p()},{data:m&&"text"!==m&&"json"!==m?F.response:F.responseText,status:F.status,statusText:F.statusText,headers:n,config:e,request:F}),F=null}F.open(d.method.toUpperCase(),d.url,!0),F.timeout=d.timeout,"onloadend"in F?F.onloadend=g:F.onreadystatechange=function(){!F||4!==F.readyState||(0!==F.status||F.responseURL&&F.responseURL.startsWith("file:"))&&setTimeout(g)},F.onabort=function(){F&&(o(new rq("Request aborted",rq.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let n=new rq(t&&t.message?t.message:"Network Error",rq.ERR_NETWORK,e,F);n.event=t||null,o(n),p(),F=null},F.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||r1;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rq(t,n.clarifyTimeoutError?rq.ETIMEDOUT:rq.ECONNABORTED,e,F)),p(),F=null},void 0===f&&u.setContentType(null),"setRequestHeader"in F&&rT.forEach(rP(u),function(e,t){F.setRequestHeader(t,e)}),rT.isUndefined(d.withCredentials)||(F.withCredentials=!!d.withCredentials),m&&"json"!==m&&(F.responseType=d.responseType),h&&([a,s]=im(h,!0),F.addEventListener("progress",a)),b&&F.upload&&([i,c]=im(b),F.upload.addEventListener("progress",i),F.upload.addEventListener("loadend",c)),(d.cancelToken||d.signal)&&(r=t=>{F&&(o(!t||t.type?new is(null,e,F):t),F.abort(),p(),F=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let v=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(v&&!ie.protocols.includes(v)){o(new rq("Unsupported protocol "+v+":",rq.ERR_BAD_REQUEST,e)),p();return}F.send(f||null)})},iD=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iS=async function*(e,t){for await(let o of ix(e))yield*iD(o,t)},ix=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},iO=(e,t,o,n)=>{let r,i=iS(e,t),a=0,c=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){c(),e.close();return}let r=n.byteLength;if(o){let e=a+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},iT=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iB=(e,t,o)=>t+2<o&&iT(e.charCodeAt(t+1))&&iT(e.charCodeAt(t+2)),{isFunction:iR}=rT,iN=e=>{if(!rT.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iI=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iP=e=>{let t,o=void 0!==rT.global&&null!==rT.global?rT.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:a,Response:c}=e=rT.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?iR(i):"function"==typeof fetch,l=iR(a),d=iR(c);if(!s)return!1;let f=s&&iR(n),u=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),m=l&&f&&iI(()=>{let e=!1,t=new a(ie.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),b=d&&f&&iI(()=>rT.isReadableStream(new c("").body)),h={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rq(`Response type '${e}' is not supported`,rq.ERR_NOT_SUPPORT,o)})});let p=async e=>{if(null==e)return 0;if(rT.isBlob(e))return e.size;if(rT.isSpecCompliantForm(e)){let t=new a(ie.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rT.isArrayBufferView(e)||rT.isArrayBuffer(e)?e.byteLength:(rT.isURLSearchParams(e)&&(e+=""),rT.isString(e))?(await u(e)).byteLength:void 0},F=async(e,t)=>{let o=rT.toFiniteNumber(e.getContentLength());return null==o?p(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:u,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:E,headers:_,withCredentials:w="same-origin",fetchOptions:A,maxContentLength:k,maxBodyLength:C}=ik(e),D=rT.isNumber(k)&&k>-1,S=rT.isNumber(C)&&C>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rq?t:new is(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rq(`timeout of ${t}ms exceeded`,rq.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:c}=o;return c.unsubscribe=()=>rT.asap(a),c})([d,u&&u.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rq("Request body larger than maxBodyLength limit",rq.ERR_BAD_REQUEST,e,T);try{var I;let i,d,u,g,P=(d="auth",rT.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rT.getSafeProp(P,"username")||"",t=rT.getSafeProp(P,"password")||"";i={username:e,password:t}}if(u=(I=o).indexOf("://"),g=I,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(o,ie.origin);if(!i&&(e.username||e.password)){let t=iN(e.username),o=iN(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;_.delete("authorization"),_.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(D&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),r=n.charCodeAt(o+2);iT(t)&&iT(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let a=3*Math.floor(e/4)-(o||0);return a>0?a:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iB(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await p(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw N()}let L=S&&(rT.isReadableStream(s)||rT.isStream(s)),M=(e,t,o)=>iO(e,65536,e=>{if(S&&e>C)throw R=N();t&&t(e)},o);if(m&&"get"!==n&&"head"!==n&&(y||L)){if(t=null==t?await F(_,s):t,0!==t||L){let e,n=new a(o,{method:"POST",body:s,duplex:"half"});if(rT.isFormData(s)&&(e=n.headers.get("content-type"))&&_.setContentType(e),n.body){let[e,o]=y&&ib(t,im(ih(y)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!m&&"get"!==n&&"head"!==n)throw new rq("Stream request bodies are not supported by the current fetch implementation",rq.ERR_NOT_SUPPORT,e,T);rT.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in a.prototype;if(rT.isFormData(s)){let e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/1.18.1",!1);let j={...A,signal:O,method:n.toUpperCase(),headers:rP(_.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new a(o,j);let $=await (l?x(T,A):x(o,j)),G=r$.from($.headers);if(D){let t=rT.toFiniteNumber(G.getContentLength());if(null!=t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}let q=b&&("stream"===E||"response"===E);if(b&&$.body&&(v||D||q&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let o=rT.toFiniteNumber(G.getContentLength()),[n,r]=v&&ib(o,im(ih(v),!0))||[];$=new c(iO($.body,65536,t=>{if(D&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let H=await h[rT.findKey(h,E)||"text"]($,e);if(D&&!b&&!q){let t;if(null!=H&&("number"==typeof H.byteLength?t=H.byteLength:"number"==typeof H.size?t=H.size:"string"==typeof H&&(t="function"==typeof r?new r().encode(H).byteLength:H.length)),"number"==typeof t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}return!q&&B&&B(),await new Promise((t,o)=>{il(t,o,{data:H,headers:r$.from($.headers),status:$.status,statusText:$.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rq){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rq)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rq("Network Error",rq.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rq.from(t,t&&t.code,e,T,t&&t.response)}}},iL=new Map,iM=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],a=i.length,c,s,l=iL;for(;a--;)c=i[a],void 0===(s=l.get(c))&&l.set(c,s=a?new Map:iP(t)),l=s;return s};iM();let iU={http:null,xhr:iC,fetch:{get:iM}};rT.forEach(iU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ij=e=>`- ${e}`,i$=e=>rT.isFunction(e)||null===e||!1===e,iG=function(e,t){let o,n,{length:r}=e=rT.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(n=o=e[a],!i$(o)&&void 0===(n=iU[(r=String(o)).toLowerCase()]))throw new rq(`Unknown adapter '${r}'`);if(n&&(rT.isFunction(n)||(n=n.get(t))))break;i[r||"#"+a]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rq("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(ij).join("\n"):" "+ij(e[0]):"as no adapter specified"),rq.ERR_NOT_SUPPORT)}return n};function iq(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function iH(e){return iq(e),e.headers=r$.from(e.headers),e.data=ia.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iG(e.adapter||ii.adapter,e)(e).then(function(t){iq(e),e.response=t;try{t.data=ia.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=r$.from(t.headers),t},function(t){if(!ic(t)&&(iq(e),t&&t.response)){e.response=t.response;try{t.response.data=ia.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=r$.from(t.response.headers)}return Promise.reject(t)})}let iz={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iz[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let iW={};iz.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rq(n(r," has been removed"+(t?" in "+t:"")),rq.ERR_DEPRECATED);return t&&!iW[r]&&(iW[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iz.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iV=function(e,t,o){if("object"!=typeof e||null===e)throw new rq("options must be an object",rq.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],o=void 0===t||a(t,i,e);if(!0!==o)throw new rq("option "+i+" must be "+o,rq.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rq("Unknown option "+i,rq.ERR_BAD_OPTION)}};class iY{constructor(e){this.defaults=e||{},this.interceptors={request:new r0,response:new r0}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}}throw e}}_request(e,t){let o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=iw(this.defaults,t);void 0!==r&&iV(r,{silentJSONParsing:iz.transitional(iz.boolean),forcedJSONParsing:iz.transitional(iz.boolean),clarifyTimeoutError:iz.transitional(iz.boolean),legacyInterceptorReqResOrdering:iz.transitional(iz.boolean),advertiseZstdAcceptEncoding:iz.transitional(iz.boolean),validateStatusUndefinedResolves:iz.transitional(iz.boolean)},!1),null!=i&&(rT.isFunction(i)?t.paramsSerializer={serialize:i}:iV(i,{encode:iz.function,serialize:iz.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iV(t,{baseUrl:iz.spelling("baseURL"),withXsrfToken:iz.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&rT.merge(a.common,a[t.method]);a&&rT.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=r$.concat(c,a);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||r1;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[iH.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let u=t;for(;f<n;){let e=s[f++],t=s[f++];try{u=e(u)}catch(e){t.call(this,e);break}}try{o=iH.call(this,u)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rZ(iE((e=iw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rT.forEach(["delete","get","head","options"],function(e){iY.prototype[e]=function(t,o){return this.request(iw(o||{},{method:e,url:t,data:o&&rT.hasOwnProp(o,"data")?o.data:void 0}))}}),rT.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(iw(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iY.prototype[e]=t(),"query"!==e&&(iY.prototype[e+"Form"]=t(!0))});let iK=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,r){o.reason||(o.reason=new is(e,n,r),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},iJ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iJ).forEach(([e,t])=>{iJ[t]=e});let iX=function e(t){let o=new iY(t),n=nQ(iY.prototype.request,o);return rT.extend(n,iY.prototype,o,{allOwnKeys:!0}),rT.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(iw(t,o))},n}(ii);iX.Axios=iY,iX.CanceledError=is,iX.CancelToken=iK,iX.isCancel=ic,iX.VERSION="1.18.1",iX.toFormData=rY,iX.AxiosError=rq,iX.Cancel=iX.CanceledError,iX.all=function(e){return Promise.all(e)},iX.spread=function(e){return function(t){return e.apply(null,t)}},iX.isAxiosError=function(e){return rT.isObject(e)&&!0===e.isAxiosError},iX.mergeConfig=iw,iX.AxiosHeaders=r$,iX.formToJSON=e=>io(rT.isHTMLForm(e)?new FormData(e):e),iX.getAdapter=iG,iX.HttpStatusCode=iJ,iX.default=iX;class iQ{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:ad`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:ad`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:ad`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:ad`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:ad`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:ad`alarm/${e}/assets`,queryParams:t,options:o})}}class iZ{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:ad`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:ad`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:ad`apps/info`,options:e})}}class i0{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:ad`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`dashboard/${e}/${t}`,options:o})}}class i1{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:ad`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:ad`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:ad`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:ad`syslog/event`,queryParams:e,options:t})}}class i2{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:ad`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:ad`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/status/${e}`,options:t})}}class i3{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:ad`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:ad`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:ad`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:ad`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:ad`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:ad`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}`,options:o})}}class i5{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class i4{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:ad`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:ad`info`,options:e})}}class i6{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:ad`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:ad`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:ad`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`realm/${e}`,data:t,options:o})}}class i8{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:ad`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}}class i9{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:ad`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:ad`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:ad`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/${e}`,data:t,options:o})}}class i7{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:ad`console/register`,data:e,options:t})}}class ae{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:ad`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:ad`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:ad`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:ad`provisioning/${e}`,data:t,options:o})}}class at{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:ad`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:ad`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:ad`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:ad`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:ad`map/upload`,queryParams:e,options:t})}}class ao{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}}class an{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:ad`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:ad`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:ad`configuration/manager/image/${e}`,options:t})}}class ar{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/datapoint/${e}/${t}`,data:o,options:n})}}class ai{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:ad`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:ad`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:ad`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/delivered`,queryParams:t,options:o})}}class aa{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:ad`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:ad`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:ad`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:ad`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:ad`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:ad`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:ad`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/child`,queryParams:t,options:o})}}class ac{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:ad`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:ad`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:ad`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:ad`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:ad`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:ad`service/${e}/${t}`,options:o})}}class as{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:ad`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class al{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:ad`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:ad`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/valueDescriptors`,queryParams:e,options:t})}}function ad(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class af{constructor(e,t=iX.create()){this._alarmResource=new am(e,t),this._appResource=new ab(e,t),this._dashboardResource=new ah(e,t),this._syslogResource=new ap(e,t),this._gatewayClientResource=new aF(e,t),this._userResource=new ag(e,t),this._agentResource=new av(e,t),this._statusResource=new ay(e,t),this._realmResource=new aE(e,t),this._flowResource=new a_(e,t),this._rulesResource=new aw(e,t),this._consoleResource=new aA(e,t),this._provisioningResource=new ak(e,t),this._mapResource=new aC(e,t),this._assetPredictedDatapointResource=new aD(e,t),this._configurationResource=new aS(e,t),this._assetDatapointResource=new ax(e,t),this._notificationResource=new aO(e,t),this._assetResource=new aT(e,t),this._externalServiceResource=new aB(e,t),this._gatewayServiceResource=new aR(e,t),this._assetModelResource=new aN(e,t),this._assetResource=new aT(e,t)}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}}class au{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class am extends iQ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ab extends iZ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ah extends i0{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ap extends i1{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aF extends i2{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ag extends i3{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class av extends i5{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ay extends i4{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aE extends i6{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class a_ extends i8{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aw extends i9{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aA extends i7{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ak extends ae{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aC extends at{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aD extends ao{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aS extends an{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ax extends ar{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aO extends ai{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aT extends aa{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aB extends ac{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aR extends as{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aN extends al{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}var aI=o(8183),aP=o.n(aI);iX.isAxiosError;let aL=new class{get api(){return this._client}constructor(){this._axiosInstance=iX.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>aP().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new af(e,this._axiosInstance)}};var aM=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};(eE=tx||(tx={})).DISCONNECTED="DISCONNECTED",eE.CONNECTED="CONNECTED",eE.CONNECTING="CONNECTING";let aU="SUBSCRIBED:",aj="UNAUTHORIZED:",a$="TRIGGERED:",aG="EVENT:";class aq{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tx.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let o=e.indexOf(t);o>=0&&e.splice(o,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tx.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tx.CONNECTING),this._connectingDeferred=new nz,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._onStatusChanged(tx.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tx.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nz};return null!=this._pendingSubscription||this._status!==tx.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return aM(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tx.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tx.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aq._subscriptionCounter++;if(!this._assetEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===cp.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{o({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,a="AttributeEvent"+aq._subscriptionCounter++;if(!this._attributeEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let c=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===cp.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(a,c),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&c({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tx.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let o=this._subscriptionMap.get(e);o&&o.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tx.CONNECTED&&this._onStatusChanged(tx.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tx.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<aH.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aH.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aq.MIN_RECONNECT_DELAY=0,aq.MAX_RECONNECT_DELAY=3e4,aq._subscriptionCounter=0;class aH extends aq{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+cp.config.realm;return this._connectDeferred=new nz,(cp.authenticated?cp.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(aU)){let e=JSON.parse(t.substring(aU.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(aj)){let e=JSON.parse(t.substring(aj.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(a$)){let e=JSON.parse(t.substring(a$.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aG)){let e=JSON.parse(t.substring(aG.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new nz,e.subscriptionId||(e.subscriptionId=aH._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aG+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new nz;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aG+JSON.stringify(e)),t.promise}}aH._subscriptionCounter=1;let az=["__proto__","constructor","prototype"];function aW(e){return!("string"!=typeof e||0===e.length||e.length>128||az.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aV(e){return!(!aW(e)||e.indexOf("/")>-1)}let aY={lng:aV,ns:function(e){return aW(e)}};function aK(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aJ(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aX=/\{\{(.+?)\}\}/g;function aQ(e,t){let o=!1,n=e.replace(aX,(e,n)=>{let r=n.trim();if(az.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aY[r]||aV,c=String(i).split("+");for(let t of c)if(!a(t))return o=!0,e;return c.join("+")});return o?null:n}let aZ="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:aZ&&"function"==typeof aZ.fetch&&(t=aZ.fetch);let a0=aJ()&&aZ?aZ.XMLHttpRequest:void 0,a1="function"==typeof ActiveXObject&&aZ?aZ.ActiveXObject:void 0,a2=["__proto__","constructor","prototype"],a3=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))a2.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},a5=(e,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let t=r(e,o);if(t instanceof Promise)return void t.then(i).catch(n)}"function"==typeof fetch?fetch(e,o).then(i).catch(n):t(e,o).then(i).catch(n)},a4=(e,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),t&&0!==o.indexOf("file:")){var i=o,a=n,c=r;e.queryStringParams&&(i=a3(i,e.queryStringParams));let t={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let s="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:s},d="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{a5(i,l,c,d)}catch(t){if(!s||0===Object.keys(s).length||!t.message||0>t.message.indexOf("not implemented"))return c(t);try{Object.keys(s).forEach(e=>{delete l[e]}),a5(i,l,c,d),e._omitFetchOptions=!0}catch(e){c(e)}}return}if(aJ()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=a3("",l).slice(1)),e.queryStringParams&&(s=a3(s,e.queryStringParams));try{let t=a0?new a0:new a1("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",s,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let o=e.customHeaders;if(o="function"==typeof o?o():o)for(let e of Object.keys(o))a2.indexOf(e)>-1||t.setRequestHeader(e,o[e]);t.onreadystatechange=()=>{t.readyState>3&&d(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var a6=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:a4,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=o,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,r){var i,a;let c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(e,o)),(c=(a=i=c)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aQ(i,{lng:e.join("+"),ns:o.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aK).join(", ")+"] namespaces=["+o.map(aK).join(", ")+"]"),!1);this.loadUrl(a,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=aK(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,c;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+aK(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){c="failed parsing "+i+" to json"}if(c)return t(c,!1);t(null,a)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),a=0,c=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=aQ(n,{lng:o,ns:t});if(null==l){a+=1,r&&a===e.length&&r(c,s);return}this.options.request(this.options,l,i,(t,o)=>{a+=1,c.push(t),s.push(o),a===e.length&&"function"==typeof r&&r(c,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};a6.type="backend";let a8=e=>(...t)=>({_$litDirective$:e,values:t});class a9{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a7 extends a9{constructor(e){if(super(e),this.it=ov,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ov||null==e)return this._t=void 0,this.it=e;if(e===og)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a7.directiveName="unsafeHTML",a7.resultType=1,a8(a7);class ce extends a7{}ce.directiveName="unsafeSVG",ce.resultType=2;let ct=a8(ce),co={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 cn=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};class cr extends CustomEvent{constructor(){super(cr.NAME,{bubbles:!0,composed:!0})}}cr.NAME="or-iconset-added";let ci=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cr)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return oF``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):oF``}},ca=class extends oM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tz`
|
|
10
|
+
`;class oM extends oI{static finalizeStyles(e){return[oL,...super.finalizeStyles(e)]}}let oU=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oj={attribute:!0,type:String,converter:t5,reflect:!1,hasChanged:t4};function o$(e){return(t,o)=>{let n;return"object"==typeof o?((e=oj,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function oG(e){return o$({...e,state:!0,attribute:!1})}let oq=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function oH(t){return(o,n)=>oq(o,n,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function oz(e){return(t,o)=>{let{slot:n,selector:r}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return oq(t,o,{get(){let t=this.renderRoot?.querySelector(i),o=t?.assignedElements(e)??[];return void 0===r?o:o.filter(e=>e.matches(r))}})}}o(4532),(m=eO||(eO={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",(b=eT||(eT={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eB||(eB={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eR||(eR={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(F=eN||(eN={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(g=eI||(eI={})).CREATE="CREATE",g.READ="READ",g.UPDATE="UPDATE",g.DELETE="DELETE",(v=eP||(eP={})).NONE="NONE",v.FORECAST="FORECAST",v.SETPOINT="SETPOINT",(y=eL||(eL={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(E=eM||(eM={})).REQUEST_START="REQUEST_START",E.REQUEST_REPEATING="REQUEST_REPEATING",E.REQUEST_CANCEL="REQUEST_CANCEL",E.READY="READY",E.COMPLETED="COMPLETED",E.RUNNING="RUNNING",E.CANCELLED="CANCELLED",(_=eU||(eU={})).TOGGLE="TOGGLE",_.INCREMENT="INCREMENT",_.DECREMENT="DECREMENT",_.NEGATE="NEGATE",(w=ej||(ej={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",w.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",w.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",w.INVALID_VALUE="INVALID_VALUE",w.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",w.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",w.CANNOT_PROCESS="CANNOT_PROCESS",w.QUEUE_FULL="QUEUE_FULL",w.UNKNOWN="UNKNOWN",w.ASSET_ID_MISSING="ASSET_ID_MISSING",w.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=e$||(e$={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(k=eG||(eG={})).OFF="OFF",k.ONE_MIN="ONE_MIN",k.FIVE_MIN="FIVE_MIN",k.QUARTER="QUARTER",k.ONE_HOUR="ONE_HOUR",(C=eq||(eq={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",C.KEEP_LAYOUT="KEEP_LAYOUT",C.REDIRECT="REDIRECT",C.BLOCK_DEVICE="BLOCK_DEVICE",(D=eH||(eH={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(S=ez||(ez={})).MINUTE="MINUTE",S.HOUR="HOUR",S.DAY="DAY",S.WEEK="WEEK",S.MONTH="MONTH",S.YEAR="YEAR",(x=eW||(eW={})).MIN="MIN",x.AVG="AVG",x.MAX="MAX",x.DIFFERENCE="DIFFERENCE",x.COUNT="COUNT",x.SUM="SUM",x.MODE="MODE",x.MEDIAN="MEDIAN",(O=eV||(eV={})).TERMINATING="TERMINATING",O.DISABLED="DISABLED",O.ALREADY_CONNECTED="ALREADY_CONNECTED",O.UNRECOGNISED="UNRECOGNISED",O.PERMANENT_ERROR="PERMANENT_ERROR",O.SYNC_ERROR="SYNC_ERROR",(T=eY||(eY={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(B=eK||(eK={})).GET="GET",B.POST="POST",B.PUT="PUT",B.DELETE="DELETE",B.OPTIONS="OPTIONS",B.PATCH="PATCH",(R=eJ||(eJ={})).KEYCLOAK="KEYCLOAK",R.NONE="NONE",(N=eX||(eX={})).WEBSOCKET="WEBSOCKET",N.POLLING="POLLING",(I=eQ||(eQ={})).INTERNAL="INTERNAL",I.CLIENT="CLIENT",I.GLOBAL_RULESET="GLOBAL_RULESET",I.REALM_RULESET="REALM_RULESET",I.ASSET_RULESET="ASSET_RULESET",(P=eZ||(eZ={})).REALM="REALM",P.USER="USER",P.ASSET="ASSET",P.CUSTOM="CUSTOM",(L=e0||(e0={})).NORMAL="NORMAL",L.HIGH="HIGH",(M=e1||(e1={})).DEVICE="DEVICE",M.TOPIC="TOPIC",M.CONDITION="CONDITION",(U=e2||(e2={})).ALWAYS="ALWAYS",U.ONCE="ONCE",U.HOURLY="HOURLY",U.DAILY="DAILY",U.WEEKLY="WEEKLY",U.MONTHLY="MONTHLY",U.ANNUALLY="ANNUALLY",(j=e3||(e3={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",($=e5||(e5={})).MESSAGE_INVALID="MESSAGE_INVALID",$.CERTIFICATE_INVALID="CERTIFICATE_INVALID",$.UNAUTHORIZED="UNAUTHORIZED",$.FORBIDDEN="FORBIDDEN",$.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",$.CONFIG_DISABLED="CONFIG_DISABLED",$.USER_DISABLED="USER_DISABLED",$.SERVER_ERROR="SERVER_ERROR",$.ASSET_ERROR="ASSET_ERROR",$.SERVER_BUSY="SERVER_BUSY",(G=e4||(e4={})).PRIVATE="PRIVATE",G.PROTECTED="PROTECTED",G.PUBLIC="PUBLIC",(q=e6||(e6={})).EXACT="EXACT",q.BEGIN="BEGIN",q.END="END",q.CONTAINS="CONTAINS",(H=e8||(e8={})).EQUALS="EQUALS",H.GREATER_THAN="GREATER_THAN",H.GREATER_EQUALS="GREATER_EQUALS",H.LESS_THAN="LESS_THAN",H.LESS_EQUALS="LESS_EQUALS",H.BETWEEN="BETWEEN",(z=e9||(e9={})).CREATED_ON="CREATED_ON",z.NAME="NAME",z.ASSET_TYPE="ASSET_TYPE",z.PARENT_ID="PARENT_ID",z.REALM="REALM",(W=e7||(e7={})).RESTRICTED="RESTRICTED",W.LINKED="LINKED",W.REALM="REALM",(V=te||(te={})).AT_LEAST_ONE="AT_LEAST_ONE",V.ALL="ALL",V.NONE="NONE",(Y=tt||(tt={})).AND="AND",Y.OR="OR",(K=to||(to={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=tn||(tn={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(X=tr||(tr={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=ti||(ti={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=ta||(ta={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=tc||(tc={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=ts||(ts={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(eo=tl||(tl={})).INPUT="INPUT",eo.PROCESSOR="PROCESSOR",eo.OUTPUT="OUTPUT",eo.THEN="THEN",(en=td||(td={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(er=tf||(tf={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=tu||(tu={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tm||(tm={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.READ="read",ea.WRITE="write",(ec=tb||(tb={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(es=th||(th={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(el=tp||(tp={})).ASSET="ASSET",el.AGENT="AGENT",el.NOTIFICATION="NOTIFICATION",el.ALARM="ALARM",el.RULES="RULES",el.PROTOCOL="PROTOCOL",el.GATEWAY="GATEWAY",el.MODEL_AND_VALUES="MODEL_AND_VALUES",el.API="API",el.DATA="DATA",(ed=tF||(tF={})).INFO="INFO",ed.WARN="WARN",ed.ERROR="ERROR",(ef=tg||(tg={})).NUMERIC="numeric",ef.DIGIT_2="2-digit",ef.FULL="full",ef.LONG="long",ef.MEDIUM="medium",ef.SHORT="short",ef.NARROW="narrow",(eu=tv||(tv={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(em=ty||(ty={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eb=tE||(tE={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=t_||(t_={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tw||(tw={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(eF=tA||(tA={})).COLOURRGB="colourRGB",eF.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eF.PRICEHOURLY="priceHourly",eF.MQTTPORT="MQTTPort",eF.PINGDISABLED="pingDisabled",eF.FLOW="flow",eF.CHILDASSETTYPE="childAssetType",eF.LASTACCESS="lastAccess",eF.POSITION="position",eF.NETWORKKEY="networkKey",eF.UNIVERSE="universe",eF.ROUTINGMODE="routingMode",eF.MSSINUMBER="MSSINumber",eF.LASTWILLRETAIN="lastWillRetain",eF.LASTWILLTOPIC="lastWillTopic",eF.SERIALBAUDRATE="serialBaudrate",eF.SUBSCRIBEQOS="subscribeQos",eF.LEDCOUNT="lEDCount",eF.LOCKED="locked",eF.CLOUDCOVERAGE="cloudCoverage",eF.BASEURL="baseURL",eF.PROTOCOL="protocol",eF.REQUIREDVALUES="requiredValues",eF.REGION="region",eF.CONSOLEPLATFORM="consolePlatform",eF.GATEWAYSTATUS="gatewayStatus",eF.NO2LEVEL="NO2Level",eF.ATMOSPHERICPRESSURE="atmosphericPressure",eF.SERIALPORT="serialPort",eF.APPLICATIONID="applicationId",eF.TAGS="tags",eF.UNLOCK="unlock",eF.CHECKINTERVALSECONDS="checkIntervalSeconds",eF.LOCATION="location",eF.CLIENTSECRET="clientSecret",eF.WINDDIRECTION="windDirection",eF.WINDSPEED="windSpeed",eF.PARTICLESPM10="particlesPM10",eF.APPLICATIONKEY="applicationKey",eF.LENGTH="length",eF.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eF.USERNAMEPASSWORD="usernamePassword",eF.WATERLEVEL="waterLevel",eF.CONNECTHEADERS="connectHeaders",eF.CONSOLENAME="consoleName",eF.WEBSOCKETQUERY="websocketQuery",eF.PREFERHTML="preferHTML",eF.PARITY="parity",eF.COOLING="cooling",eF.POLLINGMILLIS="pollingMillis",eF.SOILTEMPERATURE="soilTemperature",eF.SUNIRRADIANCE="sunIrradiance",eF.MESSAGEMAXLENGTH="messageMaxLength",eF.WINDGUSTSPEED="windGustSpeed",eF.LIGHTID="lightId",eF.PROXYADDRESS="proxyAddress",eF.REQUESTQUERYPARAMETERS="requestQueryParameters",eF.MQTTHOST="MQTTHost",eF.SECUREGRPC="secureGRPC",eF.MODEL="model",eF.STREET="street",eF.MANUFACTURER="manufacturer",eF.DELETEPROCESSEDMAIL="deleteProcessedMail",eF.RESUMESESSION="resumeSession",eF.ONOFF="onOff",eF.APIKEY="ApiKey",eF.CITY="city",eF.PRESENCE="presence",eF.SPACESOCCUPIED="spacesOccupied",eF.STARTTLS="startTLS",eF.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eF.WEBSOCKETPATH="websocketPath",eF.AGENTSTATUS="agentStatus",eF.PRICEDAILY="priceDaily",eF.COUNTGROWTHMINUTE="countGrowthMinute",eF.IMONUMBER="IMONumber",eF.ATTRIBUTION="Attribution",eF.TENANTID="tenantId",eF.REQUESTHEADERS="requestHeaders",eF.HOST="host",eF.COUNTOUTMINUTE="countOutMinute",eF.MESSAGECHARSET="messageCharset",eF.CERTIFICATEALIAS="certificateAlias",eF.EMAIL="email",eF.BINDPORT="bindPort",eF.CONSOLEVERSION="consoleVersion",eF.PARTICLESPM1="particlesPM1",eF.MTU="mtu",eF.SPEED="speed",eF.MESSAGESTRIPDELIMITER="messageStripDelimiter",eF.AREA="area",eF.COUNTRY="country",eF.SHIPTYPE="shipType",eF.CONNECTSUBSCRIPTIONS="connectSubscriptions",eF.RELATIVEHUMIDITY="relativeHumidity",eF.SOURCEADDRESS="sourceAddress",eF.RAINFALL="rainfall",eF.OAUTHGRANT="oAuthGrant",eF.OZONELEVEL="ozoneLevel",eF.SEQUENCENUMBER="sequenceNumber",eF.COUNTINMINUTE="countInMinute",eF.PORT="port",eF.SUNALTITUDE="sunAltitude",eF.COUNTOUT="countOut",eF.ROOMNUMBER="roomNumber",eF.TUNNELINGSUPPORTED="tunnelingSupported",eF.ENINUMBER="ENINumber",eF.PARTICLESPM2_5="particlesPM2_5",eF.AGENTDISABLED="agentDisabled",eF.DISABLED="disabled",eF.COUNTIN="countIn",eF.MESSAGESOURCEADDRESS="messageSourceAddress",eF.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eF.TIMEINJECTIONINTERVAL="timeInjectionInterval",eF.TEMPERATURESETPOINT="temperatureSetpoint",eF.CONSOLEPROVIDERS="consoleProviders",eF.COUNTTOTAL="countTotal",eF.SPACESBUFFER="spacesBuffer",eF.DEVICECONFIG="deviceConfig",eF.SPACESTOTAL="spacesTotal",eF.BINDHOST="bindHost",eF.FANSPEED="fanSpeed",eF.MESSAGECONVERTBINARY="messageConvertBinary",eF.NOTES="notes",eF.MAILFOLDERNAME="mailFolderName",eF.MESSAGEDELIMITERS="messageDelimiters",eF.TEMPERATURE="temperature",eF.SUNZENITH="sunZenith",eF.SNMPVERSIONVALUE="SNMPVersionValue",eF.BRIGHTNESS="brightness",eF.POSTALCODE="postalCode",eF.SPACESOPEN="spacesOpen",eF.HUMIDITY="humidity",eF.SOUNDLEVEL="soundLevel",eF.SECUREMODE="secureMode",eF.DIRECTION="direction",eF.STOPBITS="stopbits",eF.UVINDEX="uVIndex",eF.CONNECTURL="connectURL",eF.CLIENTID="clientId",eF.NATMODE="NATMode",eF.UPDATEONWRITE="updateOnWrite",eF.LASTWILLPAYLOAD="lastWillPayload",eF.GROUPID="groupId",eF.FOLLOWREDIRECTS="followRedirects",eF.SUNAZIMUTH="sunAzimuth",eF.MESSAGECONVERTHEX="messageConvertHex",eF.WEBSOCKETMODE="websocketMode",eF.COLOURTEMPERATURE="colourTemperature",eF.PUBLISHQOS="publishQos",eF.DATABITS="dataBits",(eg=tk||(tk={})).FORMAT="format",eg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eg.SECRET="secret",eg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eg.ATTRIBUTELINKS="attributeLinks",eg.RULERESETIMMEDIATE="ruleResetImmediate",eg.RULESTATE="ruleState",eg.AGENTLINKCONFIG="agentLinkConfig",eg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eg.FORECAST="forecast",eg.STOREDATAPOINTS="storeDataPoints",eg.LABEL="label",eg.CONSTRAINTS="constraints",eg.UNITS="units",eg.USERCONNECTED="userConnected",eg.SHOWONDASHBOARD="showOnDashboard",eg.READONLY="readOnly",eg.MULTILINE="multiline",eg.ACCESSPUBLICWRITE="accessPublicWrite",eg.MOMENTARY="momentary",eg.AGENTLINK="agentLink",eg.ACCESSRESTRICTEDREAD="accessRestrictedRead",eg.ACCESSPUBLICREAD="accessPublicRead",(ev=tC||(tC={})).ASSETQUERY="assetQuery",ev.WSURL="WS_URL",ev.COLOURRGB="colourRGB",ev.VALUEFORMAT="valueFormat",ev.TEXT="text",ev.BYTE="byte",ev.USERNAMEANDPASSWORD="usernameAndPassword",ev.HTTPURL="HTTP_URL",ev.ATTRIBUTELINK="attributeLink",ev.ASSETID="assetID",ev.NUMBERMAP="numberMap",ev.HTTPMETHOD="HTTPMethod",ev.ATTRIBUTESTATE="attributeState",ev.POSITIVENUMBER="positiveNumber",ev.POSITIVEINTEGER="positiveInteger",ev.EXECUTIONSTATUS="executionStatus",ev.BIGINTEGER="bigInteger",ev.VALUEDESCRIPTOR="valueDescriptor",ev.PERIODDURATIONISO8601="periodDurationISO8601",ev.LONG="long",ev.DATEANDTIME="dateAndTime",ev.BOOLEANMAP="booleanMap",ev.MQTTQOS="MQTTQos",ev.NEGATIVEINTEGER="negativeInteger",ev.TCPIPPORTNUMBER="TCP_IPPortNumber",ev.GEOJSONPOINT="GEO_JSONPoint",ev.SNMPVERSION="SNMPVersion",ev.ASSETTYPE="assetType",ev.JSONOBJECT="JSONObject",ev.INTEGERMAP="integerMap",ev.BIGNUMBER="bigNumber",ev.IPADDRESS="IPAddress",ev.EMAIL="email",ev.TIMESTAMP="timestamp",ev.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",ev.ATTRIBUTEREFERENCE="attributeReference",ev.UUID="UUID",ev.INTEGER="integer",ev.OAUTHGRANT="oAuthGrant",ev.NUMBER="number",ev.DEVICECONFIGMAP="DeviceConfigMap",ev.TEXTMAP="textMap",ev.WEBSOCKETSUBSCRIPTION="websocketSubscription",ev.BOOLEAN="boolean",ev.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",ev.FORECASTCONFIGURATION="forecastConfiguration",ev.TIMEDURATIONISO8601="timeDurationISO8601",ev.TIMESTAMPISO8601="timestampISO8601",ev.CONSOLEPROVIDERS="consoleProviders",ev.MULTIVALUEDTEXTMAP="multivaluedTextMap",ev.NEGATIVENUMBER="negativeNumber",ev.PARITYBIT="Paritybit",ev.JSON="JSON",ev.CRONEXPRESSION="CRONExpression",ev.INTEGERBYTE="integerByte",ev.AGENTLINK="agentLink",ev.DIRECTION="direction",ev.HOSTORIPADDRESS="hostOrIPAddress",ev.STOPBITS="Stopbits",ev.CALENDAREVENT="calendarEvent",ev.CONNECTIONSTATUS="connectionStatus",ev.VALUECONSTRAINT="valueConstraint",(ey=tD||(tD={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tS||(tS={});class oW{static getAssetDescriptors(){return oW._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oW.getValueDescriptor(t)),o=t.jsonType?t:oW.getValueDescriptor(t.type)),!o&&e&&(o=oW.getValueDescriptor("JSON")),o}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}function oV(e){return(oV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oK(e){var t=function(e,t){if("object"!=oV(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oV(t)?t:t+""}function oJ(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oK(n.key),n)}}function oX(e,t,o){return t&&oJ(e.prototype,t),o&&oJ(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oQ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oZ(e,t){return(oZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o0(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oZ(e,t)}function o1(e,t){if(t&&("object"==oV(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oQ(e)}function o2(e){return(o2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o3(e,t,o){return(t=oK(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function o5(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o6(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o4(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o4(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}oW._assetTypeInfos=[],oW._metaItemDescriptors=[],oW._valueDescriptors=[];var o8={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},o9=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.init(t,o)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||o8,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,o6(o6({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),o7=function(){function e(){oY(this,e),this.observers={}}return oX(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function ne(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function nt(e){return null==e?"":""+e}function no(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=n(i.shift());!e[a]&&o&&(e[a]=new o),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function nn(e,t,o){var n=no(e,t,Object);n.obj[n.k]=o}function nr(e,t){var o=no(e,t),n=o.obj,r=o.k;if(n)return n[r]}function ni(e,t,o){var n=nr(e,o);return void 0!==n?n:nr(t,o)}function na(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nc={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ns(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return nc[e]}):e}var nl="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,nd=[" ",",","?","!",";"];function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nu(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nm=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oX(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];o&&"string"!=typeof o&&(a=a.concat(o)),o&&"string"==typeof o&&(a=a.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(a=e.split("."));var c=nr(this.data,a);return c||!i||"string"!=typeof o?c:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var c=2,s=r.slice(a,a+c).join(n),l=i[s];void 0===l&&r.length>a+c;)c++,l=i[s=r.slice(a,a+c).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(a+c).join(n);if(d)return e(l,d,n);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];o&&(a=a.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),nn(this.data,a,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=o,o=t,t=a[1]),this.addNamespaces(t);var c=nr(this.data,a)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(c,o,r):c=nu(nu({},c),o),nn(this.data,a,c),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?nu(nu({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(o7),nb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function nh(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function np(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nh(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nF={},ng=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oQ(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=o9.create("translator"),i}return oX(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=nd.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(o);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,o,n);if(i&&!a){var c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oV(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],t),s=c.key,l=c.namespaces,d=l[l.length-1],f=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(u){var m=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(m).concat(s),b):"".concat(d).concat(m).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||s,F=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(h),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof v||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,np(np({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=_,b):_}if(a){var w="[object Array]"===g,A=w?[]:{},k=w?F:p;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(k).concat(a).concat(C);A[C]=this.translate(D,np(np({},t),{joinArrays:!1,ns:l})),A[C]===D&&(A[C]=h[C])}h=A}}else if(y&&"string"==typeof v&&"[object Array]"===g)(h=h.join(v))&&(h=this.extendTranslation(h,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(h)&&T&&(S=!0,h=R),this.isValidLookup(h)||(x=!0,h=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:h,I=T&&R!==h&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:h),a){var P=this.resolve(s,np(np({},t),{},{keySeparator:!1}));P&&P.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.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==h?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}h=this.extendTranslation(h,e,t,b,o),x&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,np(np({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(np(np({},o),{interpolation:np(np({},this.options.interpolation),o.interpolation)}));var a,c="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=np(np({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),c){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,u="string"==typeof f?[f]:f;return null!=e&&u&&u.length&&!1!==o.applyPostProcessor&&(e=nb.handle(u,e,t,this.options&&this.options.postProcessPassResolved?np({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,a=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,c),l=s.key;o=l;var d=s.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var f=void 0!==c.count&&"string"!=typeof c.count,u=f&&!c.ordinal&&0===c.count&&a.pluralResolver.shouldUseIntlApi(),m=void 0!==c.context&&("string"==typeof c.context||"number"==typeof c.context)&&""!==c.context,b=c.lngs?c.lngs:a.languageUtils.toResolveHierarchy(c.lng||a.language,c.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(i=e,!nF["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(nF["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(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!!!")),b.forEach(function(o){if(!a.isValidLookup(t)){r=o;var i,s=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,l,o,e,c);else{f&&(d=a.pluralResolver.getSuffix(o,c.count,c));var d,b="".concat(a.options.pluralSeparator,"zero");if(f&&(s.push(l+d),u&&s.push(l+b)),m){var h="".concat(l).concat(a.options.contextSeparator).concat(c.context);s.push(h),f&&(s.push(h+d),u&&s.push(h+b))}}for(;i=s.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(o,e,i,c))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(o7);function nv(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ny=function(){function e(t){oY(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o9.create("languageUtils")}return oX(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nv(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nv(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nE=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],n_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},nw=["v1","v2","v3"],nA={zero:0,one:1,two:2,few:3,many:4,other:5},nk=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oY(this,e),this.languageUtils=t,this.options=n,this.logger=o9.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nE.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:n_[e.fc]}})}),o)}return oX(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nA[e]-nA[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!nw.includes(this.options.compatibilityJSON)}}]),e}();function nC(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nD(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nC(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oX(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ns,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?na(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?na(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?na(t.nestingPrefix):t.nestingPrefixEscaped||na("$t("),this.nestingSuffix=t.nestingSuffix?na(t.nestingSuffix):t.nestingSuffixEscaped||na(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,a,c=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(c.formatSeparator)){var r=ni(t,s,e);return c.alwaysFormat?c.format(r,void 0,o,nD(nD(nD({},n),t),{},{interpolationkey:e})):r}var i=e.split(c.formatSeparator),a=i.shift().trim(),l=i.join(c.formatSeparator).trim();return c.format(ni(t,s,a),l,o,nD(nD(nD({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?l(c.escape(e)):l(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(u){i=r[0];continue}else c.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||c.useRawValueToEscape||(i=nt(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=c.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=nD({},i);function c(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,a)).match(/'/g),c=r.match(/"/g);(i&&i.length%2==0&&!c||c.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=nD(nD({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(c.call(this,o[1].trim(),a),a))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=nt(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nD(nD({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nx(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nO(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nx(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nT(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),a=t[i];return a||(a=e(n,r),t[i]=a),a(o)}}var nB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oY(this,e),this.logger=o9.create("formatter"),this.options=t,this.formats={number:nT(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nT(function(e,t){var o=new Intl.NumberFormat(e,nO(nO({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nT(function(e,t){var o=new Intl.DateTimeFormat(e,nO({},t));return function(e){return o.format(e)}}),relativetime:nT(function(e,t){var o=new Intl.RelativeTimeFormat(e,nO({},t));return function(e){return o.format(e,t.range||"day")}}),list:nT(function(e,t){var o=new Intl.ListFormat(e,nO({},t));return function(e){return o.format(e)}})},this.init(t)}return oX(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nT(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o5(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o5(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),a=i.formatName,c=i.formatOptions;if(r.formats[a]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[a](e,d,nO(nO(nO({},c),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function nR(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nN(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nR(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nI=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oY(this,n),i=o.call(this),nl&&o7.call(oQ(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=o9.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return oX(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},a={},c={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var c="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[c]=2:r.state[c]<0||(1===r.state[c]?void 0===a[c]&&(a[c]=!0):(r.state[c]=1,n=!1,void 0===a[c]&&(a[c]=!0),void 0===i[c]&&(i[c]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(c[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(o){var n,c,s,l;n=o.loaded,(s=(c=no(n,[r],Object)).obj)[l=c.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){a[e]||(a[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[o](e,t,function(c,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}c&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,a)},i):a(c,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,a){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&a&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,n,a)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,nN(nN({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(o7);function nP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nM(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nL(Object(o),!0).forEach(function(t){o3(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nL(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nU(){}var nj=function(e){o0(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=o2(n);return e=t?Reflect.construct(o,arguments,o2(this).constructor):o.apply(this,arguments),o1(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oY(this,n),t=o.call(this),nl&&o7.call(oQ(t)),t.options=nP(r),t.services={},t.logger=o9,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oQ(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),o1(t,oQ(t));setTimeout(function(){t.init(r,i)},0)}return t}return oX(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oV(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oV(e[2])||"object"===oV(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nM(nM(nM({},n),this.options),nP(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nM(nM({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?o9.init(r(this.modules.logger),this.options):o9.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=nB);var i,a=new ny(this.options);this.store=new nm(this.options.resources,this.options);var c=this.services;c.logger=o9,c.resourceStore=this.store,c.languageUtils=a,c.pluralResolver=new nk(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=r(i),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new nS(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new nI(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ng(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nU),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[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(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=ne(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=ne();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nU),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&nb.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=ne();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},a=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oV(r)){for(var i,a=arguments.length,c=Array(a>2?a-2:0),s=2;s<a;s++)c[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else i=nM({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var c=o.precheck(this,a);if(void 0!==c)return c}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=ne();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=ne();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nU,r=nM(nM(nM({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ng(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(o7);o3(nj,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nj(e,t)});var n$=nj.createInstance();n$.createInstance=nj.createInstance,n$.createInstance,n$.init,n$.loadResources,n$.reloadResources,n$.use,n$.changeLanguage,n$.getFixedT,n$.t,n$.exists,n$.setDefaultNamespace,n$.hasLoadedNamespace,n$.loadNamespaces,n$.loadLanguages;let nG=n$;var nq=o(4867),nH=o.n(nq);o(3472);class nz{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function nW(e){return(t,o)=>{let n=e(t),r=e(o);return n||r?n&&!r?1:!n&&r?-1:n.localeCompare(r):0}}function nV(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class nY{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,a,c;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(c=this.names)||!c.length||!!this.names.every(t=>nY._evalValuePredicate(e.name,t)))&&(!this.attributes||nY._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nY._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nY._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let a=!t.value||nY._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",a=[...(null!=(n=t.items)?n:[]).map(t=>nY._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nY._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>nY._collectNames(e))]}}nY._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nK=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};let nJ=o(4461);class nX{constructor(e,t,o){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),r=n.get("consoleName"),i=n.get("consoleVersion"),a=n.get("consolePlatform"),c=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=c&&c.length>0?c.split(" "):["push"];this._pendingProviderEnables=l;let d=nX._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=d.providers;for(let e of(d.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let m=cp.getAppName();m.length>0&&0>d.apps.indexOf(m)&&d.apps.push(m),this._registration=d,r&&(d.name=r),i&&(d.version=i),a&&(d.platform=a),s&&(this._autoEnable="TRUE"===s||"true"===s)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nK(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nK(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return nK(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return nK(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return nK(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new nz,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>nK(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return nK(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield cp.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(o){if(e&&t&&nX._isStaleRegistrationResponse(o)){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 o}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return nK(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),o=t.provider,n=t.action,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nJ.name,version:nJ.version,platform:nJ.os.toString(),apps:[],model:((nJ.manufacturer?nJ.manufacturer+" ":"")+(nJ.product?nJ.product:"")).trim()}}_initialiseProvider(e){return nK(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function nQ(e,t){return function(){return e.apply(t,arguments)}}let{toString:nZ}=Object.prototype,{getPrototypeOf:n0}=Object,{iterator:n1,toStringTag:n2}=Symbol,n3=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),n5=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),n3(o,t))return!0;o=n0(o)}return!1},n4=(i=Object.create(null),e=>{let t=nZ.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),n6=e=>(e=e.toLowerCase(),t=>n4(t)===e),n8=e=>t=>typeof t===e,{isArray:n9}=Array,n7=n8("undefined");function re(e){return null!==e&&!n7(e)&&null!==e.constructor&&!n7(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let rt=n6("ArrayBuffer"),ro=n8("string"),rn=n8("function"),rr=n8("number"),ri=e=>null!==e&&"object"==typeof e,ra=e=>{if(!ri(e))return!1;let t=n0(e);return(null===t||t===Object.prototype||null===n0(t))&&!n5(e,n2)&&!n5(e,n1)},rc=n6("Date"),rs=n6("File"),rl=n6("Blob"),rd=n6("FileList"),rf="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ru=void 0!==rf.FormData?rf.FormData:void 0,rm=n6("URLSearchParams"),[rb,rh,rp,rF]=["ReadableStream","Request","Response","Headers"].map(n6);function rg(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),n9(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(re(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)r=i[n],t.call(null,e[r],r,e)}}function rv(e,t){let o;if(re(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let ry="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rE=e=>!n7(e)&&e!==ry,r_=(a="u">typeof Uint8Array&&n0(Uint8Array),e=>a&&e instanceof a),rw=n6("HTMLFormElement"),{propertyIsEnumerable:rA}=Object.prototype,rk=n6("RegExp"),rC=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rg(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rD=n6("AsyncFunction"),rS=(l="function"==typeof setImmediate,d=rn(ry.postMessage),l?setImmediate:d?(f=`axios@${Math.random()}`,u=[],ry.addEventListener("message",({source:e,data:t})=>{e===ry&&t===f&&u.length&&u.shift()()},!1),e=>{u.push(e),ry.postMessage(f,"*")}):e=>setTimeout(e)),rx="u">typeof queueMicrotask?queueMicrotask.bind(ry):"u">typeof process&&process.nextTick||rS,rO=e=>null!=e&&rn(e[n1]),rT={isArray:n9,isArrayBuffer:rt,isBuffer:re,isFormData:e=>{if(!e)return!1;if(ru&&e instanceof ru)return!0;let t=n0(e);if(!t||t===Object.prototype||!rn(e.append))return!1;let o=n4(e);return"formdata"===o||"object"===o&&rn(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rt(e.buffer)},isString:ro,isNumber:rr,isBoolean:e=>!0===e||!1===e,isObject:ri,isPlainObject:ra,isEmptyObject:e=>{if(!ri(e)||re(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rb,isRequest:rh,isResponse:rp,isHeaders:rF,isUndefined:n7,isDate:rc,isFile:rs,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rl,isRegExp:rk,isFunction:rn,isStream:e=>ri(e)&&rn(e.pipe),isURLSearchParams:rm,isTypedArray:r_,isFileList:rd,forEach:rg,merge:function e(...t){let{caseless:o,skipUndefined:n}=rE(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=o&&"string"==typeof i&&rv(r,i)||i,c=n3(r,a)?r[a]:void 0;ra(c)&&ra(t)?r[a]=e(c,t):ra(t)?r[a]=e({},t):n9(t)?r[a]=t.slice():n&&n7(t)||(r[a]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||re(o)||(rg(o,i),"object"!=typeof o||n9(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];rA.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rg(t,(t,n)=>{o&&rn(t)?Object.defineProperty(e,n,{__proto__:null,value:nQ(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let r,i,a,c={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=!1!==o&&n0(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:n4,kindOfTest:n6,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(n9(e))return e;let t=e.length;if(!rr(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[n1]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:rw,hasOwnProperty:n3,hasOwnProp:n3,hasOwnInPrototypeChain:n5,getSafeProp:(e,t)=>null!=e&&n5(e,t)?e[t]:void 0,reduceDescriptors:rC,freezeMethods:e=>{rC(e,(t,o)=>{if(rn(e)&&["arguments","caller","callee"].includes(o))return!1;if(rn(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(n9(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:rv,global:ry,isContextDefined:rE,isSpecCompliantForm:function(e){return!!(e&&rn(e.append)&&"FormData"===e[n2]&&e[n1])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(ri(e)){if(t.has(e))return;if(re(e))return e;if(!("toJSON"in e)){t.add(e);let n=n9(e)?[]:{};return rg(e,(e,t)=>{let r=o(e);n7(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rD,isThenable:e=>e&&(ri(e)||rn(e))&&rn(e.then)&&rn(e.catch),setImmediate:rS,asap:rx,isIterable:rO,isSafeIterable:e=>null!=e&&n5(e,n1)&&rO(e)},rB=rT.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"]),rR=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rN=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rI(e,t){return rT.isArray(e)?e.map(e=>rI(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function rP(e){let t=Object.create(null);return rT.forEach(e.toJSON(),(e,o)=>{t[o]=rI(e,rN)}),t}let rL=Symbol("internals");function rM(e){return e&&String(e).trim().toLowerCase()}function rU(e){return!1===e||null==e?e:rT.isArray(e)?e.map(rU):rI(String(e),rR)}function rj(e,t,o,n,r){if(rT.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rT.isString(t)){if(rT.isString(n))return -1!==t.indexOf(n);if(rT.isRegExp(n))return n.test(t)}}class r${constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rM(t);if(!r)return;let i=rT.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rU(e))}let i=(e,t)=>rT.forEach(e,(e,o)=>r(e,o,t));if(rT.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rT.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let o,n,r,c;i((c={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||c[o]&&rB[o]||("set-cookie"===o?c[o]?c[o].push(n):c[o]=[n]:c[o]=c[o]?c[o]+", "+n:n)}),c),t)}else if(rT.isObject(e)&&rT.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rT.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rT.hasOwnProp(o,r)?(n=o[r],o[r]=rT.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rM(e)){let o=rT.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(rT.isFunction(t))return t.call(this,e,o);if(rT.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rM(e)){let o=rT.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rj(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rM(e)){let r=rT.findKey(o,e);r&&(!t||rj(o,o[r],r,t))&&(delete o[r],n=!0)}}return rT.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rj(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rT.forEach(this,(n,r)=>{let i=rT.findKey(o,r);if(i){t[i]=rU(n),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();a!==r&&delete t[r],t[a]=rU(n),o[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rT.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rT.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[rL]=this[rL]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rM(e);if(!t[n]){let r;r=rT.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rT.isArray(e)?e.forEach(n):n(e),this}}r$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rT.reduceDescriptors(r$.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rT.freezeMethods(r$);class rG extends Error{static from(e,t,o,n,r,i){let a=new rG(e.message,t||e.code,o,n,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,o,n,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rT.hasOwnProp(n,"redact")?n.redact:void 0,i=rT.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rT.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof r$&&(n=n.toJSON()),t.push(n),rT.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rT.isUndefined(n)||(r[t]=n)});else{if(!rT.isPlainObject(n)&&function(e){if(rT.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rT.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rT.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rT.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rG.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rG.ERR_BAD_OPTION="ERR_BAD_OPTION",rG.ECONNABORTED="ECONNABORTED",rG.ETIMEDOUT="ETIMEDOUT",rG.ECONNREFUSED="ECONNREFUSED",rG.ERR_NETWORK="ERR_NETWORK",rG.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rG.ERR_DEPRECATED="ERR_DEPRECATED",rG.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rG.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rG.ERR_CANCELED="ERR_CANCELED",rG.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rG.ERR_INVALID_URL="ERR_INVALID_URL",rG.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rq=rG;function rH(e){return rT.isPlainObject(e)||rT.isArray(e)}function rz(e){return rT.endsWith(e,"[]")?e.slice(0,-2):e}function rW(e,t,o){return e?e.concat(t).map(function(e,t){return e=rz(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rV=rT.toFlatObject(rT,{},null,function(e){return/^is[A-Z]/.test(e)}),rY=function(e,t,o){if(!rT.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rT.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rT.isUndefined(t[e])})).metaTokens,r=o.visitor||m,i=o.dots,a=o.indexes,c=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=c&&rT.isSpecCompliantForm(t),d=[];if(!rT.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rT.isDate(e))return e.toISOString();if(rT.isBoolean(e))return e.toString();if(!l&&rT.isBlob(e))throw new rq("Blob is not supported. Use a Buffer instead.");if(rT.isArrayBuffer(e)||rT.isTypedArray(e)){if(l&&"function"==typeof c)return new c([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rq("Blob is not supported. Use a Buffer instead.",rq.ERR_NOT_SUPPORT)}return e}function u(e){if(e>s)throw new rq("Object is too deeply nested ("+e+" levels). Max depth: "+s,rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,o,r){let c=e;if(rT.isReactNative(t)&&rT.isReactNativeBlob(e))return t.append(rW(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rT.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rT.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),u(1+t.length-1),o})}(e);else{var l;if(rT.isArray(e)&&(l=e,rT.isArray(l)&&!l.some(rH))||(rT.isFileList(e)||rT.endsWith(o,"[]"))&&(c=rT.toArray(e)))return o=rz(o),c.forEach(function(e,n){rT.isUndefined(e)||null===e||t.append(!0===a?rW([o],n,i):null===a?o:o+"[]",f(e))}),!1}return!!rH(e)||(t.append(rW(r,o,i),f(e)),!1)}let b=Object.assign(rV,{defaultVisitor:m,convertValue:f,isVisitable:rH});if(!rT.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rT.isUndefined(o)){if(u(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rT.forEach(o,function(o,a){!0===(!(rT.isUndefined(o)||null===o)&&r.call(t,o,rT.isString(a)?a.trim():a,n,b))&&e(o,n?n.concat(a):[a],i+1)}),d.pop()}}(e),t};function rK(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rJ(e,t){this._pairs=[],e&&rY(e,this,t)}let rX=rJ.prototype;function rQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rZ(e,t,o){let n;if(!t)return e;e=e||"";let r=rT.isFunction(o)?{serialize:o}:o,i=rT.getSafeProp(r,"encode")||rQ,a=rT.getSafeProp(r,"serialize");if(n=a?a(t,r):rT.isURLSearchParams(t)?t.toString():new rJ(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rX.append=function(e,t){this._pairs.push([e,t])},rX.toString=function(e){let t=e?t=>e.call(this,t,rK):rK;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let r0=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rT.forEach(this.handlers,function(t){null!==t&&e(t)})}},r1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},r2="u">typeof URLSearchParams?URLSearchParams:rJ,r3="u">typeof FormData?FormData:null,r5="u">typeof Blob?Blob:null,r4="u">typeof window&&"u">typeof document,r6="object"==typeof navigator&&navigator||void 0,r8=r4&&(!r6||0>["ReactNative","NativeScript","NS"].indexOf(r6.product)),r9="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,r7=r4&&window.location.href||"http://localhost",ie={...tM,isBrowser:!0,classes:{URLSearchParams:r2,FormData:r3,Blob:r5},protocols:["http","https","file","blob","url","data"]};function it(e){if(e>100)throw new rq("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rq.ERR_FORM_DATA_DEPTH_EXCEEDED)}let io=function(e){if(rT.isFormData(e)&&rT.isFunction(e.entries)){let t={};return rT.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){it(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),c=r>=t.length;return(i=!i&&rT.isArray(n)?n.length:i,c)?rT.hasOwnProp(n,i)?n[i]=rT.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rT.hasOwnProp(n,i)&&rT.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rT.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!a}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)it(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},ir=(e,t)=>null!=e&&rT.hasOwnProp(e,t)?e[t]:void 0,ii={transitional:r1,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rT.isObject(e);if(i&&rT.isHTMLForm(e)&&(e=new FormData(e)),rT.isFormData(e))return r?JSON.stringify(io(e)):e;if(rT.isArrayBuffer(e)||rT.isBuffer(e)||rT.isStream(e)||rT.isFile(e)||rT.isBlob(e)||rT.isReadableStream(e))return e;if(rT.isArrayBufferView(e))return e.buffer;if(rT.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=ir(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rY(e,new ie.classes.URLSearchParams,{visitor:function(e,t,o,n){return ie.isNode&&rT.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rT.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ir(this,"env"),r=n&&n.FormData;return rY(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rT.isString(a))try{return(0,JSON.parse)(a),rT.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=ir(this,"transitional")||ii.transitional,o=t&&t.forcedJSONParsing,n=ir(this,"responseType"),r="json"===n;if(rT.isResponse(e)||rT.isReadableStream(e))return e;if(e&&rT.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,ir(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rq.from(e,rq.ERR_BAD_RESPONSE,this,null,ir(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ia(e,t){let o=this||ii,n=t||o,r=r$.from(n.headers),i=n.data;return rT.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}rT.forEach(["delete","get","head","post","put","patch","query"],e=>{ii.headers[e]={}});let is=class extends rq{constructor(e,t,o){super(null==e?"canceled":e,rq.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function il(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rq("Request failed with status code "+o.status,o.status>=400&&o.status<500?rq.ERR_BAD_REQUEST:rq.ERR_BAD_RESPONSE,o.config,o.request,o))}let id=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(c){let s=Date.now(),l=r[a];o||(o=s),n[i]=c,r[i]=s;let d=a,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-o<t)return;let u=l&&s-l;return u?Math.round(1e3*f/u):void 0}},iu=function(e,t){let o,n,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),c=t-r;c>=i?a(e,t):(o=e,n||(n=setTimeout(()=>{n=null,a(o)},i-c)))},()=>o&&a(o)]},im=(e,t,o=3)=>{let n=0,r=id(50,250);return iu(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,a=o.lengthComputable?o.total:void 0,c=null!=a?Math.min(i,a):i,s=Math.max(0,c-n),l=r(s);n=Math.max(n,c),e({loaded:c,total:a,progress:a?c/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a?(a-c)/l:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})},o)},ib=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},ih=e=>(...t)=>rT.asap(()=>e(...t)),ip=ie.hasStandardBrowserEnv?(c=new URL(ie.origin),s=ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent),e=>(e=new URL(e,ie.origin),c.protocol===e.protocol&&c.host===e.host&&(s||c.port===e.port))):()=>!0,iF=ie.hasStandardBrowserEnv?{write(e,t,o,n,r,i,a){if("u"<typeof document)return;let c=[`${e}=${encodeURIComponent(t)}`];rT.isNumber(o)&&c.push(`expires=${new Date(o).toUTCString()}`),rT.isString(n)&&c.push(`path=${n}`),rT.isString(r)&&c.push(`domain=${r}`),!0===i&&c.push("secure"),rT.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ig=/^https?:(?!\/\/)/i,iv=/[\t\n\r]/g;function iy(e,t){if("string"==typeof e&&ig.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(iv,"")))throw new rq('Invalid URL: missing "//" after protocol',rq.ERR_INVALID_URL,t)}function iE(e,t,o,n){iy(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(iy(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let i_=e=>e instanceof r$?{...e}:e;function iw(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rT.isPlainObject(e)&&rT.isPlainObject(t)?rT.merge.call({caseless:n},e,t):rT.isPlainObject(t)?rT.merge({},t):rT.isArray(t)?t.slice():t}function r(e,t,o,r){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rT.isUndefined(t))return n(void 0,t)}function a(e,t){return rT.isUndefined(t)?rT.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function c(o,r,i){return rT.hasOwnProp(t,i)?n(o,r):rT.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(e,t,o)=>r(i_(e),i_(t),o,!0)};return rT.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rT.hasOwnProp(s,n)?s[n]:r,a=i(rT.hasOwnProp(e,n)?e[n]:void 0,rT.hasOwnProp(t,n)?t[n]:void 0,n);rT.isUndefined(a)&&i!==c||(o[n]=a)}),rT.hasOwnProp(t,"validateStatus")&&rT.isUndefined(t.validateStatus)&&!1===function(o){let n=rT.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rT.isUndefined(n)){if(!rT.isPlainObject(n))return;else if(rT.hasOwnProp(n,o))return n[o]}let r=rT.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rT.isPlainObject(r)&&rT.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rT.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let iA=["content-type","content-length"],ik=function(e){let t=iw({},e),o=e=>rT.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),a=o("xsrfCookieName"),c=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=c=r$.from(c),t.url=rZ(iE(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rT.getSafeProp(s,"username")||"",o=rT.getSafeProp(s,"password")||"";try{c.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rq.from(t,rq.ERR_BAD_OPTION_VALUE,e)}}if(rT.isFormData(n))if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv||rT.isReactNative(n))c.setContentType(void 0);else{var u,m;rT.isFunction(n.getHeaders)&&(u=c,m=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?u.set(m):Object.entries(m||{}).forEach(([e,t])=>{iA.includes(e.toLowerCase())&&u.set(e,t)}))}if(ie.hasStandardBrowserEnv&&(rT.isFunction(r)&&(r=r(t)),!0===r||null==r&&ip(t.url))){let e=i&&a&&iF.read(a);e&&c.set(i,e)}return t},iC="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,a,c,s,l,d=ik(e),f=d.data,u=r$.from(d.headers).normalize(),{responseType:m,onUploadProgress:b,onDownloadProgress:h}=d;function p(){c&&c(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let F=new XMLHttpRequest;function g(){if(!F)return;let n=r$.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());il(function(e){t(e),p()},function(e){o(e),p()},{data:m&&"text"!==m&&"json"!==m?F.response:F.responseText,status:F.status,statusText:F.statusText,headers:n,config:e,request:F}),F=null}F.open(d.method.toUpperCase(),d.url,!0),F.timeout=d.timeout,"onloadend"in F?F.onloadend=g:F.onreadystatechange=function(){!F||4!==F.readyState||(0!==F.status||F.responseURL&&F.responseURL.startsWith("file:"))&&setTimeout(g)},F.onabort=function(){F&&(o(new rq("Request aborted",rq.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let n=new rq(t&&t.message?t.message:"Network Error",rq.ERR_NETWORK,e,F);n.event=t||null,o(n),p(),F=null},F.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||r1;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rq(t,n.clarifyTimeoutError?rq.ETIMEDOUT:rq.ECONNABORTED,e,F)),p(),F=null},void 0===f&&u.setContentType(null),"setRequestHeader"in F&&rT.forEach(rP(u),function(e,t){F.setRequestHeader(t,e)}),rT.isUndefined(d.withCredentials)||(F.withCredentials=!!d.withCredentials),m&&"json"!==m&&(F.responseType=d.responseType),h&&([a,s]=im(h,!0),F.addEventListener("progress",a)),b&&F.upload&&([i,c]=im(b),F.upload.addEventListener("progress",i),F.upload.addEventListener("loadend",c)),(d.cancelToken||d.signal)&&(r=t=>{F&&(o(!t||t.type?new is(null,e,F):t),F.abort(),p(),F=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let v=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(v&&!ie.protocols.includes(v)){o(new rq("Unsupported protocol "+v+":",rq.ERR_BAD_REQUEST,e)),p();return}F.send(f||null)})},iD=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iS=async function*(e,t){for await(let o of ix(e))yield*iD(o,t)},ix=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},iO=(e,t,o,n)=>{let r,i=iS(e,t),a=0,c=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){c(),e.close();return}let r=n.byteLength;if(o){let e=a+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},iT=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iB=(e,t,o)=>t+2<o&&iT(e.charCodeAt(t+1))&&iT(e.charCodeAt(t+2)),{isFunction:iR}=rT,iN=e=>{if(!rT.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iI=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iP=e=>{let t,o=void 0!==rT.global&&null!==rT.global?rT.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:a,Response:c}=e=rT.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?iR(i):"function"==typeof fetch,l=iR(a),d=iR(c);if(!s)return!1;let f=s&&iR(n),u=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),m=l&&f&&iI(()=>{let e=!1,t=new a(ie.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),b=d&&f&&iI(()=>rT.isReadableStream(new c("").body)),h={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rq(`Response type '${e}' is not supported`,rq.ERR_NOT_SUPPORT,o)})});let p=async e=>{if(null==e)return 0;if(rT.isBlob(e))return e.size;if(rT.isSpecCompliantForm(e)){let t=new a(ie.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rT.isArrayBufferView(e)||rT.isArrayBuffer(e)?e.byteLength:(rT.isURLSearchParams(e)&&(e+=""),rT.isString(e))?(await u(e)).byteLength:void 0},F=async(e,t)=>{let o=rT.toFiniteNumber(e.getContentLength());return null==o?p(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:u,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:E,headers:_,withCredentials:w="same-origin",fetchOptions:A,maxContentLength:k,maxBodyLength:C}=ik(e),D=rT.isNumber(k)&&k>-1,S=rT.isNumber(C)&&C>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rq?t:new is(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rq(`timeout of ${t}ms exceeded`,rq.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:c}=o;return c.unsubscribe=()=>rT.asap(a),c})([d,u&&u.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rq("Request body larger than maxBodyLength limit",rq.ERR_BAD_REQUEST,e,T);try{var I;let i,d,u,g,P=(d="auth",rT.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rT.getSafeProp(P,"username")||"",t=rT.getSafeProp(P,"password")||"";i={username:e,password:t}}if(u=(I=o).indexOf("://"),g=I,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(o,ie.origin);if(!i&&(e.username||e.password)){let t=iN(e.username),o=iN(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;_.delete("authorization"),_.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(D&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),r=n.charCodeAt(o+2);iT(t)&&iT(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let a=3*Math.floor(e/4)-(o||0);return a>0?a:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iB(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await p(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw N()}let L=S&&(rT.isReadableStream(s)||rT.isStream(s)),M=(e,t,o)=>iO(e,65536,e=>{if(S&&e>C)throw R=N();t&&t(e)},o);if(m&&"get"!==n&&"head"!==n&&(y||L)){if(t=null==t?await F(_,s):t,0!==t||L){let e,n=new a(o,{method:"POST",body:s,duplex:"half"});if(rT.isFormData(s)&&(e=n.headers.get("content-type"))&&_.setContentType(e),n.body){let[e,o]=y&&ib(t,im(ih(y)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!m&&"get"!==n&&"head"!==n)throw new rq("Stream request bodies are not supported by the current fetch implementation",rq.ERR_NOT_SUPPORT,e,T);rT.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in a.prototype;if(rT.isFormData(s)){let e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/1.18.1",!1);let j={...A,signal:O,method:n.toUpperCase(),headers:rP(_.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new a(o,j);let $=await (l?x(T,A):x(o,j)),G=r$.from($.headers);if(D){let t=rT.toFiniteNumber(G.getContentLength());if(null!=t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}let q=b&&("stream"===E||"response"===E);if(b&&$.body&&(v||D||q&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let o=rT.toFiniteNumber(G.getContentLength()),[n,r]=v&&ib(o,im(ih(v),!0))||[];$=new c(iO($.body,65536,t=>{if(D&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let H=await h[rT.findKey(h,E)||"text"]($,e);if(D&&!b&&!q){let t;if(null!=H&&("number"==typeof H.byteLength?t=H.byteLength:"number"==typeof H.size?t=H.size:"string"==typeof H&&(t="function"==typeof r?new r().encode(H).byteLength:H.length)),"number"==typeof t&&t>k)throw new rq("maxContentLength size of "+k+" exceeded",rq.ERR_BAD_RESPONSE,e,T)}return!q&&B&&B(),await new Promise((t,o)=>{il(t,o,{data:H,headers:r$.from($.headers),status:$.status,statusText:$.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rq){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rq)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rq("Network Error",rq.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rq.from(t,t&&t.code,e,T,t&&t.response)}}},iL=new Map,iM=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],a=i.length,c,s,l=iL;for(;a--;)c=i[a],void 0===(s=l.get(c))&&l.set(c,s=a?new Map:iP(t)),l=s;return s};iM();let iU={http:null,xhr:iC,fetch:{get:iM}};rT.forEach(iU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ij=e=>`- ${e}`,i$=e=>rT.isFunction(e)||null===e||!1===e,iG=function(e,t){let o,n,{length:r}=e=rT.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(n=o=e[a],!i$(o)&&void 0===(n=iU[(r=String(o)).toLowerCase()]))throw new rq(`Unknown adapter '${r}'`);if(n&&(rT.isFunction(n)||(n=n.get(t))))break;i[r||"#"+a]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rq("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(ij).join("\n"):" "+ij(e[0]):"as no adapter specified"),rq.ERR_NOT_SUPPORT)}return n};function iq(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function iH(e){return iq(e),e.headers=r$.from(e.headers),e.data=ia.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iG(e.adapter||ii.adapter,e)(e).then(function(t){iq(e),e.response=t;try{t.data=ia.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=r$.from(t.headers),t},function(t){if(!ic(t)&&(iq(e),t&&t.response)){e.response=t.response;try{t.response.data=ia.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=r$.from(t.response.headers)}return Promise.reject(t)})}let iz={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iz[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let iW={};iz.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rq(n(r," has been removed"+(t?" in "+t:"")),rq.ERR_DEPRECATED);return t&&!iW[r]&&(iW[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iz.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iV=function(e,t,o){if("object"!=typeof e||null===e)throw new rq("options must be an object",rq.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],o=void 0===t||a(t,i,e);if(!0!==o)throw new rq("option "+i+" must be "+o,rq.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rq("Unknown option "+i,rq.ERR_BAD_OPTION)}};class iY{constructor(e){this.defaults=e||{},this.interceptors={request:new r0,response:new r0}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}}throw e}}_request(e,t){let o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=iw(this.defaults,t);void 0!==r&&iV(r,{silentJSONParsing:iz.transitional(iz.boolean),forcedJSONParsing:iz.transitional(iz.boolean),clarifyTimeoutError:iz.transitional(iz.boolean),legacyInterceptorReqResOrdering:iz.transitional(iz.boolean),advertiseZstdAcceptEncoding:iz.transitional(iz.boolean),validateStatusUndefinedResolves:iz.transitional(iz.boolean)},!1),null!=i&&(rT.isFunction(i)?t.paramsSerializer={serialize:i}:iV(i,{encode:iz.function,serialize:iz.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iV(t,{baseUrl:iz.spelling("baseURL"),withXsrfToken:iz.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&rT.merge(a.common,a[t.method]);a&&rT.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=r$.concat(c,a);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||r1;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[iH.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let u=t;for(;f<n;){let e=s[f++],t=s[f++];try{u=e(u)}catch(e){t.call(this,e);break}}try{o=iH.call(this,u)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rZ(iE((e=iw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rT.forEach(["delete","get","head","options"],function(e){iY.prototype[e]=function(t,o){return this.request(iw(o||{},{method:e,url:t,data:o&&rT.hasOwnProp(o,"data")?o.data:void 0}))}}),rT.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(iw(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iY.prototype[e]=t(),"query"!==e&&(iY.prototype[e+"Form"]=t(!0))});let iK=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,r){o.reason||(o.reason=new is(e,n,r),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},iJ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iJ).forEach(([e,t])=>{iJ[t]=e});let iX=function e(t){let o=new iY(t),n=nQ(iY.prototype.request,o);return rT.extend(n,iY.prototype,o,{allOwnKeys:!0}),rT.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(iw(t,o))},n}(ii);iX.Axios=iY,iX.CanceledError=is,iX.CancelToken=iK,iX.isCancel=ic,iX.VERSION="1.18.1",iX.toFormData=rY,iX.AxiosError=rq,iX.Cancel=iX.CanceledError,iX.all=function(e){return Promise.all(e)},iX.spread=function(e){return function(t){return e.apply(null,t)}},iX.isAxiosError=function(e){return rT.isObject(e)&&!0===e.isAxiosError},iX.mergeConfig=iw,iX.AxiosHeaders=r$,iX.formToJSON=e=>io(rT.isHTMLForm(e)?new FormData(e):e),iX.getAdapter=iG,iX.HttpStatusCode=iJ,iX.default=iX;class iQ{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:ad`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/datapoint/${e}/${t}`,data:o,options:n})}}class iZ{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:ad`console/register`,data:e,options:t})}}class i0{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:ad`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:ad`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class i1{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:ad`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:ad`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:ad`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:ad`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:ad`map/upload`,queryParams:e,options:t})}}class i2{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:ad`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:ad`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:ad`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:ad`syslog/event`,queryParams:e,options:t})}}class i3{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:ad`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:ad`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:ad`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ad`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:ad`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:ad`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ad`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:ad`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`rules/${e}`,data:t,options:o})}}class i5{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:ad`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:ad`info`,options:e})}}class i4{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:ad`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:ad`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:ad`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:ad`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:ad`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:ad`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:ad`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:ad`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`user/${e}/${t}`,options:o})}}class i6{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:ad`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:ad`flow/${e}`,options:t})}}class i8{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:ad`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:ad`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:ad`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:ad`provisioning/${e}`,data:t,options:o})}}class i9{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:ad`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:ad`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:ad`configuration/manager/image/${e}`,options:t})}}class i7{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:ad`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:ad`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:ad`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:ad`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:ad`notification/${e}/delivered`,queryParams:t,options:o})}}class ae{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:ad`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:ad`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:ad`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:ad`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:ad`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:ad`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:ad`alarm/${e}/assets`,queryParams:t,options:o})}}class at{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:ad`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:ad`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ad`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:ad`dashboard/${e}/${t}`,options:o})}}class ao{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:ad`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:ad`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:ad`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:ad`model/valueDescriptors`,queryParams:e,options:t})}}class an{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:ad`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class ar{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:ad`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:ad`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:ad`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`realm/${e}`,data:t,options:o})}}class ai{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:ad`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:ad`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:ad`apps/info`,options:e})}}class aa{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:ad`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:ad`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:ad`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:ad`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:ad`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:ad`service/${e}/${t}`,options:o})}}class ac{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:ad`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:ad`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:ad`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:ad`gateway/status/${e}`,options:t})}}class as{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/predicted/${e}/${t}`,data:o,options:n})}}class al{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ad`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:ad`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:ad`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:ad`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:ad`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:ad`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:ad`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:ad`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:ad`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ad`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:ad`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:ad`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:ad`asset/${e}/child`,queryParams:t,options:o})}}function ad(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class af{constructor(e,t=iX.create()){this._assetDatapointResource=new am(e,t),this._consoleResource=new ab(e,t),this._gatewayServiceResource=new ah(e,t),this._mapResource=new ap(e,t),this._syslogResource=new aF(e,t),this._rulesResource=new ag(e,t),this._statusResource=new av(e,t),this._userResource=new ay(e,t),this._flowResource=new aE(e,t),this._provisioningResource=new a_(e,t),this._configurationResource=new aw(e,t),this._notificationResource=new aA(e,t),this._alarmResource=new ak(e,t),this._dashboardResource=new aC(e,t),this._assetModelResource=new aD(e,t),this._agentResource=new aS(e,t),this._realmResource=new ax(e,t),this._appResource=new aO(e,t),this._externalServiceResource=new aT(e,t),this._gatewayClientResource=new aB(e,t),this._assetPredictedDatapointResource=new aR(e,t),this._assetResource=new aN(e,t),this._assetResource=new aN(e,t)}get AssetDatapointResource(){return this._assetDatapointResource}get ConsoleResource(){return this._consoleResource}get GatewayServiceResource(){return this._gatewayServiceResource}get MapResource(){return this._mapResource}get SyslogResource(){return this._syslogResource}get RulesResource(){return this._rulesResource}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get FlowResource(){return this._flowResource}get ProvisioningResource(){return this._provisioningResource}get ConfigurationResource(){return this._configurationResource}get NotificationResource(){return this._notificationResource}get AlarmResource(){return this._alarmResource}get DashboardResource(){return this._dashboardResource}get AssetModelResource(){return this._assetModelResource}get AgentResource(){return this._agentResource}get RealmResource(){return this._realmResource}get AppResource(){return this._appResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AssetResource(){return this._assetResource}}class au{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class am extends iQ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ab extends iZ{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ah extends i0{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ap extends i1{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aF extends i2{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ag extends i3{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class av extends i5{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ay extends i4{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aE extends i6{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class a_ extends i8{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aw extends i9{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aA extends i7{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ak extends ae{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aC extends at{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aD extends ao{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aS extends an{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class ax extends ar{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aO extends ai{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aT extends aa{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aB extends ac{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aR extends as{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}class aN extends al{constructor(e,t=iX.create()){t.defaults.baseURL=e,super(new au(t))}}var aI=o(8183),aP=o.n(aI);iX.isAxiosError;let aL=new class{get api(){return this._client}constructor(){this._axiosInstance=iX.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>aP().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new af(e,this._axiosInstance)}};var aM=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,c)}s((n=n.apply(e,t||[])).next())})};(eE=tx||(tx={})).DISCONNECTED="DISCONNECTED",eE.CONNECTED="CONNECTED",eE.CONNECTING="CONNECTING";let aU="SUBSCRIBED:",aj="UNAUTHORIZED:",a$="TRIGGERED:",aG="EVENT:";class aq{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tx.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let o=e.indexOf(t);o>=0&&e.splice(o,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tx.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tx.CONNECTING),this._connectingDeferred=new nz,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aH.MIN_RECONNECT_DELAY,this._onStatusChanged(tx.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tx.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nz};return null!=this._pendingSubscription||this._status!==tx.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return aM(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tx.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tx.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aq._subscriptionCounter++;if(!this._assetEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===cp.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{o({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,o){return aM(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,a="AttributeEvent"+aq._subscriptionCounter++;if(!this._attributeEventPromise){let e;cp.authenticated||(e={filterType:"asset",realm:cp.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let c=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===cp.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(a,c),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&c({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tx.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let o=this._subscriptionMap.get(e);o&&o.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tx.CONNECTED&&this._onStatusChanged(tx.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tx.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<aH.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aH.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aq.MIN_RECONNECT_DELAY=0,aq.MAX_RECONNECT_DELAY=3e4,aq._subscriptionCounter=0;class aH extends aq{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+cp.config.realm;return this._connectDeferred=new nz,(cp.authenticated?cp.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(aU)){let e=JSON.parse(t.substring(aU.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(aj)){let e=JSON.parse(t.substring(aj.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(a$)){let e=JSON.parse(t.substring(a$.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aG)){let e=JSON.parse(t.substring(aG.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new nz,e.subscriptionId||(e.subscriptionId=aH._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aG+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new nz;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aG+JSON.stringify(e)),t.promise}}aH._subscriptionCounter=1;let az=["__proto__","constructor","prototype"];function aW(e){return!("string"!=typeof e||0===e.length||e.length>128||az.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aV(e){return!(!aW(e)||e.indexOf("/")>-1)}let aY={lng:aV,ns:function(e){return aW(e)}};function aK(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aJ(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aX=/\{\{(.+?)\}\}/g;function aQ(e,t){let o=!1,n=e.replace(aX,(e,n)=>{let r=n.trim();if(az.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aY[r]||aV,c=String(i).split("+");for(let t of c)if(!a(t))return o=!0,e;return c.join("+")});return o?null:n}let aZ="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:aZ&&"function"==typeof aZ.fetch&&(t=aZ.fetch);let a0=aJ()&&aZ?aZ.XMLHttpRequest:void 0,a1="function"==typeof ActiveXObject&&aZ?aZ.ActiveXObject:void 0,a2=["__proto__","constructor","prototype"],a3=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))a2.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},a5=(e,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let t=r(e,o);if(t instanceof Promise)return void t.then(i).catch(n)}"function"==typeof fetch?fetch(e,o).then(i).catch(n):t(e,o).then(i).catch(n)},a4=(e,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),t&&0!==o.indexOf("file:")){var i=o,a=n,c=r;e.queryStringParams&&(i=a3(i,e.queryStringParams));let t={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let s="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:s},d="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{a5(i,l,c,d)}catch(t){if(!s||0===Object.keys(s).length||!t.message||0>t.message.indexOf("not implemented"))return c(t);try{Object.keys(s).forEach(e=>{delete l[e]}),a5(i,l,c,d),e._omitFetchOptions=!0}catch(e){c(e)}}return}if(aJ()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=a3("",l).slice(1)),e.queryStringParams&&(s=a3(s,e.queryStringParams));try{let t=a0?new a0:new a1("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",s,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let o=e.customHeaders;if(o="function"==typeof o?o():o)for(let e of Object.keys(o))a2.indexOf(e)>-1||t.setRequestHeader(e,o[e]);t.onreadystatechange=()=>{t.readyState>3&&d(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var a6=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:a4,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=o,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,r){var i,a;let c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(e,o)),(c=(a=i=c)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aQ(i,{lng:e.join("+"),ns:o.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aK).join(", ")+"] namespaces=["+o.map(aK).join(", ")+"]"),!1);this.loadUrl(a,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=aK(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,c;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+aK(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){c="failed parsing "+i+" to json"}if(c)return t(c,!1);t(null,a)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),a=0,c=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=aQ(n,{lng:o,ns:t});if(null==l){a+=1,r&&a===e.length&&r(c,s);return}this.options.request(this.options,l,i,(t,o)=>{a+=1,c.push(t),s.push(o),a===e.length&&"function"==typeof r&&r(c,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};a6.type="backend";let a8=e=>(...t)=>({_$litDirective$:e,values:t});class a9{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a7 extends a9{constructor(e){if(super(e),this.it=ov,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ov||null==e)return this._t=void 0,this.it=e;if(e===og)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a7.directiveName="unsafeHTML",a7.resultType=1,a8(a7);class ce extends a7{}ce.directiveName="unsafeSVG",ce.resultType=2;let ct=a8(ce),co={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 cn=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};class cr extends CustomEvent{constructor(){super(cr.NAME,{bubbles:!0,composed:!0})}}cr.NAME="or-iconset-added";let ci=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cr)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return oF``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):oF``}},ca=class extends oM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tz`
|
|
11
11
|
:host {
|
|
12
12
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
13
13
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-services",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0-snapshot.20260903081447",
|
|
4
4
|
"description": "OpenRemote services related UI components",
|
|
5
5
|
"customElements": "custom-elements.json",
|
|
6
6
|
"main": "dist/umd/index.bundle.js",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"author": "OpenRemote",
|
|
22
22
|
"license": "AGPL-3.0-or-later",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@openremote/core": "1.
|
|
25
|
-
"@openremote/model": "1.
|
|
26
|
-
"@openremote/or-components": "1.
|
|
27
|
-
"@openremote/or-element": "1.
|
|
28
|
-
"@openremote/or-icon": "1.
|
|
29
|
-
"@openremote/or-translate": "1.
|
|
30
|
-
"@openremote/or-tree-menu": "1.
|
|
24
|
+
"@openremote/core": "1.31.0-snapshot.20260903081447",
|
|
25
|
+
"@openremote/model": "1.31.0-snapshot.20260903081447",
|
|
26
|
+
"@openremote/or-components": "1.31.0-snapshot.20260903081447",
|
|
27
|
+
"@openremote/or-element": "1.31.0-snapshot.20260903081447",
|
|
28
|
+
"@openremote/or-icon": "1.31.0-snapshot.20260903081447",
|
|
29
|
+
"@openremote/or-translate": "1.31.0-snapshot.20260903081447",
|
|
30
|
+
"@openremote/or-tree-menu": "1.31.0-snapshot.20260903081447",
|
|
31
31
|
"lit": "^3.3.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@openremote/util": "1.
|
|
34
|
+
"@openremote/util": "1.31.0-snapshot.20260903081447"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|