mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
feat(es/minifier): Enable conditionals
by default (#4687)
This commit is contained in:
parent
b467432b9b
commit
c01476d9ae
3
crates/dbg-swc/.gitignore
vendored
3
crates/dbg-swc/.gitignore
vendored
@ -1,10 +1,13 @@
|
||||
/*.output.js
|
||||
/input.js
|
||||
*.orig
|
||||
input.new.js
|
||||
input.orig.js
|
||||
|
||||
*.txt
|
||||
|
||||
/.input
|
||||
/.compare
|
||||
|
||||
# creduce
|
||||
creduce_bug*
|
@ -1,14 +1,11 @@
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
process::{Command, Stdio},
|
||||
sync::Arc,
|
||||
};
|
||||
use std::{path::PathBuf, process::Command, sync::Arc};
|
||||
|
||||
use anyhow::{bail, Context, Result};
|
||||
use anyhow::{Context, Result};
|
||||
use clap::Args;
|
||||
use swc_common::SourceMap;
|
||||
|
||||
use crate::util::{
|
||||
make_pretty,
|
||||
minifier::{get_esbuild_output, get_minified},
|
||||
print_js,
|
||||
};
|
||||
@ -54,17 +51,3 @@ impl CompareCommand {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn make_pretty(f: &Path) -> Result<()> {
|
||||
let mut c = Command::new("npx");
|
||||
c.stderr(Stdio::inherit());
|
||||
c.arg("js-beautify").arg("--replace").arg(f);
|
||||
|
||||
let output = c.output().context("failed to run prettier")?;
|
||||
|
||||
if !output.status.success() {
|
||||
bail!("prettier failed");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
122
crates/dbg-swc/src/minify/diff_options.rs
Normal file
122
crates/dbg-swc/src/minify/diff_options.rs
Normal file
@ -0,0 +1,122 @@
|
||||
use std::{
|
||||
fs,
|
||||
path::{Path, PathBuf},
|
||||
process::Command,
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use clap::Args;
|
||||
use rayon::prelude::*;
|
||||
use swc_common::{SourceMap, GLOBALS};
|
||||
use swc_ecma_minifier::option::{CompressOptions, MinifyOptions};
|
||||
use swc_ecma_transforms_base::fixer::fixer;
|
||||
use swc_ecma_visit::VisitMutWith;
|
||||
use tracing::info;
|
||||
|
||||
use crate::util::{all_js_files, make_pretty, parse_js, print_js};
|
||||
|
||||
/// Useful for checking if the minifier is working correctly, even with the new
|
||||
/// option.
|
||||
#[derive(Debug, Args)]
|
||||
pub struct DiffOptionCommand {
|
||||
pub path: PathBuf,
|
||||
|
||||
#[clap(long)]
|
||||
pub open: bool,
|
||||
}
|
||||
|
||||
impl DiffOptionCommand {
|
||||
pub fn run(self, cm: Arc<SourceMap>) -> Result<()> {
|
||||
let js_files = all_js_files(&self.path)?;
|
||||
|
||||
let inputs = js_files
|
||||
.into_iter()
|
||||
.filter(|p| p.file_name() == Some("input.js".as_ref()))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let files = GLOBALS.with(|globals| {
|
||||
inputs
|
||||
.into_par_iter()
|
||||
.map(|f| GLOBALS.set(globals, || self.process_file(cm.clone(), &f)))
|
||||
.collect::<Result<Vec<_>>>()
|
||||
})?;
|
||||
|
||||
for (orig_path, new_path) in files.into_iter().flatten() {
|
||||
if self.open {
|
||||
let mut c = Command::new("code");
|
||||
c.arg("--diff").arg("--wait");
|
||||
c.arg(&orig_path);
|
||||
c.arg(&new_path);
|
||||
c.output().context("failed to run vscode")?;
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn process_file(&self, cm: Arc<SourceMap>, f: &Path) -> Result<Option<(PathBuf, PathBuf)>> {
|
||||
info!("Processing `{}`", f.display());
|
||||
|
||||
let fm = cm.load_file(f)?;
|
||||
let m = parse_js(fm)?;
|
||||
|
||||
let orig = {
|
||||
let m = m.clone();
|
||||
let mut m = swc_ecma_minifier::optimize(
|
||||
m.module,
|
||||
cm.clone(),
|
||||
Some(&m.comments),
|
||||
None,
|
||||
&MinifyOptions {
|
||||
compress: Some(Default::default()),
|
||||
mangle: None,
|
||||
..Default::default()
|
||||
},
|
||||
&swc_ecma_minifier::option::ExtraOptions {
|
||||
unresolved_mark: m.unresolved_mark,
|
||||
top_level_mark: m.top_level_mark,
|
||||
},
|
||||
);
|
||||
m.visit_mut_with(&mut fixer(None));
|
||||
print_js(cm.clone(), &m, false)?
|
||||
};
|
||||
|
||||
let new = {
|
||||
let mut m = swc_ecma_minifier::optimize(
|
||||
m.module,
|
||||
cm.clone(),
|
||||
Some(&m.comments),
|
||||
None,
|
||||
&MinifyOptions {
|
||||
compress: Some(CompressOptions {
|
||||
conditionals: true,
|
||||
..Default::default()
|
||||
}),
|
||||
mangle: None,
|
||||
..Default::default()
|
||||
},
|
||||
&swc_ecma_minifier::option::ExtraOptions {
|
||||
unresolved_mark: m.unresolved_mark,
|
||||
top_level_mark: m.top_level_mark,
|
||||
},
|
||||
);
|
||||
m.visit_mut_with(&mut fixer(None));
|
||||
print_js(cm, &m, false)?
|
||||
};
|
||||
|
||||
if orig == new {
|
||||
fs::remove_file(f)?;
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
let orig_path = f.with_extension("orig.js");
|
||||
fs::write(&orig_path, orig)?;
|
||||
make_pretty(&orig_path)?;
|
||||
let new_path = f.with_extension("new.js");
|
||||
fs::write(&new_path, new)?;
|
||||
make_pretty(&new_path)?;
|
||||
|
||||
Ok(Some((orig_path, new_path)))
|
||||
}
|
||||
}
|
@ -4,9 +4,13 @@ use anyhow::Result;
|
||||
use clap::Subcommand;
|
||||
use swc_common::SourceMap;
|
||||
|
||||
use self::{compare::CompareCommand, ensure_size::EnsureSize, reduce::ReduceCommand};
|
||||
use self::{
|
||||
compare::CompareCommand, diff_options::DiffOptionCommand, ensure_size::EnsureSize,
|
||||
reduce::ReduceCommand,
|
||||
};
|
||||
|
||||
mod compare;
|
||||
mod diff_options;
|
||||
mod ensure_size;
|
||||
mod reduce;
|
||||
|
||||
@ -15,6 +19,7 @@ mod reduce;
|
||||
pub enum MinifyCommand {
|
||||
Reduce(ReduceCommand),
|
||||
Compare(CompareCommand),
|
||||
DiffOption(DiffOptionCommand),
|
||||
EnsureSize(EnsureSize),
|
||||
}
|
||||
|
||||
@ -24,6 +29,7 @@ impl MinifyCommand {
|
||||
MinifyCommand::Reduce(cmd) => cmd.run(cm),
|
||||
MinifyCommand::EnsureSize(cmd) => cmd.run(cm),
|
||||
MinifyCommand::Compare(cmd) => cmd.run(cm),
|
||||
MinifyCommand::DiffOption(cmd) => cmd.run(cm),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
process::{Command, Stdio},
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
@ -21,6 +22,20 @@ where
|
||||
op()
|
||||
}
|
||||
|
||||
pub fn make_pretty(f: &Path) -> Result<()> {
|
||||
let mut c = Command::new("npx");
|
||||
c.stderr(Stdio::inherit());
|
||||
c.arg("js-beautify").arg("--replace").arg(f);
|
||||
|
||||
let output = c.output().context("failed to run prettier")?;
|
||||
|
||||
if !output.status.success() {
|
||||
bail!("prettier failed");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn parse_js(fm: Arc<SourceFile>) -> Result<ModuleRecord> {
|
||||
let unresolved_mark = Mark::new();
|
||||
let top_level_mark = Mark::new();
|
||||
@ -80,7 +95,7 @@ pub fn print_js(cm: Arc<SourceMap>, m: &Module, minify: bool) -> Result<String>
|
||||
String::from_utf8(buf).context("swc emitted non-utf8 output")
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ModuleRecord {
|
||||
pub module: Module,
|
||||
pub comments: SingleThreadedComments,
|
||||
|
@ -1,5 +1,5 @@
|
||||
foo({
|
||||
bar: function(data, baz) {
|
||||
!(!(baz ? data.quxA : data.quxB) && !(baz ? data.corgeA : data.corgeB) && (baz ? data.get("waldo") : data.waldo)) ? (baz ? data.quxA : data.quxB) || (baz ? data.get("waldo") : data.waldo) || (baz ? !data.corgeA : !data.corgeB) || pass() : pass();
|
||||
!(!(baz ? data.quxA : data.quxB) && !(baz ? data.corgeA : data.corgeB) && (baz ? data.get("waldo") : data.waldo)) && ((baz ? data.quxA : data.quxB) || (baz ? data.get("waldo") : data.waldo) || (baz ? !data.corgeA : !data.corgeB)) || pass();
|
||||
}
|
||||
});
|
||||
|
@ -12,8 +12,7 @@ var Formatting;
|
||||
}
|
||||
GetIndentationEditsWorker(token, nextToken, node, sameLineIndent) {
|
||||
var result = new List_TextEditInfo(), indentationInfo = null;
|
||||
if (this.AdjustStartOffsetIfNeeded(token, node), this.scriptBlockBeginLineNumber == token.lineNumber()) return result;
|
||||
if (!sameLineIndent && this.IsMultiLineString(token)) return result;
|
||||
if (this.AdjustStartOffsetIfNeeded(token, node), this.scriptBlockBeginLineNumber == token.lineNumber() || !sameLineIndent && this.IsMultiLineString(token)) return result;
|
||||
if (null == (indentationInfo = this.GetSpecialCaseIndentation(token, node))) {
|
||||
for(; !node.CanIndent() && null != node.Parent && token.Span.span.start() == node.Parent.AuthorNode.Details.StartOffset;)node = node.Parent;
|
||||
indentationInfo = node.CanIndent() && token.Span.span.start() == node.AuthorNode.Details.StartOffset ? node.GetEffectiveIndentation(this) : token.Token == AuthorTokenKind.atkIdentifier && null != nextToken && nextToken.Token == AuthorTokenKind.atkColon ? node.GetEffectiveChildrenIndentation(this) : this.ApplyIndentationDeltaFromParent(token, node);
|
||||
|
@ -17,8 +17,7 @@ import * as swcHelpers from "@swc/helpers";
|
||||
return result;
|
||||
}, _proto.GetIndentationEditsWorker = function(token, nextToken, node, sameLineIndent) {
|
||||
var result = new List_TextEditInfo(), indentationInfo = null;
|
||||
if (this.AdjustStartOffsetIfNeeded(token, node), this.scriptBlockBeginLineNumber == token.lineNumber()) return result;
|
||||
if (!sameLineIndent && this.IsMultiLineString(token)) return result;
|
||||
if (this.AdjustStartOffsetIfNeeded(token, node), this.scriptBlockBeginLineNumber == token.lineNumber() || !sameLineIndent && this.IsMultiLineString(token)) return result;
|
||||
if (null == (indentationInfo = this.GetSpecialCaseIndentation(token, node))) {
|
||||
for(; !node.CanIndent() && null != node.Parent && token.Span.span.start() == node.Parent.AuthorNode.Details.StartOffset;)node = node.Parent;
|
||||
indentationInfo = node.CanIndent() && token.Span.span.start() == node.AuthorNode.Details.StartOffset ? node.GetEffectiveIndentation(this) : token.Token == AuthorTokenKind.atkIdentifier && null != nextToken && nextToken.Token == AuthorTokenKind.atkColon ? node.GetEffectiveChildrenIndentation(this) : this.ApplyIndentationDeltaFromParent(token, node);
|
||||
|
File diff suppressed because one or more lines are too long
@ -97,8 +97,7 @@ var ItemsList = function(_Component) {
|
||||
var Derived, Constructor1, protoProps, staticProps, _super = (Derived = ItemsList1, function() {
|
||||
var self, call, result, Super = _getPrototypeOf(Derived);
|
||||
if (function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1;
|
||||
if ("function" == typeof Proxy) return !0;
|
||||
try {
|
||||
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
|
||||
|
@ -116,7 +116,10 @@ where
|
||||
stmts
|
||||
.windows(2)
|
||||
.any(|stmts| match (&stmts[0].as_stmt(), &stmts[1].as_stmt()) {
|
||||
(Some(Stmt::If(l)), Some(Stmt::If(r))) => l.cons.eq_ignore_span(&r.cons),
|
||||
(
|
||||
Some(Stmt::If(l @ IfStmt { alt: None, .. })),
|
||||
Some(Stmt::If(r @ IfStmt { alt: None, .. })),
|
||||
) => l.cons.eq_ignore_span(&r.cons),
|
||||
_ => false,
|
||||
});
|
||||
if !has_work {
|
||||
@ -132,7 +135,7 @@ where
|
||||
match stmt.try_into_stmt() {
|
||||
Ok(stmt) => {
|
||||
match stmt {
|
||||
Stmt::If(mut stmt) => {
|
||||
Stmt::If(mut stmt @ IfStmt { alt: None, .. }) => {
|
||||
//
|
||||
|
||||
match &mut cur {
|
||||
|
@ -1914,8 +1914,15 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "debug", tracing::instrument(skip_all))]
|
||||
fn visit_mut_fn_decl(&mut self, f: &mut FnDecl) {
|
||||
#[cfg(feature = "debug")]
|
||||
let _tracing = tracing::span!(
|
||||
Level::ERROR,
|
||||
"visit_mut_fn_decl",
|
||||
id = tracing::field::display(&f.ident)
|
||||
)
|
||||
.entered();
|
||||
|
||||
self.functions
|
||||
.entry(f.ident.to_id())
|
||||
.or_insert_with(|| FnMetadata::from(&f.function));
|
||||
|
@ -385,6 +385,18 @@ impl VisitMut for Pure<'_> {
|
||||
self.visit_par(exprs);
|
||||
}
|
||||
|
||||
fn visit_mut_fn_decl(&mut self, n: &mut FnDecl) {
|
||||
#[cfg(feature = "debug")]
|
||||
let _tracing = tracing::span!(
|
||||
Level::ERROR,
|
||||
"visit_mut_fn_decl",
|
||||
id = tracing::field::display(&n.ident)
|
||||
)
|
||||
.entered();
|
||||
|
||||
n.visit_mut_children_with(self);
|
||||
}
|
||||
|
||||
fn visit_mut_for_in_stmt(&mut self, n: &mut ForInStmt) {
|
||||
n.right.visit_mut_with(self);
|
||||
|
||||
|
@ -139,7 +139,7 @@ pub struct CompressOptions {
|
||||
#[serde(alias = "computed_props")]
|
||||
pub computed_props: bool,
|
||||
|
||||
#[serde(default)]
|
||||
#[serde(default = "true_by_default")]
|
||||
#[serde(alias = "conditionals")]
|
||||
pub conditionals: bool,
|
||||
|
||||
|
@ -259,8 +259,7 @@ impl TerserCompressorOptions {
|
||||
collapse_vars: self.collapse_vars.unwrap_or(self.defaults),
|
||||
comparisons: self.comparisons.unwrap_or(self.defaults),
|
||||
computed_props: self.computed_props.unwrap_or(self.defaults),
|
||||
// TODO: Use self.defaults
|
||||
conditionals: self.conditionals.unwrap_or(false),
|
||||
conditionals: self.conditionals.unwrap_or(self.defaults),
|
||||
dead_code: self.dead_code.unwrap_or(self.defaults),
|
||||
directives: self.directives.unwrap_or(self.defaults),
|
||||
drop_console: self.drop_console,
|
||||
|
@ -953,7 +953,7 @@
|
||||
return Object.keys(descriptor).forEach(function(key) {
|
||||
desc1[key] = descriptor[key];
|
||||
}), desc1.enumerable = !!desc1.enumerable, desc1.configurable = !!desc1.configurable, ("value" in desc1 || desc1.initializer) && (desc1.writable = !0), desc1 = decorators.slice().reverse().reduce(function(desc, decorator) {
|
||||
return decorator ? decorator(target, property, desc) || desc : desc;
|
||||
return decorator && decorator(target, property, desc) || desc;
|
||||
}, desc1), context && void 0 !== desc1.initializer && (desc1.value = desc1.initializer ? desc1.initializer.call(context) : void 0, desc1.initializer = void 0), void 0 === desc1.initializer && (Object.defineProperty(target, property, desc1), desc1 = null), desc1;
|
||||
}
|
||||
function _arrayWithHoles(arr) {
|
||||
@ -1045,10 +1045,7 @@
|
||||
}
|
||||
function _asyncIterator(iterable) {
|
||||
var method;
|
||||
if ("function" == typeof Symbol) {
|
||||
if (Symbol.asyncIterator && null != (method = iterable[Symbol.asyncIterator])) return method.call(iterable);
|
||||
if (Symbol.iterator && null != (method = iterable[Symbol.iterator])) return method.call(iterable);
|
||||
}
|
||||
if ("function" == typeof Symbol && (Symbol.asyncIterator && null != (method = iterable[Symbol.asyncIterator]) || Symbol.iterator && null != (method = iterable[Symbol.iterator]))) return method.call(iterable);
|
||||
throw new TypeError("Object is not async iterable");
|
||||
}
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||
@ -1116,8 +1113,7 @@
|
||||
}
|
||||
function construct(Parent1, args1, Class1) {
|
||||
return (construct = !function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1;
|
||||
if ("function" == typeof Proxy) return !0;
|
||||
try {
|
||||
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
|
||||
@ -3495,7 +3491,7 @@
|
||||
return function() {
|
||||
return new IteratorConstructor(this);
|
||||
};
|
||||
}, TO_STRING_TAG = NAME + " Iterator", INCORRECT_VALUES_NAME = !1, IterablePrototype = Iterable.prototype, nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT], defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT), anyNativeIterator = "Array" == NAME ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
||||
}, TO_STRING_TAG = NAME + " Iterator", INCORRECT_VALUES_NAME = !1, IterablePrototype = Iterable.prototype, nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT], defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT), anyNativeIterator = "Array" == NAME && IterablePrototype.entries || nativeIterator;
|
||||
if (anyNativeIterator && (CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()))) !== Object.prototype && CurrentIteratorPrototype.next && (IS_PURE || getPrototypeOf(CurrentIteratorPrototype) === IteratorPrototype || (setPrototypeOf ? setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype) : isCallable(CurrentIteratorPrototype[ITERATOR]) || redefine(CurrentIteratorPrototype, ITERATOR, returnThis)), setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, !0, !0), IS_PURE && (Iterators[TO_STRING_TAG] = returnThis)), PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES && (!IS_PURE && CONFIGURABLE_FUNCTION_NAME ? createNonEnumerableProperty(IterablePrototype, "name", VALUES) : (INCORRECT_VALUES_NAME = !0, defaultIterator = function() {
|
||||
return nativeIterator.call(this);
|
||||
})), DEFAULT) {
|
||||
@ -4452,9 +4448,7 @@
|
||||
var isCallable = __webpack_require__(67106), isObject = __webpack_require__(39817);
|
||||
module.exports = function(input, pref) {
|
||||
var fn, val;
|
||||
if ("string" === pref && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
||||
if (isCallable(fn = input.valueOf) && !isObject(val = fn.call(input))) return val;
|
||||
if ("string" !== pref && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
||||
if ("string" === pref && isCallable(fn = input.toString) && !isObject(val = fn.call(input)) || isCallable(fn = input.valueOf) && !isObject(val = fn.call(input)) || "string" !== pref && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
||||
throw TypeError("Can't convert object to primitive value");
|
||||
};
|
||||
},
|
||||
@ -4960,8 +4954,7 @@
|
||||
buffer = data, byteOffset = toOffset(offset, BYTES);
|
||||
var $len = data.byteLength;
|
||||
if (void 0 === $length) {
|
||||
if ($len % BYTES) throw RangeError(WRONG_LENGTH);
|
||||
if ((byteLength = $len - byteOffset) < 0) throw RangeError(WRONG_LENGTH);
|
||||
if ($len % BYTES || (byteLength = $len - byteOffset) < 0) throw RangeError(WRONG_LENGTH);
|
||||
} else if ((byteLength = toLength($length) * BYTES) + byteOffset > $len) throw RangeError(WRONG_LENGTH);
|
||||
length = byteLength / BYTES;
|
||||
} else if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
|
||||
@ -6059,7 +6052,7 @@
|
||||
s = "" === s ? t : s + repeat.call("0", 7 - t.length) + t;
|
||||
}
|
||||
return s;
|
||||
}, FORCED = nativeToFixed && !0 || !fails(function() {
|
||||
}, FORCED = !!nativeToFixed || !fails(function() {
|
||||
nativeToFixed.call({});
|
||||
});
|
||||
$({
|
||||
@ -6546,8 +6539,7 @@
|
||||
"use strict";
|
||||
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen, $ = __webpack_require__(35437), IS_PURE = __webpack_require__(80627), global = __webpack_require__(19514), getBuiltIn = __webpack_require__(44990), NativePromise = __webpack_require__(91591), redefine = __webpack_require__(78109), redefineAll = __webpack_require__(59855), setPrototypeOf = __webpack_require__(59057), setToStringTag = __webpack_require__(77875), setSpecies = __webpack_require__(53988), aCallable = __webpack_require__(74618), isCallable = __webpack_require__(67106), isObject = __webpack_require__(39817), anInstance = __webpack_require__(51819), inspectSource = __webpack_require__(71975), iterate = __webpack_require__(7261), checkCorrectnessOfIteration = __webpack_require__(34124), speciesConstructor = __webpack_require__(94850), task = __webpack_require__(46660).set, microtask = __webpack_require__(50277), promiseResolve = __webpack_require__(56540), hostReportErrors = __webpack_require__(85033), newPromiseCapabilityModule = __webpack_require__(11098), perform = __webpack_require__(68275), InternalStateModule = __webpack_require__(44670), isForced = __webpack_require__(23736), wellKnownSymbol = __webpack_require__(81019), IS_BROWSER = __webpack_require__(23573), IS_NODE = __webpack_require__(96590), V8_VERSION = __webpack_require__(50661), SPECIES = wellKnownSymbol("species"), PROMISE = "Promise", getInternalState = InternalStateModule.get, setInternalState = InternalStateModule.set, getInternalPromiseState = InternalStateModule.getterFor(PROMISE), NativePromisePrototype = NativePromise && NativePromise.prototype, PromiseConstructor = NativePromise, PromiseConstructorPrototype = NativePromisePrototype, TypeError = global.TypeError, document = global.document, process = global.process, newPromiseCapability = newPromiseCapabilityModule.f, newGenericPromiseCapability = newPromiseCapability, DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent), NATIVE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent), UNHANDLED_REJECTION = "unhandledrejection", SUBCLASSING = !1, FORCED = isForced(PROMISE, function() {
|
||||
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor), GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
||||
if (!GLOBAL_CORE_JS_PROMISE && 66 === V8_VERSION) return !0;
|
||||
if (IS_PURE && !PromiseConstructorPrototype.finally) return !0;
|
||||
if (!GLOBAL_CORE_JS_PROMISE && 66 === V8_VERSION || IS_PURE && !PromiseConstructorPrototype.finally) return !0;
|
||||
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return !1;
|
||||
var promise = new PromiseConstructor(function(resolve) {
|
||||
resolve(1);
|
||||
@ -7496,8 +7488,7 @@
|
||||
}
|
||||
for(var results = [];;){
|
||||
var result = regExpExec(rx, S);
|
||||
if (null === result) break;
|
||||
if (results.push(result), !global) break;
|
||||
if (null === result || (results.push(result), !global)) break;
|
||||
"" === toString(result[0]) && (rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode));
|
||||
}
|
||||
for(var accumulatedResult = "", nextSourcePosition = 0, i = 0; i < results.length; i++){
|
||||
@ -8585,12 +8576,10 @@
|
||||
var EOF, $ = __webpack_require__(35437), DESCRIPTORS = __webpack_require__(87122), USE_NATIVE_URL = __webpack_require__(62902), global = __webpack_require__(19514), defineProperties = __webpack_require__(68381), redefine = __webpack_require__(78109), anInstance = __webpack_require__(51819), has = __webpack_require__(1521), assign = __webpack_require__(59038), arrayFrom = __webpack_require__(83581), codeAt = __webpack_require__(88668).codeAt, toASCII = __webpack_require__(41075), $toString = __webpack_require__(72729), setToStringTag = __webpack_require__(77875), URLSearchParamsModule = __webpack_require__(79085), InternalStateModule = __webpack_require__(44670), NativeURL = global.URL, URLSearchParams = URLSearchParamsModule.URLSearchParams, getInternalSearchParamsState = URLSearchParamsModule.getState, setInternalState = InternalStateModule.set, getInternalURLState = InternalStateModule.getterFor("URL"), floor = Math.floor, pow = Math.pow, INVALID_SCHEME = "Invalid scheme", INVALID_HOST = "Invalid host", INVALID_PORT = "Invalid port", ALPHA = /[A-Za-z]/, ALPHANUMERIC = /[\d+-.A-Za-z]/, DIGIT = /\d/, HEX_START = /^0x/i, OCT = /^[0-7]+$/, DEC = /^\d+$/, HEX = /^[\dA-Fa-f]+$/, FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/, FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, TAB_AND_NEW_LINE = /[\t\n\r]/g, parseHost = function(url, input) {
|
||||
var result, codePoints, index;
|
||||
if ("[" == input.charAt(0)) {
|
||||
if ("]" != input.charAt(input.length - 1)) return INVALID_HOST;
|
||||
if (!(result = parseIPv6(input.slice(1, -1)))) return INVALID_HOST;
|
||||
if ("]" != input.charAt(input.length - 1) || !(result = parseIPv6(input.slice(1, -1)))) return INVALID_HOST;
|
||||
url.host = result;
|
||||
} else if (isSpecial(url)) {
|
||||
if (input = toASCII(input), FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;
|
||||
if (null === (result = parseIPv4(input))) return INVALID_HOST;
|
||||
if (input = toASCII(input), FORBIDDEN_HOST_CODE_POINT.test(input) || null === (result = parseIPv4(input))) return INVALID_HOST;
|
||||
url.host = result;
|
||||
} else {
|
||||
if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;
|
||||
@ -8640,8 +8629,7 @@
|
||||
}
|
||||
for(value = length = 0; length < 4 && HEX.test(chr());)value = 16 * value + parseInt(chr(), 16), pointer++, length++;
|
||||
if ("." == chr()) {
|
||||
if (0 == length) return;
|
||||
if (pointer -= length, pieceIndex > 6) return;
|
||||
if (0 == length || (pointer -= length, pieceIndex > 6)) return;
|
||||
for(numbersSeen = 0; chr();){
|
||||
if (ipv4Piece = null, numbersSeen > 0) {
|
||||
if ("." != chr() || !(numbersSeen < 4)) return;
|
||||
@ -9792,8 +9780,7 @@
|
||||
if (path !== encodedPath) replaceHashPath(encodedPath);
|
||||
else {
|
||||
var a, b, location = getDOMLocation(), prevLocation = history.location;
|
||||
if (!forceNextPop && (a = prevLocation, b = location, a.pathname === b.pathname && a.search === b.search && a.hash === b.hash)) return;
|
||||
if (ignorePath === createPath(location)) return;
|
||||
if (!forceNextPop && (a = prevLocation, b = location, a.pathname === b.pathname && a.search === b.search && a.hash === b.hash) || ignorePath === createPath(location)) return;
|
||||
ignorePath = null, handlePop(location);
|
||||
}
|
||||
}
|
||||
@ -10405,8 +10392,7 @@
|
||||
};
|
||||
}
|
||||
}(options3), ret = Object.create(null);
|
||||
if ("string" != typeof query) return ret;
|
||||
if (!(query = query.trim().replace(/^[?#&]/, ""))) return ret;
|
||||
if ("string" != typeof query || !(query = query.trim().replace(/^[?#&]/, ""))) return ret;
|
||||
for (const param of query.split("&")){
|
||||
if ("" === param) continue;
|
||||
let [key, value] = splitOnFirst(options3.decode ? param.replace(/\+/g, " ") : param, "=");
|
||||
@ -14549,8 +14535,7 @@
|
||||
c = c.return;
|
||||
}
|
||||
for(c.sibling.return = c.return, c = c.sibling; 5 !== c.tag && 6 !== c.tag && 18 !== c.tag;){
|
||||
if (2 & c.flags) continue b;
|
||||
if (null === c.child || 4 === c.tag) continue b;
|
||||
if (2 & c.flags || null === c.child || 4 === c.tag) continue b;
|
||||
c.child.return = c, c = c.child;
|
||||
}
|
||||
if (!(2 & c.flags)) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
foo({
|
||||
bar: function(data, baz) {
|
||||
!(!(baz ? data.quxA : data.quxB) && !(baz ? data.corgeA : data.corgeB) && (baz ? data.get("waldo") : data.waldo)) ? (baz ? data.quxA : data.quxB) || (baz ? data.get("waldo") : data.waldo) || (baz ? !data.corgeA : !data.corgeB) || pass() : pass();
|
||||
!(!(baz ? data.quxA : data.quxB) && !(baz ? data.corgeA : data.corgeB) && (baz ? data.get("waldo") : data.waldo)) && ((baz ? data.quxA : data.quxB) || (baz ? data.get("waldo") : data.waldo) || (baz ? !data.corgeA : !data.corgeB)) || pass();
|
||||
}
|
||||
});
|
||||
|
@ -1243,7 +1243,7 @@
|
||||
}, k.setRequestHeader = function(a, b) {
|
||||
this.v.append(a, b);
|
||||
}, k.getResponseHeader = function(a) {
|
||||
return this.h ? this.h.get(a.toLowerCase()) || "" : "";
|
||||
return this.h && this.h.get(a.toLowerCase()) || "";
|
||||
}, k.getAllResponseHeaders = function() {
|
||||
if (!this.h) return "";
|
||||
const a = [], b = this.h.entries();
|
||||
@ -1368,7 +1368,7 @@
|
||||
}), b6), "string" == typeof a ? null != c8 && encodeURIComponent(String(c8)) : R(a, b, c8));
|
||||
}
|
||||
function Hd(a, b, c) {
|
||||
return c && c.internalChannelParams ? c.internalChannelParams[a] || b : b;
|
||||
return c && c.internalChannelParams && c.internalChannelParams[a] || b;
|
||||
}
|
||||
function Id(a) {
|
||||
this.za = 0, this.l = [], this.h = new Mb(), this.la = this.oa = this.F = this.W = this.g = this.sa = this.D = this.aa = this.o = this.P = this.s = null, this.Za = this.V = 0, this.Xa = Hd("failFast", !1, a), this.N = this.v = this.u = this.m = this.j = null, this.X = !0, this.I = this.ta = this.U = -1, this.Y = this.A = this.C = 0, this.Pa = Hd("baseRetryDelayMs", 5e3, a), this.$a = Hd("retryDelaySeedMs", 1e4, a), this.Ya = Hd("forwardChannelMaxRetries", 2, a), this.ra = Hd("forwardChannelRequestTimeoutMs", 2e4, a), this.qa = a && a.xmlHttpFactory || void 0, this.Ba = a && a.Yb || !1, this.K = void 0, this.H = a && a.supportsCrossDomainXhr || !1, this.J = "", this.i = new gd(a && a.concurrentRequestLimit), this.Ca = new ld(), this.ja = a && a.fastHandshake || !1, this.Ra = a && a.Wb || !1, a && a.Aa && this.h.Aa(), a && a.forceLongPolling && (this.X = !1), this.$ = !this.ja && this.X && a && a.detectBufferingProxy || !1, this.ka = void 0, this.O = 0, this.L = !1, this.B = null, this.Wa = !a || !1 !== a.Xb;
|
||||
|
@ -215,10 +215,8 @@
|
||||
X.T = -1;
|
||||
class it {
|
||||
constructor(t, e){
|
||||
if (this.seconds = t, this.nanoseconds = e, e < 0) throw new j(K.INVALID_ARGUMENT, "Timestamp nanoseconds out of range: " + e);
|
||||
if (e >= 1e9) throw new j(K.INVALID_ARGUMENT, "Timestamp nanoseconds out of range: " + e);
|
||||
if (t < -62135596800) throw new j(K.INVALID_ARGUMENT, "Timestamp seconds out of range: " + t);
|
||||
if (t >= 253402300800) throw new j(K.INVALID_ARGUMENT, "Timestamp seconds out of range: " + t);
|
||||
if (this.seconds = t, this.nanoseconds = e, e < 0 || e >= 1e9) throw new j(K.INVALID_ARGUMENT, "Timestamp nanoseconds out of range: " + e);
|
||||
if (t < -62135596800 || t >= 253402300800) throw new j(K.INVALID_ARGUMENT, "Timestamp seconds out of range: " + t);
|
||||
}
|
||||
static now() {
|
||||
return it.fromMillis(Date.now());
|
||||
@ -880,8 +878,7 @@
|
||||
}
|
||||
function zt(t, e) {
|
||||
var n, s;
|
||||
if (t.limit !== e.limit) return !1;
|
||||
if (t.orderBy.length !== e.orderBy.length) return !1;
|
||||
if (t.limit !== e.limit || t.orderBy.length !== e.orderBy.length) return !1;
|
||||
for(let n5 = 0; n5 < t.orderBy.length; n5++)if (!ue(t.orderBy[n5], e.orderBy[n5])) return !1;
|
||||
if (t.filters.length !== e.filters.length) return !1;
|
||||
for(let i = 0; i < t.filters.length; i++)if (n = t.filters[i], s = e.filters[i], n.op !== s.op || !n.field.isEqual(s.field) || !Vt(n.value, s.value)) return !1;
|
||||
@ -1036,8 +1033,7 @@
|
||||
}
|
||||
function le(t, e) {
|
||||
if (null === t) return null === e;
|
||||
if (null === e) return !1;
|
||||
if (t.before !== e.before || t.position.length !== e.position.length) return !1;
|
||||
if (null === e || t.before !== e.before || t.position.length !== e.position.length) return !1;
|
||||
for(let n = 0; n < t.position.length; n++)if (!Vt(t.position[n], e.position[n])) return !1;
|
||||
return !0;
|
||||
}
|
||||
@ -1120,7 +1116,7 @@
|
||||
}(t34, e15) && function(t, e) {
|
||||
for (const n of t.filters)if (!n.matches(e)) return !1;
|
||||
return !0;
|
||||
}(t34, e15) && (t33 = t34, e14 = e15, (!t33.startAt || !!he(t33.startAt, Te(t33), e14)) && !(t33.endAt && he(t33.endAt, Te(t33), e14)));
|
||||
}(t34, e15) && (t33 = t34, e14 = e15, !(t33.startAt && !he(t33.startAt, Te(t33), e14) || t33.endAt && he(t33.endAt, Te(t33), e14)));
|
||||
}
|
||||
function ve(t35) {
|
||||
return (e, n)=>{
|
||||
@ -1592,8 +1588,7 @@
|
||||
return Math.pow(2, t) <= this.size + 1;
|
||||
}
|
||||
check() {
|
||||
if (this.isRed() && this.left.isRed()) throw L();
|
||||
if (this.right.isRed()) throw L();
|
||||
if (this.isRed() && this.left.isRed() || this.right.isRed()) throw L();
|
||||
const t = this.left.check();
|
||||
if (t !== this.right.check()) throw L();
|
||||
return t + (this.isRed() ? 0 : 1);
|
||||
@ -1713,8 +1708,7 @@
|
||||
}), e;
|
||||
}
|
||||
isEqual(t) {
|
||||
if (!(t instanceof gn)) return !1;
|
||||
if (this.size !== t.size) return !1;
|
||||
if (!(t instanceof gn) || this.size !== t.size) return !1;
|
||||
const e = this.data.getIterator(), n = t.data.getIterator();
|
||||
for(; e.hasNext();){
|
||||
const t = e.getNext().key, s = n.getNext().key;
|
||||
@ -4808,8 +4802,7 @@
|
||||
return e ? this.copy(this.keyedMap.remove(t), this.sortedSet.remove(e)) : this;
|
||||
}
|
||||
isEqual(t) {
|
||||
if (!(t instanceof $o)) return !1;
|
||||
if (this.size !== t.size) return !1;
|
||||
if (!(t instanceof $o) || this.size !== t.size) return !1;
|
||||
const e = this.sortedSet.getIterator(), n = t.sortedSet.getIterator();
|
||||
for(; e.hasNext();){
|
||||
const t = e.getNext().key, s = n.getNext().key;
|
||||
@ -5182,7 +5175,7 @@
|
||||
if (a.approximateByteSize() > 0) {
|
||||
var t212, e116, n42;
|
||||
const u = c.withResumeToken(a, s19).withSequenceNumber(t213.currentSequenceNumber);
|
||||
i = i.insert(r, u), t212 = c, e116 = u, n42 = e, ((e116.resumeToken.approximateByteSize() > 0 || L(), 0 === t212.resumeToken.approximateByteSize()) ? 0 : e116.snapshotVersion.toMicroseconds() - t212.snapshotVersion.toMicroseconds() >= 3e8 ? 0 : !(n42.addedDocuments.size + n42.modifiedDocuments.size + n42.removedDocuments.size > 0)) || o4.push(n43.ze.updateTargetData(t213, u));
|
||||
i = i.insert(r, u), t212 = c, e116 = u, n42 = e, e116.resumeToken.approximateByteSize() > 0 || L(), (0 === t212.resumeToken.approximateByteSize() || e116.snapshotVersion.toMicroseconds() - t212.snapshotVersion.toMicroseconds() >= 3e8 || n42.addedDocuments.size + n42.modifiedDocuments.size + n42.removedDocuments.size > 0) && o4.push(n43.ze.updateTargetData(t213, u));
|
||||
}
|
||||
});
|
||||
let c2 = pn, r7;
|
||||
|
@ -424,7 +424,7 @@
|
||||
2000,
|
||||
1
|
||||
]).day(i), this._minWeekdaysParse[i] = this.weekdaysMin(mom, "").toLocaleLowerCase(), this._shortWeekdaysParse[i] = this.weekdaysShort(mom, "").toLocaleLowerCase(), this._weekdaysParse[i] = this.weekdays(mom, "").toLocaleLowerCase();
|
||||
return strict ? "dddd" === format ? -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : null : "ddd" === format ? -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : null : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null : "dddd" === format ? -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null : "ddd" === format ? -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : null;
|
||||
return strict ? "dddd" === format ? -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : null : "ddd" === format ? -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : null : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null : "dddd" === format ? -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) || -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null : "ddd" === format ? -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) || -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) || -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : null;
|
||||
}
|
||||
function computeWeekdaysParse() {
|
||||
function cmpLenRev(a, b) {
|
||||
@ -1244,8 +1244,7 @@
|
||||
return new Moment(this);
|
||||
}, proto.diff = function(input, units, asFloat) {
|
||||
var that, zoneDelta, output;
|
||||
if (!this.isValid()) return NaN;
|
||||
if (!(that = cloneWithOffset(input, this)).isValid()) return NaN;
|
||||
if (!this.isValid() || !(that = cloneWithOffset(input, this)).isValid()) return NaN;
|
||||
switch(zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4, units = normalizeUnits(units)){
|
||||
case "year":
|
||||
output = monthDiff(this, that) / 12;
|
||||
@ -1448,24 +1447,15 @@
|
||||
};
|
||||
}, proto.eraName = function() {
|
||||
var i, l, val, eras = this.localeData().eras();
|
||||
for(i = 0, l = eras.length; i < l; ++i){
|
||||
if (val = this.clone().startOf("day").valueOf(), eras[i].since <= val && val <= eras[i].until) return eras[i].name;
|
||||
if (eras[i].until <= val && val <= eras[i].since) return eras[i].name;
|
||||
}
|
||||
for(i = 0, l = eras.length; i < l; ++i)if (val = this.clone().startOf("day").valueOf(), eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return eras[i].name;
|
||||
return "";
|
||||
}, proto.eraNarrow = function() {
|
||||
var i, l, val, eras = this.localeData().eras();
|
||||
for(i = 0, l = eras.length; i < l; ++i){
|
||||
if (val = this.clone().startOf("day").valueOf(), eras[i].since <= val && val <= eras[i].until) return eras[i].narrow;
|
||||
if (eras[i].until <= val && val <= eras[i].since) return eras[i].narrow;
|
||||
}
|
||||
for(i = 0, l = eras.length; i < l; ++i)if (val = this.clone().startOf("day").valueOf(), eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return eras[i].narrow;
|
||||
return "";
|
||||
}, proto.eraAbbr = function() {
|
||||
var i, l, val, eras = this.localeData().eras();
|
||||
for(i = 0, l = eras.length; i < l; ++i){
|
||||
if (val = this.clone().startOf("day").valueOf(), eras[i].since <= val && val <= eras[i].until) return eras[i].abbr;
|
||||
if (eras[i].until <= val && val <= eras[i].since) return eras[i].abbr;
|
||||
}
|
||||
for(i = 0, l = eras.length; i < l; ++i)if (val = this.clone().startOf("day").valueOf(), eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return eras[i].abbr;
|
||||
return "";
|
||||
}, proto.eraYear = function() {
|
||||
var i, l, dir, val, eras = this.localeData().eras();
|
||||
@ -1640,14 +1630,10 @@
|
||||
}, proto$1.monthsParse = function(monthName, format, strict) {
|
||||
var i, mom, regex;
|
||||
if (this._monthsParseExact) return handleStrictParse.call(this, monthName, format, strict);
|
||||
for(this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), i = 0; i < 12; i++){
|
||||
if (mom = createUTC([
|
||||
2000,
|
||||
i
|
||||
]), strict && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i"), this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i")), strict || this._monthsParse[i] || (regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""), this._monthsParse[i] = new RegExp(regex.replace(".", ""), "i")), strict && "MMMM" === format && this._longMonthsParse[i].test(monthName)) return i;
|
||||
if (strict && "MMM" === format && this._shortMonthsParse[i].test(monthName)) return i;
|
||||
if (!strict && this._monthsParse[i].test(monthName)) return i;
|
||||
}
|
||||
for(this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), i = 0; i < 12; i++)if (mom = createUTC([
|
||||
2000,
|
||||
i
|
||||
]), strict && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i"), this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i")), strict || this._monthsParse[i] || (regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""), this._monthsParse[i] = new RegExp(regex.replace(".", ""), "i")), strict && "MMMM" === format && this._longMonthsParse[i].test(monthName) || strict && "MMM" === format && this._shortMonthsParse[i].test(monthName) || !strict && this._monthsParse[i].test(monthName)) return i;
|
||||
}, proto$1.monthsRegex = function(isStrict) {
|
||||
return this._monthsParseExact ? (hasOwnProp(this, "_monthsRegex") || computeMonthsParse.call(this), isStrict) ? this._monthsStrictRegex : this._monthsRegex : (hasOwnProp(this, "_monthsRegex") || (this._monthsRegex = defaultMonthsRegex), this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex);
|
||||
}, proto$1.monthsShortRegex = function(isStrict) {
|
||||
@ -1668,15 +1654,10 @@
|
||||
}, proto$1.weekdaysParse = function(weekdayName, format, strict) {
|
||||
var i, mom, regex;
|
||||
if (this._weekdaysParseExact) return handleStrictParse$1.call(this, weekdayName, format, strict);
|
||||
for(this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), i = 0; i < 7; i++){
|
||||
if (mom = createUTC([
|
||||
2000,
|
||||
1
|
||||
]).day(i), strict && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[i] || (regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""), this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i")), strict && "dddd" === format && this._fullWeekdaysParse[i].test(weekdayName)) return i;
|
||||
if (strict && "ddd" === format && this._shortWeekdaysParse[i].test(weekdayName)) return i;
|
||||
if (strict && "dd" === format && this._minWeekdaysParse[i].test(weekdayName)) return i;
|
||||
if (!strict && this._weekdaysParse[i].test(weekdayName)) return i;
|
||||
}
|
||||
for(this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), i = 0; i < 7; i++)if (mom = createUTC([
|
||||
2000,
|
||||
1
|
||||
]).day(i), strict && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[i] || (regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""), this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i")), strict && "dddd" === format && this._fullWeekdaysParse[i].test(weekdayName) || strict && "ddd" === format && this._shortWeekdaysParse[i].test(weekdayName) || strict && "dd" === format && this._minWeekdaysParse[i].test(weekdayName) || !strict && this._weekdaysParse[i].test(weekdayName)) return i;
|
||||
}, proto$1.weekdaysRegex = function(isStrict) {
|
||||
return this._weekdaysParseExact ? (hasOwnProp(this, "_weekdaysRegex") || computeWeekdaysParse.call(this), isStrict) ? this._weekdaysStrictRegex : this._weekdaysRegex : (hasOwnProp(this, "_weekdaysRegex") || (this._weekdaysRegex = defaultWeekdaysRegex), this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
||||
}, proto$1.weekdaysShortRegex = function(isStrict) {
|
||||
|
@ -24,8 +24,7 @@
|
||||
value: !0
|
||||
});
|
||||
}, __webpack_require__.t = function(value, mode) {
|
||||
if (1 & mode && (value = __webpack_require__(value)), 8 & mode) return value;
|
||||
if (4 & mode && "object" == typeof value && value && value.__esModule) return value;
|
||||
if (1 & mode && (value = __webpack_require__(value)), 8 & mode || 4 & mode && "object" == typeof value && value && value.__esModule) return value;
|
||||
var ns = Object.create(null);
|
||||
if (__webpack_require__.r(ns), Object.defineProperty(ns, "default", {
|
||||
enumerable: !0,
|
||||
@ -3089,8 +3088,7 @@
|
||||
},
|
||||
function(module, exports) {
|
||||
module.exports = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -3367,8 +3365,7 @@
|
||||
}(), barcode_reader = barcode_reader_BarcodeReader, code_128_reader = function(_BarcodeReader) {
|
||||
inherits_default()(Code128Reader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Code128Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -4416,7 +4413,7 @@
|
||||
else done = !0;
|
||||
unshift && (codeset = codeset === this.CODE_A ? this.CODE_B : this.CODE_A);
|
||||
}
|
||||
return null === code ? null : (code.end = this._nextUnset(this._row, code.end), this._verifyTrailingWhitespace(code)) ? (checksum -= multiplier * rawResult[rawResult.length - 1]) % 103 !== rawResult[rawResult.length - 1] ? null : result.length ? (removeLastCharacter && result.splice(result.length - 1, 1), {
|
||||
return null === code ? null : (code.end = this._nextUnset(this._row, code.end), this._verifyTrailingWhitespace(code) && (checksum -= multiplier * rawResult[rawResult.length - 1]) % 103 === rawResult[rawResult.length - 1] && result.length) ? (removeLastCharacter && result.splice(result.length - 1, 1), {
|
||||
code: result.join(""),
|
||||
start: startInfo.start,
|
||||
end: code.end,
|
||||
@ -4425,7 +4422,7 @@
|
||||
decodedCodes: decodedCodes,
|
||||
endInfo: code,
|
||||
format: this.FORMAT
|
||||
}) : null : null;
|
||||
}) : null;
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -4614,8 +4611,7 @@
|
||||
], ean_reader = function(_BarcodeReader) {
|
||||
inherits_default()(EANReader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = EANReader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -4788,13 +4784,10 @@
|
||||
start: startInfo.start,
|
||||
end: startInfo.end
|
||||
};
|
||||
if (decodedCodes.push(code), !(code = this._decodePayload(code, result, decodedCodes))) return null;
|
||||
if (!(code = this._findEnd(code.end, !1))) return null;
|
||||
if (decodedCodes.push(code), !this._checksum(result)) return null;
|
||||
if (decodedCodes.push(code), !(code = this._decodePayload(code, result, decodedCodes)) || !(code = this._findEnd(code.end, !1)) || (decodedCodes.push(code), !this._checksum(result))) return null;
|
||||
if (this.supplements.length > 0) {
|
||||
var supplement = this._decodeExtensions(code.end);
|
||||
if (!supplement) return null;
|
||||
if (!supplement.decodedCodes) return null;
|
||||
if (!supplement || !supplement.decodedCodes) return null;
|
||||
var lastCode = supplement.decodedCodes[supplement.decodedCodes.length - 1], endInfo = {
|
||||
start: lastCode.start + ((lastCode.end - lastCode.start) / 2 | 0),
|
||||
end: lastCode.end
|
||||
@ -4867,8 +4860,7 @@
|
||||
]), code_39_reader = function(_BarcodeReader) {
|
||||
inherits_default()(Code39Reader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Code39Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -4978,8 +4970,7 @@
|
||||
do {
|
||||
counters = this._toCounters(nextStart, counters);
|
||||
var pattern = this._toPattern(counters);
|
||||
if (pattern < 0) return null;
|
||||
if (null === (decodedChar = this._patternToChar(pattern))) return null;
|
||||
if (pattern < 0 || null === (decodedChar = this._patternToChar(pattern))) return null;
|
||||
result.push(decodedChar), lastStart = nextStart, nextStart += array_helper.a.sum(counters), nextStart = this._nextSet(this._row, nextStart);
|
||||
}while ("*" !== decodedChar)
|
||||
return (result.pop(), result.length && this._verifyTrailingWhitespace(lastStart, nextStart, counters)) ? {
|
||||
@ -4999,8 +4990,7 @@
|
||||
}, code_39_vin_reader = function(_Code39Reader) {
|
||||
inherits_default()(Code39VINReader, _Code39Reader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Code39VINReader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5090,8 +5080,7 @@
|
||||
], codabar_reader = function(_BarcodeReader) {
|
||||
inherits_default()(NewCodabarReader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = NewCodabarReader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5262,9 +5251,7 @@
|
||||
if (null === decodedChar) return null;
|
||||
if (result.push(decodedChar), nextStart += 8, result.length > 1 && this._isStartEnd(pattern)) break;
|
||||
}while (nextStart < this._counters.length)
|
||||
if (result.length - 2 < 4 || !this._isStartEnd(pattern)) return null;
|
||||
if (!this._verifyWhitespace(start.startCounter, nextStart - 8)) return null;
|
||||
if (!this._validateResult(result, start.startCounter)) return null;
|
||||
if (result.length - 2 < 4 || !this._isStartEnd(pattern) || !this._verifyWhitespace(start.startCounter, nextStart - 8) || !this._validateResult(result, start.startCounter)) return null;
|
||||
nextStart = nextStart > this._counters.length ? this._counters.length : nextStart;
|
||||
var end = start.start + this._sumCounters(start.startCounter, nextStart - 8);
|
||||
return {
|
||||
@ -5281,8 +5268,7 @@
|
||||
}(barcode_reader), upc_reader = function(_EANReader) {
|
||||
inherits_default()(UPCReader, _EANReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = UPCReader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5317,8 +5303,7 @@
|
||||
}(ean_reader), ean_8_reader = function(_EANReader) {
|
||||
inherits_default()(EAN8Reader, _EANReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = EAN8Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5362,8 +5347,7 @@
|
||||
}(ean_reader), ean_2_reader = function(_EANReader) {
|
||||
inherits_default()(EAN2Reader, _EANReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = EAN2Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5424,8 +5408,7 @@
|
||||
], ean_5_reader = function(_EANReader) {
|
||||
inherits_default()(EAN5Reader, _EANReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = EAN5Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5458,8 +5441,7 @@
|
||||
if (!(code = this._decodeCode(offset))) return null;
|
||||
decodedCodes.push(code), result1.push(code.code % 10), code.code >= 10 && (codeFrequency1 |= 1 << 4 - i1), 4 !== i1 && (offset = this._nextSet(this._row, code.end), offset = this._nextUnset(this._row, offset));
|
||||
}
|
||||
if (5 !== result1.length) return null;
|
||||
if (function(result) {
|
||||
if (5 !== result1.length || function(result) {
|
||||
for(var length = result.length, sum = 0, i = length - 2; i >= 0; i -= 2)sum += result[i];
|
||||
sum *= 3;
|
||||
for(var _i = length - 1; _i >= 0; _i -= 2)sum += result[_i];
|
||||
@ -5494,8 +5476,7 @@
|
||||
var upc_e_reader = function(_EANReader) {
|
||||
inherits_default()(UPCEReader, _EANReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = UPCEReader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5635,8 +5616,7 @@
|
||||
}(ean_reader), i2of5_reader = function(_BarcodeReader) {
|
||||
inherits_default()(I2of5Reader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = I2of5Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -5880,7 +5860,7 @@
|
||||
var endInfo = this._findEnd();
|
||||
if (!endInfo) return null;
|
||||
var counters = this._fillCounters(startInfo.end, endInfo.start, !1);
|
||||
return this._verifyCounterLength(counters) && this._decodePayload(counters, result, decodedCodes) ? result.length % 2 != 0 || result.length < 6 ? null : (decodedCodes.push(endInfo), {
|
||||
return this._verifyCounterLength(counters) ? !this._decodePayload(counters, result, decodedCodes) || result.length % 2 != 0 || result.length < 6 ? null : (decodedCodes.push(endInfo), {
|
||||
code: result.join(""),
|
||||
start: startInfo.start,
|
||||
end: endInfo.end,
|
||||
@ -5980,8 +5960,7 @@
|
||||
}, 0), _2of5_reader = function(_BarcodeReader) {
|
||||
inherits_default()(TwoOfFiveReader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = TwoOfFiveReader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -6112,14 +6091,14 @@
|
||||
var decodedCodes = [];
|
||||
decodedCodes.push(startInfo);
|
||||
var result = [];
|
||||
return this._decodePayload(counters, result, decodedCodes) ? result.length < 5 ? null : (decodedCodes.push(endInfo), {
|
||||
return !this._decodePayload(counters, result, decodedCodes) || result.length < 5 ? null : (decodedCodes.push(endInfo), {
|
||||
code: result.join(""),
|
||||
start: startInfo.start,
|
||||
end: endInfo.end,
|
||||
startInfo: startInfo,
|
||||
decodedCodes: decodedCodes,
|
||||
format: this.FORMAT
|
||||
}) : null;
|
||||
});
|
||||
}
|
||||
},
|
||||
]), TwoOfFiveReader;
|
||||
@ -6177,8 +6156,7 @@
|
||||
]), code_93_reader = function(_BarcodeReader) {
|
||||
inherits_default()(Code93Reader, _BarcodeReader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Code93Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -6331,8 +6309,7 @@
|
||||
do {
|
||||
counters = this._toCounters(nextStart, counters);
|
||||
var pattern = this._toPattern(counters);
|
||||
if (pattern < 0) return null;
|
||||
if (null === (decodedChar = this._patternToChar(pattern))) return null;
|
||||
if (pattern < 0 || null === (decodedChar = this._patternToChar(pattern))) return null;
|
||||
result.push(decodedChar), lastStart = nextStart, nextStart += array_helper.a.sum(counters), nextStart = this._nextSet(this._row, nextStart);
|
||||
}while ("*" !== decodedChar)
|
||||
return (result.pop(), result.length && this._verifyEnd(lastStart, nextStart) && this._verifyChecksums(result)) ? (result = result.slice(0, result.length - 2), null === (result = this._decodeExtended(result))) ? null : {
|
||||
@ -6352,8 +6329,7 @@
|
||||
}, code_32_reader = function(_Code39Reader) {
|
||||
inherits_default()(Code32Reader, _Code39Reader);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Code32Reader, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
@ -6398,8 +6374,7 @@
|
||||
var result = get_default()(getPrototypeOf_default()(Code32Reader.prototype), "decode", this).call(this, row, start);
|
||||
if (!result) return null;
|
||||
var code = result.code;
|
||||
if (!code) return null;
|
||||
if (code = code.replace(code_32_reader_patterns.AEIO, ""), !this._checkChecksum(code)) return null;
|
||||
if (!code || (code = code.replace(code_32_reader_patterns.AEIO, ""), !this._checkChecksum(code))) return null;
|
||||
var code32 = this._decodeCode32(code);
|
||||
return code32 ? (result.code = code32, result) : null;
|
||||
}
|
||||
@ -6626,8 +6601,7 @@
|
||||
}(), asyncToGenerator = __webpack_require__(20), asyncToGenerator_default = __webpack_require__.n(asyncToGenerator), regenerator = __webpack_require__(12), regenerator_default = __webpack_require__.n(regenerator), pick = __webpack_require__(85), pick_default = __webpack_require__.n(pick), wrapNativeSuper = __webpack_require__(86), wrapNativeSuper_default = __webpack_require__.n(wrapNativeSuper), Exception_Exception = function(_Error) {
|
||||
inherits_default()(Exception, _Error);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Exception, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
|
@ -96,8 +96,7 @@ var ItemsList = function(_Component) {
|
||||
var Derived, Constructor1, protoProps, staticProps, _super = (Derived = ItemsList1, function() {
|
||||
var self, call, result, Super = _getPrototypeOf(Derived);
|
||||
if (function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1;
|
||||
if ("function" == typeof Proxy) return !0;
|
||||
try {
|
||||
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
|
||||
|
@ -57,8 +57,7 @@
|
||||
if (1 != parent.nodeType || hasBlockDesc(node) || atomElements.test(node.nodeName) || "false" == node.contentEditable) return !1;
|
||||
off = domIndex(node) + (dir < 0 ? 0 : 1), node = parent;
|
||||
} else {
|
||||
if (1 != node.nodeType) return !1;
|
||||
if ("false" == (node = node.childNodes[off + (dir < 0 ? -1 : 0)]).contentEditable) return !1;
|
||||
if (1 != node.nodeType || "false" == (node = node.childNodes[off + (dir < 0 ? -1 : 0)]).contentEditable) return !1;
|
||||
off = dir < 0 ? nodeSize(node) : 0;
|
||||
}
|
||||
}
|
||||
@ -1265,8 +1264,7 @@
|
||||
}
|
||||
function selectVertically(view, dir, mods) {
|
||||
var sel = view.state.selection;
|
||||
if (sel instanceof prosemirror_state__WEBPACK_IMPORTED_MODULE_0__.TextSelection && !sel.empty || mods.indexOf("s") > -1) return !1;
|
||||
if (result1.mac && mods.indexOf("m") > -1) return !1;
|
||||
if (sel instanceof prosemirror_state__WEBPACK_IMPORTED_MODULE_0__.TextSelection && !sel.empty || mods.indexOf("s") > -1 || result1.mac && mods.indexOf("m") > -1) return !1;
|
||||
var $from = sel.$from, $to = sel.$to;
|
||||
if (!$from.parent.inlineContent || view.endOfTextblock(dir < 0 ? "up" : "down")) {
|
||||
var next = moveSelectionBlock(view.state, dir);
|
||||
@ -1602,8 +1600,7 @@
|
||||
}, DOMObserver.prototype.registerMutation = function(mut, added) {
|
||||
if (added.indexOf(mut.target) > -1) return null;
|
||||
var desc = this.view.docView.nearestDesc(mut.target);
|
||||
if ("attributes" == mut.type && (desc == this.view.docView || "contenteditable" == mut.attributeName || "style" == mut.attributeName && !mut.oldValue && !mut.target.getAttribute("style"))) return null;
|
||||
if (!desc || desc.ignoreMutation(mut)) return null;
|
||||
if ("attributes" == mut.type && (desc == this.view.docView || "contenteditable" == mut.attributeName || "style" == mut.attributeName && !mut.oldValue && !mut.target.getAttribute("style")) || !desc || desc.ignoreMutation(mut)) return null;
|
||||
if ("childList" == mut.type) {
|
||||
for(var i = 0; i < mut.addedNodes.length; i++)added.push(mut.addedNodes[i]);
|
||||
if (desc.contentDOM && desc.contentDOM != desc.dom && !desc.contentDOM.contains(mut.target)) return {
|
||||
@ -2652,8 +2649,7 @@
|
||||
var pos, elt1 = (view10.root.elementFromPoint ? view10.root : doc).elementFromPoint(coords3.left, coords3.top + 1);
|
||||
if (!elt1 || !view10.dom.contains(1 != elt1.nodeType ? elt1.parentNode : elt1)) {
|
||||
var box = view10.dom.getBoundingClientRect();
|
||||
if (!inRect(coords3, box)) return null;
|
||||
if (!(elt1 = elementFromPoint(view10.dom, coords3, box))) return null;
|
||||
if (!inRect(coords3, box) || !(elt1 = elementFromPoint(view10.dom, coords3, box))) return null;
|
||||
}
|
||||
if (result1.safari) for(var p = elt1; node1 && p; p = parentNode(p))p.draggable && (node1 = offset1 = null);
|
||||
if (elt1 = (dom = elt1, coords1 = coords3, (parent = dom.parentNode) && /^li$/i.test(parent.nodeName) && coords1.left < dom.getBoundingClientRect().left ? parent : dom), node1) {
|
||||
|
@ -2872,7 +2872,7 @@
|
||||
}, _proto.enableInterval_ = function() {
|
||||
this.updateInterval || (this.updateInterval = this.setInterval(this.update, 30));
|
||||
}, _proto.disableInterval_ = function(e) {
|
||||
this.player_.liveTracker && this.player_.liveTracker.isLive() && e && "ended" !== e.type || this.updateInterval && (this.clearInterval(this.updateInterval), this.updateInterval = null);
|
||||
this.player_.liveTracker && this.player_.liveTracker.isLive() && e && "ended" !== e.type || !this.updateInterval || (this.clearInterval(this.updateInterval), this.updateInterval = null);
|
||||
}, _proto.createEl = function() {
|
||||
return _Slider.prototype.createEl.call(this, "div", {
|
||||
className: "vjs-progress-holder"
|
||||
@ -6472,8 +6472,7 @@
|
||||
return timeRangesList;
|
||||
}, isRangeDifferent = function(a, b) {
|
||||
if (a === b) return !1;
|
||||
if (!a && b || !b && a) return !0;
|
||||
if (a.length !== b.length) return !0;
|
||||
if (!a && b || !b && a || a.length !== b.length) return !0;
|
||||
for(var i = 0; i < a.length; i++)if (a.start(i) !== b.start(i) || a.end(i) !== b.end(i)) return !0;
|
||||
return !1;
|
||||
}, lastBufferedEnd = function(a) {
|
||||
@ -6900,8 +6899,7 @@
|
||||
}, updateMaster$1 = function(master, newMedia, unchangedCheck) {
|
||||
void 0 === unchangedCheck && (unchangedCheck = isPlaylistUnchanged);
|
||||
var result = mergeOptions$2(master, {}), oldMedia = result.playlists[newMedia.id];
|
||||
if (!oldMedia) return null;
|
||||
if (unchangedCheck(oldMedia, newMedia)) return null;
|
||||
if (!oldMedia || unchangedCheck(oldMedia, newMedia)) return null;
|
||||
newMedia.segments = getAllSegments(newMedia);
|
||||
var mergedPlaylist = mergeOptions$2(oldMedia, newMedia);
|
||||
if (mergedPlaylist.preloadSegment && !newMedia.preloadSegment && delete mergedPlaylist.preloadSegment, oldMedia.segments) {
|
||||
@ -7287,9 +7285,7 @@
|
||||
return endRequestAndCallback(error, request, "", bytes);
|
||||
});
|
||||
var type = (0, _videojs_vhs_utils_es_containers__WEBPACK_IMPORTED_MODULE_12__.Xm)(bytes);
|
||||
return "ts" === type && bytes.length < 188 ? callbackOnCompleted(request, function() {
|
||||
return endRequestAndCallback(error, request, "", bytes);
|
||||
}) : !type && bytes.length < 376 ? callbackOnCompleted(request, function() {
|
||||
return "ts" === type && bytes.length < 188 || !type && bytes.length < 376 ? callbackOnCompleted(request, function() {
|
||||
return endRequestAndCallback(error, request, "", bytes);
|
||||
}) : endRequestAndCallback(null, request, type, bytes);
|
||||
}
|
||||
@ -7307,18 +7303,14 @@
|
||||
});
|
||||
return request1;
|
||||
}, EventTarget = videojs.EventTarget, mergeOptions = videojs.mergeOptions, dashPlaylistUnchanged = function(a, b) {
|
||||
if (!isPlaylistUnchanged(a, b)) return !1;
|
||||
if (a.sidx && b.sidx && (a.sidx.offset !== b.sidx.offset || a.sidx.length !== b.sidx.length)) return !1;
|
||||
if (!a.sidx && b.sidx || a.sidx && !b.sidx) return !1;
|
||||
if (a.segments && !b.segments || !a.segments && b.segments) return !1;
|
||||
if (!isPlaylistUnchanged(a, b) || a.sidx && b.sidx && (a.sidx.offset !== b.sidx.offset || a.sidx.length !== b.sidx.length) || !a.sidx && b.sidx || a.sidx && !b.sidx || a.segments && !b.segments || !a.segments && b.segments) return !1;
|
||||
if (!a.segments && !b.segments) return !0;
|
||||
for(var i = 0; i < a.segments.length; i++){
|
||||
var aSegment = a.segments[i], bSegment = b.segments[i];
|
||||
if (aSegment.uri !== bSegment.uri) return !1;
|
||||
if (aSegment.byterange || bSegment.byterange) {
|
||||
var aByterange = aSegment.byterange, bByterange = bSegment.byterange;
|
||||
if (aByterange && !bByterange || !aByterange && bByterange) return !1;
|
||||
if (aByterange.offset !== bByterange.offset || aByterange.length !== bByterange.length) return !1;
|
||||
if (aByterange && !bByterange || !aByterange && bByterange || aByterange.offset !== bByterange.offset || aByterange.length !== bByterange.length) return !1;
|
||||
}
|
||||
}
|
||||
return !0;
|
||||
@ -8834,7 +8826,7 @@
|
||||
return result;
|
||||
},
|
||||
parseUserData: function(sei) {
|
||||
return 181 !== sei.payload[0] ? null : (sei.payload[1] << 8 | sei.payload[2]) != 49 ? null : "GA94" !== String.fromCharCode(sei.payload[3], sei.payload[4], sei.payload[5], sei.payload[6]) ? null : 0x03 !== sei.payload[7] ? null : sei.payload.subarray(8, sei.payload.length - 1);
|
||||
return 181 !== sei.payload[0] || (sei.payload[1] << 8 | sei.payload[2]) != 49 || "GA94" !== String.fromCharCode(sei.payload[3], sei.payload[4], sei.payload[5], sei.payload[6]) || 0x03 !== sei.payload[7] ? null : sei.payload.subarray(8, sei.payload.length - 1);
|
||||
},
|
||||
parseCaptionPackets: function(pts, userData) {
|
||||
var i, count, offset, data, results = [];
|
||||
@ -9989,8 +9981,7 @@
|
||||
var chunk, packet, tempLength, frameSize = 0, byteIndex = 0;
|
||||
for(everything.length ? (tempLength = everything.length, (everything = new Uint8Array(bytes.byteLength + tempLength)).set(everything.subarray(0, tempLength)), everything.set(bytes, tempLength)) : everything = bytes; everything.length - byteIndex >= 3;){
|
||||
if (73 === everything[byteIndex] && 68 === everything[byteIndex + 1] && 51 === everything[byteIndex + 2]) {
|
||||
if (everything.length - byteIndex < 10) break;
|
||||
if (frameSize = utils.parseId3TagSize(everything, byteIndex), byteIndex + frameSize > everything.length) break;
|
||||
if (everything.length - byteIndex < 10 || (frameSize = utils.parseId3TagSize(everything, byteIndex), byteIndex + frameSize > everything.length)) break;
|
||||
chunk = {
|
||||
type: "timed-metadata",
|
||||
data: everything.subarray(byteIndex, byteIndex + frameSize)
|
||||
@ -9998,8 +9989,7 @@
|
||||
continue;
|
||||
}
|
||||
if ((0xff & everything[byteIndex]) == 0xff && (0xf0 & everything[byteIndex + 1]) == 0xf0) {
|
||||
if (everything.length - byteIndex < 7) break;
|
||||
if (frameSize = utils.parseAdtsSize(everything, byteIndex), byteIndex + frameSize > everything.length) break;
|
||||
if (everything.length - byteIndex < 7 || (frameSize = utils.parseAdtsSize(everything, byteIndex), byteIndex + frameSize > everything.length)) break;
|
||||
packet = {
|
||||
type: "audio",
|
||||
data: everything.subarray(byteIndex, byteIndex + frameSize),
|
||||
@ -10187,8 +10177,7 @@
|
||||
info: {}
|
||||
}, timelineStartPts = 0;
|
||||
if (this.pendingTracks.length < this.numberOfTracks) {
|
||||
if ("VideoSegmentStream" !== flushSource && "AudioSegmentStream" !== flushSource) return;
|
||||
if (this.remuxTracks) return;
|
||||
if ("VideoSegmentStream" !== flushSource && "AudioSegmentStream" !== flushSource || this.remuxTracks) return;
|
||||
if (0 === this.pendingTracks.length) {
|
||||
this.emittedTracks++, this.emittedTracks >= this.numberOfTracks && (this.trigger("done"), this.emittedTracks = 0);
|
||||
return;
|
||||
@ -10420,8 +10409,7 @@
|
||||
return (!videoTrackIds || 0 !== videoTrackIds.length) && (!timescales || "object" != typeof timescales || 0 !== Object.keys(timescales).length) && (trackId !== videoTrackIds[0] || timescale !== timescales[trackId]);
|
||||
}, this.parse = function(segment, videoTrackIds, timescales) {
|
||||
var parsedData;
|
||||
if (!this.isInitialized()) return null;
|
||||
if (!videoTrackIds || !timescales) return null;
|
||||
if (!this.isInitialized() || !videoTrackIds || !timescales) return null;
|
||||
if (this.isNewInit(videoTrackIds, timescales)) timescale = timescales[trackId = videoTrackIds[0]];
|
||||
else if (null === trackId || !timescale) return segmentCache.push(segment), null;
|
||||
for(; segmentCache.length > 0;){
|
||||
@ -10759,22 +10747,14 @@
|
||||
var type = probe.aac.parseType(bytes, byteIndex);
|
||||
switch(type){
|
||||
case "timed-metadata":
|
||||
if (bytes.length - byteIndex < 10) {
|
||||
endLoop = !0;
|
||||
break;
|
||||
}
|
||||
if ((frameSize = probe.aac.parseId3TagSize(bytes, byteIndex)) > bytes.length) {
|
||||
if (bytes.length - byteIndex < 10 || (frameSize = probe.aac.parseId3TagSize(bytes, byteIndex)) > bytes.length) {
|
||||
endLoop = !0;
|
||||
break;
|
||||
}
|
||||
null === timestamp && (packet = bytes.subarray(byteIndex, byteIndex + frameSize), timestamp = probe.aac.parseAacTimestamp(packet)), byteIndex += frameSize;
|
||||
break;
|
||||
case "audio":
|
||||
if (bytes.length - byteIndex < 7) {
|
||||
endLoop = !0;
|
||||
break;
|
||||
}
|
||||
if ((frameSize = probe.aac.parseAdtsSize(bytes, byteIndex)) > bytes.length) {
|
||||
if (bytes.length - byteIndex < 7 || (frameSize = probe.aac.parseAdtsSize(bytes, byteIndex)) > bytes.length) {
|
||||
endLoop = !0;
|
||||
break;
|
||||
}
|
||||
@ -11030,10 +11010,10 @@
|
||||
if (transmuxer.onmessage = function(event) {
|
||||
transmuxer.currentTransmux === options && ("data" === event.data.action && handleData_(event, transmuxedData, onData), "trackinfo" === event.data.action && onTrackInfo(event.data.trackInfo), "gopInfo" === event.data.action && handleGopInfo_(event, transmuxedData), "audioTimingInfo" === event.data.action && onAudioTimingInfo(event.data.audioTimingInfo), "videoTimingInfo" === event.data.action && onVideoTimingInfo(event.data.videoTimingInfo), "videoSegmentTimingInfo" === event.data.action && onVideoSegmentTimingInfo(event.data.videoSegmentTimingInfo), "audioSegmentTimingInfo" === event.data.action && onAudioSegmentTimingInfo(event.data.audioSegmentTimingInfo), "id3Frame" === event.data.action && onId3([
|
||||
event.data.id3Frame
|
||||
], event.data.id3Frame.dispatchType), "caption" === event.data.action && onCaptions(event.data.caption), "endedtimeline" === event.data.action && (waitForEndedTimelineEvent = !1, onEndedTimeline()), "log" === event.data.action && onTransmuxerLog(event.data.log), "transmuxed" === event.data.type && (waitForEndedTimelineEvent || (transmuxer.onmessage = null, handleDone_({
|
||||
], event.data.id3Frame.dispatchType), "caption" === event.data.action && onCaptions(event.data.caption), "endedtimeline" === event.data.action && (waitForEndedTimelineEvent = !1, onEndedTimeline()), "log" === event.data.action && onTransmuxerLog(event.data.log), "transmuxed" !== event.data.type || waitForEndedTimelineEvent || (transmuxer.onmessage = null, handleDone_({
|
||||
transmuxedData: transmuxedData,
|
||||
callback: onDone
|
||||
}), dequeue(transmuxer))));
|
||||
}), dequeue(transmuxer)));
|
||||
}, audioAppendStart && transmuxer.postMessage({
|
||||
action: "setAudioAppendStart",
|
||||
appendStart: audioAppendStart
|
||||
@ -11656,7 +11636,7 @@
|
||||
return logFn1("could not choose a playlist with options", options), null;
|
||||
}
|
||||
}, lastBandwidthSelector = function() {
|
||||
var pixelRatio = this.useDevicePixelRatio ? global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1 : 1;
|
||||
var pixelRatio = this.useDevicePixelRatio && global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1;
|
||||
return simpleSelector(this.playlists.master, this.systemBandwidth, parseInt(safeGetComputedStyle(this.tech_.el(), "width"), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), "height"), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.masterPlaylistController_);
|
||||
}, minRebufferMaxBandwidthSelector = function(settings) {
|
||||
var master = settings.master, currentTime = settings.currentTime, bandwidth = settings.bandwidth, duration = settings.duration, segmentDuration = settings.segmentDuration, timeUntilRebuffer = settings.timeUntilRebuffer, currentTimeline = settings.currentTimeline, syncController = settings.syncController, compatiblePlaylists = master.playlists.filter(function(playlist) {
|
||||
@ -11798,8 +11778,7 @@
|
||||
if (akeys.length !== bkeys.length) return !1;
|
||||
for(var i = 0; i < akeys.length; i++){
|
||||
var key = akeys[i];
|
||||
if (key !== bkeys[i]) return !1;
|
||||
if (a[key] !== b[key]) return !1;
|
||||
if (key !== bkeys[i] || a[key] !== b[key]) return !1;
|
||||
}
|
||||
return !0;
|
||||
}, getSyncSegmentCandidate = function(currentTimeline, segments, targetTime) {
|
||||
@ -12114,7 +12093,7 @@
|
||||
}, _proto.timestampOffsetForSegment_ = function(options) {
|
||||
return timestampOffsetForSegment(options);
|
||||
}, _proto.earlyAbortWhenNeeded_ = function(stats) {
|
||||
if (!this.vhs_.tech_.paused() && this.xhrOptions_.timeout && this.playlist_.attributes.BANDWIDTH && !(Date.now() - (stats.firstBytesReceivedAt || Date.now()) < 1000)) {
|
||||
if (!(this.vhs_.tech_.paused() || !this.xhrOptions_.timeout || !this.playlist_.attributes.BANDWIDTH || Date.now() - (stats.firstBytesReceivedAt || Date.now()) < 1000)) {
|
||||
var buffered, currentTime, playbackRate, currentTime1 = this.currentTime_(), measuredBandwidth = stats.bandwidth, segmentDuration = this.pendingSegment_.duration, requestTimeRemaining = Playlist.estimateSegmentRequestTime(segmentDuration, measuredBandwidth, this.playlist_, stats.bytesReceived), timeUntilRebuffer$1 = (buffered = this.buffered_(), currentTime = currentTime1, void 0 === (playbackRate = this.vhs_.tech_.playbackRate()) && (playbackRate = 1), ((buffered.length ? buffered.end(buffered.length - 1) : 0) - currentTime) / playbackRate - 1);
|
||||
if (!(requestTimeRemaining <= timeUntilRebuffer$1)) {
|
||||
var switchCandidate = minRebufferMaxBandwidthSelector({
|
||||
@ -12138,10 +12117,10 @@
|
||||
}, _proto.handleProgress_ = function(event, simpleSegment) {
|
||||
this.earlyAbortWhenNeeded_(simpleSegment.stats), this.checkForAbort_(simpleSegment.requestId) || this.trigger("progress");
|
||||
}, _proto.handleTrackInfo_ = function(simpleSegment, trackInfo) {
|
||||
this.earlyAbortWhenNeeded_(simpleSegment.stats), !this.checkForAbort_(simpleSegment.requestId) && (this.checkForIllegalMediaSwitch(trackInfo) || (trackInfo = trackInfo || {}, shallowEqual(this.currentMediaInfo_, trackInfo) || (this.appendInitSegment_ = {
|
||||
this.earlyAbortWhenNeeded_(simpleSegment.stats), this.checkForAbort_(simpleSegment.requestId) || this.checkForIllegalMediaSwitch(trackInfo) || (trackInfo = trackInfo || {}, shallowEqual(this.currentMediaInfo_, trackInfo) || (this.appendInitSegment_ = {
|
||||
audio: !0,
|
||||
video: !0
|
||||
}, this.startingMediaInfo_ = trackInfo, this.currentMediaInfo_ = trackInfo, this.logger_("trackinfo update", trackInfo), this.trigger("trackinfo")), !this.checkForAbort_(simpleSegment.requestId) && (this.pendingSegment_.trackInfo = trackInfo, this.hasEnoughInfoToAppend_() && this.processCallQueue_())));
|
||||
}, this.startingMediaInfo_ = trackInfo, this.currentMediaInfo_ = trackInfo, this.logger_("trackinfo update", trackInfo), this.trigger("trackinfo")), !this.checkForAbort_(simpleSegment.requestId) && (this.pendingSegment_.trackInfo = trackInfo, this.hasEnoughInfoToAppend_() && this.processCallQueue_()));
|
||||
}, _proto.handleTimingInfo_ = function(simpleSegment, mediaType, timeType, time) {
|
||||
if (this.earlyAbortWhenNeeded_(simpleSegment.stats), !this.checkForAbort_(simpleSegment.requestId)) {
|
||||
var segmentInfo = this.pendingSegment_, timingInfoProperty = timingInfoPropertyForMedia(mediaType);
|
||||
@ -12223,18 +12202,17 @@
|
||||
}, _proto.getMediaInfo_ = function(segmentInfo) {
|
||||
return void 0 === segmentInfo && (segmentInfo = this.pendingSegment_), this.getCurrentMediaInfo_(segmentInfo) || this.startingMediaInfo_;
|
||||
}, _proto.hasEnoughInfoToAppend_ = function() {
|
||||
if (!this.sourceUpdater_.ready()) return !1;
|
||||
if (this.waitingOnRemove_ || this.quotaExceededErrorRetryTimeout_) return !1;
|
||||
if (!this.sourceUpdater_.ready() || this.waitingOnRemove_ || this.quotaExceededErrorRetryTimeout_) return !1;
|
||||
var segmentInfo = this.pendingSegment_, trackInfo = this.getCurrentMediaInfo_();
|
||||
if (!segmentInfo || !trackInfo) return !1;
|
||||
var hasAudio = trackInfo.hasAudio, hasVideo = trackInfo.hasVideo, isMuxed = trackInfo.isMuxed;
|
||||
return (!hasVideo || !!segmentInfo.videoTimingInfo) && (!hasAudio || !!this.audioDisabled_ || !!isMuxed || !!segmentInfo.audioTimingInfo) && !shouldWaitForTimelineChange({
|
||||
return !(hasVideo && !segmentInfo.videoTimingInfo || hasAudio && !this.audioDisabled_ && !isMuxed && !segmentInfo.audioTimingInfo || shouldWaitForTimelineChange({
|
||||
timelineChangeController: this.timelineChangeController_,
|
||||
currentTimeline: this.currentTimeline_,
|
||||
segmentTimeline: segmentInfo.timeline,
|
||||
loaderType: this.loaderType_,
|
||||
audioDisabled: this.audioDisabled_
|
||||
});
|
||||
}));
|
||||
}, _proto.handleData_ = function(simpleSegment, result) {
|
||||
if (this.earlyAbortWhenNeeded_(simpleSegment.stats), !this.checkForAbort_(simpleSegment.requestId)) {
|
||||
if (this.callQueue_.length || !this.hasEnoughInfoToAppend_()) {
|
||||
@ -12595,7 +12573,7 @@
|
||||
sourceUpdater.updating() || "closed" === sourceUpdater.mediaSource.readyState || (sourceUpdater.queue.shift(), queueEntry.action(sourceUpdater), queueEntry.doneFn && queueEntry.doneFn(), shiftQueue("audio", sourceUpdater), shiftQueue("video", sourceUpdater));
|
||||
return;
|
||||
}
|
||||
if ("mediaSource" !== type && !(!sourceUpdater.ready() || "closed" === sourceUpdater.mediaSource.readyState || _updating(type, sourceUpdater))) {
|
||||
if (!("mediaSource" === type || !sourceUpdater.ready() || "closed" === sourceUpdater.mediaSource.readyState || _updating(type, sourceUpdater))) {
|
||||
if (queueEntry.type !== type) {
|
||||
if (null === (queueIndex = nextQueueIndexOfType(type, sourceUpdater.queue))) return;
|
||||
queueEntry = sourceUpdater.queue[queueIndex];
|
||||
@ -13639,10 +13617,7 @@
|
||||
}
|
||||
}
|
||||
}, groupMatch1 = function groupMatch(list, media) {
|
||||
for(var i = 0; i < list.length; i++){
|
||||
if (playlistMatch(media, list[i])) return !0;
|
||||
if (list[i].playlists && groupMatch(list[i].playlists, media)) return !0;
|
||||
}
|
||||
for(var i = 0; i < list.length; i++)if (playlistMatch(media, list[i]) || list[i].playlists && groupMatch(list[i].playlists, media)) return !0;
|
||||
return !1;
|
||||
}, activeTrack1 = {
|
||||
AUDIO: function(type, settings) {
|
||||
@ -13695,9 +13670,9 @@
|
||||
}
|
||||
else groups.main ? variants = groups.main : 1 === groupKeys.length && (variants = groups[groupKeys[0]]);
|
||||
}
|
||||
return void 0 === track ? variants : null !== track && variants ? variants.filter(function(props) {
|
||||
return void 0 === track ? variants : null !== track && variants && variants.filter(function(props) {
|
||||
return props.id === track.id;
|
||||
})[0] || null : null;
|
||||
})[0] || null;
|
||||
}), mediaTypes[type].activeTrack = activeTrack1[type](type, settings4), mediaTypes[type].onGroupChanged = (type3 = type, settings1 = settings4, function() {
|
||||
var _settings$segmentLoad = settings1.segmentLoaders, segmentLoader = _settings$segmentLoad[type3], mainSegmentLoader = _settings$segmentLoad.main, mediaType = settings1.mediaTypes[type3], activeTrack = mediaType.activeTrack(), activeGroup = mediaType.getActiveGroup(), previousActiveLoader = mediaType.activePlaylistLoader, lastGroup = mediaType.lastGroup_;
|
||||
if ((!activeGroup || !lastGroup || activeGroup.id !== lastGroup.id) && (mediaType.lastGroup_ = activeGroup, mediaType.lastTrack_ = activeTrack, stopLoaders(segmentLoader, mediaType), activeGroup && !activeGroup.isMasterPlaylist)) {
|
||||
@ -13970,8 +13945,7 @@
|
||||
_this3.loadOnPlay_ && _this3.tech_.off("play", _this3.loadOnPlay_);
|
||||
var selectedMedia, updatedPlaylist = _this3.masterPlaylistLoader_.media();
|
||||
if (!updatedPlaylist) {
|
||||
if (_this3.excludeUnsupportedVariants_(), _this3.enableLowInitialPlaylist && (selectedMedia = _this3.selectInitialPlaylist()), selectedMedia || (selectedMedia = _this3.selectPlaylist()), !selectedMedia || !_this3.shouldSwitchToMedia_(selectedMedia)) return;
|
||||
if (_this3.initialMedia_ = selectedMedia, _this3.switchMedia_(_this3.initialMedia_, "initial"), !("vhs-json" === _this3.sourceType_ && _this3.initialMedia_.segments)) return;
|
||||
if (_this3.excludeUnsupportedVariants_(), _this3.enableLowInitialPlaylist && (selectedMedia = _this3.selectInitialPlaylist()), selectedMedia || (selectedMedia = _this3.selectPlaylist()), !selectedMedia || !_this3.shouldSwitchToMedia_(selectedMedia) || (_this3.initialMedia_ = selectedMedia, _this3.switchMedia_(_this3.initialMedia_, "initial"), !("vhs-json" === _this3.sourceType_ && _this3.initialMedia_.segments))) return;
|
||||
updatedPlaylist = _this3.initialMedia_;
|
||||
}
|
||||
_this3.handleUpdatedMediaPlaylist(updatedPlaylist);
|
||||
@ -14263,18 +14237,12 @@
|
||||
var expired = this.syncController_.getExpiredTime(media, this.duration());
|
||||
if (null !== expired) {
|
||||
var master = this.masterPlaylistLoader_.master, mainSeekable = Vhs$1.Playlist.seekable(media, expired, Vhs$1.Playlist.liveEdgeDelay(master, media));
|
||||
if (0 !== mainSeekable.length) {
|
||||
if (this.mediaTypes_.AUDIO.activePlaylistLoader) {
|
||||
if (media = this.mediaTypes_.AUDIO.activePlaylistLoader.media(), null === (expired = this.syncController_.getExpiredTime(media, this.duration()))) return;
|
||||
if (0 === (audioSeekable = Vhs$1.Playlist.seekable(media, expired, Vhs$1.Playlist.liveEdgeDelay(master, media))).length) return;
|
||||
}
|
||||
this.seekable_ && this.seekable_.length && (oldEnd = this.seekable_.end(0), oldStart = this.seekable_.start(0)), audioSeekable ? audioSeekable.start(0) > mainSeekable.end(0) || mainSeekable.start(0) > audioSeekable.end(0) ? this.seekable_ = mainSeekable : this.seekable_ = videojs.createTimeRanges([
|
||||
[
|
||||
audioSeekable.start(0) > mainSeekable.start(0) ? audioSeekable.start(0) : mainSeekable.start(0),
|
||||
audioSeekable.end(0) < mainSeekable.end(0) ? audioSeekable.end(0) : mainSeekable.end(0),
|
||||
],
|
||||
]) : this.seekable_ = mainSeekable, this.seekable_ && this.seekable_.length && this.seekable_.end(0) === oldEnd && this.seekable_.start(0) === oldStart || (this.logger_("seekable updated [" + printableRange(this.seekable_) + "]"), this.tech_.trigger("seekablechanged"));
|
||||
}
|
||||
0 !== mainSeekable.length && (!this.mediaTypes_.AUDIO.activePlaylistLoader || (media = this.mediaTypes_.AUDIO.activePlaylistLoader.media(), null !== (expired = this.syncController_.getExpiredTime(media, this.duration())) && 0 !== (audioSeekable = Vhs$1.Playlist.seekable(media, expired, Vhs$1.Playlist.liveEdgeDelay(master, media))).length)) && (this.seekable_ && this.seekable_.length && (oldEnd = this.seekable_.end(0), oldStart = this.seekable_.start(0)), audioSeekable ? audioSeekable.start(0) > mainSeekable.end(0) || mainSeekable.start(0) > audioSeekable.end(0) ? this.seekable_ = mainSeekable : this.seekable_ = videojs.createTimeRanges([
|
||||
[
|
||||
audioSeekable.start(0) > mainSeekable.start(0) ? audioSeekable.start(0) : mainSeekable.start(0),
|
||||
audioSeekable.end(0) < mainSeekable.end(0) ? audioSeekable.end(0) : mainSeekable.end(0),
|
||||
],
|
||||
]) : this.seekable_ = mainSeekable, this.seekable_ && this.seekable_.length && this.seekable_.end(0) === oldEnd && this.seekable_.start(0) === oldStart || (this.logger_("seekable updated [" + printableRange(this.seekable_) + "]"), this.tech_.trigger("seekablechanged")));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -14692,7 +14660,7 @@
|
||||
var average = -1, lastSystemBandwidth = -1;
|
||||
if (decay < 0 || decay > 1) throw new Error("Moving average bandwidth decay must be between 0 and 1.");
|
||||
return function() {
|
||||
var pixelRatio = this.useDevicePixelRatio ? global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1 : 1;
|
||||
var pixelRatio = this.useDevicePixelRatio && global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1;
|
||||
return average < 0 && (average = this.systemBandwidth, lastSystemBandwidth = this.systemBandwidth), this.systemBandwidth > 0 && this.systemBandwidth !== lastSystemBandwidth && (average = decay * this.systemBandwidth + (1 - decay) * average, lastSystemBandwidth = this.systemBandwidth), simpleSelector(this.playlists.master, average, parseInt(safeGetComputedStyle(this.tech_.el(), "width"), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), "height"), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.masterPlaylistController_);
|
||||
};
|
||||
},
|
||||
|
@ -643,7 +643,7 @@
|
||||
offset: 4
|
||||
}) || (0, byte_helpers.G3)(bytes, CONSTANTS.fmp4, {
|
||||
offset: 4
|
||||
})) || !!((0, byte_helpers.G3)(bytes, CONSTANTS.moof, {
|
||||
}) || (0, byte_helpers.G3)(bytes, CONSTANTS.moof, {
|
||||
offset: 4
|
||||
}) || (0, byte_helpers.G3)(bytes, CONSTANTS.moov, {
|
||||
offset: 4
|
||||
@ -1198,8 +1198,7 @@
|
||||
}
|
||||
function needNamespaceDefine(node, isHTML, visibleNamespaces) {
|
||||
var prefix = node.prefix || "", uri = node.namespaceURI;
|
||||
if (!uri) return !1;
|
||||
if ("xml" === prefix && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) return !1;
|
||||
if (!uri || "xml" === prefix && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) return !1;
|
||||
for(var i = visibleNamespaces.length; i--;){
|
||||
var ns = visibleNamespaces[i];
|
||||
if (ns.prefix === prefix) return ns.namespace !== uri;
|
||||
@ -4065,9 +4064,7 @@
|
||||
continue;
|
||||
}
|
||||
var m2 = t.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
|
||||
if (!m2) continue;
|
||||
if (!(node = createElement(m2[1], m2[3]))) continue;
|
||||
if (!shouldAdd(current1, node)) continue;
|
||||
if (!m2 || !(node = createElement(m2[1], m2[3])) || !shouldAdd(current1, node)) continue;
|
||||
if (m2[2]) {
|
||||
var classes = m2[2].split(".");
|
||||
classes.forEach(function(cl) {
|
||||
@ -5190,8 +5187,7 @@
|
||||
if ("string" == typeof value) return fromString(value, encodingOrOffset);
|
||||
if (ArrayBuffer.isView(value)) return fromArrayLike(value);
|
||||
if (null == value) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
||||
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) return fromArrayBuffer(value, encodingOrOffset, length);
|
||||
if ("undefined" != typeof SharedArrayBuffer && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) return fromArrayBuffer(value, encodingOrOffset, length);
|
||||
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer) || "undefined" != typeof SharedArrayBuffer && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) return fromArrayBuffer(value, encodingOrOffset, length);
|
||||
if ("number" == typeof value) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
||||
var valueOf = value.valueOf && value.valueOf();
|
||||
if (null != valueOf && valueOf !== value) return Buffer.from(valueOf, encodingOrOffset, length);
|
||||
@ -5263,9 +5259,7 @@
|
||||
}
|
||||
function slowToString(encoding, start, end) {
|
||||
var loweredCase = !1;
|
||||
if ((void 0 === start || start < 0) && (start = 0), start > this.length) return "";
|
||||
if ((void 0 === end || end > this.length) && (end = this.length), end <= 0) return "";
|
||||
if ((end >>>= 0) <= (start >>>= 0)) return "";
|
||||
if ((void 0 === start || start < 0) && (start = 0), start > this.length || ((void 0 === end || end > this.length) && (end = this.length), end <= 0 || (end >>>= 0) <= (start >>>= 0))) return "";
|
||||
for(encoding || (encoding = "utf8");;)switch(encoding){
|
||||
case "hex":
|
||||
return hexSlice(this, start, end);
|
||||
@ -5422,8 +5416,7 @@
|
||||
if (offset + ext > buf.length) throw new RangeError("Index out of range");
|
||||
}
|
||||
function checkIEEE754(buf, value, offset, ext, max, min) {
|
||||
if (offset + ext > buf.length) throw new RangeError("Index out of range");
|
||||
if (offset < 0) throw new RangeError("Index out of range");
|
||||
if (offset + ext > buf.length || offset < 0) throw new RangeError("Index out of range");
|
||||
}
|
||||
function writeFloat(buf, value, offset, littleEndian, noAssert) {
|
||||
return value = +value, offset >>>= 0, noAssert || checkIEEE754(buf, value, offset, 4, 3.4028234663852886e38, -340282346638528860000000000000000000000), ieee754.write(buf, value, offset, littleEndian, 23, 4), offset + 4;
|
||||
@ -5693,8 +5686,7 @@
|
||||
return writeDouble(this, value, offset, !1, noAssert);
|
||||
}, Buffer.prototype.copy = function(target, targetStart, start, end) {
|
||||
if (!Buffer.isBuffer(target)) throw new TypeError("argument should be a Buffer");
|
||||
if (start || (start = 0), end || 0 === end || (end = this.length), targetStart >= target.length && (targetStart = target.length), targetStart || (targetStart = 0), end > 0 && end < start && (end = start), end === start) return 0;
|
||||
if (0 === target.length || 0 === this.length) return 0;
|
||||
if (start || (start = 0), end || 0 === end || (end = this.length), targetStart >= target.length && (targetStart = target.length), targetStart || (targetStart = 0), end > 0 && end < start && (end = start), end === start || 0 === target.length || 0 === this.length) return 0;
|
||||
if (targetStart < 0) throw new RangeError("targetStart out of bounds");
|
||||
if (start < 0 || start >= this.length) throw new RangeError("Index out of range");
|
||||
if (end < 0) throw new RangeError("sourceEnd out of bounds");
|
||||
@ -5729,11 +5721,7 @@
|
||||
for(var codePoint, length = string.length, leadSurrogate = null, bytes = [], i = 0; i < length; ++i){
|
||||
if ((codePoint = string.charCodeAt(i)) > 0xd7ff && codePoint < 0xe000) {
|
||||
if (!leadSurrogate) {
|
||||
if (codePoint > 0xdbff) {
|
||||
(units -= 3) > -1 && bytes.push(0xef, 0xbf, 0xbd);
|
||||
continue;
|
||||
}
|
||||
if (i + 1 === length) {
|
||||
if (codePoint > 0xdbff || i + 1 === length) {
|
||||
(units -= 3) > -1 && bytes.push(0xef, 0xbf, 0xbd);
|
||||
continue;
|
||||
}
|
||||
@ -5830,8 +5818,7 @@
|
||||
var setPrototypeOf = __webpack_require__(9611);
|
||||
function _construct(Parent1, args1, Class1) {
|
||||
return (_construct = !function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == 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;
|
||||
|
@ -847,10 +847,7 @@
|
||||
function lineIsHidden(doc, line) {
|
||||
var sps = sawCollapsedSpans && line.markedSpans;
|
||||
if (sps) {
|
||||
for(var sp = void 0, i = 0; i < sps.length; ++i)if ((sp = sps[i]).marker.collapsed) {
|
||||
if (null == sp.from) return !0;
|
||||
if (!sp.marker.widgetNode && 0 == sp.from && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) return !0;
|
||||
}
|
||||
for(var sp = void 0, i = 0; i < sps.length; ++i)if ((sp = sps[i]).marker.collapsed && (null == sp.from || !sp.marker.widgetNode && 0 == sp.from && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))) return !0;
|
||||
}
|
||||
}
|
||||
function lineIsHiddenInner(doc, line, span) {
|
||||
@ -1553,8 +1550,7 @@
|
||||
return coords;
|
||||
}
|
||||
function findViewIndex(cm, n) {
|
||||
if (n >= cm.display.viewTo) return null;
|
||||
if ((n -= cm.display.viewFrom) < 0) return null;
|
||||
if (n >= cm.display.viewTo || (n -= cm.display.viewFrom) < 0) return null;
|
||||
for(var view = cm.display.view, i = 0; i < view.length; i++)if ((n -= view[i].size) < 0) return i;
|
||||
}
|
||||
function regChange(cm, from, to, lendiff) {
|
||||
@ -3330,8 +3326,7 @@
|
||||
lineInfo: function(line) {
|
||||
var n;
|
||||
if ("number" == typeof line) {
|
||||
if (!isLine(this, line)) return null;
|
||||
if (n = line, line = getLine(this, line), !line) return null;
|
||||
if (!isLine(this, line) || (n = line, line = getLine(this, line), !line)) return null;
|
||||
} else if (null == (n = lineNo1(line))) return null;
|
||||
return {
|
||||
line: n,
|
||||
@ -4152,7 +4147,7 @@
|
||||
16 == e.keyCode && (this.doc.sel.shift = !1), signalDOMEvent(this, e);
|
||||
}
|
||||
function onKeyPress(e) {
|
||||
if ((!e.target || e.target == this.display.input.getField()) && !(eventInWidget(this.display, e) || signalDOMEvent(this, e)) && (!e.ctrlKey || e.altKey) && (!mac || !e.metaKey)) {
|
||||
if (!(e.target && e.target != this.display.input.getField() || eventInWidget(this.display, e) || signalDOMEvent(this, e) || e.ctrlKey && !e.altKey || mac && e.metaKey)) {
|
||||
var cm, keyCode = e.keyCode, charCode = e.charCode;
|
||||
if (presto && keyCode == lastStoppedKey) {
|
||||
lastStoppedKey = null, e_preventDefault(e);
|
||||
@ -4340,7 +4335,7 @@
|
||||
return gutterEvent(cm, e, "gutterClick", !0);
|
||||
}
|
||||
function onContextMenu(cm, e) {
|
||||
eventInWidget(cm.display, e) || contextMenuInGutter(cm, e) || !signalDOMEvent(cm, e, "contextmenu") && (captureRightClick || cm.display.input.onContextMenu(e));
|
||||
!(eventInWidget(cm.display, e) || contextMenuInGutter(cm, e) || signalDOMEvent(cm, e, "contextmenu")) && (captureRightClick || cm.display.input.onContextMenu(e));
|
||||
}
|
||||
function contextMenuInGutter(cm, e) {
|
||||
return !!hasHandler(cm, "gutterContextMenu") && gutterEvent(cm, e, "gutterContextMenu", !1);
|
||||
@ -4638,8 +4633,7 @@
|
||||
return moveInStorageOrder ? new Pos(start.line, mv(ch, 1), "before") : new Pos(start.line, ch, "after");
|
||||
}; partPos >= 0 && partPos < bidi.length; partPos += dir){
|
||||
var part = bidi[partPos], moveInStorageOrder1 = dir > 0 == (1 != part.level), ch7 = moveInStorageOrder1 ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);
|
||||
if (part.from <= ch7 && ch7 < part.to) return getRes(ch7, moveInStorageOrder1);
|
||||
if (ch7 = moveInStorageOrder1 ? part.from : mv(part.to, -1), wrappedLineExtent.begin <= ch7 && ch7 < wrappedLineExtent.end) return getRes(ch7, moveInStorageOrder1);
|
||||
if (part.from <= ch7 && ch7 < part.to || (ch7 = moveInStorageOrder1 ? part.from : mv(part.to, -1), wrappedLineExtent.begin <= ch7 && ch7 < wrappedLineExtent.end)) return getRes(ch7, moveInStorageOrder1);
|
||||
}
|
||||
}, res = searchInVisualLine(partPos2 + dir2, dir2, wrappedLineExtent2);
|
||||
if (res) return res;
|
||||
|
@ -153,8 +153,7 @@
|
||||
if ("string" == typeof e) return fromString(e, r);
|
||||
if (ArrayBuffer.isView(e)) return fromArrayLike(e);
|
||||
if (null == e) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
|
||||
if (isInstance(e, ArrayBuffer) || e && isInstance(e.buffer, ArrayBuffer)) return fromArrayBuffer(e, r, t);
|
||||
if ("undefined" != typeof SharedArrayBuffer && (isInstance(e, SharedArrayBuffer) || e && isInstance(e.buffer, SharedArrayBuffer))) return fromArrayBuffer(e, r, t);
|
||||
if (isInstance(e, ArrayBuffer) || e && isInstance(e.buffer, ArrayBuffer) || "undefined" != typeof SharedArrayBuffer && (isInstance(e, SharedArrayBuffer) || e && isInstance(e.buffer, SharedArrayBuffer))) return fromArrayBuffer(e, r, t);
|
||||
if ("number" == typeof e) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
||||
var f = e.valueOf && e.valueOf();
|
||||
if (null != f && f !== e) return Buffer.from(f, r, t);
|
||||
@ -226,9 +225,7 @@
|
||||
}
|
||||
function slowToString(e, r, t) {
|
||||
var f = !1;
|
||||
if ((void 0 === r || r < 0) && (r = 0), r > this.length) return "";
|
||||
if ((void 0 === t || t > this.length) && (t = this.length), t <= 0) return "";
|
||||
if ((t >>>= 0) <= (r >>>= 0)) return "";
|
||||
if ((void 0 === r || r < 0) && (r = 0), r > this.length || ((void 0 === t || t > this.length) && (t = this.length), t <= 0 || (t >>>= 0) <= (r >>>= 0))) return "";
|
||||
for(e || (e = "utf8");;)switch(e){
|
||||
case "hex":
|
||||
return hexSlice(this, r, t);
|
||||
@ -385,8 +382,7 @@
|
||||
if (t + f > e.length) throw new RangeError("Index out of range");
|
||||
}
|
||||
function checkIEEE754(e, r, t, f, n, i) {
|
||||
if (t + f > e.length) throw new RangeError("Index out of range");
|
||||
if (t < 0) throw new RangeError("Index out of range");
|
||||
if (t + f > e.length || t < 0) throw new RangeError("Index out of range");
|
||||
}
|
||||
function writeFloat(e, r, t, f, i) {
|
||||
return r = +r, t >>>= 0, i || checkIEEE754(e, r, t, 4, 34028234663852886e22, -340282346638528860000000000000000000000), n2.write(e, r, t, f, 23, 4), t + 4;
|
||||
@ -656,8 +652,7 @@
|
||||
return writeDouble(this, e, r, !1, t);
|
||||
}, Buffer.prototype.copy = function(e, r, t, f) {
|
||||
if (!Buffer.isBuffer(e)) throw new TypeError("argument should be a Buffer");
|
||||
if (t || (t = 0), f || 0 === f || (f = this.length), r >= e.length && (r = e.length), r || (r = 0), f > 0 && f < t && (f = t), f === t) return 0;
|
||||
if (0 === e.length || 0 === this.length) return 0;
|
||||
if (t || (t = 0), f || 0 === f || (f = this.length), r >= e.length && (r = e.length), r || (r = 0), f > 0 && f < t && (f = t), f === t || 0 === e.length || 0 === this.length) return 0;
|
||||
if (r < 0) throw new RangeError("targetStart out of bounds");
|
||||
if (t < 0 || t >= this.length) throw new RangeError("Index out of range");
|
||||
if (f < 0) throw new RangeError("sourceEnd out of bounds");
|
||||
@ -692,11 +687,7 @@
|
||||
for(var t, f = e.length, n = null, i = [], o = 0; o < f; ++o){
|
||||
if ((t = e.charCodeAt(o)) > 55295 && t < 57344) {
|
||||
if (!n) {
|
||||
if (t > 56319) {
|
||||
(r -= 3) > -1 && i.push(239, 191, 189);
|
||||
continue;
|
||||
}
|
||||
if (o + 1 === f) {
|
||||
if (t > 56319 || o + 1 === f) {
|
||||
(r -= 3) > -1 && i.push(239, 191, 189);
|
||||
continue;
|
||||
}
|
||||
@ -901,8 +892,7 @@
|
||||
901: function(r10) {
|
||||
r10.exports = function(r, e, o) {
|
||||
if (r.filter) return r.filter(e, o);
|
||||
if (null == r) throw new TypeError();
|
||||
if ("function" != typeof e) throw new TypeError();
|
||||
if (null == r || "function" != typeof e) throw new TypeError();
|
||||
for(var n = [], i = 0; i < r.length; i++)if (t.call(r, i)) {
|
||||
var a = r[i];
|
||||
e.call(o, a, i, r) && n.push(a);
|
||||
@ -1706,15 +1696,11 @@
|
||||
if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1;
|
||||
if ("symbol" == typeof Symbol.iterator) return !0;
|
||||
var r = {}, t = Symbol("test"), e = Object(t);
|
||||
if ("string" == typeof t) return !1;
|
||||
if ("[object Symbol]" !== Object.prototype.toString.call(t)) return !1;
|
||||
if ("[object Symbol]" !== Object.prototype.toString.call(e)) return !1;
|
||||
if ("string" == typeof t || "[object Symbol]" !== Object.prototype.toString.call(t) || "[object Symbol]" !== Object.prototype.toString.call(e)) return !1;
|
||||
for(t in r[t] = 42, r)return !1;
|
||||
if ("function" == typeof Object.keys && 0 !== Object.keys(r).length) return !1;
|
||||
if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(r).length) return !1;
|
||||
if ("function" == typeof Object.keys && 0 !== Object.keys(r).length || "function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(r).length) return !1;
|
||||
var n = Object.getOwnPropertySymbols(r);
|
||||
if (1 !== n.length || n[0] !== t) return !1;
|
||||
if (!Object.prototype.propertyIsEnumerable.call(r, t)) return !1;
|
||||
if (1 !== n.length || n[0] !== t || !Object.prototype.propertyIsEnumerable.call(r, t)) return !1;
|
||||
if ("function" == typeof Object.getOwnPropertyDescriptor) {
|
||||
var i = Object.getOwnPropertyDescriptor(r, t);
|
||||
if (42 !== i.value || !0 !== i.enumerable) return !1;
|
||||
|
@ -169,7 +169,7 @@
|
||||
}
|
||||
if (!strictCSP) {
|
||||
var container = target;
|
||||
target && target.getRootNode ? (container = target.getRootNode()) && container != target || (container = document) : container = document;
|
||||
target && target.getRootNode && (container = target.getRootNode()) && container != target || (container = document);
|
||||
var doc = container.ownerDocument || container;
|
||||
if (id && exports.hasCssString(id, container)) return null;
|
||||
id && (cssText += "\n/*# sourceURL=ace/css/" + id + " */");
|
||||
@ -3395,15 +3395,13 @@
|
||||
var stringBefore = token && /string|escape/.test(token.type), stringAfter = !rightToken || /string|escape/.test(rightToken.type);
|
||||
if (rightChar == quote) (pair = stringBefore !== stringAfter) && /string\.end/.test(rightToken.type) && (pair = !1);
|
||||
else {
|
||||
if (stringBefore && !stringAfter) return null;
|
||||
if (stringBefore && stringAfter) return null;
|
||||
if (stringBefore && !stringAfter || stringBefore && stringAfter) return null;
|
||||
var wordRe = session.$mode.tokenRe;
|
||||
wordRe.lastIndex = 0;
|
||||
var isWordBefore = wordRe.test(leftChar);
|
||||
wordRe.lastIndex = 0;
|
||||
var isWordAfter = wordRe.test(leftChar);
|
||||
if (isWordBefore || isWordAfter) return null;
|
||||
if (rightChar && !/[\s;,.})\]\\]/.test(rightChar)) return null;
|
||||
if (isWordBefore || isWordAfter || rightChar && !/[\s;,.})\]\\]/.test(rightChar)) return null;
|
||||
var charBefore = line[cursor.column - 2];
|
||||
if (leftChar == quote && (charBefore == quote || wordRe.test(charBefore))) return null;
|
||||
pair = !0;
|
||||
@ -5161,8 +5159,7 @@
|
||||
for(var folds = foldLine.folds, i = 0; i < folds.length; i++){
|
||||
var range = folds[i].range;
|
||||
if (range.contains(row, column)) {
|
||||
if (1 == side && range.isEnd(row, column) && !range.isEmpty()) continue;
|
||||
if (-1 == side && range.isStart(row, column) && !range.isEmpty()) continue;
|
||||
if (1 == side && range.isEnd(row, column) && !range.isEmpty() || -1 == side && range.isStart(row, column) && !range.isEmpty()) continue;
|
||||
return folds[i];
|
||||
}
|
||||
}
|
||||
@ -6654,9 +6651,7 @@
|
||||
for(var i = command.length; i--;)if (this.exec(command[i], editor, args)) return !0;
|
||||
return !1;
|
||||
}
|
||||
if ("string" == typeof command && (command = this.commands[command]), !command) return !1;
|
||||
if (editor && editor.$readOnly && !command.readOnly) return !1;
|
||||
if (!1 != this.$checkCommandState && command.isAvailable && !command.isAvailable(editor)) return !1;
|
||||
if ("string" == typeof command && (command = this.commands[command]), !command || editor && editor.$readOnly && !command.readOnly || !1 != this.$checkCommandState && command.isAvailable && !command.isAvailable(editor)) return !1;
|
||||
var e = {
|
||||
editor: editor,
|
||||
command: command,
|
||||
@ -8472,8 +8467,7 @@
|
||||
for(var first = (rows = this.$getSelectedRows(ranges[i])).first, last = rows.last; ++i < l;){
|
||||
totalDiff && ranges[i].moveBy(totalDiff, 0);
|
||||
var subRows = this.$getSelectedRows(ranges[i]);
|
||||
if (copy && subRows.first != last) break;
|
||||
if (!copy && subRows.first > last + 1) break;
|
||||
if (copy && subRows.first != last || !copy && subRows.first > last + 1) break;
|
||||
last = subRows.last;
|
||||
}
|
||||
for(i--, diff = this.session.$moveLines(first, last, copy ? 0 : dir), copy && -1 == dir && (rangeIndex = i + 1); rangeIndex <= i;)ranges[rangeIndex].moveBy(diff, 0), rangeIndex++;
|
||||
@ -9262,8 +9256,7 @@
|
||||
if (this.config = config, this.$updateCursorRow(), this.$lines.pageChanged(oldConfig, config)) return this.update(config);
|
||||
this.$lines.moveContainer(config);
|
||||
var lastRow = Math.min(config.lastRow + config.gutterOffset, this.session.getLength() - 1), oldLastRow = this.oldLastRow;
|
||||
if (this.oldLastRow = lastRow, !oldConfig || oldLastRow < config.firstRow) return this.update(config);
|
||||
if (lastRow < oldConfig.firstRow) return this.update(config);
|
||||
if (this.oldLastRow = lastRow, !oldConfig || oldLastRow < config.firstRow || lastRow < oldConfig.firstRow) return this.update(config);
|
||||
if (oldConfig.firstRow < config.firstRow) for(var row = this.session.getFoldedRowCount(oldConfig.firstRow, config.firstRow - 1); row > 0; row--)this.$lines.shift();
|
||||
if (oldLastRow > lastRow) for(var row = this.session.getFoldedRowCount(lastRow + 1, oldLastRow); row > 0; row--)this.$lines.pop();
|
||||
config.firstRow < oldConfig.firstRow && this.$lines.unshift(this.$renderLines(config, config.firstRow, oldConfig.firstRow - 1)), lastRow > oldLastRow && this.$lines.push(this.$renderLines(config, oldLastRow + 1, lastRow)), this.updateLineHighlight(), this._signal("afterRender"), this.$updateGutterWidth(config);
|
||||
@ -9484,10 +9477,7 @@
|
||||
if (this.config = config, this.$lines.pageChanged(oldConfig, config)) return this.update(config);
|
||||
this.$lines.moveContainer(config);
|
||||
var lastRow = config.lastRow, oldLastRow = oldConfig ? oldConfig.lastRow : -1;
|
||||
if (!oldConfig || oldLastRow < config.firstRow) return this.update(config);
|
||||
if (lastRow < oldConfig.firstRow) return this.update(config);
|
||||
if (!oldConfig || oldConfig.lastRow < config.firstRow) return this.update(config);
|
||||
if (config.lastRow < oldConfig.firstRow) return this.update(config);
|
||||
if (!oldConfig || oldLastRow < config.firstRow || lastRow < oldConfig.firstRow || !oldConfig || oldConfig.lastRow < config.firstRow || config.lastRow < oldConfig.firstRow) return this.update(config);
|
||||
if (oldConfig.firstRow < config.firstRow) for(var row = this.session.getFoldedRowCount(oldConfig.firstRow, config.firstRow - 1); row > 0; row--)this.$lines.shift();
|
||||
if (oldConfig.lastRow > config.lastRow) for(var row = this.session.getFoldedRowCount(config.lastRow + 1, oldConfig.lastRow); row > 0; row--)this.$lines.pop();
|
||||
config.firstRow < oldConfig.firstRow && this.$lines.unshift(this.$renderLinesFragment(config, config.firstRow, oldConfig.firstRow - 1)), config.lastRow > oldConfig.lastRow && this.$lines.push(this.$renderLinesFragment(config, oldConfig.lastRow + 1, config.lastRow));
|
||||
@ -10817,7 +10807,7 @@ margin: 0 10px;\
|
||||
}, this.scrollBy = function(deltaX, deltaY) {
|
||||
deltaY && this.session.setScrollTop(this.session.getScrollTop() + deltaY), deltaX && this.session.setScrollLeft(this.session.getScrollLeft() + deltaX);
|
||||
}, this.isScrollableBy = function(deltaX, deltaY) {
|
||||
return !!(deltaY < 0 && this.session.getScrollTop() >= 1 - this.scrollMargin.top) || !!(deltaY > 0 && this.session.getScrollTop() + this.$size.scrollerHeight - this.layerConfig.maxHeight < -1 + this.scrollMargin.bottom) || !!(deltaX < 0 && this.session.getScrollLeft() >= 1 - this.scrollMargin.left) || !!(deltaX > 0 && this.session.getScrollLeft() + this.$size.scrollerWidth - this.layerConfig.width < -1 + this.scrollMargin.right) || void 0;
|
||||
if (deltaY < 0 && this.session.getScrollTop() >= 1 - this.scrollMargin.top || deltaY > 0 && this.session.getScrollTop() + this.$size.scrollerHeight - this.layerConfig.maxHeight < -1 + this.scrollMargin.bottom || deltaX < 0 && this.session.getScrollLeft() >= 1 - this.scrollMargin.left || deltaX > 0 && this.session.getScrollLeft() + this.$size.scrollerWidth - this.layerConfig.width < -1 + this.scrollMargin.right) return !0;
|
||||
}, this.pixelToScreenCoordinates = function(x, y) {
|
||||
if (this.$hasCssTransforms) {
|
||||
canvasPos = {
|
||||
@ -12072,7 +12062,7 @@ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZg
|
||||
(function() {
|
||||
this.getRowLength = function(row) {
|
||||
var h;
|
||||
return (h = this.lineWidgets ? this.lineWidgets[row] && this.lineWidgets[row].rowCount || 0 : 0, this.$useWrapMode && this.$wrapData[row]) ? this.$wrapData[row].length + 1 + h : 1 + h;
|
||||
return (h = this.lineWidgets && this.lineWidgets[row] && this.lineWidgets[row].rowCount || 0, this.$useWrapMode && this.$wrapData[row]) ? this.$wrapData[row].length + 1 + h : 1 + h;
|
||||
}, this.$getWidgetScreenLength = function() {
|
||||
var screenRows = 0;
|
||||
return this.lineWidgets.forEach(function(w) {
|
||||
|
@ -3930,8 +3930,7 @@
|
||||
a = a.return;
|
||||
}
|
||||
for(a.sibling.return = a.return, a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag;){
|
||||
if (2 & a.flags) continue a;
|
||||
if (null === a.child || 4 === a.tag) continue a;
|
||||
if (2 & a.flags || null === a.child || 4 === a.tag) continue a;
|
||||
a.child.return = a, a = a.child;
|
||||
}
|
||||
if (!(2 & a.flags)) return a.stateNode;
|
||||
|
@ -438,8 +438,7 @@
|
||||
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8436), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8370), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2911), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3001), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7130), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2374), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9178), Welcome1 = function(_React$Component) {
|
||||
(0, _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__.Z)(Welcome, _React$Component);
|
||||
var Derived, hasNativeReflectConstruct, _super = (Derived = Welcome, hasNativeReflectConstruct = function() {
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||||
if (Reflect.construct.sham) return !1;
|
||||
if ("undefined" == typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1;
|
||||
if ("function" == typeof Proxy) return !0;
|
||||
try {
|
||||
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -3371,8 +3371,7 @@
|
||||
return comp(b, a);
|
||||
} : comp;
|
||||
}
|
||||
if (!isArray(array)) return array;
|
||||
if (!sortPredicate) return array;
|
||||
if (!isArray(array) || !sortPredicate) return array;
|
||||
sortPredicate = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
return forEach(obj, function(value, index, list) {
|
||||
|
@ -560,7 +560,7 @@
|
||||
});
|
||||
},
|
||||
delay: function(time, type) {
|
||||
return time = jQuery.fx ? jQuery.fx.speeds[time] || time : time, type = type || "fx", this.queue(type, function(next, hooks) {
|
||||
return time = jQuery.fx && jQuery.fx.speeds[time] || time, type = type || "fx", this.queue(type, function(next, hooks) {
|
||||
var timeout = setTimeout(next, time);
|
||||
hooks.stop = function() {
|
||||
clearTimeout(timeout);
|
||||
@ -865,26 +865,24 @@
|
||||
var handle, ontype, cur, bubbleType, special, tmp, i, eventPath = [
|
||||
elem || document1
|
||||
], type = core_hasOwn.call(event, "type") ? event.type : event, namespaces = core_hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
|
||||
if (cur = tmp = elem = elem || document1, 3 !== elem.nodeType && 8 !== elem.nodeType) {
|
||||
if (!rfocusMorph.test(type + jQuery.event.triggered) && (type.indexOf(".") >= 0 && (type = (namespaces = type.split(".")).shift(), namespaces.sort()), ontype = 0 > type.indexOf(":") && "on" + type, (event = event[jQuery.expando] ? event : new jQuery.Event(type, "object" == typeof event && event)).isTrigger = !0, event.namespace = namespaces.join("."), event.namespace_re = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, event.result = undefined, event.target || (event.target = elem), data = null == data ? [
|
||||
event
|
||||
] : jQuery.makeArray(data, [
|
||||
event
|
||||
]), special = jQuery.event.special[type] || {}, onlyHandlers || !special.trigger || !1 !== special.trigger.apply(elem, data))) {
|
||||
if (!onlyHandlers && !special.noBubble && !jQuery.isWindow(elem)) {
|
||||
for(bubbleType = special.delegateType || type, rfocusMorph.test(bubbleType + type) || (cur = cur.parentNode); cur; cur = cur.parentNode)eventPath.push(cur), tmp = cur;
|
||||
tmp === (elem.ownerDocument || document1) && eventPath.push(tmp.defaultView || tmp.parentWindow || window1);
|
||||
}
|
||||
for(i = 0; (cur = eventPath[i++]) && !event.isPropagationStopped();)event.type = i > 1 ? bubbleType : special.bindType || type, (handle = (jQuery._data(cur, "events") || {})[event.type] && jQuery._data(cur, "handle")) && handle.apply(cur, data), (handle = ontype && cur[ontype]) && jQuery.acceptData(cur) && handle.apply && !1 === handle.apply(cur, data) && event.preventDefault();
|
||||
if (event.type = type, !onlyHandlers && !event.isDefaultPrevented() && (!special._default || !1 === special._default.apply(elem.ownerDocument, data)) && !("click" === type && jQuery.nodeName(elem, "a")) && jQuery.acceptData(elem) && ontype && elem[type] && !jQuery.isWindow(elem)) {
|
||||
(tmp = elem[ontype]) && (elem[ontype] = null), jQuery.event.triggered = type;
|
||||
try {
|
||||
elem[type]();
|
||||
} catch (e) {}
|
||||
jQuery.event.triggered = undefined, tmp && (elem[ontype] = tmp);
|
||||
}
|
||||
return event.result;
|
||||
if (cur = tmp = elem = elem || document1, !(3 === elem.nodeType || 8 === elem.nodeType || rfocusMorph.test(type + jQuery.event.triggered)) && (type.indexOf(".") >= 0 && (type = (namespaces = type.split(".")).shift(), namespaces.sort()), ontype = 0 > type.indexOf(":") && "on" + type, (event = event[jQuery.expando] ? event : new jQuery.Event(type, "object" == typeof event && event)).isTrigger = !0, event.namespace = namespaces.join("."), event.namespace_re = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, event.result = undefined, event.target || (event.target = elem), data = null == data ? [
|
||||
event
|
||||
] : jQuery.makeArray(data, [
|
||||
event
|
||||
]), special = jQuery.event.special[type] || {}, onlyHandlers || !special.trigger || !1 !== special.trigger.apply(elem, data))) {
|
||||
if (!onlyHandlers && !special.noBubble && !jQuery.isWindow(elem)) {
|
||||
for(bubbleType = special.delegateType || type, rfocusMorph.test(bubbleType + type) || (cur = cur.parentNode); cur; cur = cur.parentNode)eventPath.push(cur), tmp = cur;
|
||||
tmp === (elem.ownerDocument || document1) && eventPath.push(tmp.defaultView || tmp.parentWindow || window1);
|
||||
}
|
||||
for(i = 0; (cur = eventPath[i++]) && !event.isPropagationStopped();)event.type = i > 1 ? bubbleType : special.bindType || type, (handle = (jQuery._data(cur, "events") || {})[event.type] && jQuery._data(cur, "handle")) && handle.apply(cur, data), (handle = ontype && cur[ontype]) && jQuery.acceptData(cur) && handle.apply && !1 === handle.apply(cur, data) && event.preventDefault();
|
||||
if (event.type = type, !onlyHandlers && !event.isDefaultPrevented() && (!special._default || !1 === special._default.apply(elem.ownerDocument, data)) && !("click" === type && jQuery.nodeName(elem, "a")) && jQuery.acceptData(elem) && ontype && elem[type] && !jQuery.isWindow(elem)) {
|
||||
(tmp = elem[ontype]) && (elem[ontype] = null), jQuery.event.triggered = type;
|
||||
try {
|
||||
elem[type]();
|
||||
} catch (e) {}
|
||||
jQuery.event.triggered = undefined, tmp && (elem[ontype] = tmp);
|
||||
}
|
||||
return event.result;
|
||||
}
|
||||
},
|
||||
dispatch: function(event) {
|
||||
|
@ -69,7 +69,7 @@
|
||||
var removeData, orig2, uuid = 0, runiqueId = /^ui-id-\d+$/;
|
||||
function focusable(element, isTabIndexNotNaN) {
|
||||
var map, mapName, img, nodeName = element.nodeName.toLowerCase();
|
||||
return "area" === nodeName ? (mapName = (map = element.parentNode).name, !!element.href && !!mapName && "map" === map.nodeName.toLowerCase() && !!(img = $("img[usemap=#" + mapName + "]")[0]) && visible(img)) : (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : "a" === nodeName ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) && visible(element);
|
||||
return "area" === nodeName ? (mapName = (map = element.parentNode).name, !!element.href && !!mapName && "map" === map.nodeName.toLowerCase() && !!(img = $("img[usemap=#" + mapName + "]")[0]) && visible(img)) : (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : "a" === nodeName && element.href || isTabIndexNotNaN) && visible(element);
|
||||
}
|
||||
function visible(element) {
|
||||
return $.expr.filters.visible(element) && !$(element).parents().addBack().filter(function() {
|
||||
@ -336,7 +336,7 @@
|
||||
}, returnValue = value.apply(this, arguments), this._super = __super, this._superApply = __superApply, returnValue;
|
||||
};
|
||||
}), constructor.prototype = $3.widget.extend(basePrototype, {
|
||||
widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix || name : name
|
||||
widgetEventPrefix: existingConstructor && basePrototype.widgetEventPrefix || name
|
||||
}, proxiedPrototype, {
|
||||
constructor: constructor,
|
||||
namespace: namespace,
|
||||
@ -1585,7 +1585,7 @@
|
||||
]);
|
||||
return;
|
||||
}
|
||||
if (this._triggerPageBeforeChange(toPage, triggerData, settings) && !((beforeTransition = this._triggerWithDeprecated("beforetransition", triggerData)).deprecatedEvent.isDefaultPrevented() || beforeTransition.event.isDefaultPrevented())) {
|
||||
if (!(!this._triggerPageBeforeChange(toPage, triggerData, settings) || (beforeTransition = this._triggerWithDeprecated("beforetransition", triggerData)).deprecatedEvent.isDefaultPrevented() || beforeTransition.event.isDefaultPrevented())) {
|
||||
if (isPageTransitioning = !0, toPage[0] !== $16.mobile.firstPage[0] || settings.dataUrl || (settings.dataUrl = $16.mobile.path.documentUrl.hrefNoHash), fromPage = settings.fromPage, url = settings.dataUrl && $16.mobile.path.convertUrlToDataUrl(settings.dataUrl) || toPage.jqmData("url"), pageUrl = url, $16.mobile.path.getFilePath(url), active = $16.mobile.navigate.history.getActive(), activeIsInitialPage = 0 === $16.mobile.navigate.history.activeIndex, historyDir = 0, pageTitle = document1.title, isDialog = ("dialog" === settings.role || "dialog" === toPage.jqmData("role")) && !0 !== toPage.jqmData("dialog"), fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition) {
|
||||
isPageTransitioning = !1, this._triggerWithDeprecated("transition", triggerData), this.element.trigger("pagechange", triggerData), settings.fromHashChange && $16.mobile.navigate.history.direct({
|
||||
url: url
|
||||
@ -1678,10 +1678,7 @@
|
||||
if ($lastVClicked = $(target), $.data(target, "mobile-button")) {
|
||||
if (!getAjaxFormData($(target).closest("form"), !0)) return;
|
||||
target.parentNode && (target = target.parentNode);
|
||||
} else {
|
||||
if (!((target = findClosestLink(target)) && "#" !== $.mobile.path.parseUrl(target.getAttribute("href") || "#").hash)) return;
|
||||
if (!$(target).jqmHijackable().length) return;
|
||||
}
|
||||
} else if (!((target = findClosestLink(target)) && "#" !== $.mobile.path.parseUrl(target.getAttribute("href") || "#").hash) || !$(target).jqmHijackable().length) return;
|
||||
~target.className.indexOf("ui-link-inherit") ? target.parentNode && (btnEls = $.data(target.parentNode, "buttonElements")) : btnEls = $.data(target, "buttonElements"), btnEls ? target = btnEls.outer : needClosest = !0, $btn = $(target), needClosest && ($btn = $btn.closest(".ui-btn")), $btn.length > 0 && !$btn.hasClass("ui-state-disabled") && ($.mobile.removeActiveLinkClass(!0), $.mobile.activeClickedLink = $btn, $.mobile.activeClickedLink.addClass($.mobile.activeBtnClass));
|
||||
}
|
||||
}), $.mobile.document.bind("click", function(event) {
|
||||
|
@ -56,8 +56,7 @@
|
||||
}
|
||||
}
|
||||
function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
|
||||
if (null == value) return !0;
|
||||
if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) return !0;
|
||||
if (null == value || shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) return !0;
|
||||
if (isCustomComponentTag) return !1;
|
||||
if (null !== propertyInfo) switch(propertyInfo.type){
|
||||
case 3:
|
||||
@ -723,7 +722,7 @@
|
||||
var didWarnSelectedSetOnOption = !1, didWarnInvalidChild = !1;
|
||||
function validateProps(element, props) {
|
||||
"object" == typeof props.children && null !== props.children && React.Children.forEach(props.children, function(child) {
|
||||
if (null != child) "string" != typeof child && "number" != typeof child && "string" == typeof child.type && (didWarnInvalidChild || (didWarnInvalidChild = !0, error1("Only strings and numbers are supported as <option> children.")));
|
||||
null != child && "string" != typeof child && "number" != typeof child && "string" == typeof child.type && (didWarnInvalidChild || (didWarnInvalidChild = !0, error1("Only strings and numbers are supported as <option> children.")));
|
||||
}), null == props.selected || didWarnSelectedSetOnOption || (error1("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."), didWarnSelectedSetOnOption = !0);
|
||||
}
|
||||
function getHostProps$1(element, props) {
|
||||
@ -3643,7 +3642,7 @@
|
||||
}
|
||||
function getPossibleStandardName(propName) {
|
||||
var lowerCasedName = propName.toLowerCase();
|
||||
return possibleStandardNames.hasOwnProperty(lowerCasedName) ? possibleStandardNames[lowerCasedName] || null : null;
|
||||
return possibleStandardNames.hasOwnProperty(lowerCasedName) && possibleStandardNames[lowerCasedName] || null;
|
||||
}
|
||||
function warnForUnmatchedText(textNode, text) {
|
||||
warnForTextDifference(textNode.nodeValue, text);
|
||||
@ -3658,7 +3657,7 @@
|
||||
didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1("Expected server HTML to contain a matching <%s> in <%s>.", tag, parentNode.nodeName.toLowerCase()));
|
||||
}
|
||||
function warnForInsertedHydratedText(parentNode, text) {
|
||||
"" !== text && (didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase())));
|
||||
"" === text || didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase()));
|
||||
}
|
||||
normalizeMarkupForTextOrAttribute = function(markup) {
|
||||
return ("string" == typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, "");
|
||||
@ -4737,13 +4736,11 @@
|
||||
}
|
||||
var warnForMissingKey = function(child, returnFiber) {};
|
||||
didWarnAboutMaps = !1, didWarnAboutGenerators = !1, didWarnAboutStringRefs = {}, ownerHasKeyUseWarning = {}, ownerHasFunctionTypeWarning = {}, warnForMissingKey = function(child, returnFiber) {
|
||||
if (null !== child && "object" == typeof child) {
|
||||
if (child._store && !child._store.validated && null == child.key) {
|
||||
if ("object" != typeof child._store) throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");
|
||||
child._store.validated = !0;
|
||||
var componentName = getComponentName(returnFiber.type) || "Component";
|
||||
ownerHasKeyUseWarning[componentName] || (ownerHasKeyUseWarning[componentName] = !0, error1('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'));
|
||||
}
|
||||
if (null !== child && "object" == typeof child && child._store && !child._store.validated && null == child.key) {
|
||||
if ("object" != typeof child._store) throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");
|
||||
child._store.validated = !0;
|
||||
var componentName = getComponentName(returnFiber.type) || "Component";
|
||||
ownerHasKeyUseWarning[componentName] || (ownerHasKeyUseWarning[componentName] = !0, error1('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'));
|
||||
}
|
||||
};
|
||||
var isArray$1 = Array.isArray;
|
||||
@ -7828,8 +7825,7 @@
|
||||
node = node.return;
|
||||
}
|
||||
for(node.sibling.return = node.return, node = node.sibling; 5 !== node.tag && 6 !== node.tag && 18 !== node.tag;){
|
||||
if (node.flags & Placement) continue siblings;
|
||||
if (null === node.child || 4 === node.tag) continue siblings;
|
||||
if (node.flags & Placement || null === node.child || 4 === node.tag) continue siblings;
|
||||
node.child.return = node, node = node.child;
|
||||
}
|
||||
if (!(node.flags & Placement)) return node.stateNode;
|
||||
@ -8711,23 +8707,21 @@
|
||||
}
|
||||
var didWarnStateUpdateForNotYetMountedComponent = null;
|
||||
function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
|
||||
if ((16 & executionContext) == 0) {
|
||||
if (6 & fiber.mode) {
|
||||
var tag = fiber.tag;
|
||||
if (2 === tag || 3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag || 22 === tag) {
|
||||
var componentName = getComponentName(fiber.type) || "ReactComponent";
|
||||
if (null !== didWarnStateUpdateForNotYetMountedComponent) {
|
||||
if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) return;
|
||||
didWarnStateUpdateForNotYetMountedComponent.add(componentName);
|
||||
} else didWarnStateUpdateForNotYetMountedComponent = new Set([
|
||||
componentName
|
||||
]);
|
||||
var previousFiber = current1;
|
||||
try {
|
||||
setCurrentFiber(fiber), error1("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.");
|
||||
} finally{
|
||||
previousFiber ? setCurrentFiber(fiber) : resetCurrentFiber();
|
||||
}
|
||||
if ((16 & executionContext) == 0 && 6 & fiber.mode) {
|
||||
var tag = fiber.tag;
|
||||
if (2 === tag || 3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag || 22 === tag) {
|
||||
var componentName = getComponentName(fiber.type) || "ReactComponent";
|
||||
if (null !== didWarnStateUpdateForNotYetMountedComponent) {
|
||||
if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) return;
|
||||
didWarnStateUpdateForNotYetMountedComponent.add(componentName);
|
||||
} else didWarnStateUpdateForNotYetMountedComponent = new Set([
|
||||
componentName
|
||||
]);
|
||||
var previousFiber = current1;
|
||||
try {
|
||||
setCurrentFiber(fiber), error1("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.");
|
||||
} finally{
|
||||
previousFiber ? setCurrentFiber(fiber) : resetCurrentFiber();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,8 +5,7 @@ export function Nj(a) {
|
||||
a = a.return;
|
||||
}
|
||||
for(a.sibling.return = a.return, a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag;){
|
||||
if (2 & a.flags) continue a;
|
||||
if (null === a.child || 4 === a.tag) continue a;
|
||||
if (2 & a.flags || null === a.child || 4 === a.tag) continue a;
|
||||
a.child.return = a, a = a.child;
|
||||
}
|
||||
if (!(2 & a.flags)) return a.stateNode;
|
||||
|
@ -142,6 +142,8 @@ pub fn expand(callee: &Ident, attr: Config) -> Result<Vec<ItemFn>, Error> {
|
||||
.to_string_lossy()
|
||||
.replace('\\', "__")
|
||||
.replace(' ', "_")
|
||||
.replace('[', "_")
|
||||
.replace(']', "_")
|
||||
.replace('/', "__")
|
||||
.replace('.', "_")
|
||||
.replace('-', "_")
|
||||
|
@ -112,6 +112,7 @@
|
||||
"expect": "^27.4.2",
|
||||
"husky": "^7.0.2",
|
||||
"jest": "^27.0.1",
|
||||
"js-beautify": "^1.14.3",
|
||||
"lint-staged": "^12.3.6",
|
||||
"lodash": "^4.17.21",
|
||||
"mocha": "^9.1.3",
|
||||
|
72
yarn.lock
72
yarn.lock
@ -1703,6 +1703,11 @@ abab@^2.0.3, abab@^2.0.5:
|
||||
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
|
||||
integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==
|
||||
|
||||
abbrev@1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
|
||||
integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==
|
||||
|
||||
acorn-globals@^6.0.0:
|
||||
version "6.0.0"
|
||||
resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45"
|
||||
@ -2228,7 +2233,7 @@ combined-stream@^1.0.8:
|
||||
dependencies:
|
||||
delayed-stream "~1.0.0"
|
||||
|
||||
commander@^2.20.0:
|
||||
commander@^2.19.0, commander@^2.20.0:
|
||||
version "2.20.3"
|
||||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
|
||||
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
|
||||
@ -2259,6 +2264,14 @@ concat-map@0.0.1:
|
||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
||||
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
|
||||
|
||||
config-chain@^1.1.13:
|
||||
version "1.1.13"
|
||||
resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4"
|
||||
integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==
|
||||
dependencies:
|
||||
ini "^1.3.4"
|
||||
proto-list "~1.2.1"
|
||||
|
||||
configstore@^5.0.1:
|
||||
version "5.0.1"
|
||||
resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96"
|
||||
@ -2548,6 +2561,16 @@ eastasianwidth@^0.2.0:
|
||||
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
|
||||
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
|
||||
|
||||
editorconfig@^0.15.3:
|
||||
version "0.15.3"
|
||||
resolved "https://registry.yarnpkg.com/editorconfig/-/editorconfig-0.15.3.tgz#bef84c4e75fb8dcb0ce5cee8efd51c15999befc5"
|
||||
integrity sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==
|
||||
dependencies:
|
||||
commander "^2.19.0"
|
||||
lru-cache "^4.1.5"
|
||||
semver "^5.6.0"
|
||||
sigmund "^1.0.1"
|
||||
|
||||
electron-to-chromium@^1.3.723:
|
||||
version "1.3.792"
|
||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.792.tgz#791b0d8fcf7411885d086193fb49aaef0c1594ca"
|
||||
@ -3768,6 +3791,16 @@ jest@^27.0.1:
|
||||
import-local "^3.0.2"
|
||||
jest-cli "^27.0.6"
|
||||
|
||||
js-beautify@^1.14.3:
|
||||
version "1.14.3"
|
||||
resolved "https://registry.yarnpkg.com/js-beautify/-/js-beautify-1.14.3.tgz#3dd11c949178de7f3bdf3f6f752778d3bed95150"
|
||||
integrity sha512-f1ra8PHtOEu/70EBnmiUlV8nJePS58y9qKjl4JHfYWlFH6bo7ogZBz//FAZp7jDuXtYnGYKymZPlrg2I/9Zo4g==
|
||||
dependencies:
|
||||
config-chain "^1.1.13"
|
||||
editorconfig "^0.15.3"
|
||||
glob "^7.1.3"
|
||||
nopt "^5.0.0"
|
||||
|
||||
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
|
||||
@ -4013,6 +4046,14 @@ loose-envify@^1.1.0, loose-envify@^1.4.0:
|
||||
dependencies:
|
||||
js-tokens "^3.0.0 || ^4.0.0"
|
||||
|
||||
lru-cache@^4.1.5:
|
||||
version "4.1.5"
|
||||
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd"
|
||||
integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==
|
||||
dependencies:
|
||||
pseudomap "^1.0.2"
|
||||
yallist "^2.1.2"
|
||||
|
||||
lru-cache@^6.0.0:
|
||||
version "6.0.0"
|
||||
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
|
||||
@ -4173,6 +4214,13 @@ node-releases@^2.0.3:
|
||||
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.4.tgz#f38252370c43854dc48aa431c766c6c398f40476"
|
||||
integrity sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==
|
||||
|
||||
nopt@^5.0.0:
|
||||
version "5.0.0"
|
||||
resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88"
|
||||
integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==
|
||||
dependencies:
|
||||
abbrev "1"
|
||||
|
||||
normalize-package-data@^2.3.2:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8"
|
||||
@ -4491,6 +4539,16 @@ prop-types@^15.7.2:
|
||||
object-assign "^4.1.1"
|
||||
react-is "^16.8.1"
|
||||
|
||||
proto-list@~1.2.1:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
|
||||
integrity sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=
|
||||
|
||||
pseudomap@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
|
||||
integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM=
|
||||
|
||||
psl@^1.1.33:
|
||||
version "1.8.0"
|
||||
resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24"
|
||||
@ -4712,7 +4770,7 @@ saxes@^5.0.1:
|
||||
dependencies:
|
||||
xmlchars "^2.2.0"
|
||||
|
||||
"semver@2 || 3 || 4 || 5", semver@^5.5.0:
|
||||
"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0:
|
||||
version "5.7.1"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||
@ -4779,6 +4837,11 @@ side-channel@^1.0.4:
|
||||
get-intrinsic "^1.0.2"
|
||||
object-inspect "^1.9.0"
|
||||
|
||||
sigmund@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590"
|
||||
integrity sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=
|
||||
|
||||
signal-exit@^3.0.2, signal-exit@^3.0.3:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
|
||||
@ -5419,6 +5482,11 @@ y18n@^5.0.5:
|
||||
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
|
||||
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
|
||||
|
||||
yallist@^2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
|
||||
integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=
|
||||
|
||||
yallist@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
|
||||
|
Loading…
Reference in New Issue
Block a user