openc3-cosmos-tool-cmdtlmserver 5.15.2 → 5.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/js/328.js +1 -1
- data/tools/cmdtlmserver/js/328.js.map +1 -1
- data/tools/cmdtlmserver/js/348.js +1 -1
- data/tools/cmdtlmserver/js/348.js.map +1 -1
- data/tools/cmdtlmserver/js/{206.js → 467.js} +2 -2
- data/tools/cmdtlmserver/js/467.js.map +1 -0
- data/tools/cmdtlmserver/js/904.js +1 -1
- data/tools/cmdtlmserver/js/950.js +1 -1
- data/tools/cmdtlmserver/js/950.js.map +1 -1
- data/tools/cmdtlmserver/js/970.js +2 -0
- data/tools/cmdtlmserver/js/970.js.map +1 -0
- data/tools/cmdtlmserver/js/app.js +1 -1
- data/tools/cmdtlmserver/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/cmdtlmserver/js/206.js.map +0 -1
- data/tools/cmdtlmserver/js/672.js +0 -2
- data/tools/cmdtlmserver/js/672.js.map +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3-cosmos-tool-cmdtlmserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-04
|
12
|
+
date: 2024-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: " This plugin adds the OpenC3 COSMOS CmdTlmServer Tool\n"
|
15
15
|
email:
|
@@ -26,8 +26,6 @@ files:
|
|
26
26
|
- tools/cmdtlmserver/index.html
|
27
27
|
- tools/cmdtlmserver/js/195.js
|
28
28
|
- tools/cmdtlmserver/js/195.js.map
|
29
|
-
- tools/cmdtlmserver/js/206.js
|
30
|
-
- tools/cmdtlmserver/js/206.js.map
|
31
29
|
- tools/cmdtlmserver/js/229.js
|
32
30
|
- tools/cmdtlmserver/js/229.js.map
|
33
31
|
- tools/cmdtlmserver/js/272.js
|
@@ -42,14 +40,16 @@ files:
|
|
42
40
|
- tools/cmdtlmserver/js/328.js.map
|
43
41
|
- tools/cmdtlmserver/js/348.js
|
44
42
|
- tools/cmdtlmserver/js/348.js.map
|
45
|
-
- tools/cmdtlmserver/js/
|
46
|
-
- tools/cmdtlmserver/js/
|
43
|
+
- tools/cmdtlmserver/js/467.js
|
44
|
+
- tools/cmdtlmserver/js/467.js.map
|
47
45
|
- tools/cmdtlmserver/js/739.js
|
48
46
|
- tools/cmdtlmserver/js/739.js.map
|
49
47
|
- tools/cmdtlmserver/js/904.js
|
50
48
|
- tools/cmdtlmserver/js/904.js.map
|
51
49
|
- tools/cmdtlmserver/js/950.js
|
52
50
|
- tools/cmdtlmserver/js/950.js.map
|
51
|
+
- tools/cmdtlmserver/js/970.js
|
52
|
+
- tools/cmdtlmserver/js/970.js.map
|
53
53
|
- tools/cmdtlmserver/js/app.js
|
54
54
|
- tools/cmdtlmserver/js/app.js.map
|
55
55
|
homepage: https://github.com/OpenC3/cosmos
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/206.js","mappings":"oLAAA,IAAIA,EAAW,CACbC,OAAQC,KAAKC,QACbC,UAAWF,KAAKE,WAGdH,EAAS,CACX,GAAAI,IAAOC,GACDC,KAAKC,UACPF,EAASG,KAAKC,KAAKC,OACnBX,EAASC,OAAOI,IAAI,mBAAoBC,GAE5C,GAGF,MAAMK,EAAM,KAAM,IAAKD,MAAME,UAEvBC,EAAeC,IAASH,IAAQG,GAAQ,IAE9C,MAAMC,EACJ,WAAAC,CAAYC,GACVV,KAAKW,oBAAsBX,KAAKW,oBAAoBC,KAAKZ,MACzDA,KAAKU,WAAaA,EAClBV,KAAKa,kBAAoB,CAC3B,CACA,KAAAC,GACOd,KAAKe,cACRf,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,EAC1DG,EAAiBD,EAAWJ,EAC5BI,EAAWA,EAAWH,EAAYJ,EAAOxO,QAAU,EAAIC,EAAQuO,EAAQC,EAAcM,EAAWH,GAKlG,OAHII,EAAiBR,EAAOxO,SAC1ByI,GAAUuF,EAAYQ,EAAQQ,IAEzBvG,CACT,G","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/@rails/actioncable/app/assets/javascripts/actioncable.esm.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/date-fns/esm/constants/index.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/date-fns/esm/parseISO/index.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/core-js/internals/is-regexp.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/core-js/internals/regexp-get-flags.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/core-js/modules/es.string.replace-all.js"],"sourcesContent":["var adapters = {\n logger: self.console,\n WebSocket: self.WebSocket\n};\n\nvar logger = {\n log(...messages) {\n if (this.enabled) {\n messages.push(Date.now());\n adapters.logger.log(\"[ActionCable]\", ...messages);\n }\n }\n};\n\nconst now = () => (new Date).getTime();\n\nconst secondsSince = time => (now() - time) / 1e3;\n\nclass ConnectionMonitor {\n constructor(connection) {\n this.visibilityDidChange = this.visibilityDidChange.bind(this);\n this.connection = connection;\n this.reconnectAttempts = 0;\n }\n start() {\n if (!this.isRunning()) {\n this.startedAt = now();\n delete this.stoppedAt;\n this.startPolling();\n addEventListener(\"visibilitychange\", this.visibilityDidChange);\n logger.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`);\n }\n }\n stop() {\n if (this.isRunning()) {\n this.stoppedAt = now();\n this.stopPolling();\n removeEventListener(\"visibilitychange\", this.visibilityDidChange);\n logger.log(\"ConnectionMonitor stopped\");\n }\n }\n isRunning() {\n return this.startedAt && !this.stoppedAt;\n }\n recordPing() {\n this.pingedAt = now();\n }\n recordConnect() {\n this.reconnectAttempts = 0;\n this.recordPing();\n delete this.disconnectedAt;\n logger.log(\"ConnectionMonitor recorded connect\");\n }\n recordDisconnect() {\n this.disconnectedAt = now();\n logger.log(\"ConnectionMonitor recorded disconnect\");\n }\n startPolling() {\n this.stopPolling();\n this.poll();\n }\n stopPolling() {\n clearTimeout(this.pollTimeout);\n }\n poll() {\n this.pollTimeout = setTimeout((() => {\n this.reconnectIfStale();\n this.poll();\n }), this.getPollInterval());\n }\n getPollInterval() {\n const {staleThreshold: staleThreshold, reconnectionBackoffRate: reconnectionBackoffRate} = this.constructor;\n const backoff = Math.pow(1 + reconnectionBackoffRate, Math.min(this.reconnectAttempts, 10));\n const jitterMax = this.reconnectAttempts === 0 ? 1 : reconnectionBackoffRate;\n const jitter = jitterMax * Math.random();\n return staleThreshold * 1e3 * backoff * (1 + jitter);\n }\n reconnectIfStale() {\n if (this.connectionIsStale()) {\n logger.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${secondsSince(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`);\n this.reconnectAttempts++;\n if (this.disconnectedRecently()) {\n logger.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${secondsSince(this.disconnectedAt)} s`);\n } else {\n logger.log(\"ConnectionMonitor reopening\");\n this.connection.reopen();\n }\n }\n }\n get refreshedAt() {\n return this.pingedAt ? this.pingedAt : this.startedAt;\n }\n connectionIsStale() {\n return secondsSince(this.refreshedAt) > this.constructor.staleThreshold;\n }\n disconnectedRecently() {\n return this.disconnectedAt && secondsSince(this.disconnectedAt) < this.constructor.staleThreshold;\n }\n visibilityDidChange() {\n if (document.visibilityState === \"visible\") {\n setTimeout((() => {\n if (this.connectionIsStale() || !this.connection.isOpen()) {\n logger.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`);\n this.connection.reopen();\n }\n }), 200);\n }\n }\n}\n\nConnectionMonitor.staleThreshold = 6;\n\nConnectionMonitor.reconnectionBackoffRate = .15;\n\nvar INTERNAL = {\n message_types: {\n welcome: \"welcome\",\n disconnect: \"disconnect\",\n ping: \"ping\",\n confirmation: \"confirm_subscription\",\n rejection: \"reject_subscription\"\n },\n disconnect_reasons: {\n unauthorized: \"unauthorized\",\n invalid_request: \"invalid_request\",\n server_restart: \"server_restart\",\n remote: \"remote\"\n },\n default_mount_path: \"/cable\",\n protocols: [ \"actioncable-v1-json\", \"actioncable-unsupported\" ]\n};\n\nconst {message_types: message_types, protocols: protocols} = INTERNAL;\n\nconst supportedProtocols = protocols.slice(0, protocols.length - 1);\n\nconst indexOf = [].indexOf;\n\nclass Connection {\n constructor(consumer) {\n this.open = this.open.bind(this);\n this.consumer = consumer;\n this.subscriptions = this.consumer.subscriptions;\n this.monitor = new ConnectionMonitor(this);\n this.disconnected = true;\n }\n send(data) {\n if (this.isOpen()) {\n this.webSocket.send(JSON.stringify(data));\n return true;\n } else {\n return false;\n }\n }\n open() {\n if (this.isActive()) {\n logger.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`);\n return false;\n } else {\n const socketProtocols = [ ...protocols, ...this.consumer.subprotocols || [] ];\n logger.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${socketProtocols}`);\n if (this.webSocket) {\n this.uninstallEventHandlers();\n }\n this.webSocket = new adapters.WebSocket(this.consumer.url, socketProtocols);\n this.installEventHandlers();\n this.monitor.start();\n return true;\n }\n }\n close({allowReconnect: allowReconnect} = {\n allowReconnect: true\n }) {\n if (!allowReconnect) {\n this.monitor.stop();\n }\n if (this.isOpen()) {\n return this.webSocket.close();\n }\n }\n reopen() {\n logger.log(`Reopening WebSocket, current state is ${this.getState()}`);\n if (this.isActive()) {\n try {\n return this.close();\n } catch (error) {\n logger.log(\"Failed to reopen WebSocket\", error);\n } finally {\n logger.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`);\n setTimeout(this.open, this.constructor.reopenDelay);\n }\n } else {\n return this.open();\n }\n }\n getProtocol() {\n if (this.webSocket) {\n return this.webSocket.protocol;\n }\n }\n isOpen() {\n return this.isState(\"open\");\n }\n isActive() {\n return this.isState(\"open\", \"connecting\");\n }\n triedToReconnect() {\n return this.monitor.reconnectAttempts > 0;\n }\n isProtocolSupported() {\n return indexOf.call(supportedProtocols, this.getProtocol()) >= 0;\n }\n isState(...states) {\n return indexOf.call(states, this.getState()) >= 0;\n }\n getState() {\n if (this.webSocket) {\n for (let state in adapters.WebSocket) {\n if (adapters.WebSocket[state] === this.webSocket.readyState) {\n return state.toLowerCase();\n }\n }\n }\n return null;\n }\n installEventHandlers() {\n for (let eventName in this.events) {\n const handler = this.events[eventName].bind(this);\n this.webSocket[`on${eventName}`] = handler;\n }\n }\n uninstallEventHandlers() {\n for (let eventName in this.events) {\n this.webSocket[`on${eventName}`] = function() {};\n }\n }\n}\n\nConnection.reopenDelay = 500;\n\nConnection.prototype.events = {\n message(event) {\n if (!this.isProtocolSupported()) {\n return;\n }\n const {identifier: identifier, message: message, reason: reason, reconnect: reconnect, type: type} = JSON.parse(event.data);\n switch (type) {\n case message_types.welcome:\n if (this.triedToReconnect()) {\n this.reconnectAttempted = true;\n }\n this.monitor.recordConnect();\n return this.subscriptions.reload();\n\n case message_types.disconnect:\n logger.log(`Disconnecting. Reason: ${reason}`);\n return this.close({\n allowReconnect: reconnect\n });\n\n case message_types.ping:\n return this.monitor.recordPing();\n\n case message_types.confirmation:\n this.subscriptions.confirmSubscription(identifier);\n if (this.reconnectAttempted) {\n this.reconnectAttempted = false;\n return this.subscriptions.notify(identifier, \"connected\", {\n reconnected: true\n });\n } else {\n return this.subscriptions.notify(identifier, \"connected\", {\n reconnected: false\n });\n }\n\n case message_types.rejection:\n return this.subscriptions.reject(identifier);\n\n default:\n return this.subscriptions.notify(identifier, \"received\", message);\n }\n },\n open() {\n logger.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`);\n this.disconnected = false;\n if (!this.isProtocolSupported()) {\n logger.log(\"Protocol is unsupported. Stopping monitor and disconnecting.\");\n return this.close({\n allowReconnect: false\n });\n }\n },\n close(event) {\n logger.log(\"WebSocket onclose event\");\n if (this.disconnected) {\n return;\n }\n this.disconnected = true;\n this.monitor.recordDisconnect();\n return this.subscriptions.notifyAll(\"disconnected\", {\n willAttemptReconnect: this.monitor.isRunning()\n });\n },\n error() {\n logger.log(\"WebSocket onerror event\");\n }\n};\n\nconst extend = function(object, properties) {\n if (properties != null) {\n for (let key in properties) {\n const value = properties[key];\n object[key] = value;\n }\n }\n return object;\n};\n\nclass Subscription {\n constructor(consumer, params = {}, mixin) {\n this.consumer = consumer;\n this.identifier = JSON.stringify(params);\n extend(this, mixin);\n }\n perform(action, data = {}) {\n data.action = action;\n return this.send(data);\n }\n send(data) {\n return this.consumer.send({\n command: \"message\",\n identifier: this.identifier,\n data: JSON.stringify(data)\n });\n }\n unsubscribe() {\n return this.consumer.subscriptions.remove(this);\n }\n}\n\nclass SubscriptionGuarantor {\n constructor(subscriptions) {\n this.subscriptions = subscriptions;\n this.pendingSubscriptions = [];\n }\n guarantee(subscription) {\n if (this.pendingSubscriptions.indexOf(subscription) == -1) {\n logger.log(`SubscriptionGuarantor guaranteeing ${subscription.identifier}`);\n this.pendingSubscriptions.push(subscription);\n } else {\n logger.log(`SubscriptionGuarantor already guaranteeing ${subscription.identifier}`);\n }\n this.startGuaranteeing();\n }\n forget(subscription) {\n logger.log(`SubscriptionGuarantor forgetting ${subscription.identifier}`);\n this.pendingSubscriptions = this.pendingSubscriptions.filter((s => s !== subscription));\n }\n startGuaranteeing() {\n this.stopGuaranteeing();\n this.retrySubscribing();\n }\n stopGuaranteeing() {\n clearTimeout(this.retryTimeout);\n }\n retrySubscribing() {\n this.retryTimeout = setTimeout((() => {\n if (this.subscriptions && typeof this.subscriptions.subscribe === \"function\") {\n this.pendingSubscriptions.map((subscription => {\n logger.log(`SubscriptionGuarantor resubscribing ${subscription.identifier}`);\n this.subscriptions.subscribe(subscription);\n }));\n }\n }), 500);\n }\n}\n\nclass Subscriptions {\n constructor(consumer) {\n this.consumer = consumer;\n this.guarantor = new SubscriptionGuarantor(this);\n this.subscriptions = [];\n }\n create(channelName, mixin) {\n const channel = channelName;\n const params = typeof channel === \"object\" ? channel : {\n channel: channel\n };\n const subscription = new Subscription(this.consumer, params, mixin);\n return this.add(subscription);\n }\n add(subscription) {\n this.subscriptions.push(subscription);\n this.consumer.ensureActiveConnection();\n this.notify(subscription, \"initialized\");\n this.subscribe(subscription);\n return subscription;\n }\n remove(subscription) {\n this.forget(subscription);\n if (!this.findAll(subscription.identifier).length) {\n this.sendCommand(subscription, \"unsubscribe\");\n }\n return subscription;\n }\n reject(identifier) {\n return this.findAll(identifier).map((subscription => {\n this.forget(subscription);\n this.notify(subscription, \"rejected\");\n return subscription;\n }));\n }\n forget(subscription) {\n this.guarantor.forget(subscription);\n this.subscriptions = this.subscriptions.filter((s => s !== subscription));\n return subscription;\n }\n findAll(identifier) {\n return this.subscriptions.filter((s => s.identifier === identifier));\n }\n reload() {\n return this.subscriptions.map((subscription => this.subscribe(subscription)));\n }\n notifyAll(callbackName, ...args) {\n return this.subscriptions.map((subscription => this.notify(subscription, callbackName, ...args)));\n }\n notify(subscription, callbackName, ...args) {\n let subscriptions;\n if (typeof subscription === \"string\") {\n subscriptions = this.findAll(subscription);\n } else {\n subscriptions = [ subscription ];\n }\n return subscriptions.map((subscription => typeof subscription[callbackName] === \"function\" ? subscription[callbackName](...args) : undefined));\n }\n subscribe(subscription) {\n if (this.sendCommand(subscription, \"subscribe\")) {\n this.guarantor.guarantee(subscription);\n }\n }\n confirmSubscription(identifier) {\n logger.log(`Subscription confirmed ${identifier}`);\n this.findAll(identifier).map((subscription => this.guarantor.forget(subscription)));\n }\n sendCommand(subscription, command) {\n const {identifier: identifier} = subscription;\n return this.consumer.send({\n command: command,\n identifier: identifier\n });\n }\n}\n\nclass Consumer {\n constructor(url) {\n this._url = url;\n this.subscriptions = new Subscriptions(this);\n this.connection = new Connection(this);\n this.subprotocols = [];\n }\n get url() {\n return createWebSocketURL(this._url);\n }\n send(data) {\n return this.connection.send(data);\n }\n connect() {\n return this.connection.open();\n }\n disconnect() {\n return this.connection.close({\n allowReconnect: false\n });\n }\n ensureActiveConnection() {\n if (!this.connection.isActive()) {\n return this.connection.open();\n }\n }\n addSubProtocol(subprotocol) {\n this.subprotocols = [ ...this.subprotocols, subprotocol ];\n }\n}\n\nfunction createWebSocketURL(url) {\n if (typeof url === \"function\") {\n url = url();\n }\n if (url && !/^wss?:/i.test(url)) {\n const a = document.createElement(\"a\");\n a.href = url;\n a.href = a.href;\n a.protocol = a.protocol.replace(\"http\", \"ws\");\n return a.href;\n } else {\n return url;\n }\n}\n\nfunction createConsumer(url = getConfig(\"url\") || INTERNAL.default_mount_path) {\n return new Consumer(url);\n}\n\nfunction getConfig(name) {\n const element = document.head.querySelector(`meta[name='action-cable-${name}']`);\n if (element) {\n return element.getAttribute(\"content\");\n }\n}\n\nexport { Connection, ConnectionMonitor, Consumer, INTERNAL, Subscription, SubscriptionGuarantor, Subscriptions, adapters, createConsumer, createWebSocketURL, getConfig, logger };\n","/**\n * Days in 1 week.\n *\n * @name daysInWeek\n * @constant\n * @type {number}\n * @default\n */\nexport var daysInWeek = 7;\n\n/**\n * Days in 1 year\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n *\n * @name daysInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var daysInYear = 365.2425;\n\n/**\n * Maximum allowed time.\n *\n * @name maxTime\n * @constant\n * @type {number}\n * @default\n */\nexport var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * Milliseconds in 1 minute\n *\n * @name millisecondsInMinute\n * @constant\n * @type {number}\n * @default\n */\nexport var millisecondsInMinute = 60000;\n\n/**\n * Milliseconds in 1 hour\n *\n * @name millisecondsInHour\n * @constant\n * @type {number}\n * @default\n */\nexport var millisecondsInHour = 3600000;\n\n/**\n * Milliseconds in 1 second\n *\n * @name millisecondsInSecond\n * @constant\n * @type {number}\n * @default\n */\nexport var millisecondsInSecond = 1000;\n\n/**\n * Minimum allowed time.\n *\n * @name minTime\n * @constant\n * @type {number}\n * @default\n */\nexport var minTime = -maxTime;\n\n/**\n * Minutes in 1 hour\n *\n * @name minutesInHour\n * @constant\n * @type {number}\n * @default\n */\nexport var minutesInHour = 60;\n\n/**\n * Months in 1 quarter\n *\n * @name monthsInQuarter\n * @constant\n * @type {number}\n * @default\n */\nexport var monthsInQuarter = 3;\n\n/**\n * Months in 1 year\n *\n * @name monthsInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var monthsInYear = 12;\n\n/**\n * Quarters in 1 year\n *\n * @name quartersInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var quartersInYear = 4;\n\n/**\n * Seconds in 1 hour\n *\n * @name secondsInHour\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInHour = 3600;\n\n/**\n * Seconds in 1 minute\n *\n * @name secondsInMinute\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInMinute = 60;\n\n/**\n * Seconds in 1 day\n *\n * @name secondsInDay\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInDay = secondsInHour * 24;\n\n/**\n * Seconds in 1 week\n *\n * @name secondsInWeek\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInWeek = secondsInDay * 7;\n\n/**\n * Seconds in 1 year\n *\n * @name secondsInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInYear = secondsInDay * daysInYear;\n\n/**\n * Seconds in 1 month\n *\n * @name secondsInMonth\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInMonth = secondsInYear / 12;\n\n/**\n * Seconds in 1 quarter\n *\n * @name secondsInQuarter\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInQuarter = secondsInMonth * 3;","import { millisecondsInHour, millisecondsInMinute } from \"../constants/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name parseISO\n * @category Common Helpers\n * @summary Parse ISO string\n *\n * @description\n * Parse the given string in ISO 8601 format and return an instance of Date.\n *\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If the argument isn't a string, the function cannot parse the string or\n * the values are invalid, it returns Invalid Date.\n *\n * @param {String} argument - the value to convert\n * @param {Object} [options] - an object with options.\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * const result = parseISO('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * const result = parseISO('+02014101', { additionalDigits: 1 })\n * //=> Fri Apr 11 2014 00:00:00\n */\nexport default function parseISO(argument, options) {\n var _options$additionalDi;\n requiredArgs(1, arguments);\n var additionalDigits = toInteger((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2);\n if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n throw new RangeError('additionalDigits must be 0, 1 or 2');\n }\n if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {\n return new Date(NaN);\n }\n var dateStrings = splitDateString(argument);\n var date;\n if (dateStrings.date) {\n var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n date = parseDate(parseYearResult.restDateString, parseYearResult.year);\n }\n if (!date || isNaN(date.getTime())) {\n return new Date(NaN);\n }\n var timestamp = date.getTime();\n var time = 0;\n var offset;\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n if (isNaN(time)) {\n return new Date(NaN);\n }\n }\n if (dateStrings.timezone) {\n offset = parseTimezone(dateStrings.timezone);\n if (isNaN(offset)) {\n return new Date(NaN);\n }\n } else {\n var dirtyDate = new Date(timestamp + time);\n // js parsed string assuming it's in UTC timezone\n // but we need it to be parsed in our timezone\n // so we use utc values to build date in our timezone.\n // Year values from 0 to 99 map to the years 1900 to 1999\n // so set year explicitly with setFullYear.\n var result = new Date(0);\n result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate());\n result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds());\n return result;\n }\n return new Date(timestamp + time + offset);\n}\nvar patterns = {\n dateTimeDelimiter: /[T ]/,\n timeZoneDelimiter: /[Z ]/i,\n timezone: /([Z+-].*)$/\n};\nvar dateRegex = /^-?(?:(\\d{3})|(\\d{2})(?:-?(\\d{2}))?|W(\\d{2})(?:-?(\\d{1}))?|)$/;\nvar timeRegex = /^(\\d{2}(?:[.,]\\d*)?)(?::?(\\d{2}(?:[.,]\\d*)?))?(?::?(\\d{2}(?:[.,]\\d*)?))?$/;\nvar timezoneRegex = /^([+-])(\\d{2})(?::?(\\d{2}))?$/;\nfunction splitDateString(dateString) {\n var dateStrings = {};\n var array = dateString.split(patterns.dateTimeDelimiter);\n var timeString;\n\n // The regex match should only return at maximum two array elements.\n // [date], [time], or [date, time].\n if (array.length > 2) {\n return dateStrings;\n }\n if (/:/.test(array[0])) {\n timeString = array[0];\n } else {\n dateStrings.date = array[0];\n timeString = array[1];\n if (patterns.timeZoneDelimiter.test(dateStrings.date)) {\n dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];\n timeString = dateString.substr(dateStrings.date.length, dateString.length);\n }\n }\n if (timeString) {\n var token = patterns.timezone.exec(timeString);\n if (token) {\n dateStrings.time = timeString.replace(token[1], '');\n dateStrings.timezone = token[1];\n } else {\n dateStrings.time = timeString;\n }\n }\n return dateStrings;\n}\nfunction parseYear(dateString, additionalDigits) {\n var regex = new RegExp('^(?:(\\\\d{4}|[+-]\\\\d{' + (4 + additionalDigits) + '})|(\\\\d{2}|[+-]\\\\d{' + (2 + additionalDigits) + '})$)');\n var captures = dateString.match(regex);\n // Invalid ISO-formatted year\n if (!captures) return {\n year: NaN,\n restDateString: ''\n };\n var year = captures[1] ? parseInt(captures[1]) : null;\n var century = captures[2] ? parseInt(captures[2]) : null;\n\n // either year or century is null, not both\n return {\n year: century === null ? year : century * 100,\n restDateString: dateString.slice((captures[1] || captures[2]).length)\n };\n}\nfunction parseDate(dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) return new Date(NaN);\n var captures = dateString.match(dateRegex);\n // Invalid ISO-formatted string\n if (!captures) return new Date(NaN);\n var isWeekDate = !!captures[4];\n var dayOfYear = parseDateUnit(captures[1]);\n var month = parseDateUnit(captures[2]) - 1;\n var day = parseDateUnit(captures[3]);\n var week = parseDateUnit(captures[4]);\n var dayOfWeek = parseDateUnit(captures[5]) - 1;\n if (isWeekDate) {\n if (!validateWeekDate(year, week, dayOfWeek)) {\n return new Date(NaN);\n }\n return dayOfISOWeekYear(year, week, dayOfWeek);\n } else {\n var date = new Date(0);\n if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) {\n return new Date(NaN);\n }\n date.setUTCFullYear(year, month, Math.max(dayOfYear, day));\n return date;\n }\n}\nfunction parseDateUnit(value) {\n return value ? parseInt(value) : 1;\n}\nfunction parseTime(timeString) {\n var captures = timeString.match(timeRegex);\n if (!captures) return NaN; // Invalid ISO-formatted time\n\n var hours = parseTimeUnit(captures[1]);\n var minutes = parseTimeUnit(captures[2]);\n var seconds = parseTimeUnit(captures[3]);\n if (!validateTime(hours, minutes, seconds)) {\n return NaN;\n }\n return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000;\n}\nfunction parseTimeUnit(value) {\n return value && parseFloat(value.replace(',', '.')) || 0;\n}\nfunction parseTimezone(timezoneString) {\n if (timezoneString === 'Z') return 0;\n var captures = timezoneString.match(timezoneRegex);\n if (!captures) return 0;\n var sign = captures[1] === '+' ? -1 : 1;\n var hours = parseInt(captures[2]);\n var minutes = captures[3] && parseInt(captures[3]) || 0;\n if (!validateTimezone(hours, minutes)) {\n return NaN;\n }\n return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute);\n}\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n var date = new Date(0);\n date.setUTCFullYear(isoWeekYear, 0, 4);\n var fourthOfJanuaryDay = date.getUTCDay() || 7;\n var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}\n\n// Validation functions\n\n// February is null to handle the leap year (using ||)\nvar daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\nfunction validateDate(year, month, date) {\n return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28));\n}\nfunction validateDayOfYearDate(year, dayOfYear) {\n return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);\n}\nfunction validateWeekDate(_year, week, day) {\n return week >= 1 && week <= 53 && day >= 0 && day <= 6;\n}\nfunction validateTime(hours, minutes, seconds) {\n if (hours === 24) {\n return minutes === 0 && seconds === 0;\n }\n return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25;\n}\nfunction validateTimezone(_hours, minutes) {\n return minutes >= 0 && minutes <= 59;\n}","'use strict';\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar $TypeError = TypeError;\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n var position = 0;\n var endOfLastMatch = 0;\n var result = '';\n if (!isNullOrUndefined(searchValue)) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));\n if (!~indexOf(flags, 'g')) throw new $TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = getMethod(searchValue, REPLACE);\n if (replacer) {\n return call(replacer, searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return replace(toString(O), searchValue, replaceValue);\n }\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = indexOf(string, searchString);\n while (position !== -1) {\n replacement = functionalReplace\n ? toString(replaceValue(searchString, position, string))\n : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n result += stringSlice(string, endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += stringSlice(string, endOfLastMatch);\n }\n return result;\n }\n});\n"],"names":["adapters","logger","self","console","WebSocket","log","messages","this","enabled","push","Date","now","getTime","secondsSince","time","ConnectionMonitor","constructor","connection","visibilityDidChange","bind","reconnectAttempts","start","isRunning","startedAt","stoppedAt","startPolling","addEventListener","staleThreshold","stop","stopPolling","removeEventListener","recordPing","pingedAt","recordConnect","disconnectedAt","recordDisconnect","poll","clearTimeout","pollTimeout","setTimeout","reconnectIfStale","getPollInterval","reconnectionBackoffRate","backoff","Math","pow","min","jitterMax","jitter","random","connectionIsStale","refreshedAt","disconnectedRecently","reopen","document","visibilityState","isOpen","INTERNAL","message_types","welcome","disconnect","ping","confirmation","rejection","disconnect_reasons","unauthorized","invalid_request","server_restart","remote","default_mount_path","protocols","supportedProtocols","slice","length","indexOf","Connection","consumer","open","subscriptions","monitor","disconnected","send","data","webSocket","JSON","stringify","isActive","getState","socketProtocols","subprotocols","uninstallEventHandlers","url","installEventHandlers","close","allowReconnect","error","reopenDelay","getProtocol","protocol","isState","triedToReconnect","isProtocolSupported","call","states","state","readyState","toLowerCase","eventName","events","handler","prototype","message","event","identifier","reason","reconnect","type","parse","reconnectAttempted","reload","confirmSubscription","notify","reconnected","reject","notifyAll","willAttemptReconnect","extend","object","properties","key","value","Subscription","params","mixin","perform","action","command","unsubscribe","remove","SubscriptionGuarantor","pendingSubscriptions","guarantee","subscription","startGuaranteeing","forget","filter","s","stopGuaranteeing","retrySubscribing","retryTimeout","subscribe","map","Subscriptions","guarantor","create","channelName","channel","add","ensureActiveConnection","findAll","sendCommand","callbackName","args","undefined","Consumer","_url","createWebSocketURL","connect","addSubProtocol","subprotocol","test","a","createElement","href","replace","createConsumer","getConfig","name","element","head","querySelector","getAttribute","millisecondsInMinute","millisecondsInHour","parseISO","argument","options","_options$additionalDi","requiredArgs","arguments","additionalDigits","toInteger","RangeError","Object","toString","NaN","date","dateStrings","splitDateString","parseYearResult","parseYear","parseDate","restDateString","year","isNaN","offset","timestamp","parseTime","timezone","dirtyDate","result","setFullYear","getUTCFullYear","getUTCMonth","getUTCDate","setHours","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","parseTimezone","patterns","dateTimeDelimiter","timeZoneDelimiter","dateRegex","timeRegex","timezoneRegex","dateString","timeString","array","split","substr","token","exec","regex","RegExp","captures","match","parseInt","century","isWeekDate","dayOfYear","parseDateUnit","month","day","week","dayOfWeek","validateWeekDate","dayOfISOWeekYear","validateDate","validateDayOfYearDate","setUTCFullYear","max","hours","parseTimeUnit","minutes","seconds","validateTime","parseFloat","timezoneString","sign","validateTimezone","isoWeekYear","fourthOfJanuaryDay","getUTCDay","diff","setUTCDate","daysInMonths","isLeapYearIndex","_year","_hours","isObject","classof","wellKnownSymbol","MATCH","module","exports","it","isRegExp","hasOwn","isPrototypeOf","regExpFlags","RegExpPrototype","R","flags","$","uncurryThis","requireObjectCoercible","isCallable","isNullOrUndefined","getMethod","getRegExpFlags","getSubstitution","IS_PURE","REPLACE","$TypeError","TypeError","stringSlice","target","proto","replaceAll","searchValue","replaceValue","IS_REG_EXP","replacer","string","searchString","functionalReplace","searchLength","advanceBy","replacement","O","position","endOfLastMatch"],"sourceRoot":""}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[672],{1092:(e,t,n)=>{function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})},3733:(e,t,n)=>{function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},6252:(e,t,n)=>{n.d(t,{A:()=>ze});var r=n(8169),a=n(1092);function i(e){return(0,a.A)(1,arguments),e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}function o(e){(0,a.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function s(e){if((0,a.A)(1,arguments),!i(e)&&"number"!==typeof e)return!1;var t=o(e);return!isNaN(Number(t))}var u=n(3733);function l(e,t){(0,a.A)(2,arguments);var n=o(e).getTime(),r=(0,u.A)(t);return new Date(n+r)}function c(e,t){(0,a.A)(2,arguments);var n=(0,u.A)(t);return l(e,-n)}var h=864e5;function f(e){(0,a.A)(1,arguments);var t=o(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/h)+1}function d(e){(0,a.A)(1,arguments);var t=1,n=o(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function g(e){(0,a.A)(1,arguments);var t=o(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=d(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var u=d(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function m(e){(0,a.A)(1,arguments);var t=g(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=d(n);return r}var v=6048e5;function p(e){(0,a.A)(1,arguments);var t=o(e),n=d(t).getTime()-m(t).getTime();return Math.round(n/v)+1}var w={};function b(){return w}function y(e,t){var n,r,i,s,l,c,h,f;(0,a.A)(1,arguments);var d=b(),g=(0,u.A)(null!==(n=null!==(r=null!==(i=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==r?r:null===(h=d.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=o(e),v=m.getUTCDay(),p=(v<g?7:0)+v-g;return m.setUTCDate(m.getUTCDate()-p),m.setUTCHours(0,0,0,0),m}function k(e,t){var n,r,i,s,l,c,h,f;(0,a.A)(1,arguments);var d=o(e),g=d.getUTCFullYear(),m=b(),v=(0,u.A)(null!==(n=null!==(r=null!==(i=null!==(s=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:m.firstWeekContainsDate)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(g+1,0,v),p.setUTCHours(0,0,0,0);var w=y(p,t),k=new Date(0);k.setUTCFullYear(g,0,v),k.setUTCHours(0,0,0,0);var P=y(k,t);return d.getTime()>=w.getTime()?g+1:d.getTime()>=P.getTime()?g:g-1}function P(e,t){var n,r,i,o,s,l,c,h;(0,a.A)(1,arguments);var f=b(),d=(0,u.A)(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(s=t.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==i?i:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),g=k(e,t),m=new Date(0);m.setUTCFullYear(g,0,d),m.setUTCHours(0,0,0,0);var v=y(m,t);return v}var U=6048e5;function S(e,t){(0,a.A)(1,arguments);var n=o(e),r=y(n,t).getTime()-P(n,t).getTime();return Math.round(r/U)+1}function T(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();while(r.length<t)r="0"+r;return n+r}var C={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return T("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):T(n+1,2)},d:function(e,t){return T(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return T(e.getUTCHours()%12||12,t.length)},H:function(e,t){return T(e.getUTCHours(),t.length)},m:function(e,t){return T(e.getUTCMinutes(),t.length)},s:function(e,t){return T(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),a=Math.floor(r*Math.pow(10,n-3));return T(a,t.length)}};const x=C;var M={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},D={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return x.y(e,t)},Y:function(e,t,n,r){var a=k(e,r),i=a>0?a:1-a;if("YY"===t){var o=i%100;return T(o,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):T(i,t.length)},R:function(e,t){var n=g(e);return T(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return T(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return T(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return T(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return x.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return T(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=S(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):T(a,t.length)},I:function(e,t,n){var r=p(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):T(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):x.d(e,t)},D:function(e,t,n){var r=f(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):T(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return T(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return T(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return T(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),a=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?M.noon:0===a?M.midnight:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?M.evening:a>=12?M.afternoon:a>=4?M.morning:M.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return x.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):x.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):T(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):T(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):x.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):x.s(e,t)},S:function(e,t){return x.S(e,t)},X:function(e,t,n,r){var a=r._originalDate||e,i=a.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return R(i);case"XXXX":case"XX":return A(i);case"XXXXX":case"XXX":default:return A(i,":")}},x:function(e,t,n,r){var a=r._originalDate||e,i=a.getTimezoneOffset();switch(t){case"x":return R(i);case"xxxx":case"xx":return A(i);case"xxxxx":case"xxx":default:return A(i,":")}},O:function(e,t,n,r){var a=r._originalDate||e,i=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+L(i,":");case"OOOO":default:return"GMT"+A(i,":")}},z:function(e,t,n,r){var a=r._originalDate||e,i=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+L(i,":");case"zzzz":default:return"GMT"+A(i,":")}},t:function(e,t,n,r){var a=r._originalDate||e,i=Math.floor(a.getTime()/1e3);return T(i,t.length)},T:function(e,t,n,r){var a=r._originalDate||e,i=a.getTime();return T(i,t.length)}};function L(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||"";return n+String(a)+o+T(i,2)}function R(e,t){if(e%60===0){var n=e>0?"-":"+";return n+T(Math.abs(e)/60,2)}return A(e,t)}function A(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=T(Math.floor(a/60),2),o=T(a%60,2);return r+i+n+o}const q=D;var O=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},E=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},H=function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return O(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",O(a,t)).replace("{{time}}",E(i,t))},W={p:E,P:H};const Y=W;function z(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var B=["D","DD"],N=["YY","YYYY"];function j(e){return-1!==B.indexOf(e)}function F(e){return-1!==N.indexOf(e)}function Q(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var X={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},G=function(e,t,n){var r,a=X[e];return r="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const I=G;function _(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var J={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},K={date:_({formats:J,defaultWidth:"full"}),time:_({formats:$,defaultWidth:"full"}),dateTime:_({formats:V,defaultWidth:"full"})};const Z=K;var ee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},te=function(e,t,n,r){return ee[e]};const ne=te;function re(e){return function(t,n){var r,a=null!==n&&void 0!==n&&n.context?String(n.context):"standalone";if("formatting"===a&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return r[l]}}var ae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ie={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},se={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},le={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ce=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},he={ordinalNumber:ce,era:re({values:ae,defaultWidth:"wide"}),quarter:re({values:ie,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:re({values:oe,defaultWidth:"wide"}),day:re({values:se,defaultWidth:"wide"}),dayPeriod:re({values:ue,defaultWidth:"wide",formattingValues:le,defaultFormattingWidth:"wide"})};const fe=he;function de(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o,s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?me(u,(function(e){return e.test(s)})):ge(u,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(l):l,o=n.valueCallback?n.valueCallback(o):o;var c=t.slice(s.length);return{value:o,rest:c}}}function ge(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function me(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function ve(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var pe=/^(\d+)(th|st|nd|rd)?/i,we=/\d+/i,be={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ye={any:[/^b/i,/^(a|c)/i]},ke={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pe={any:[/1/i,/2/i,/3/i,/4/i]},Ue={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Se={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Te={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ce={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Me={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},De={ordinalNumber:ve({matchPattern:pe,parsePattern:we,valueCallback:function(e){return parseInt(e,10)}}),era:de({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),quarter:de({matchPatterns:ke,defaultMatchWidth:"wide",parsePatterns:Pe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:de({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:Se,defaultParseWidth:"any"}),day:de({matchPatterns:Te,defaultMatchWidth:"wide",parsePatterns:Ce,defaultParseWidth:"any"}),dayPeriod:de({matchPatterns:xe,defaultMatchWidth:"any",parsePatterns:Me,defaultParseWidth:"any"})};const Le=De;var Re={code:"en-US",formatDistance:I,formatLong:Z,formatRelative:ne,localize:fe,match:Le,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ae=Re,qe=Ae;var Oe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ee=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,He=/^'([^]*?)'?$/,We=/''/g,Ye=/[a-zA-Z]/;function ze(e,t,n){var r,i,l,h,f,d,g,m,v,p,w,y,k,P,U,S,T,C;(0,a.A)(2,arguments);var x=String(t),M=b(),D=null!==(r=null!==(i=null===n||void 0===n?void 0:n.locale)&&void 0!==i?i:M.locale)&&void 0!==r?r:qe,L=(0,u.A)(null!==(l=null!==(h=null!==(f=null!==(d=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null===n||void 0===n||null===(g=n.locale)||void 0===g||null===(m=g.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:M.firstWeekContainsDate)&&void 0!==h?h:null===(v=M.locale)||void 0===v||null===(p=v.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=(0,u.A)(null!==(w=null!==(y=null!==(k=null!==(P=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==P?P:null===n||void 0===n||null===(U=n.locale)||void 0===U||null===(S=U.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==k?k:M.weekStartsOn)&&void 0!==y?y:null===(T=M.locale)||void 0===T||null===(C=T.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==w?w:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var A=o(e);if(!s(A))throw new RangeError("Invalid time value");var O=z(A),E=c(A,O),H={firstWeekContainsDate:L,weekStartsOn:R,locale:D,_originalDate:A},W=x.match(Ee).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=Y[t];return n(e,D.formatLong)}return e})).join("").match(Oe).map((function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return Be(r);var i=q[a];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!F(r)||Q(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!j(r)||Q(r,t,String(e)),i(E,r,D.localize,H);if(a.match(Ye))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("");return W}function Be(e){var t=e.match(He);return t?t[1].replace(We,"'"):e}},6859:(e,t,n)=>{var r=n(5821),a=n(9944),i=n(3628),o=n(4412),s=n(8146),u=n(866),l=n(9389),c=n(4417),h=n(2350),f=n(9874),d=Array;e.exports=function(e){var t=i(e),n=u(this),g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m;v&&(m=r(m,g>2?arguments[2]:void 0));var p,w,b,y,k,P,U=f(t),S=0;if(!U||this===d&&s(U))for(p=l(t),w=n?new this(p):d(p);p>S;S++)P=v?m(t[S],S):t[S],c(w,S,P);else for(w=n?new this:[],y=h(t,U),k=y.next;!(b=a(k,y)).done;S++)P=v?o(y,m,[b.value,S],!0):b.value,c(w,S,P);return w.length=S,w}},4412:(e,t,n)=>{var r=n(3770),a=n(8500);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){a(e,"throw",o)}}},4417:(e,t,n)=>{var r=n(6893),a=n(4466),i=n(9123);e.exports=function(e,t,n){r?a.f(e,t,i(0,n)):e[t]=n}},8500:(e,t,n)=>{var r=n(9944),a=n(3770),i=n(2913);e.exports=function(e,t,n){var o,s;a(e);try{if(o=i(e,"return"),!o){if("throw"===t)throw n;return n}o=r(o,e)}catch(u){s=!0,o=u}if("throw"===t)throw n;if(s)throw o;return a(o),n}},9456:(e,t,n)=>{var r=n(6893),a=n(6881),i=n(9944),o=n(5234),s=n(7137),u=n(156),l=n(4416),c=n(3628),h=n(7568),f=Object.assign,d=Object.defineProperty,g=a([].concat);e.exports=!f||o((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==a}))?function(e,t){var n=c(e),a=arguments.length,o=1,f=u.f,d=l.f;while(a>o){var m,v=h(arguments[o++]),p=f?g(s(v),f(v)):s(v),w=p.length,b=0;while(w>b)m=p[b++],r&&!i(d,v,m)||(n[m]=v[m])}return n}:f},5268:(e,t,n)=>{var r=n(1488),a=n(6893),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!a)return r[e];var t=i(r,e);return t&&t.value}},6294:(e,t,n)=>{var r=n(6881),a=2147483647,i=36,o=1,s=26,u=38,l=700,c=72,h=128,f="-",d=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=i-o,p=RangeError,w=r(g.exec),b=Math.floor,y=String.fromCharCode,k=r("".charCodeAt),P=r([].join),U=r([].push),S=r("".replace),T=r("".split),C=r("".toLowerCase),x=function(e){var t=[],n=0,r=e.length;while(n<r){var a=k(e,n++);if(a>=55296&&a<=56319&&n<r){var i=k(e,n++);56320===(64512&i)?U(t,((1023&a)<<10)+(1023&i)+65536):(U(t,a),n--)}else U(t,a)}return t},M=function(e){return e+22+75*(e<26)},D=function(e,t,n){var r=0;e=n?b(e/l):e>>1,e+=b(e/t);while(e>v*s>>1)e=b(e/v),r+=i;return b(r+(v+1)*e/(e+u))},L=function(e){var t=[];e=x(e);var n,r,u=e.length,l=h,d=0,g=c;for(n=0;n<e.length;n++)r=e[n],r<128&&U(t,y(r));var v=t.length,w=v;v&&U(t,f);while(w<u){var k=a;for(n=0;n<e.length;n++)r=e[n],r>=l&&r<k&&(k=r);var S=w+1;if(k-l>b((a-d)/S))throw new p(m);for(d+=(k-l)*S,l=k,n=0;n<e.length;n++){if(r=e[n],r<l&&++d>a)throw new p(m);if(r===l){var T=d,C=i;while(1){var L=C<=g?o:C>=g+s?s:C-g;if(T<L)break;var R=T-L,A=i-L;U(t,y(M(L+R%A))),T=b(R/A),C+=i}U(t,y(M(T))),g=D(d,S,w===v),d=0,w++}}d++,l++}return P(t,"")};e.exports=function(e){var t,n,r=[],a=T(S(C(e),g,"."),".");for(t=0;t<a.length;t++)n=a[t],U(r,w(d,n)?"xn--"+L(n):n);return P(r,".")}},6301:(e,t,n)=>{var r=n(5234),a=n(4282),i=n(6893),o=n(1942),s=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),n["delete"]("a",2),n["delete"]("b",void 0),o&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(o||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},9445:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},1011:(e,t,n)=>{var r=n(4212).charAt,a=n(2618),i=n(3086),o=n(3217),s=n(6224),u="String Iterator",l=i.set,c=i.getterFor(u);o(String,"String",(function(e){l(this,{type:u,string:a(e),index:0})}),(function(){var e,t=c(this),n=t.string,a=t.index;return a>=n.length?s(void 0,!0):(e=r(n,a),t.index+=e.length,s(e,!1))}))},1615:(e,t,n)=>{n(3873);var r=n(5613),a=n(1488),i=n(5268),o=n(9944),s=n(6881),u=n(6893),l=n(6301),c=n(7509),h=n(997),f=n(4320),d=n(3754),g=n(9383),m=n(3086),v=n(286),p=n(4188),w=n(4418),b=n(5821),y=n(5438),k=n(3770),P=n(831),U=n(2618),S=n(7065),T=n(9123),C=n(2350),x=n(9874),M=n(6224),D=n(9445),L=n(4282),R=n(9295),A=L("iterator"),q="URLSearchParams",O=q+"Iterator",E=m.set,H=m.getterFor(q),W=m.getterFor(O),Y=i("fetch"),z=i("Request"),B=i("Headers"),N=z&&z.prototype,j=B&&B.prototype,F=a.RegExp,Q=a.TypeError,X=a.decodeURIComponent,G=a.encodeURIComponent,I=s("".charAt),_=s([].join),J=s([].push),$=s("".replace),V=s([].shift),K=s([].splice),Z=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=F("((?:%[\\da-f]{2}){"+e+"})","gi"))},ae=function(e){try{return X(e)}catch(t){return e}},ie=function(e){var t=$(e,te," "),n=4;try{return X(t)}catch(r){while(n)t=$(t,re(n--),ae);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return se[e]},le=function(e){return $(G(e),oe,ue)},ce=g((function(e,t){E(this,{type:O,target:H(e).entries,index:0,kind:t})}),q,(function(){var e=W(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,M(void 0,!0);var r=t[n];switch(e.kind){case"keys":return M(r.key,!1);case"values":return M(r.value,!1)}return M([r.key,r.value],!1)}),!0),he=function(e){this.entries=[],this.url=null,void 0!==e&&(P(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===I(e,0)?ee(e,1):e:U(e)))};he.prototype={type:q,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,a,i,s,u,l=this.entries,c=x(e);if(c){t=C(e,c),n=t.next;while(!(r=o(n,t)).done){if(a=C(k(r.value)),i=a.next,(s=o(i,a)).done||(u=o(i,a)).done||!o(i,a).done)throw new Q("Expected sequence with length 2");J(l,{key:U(s.value),value:U(u.value)})}}else for(var h in e)w(e,h)&&J(l,{key:h,value:U(e[h])})},parseQuery:function(e){if(e){var t,n,r=this.entries,a=Z(e,"&"),i=0;while(i<a.length)t=a[i++],t.length&&(n=Z(t,"="),J(r,{key:ie(V(n)),value:ie(_(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],J(n,le(e.key)+"="+le(e.value));return _(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){v(this,de);var e=arguments.length>0?arguments[0]:void 0,t=E(this,new he(e));u||(this.size=t.entries.length)},de=fe.prototype;if(f(de,{append:function(e,t){var n=H(this);D(arguments.length,2),J(n.entries,{key:U(e),value:U(t)}),u||this.length++,n.updateURL()},delete:function(e){var t=H(this),n=D(arguments.length,1),r=t.entries,a=U(e),i=n<2?void 0:arguments[1],o=void 0===i?i:U(i),s=0;while(s<r.length){var l=r[s];if(l.key!==a||void 0!==o&&l.value!==o)s++;else if(K(r,s,1),void 0!==o)break}u||(this.size=r.length),t.updateURL()},get:function(e){var t=H(this).entries;D(arguments.length,1);for(var n=U(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=H(this).entries;D(arguments.length,1);for(var n=U(e),r=[],a=0;a<t.length;a++)t[a].key===n&&J(r,t[a].value);return r},has:function(e){var t=H(this).entries,n=D(arguments.length,1),r=U(e),a=n<2?void 0:arguments[1],i=void 0===a?a:U(a),o=0;while(o<t.length){var s=t[o++];if(s.key===r&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var n=H(this);D(arguments.length,1);for(var r,a=n.entries,i=!1,o=U(e),s=U(t),l=0;l<a.length;l++)r=a[l],r.key===o&&(i?K(a,l--,1):(i=!0,r.value=s));i||J(a,{key:o,value:s}),u||(this.size=a.length),n.updateURL()},sort:function(){var e=H(this);R(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=H(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),a=0;while(a<n.length)t=n[a++],r(t.value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(de,A,de.entries,{name:"entries"}),c(de,"toString",(function(){return H(this).serialize()}),{enumerable:!0}),u&&h(de,"size",{get:function(){return H(this).entries.length},configurable:!0,enumerable:!0}),d(fe,q),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:fe}),!l&&p(B)){var ge=s(j.has),me=s(j.set),ve=function(e){if(P(e)){var t,n=e.body;if(y(n)===q)return t=e.headers?new B(e.headers):new B,ge(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:T(0,U(n)),headers:T(0,t)})}return e};if(p(Y)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Y(e,arguments.length>1?ve(arguments[1]):{})}}),p(z)){var pe=function(e){return v(this,N),new z(e,arguments.length>1?ve(arguments[1]):{})};N.constructor=pe,pe.prototype=N,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pe})}}e.exports={URLSearchParams:fe,getState:H}},1412:(e,t,n)=>{var r=n(7509),a=n(6881),i=n(2618),o=n(9445),s=URLSearchParams,u=s.prototype,l=a(u.append),c=a(u["delete"]),h=a(u.forEach),f=a([].push),d=new s("a=1&a=2&b=3");d["delete"]("a",1),d["delete"]("b",void 0),d+""!=="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var r=[];h(this,(function(e,t){f(r,{key:t,value:e})})),o(t,1);var a,s=i(e),u=i(n),d=0,g=0,m=!1,v=r.length;while(d<v)a=r[d++],m||a.key===s?(m=!0,c(this,a.key)):g++;while(g<v)a=r[g++],a.key===s&&a.value===u||l(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},1883:(e,t,n)=>{var r=n(7509),a=n(6881),i=n(2618),o=n(9445),s=URLSearchParams,u=s.prototype,l=a(u.getAll),c=a(u.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var r=l(this,e);o(t,1);var a=i(n),s=0;while(s<r.length)if(r[s++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},4397:(e,t,n)=>{n(1615)},7905:(e,t,n)=>{var r=n(6893),a=n(6881),i=n(997),o=URLSearchParams.prototype,s=a(o.forEach);r&&!("size"in o)&&i(o,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},495:(e,t,n)=>{n(1011);var r,a=n(5613),i=n(6893),o=n(6301),s=n(1488),u=n(5821),l=n(6881),c=n(7509),h=n(997),f=n(286),d=n(4418),g=n(9456),m=n(6859),v=n(7825),p=n(4212).codeAt,w=n(6294),b=n(2618),y=n(3754),k=n(9445),P=n(1615),U=n(3086),S=U.set,T=U.getterFor("URL"),C=P.URLSearchParams,x=P.getState,M=s.URL,D=s.TypeError,L=s.parseInt,R=Math.floor,A=Math.pow,q=l("".charAt),O=l(/./.exec),E=l([].join),H=l(1..toString),W=l([].pop),Y=l([].push),z=l("".replace),B=l([].shift),N=l("".split),j=l("".slice),F=l("".toLowerCase),Q=l([].unshift),X="Invalid authority",G="Invalid scheme",I="Invalid host",_="Invalid port",J=/[a-z]/i,$=/[\d+-.a-z]/i,V=/\d/,K=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ae=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,se=function(e){var t,n,r,a,i,o,s,u=N(e,".");if(u.length&&""===u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(n=[],r=0;r<t;r++){if(a=u[r],""===a)return e;if(i=10,a.length>1&&"0"===q(a,0)&&(i=O(K,a)?16:8,a=j(a,8===i?1:2)),""===a)o=0;else{if(!O(10===i?ee:8===i?Z:te,a))return e;o=L(a,i)}Y(n,o)}for(r=0;r<t;r++)if(o=n[r],r===t-1){if(o>=A(256,5-t))return null}else if(o>255)return null;for(s=W(n),r=0;r<n.length;r++)s+=n[r]*A(256,3-r);return s},ue=function(e){var t,n,r,a,i,o,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,h=0,f=function(){return q(e,h)};if(":"===f()){if(":"!==q(e,1))return;h+=2,l++,c=l}while(f()){if(8===l)return;if(":"!==f()){t=n=0;while(n<4&&O(te,f()))t=16*t+L(f(),16),h++,n++;if("."===f()){if(0===n)return;if(h-=n,l>6)return;r=0;while(f()){if(a=null,r>0){if(!("."===f()&&r<4))return;h++}if(!O(V,f()))return;while(O(V,f())){if(i=L(f(),10),null===a)a=i;else{if(0===a)return;a=10*a+i}if(a>255)return;h++}u[l]=256*u[l]+a,r++,2!==r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;u[l++]=t}else{if(null!==c)return;h++,l++,c=l}}if(null!==c){o=l-c,l=7;while(0!==l&&o>0)s=u[l],u[l--]=u[c+o-1],u[c+--o]=s}else if(8!==l)return;return u},le=function(e){for(var t=null,n=1,r=null,a=0,i=0;i<8;i++)0!==e[i]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=i),++a);return a>n&&(t=r,n=a),t},ce=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)Q(t,e%256),e=R(e/256);return E(t,".")}if("object"==typeof e){for(t="",r=le(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=H(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},he={},fe=g({},he,{" ":1,'"':1,"<":1,">":1,"`":1}),de=g({},fe,{"#":1,"?":1,"{":1,"}":1}),ge=g({},de,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2===e.length&&O(J,q(e,0))&&(":"===(n=q(e,1))||!t&&"|"===n)},we=function(e){var t;return e.length>1&&pe(j(e,0,2))&&(2===e.length||"/"===(t=q(e,2))||"\\"===t||"?"===t||"#"===t)},be=function(e){return"."===e||"%2e"===F(e)},ye=function(e){return e=F(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ke={},Pe={},Ue={},Se={},Te={},Ce={},xe={},Me={},De={},Le={},Re={},Ae={},qe={},Oe={},Ee={},He={},We={},Ye={},ze={},Be={},Ne={},je=function(e,t,n){var r,a,i,o=b(e);if(t){if(a=this.parse(o),a)throw new D(a);this.searchParams=null}else{if(void 0!==n&&(r=new je(n,!0)),a=this.parse(o,null,r),a)throw new D(a);i=x(new C),i.bindURL(this),this.searchParams=i}};je.prototype={type:"URL",parse:function(e,t,n){var a,i,o,s,u=this,l=t||ke,c=0,h="",f=!1,g=!1,p=!1;e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=z(e,ae,""),e=z(e,ie,"$1")),e=z(e,oe,""),a=m(e);while(c<=a.length){switch(i=a[c],l){case ke:if(!i||!O(J,i)){if(t)return G;l=Ue;continue}h+=F(i),l=Pe;break;case Pe:if(i&&(O($,i)||"+"===i||"-"===i||"."===i))h+=F(i);else{if(":"!==i){if(t)return G;h="",l=Ue,c=0;continue}if(t&&(u.isSpecial()!==d(ve,h)||"file"===h&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&ve[u.scheme]===u.port&&(u.port=null));h="","file"===u.scheme?l=Oe:u.isSpecial()&&n&&n.scheme===u.scheme?l=Se:u.isSpecial()?l=Me:"/"===a[c+1]?(l=Te,c++):(u.cannotBeABaseURL=!0,Y(u.path,""),l=ze)}break;case Ue:if(!n||n.cannotBeABaseURL&&"#"!==i)return G;if(n.cannotBeABaseURL&&"#"===i){u.scheme=n.scheme,u.path=v(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,l=Ne;break}l="file"===n.scheme?Oe:Ce;continue;case Se:if("/"!==i||"/"!==a[c+1]){l=Ce;continue}l=De,c++;break;case Te:if("/"===i){l=Le;break}l=Ye;continue;case Ce:if(u.scheme=n.scheme,i===r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query=n.query;else if("/"===i||"\\"===i&&u.isSpecial())l=xe;else if("?"===i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query="",l=Be;else{if("#"!==i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.path.length--,l=Ye;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query=n.query,u.fragment="",l=Ne}break;case xe:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,l=Ye;continue}l=Le}else l=De;break;case Me:if(l=De,"/"!==i||"/"!==q(h,c+1))continue;c++;break;case De:if("/"!==i&&"\\"!==i){l=Le;continue}break;case Le:if("@"===i){f&&(h="%40"+h),f=!0,o=m(h);for(var w=0;w<o.length;w++){var y=o[w];if(":"!==y||p){var k=me(y,ge);p?u.password+=k:u.username+=k}else p=!0}h=""}else if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(f&&""===h)return X;c-=m(h).length+1,h="",l=Re}else h+=i;break;case Re:case Ae:if(t&&"file"===u.scheme){l=He;continue}if(":"!==i||g){if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(u.isSpecial()&&""===h)return I;if(t&&""===h&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(h),s)return s;if(h="",l=We,t)return;continue}"["===i?g=!0:"]"===i&&(g=!1),h+=i}else{if(""===h)return I;if(s=u.parseHost(h),s)return s;if(h="",l=qe,t===Ae)return}break;case qe:if(!O(V,i)){if(i===r||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||t){if(""!==h){var P=L(h,10);if(P>65535)return _;u.port=u.isSpecial()&&P===ve[u.scheme]?null:P,h=""}if(t)return;l=We;continue}return _}h+=i;break;case Oe:if(u.scheme="file","/"===i||"\\"===i)l=Ee;else{if(!n||"file"!==n.scheme){l=Ye;continue}switch(i){case r:u.host=n.host,u.path=v(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=v(n.path),u.query="",l=Be;break;case"#":u.host=n.host,u.path=v(n.path),u.query=n.query,u.fragment="",l=Ne;break;default:we(E(v(a,c),""))||(u.host=n.host,u.path=v(n.path),u.shortenPath()),l=Ye;continue}}break;case Ee:if("/"===i||"\\"===i){l=He;break}n&&"file"===n.scheme&&!we(E(v(a,c),""))&&(pe(n.path[0],!0)?Y(u.path,n.path[0]):u.host=n.host),l=Ye;continue;case He:if(i===r||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&pe(h))l=Ye;else if(""===h){if(u.host="",t)return;l=We}else{if(s=u.parseHost(h),s)return s;if("localhost"===u.host&&(u.host=""),t)return;h="",l=We}continue}h+=i;break;case We:if(u.isSpecial()){if(l=Ye,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==r&&(l=Ye,"/"!==i))continue}else u.fragment="",l=Ne;else u.query="",l=Be;break;case Ye:if(i===r||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(ye(h)?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||Y(u.path,"")):be(h)?"/"===i||"\\"===i&&u.isSpecial()||Y(u.path,""):("file"===u.scheme&&!u.path.length&&pe(h)&&(u.host&&(u.host=""),h=q(h,0)+":"),Y(u.path,h)),h="","file"===u.scheme&&(i===r||"?"===i||"#"===i))while(u.path.length>1&&""===u.path[0])B(u.path);"?"===i?(u.query="",l=Be):"#"===i&&(u.fragment="",l=Ne)}else h+=me(i,de);break;case ze:"?"===i?(u.query="",l=Be):"#"===i?(u.fragment="",l=Ne):i!==r&&(u.path[0]+=me(i,he));break;case Be:t||"#"!==i?i!==r&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":me(i,he)):(u.fragment="",l=Ne);break;case Ne:i!==r&&(u.fragment+=me(i,fe));break}c++}},parseHost:function(e){var t,n,r;if("["===q(e,0)){if("]"!==q(e,e.length-1))return I;if(t=ue(j(e,1,-1)),!t)return I;this.host=t}else if(this.isSpecial()){if(e=w(e),O(ne,e))return I;if(t=se(e),null===t)return I;this.host=t}else{if(O(re,e))return I;for(t="",n=m(e),r=0;r<n.length;r++)t+=me(n[r],he);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,a=e.host,i=e.port,o=e.path,s=e.query,u=e.fragment,l=t+":";return null!==a?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ce(a),null!==i&&(l+=":"+i)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+E(o,"/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},setHref:function(e){var t=this.parse(e);if(t)throw new D(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Fe(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ce(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ke)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=me(t[n],ge)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=me(t[n],ge)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ce(e):ce(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getHostname:function(){var e=this.host;return null===e?"":ce(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=b(e),""===e?this.port=null:this.parse(e,qe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+E(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,We))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=b(e),""===e?this.query=null:("?"===q(e,0)&&(e=j(e,1)),this.query="",this.parse(e,Be)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=b(e),""!==e?("#"===q(e,0)&&(e=j(e,1)),this.fragment="",this.parse(e,Ne)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Fe=function(e){var t=f(this,Qe),n=k(arguments.length,1)>1?arguments[1]:void 0,r=S(t,new je(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Qe=Fe.prototype,Xe=function(e,t){return{get:function(){return T(this)[e]()},set:t&&function(e){return T(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(h(Qe,"href",Xe("serialize","setHref")),h(Qe,"origin",Xe("getOrigin")),h(Qe,"protocol",Xe("getProtocol","setProtocol")),h(Qe,"username",Xe("getUsername","setUsername")),h(Qe,"password",Xe("getPassword","setPassword")),h(Qe,"host",Xe("getHost","setHost")),h(Qe,"hostname",Xe("getHostname","setHostname")),h(Qe,"port",Xe("getPort","setPort")),h(Qe,"pathname",Xe("getPathname","setPathname")),h(Qe,"search",Xe("getSearch","setSearch")),h(Qe,"searchParams",Xe("getSearchParams")),h(Qe,"hash",Xe("getHash","setHash"))),c(Qe,"toJSON",(function(){return T(this).serialize()}),{enumerable:!0}),c(Qe,"toString",(function(){return T(this).serialize()}),{enumerable:!0}),M){var Ge=M.createObjectURL,Ie=M.revokeObjectURL;Ge&&c(Fe,"createObjectURL",u(Ge,M)),Ie&&c(Fe,"revokeObjectURL",u(Ie,M))}y(Fe,"URL"),a({global:!0,constructor:!0,forced:!o,sham:!i},{URL:Fe})},3165:(e,t,n)=>{n(495)},4541:(e,t,n)=>{var r=n(5613),a=n(9944);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})}}]);
|
2
|
-
//# sourceMappingURL=672.js.map
|