0) {
- if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); }
- while(i >= 0) {
- if(p < k) {
- d = (this[i]&((1<>(p+=this.DB-k);
+ // ">"
+ if (c === 0x3E) {
+ break;
+ }
+ let name = "";
+ let value = "";
+ nameLoop:for (; i < l; i++) {
+ c = buffer[i];
+ // "="
+ if (c === 0x3D && name !== "") {
+ i++;
+ break;
+ }
+ // space
+ if (isSpaceCharacter(c)) {
+ for (i++; i < l; i++) {
+ c = buffer[i];
+ // space
+ if (isSpaceCharacter(c)) {
+ continue;
}
- else {
- d = (this[i]>>(p-=k))&km;
- if(p <= 0) { p += this.DB; --i; }
+ // not "="
+ if (c !== 0x3D) {
+ return { attr: { name, value }, i };
}
- if(d > 0) m = true;
- if(m) r += int2char(d);
+
+ i++;
+ break nameLoop;
}
+ break;
+ }
+ // / or >
+ if (c === 0x2F || c === 0x3E) {
+ return { attr: { name, value }, i };
+ }
+ // A-Z
+ if (c >= 0x41 && c <= 0x5A) {
+ name += String.fromCharCode(c + 0x20); // lowercase
+ } else {
+ name += String.fromCharCode(c);
}
- return m?r:"0";
}
+ c = buffer[i];
+ // space
+ if (isSpaceCharacter(c)) {
+ for (i++; i < l; i++) {
+ c = buffer[i];
+ // space
+ if (isSpaceCharacter(c)) {
+ continue;
+ } else {
+ break;
+ }
+ }
+ }
+ // " or '
+ if (c === 0x22 || c === 0x27) {
+ const quote = c;
+ for (i++; i < l; i++) {
+ c = buffer[i];
- // (public) -this
- function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }
-
- // (public) |this|
- function bnAbs() { return (this.s<0)?this.negate():this; }
+ if (c === quote) {
+ i++;
+ return { attr: { name, value }, i };
+ }
- // (public) return + if this > a, - if this < a, 0 if equal
- function bnCompareTo(a) {
- var r = this.s-a.s;
- if(r != 0) return r;
- var i = this.t;
- r = i-a.t;
- if(r != 0) return (this.s<0)?-r:r;
- while(--i >= 0) if((r=this[i]-a[i]) != 0) return r;
- return 0;
+ // A-Z
+ if (c >= 0x41 && c <= 0x5A) {
+ value += String.fromCharCode(c + 0x20); // lowercase
+ } else {
+ value += String.fromCharCode(c);
+ }
+ }
}
- // returns bit length of the integer x
- function nbits(x) {
- var r = 1, t;
- if((t=x>>>16) != 0) { x = t; r += 16; }
- if((t=x>>8) != 0) { x = t; r += 8; }
- if((t=x>>4) != 0) { x = t; r += 4; }
- if((t=x>>2) != 0) { x = t; r += 2; }
- if((t=x>>1) != 0) { x = t; r += 1; }
- return r;
+ // >
+ if (c === 0x3E) {
+ return { attr: { name, value }, i };
}
- // (public) return the number of bits in "this"
- function bnBitLength() {
- if(this.t <= 0) return 0;
- return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM));
+ // A-Z
+ if (c >= 0x41 && c <= 0x5A) {
+ value += String.fromCharCode(c + 0x20); // lowercase
+ } else {
+ value += String.fromCharCode(c);
}
- // (protected) r = this << n*DB
- function bnpDLShiftTo(n,r) {
- var i;
- for(i = this.t-1; i >= 0; --i) r[i+n] = this[i];
- for(i = n-1; i >= 0; --i) r[i] = 0;
- r.t = this.t+n;
- r.s = this.s;
- }
-
- // (protected) r = this >> n*DB
- function bnpDRShiftTo(n,r) {
- for(var i = n; i < this.t; ++i) r[i-n] = this[i];
- r.t = Math.max(this.t-n,0);
- r.s = this.s;
- }
+ for (i++; i < l; i++) {
+ c = buffer[i];
- // (protected) r = this << n
- function bnpLShiftTo(n,r) {
- var bs = n%this.DB;
- var cbs = this.DB-bs;
- var bm = (1<= 0; --i) {
- r[i+ds+1] = (this[i]>>cbs)|c;
- c = (this[i]&bm)<
+ if (isSpaceCharacter(c) || c === 0x3E) {
+ return { attr: { name, value }, i };
}
- for(i = ds-1; i >= 0; --i) r[i] = 0;
- r[ds] = c;
- r.t = this.t+ds+1;
- r.s = this.s;
- r.clamp();
- }
- // (protected) r = this >> n
- function bnpRShiftTo(n,r) {
- r.s = this.s;
- var ds = Math.floor(n/this.DB);
- if(ds >= this.t) { r.t = 0; return; }
- var bs = n%this.DB;
- var cbs = this.DB-bs;
- var bm = (1<>bs;
- for(var i = ds+1; i < this.t; ++i) {
- r[i-ds-1] |= (this[i]&bm)<>bs;
+ // A-Z
+ if (c >= 0x41 && c <= 0x5A) {
+ value += String.fromCharCode(c + 0x20); // lowercase
+ } else {
+ value += String.fromCharCode(c);
}
- if(bs > 0) r[this.t-ds-1] |= (this.s&bm)<>= this.DB;
- }
- if(a.t < this.t) {
- c -= a.s;
- while(i < this.t) {
- c += this[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c += this.s;
- }
- else {
- c += this.s;
- while(i < a.t) {
- c -= a[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c -= a.s;
- }
- r.s = (c<0)?-1:0;
- if(c < -1) r[i++] = this.DV+c;
- else if(c > 0) r[i++] = c;
- r.t = i;
- r.clamp();
- }
+function extractCharacterEncodingFromMeta(string) {
+ let position = 0;
- // (protected) r = this * a, r != this,a (HAC 14.12)
- // "this" should be the larger one if appropriate.
- function bnpMultiplyTo(a,r) {
- var x = this.abs(), y = a.abs();
- var i = x.t;
- r.t = i+y.t;
- while(--i >= 0) r[i] = 0;
- for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t);
- r.s = 0;
- r.clamp();
- if(this.s != a.s) BigInteger.ZERO.subTo(r,r);
- }
+ while (true) {
+ const indexOfCharset = string.substring(position).search(/charset/i);
- // (protected) r = this^2, r != this (HAC 14.16)
- function bnpSquareTo(r) {
- var x = this.abs();
- var i = r.t = 2*x.t;
- while(--i >= 0) r[i] = 0;
- for(i = 0; i < x.t-1; ++i) {
- var c = x.am(i,x[i],r,2*i,0,1);
- if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) {
- r[i+x.t] -= x.DV;
- r[i+x.t+1] = 1;
- }
- }
- if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1);
- r.s = 0;
- r.clamp();
+ if (indexOfCharset === -1) {
+ return null;
}
+ let subPosition = position + indexOfCharset + "charset".length;
- // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)
- // r != q, this != m. q or r may be null.
- function bnpDivRemTo(m,q,r) {
- var pm = m.abs();
- if(pm.t <= 0) return;
- var pt = this.abs();
- if(pt.t < pm.t) {
- if(q != null) q.fromInt(0);
- if(r != null) this.copyTo(r);
- return;
- }
- if(r == null) r = nbi();
- var y = nbi(), ts = this.s, ms = m.s;
- var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus
- if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); }
- else { pm.copyTo(y); pt.copyTo(r); }
- var ys = y.t;
- var y0 = y[ys-1];
- if(y0 == 0) return;
- var yt = y0*(1<1)?y[ys-2]>>this.F2:0);
- var d1 = this.FV/yt, d2 = (1<= 0) {
- r[r.t++] = 1;
- r.subTo(t,r);
- }
- BigInteger.ONE.dlShiftTo(ys,t);
- t.subTo(y,y); // "negative" y so we can replace sub with am later
- while(y.t < ys) y[y.t++] = 0;
- while(--j >= 0) {
- // Estimate quotient digit
- var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);
- if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out
- y.dlShiftTo(j,t);
- r.subTo(t,r);
- while(r[i] < --qd) r.subTo(t,r);
- }
- }
- if(q != null) {
- r.drShiftTo(ys,q);
- if(ts != ms) BigInteger.ZERO.subTo(q,q);
- }
- r.t = ys;
- r.clamp();
- if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder
- if(ts < 0) BigInteger.ZERO.subTo(r,r);
+ while (isSpaceCharacter(string[subPosition].charCodeAt(0))) {
+ ++subPosition;
}
- // (public) this mod a
- function bnMod(a) {
- var r = nbi();
- this.abs().divRemTo(a,null,r);
- if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
- return r;
+ if (string[subPosition] !== "=") {
+ position = subPosition - 1;
+ continue;
}
- // Modular reduction using "classic" algorithm
- function Classic(m) { this.m = m; }
- function cConvert(x) {
- if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);
- else return x;
+ ++subPosition;
+
+ while (isSpaceCharacter(string[subPosition].charCodeAt(0))) {
+ ++subPosition;
}
- function cRevert(x) { return x; }
- function cReduce(x) { x.divRemTo(this.m,null,x); }
- function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
- function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
- Classic.prototype.convert = cConvert;
- Classic.prototype.revert = cRevert;
- Classic.prototype.reduce = cReduce;
- Classic.prototype.mulTo = cMulTo;
- Classic.prototype.sqrTo = cSqrTo;
+ position = subPosition;
+ break;
+ }
- // (protected) return "-1/this % 2^DB"; useful for Mont. reduction
- // justification:
- // xy == 1 (mod m)
- // xy = 1+km
- // xy(2-xy) = (1+km)(1-km)
- // x[y(2-xy)] = 1-k^2m^2
- // x[y(2-xy)] == 1 (mod m^2)
- // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2
- // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.
- // JS multiply "overflows" differently from C/C++, so care is needed here.
- function bnpInvDigit() {
- if(this.t < 1) return 0;
- var x = this[0];
- if((x&1) == 0) return 0;
- var y = x&3; // y == 1/x mod 2^2
- y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4
- y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8
- y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16
- // last step - calculate inverse mod DV directly;
- // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints
- y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits
- // we really want the negative inverse, and -DV < y < DV
- return (y>0)?this.DV-y:-y;
- }
+ if (string[position] === "\"" || string[position] === "'") {
+ const nextIndex = string.indexOf(string[position], position + 1);
- // Montgomery reduction
- function Montgomery(m) {
- this.m = m;
- this.mp = m.invDigit();
- this.mpl = this.mp&0x7fff;
- this.mph = this.mp>>15;
- this.um = (1<<(m.DB-15))-1;
- this.mt2 = 2*m.t;
+ if (nextIndex !== -1) {
+ return whatwgEncoding.labelToName(string.substring(position + 1, nextIndex));
}
- // xR mod m
- function montConvert(x) {
- var r = nbi();
- x.abs().dlShiftTo(this.m.t,r);
- r.divRemTo(this.m,null,r);
- if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
- return r;
- }
+ // It is an unmatched quotation mark
+ return null;
+ }
- // x/R mod m
- function montRevert(x) {
- var r = nbi();
- x.copyTo(r);
- this.reduce(r);
- return r;
- }
+ if (string.length === position + 1) {
+ return null;
+ }
- // x = x/R mod m (HAC 14.32)
- function montReduce(x) {
- while(x.t <= this.mt2) // pad x so am has enough room later
- x[x.t++] = 0;
- for(var i = 0; i < this.m.t; ++i) {
- // faster way of calculating u0 = x[i]*mp mod DV
- var j = x[i]&0x7fff;
- var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM;
- // use am to combine the multiply-shift-add into one call
- j = i+this.m.t;
- x[j] += this.m.am(0,u0,x,i,0,this.m.t);
- // propagate carry
- while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; }
- }
- x.clamp();
- x.drShiftTo(this.m.t,x);
- if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
- }
+ const indexOfASCIIWhitespaceOrSemicolon = string.substring(position + 1).search(/\x09|\x0A|\x0C|\x0D|\x20|;/);
+ const end = indexOfASCIIWhitespaceOrSemicolon === -1 ?
+ string.length :
+ position + indexOfASCIIWhitespaceOrSemicolon + 1;
- // r = "x^2/R mod m"; x != r
- function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
+ return whatwgEncoding.labelToName(string.substring(position, end));
+}
- // r = "xy/R mod m"; x,y != r
- function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
+function isSpaceCharacter(c) {
+ return c === 0x09 || c === 0x0A || c === 0x0C || c === 0x0D || c === 0x20;
+}
- Montgomery.prototype.convert = montConvert;
- Montgomery.prototype.revert = montRevert;
- Montgomery.prototype.reduce = montReduce;
- Montgomery.prototype.mulTo = montMulTo;
- Montgomery.prototype.sqrTo = montSqrTo;
- // (protected) true iff this is even
- function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; }
+/***/ }),
- // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79)
- function bnpExp(e,z) {
- if(e > 0xffffffff || e < 1) return BigInteger.ONE;
- var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1;
- g.copyTo(r);
- while(--i >= 0) {
- z.sqrTo(r,r2);
- if((e&(1< 0) z.mulTo(r2,g,r);
- else { var t = r; r = r2; r2 = t; }
- }
- return z.revert(r);
- }
+/***/ 42479:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- // (public) this^e % m, 0 <= e < 2^32
- function bnModPowInt(e,m) {
- var z;
- if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);
- return this.exp(e,z);
- }
+// Copyright 2015 Joyent, Inc.
- // protected
- BigInteger.prototype.copyTo = bnpCopyTo;
- BigInteger.prototype.fromInt = bnpFromInt;
- BigInteger.prototype.fromString = bnpFromString;
- BigInteger.prototype.clamp = bnpClamp;
- BigInteger.prototype.dlShiftTo = bnpDLShiftTo;
- BigInteger.prototype.drShiftTo = bnpDRShiftTo;
- BigInteger.prototype.lShiftTo = bnpLShiftTo;
- BigInteger.prototype.rShiftTo = bnpRShiftTo;
- BigInteger.prototype.subTo = bnpSubTo;
- BigInteger.prototype.multiplyTo = bnpMultiplyTo;
- BigInteger.prototype.squareTo = bnpSquareTo;
- BigInteger.prototype.divRemTo = bnpDivRemTo;
- BigInteger.prototype.invDigit = bnpInvDigit;
- BigInteger.prototype.isEven = bnpIsEven;
- BigInteger.prototype.exp = bnpExp;
+var parser = __nccwpck_require__(95086);
+var signer = __nccwpck_require__(38143);
+var verify = __nccwpck_require__(51227);
+var utils = __nccwpck_require__(65689);
- // public
- BigInteger.prototype.toString = bnToString;
- BigInteger.prototype.negate = bnNegate;
- BigInteger.prototype.abs = bnAbs;
- BigInteger.prototype.compareTo = bnCompareTo;
- BigInteger.prototype.bitLength = bnBitLength;
- BigInteger.prototype.mod = bnMod;
- BigInteger.prototype.modPowInt = bnModPowInt;
- // "constants"
- BigInteger.ZERO = nbv(0);
- BigInteger.ONE = nbv(1);
- // Copyright (c) 2005-2009 Tom Wu
- // All Rights Reserved.
- // See "LICENSE" for details.
+///--- API
- // Extended JavaScript BN functions, required for RSA private ops.
+module.exports = {
- // Version 1.1: new BigInteger("0", 10) returns "proper" zero
- // Version 1.2: square() API, isProbablePrime fix
+ parse: parser.parseRequest,
+ parseRequest: parser.parseRequest,
- // (public)
- function bnClone() { var r = nbi(); this.copyTo(r); return r; }
+ sign: signer.signRequest,
+ signRequest: signer.signRequest,
+ createSigner: signer.createSigner,
+ isSigner: signer.isSigner,
- // (public) return value as integer
- function bnIntValue() {
- if(this.s < 0) {
- if(this.t == 1) return this[0]-this.DV;
- else if(this.t == 0) return -1;
- }
- else if(this.t == 1) return this[0];
- else if(this.t == 0) return 0;
- // assumes 16 < DB < 32
- return ((this[1]&((1<<(32-this.DB))-1))<>24; }
+ verify: verify.verifySignature,
+ verifySignature: verify.verifySignature,
+ verifyHMAC: verify.verifyHMAC
+};
- // (public) return value as short (assumes DB>=16)
- function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; }
- // (protected) return x s.t. r^x < DV
- function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }
+/***/ }),
- // (public) 0 if this == 0, 1 if this > 0
- function bnSigNum() {
- if(this.s < 0) return -1;
- else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0;
- else return 1;
- }
+/***/ 95086:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- // (protected) convert to radix string
- function bnpToRadix(b) {
- if(b == null) b = 10;
- if(this.signum() == 0 || b < 2 || b > 36) return "0";
- var cs = this.chunkSize(b);
- var a = Math.pow(b,cs);
- var d = nbv(a), y = nbi(), z = nbi(), r = "";
- this.divRemTo(d,y,z);
- while(y.signum() > 0) {
- r = (a+z.intValue()).toString(b).substr(1) + r;
- y.divRemTo(d,y,z);
- }
- return z.intValue().toString(b) + r;
- }
+// Copyright 2012 Joyent, Inc. All rights reserved.
- // (protected) convert from radix string
- function bnpFromRadix(s,b) {
- this.fromInt(0);
- if(b == null) b = 10;
- var cs = this.chunkSize(b);
- var d = Math.pow(b,cs), mi = false, j = 0, w = 0;
- for(var i = 0; i < s.length; ++i) {
- var x = intAt(s,i);
- if(x < 0) {
- if(s.charAt(i) == "-" && this.signum() == 0) mi = true;
- continue;
- }
- w = b*w+x;
- if(++j >= cs) {
- this.dMultiply(d);
- this.dAddOffset(w,0);
- j = 0;
- w = 0;
- }
- }
- if(j > 0) {
- this.dMultiply(Math.pow(b,j));
- this.dAddOffset(w,0);
- }
- if(mi) BigInteger.ZERO.subTo(this,this);
- }
+var assert = __nccwpck_require__(66631);
+var util = __nccwpck_require__(73837);
+var utils = __nccwpck_require__(65689);
- // (protected) alternate constructor
- function bnpFromNumber(a,b,c) {
- if("number" == typeof b) {
- // new BigInteger(int,int,RNG)
- if(a < 2) this.fromInt(1);
- else {
- this.fromNumber(a,c);
- if(!this.testBit(a-1)) // force MSB set
- this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);
- if(this.isEven()) this.dAddOffset(1,0); // force odd
- while(!this.isProbablePrime(b)) {
- this.dAddOffset(2,0);
- if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);
- }
- }
- }
- else {
- // new BigInteger(int,RNG)
- var x = new Array(), t = a&7;
- x.length = (a>>3)+1;
- b.nextBytes(x);
- if(t > 0) x[0] &= ((1< 0) {
- if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p)
- r[k++] = d|(this.s<<(this.DB-p));
- while(i >= 0) {
- if(p < 8) {
- d = (this[i]&((1<>(p+=this.DB-8);
- }
- else {
- d = (this[i]>>(p-=8))&0xff;
- if(p <= 0) { p += this.DB; --i; }
- }
- if((d&0x80) != 0) d |= -256;
- if(k == 0 && (this.s&0x80) != (d&0x80)) ++k;
- if(k > 0 || d != this.s) r[k++] = d;
- }
- }
- return r;
- }
- function bnEquals(a) { return(this.compareTo(a)==0); }
- function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
- function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
+///--- Globals
- // (protected) r = this op a (bitwise)
- function bnpBitwiseTo(a,op,r) {
- var i, f, m = Math.min(a.t,this.t);
- for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]);
- if(a.t < this.t) {
- f = a.s&this.DM;
- for(i = m; i < this.t; ++i) r[i] = op(this[i],f);
- r.t = this.t;
- }
- else {
- f = this.s&this.DM;
- for(i = m; i < a.t; ++i) r[i] = op(f,a[i]);
- r.t = a.t;
- }
- r.s = op(this.s,a.s);
- r.clamp();
- }
+var HASH_ALGOS = utils.HASH_ALGOS;
+var PK_ALGOS = utils.PK_ALGOS;
+var HttpSignatureError = utils.HttpSignatureError;
+var InvalidAlgorithmError = utils.InvalidAlgorithmError;
+var validateAlgorithm = utils.validateAlgorithm;
- // (public) this & a
- function op_and(x,y) { return x&y; }
- function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }
+var State = {
+ New: 0,
+ Params: 1
+};
- // (public) this | a
- function op_or(x,y) { return x|y; }
- function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }
+var ParamsState = {
+ Name: 0,
+ Quote: 1,
+ Value: 2,
+ Comma: 3
+};
- // (public) this ^ a
- function op_xor(x,y) { return x^y; }
- function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }
- // (public) this & ~a
- function op_andnot(x,y) { return x&~y; }
- function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; }
+///--- Specific Errors
- // (public) ~this
- function bnNot() {
- var r = nbi();
- for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i];
- r.t = this.t;
- r.s = ~this.s;
- return r;
- }
- // (public) this << n
- function bnShiftLeft(n) {
- var r = nbi();
- if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r);
- return r;
- }
+function ExpiredRequestError(message) {
+ HttpSignatureError.call(this, message, ExpiredRequestError);
+}
+util.inherits(ExpiredRequestError, HttpSignatureError);
- // (public) this >> n
- function bnShiftRight(n) {
- var r = nbi();
- if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r);
- return r;
- }
- // return index of lowest 1-bit in x, x < 2^31
- function lbit(x) {
- if(x == 0) return -1;
- var r = 0;
- if((x&0xffff) == 0) { x >>= 16; r += 16; }
- if((x&0xff) == 0) { x >>= 8; r += 8; }
- if((x&0xf) == 0) { x >>= 4; r += 4; }
- if((x&3) == 0) { x >>= 2; r += 2; }
- if((x&1) == 0) ++r;
- return r;
- }
+function InvalidHeaderError(message) {
+ HttpSignatureError.call(this, message, InvalidHeaderError);
+}
+util.inherits(InvalidHeaderError, HttpSignatureError);
- // (public) returns index of lowest 1-bit (or -1 if none)
- function bnGetLowestSetBit() {
- for(var i = 0; i < this.t; ++i)
- if(this[i] != 0) return i*this.DB+lbit(this[i]);
- if(this.s < 0) return this.t*this.DB;
- return -1;
- }
- // return number of 1 bits in x
- function cbit(x) {
- var r = 0;
- while(x != 0) { x &= x-1; ++r; }
- return r;
- }
+function InvalidParamsError(message) {
+ HttpSignatureError.call(this, message, InvalidParamsError);
+}
+util.inherits(InvalidParamsError, HttpSignatureError);
- // (public) return number of set bits
- function bnBitCount() {
- var r = 0, x = this.s&this.DM;
- for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x);
- return r;
- }
- // (public) true iff nth bit is set
- function bnTestBit(n) {
- var j = Math.floor(n/this.DB);
- if(j >= this.t) return(this.s!=0);
- return((this[j]&(1<<(n%this.DB)))!=0);
- }
+function MissingHeaderError(message) {
+ HttpSignatureError.call(this, message, MissingHeaderError);
+}
+util.inherits(MissingHeaderError, HttpSignatureError);
- // (protected) this op (1<>= this.DB;
- }
- if(a.t < this.t) {
- c += a.s;
- while(i < this.t) {
- c += this[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c += this.s;
- }
- else {
- c += this.s;
- while(i < a.t) {
- c += a[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c += a.s;
- }
- r.s = (c<0)?-1:0;
- if(c > 0) r[i++] = c;
- else if(c < -1) r[i++] = this.DV+c;
- r.t = i;
- r.clamp();
+ var authzHeaderName = options.authorizationHeaderName || 'authorization';
+
+ if (!request.headers[authzHeaderName]) {
+ throw new MissingHeaderError('no ' + authzHeaderName + ' header ' +
+ 'present in the request');
}
- // (public) this + a
- function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }
+ options.clockSkew = options.clockSkew || 300;
- // (public) this - a
- function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }
- // (public) this * a
- function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }
+ var i = 0;
+ var state = State.New;
+ var substate = ParamsState.Name;
+ var tmpName = '';
+ var tmpValue = '';
- // (public) this^2
- function bnSquare() { var r = nbi(); this.squareTo(r); return r; }
+ var parsed = {
+ scheme: '',
+ params: {},
+ signingString: ''
+ };
- // (public) this / a
- function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }
+ var authz = request.headers[authzHeaderName];
+ for (i = 0; i < authz.length; i++) {
+ var c = authz.charAt(i);
- // (public) this % a
- function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; }
+ switch (Number(state)) {
- // (public) [this/a,this%a]
- function bnDivideAndRemainder(a) {
- var q = nbi(), r = nbi();
- this.divRemTo(a,q,r);
- return new Array(q,r);
- }
+ case State.New:
+ if (c !== ' ') parsed.scheme += c;
+ else state = State.Params;
+ break;
- // (protected) this *= n, this >= 0, 1 < n < DV
- function bnpDMultiply(n) {
- this[this.t] = this.am(0,n-1,this,0,0,this.t);
- ++this.t;
- this.clamp();
- }
+ case State.Params:
+ switch (Number(substate)) {
- // (protected) this += n << w words, this >= 0
- function bnpDAddOffset(n,w) {
- if(n == 0) return;
- while(this.t <= w) this[this.t++] = 0;
- this[w] += n;
- while(this[w] >= this.DV) {
- this[w] -= this.DV;
- if(++w >= this.t) this[this.t++] = 0;
- ++this[w];
- }
- }
+ case ParamsState.Name:
+ var code = c.charCodeAt(0);
+ // restricted name of A-Z / a-z
+ if ((code >= 0x41 && code <= 0x5a) || // A-Z
+ (code >= 0x61 && code <= 0x7a)) { // a-z
+ tmpName += c;
+ } else if (c === '=') {
+ if (tmpName.length === 0)
+ throw new InvalidHeaderError('bad param format');
+ substate = ParamsState.Quote;
+ } else {
+ throw new InvalidHeaderError('bad param format');
+ }
+ break;
- // A "null" reducer
- function NullExp() {}
- function nNop(x) { return x; }
- function nMulTo(x,y,r) { x.multiplyTo(y,r); }
- function nSqrTo(x,r) { x.squareTo(r); }
+ case ParamsState.Quote:
+ if (c === '"') {
+ tmpValue = '';
+ substate = ParamsState.Value;
+ } else {
+ throw new InvalidHeaderError('bad param format');
+ }
+ break;
- NullExp.prototype.convert = nNop;
- NullExp.prototype.revert = nNop;
- NullExp.prototype.mulTo = nMulTo;
- NullExp.prototype.sqrTo = nSqrTo;
+ case ParamsState.Value:
+ if (c === '"') {
+ parsed.params[tmpName] = tmpValue;
+ substate = ParamsState.Comma;
+ } else {
+ tmpValue += c;
+ }
+ break;
- // (public) this^e
- function bnPow(e) { return this.exp(e,new NullExp()); }
+ case ParamsState.Comma:
+ if (c === ',') {
+ tmpName = '';
+ substate = ParamsState.Name;
+ } else {
+ throw new InvalidHeaderError('bad param format');
+ }
+ break;
- // (protected) r = lower n words of "this * a", a.t <= n
- // "this" should be the larger one if appropriate.
- function bnpMultiplyLowerTo(a,n,r) {
- var i = Math.min(this.t+a.t,n);
- r.s = 0; // assumes a,this >= 0
- r.t = i;
- while(i > 0) r[--i] = 0;
- var j;
- for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t);
- for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i);
- r.clamp();
- }
+ default:
+ throw new Error('Invalid substate');
+ }
+ break;
- // (protected) r = "this * a" without lower n words, n > 0
- // "this" should be the larger one if appropriate.
- function bnpMultiplyUpperTo(a,n,r) {
- --n;
- var i = r.t = this.t+a.t-n;
- r.s = 0; // assumes a,this >= 0
- while(--i >= 0) r[i] = 0;
- for(i = Math.max(n-this.t,0); i < a.t; ++i)
- r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n);
- r.clamp();
- r.drShiftTo(1,r);
- }
+ default:
+ throw new Error('Invalid substate');
+ }
- // Barrett modular reduction
- function Barrett(m) {
- // setup Barrett
- this.r2 = nbi();
- this.q3 = nbi();
- BigInteger.ONE.dlShiftTo(2*m.t,this.r2);
- this.mu = this.r2.divide(m);
- this.m = m;
}
- function barrettConvert(x) {
- if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m);
- else if(x.compareTo(this.m) < 0) return x;
- else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; }
+ if (!parsed.params.headers || parsed.params.headers === '') {
+ if (request.headers['x-date']) {
+ parsed.params.headers = ['x-date'];
+ } else {
+ parsed.params.headers = ['date'];
+ }
+ } else {
+ parsed.params.headers = parsed.params.headers.split(' ');
}
- function barrettRevert(x) { return x; }
-
- // x = x mod m (HAC 14.42)
- function barrettReduce(x) {
- x.drShiftTo(this.m.t-1,this.r2);
- if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }
- this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);
- this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);
- while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1);
- x.subTo(this.r2,x);
- while(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
- }
+ // Minimally validate the parsed object
+ if (!parsed.scheme || parsed.scheme !== 'Signature')
+ throw new InvalidHeaderError('scheme was not "Signature"');
- // r = x^2 mod m; x != r
- function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
+ if (!parsed.params.keyId)
+ throw new InvalidHeaderError('keyId was not specified');
- // r = x*y mod m; x,y != r
- function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
+ if (!parsed.params.algorithm)
+ throw new InvalidHeaderError('algorithm was not specified');
- Barrett.prototype.convert = barrettConvert;
- Barrett.prototype.revert = barrettRevert;
- Barrett.prototype.reduce = barrettReduce;
- Barrett.prototype.mulTo = barrettMulTo;
- Barrett.prototype.sqrTo = barrettSqrTo;
+ if (!parsed.params.signature)
+ throw new InvalidHeaderError('signature was not specified');
- // (public) this^e % m (HAC 14.85)
- function bnModPow(e,m) {
- var i = e.bitLength(), k, r = nbv(1), z;
- if(i <= 0) return r;
- else if(i < 18) k = 1;
- else if(i < 48) k = 3;
- else if(i < 144) k = 4;
- else if(i < 768) k = 5;
- else k = 6;
- if(i < 8)
- z = new Classic(m);
- else if(m.isEven())
- z = new Barrett(m);
+ // Check the algorithm against the official list
+ parsed.params.algorithm = parsed.params.algorithm.toLowerCase();
+ try {
+ validateAlgorithm(parsed.params.algorithm);
+ } catch (e) {
+ if (e instanceof InvalidAlgorithmError)
+ throw (new InvalidParamsError(parsed.params.algorithm + ' is not ' +
+ 'supported'));
else
- z = new Montgomery(m);
+ throw (e);
+ }
- // precomputation
- var g = new Array(), n = 3, k1 = k-1, km = (1< 1) {
- var g2 = nbi();
- z.sqrTo(g[1],g2);
- while(n <= km) {
- g[n] = nbi();
- z.mulTo(g2,g[n-2],g[n]);
- n += 2;
+ // Build the signingString
+ for (i = 0; i < parsed.params.headers.length; i++) {
+ var h = parsed.params.headers[i].toLowerCase();
+ parsed.params.headers[i] = h;
+
+ if (h === 'request-line') {
+ if (!options.strict) {
+ /*
+ * We allow headers from the older spec drafts if strict parsing isn't
+ * specified in options.
+ */
+ parsed.signingString +=
+ request.method + ' ' + request.url + ' HTTP/' + request.httpVersion;
+ } else {
+ /* Strict parsing doesn't allow older draft headers. */
+ throw (new StrictParsingError('request-line is not a valid header ' +
+ 'with strict parsing enabled.'));
}
+ } else if (h === '(request-target)') {
+ parsed.signingString +=
+ '(request-target): ' + request.method.toLowerCase() + ' ' +
+ request.url;
+ } else {
+ var value = request.headers[h];
+ if (value === undefined)
+ throw new MissingHeaderError(h + ' was not in the request');
+ parsed.signingString += h + ': ' + value;
}
- var j = e.t-1, w, is1 = true, r2 = nbi(), t;
- i = nbits(e[j])-1;
- while(j >= 0) {
- if(i >= k1) w = (e[j]>>(i-k1))&km;
- else {
- w = (e[j]&((1<<(i+1))-1))<<(k1-i);
- if(j > 0) w |= e[j-1]>>(this.DB+i-k1);
- }
+ if ((i + 1) < parsed.params.headers.length)
+ parsed.signingString += '\n';
+ }
- n = k;
- while((w&1) == 0) { w >>= 1; --n; }
- if((i -= n) < 0) { i += this.DB; --j; }
- if(is1) { // ret == 1, don't bother squaring or multiplying it
- g[w].copyTo(r);
- is1 = false;
- }
- else {
- while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; }
- if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; }
- z.mulTo(r2,g[w],r);
+ // Check against the constraints
+ var date;
+ if (request.headers.date || request.headers['x-date']) {
+ if (request.headers['x-date']) {
+ date = new Date(request.headers['x-date']);
+ } else {
+ date = new Date(request.headers.date);
}
+ var now = new Date();
+ var skew = Math.abs(now.getTime() - date.getTime());
- while(j >= 0 && (e[j]&(1< options.clockSkew * 1000) {
+ throw new ExpiredRequestError('clock skew of ' +
+ (skew / 1000) +
+ 's was greater than ' +
+ options.clockSkew + 's');
}
- return z.revert(r);
}
- // (public) gcd(this,a) (HAC 14.54)
- function bnGCD(a) {
- var x = (this.s<0)?this.negate():this.clone();
- var y = (a.s<0)?a.negate():a.clone();
- if(x.compareTo(y) < 0) { var t = x; x = y; y = t; }
- var i = x.getLowestSetBit(), g = y.getLowestSetBit();
- if(g < 0) return x;
- if(i < g) g = i;
- if(g > 0) {
- x.rShiftTo(g,x);
- y.rShiftTo(g,y);
- }
- while(x.signum() > 0) {
- if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x);
- if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y);
- if(x.compareTo(y) >= 0) {
- x.subTo(y,x);
- x.rShiftTo(1,x);
- }
- else {
- y.subTo(x,y);
- y.rShiftTo(1,y);
- }
- }
- if(g > 0) y.lShiftTo(g,y);
- return y;
- }
-
- // (protected) this % n, n < 2^26
- function bnpModInt(n) {
- if(n <= 0) return 0;
- var d = this.DV%n, r = (this.s<0)?n-1:0;
- if(this.t > 0)
- if(d == 0) r = this[0]%n;
- else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;
- return r;
- }
-
- // (public) 1/this % m (HAC 14.61)
- function bnModInverse(m) {
- var ac = m.isEven();
- if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;
- var u = m.clone(), v = this.clone();
- var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1);
- while(u.signum() != 0) {
- while(u.isEven()) {
- u.rShiftTo(1,u);
- if(ac) {
- if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }
- a.rShiftTo(1,a);
- }
- else if(!b.isEven()) b.subTo(m,b);
- b.rShiftTo(1,b);
- }
- while(v.isEven()) {
- v.rShiftTo(1,v);
- if(ac) {
- if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); }
- c.rShiftTo(1,c);
- }
- else if(!d.isEven()) d.subTo(m,d);
- d.rShiftTo(1,d);
- }
- if(u.compareTo(v) >= 0) {
- u.subTo(v,u);
- if(ac) a.subTo(c,a);
- b.subTo(d,b);
- }
- else {
- v.subTo(u,v);
- if(ac) c.subTo(a,c);
- d.subTo(b,d);
- }
- }
- if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;
- if(d.compareTo(m) >= 0) return d.subtract(m);
- if(d.signum() < 0) d.addTo(m,d); else return d;
- if(d.signum() < 0) return d.add(m); else return d;
- }
-
- var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];
- var lplim = (1<<26)/lowprimes[lowprimes.length-1];
+ options.headers.forEach(function (hdr) {
+ // Remember that we already checked any headers in the params
+ // were in the request, so if this passes we're good.
+ if (parsed.params.headers.indexOf(hdr.toLowerCase()) < 0)
+ throw new MissingHeaderError(hdr + ' was not a signed header');
+ });
- // (public) test primality with certainty >= 1-.5^t
- function bnIsProbablePrime(t) {
- var i, x = this.abs();
- if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) {
- for(i = 0; i < lowprimes.length; ++i)
- if(x[0] == lowprimes[i]) return true;
- return false;
- }
- if(x.isEven()) return false;
- i = 1;
- while(i < lowprimes.length) {
- var m = lowprimes[i], j = i+1;
- while(j < lowprimes.length && m < lplim) m *= lowprimes[j++];
- m = x.modInt(m);
- while(i < j) if(m%lowprimes[i++] == 0) return false;
- }
- return x.millerRabin(t);
+ if (options.algorithms) {
+ if (options.algorithms.indexOf(parsed.params.algorithm) === -1)
+ throw new InvalidParamsError(parsed.params.algorithm +
+ ' is not a supported algorithm');
}
- // (protected) true if probably prime (HAC 4.24, Miller-Rabin)
- function bnpMillerRabin(t) {
- var n1 = this.subtract(BigInteger.ONE);
- var k = n1.getLowestSetBit();
- if(k <= 0) return false;
- var r = n1.shiftRight(k);
- t = (t+1)>>1;
- if(t > lowprimes.length) t = lowprimes.length;
- var a = nbi();
- for(var i = 0; i < t; ++i) {
- //Pick bases at random, instead of starting at 2
- a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);
- var y = a.modPow(r,this);
- if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {
- var j = 1;
- while(j++ < k && y.compareTo(n1) != 0) {
- y = y.modPowInt(2,this);
- if(y.compareTo(BigInteger.ONE) == 0) return false;
- }
- if(y.compareTo(n1) != 0) return false;
- }
- }
- return true;
- }
+ parsed.algorithm = parsed.params.algorithm.toUpperCase();
+ parsed.keyId = parsed.params.keyId;
+ return parsed;
+ }
- // protected
- BigInteger.prototype.chunkSize = bnpChunkSize;
- BigInteger.prototype.toRadix = bnpToRadix;
- BigInteger.prototype.fromRadix = bnpFromRadix;
- BigInteger.prototype.fromNumber = bnpFromNumber;
- BigInteger.prototype.bitwiseTo = bnpBitwiseTo;
- BigInteger.prototype.changeBit = bnpChangeBit;
- BigInteger.prototype.addTo = bnpAddTo;
- BigInteger.prototype.dMultiply = bnpDMultiply;
- BigInteger.prototype.dAddOffset = bnpDAddOffset;
- BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;
- BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;
- BigInteger.prototype.modInt = bnpModInt;
- BigInteger.prototype.millerRabin = bnpMillerRabin;
+};
- // public
- BigInteger.prototype.clone = bnClone;
- BigInteger.prototype.intValue = bnIntValue;
- BigInteger.prototype.byteValue = bnByteValue;
- BigInteger.prototype.shortValue = bnShortValue;
- BigInteger.prototype.signum = bnSigNum;
- BigInteger.prototype.toByteArray = bnToByteArray;
- BigInteger.prototype.equals = bnEquals;
- BigInteger.prototype.min = bnMin;
- BigInteger.prototype.max = bnMax;
- BigInteger.prototype.and = bnAnd;
- BigInteger.prototype.or = bnOr;
- BigInteger.prototype.xor = bnXor;
- BigInteger.prototype.andNot = bnAndNot;
- BigInteger.prototype.not = bnNot;
- BigInteger.prototype.shiftLeft = bnShiftLeft;
- BigInteger.prototype.shiftRight = bnShiftRight;
- BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;
- BigInteger.prototype.bitCount = bnBitCount;
- BigInteger.prototype.testBit = bnTestBit;
- BigInteger.prototype.setBit = bnSetBit;
- BigInteger.prototype.clearBit = bnClearBit;
- BigInteger.prototype.flipBit = bnFlipBit;
- BigInteger.prototype.add = bnAdd;
- BigInteger.prototype.subtract = bnSubtract;
- BigInteger.prototype.multiply = bnMultiply;
- BigInteger.prototype.divide = bnDivide;
- BigInteger.prototype.remainder = bnRemainder;
- BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;
- BigInteger.prototype.modPow = bnModPow;
- BigInteger.prototype.modInverse = bnModInverse;
- BigInteger.prototype.pow = bnPow;
- BigInteger.prototype.gcd = bnGCD;
- BigInteger.prototype.isProbablePrime = bnIsProbablePrime;
- // JSBN-specific extension
- BigInteger.prototype.square = bnSquare;
+/***/ }),
- // Expose the Barrett function
- BigInteger.prototype.Barrett = Barrett
+/***/ 38143:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- // BigInteger interfaces not implemented in jsbn:
+// Copyright 2012 Joyent, Inc. All rights reserved.
- // BigInteger(int signum, byte[] magnitude)
- // double doubleValue()
- // float floatValue()
- // int hashCode()
- // long longValue()
- // static BigInteger valueOf(long val)
+var assert = __nccwpck_require__(66631);
+var crypto = __nccwpck_require__(6113);
+var http = __nccwpck_require__(13685);
+var util = __nccwpck_require__(73837);
+var sshpk = __nccwpck_require__(87022);
+var jsprim = __nccwpck_require__(6287);
+var utils = __nccwpck_require__(65689);
- // Random number generator - requires a PRNG backend, e.g. prng4.js
+var sprintf = (__nccwpck_require__(73837).format);
- // For best results, put code like
- //
- // in your main HTML document.
+var HASH_ALGOS = utils.HASH_ALGOS;
+var PK_ALGOS = utils.PK_ALGOS;
+var InvalidAlgorithmError = utils.InvalidAlgorithmError;
+var HttpSignatureError = utils.HttpSignatureError;
+var validateAlgorithm = utils.validateAlgorithm;
- var rng_state;
- var rng_pool;
- var rng_pptr;
+///--- Globals
- // Mix in a 32-bit integer into the pool
- function rng_seed_int(x) {
- rng_pool[rng_pptr++] ^= x & 255;
- rng_pool[rng_pptr++] ^= (x >> 8) & 255;
- rng_pool[rng_pptr++] ^= (x >> 16) & 255;
- rng_pool[rng_pptr++] ^= (x >> 24) & 255;
- if(rng_pptr >= rng_psize) rng_pptr -= rng_psize;
- }
+var AUTHZ_FMT =
+ 'Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';
- // Mix in the current time (w/milliseconds) into the pool
- function rng_seed_time() {
- rng_seed_int(new Date().getTime());
- }
+///--- Specific Errors
- // Initialize the pool with junk if needed.
- if(rng_pool == null) {
- rng_pool = new Array();
- rng_pptr = 0;
- var t;
- if(typeof window !== "undefined" && window.crypto) {
- if (window.crypto.getRandomValues) {
- // Use webcrypto if available
- var ua = new Uint8Array(32);
- window.crypto.getRandomValues(ua);
- for(t = 0; t < 32; ++t)
- rng_pool[rng_pptr++] = ua[t];
- }
- else if(navigator.appName == "Netscape" && navigator.appVersion < "5") {
- // Extract entropy (256 bits) from NS4 RNG if available
- var z = window.crypto.random(32);
- for(t = 0; t < z.length; ++t)
- rng_pool[rng_pptr++] = z.charCodeAt(t) & 255;
- }
- }
- while(rng_pptr < rng_psize) { // extract some randomness from Math.random()
- t = Math.floor(65536 * Math.random());
- rng_pool[rng_pptr++] = t >>> 8;
- rng_pool[rng_pptr++] = t & 255;
- }
- rng_pptr = 0;
- rng_seed_time();
- //rng_seed_int(window.screenX);
- //rng_seed_int(window.screenY);
- }
+function MissingHeaderError(message) {
+ HttpSignatureError.call(this, message, MissingHeaderError);
+}
+util.inherits(MissingHeaderError, HttpSignatureError);
- function rng_get_byte() {
- if(rng_state == null) {
- rng_seed_time();
- rng_state = prng_newstate();
- rng_state.init(rng_pool);
- for(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr)
- rng_pool[rng_pptr] = 0;
- rng_pptr = 0;
- //rng_pool = null;
- }
- // TODO: allow reseeding after first request
- return rng_state.next();
- }
+function StrictParsingError(message) {
+ HttpSignatureError.call(this, message, StrictParsingError);
+}
+util.inherits(StrictParsingError, HttpSignatureError);
- function rng_get_bytes(ba) {
- var i;
- for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte();
- }
+/* See createSigner() */
+function RequestSigner(options) {
+ assert.object(options, 'options');
- function SecureRandom() {}
+ var alg = [];
+ if (options.algorithm !== undefined) {
+ assert.string(options.algorithm, 'options.algorithm');
+ alg = validateAlgorithm(options.algorithm);
+ }
+ this.rs_alg = alg;
- SecureRandom.prototype.nextBytes = rng_get_bytes;
+ /*
+ * RequestSigners come in two varieties: ones with an rs_signFunc, and ones
+ * with an rs_signer.
+ *
+ * rs_signFunc-based RequestSigners have to build up their entire signing
+ * string within the rs_lines array and give it to rs_signFunc as a single
+ * concat'd blob. rs_signer-based RequestSigners can add a line at a time to
+ * their signing state by using rs_signer.update(), thus only needing to
+ * buffer the hash function state and one line at a time.
+ */
+ if (options.sign !== undefined) {
+ assert.func(options.sign, 'options.sign');
+ this.rs_signFunc = options.sign;
- // prng4.js - uses Arcfour as a PRNG
+ } else if (alg[0] === 'hmac' && options.key !== undefined) {
+ assert.string(options.keyId, 'options.keyId');
+ this.rs_keyId = options.keyId;
- function Arcfour() {
- this.i = 0;
- this.j = 0;
- this.S = new Array();
- }
+ if (typeof (options.key) !== 'string' && !Buffer.isBuffer(options.key))
+ throw (new TypeError('options.key for HMAC must be a string or Buffer'));
- // Initialize arcfour context from key, an array of ints, each from [0..255]
- function ARC4init(key) {
- var i, j, t;
- for(i = 0; i < 256; ++i)
- this.S[i] = i;
- j = 0;
- for(i = 0; i < 256; ++i) {
- j = (j + this.S[i] + key[i % key.length]) & 255;
- t = this.S[i];
- this.S[i] = this.S[j];
- this.S[j] = t;
- }
- this.i = 0;
- this.j = 0;
- }
+ /*
+ * Make an rs_signer for HMACs, not a rs_signFunc -- HMACs digest their
+ * data in chunks rather than requiring it all to be given in one go
+ * at the end, so they are more similar to signers than signFuncs.
+ */
+ this.rs_signer = crypto.createHmac(alg[1].toUpperCase(), options.key);
+ this.rs_signer.sign = function () {
+ var digest = this.digest('base64');
+ return ({
+ hashAlgorithm: alg[1],
+ toString: function () { return (digest); }
+ });
+ };
- function ARC4next() {
- var t;
- this.i = (this.i + 1) & 255;
- this.j = (this.j + this.S[this.i]) & 255;
- t = this.S[this.i];
- this.S[this.i] = this.S[this.j];
- this.S[this.j] = t;
- return this.S[(t + this.S[this.i]) & 255];
- }
+ } else if (options.key !== undefined) {
+ var key = options.key;
+ if (typeof (key) === 'string' || Buffer.isBuffer(key))
+ key = sshpk.parsePrivateKey(key);
- Arcfour.prototype.init = ARC4init;
- Arcfour.prototype.next = ARC4next;
+ assert.ok(sshpk.PrivateKey.isPrivateKey(key, [1, 2]),
+ 'options.key must be a sshpk.PrivateKey');
+ this.rs_key = key;
- // Plug in your RNG constructor here
- function prng_newstate() {
- return new Arcfour();
- }
+ assert.string(options.keyId, 'options.keyId');
+ this.rs_keyId = options.keyId;
- // Pool size must be a multiple of 4 and greater than 32.
- // An array of bytes the size of the pool will be passed to init()
- var rng_psize = 256;
+ if (!PK_ALGOS[key.type]) {
+ throw (new InvalidAlgorithmError(key.type.toUpperCase() + ' type ' +
+ 'keys are not supported'));
+ }
- BigInteger.SecureRandom = SecureRandom;
- BigInteger.BigInteger = BigInteger;
- if (true) {
- exports = module.exports = BigInteger;
- } else {}
+ if (alg[0] !== undefined && key.type !== alg[0]) {
+ throw (new InvalidAlgorithmError('options.key must be a ' +
+ alg[0].toUpperCase() + ' key, was given a ' +
+ key.type.toUpperCase() + ' key instead'));
+ }
-}).call(this);
+ this.rs_signer = key.createSign(alg[1]);
+ } else {
+ throw (new TypeError('options.sign (func) or options.key is required'));
+ }
-/***/ }),
+ this.rs_headers = [];
+ this.rs_lines = [];
+}
-/***/ 46123:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/**
+ * Adds a header to be signed, with its value, into this signer.
+ *
+ * @param {String} header
+ * @param {String} value
+ * @return {String} value written
+ */
+RequestSigner.prototype.writeHeader = function (header, value) {
+ assert.string(header, 'header');
+ header = header.toLowerCase();
+ assert.string(value, 'value');
-"use strict";
+ this.rs_headers.push(header);
-const path = __nccwpck_require__(85622);
-const fs = __nccwpck_require__(35747).promises;
-const vm = __nccwpck_require__(92184);
-const toughCookie = __nccwpck_require__(47372);
-const sniffHTMLEncoding = __nccwpck_require__(15487);
-const whatwgURL = __nccwpck_require__(66365);
-const whatwgEncoding = __nccwpck_require__(49967);
-const { URL } = __nccwpck_require__(66365);
-const MIMEType = __nccwpck_require__(59488);
-const idlUtils = __nccwpck_require__(34908);
-const VirtualConsole = __nccwpck_require__(57704);
-const { createWindow } = __nccwpck_require__(55802);
-const { parseIntoDocument } = __nccwpck_require__(35373);
-const { fragmentSerialization } = __nccwpck_require__(33740);
-const ResourceLoader = __nccwpck_require__(90007);
-const NoOpResourceLoader = __nccwpck_require__(5383);
+ if (this.rs_signFunc) {
+ this.rs_lines.push(header + ': ' + value);
-class CookieJar extends toughCookie.CookieJar {
- constructor(store, options) {
- // jsdom cookie jars must be loose by default
- super(store, { looseMode: true, ...options });
+ } else {
+ var line = header + ': ' + value;
+ if (this.rs_headers.length > 0)
+ line = '\n' + line;
+ this.rs_signer.update(line);
}
-}
-const window = Symbol("window");
-let sharedFragmentDocument = null;
-
-class JSDOM {
- constructor(input = "", options = {}) {
- const mimeType = new MIMEType(options.contentType === undefined ? "text/html" : options.contentType);
- const { html, encoding } = normalizeHTML(input, mimeType);
+ return (value);
+};
- options = transformOptions(options, encoding, mimeType);
+/**
+ * Adds a default Date header, returning its value.
+ *
+ * @return {String}
+ */
+RequestSigner.prototype.writeDateHeader = function () {
+ return (this.writeHeader('date', jsprim.rfc1123(new Date())));
+};
- this[window] = createWindow(options.windowOptions);
+/**
+ * Adds the request target line to be signed.
+ *
+ * @param {String} method, HTTP method (e.g. 'get', 'post', 'put')
+ * @param {String} path
+ */
+RequestSigner.prototype.writeTarget = function (method, path) {
+ assert.string(method, 'method');
+ assert.string(path, 'path');
+ method = method.toLowerCase();
+ this.writeHeader('(request-target)', method + ' ' + path);
+};
- const documentImpl = idlUtils.implForWrapper(this[window]._document);
+/**
+ * Calculate the value for the Authorization header on this request
+ * asynchronously.
+ *
+ * @param {Func} callback (err, authz)
+ */
+RequestSigner.prototype.sign = function (cb) {
+ assert.func(cb, 'callback');
- options.beforeParse(this[window]._globalProxy);
+ if (this.rs_headers.length < 1)
+ throw (new Error('At least one header must be signed'));
- parseIntoDocument(html, documentImpl);
+ var alg, authz;
+ if (this.rs_signFunc) {
+ var data = this.rs_lines.join('\n');
+ var self = this;
+ this.rs_signFunc(data, function (err, sig) {
+ if (err) {
+ cb(err);
+ return;
+ }
+ try {
+ assert.object(sig, 'signature');
+ assert.string(sig.keyId, 'signature.keyId');
+ assert.string(sig.algorithm, 'signature.algorithm');
+ assert.string(sig.signature, 'signature.signature');
+ alg = validateAlgorithm(sig.algorithm);
- documentImpl.close();
- }
+ authz = sprintf(AUTHZ_FMT,
+ sig.keyId,
+ sig.algorithm,
+ self.rs_headers.join(' '),
+ sig.signature);
+ } catch (e) {
+ cb(e);
+ return;
+ }
+ cb(null, authz);
+ });
- get window() {
- // It's important to grab the global proxy, instead of just the result of `createWindow(...)`, since otherwise
- // things like `window.eval` don't exist.
- return this[window]._globalProxy;
+ } else {
+ try {
+ var sigObj = this.rs_signer.sign();
+ } catch (e) {
+ cb(e);
+ return;
+ }
+ alg = (this.rs_alg[0] || this.rs_key.type) + '-' + sigObj.hashAlgorithm;
+ var signature = sigObj.toString();
+ authz = sprintf(AUTHZ_FMT,
+ this.rs_keyId,
+ alg,
+ this.rs_headers.join(' '),
+ signature);
+ cb(null, authz);
}
+};
- get virtualConsole() {
- return this[window]._virtualConsole;
- }
+///--- Exported API
- get cookieJar() {
- // TODO NEWAPI move _cookieJar to window probably
- return idlUtils.implForWrapper(this[window]._document)._cookieJar;
- }
+module.exports = {
+ /**
+ * Identifies whether a given object is a request signer or not.
+ *
+ * @param {Object} object, the object to identify
+ * @returns {Boolean}
+ */
+ isSigner: function (obj) {
+ if (typeof (obj) === 'object' && obj instanceof RequestSigner)
+ return (true);
+ return (false);
+ },
- serialize() {
- return fragmentSerialization(idlUtils.implForWrapper(this[window]._document), { requireWellFormed: false });
- }
+ /**
+ * Creates a request signer, used to asynchronously build a signature
+ * for a request (does not have to be an http.ClientRequest).
+ *
+ * @param {Object} options, either:
+ * - {String} keyId
+ * - {String|Buffer} key
+ * - {String} algorithm (optional, required for HMAC)
+ * or:
+ * - {Func} sign (data, cb)
+ * @return {RequestSigner}
+ */
+ createSigner: function createSigner(options) {
+ return (new RequestSigner(options));
+ },
- nodeLocation(node) {
- if (!idlUtils.implForWrapper(this[window]._document)._parseOptions.sourceCodeLocationInfo) {
- throw new Error("Location information was not saved for this jsdom. Use includeNodeLocations during creation.");
- }
+ /**
+ * Adds an 'Authorization' header to an http.ClientRequest object.
+ *
+ * Note that this API will add a Date header if it's not already set. Any
+ * other headers in the options.headers array MUST be present, or this
+ * will throw.
+ *
+ * You shouldn't need to check the return type; it's just there if you want
+ * to be pedantic.
+ *
+ * The optional flag indicates whether parsing should use strict enforcement
+ * of the version draft-cavage-http-signatures-04 of the spec or beyond.
+ * The default is to be loose and support
+ * older versions for compatibility.
+ *
+ * @param {Object} request an instance of http.ClientRequest.
+ * @param {Object} options signing parameters object:
+ * - {String} keyId required.
+ * - {String} key required (either a PEM or HMAC key).
+ * - {Array} headers optional; defaults to ['date'].
+ * - {String} algorithm optional (unless key is HMAC);
+ * default is the same as the sshpk default
+ * signing algorithm for the type of key given
+ * - {String} httpVersion optional; defaults to '1.1'.
+ * - {Boolean} strict optional; defaults to 'false'.
+ * @return {Boolean} true if Authorization (and optionally Date) were added.
+ * @throws {TypeError} on bad parameter types (input).
+ * @throws {InvalidAlgorithmError} if algorithm was bad or incompatible with
+ * the given key.
+ * @throws {sshpk.KeyParseError} if key was bad.
+ * @throws {MissingHeaderError} if a header to be signed was specified but
+ * was not present.
+ */
+ signRequest: function signRequest(request, options) {
+ assert.object(request, 'request');
+ assert.object(options, 'options');
+ assert.optionalString(options.algorithm, 'options.algorithm');
+ assert.string(options.keyId, 'options.keyId');
+ assert.optionalArrayOfString(options.headers, 'options.headers');
+ assert.optionalString(options.httpVersion, 'options.httpVersion');
- return idlUtils.implForWrapper(node).sourceCodeLocation;
- }
+ if (!request.getHeader('Date'))
+ request.setHeader('Date', jsprim.rfc1123(new Date()));
+ if (!options.headers)
+ options.headers = ['date'];
+ if (!options.httpVersion)
+ options.httpVersion = '1.1';
- getInternalVMContext() {
- if (!vm.isContext(this[window])) {
- throw new TypeError("This jsdom was not configured to allow script running. " +
- "Use the runScripts option during creation.");
+ var alg = [];
+ if (options.algorithm) {
+ options.algorithm = options.algorithm.toLowerCase();
+ alg = validateAlgorithm(options.algorithm);
}
- return this[window];
- }
-
- reconfigure(settings) {
- if ("windowTop" in settings) {
- this[window]._top = settings.windowTop;
- }
+ var i;
+ var stringToSign = '';
+ for (i = 0; i < options.headers.length; i++) {
+ if (typeof (options.headers[i]) !== 'string')
+ throw new TypeError('options.headers must be an array of Strings');
- if ("url" in settings) {
- const document = idlUtils.implForWrapper(this[window]._document);
+ var h = options.headers[i].toLowerCase();
- const url = whatwgURL.parseURL(settings.url);
- if (url === null) {
- throw new TypeError(`Could not parse "${settings.url}" as a URL`);
+ if (h === 'request-line') {
+ if (!options.strict) {
+ /**
+ * We allow headers from the older spec drafts if strict parsing isn't
+ * specified in options.
+ */
+ stringToSign +=
+ request.method + ' ' + request.path + ' HTTP/' +
+ options.httpVersion;
+ } else {
+ /* Strict parsing doesn't allow older draft headers. */
+ throw (new StrictParsingError('request-line is not a valid header ' +
+ 'with strict parsing enabled.'));
+ }
+ } else if (h === '(request-target)') {
+ stringToSign +=
+ '(request-target): ' + request.method.toLowerCase() + ' ' +
+ request.path;
+ } else {
+ var value = request.getHeader(h);
+ if (value === undefined || value === '') {
+ throw new MissingHeaderError(h + ' was not in the request');
+ }
+ stringToSign += h + ': ' + value;
}
- document._URL = url;
- document._origin = whatwgURL.serializeURLOrigin(document._URL);
+ if ((i + 1) < options.headers.length)
+ stringToSign += '\n';
}
- }
- static fragment(string = "") {
- if (!sharedFragmentDocument) {
- sharedFragmentDocument = (new JSDOM()).window.document;
+ /* This is just for unit tests. */
+ if (request.hasOwnProperty('_stringToSign')) {
+ request._stringToSign = stringToSign;
}
- const template = sharedFragmentDocument.createElement("template");
- template.innerHTML = string;
- return template.content;
- }
+ var signature;
+ if (alg[0] === 'hmac') {
+ if (typeof (options.key) !== 'string' && !Buffer.isBuffer(options.key))
+ throw (new TypeError('options.key must be a string or Buffer'));
- static fromURL(url, options = {}) {
- return Promise.resolve().then(() => {
- // Remove the hash while sending this through the research loader fetch().
- // It gets added back a few lines down when constructing the JSDOM object.
- const parsedURL = new URL(url);
- const originalHash = parsedURL.hash;
- parsedURL.hash = "";
- url = parsedURL.href;
+ var hmac = crypto.createHmac(alg[1].toUpperCase(), options.key);
+ hmac.update(stringToSign);
+ signature = hmac.digest('base64');
- options = normalizeFromURLOptions(options);
+ } else {
+ var key = options.key;
+ if (typeof (key) === 'string' || Buffer.isBuffer(key))
+ key = sshpk.parsePrivateKey(options.key);
- const resourceLoader = resourcesToResourceLoader(options.resources);
- const resourceLoaderForInitialRequest = resourceLoader.constructor === NoOpResourceLoader ?
- new ResourceLoader() :
- resourceLoader;
+ assert.ok(sshpk.PrivateKey.isPrivateKey(key, [1, 2]),
+ 'options.key must be a sshpk.PrivateKey');
- const req = resourceLoaderForInitialRequest.fetch(url, {
- accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
- cookieJar: options.cookieJar,
- referrer: options.referrer
- });
+ if (!PK_ALGOS[key.type]) {
+ throw (new InvalidAlgorithmError(key.type.toUpperCase() + ' type ' +
+ 'keys are not supported'));
+ }
- return req.then(body => {
- const res = req.response;
+ if (alg[0] !== undefined && key.type !== alg[0]) {
+ throw (new InvalidAlgorithmError('options.key must be a ' +
+ alg[0].toUpperCase() + ' key, was given a ' +
+ key.type.toUpperCase() + ' key instead'));
+ }
- options = Object.assign(options, {
- url: req.href + originalHash,
- contentType: res.headers["content-type"],
- referrer: req.getHeader("referer")
- });
+ var signer = key.createSign(alg[1]);
+ signer.update(stringToSign);
+ var sigObj = signer.sign();
+ if (!HASH_ALGOS[sigObj.hashAlgorithm]) {
+ throw (new InvalidAlgorithmError(sigObj.hashAlgorithm.toUpperCase() +
+ ' is not a supported hash algorithm'));
+ }
+ options.algorithm = key.type + '-' + sigObj.hashAlgorithm;
+ signature = sigObj.toString();
+ assert.notStrictEqual(signature, '', 'empty signature produced');
+ }
- return new JSDOM(body, options);
- });
- });
- }
+ var authzHeaderName = options.authorizationHeaderName || 'Authorization';
- static async fromFile(filename, options = {}) {
- options = normalizeFromFileOptions(filename, options);
- const buffer = await fs.readFile(filename);
+ request.setHeader(authzHeaderName, sprintf(AUTHZ_FMT,
+ options.keyId,
+ options.algorithm,
+ options.headers.join(' '),
+ signature));
- return new JSDOM(buffer, options);
+ return true;
}
-}
-function normalizeFromURLOptions(options) {
- // Checks on options that are invalid for `fromURL`
- if (options.url !== undefined) {
- throw new TypeError("Cannot supply a url option when using fromURL");
- }
- if (options.contentType !== undefined) {
- throw new TypeError("Cannot supply a contentType option when using fromURL");
- }
+};
- // Normalization of options which must be done before the rest of the fromURL code can use them, because they are
- // given to request()
- const normalized = { ...options };
- if (options.referrer !== undefined) {
- normalized.referrer = (new URL(options.referrer)).href;
- }
+/***/ }),
- if (options.cookieJar === undefined) {
- normalized.cookieJar = new CookieJar();
- }
+/***/ 65689:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- return normalized;
+// Copyright 2012 Joyent, Inc. All rights reserved.
- // All other options don't need to be processed yet, and can be taken care of in the normal course of things when
- // `fromURL` calls `new JSDOM(html, options)`.
-}
+var assert = __nccwpck_require__(66631);
+var sshpk = __nccwpck_require__(87022);
+var util = __nccwpck_require__(73837);
-function normalizeFromFileOptions(filename, options) {
- const normalized = { ...options };
+var HASH_ALGOS = {
+ 'sha1': true,
+ 'sha256': true,
+ 'sha512': true
+};
- if (normalized.contentType === undefined) {
- const extname = path.extname(filename);
- if (extname === ".xhtml" || extname === ".xht" || extname === ".xml") {
- normalized.contentType = "application/xhtml+xml";
- }
- }
+var PK_ALGOS = {
+ 'rsa': true,
+ 'dsa': true,
+ 'ecdsa': true
+};
- if (normalized.url === undefined) {
- normalized.url = new URL("file:" + path.resolve(filename));
- }
+function HttpSignatureError(message, caller) {
+ if (Error.captureStackTrace)
+ Error.captureStackTrace(this, caller || HttpSignatureError);
- return normalized;
+ this.message = message;
+ this.name = caller.name;
}
+util.inherits(HttpSignatureError, Error);
-function transformOptions(options, encoding, mimeType) {
- const transformed = {
- windowOptions: {
- // Defaults
- url: "about:blank",
- referrer: "",
- contentType: "text/html",
- parsingMode: "html",
- parseOptions: {
- sourceCodeLocationInfo: false,
- scriptingEnabled: false
- },
- runScripts: undefined,
- encoding,
- pretendToBeVisual: false,
- storageQuota: 5000000,
-
- // Defaults filled in later
- resourceLoader: undefined,
- virtualConsole: undefined,
- cookieJar: undefined
- },
+function InvalidAlgorithmError(message) {
+ HttpSignatureError.call(this, message, InvalidAlgorithmError);
+}
+util.inherits(InvalidAlgorithmError, HttpSignatureError);
- // Defaults
- beforeParse() { }
- };
+function validateAlgorithm(algorithm) {
+ var alg = algorithm.toLowerCase().split('-');
- // options.contentType was parsed into mimeType by the caller.
- if (!mimeType.isHTML() && !mimeType.isXML()) {
- throw new RangeError(`The given content type of "${options.contentType}" was not a HTML or XML content type`);
+ if (alg.length !== 2) {
+ throw (new InvalidAlgorithmError(alg[0].toUpperCase() + ' is not a ' +
+ 'valid algorithm'));
}
- transformed.windowOptions.contentType = mimeType.essence;
- transformed.windowOptions.parsingMode = mimeType.isHTML() ? "html" : "xml";
-
- if (options.url !== undefined) {
- transformed.windowOptions.url = (new URL(options.url)).href;
+ if (alg[0] !== 'hmac' && !PK_ALGOS[alg[0]]) {
+ throw (new InvalidAlgorithmError(alg[0].toUpperCase() + ' type keys ' +
+ 'are not supported'));
}
- if (options.referrer !== undefined) {
- transformed.windowOptions.referrer = (new URL(options.referrer)).href;
+ if (!HASH_ALGOS[alg[1]]) {
+ throw (new InvalidAlgorithmError(alg[1].toUpperCase() + ' is not a ' +
+ 'supported hash algorithm'));
}
- if (options.includeNodeLocations) {
- if (transformed.windowOptions.parsingMode === "xml") {
- throw new TypeError("Cannot set includeNodeLocations to true with an XML content type");
- }
+ return (alg);
+}
- transformed.windowOptions.parseOptions = { sourceCodeLocationInfo: true };
- }
+///--- API
- transformed.windowOptions.cookieJar = options.cookieJar === undefined ?
- new CookieJar() :
- options.cookieJar;
+module.exports = {
- transformed.windowOptions.virtualConsole = options.virtualConsole === undefined ?
- (new VirtualConsole()).sendTo(console) :
- options.virtualConsole;
+ HASH_ALGOS: HASH_ALGOS,
+ PK_ALGOS: PK_ALGOS,
- if (!(transformed.windowOptions.virtualConsole instanceof VirtualConsole)) {
- throw new TypeError("virtualConsole must be an instance of VirtualConsole");
- }
+ HttpSignatureError: HttpSignatureError,
+ InvalidAlgorithmError: InvalidAlgorithmError,
- transformed.windowOptions.resourceLoader = resourcesToResourceLoader(options.resources);
+ validateAlgorithm: validateAlgorithm,
- if (options.runScripts !== undefined) {
- transformed.windowOptions.runScripts = String(options.runScripts);
- if (transformed.windowOptions.runScripts === "dangerously") {
- transformed.windowOptions.parseOptions.scriptingEnabled = true;
- } else if (transformed.windowOptions.runScripts !== "outside-only") {
- throw new RangeError(`runScripts must be undefined, "dangerously", or "outside-only"`);
- }
- }
+ /**
+ * Converts an OpenSSH public key (rsa only) to a PKCS#8 PEM file.
+ *
+ * The intent of this module is to interoperate with OpenSSL only,
+ * specifically the node crypto module's `verify` method.
+ *
+ * @param {String} key an OpenSSH public key.
+ * @return {String} PEM encoded form of the RSA public key.
+ * @throws {TypeError} on bad input.
+ * @throws {Error} on invalid ssh key formatted data.
+ */
+ sshKeyToPEM: function sshKeyToPEM(key) {
+ assert.string(key, 'ssh_key');
- if (options.beforeParse !== undefined) {
- transformed.beforeParse = options.beforeParse;
- }
+ var k = sshpk.parseKey(key, 'ssh');
+ return (k.toString('pem'));
+ },
- if (options.pretendToBeVisual !== undefined) {
- transformed.windowOptions.pretendToBeVisual = Boolean(options.pretendToBeVisual);
- }
- if (options.storageQuota !== undefined) {
- transformed.windowOptions.storageQuota = Number(options.storageQuota);
- }
+ /**
+ * Generates an OpenSSH fingerprint from an ssh public key.
+ *
+ * @param {String} key an OpenSSH public key.
+ * @return {String} key fingerprint.
+ * @throws {TypeError} on bad input.
+ * @throws {Error} if what you passed doesn't look like an ssh public key.
+ */
+ fingerprint: function fingerprint(key) {
+ assert.string(key, 'ssh_key');
- return transformed;
-}
+ var k = sshpk.parseKey(key, 'ssh');
+ return (k.fingerprint('md5').toString('hex'));
+ },
-function normalizeHTML(html, mimeType) {
- let encoding = "UTF-8";
+ /**
+ * Converts a PKGCS#8 PEM file to an OpenSSH public key (rsa)
+ *
+ * The reverse of the above function.
+ */
+ pemToRsaSSHKey: function pemToRsaSSHKey(pem, comment) {
+ assert.equal('string', typeof (pem), 'typeof pem');
- if (ArrayBuffer.isView(html)) {
- html = Buffer.from(html.buffer, html.byteOffset, html.byteLength);
- } else if (html instanceof ArrayBuffer) {
- html = Buffer.from(html);
+ var k = sshpk.parseKey(pem, 'pem');
+ k.comment = comment;
+ return (k.toString('ssh'));
}
+};
- if (Buffer.isBuffer(html)) {
- encoding = sniffHTMLEncoding(html, {
- defaultEncoding: mimeType.isXML() ? "UTF-8" : "windows-1252",
- transportLayerEncodingLabel: mimeType.parameters.get("charset")
- });
- html = whatwgEncoding.decode(html, encoding);
- } else {
- html = String(html);
- }
- return { html, encoding };
-}
+/***/ }),
-function resourcesToResourceLoader(resources) {
- switch (resources) {
- case undefined: {
- return new NoOpResourceLoader();
- }
- case "usable": {
- return new ResourceLoader();
- }
- default: {
- if (!(resources instanceof ResourceLoader)) {
- throw new TypeError("resources must be an instance of ResourceLoader");
- }
- return resources;
- }
- }
-}
+/***/ 51227:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-exports.JSDOM = JSDOM;
+// Copyright 2015 Joyent, Inc.
-exports.VirtualConsole = VirtualConsole;
-exports.CookieJar = CookieJar;
-exports.ResourceLoader = ResourceLoader;
+var assert = __nccwpck_require__(66631);
+var crypto = __nccwpck_require__(6113);
+var sshpk = __nccwpck_require__(87022);
+var utils = __nccwpck_require__(65689);
-exports.toughCookie = toughCookie;
+var HASH_ALGOS = utils.HASH_ALGOS;
+var PK_ALGOS = utils.PK_ALGOS;
+var InvalidAlgorithmError = utils.InvalidAlgorithmError;
+var HttpSignatureError = utils.HttpSignatureError;
+var validateAlgorithm = utils.validateAlgorithm;
+///--- Exported API
-/***/ }),
+module.exports = {
+ /**
+ * Verify RSA/DSA signature against public key. You are expected to pass in
+ * an object that was returned from `parse()`.
+ *
+ * @param {Object} parsedSignature the object you got from `parse`.
+ * @param {String} pubkey RSA/DSA private key PEM.
+ * @return {Boolean} true if valid, false otherwise.
+ * @throws {TypeError} if you pass in bad arguments.
+ * @throws {InvalidAlgorithmError}
+ */
+ verifySignature: function verifySignature(parsedSignature, pubkey) {
+ assert.object(parsedSignature, 'parsedSignature');
+ if (typeof (pubkey) === 'string' || Buffer.isBuffer(pubkey))
+ pubkey = sshpk.parseKey(pubkey);
+ assert.ok(sshpk.Key.isKey(pubkey, [1, 1]), 'pubkey must be a sshpk.Key');
-/***/ 55802:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ var alg = validateAlgorithm(parsedSignature.algorithm);
+ if (alg[0] === 'hmac' || alg[0] !== pubkey.type)
+ return (false);
-"use strict";
+ var v = pubkey.createVerify(alg[1]);
+ v.update(parsedSignature.signingString);
+ return (v.verify(parsedSignature.params.signature, 'base64'));
+ },
-const vm = __nccwpck_require__(92184);
-const webIDLConversions = __nccwpck_require__(54886);
-const { CSSStyleDeclaration } = __nccwpck_require__(15674);
-const { Performance: RawPerformance } = __nccwpck_require__(38481);
-const notImplemented = __nccwpck_require__(42751);
-const { installInterfaces } = __nccwpck_require__(71643);
-const { define, mixin } = __nccwpck_require__(11463);
-const Element = __nccwpck_require__(4444);
-const EventTarget = __nccwpck_require__(71038);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const PageTransitionEvent = __nccwpck_require__(32941);
-const namedPropertiesWindow = __nccwpck_require__(15200);
-const postMessage = __nccwpck_require__(47054);
-const DOMException = __nccwpck_require__(57617);
-const { btoa, atob } = __nccwpck_require__(75696);
-const idlUtils = __nccwpck_require__(34908);
-const WebSocketImpl = __nccwpck_require__(13846).implementation;
-const BarProp = __nccwpck_require__(35849);
-const documents = __nccwpck_require__(19951);
-const External = __nccwpck_require__(19995);
-const Navigator = __nccwpck_require__(96340);
-const Performance = __nccwpck_require__(19264);
-const Screen = __nccwpck_require__(46164);
-const Storage = __nccwpck_require__(76969);
-const Selection = __nccwpck_require__(69144);
-const reportException = __nccwpck_require__(15612);
-const { getCurrentEventHandlerValue } = __nccwpck_require__(50238);
-const { fireAnEvent } = __nccwpck_require__(45673);
-const SessionHistory = __nccwpck_require__(14825);
-const { forEachMatchingSheetRuleOfElement, getResolvedValue, propertiesWithResolvedValueImplemented,
- SHADOW_DOM_PSEUDO_REGEXP } = __nccwpck_require__(11627);
-const CustomElementRegistry = __nccwpck_require__(17609);
-const jsGlobals = __nccwpck_require__(70629);
+ /**
+ * Verify HMAC against shared secret. You are expected to pass in an object
+ * that was returned from `parse()`.
+ *
+ * @param {Object} parsedSignature the object you got from `parse`.
+ * @param {String} secret HMAC shared secret.
+ * @return {Boolean} true if valid, false otherwise.
+ * @throws {TypeError} if you pass in bad arguments.
+ * @throws {InvalidAlgorithmError}
+ */
+ verifyHMAC: function verifyHMAC(parsedSignature, secret) {
+ assert.object(parsedSignature, 'parsedHMAC');
+ assert.string(secret, 'secret');
-const GlobalEventHandlersImpl = __nccwpck_require__(4084).implementation;
-const WindowEventHandlersImpl = __nccwpck_require__(55974).implementation;
+ var alg = validateAlgorithm(parsedSignature.algorithm);
+ if (alg[0] !== 'hmac')
+ return (false);
-const events = new Set([
- // GlobalEventHandlers
- "abort", "autocomplete",
- "autocompleteerror", "blur",
- "cancel", "canplay", "canplaythrough",
- "change", "click",
- "close", "contextmenu",
- "cuechange", "dblclick",
- "drag", "dragend",
- "dragenter",
- "dragleave", "dragover",
- "dragstart", "drop",
- "durationchange", "emptied",
- "ended", "focus",
- "input", "invalid",
- "keydown", "keypress",
- "keyup", "load", "loadeddata",
- "loadedmetadata", "loadstart",
- "mousedown", "mouseenter",
- "mouseleave", "mousemove",
- "mouseout", "mouseover",
- "mouseup", "wheel",
- "pause", "play",
- "playing", "progress",
- "ratechange", "reset",
- "resize", "scroll",
- "securitypolicyviolation",
- "seeked", "seeking",
- "select", "sort", "stalled",
- "submit", "suspend",
- "timeupdate", "toggle",
- "volumechange", "waiting",
+ var hashAlg = alg[1].toUpperCase();
- // WindowEventHandlers
- "afterprint",
- "beforeprint",
- "hashchange",
- "languagechange",
- "message",
- "messageerror",
- "offline",
- "online",
- "pagehide",
- "pageshow",
- "popstate",
- "rejectionhandled",
- "storage",
- "unhandledrejection",
- "unload"
+ var hmac = crypto.createHmac(hashAlg, secret);
+ hmac.update(parsedSignature.signingString);
- // "error" and "beforeunload" are added separately
-]);
+ /*
+ * Now double-hash to avoid leaking timing information - there's
+ * no easy constant-time compare in JS, so we use this approach
+ * instead. See for more info:
+ * https://www.isecpartners.com/blog/2011/february/double-hmac-
+ * verification.aspx
+ */
+ var h1 = crypto.createHmac(hashAlg, secret);
+ h1.update(hmac.digest());
+ h1 = h1.digest();
+ var h2 = crypto.createHmac(hashAlg, secret);
+ h2.update(new Buffer(parsedSignature.params.signature, 'base64'));
+ h2 = h2.digest();
-exports.createWindow = function (options) {
- return new Window(options);
-};
+ /* Node 0.8 returns strings from .digest(). */
+ if (typeof (h1) === 'string')
+ return (h1 === h2);
+ /* And node 0.10 lacks the .equals() method on Buffers. */
+ if (Buffer.isBuffer(h1) && !h1.equals)
+ return (h1.toString('binary') === h2.toString('binary'));
-const jsGlobalEntriesToInstall = Object.entries(jsGlobals).filter(([name]) => name in global);
+ return (h1.equals(h2));
+ }
+};
-// TODO remove when we drop Node v10 support.
-const anyNodeVersionQueueMicrotask = typeof queueMicrotask === "function" ? queueMicrotask : process.nextTick;
-// https://html.spec.whatwg.org/#the-window-object
-function setupWindow(windowInstance, { runScripts }) {
- if (runScripts === "outside-only" || runScripts === "dangerously") {
- contextifyWindow(windowInstance);
+/***/ }),
- // Without this, these globals will only appear to scripts running inside the context using vm.runScript; they will
- // not appear to scripts running from the outside, including to JSDOM implementation code.
- for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
- const propDesc = { ...globalPropDesc, value: vm.runInContext(globalName, windowInstance) };
- Object.defineProperty(windowInstance, globalName, propDesc);
- }
- } else {
- // Without contextifying the window, none of the globals will exist. So, let's at least alias them from the Node.js
- // context. See https://github.com/jsdom/jsdom/issues/2727 for more background and discussion.
- for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
- const propDesc = { ...globalPropDesc, value: global[globalName] };
- Object.defineProperty(windowInstance, globalName, propDesc);
- }
- }
+/***/ 39695:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- installInterfaces(windowInstance, ["Window"]);
+"use strict";
- const EventTargetConstructor = windowInstance.EventTarget;
+var Buffer = (__nccwpck_require__(15118).Buffer);
- // eslint-disable-next-line func-name-matching, func-style, no-shadow
- const windowConstructor = function Window() {
- throw new TypeError("Illegal constructor");
- };
- Object.setPrototypeOf(windowConstructor, EventTargetConstructor);
+// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
+// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
+// To save memory and loading time, we read table files only when requested.
- Object.defineProperty(windowInstance, "Window", {
- configurable: true,
- writable: true,
- value: windowConstructor
- });
+exports._dbcs = DBCSCodec;
- const windowPrototype = Object.create(EventTargetConstructor.prototype);
- Object.defineProperties(windowPrototype, {
- constructor: {
- value: windowConstructor,
- writable: true,
- configurable: true
- },
- [Symbol.toStringTag]: {
- value: "Window",
- configurable: true
- }
- });
+var UNASSIGNED = -1,
+ GB18030_CODE = -2,
+ SEQ_START = -10,
+ NODE_START = -1000,
+ UNASSIGNED_NODE = new Array(0x100),
+ DEF_CHAR = -1;
- windowConstructor.prototype = windowPrototype;
- Object.setPrototypeOf(windowInstance, windowPrototype);
+for (var i = 0; i < 0x100; i++)
+ UNASSIGNED_NODE[i] = UNASSIGNED;
- EventTarget.setup(windowInstance, windowInstance);
- mixin(windowInstance, WindowEventHandlersImpl.prototype);
- mixin(windowInstance, GlobalEventHandlersImpl.prototype);
- windowInstance._initGlobalEvents();
- Object.defineProperty(windowInstance, "onbeforeunload", {
- configurable: true,
- enumerable: true,
- get() {
- return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "beforeunload"));
- },
- set(V) {
- if (!idlUtils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeunload' property on 'Window': The provided value"
- });
- }
- this._setEventHandlerFor("beforeunload", V);
- }
- });
+// Class DBCSCodec reads and initializes mapping tables.
+function DBCSCodec(codecOptions, iconv) {
+ this.encodingName = codecOptions.encodingName;
+ if (!codecOptions)
+ throw new Error("DBCS codec is called without the data.")
+ if (!codecOptions.table)
+ throw new Error("Encoding '" + this.encodingName + "' has no data.");
- Object.defineProperty(windowInstance, "onerror", {
- configurable: true,
- enumerable: true,
- get() {
- return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "error"));
- },
- set(V) {
- if (!idlUtils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'Window': The provided value"
- });
- }
- this._setEventHandlerFor("error", V);
- }
- });
+ // Load tables.
+ var mappingTable = codecOptions.table();
- for (const event of events) {
- Object.defineProperty(windowInstance, `on${event}`, {
- configurable: true,
- enumerable: true,
- get() {
- return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, event));
- },
- set(V) {
- if (!idlUtils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: `Failed to set the 'on${event}' property on 'Window': The provided value`
- });
- }
- this._setEventHandlerFor(event, V);
- }
- });
- }
- windowInstance._globalObject = windowInstance;
-}
+ // Decode tables: MBCS -> Unicode.
-// NOTE: per https://heycam.github.io/webidl/#Global, all properties on the Window object must be own-properties.
-// That is why we assign everything inside of the constructor, instead of using a shared prototype.
-// You can verify this in e.g. Firefox or Internet Explorer, which do a good job with Web IDL compliance.
-function Window(options) {
- setupWindow(this, { runScripts: options.runScripts });
+ // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.
+ // Trie root is decodeTables[0].
+ // Values: >= 0 -> unicode character code. can be > 0xFFFF
+ // == UNASSIGNED -> unknown/unassigned sequence.
+ // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.
+ // <= NODE_START -> index of the next node in our trie to process next byte.
+ // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.
+ this.decodeTables = [];
+ this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.
- const rawPerformance = new RawPerformance();
- const windowInitialized = rawPerformance.now();
+ // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
+ this.decodeTableSeq = [];
- const window = this;
+ // Actual mapping tables consist of chunks. Use them to fill up decode tables.
+ for (var i = 0; i < mappingTable.length; i++)
+ this._addDecodeChunk(mappingTable[i]);
- // ### PRIVATE DATA PROPERTIES
+ this.defaultCharUnicode = iconv.defaultCharUnicode;
- this._resourceLoader = options.resourceLoader;
+
+ // Encode tables: Unicode -> DBCS.
- // vm initialization is deferred until script processing is activated
- this._globalProxy = this;
- Object.defineProperty(idlUtils.implForWrapper(this), idlUtils.wrapperSymbol, { get: () => this._globalProxy });
+ // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.
+ // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.
+ // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).
+ // == UNASSIGNED -> no conversion found. Output a default char.
+ // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.
+ this.encodeTable = [];
+
+ // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of
+ // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key
+ // means end of sequence (needed when one sequence is a strict subsequence of another).
+ // Objects are kept separately from encodeTable to increase performance.
+ this.encodeTableSeq = [];
- // List options explicitly to be clear which are passed through
- this._document = documents.createWrapper(window, {
- parsingMode: options.parsingMode,
- contentType: options.contentType,
- encoding: options.encoding,
- cookieJar: options.cookieJar,
- url: options.url,
- lastModified: options.lastModified,
- referrer: options.referrer,
- parseOptions: options.parseOptions,
- defaultView: this._globalProxy,
- global: this,
- parentOrigin: options.parentOrigin
- }, { alwaysUseDocumentClass: true });
+ // Some chars can be decoded, but need not be encoded.
+ var skipEncodeChars = {};
+ if (codecOptions.encodeSkipVals)
+ for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
+ var val = codecOptions.encodeSkipVals[i];
+ if (typeof val === 'number')
+ skipEncodeChars[val] = true;
+ else
+ for (var j = val.from; j <= val.to; j++)
+ skipEncodeChars[j] = true;
+ }
+
+ // Use decode trie to recursively fill out encode tables.
+ this._fillEncodeTable(0, 0, skipEncodeChars);
- if (vm.isContext(window)) {
- const documentImpl = idlUtils.implForWrapper(window._document);
- documentImpl._defaultView = window._globalProxy = vm.runInContext("this", window);
- }
+ // Add more encoding pairs when needed.
+ if (codecOptions.encodeAdd) {
+ for (var uChar in codecOptions.encodeAdd)
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
+ this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
+ }
- const documentOrigin = idlUtils.implForWrapper(this._document)._origin;
- this._origin = documentOrigin;
+ this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
+ if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];
+ if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
- // https://html.spec.whatwg.org/#session-history
- this._sessionHistory = new SessionHistory({
- document: idlUtils.implForWrapper(this._document),
- url: idlUtils.implForWrapper(this._document)._URL,
- stateObject: null
- }, this);
- this._virtualConsole = options.virtualConsole;
+ // Load & create GB18030 tables when needed.
+ if (typeof codecOptions.gb18030 === 'function') {
+ this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.
- this._runScripts = options.runScripts;
+ // Add GB18030 decode tables.
+ var thirdByteNodeIdx = this.decodeTables.length;
+ var thirdByteNode = this.decodeTables[thirdByteNodeIdx] = UNASSIGNED_NODE.slice(0);
- // Set up the window as if it's a top level window.
- // If it's not, then references will be corrected by frame/iframe code.
- this._parent = this._top = this._globalProxy;
- this._frameElement = null;
+ var fourthByteNodeIdx = this.decodeTables.length;
+ var fourthByteNode = this.decodeTables[fourthByteNodeIdx] = UNASSIGNED_NODE.slice(0);
- // This implements window.frames.length, since window.frames returns a
- // self reference to the window object. This value is incremented in the
- // HTMLFrameElement implementation.
- this._length = 0;
+ for (var i = 0x81; i <= 0xFE; i++) {
+ var secondByteNodeIdx = NODE_START - this.decodeTables[0][i];
+ var secondByteNode = this.decodeTables[secondByteNodeIdx];
+ for (var j = 0x30; j <= 0x39; j++)
+ secondByteNode[j] = NODE_START - thirdByteNodeIdx;
+ }
+ for (var i = 0x81; i <= 0xFE; i++)
+ thirdByteNode[i] = NODE_START - fourthByteNodeIdx;
+ for (var i = 0x30; i <= 0x39; i++)
+ fourthByteNode[i] = GB18030_CODE
+ }
+}
- // https://dom.spec.whatwg.org/#window-current-event
- this._currentEvent = undefined;
+DBCSCodec.prototype.encoder = DBCSEncoder;
+DBCSCodec.prototype.decoder = DBCSDecoder;
- this._pretendToBeVisual = options.pretendToBeVisual;
- this._storageQuota = options.storageQuota;
+// Decoder helpers
+DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
+ var bytes = [];
+ for (; addr > 0; addr >>= 8)
+ bytes.push(addr & 0xFF);
+ if (bytes.length == 0)
+ bytes.push(0);
- // Some properties (such as localStorage and sessionStorage) share data
- // between windows in the same origin. This object is intended
- // to contain such data.
- if (options.commonForOrigin && options.commonForOrigin[documentOrigin]) {
- this._commonForOrigin = options.commonForOrigin;
- } else {
- this._commonForOrigin = {
- [documentOrigin]: {
- localStorageArea: new Map(),
- sessionStorageArea: new Map(),
- windowsInSameOrigin: [this]
- }
- };
- }
+ var node = this.decodeTables[0];
+ for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.
+ var val = node[bytes[i]];
- this._currentOriginData = this._commonForOrigin[documentOrigin];
+ if (val == UNASSIGNED) { // Create new node.
+ node[bytes[i]] = NODE_START - this.decodeTables.length;
+ this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
+ }
+ else if (val <= NODE_START) { // Existing node.
+ node = this.decodeTables[NODE_START - val];
+ }
+ else
+ throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
+ }
+ return node;
+}
- // ### WEB STORAGE
- this._localStorage = Storage.create(window, [], {
- associatedWindow: this,
- storageArea: this._currentOriginData.localStorageArea,
- type: "localStorage",
- url: this._document.documentURI,
- storageQuota: this._storageQuota
- });
- this._sessionStorage = Storage.create(window, [], {
- associatedWindow: this,
- storageArea: this._currentOriginData.sessionStorageArea,
- type: "sessionStorage",
- url: this._document.documentURI,
- storageQuota: this._storageQuota
- });
+DBCSCodec.prototype._addDecodeChunk = function(chunk) {
+ // First element of chunk is the hex mbcs code where we start.
+ var curAddr = parseInt(chunk[0], 16);
- // ### SELECTION
+ // Choose the decoding node where we'll write our chars.
+ var writeTable = this._getDecodeTrieNode(curAddr);
+ curAddr = curAddr & 0xFF;
- // https://w3c.github.io/selection-api/#dfn-selection
- this._selection = Selection.createImpl(window);
+ // Write all other elements of the chunk to the table.
+ for (var k = 1; k < chunk.length; k++) {
+ var part = chunk[k];
+ if (typeof part === "string") { // String, write as-is.
+ for (var l = 0; l < part.length;) {
+ var code = part.charCodeAt(l++);
+ if (0xD800 <= code && code < 0xDC00) { // Decode surrogate
+ var codeTrail = part.charCodeAt(l++);
+ if (0xDC00 <= codeTrail && codeTrail < 0xE000)
+ writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);
+ else
+ throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
+ }
+ else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)
+ var len = 0xFFF - code + 2;
+ var seq = [];
+ for (var m = 0; m < len; m++)
+ seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.
- // https://w3c.github.io/selection-api/#dom-window
- this.getSelection = function () {
- return window._selection;
- };
+ writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
+ this.decodeTableSeq.push(seq);
+ }
+ else
+ writeTable[curAddr++] = code; // Basic char
+ }
+ }
+ else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character.
+ var charCode = writeTable[curAddr - 1] + 1;
+ for (var l = 0; l < part; l++)
+ writeTable[curAddr++] = charCode++;
+ }
+ else
+ throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
+ }
+ if (curAddr > 0xFF)
+ throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
+}
- // ### GETTERS
+// Encoder helpers
+DBCSCodec.prototype._getEncodeBucket = function(uCode) {
+ var high = uCode >> 8; // This could be > 0xFF because of astral characters.
+ if (this.encodeTable[high] === undefined)
+ this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.
+ return this.encodeTable[high];
+}
- const locationbar = BarProp.create(window);
- const menubar = BarProp.create(window);
- const personalbar = BarProp.create(window);
- const scrollbars = BarProp.create(window);
- const statusbar = BarProp.create(window);
- const toolbar = BarProp.create(window);
- const external = External.create(window);
- const navigator = Navigator.create(window, [], { userAgent: this._resourceLoader._userAgent });
- const performance = Performance.create(window, [], { rawPerformance });
- const screen = Screen.create(window);
- const customElementRegistry = CustomElementRegistry.create(window);
+DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
+ var bucket = this._getEncodeBucket(uCode);
+ var low = uCode & 0xFF;
+ if (bucket[low] <= SEQ_START)
+ this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.
+ else if (bucket[low] == UNASSIGNED)
+ bucket[low] = dbcsCode;
+}
- define(this, {
- get length() {
- return window._length;
- },
- get window() {
- return window._globalProxy;
- },
- get frameElement() {
- return idlUtils.wrapperForImpl(window._frameElement);
- },
- get frames() {
- return window._globalProxy;
- },
- get self() {
- return window._globalProxy;
- },
- get parent() {
- return window._parent;
- },
- get top() {
- return window._top;
- },
- get document() {
- return window._document;
- },
- get external() {
- return external;
- },
- get location() {
- return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
- },
- get history() {
- return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._history);
- },
- get navigator() {
- return navigator;
- },
- get locationbar() {
- return locationbar;
- },
- get menubar() {
- return menubar;
- },
- get personalbar() {
- return personalbar;
- },
- get scrollbars() {
- return scrollbars;
- },
- get statusbar() {
- return statusbar;
- },
- get toolbar() {
- return toolbar;
- },
- get performance() {
- return performance;
- },
- get screen() {
- return screen;
- },
- get origin() {
- return window._origin;
- },
- // The origin IDL attribute is defined with [Replaceable].
- set origin(value) {
- Object.defineProperty(this, "origin", {
- value,
- writable: true,
- enumerable: true,
- configurable: true
- });
- },
- get localStorage() {
- if (idlUtils.implForWrapper(this._document)._origin === "null") {
- throw DOMException.create(window, [
- "localStorage is not available for opaque origins",
- "SecurityError"
- ]);
- }
+DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
+
+ // Get the root of character tree according to first character of the sequence.
+ var uCode = seq[0];
+ var bucket = this._getEncodeBucket(uCode);
+ var low = uCode & 0xFF;
- return this._localStorage;
- },
- get sessionStorage() {
- if (idlUtils.implForWrapper(this._document)._origin === "null") {
- throw DOMException.create(window, [
- "sessionStorage is not available for opaque origins",
- "SecurityError"
- ]);
- }
+ var node;
+ if (bucket[low] <= SEQ_START) {
+ // There's already a sequence with - use it.
+ node = this.encodeTableSeq[SEQ_START-bucket[low]];
+ }
+ else {
+ // There was no sequence object - allocate a new one.
+ node = {};
+ if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.
+ bucket[low] = SEQ_START - this.encodeTableSeq.length;
+ this.encodeTableSeq.push(node);
+ }
- return this._sessionStorage;
- },
- get customElements() {
- return customElementRegistry;
- },
- get event() {
- return window._currentEvent ? idlUtils.wrapperForImpl(window._currentEvent) : undefined;
- },
- set event(value) {
- Object.defineProperty(window, "event", { configurable: true, enumerable: true, writable: true, value });
+ // Traverse the character tree, allocating new nodes as needed.
+ for (var j = 1; j < seq.length-1; j++) {
+ var oldVal = node[uCode];
+ if (typeof oldVal === 'object')
+ node = oldVal;
+ else {
+ node = node[uCode] = {}
+ if (oldVal !== undefined)
+ node[DEF_CHAR] = oldVal
+ }
}
- });
- namedPropertiesWindow.initializeWindow(this, this._globalProxy);
+ // Set the leaf to given dbcsCode.
+ uCode = seq[seq.length-1];
+ node[uCode] = dbcsCode;
+}
- // ### METHODS
+DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {
+ var node = this.decodeTables[nodeIdx];
+ for (var i = 0; i < 0x100; i++) {
+ var uCode = node[i];
+ var mbCode = prefix + i;
+ if (skipEncodeChars[mbCode])
+ continue;
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
+ if (uCode >= 0)
+ this._setEncodeChar(uCode, mbCode);
+ else if (uCode <= NODE_START)
+ this._fillEncodeTable(NODE_START - uCode, mbCode << 8, skipEncodeChars);
+ else if (uCode <= SEQ_START)
+ this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
+ }
+}
- // In the spec the list of active timers is a set of IDs. We make it a map of IDs to Node.js timer objects, so that
- // we can call Node.js-side clearTimeout() when clearing, and thus allow process shutdown faster.
- const listOfActiveTimers = new Map();
- let latestTimerId = 0;
- this.setTimeout = function (handler, timeout = 0, ...args) {
- if (typeof handler !== "function") {
- handler = webIDLConversions.DOMString(handler);
- }
- timeout = webIDLConversions.long(timeout);
- return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: false });
- };
- this.setInterval = function (handler, timeout = 0, ...args) {
- if (typeof handler !== "function") {
- handler = webIDLConversions.DOMString(handler);
- }
- timeout = webIDLConversions.long(timeout);
+// == Encoder ==================================================================
- return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: true });
- };
+function DBCSEncoder(options, codec) {
+ // Encoder state
+ this.leadSurrogate = -1;
+ this.seqObj = undefined;
+
+ // Static data
+ this.encodeTable = codec.encodeTable;
+ this.encodeTableSeq = codec.encodeTableSeq;
+ this.defaultCharSingleByte = codec.defCharSB;
+ this.gb18030 = codec.gb18030;
+}
- this.clearTimeout = function (handle = 0) {
- handle = webIDLConversions.long(handle);
+DBCSEncoder.prototype.write = function(str) {
+ var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),
+ leadSurrogate = this.leadSurrogate,
+ seqObj = this.seqObj, nextChar = -1,
+ i = 0, j = 0;
- const nodejsTimer = listOfActiveTimers.get(handle);
- if (nodejsTimer) {
- clearTimeout(nodejsTimer);
- listOfActiveTimers.delete(handle);
- }
- };
- this.clearInterval = function (handle = 0) {
- handle = webIDLConversions.long(handle);
+ while (true) {
+ // 0. Get next character.
+ if (nextChar === -1) {
+ if (i == str.length) break;
+ var uCode = str.charCodeAt(i++);
+ }
+ else {
+ var uCode = nextChar;
+ nextChar = -1;
+ }
- const nodejsTimer = listOfActiveTimers.get(handle);
- if (nodejsTimer) {
- // We use setTimeout() in timerInitializationSteps even for this.setInterval().
- clearTimeout(nodejsTimer);
- listOfActiveTimers.delete(handle);
- }
- };
+ // 1. Handle surrogates.
+ if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.
+ if (uCode < 0xDC00) { // We've got lead surrogate.
+ if (leadSurrogate === -1) {
+ leadSurrogate = uCode;
+ continue;
+ } else {
+ leadSurrogate = uCode;
+ // Double lead surrogate found.
+ uCode = UNASSIGNED;
+ }
+ } else { // We've got trail surrogate.
+ if (leadSurrogate !== -1) {
+ uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);
+ leadSurrogate = -1;
+ } else {
+ // Incomplete surrogate pair - only trail surrogate found.
+ uCode = UNASSIGNED;
+ }
+
+ }
+ }
+ else if (leadSurrogate !== -1) {
+ // Incomplete surrogate pair - only lead surrogate found.
+ nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.
+ leadSurrogate = -1;
+ }
- function timerInitializationSteps(handler, timeout, args, { methodContext, repeat, previousHandle }) {
- // This appears to be unspecced, but matches browser behavior for close()ed windows.
- if (!methodContext._document) {
- return 0;
- }
+ // 2. Convert uCode character.
+ var dbcsCode = UNASSIGNED;
+ if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence
+ var resCode = seqObj[uCode];
+ if (typeof resCode === 'object') { // Sequence continues.
+ seqObj = resCode;
+ continue;
- // TODO: implement timer nesting level behavior.
+ } else if (typeof resCode == 'number') { // Sequence finished. Write it.
+ dbcsCode = resCode;
- const methodContextProxy = methodContext._globalProxy;
- const handle = previousHandle !== undefined ? previousHandle : ++latestTimerId;
+ } else if (resCode == undefined) { // Current character is not part of the sequence.
- function task() {
- if (!listOfActiveTimers.has(handle)) {
- return;
- }
+ // Try default character for this sequence
+ resCode = seqObj[DEF_CHAR];
+ if (resCode !== undefined) {
+ dbcsCode = resCode; // Found. Write it.
+ nextChar = uCode; // Current character will be written too in the next iteration.
- try {
- if (typeof handler === "function") {
- handler.apply(methodContextProxy, args);
- } else if (window._runScripts === "dangerously") {
- vm.runInContext(handler, window, { filename: window.location.href, displayErrors: false });
+ } else {
+ // TODO: What if we have no default? (resCode == undefined)
+ // Then, we should write first char of the sequence as-is and try the rest recursively.
+ // Didn't do it for now because no encoding has this situation yet.
+ // Currently, just skip the sequence and write current char.
+ }
+ }
+ seqObj = undefined;
}
- } catch (e) {
- reportException(window, e, window.location.href);
- }
+ else if (uCode >= 0) { // Regular character
+ var subtable = this.encodeTable[uCode >> 8];
+ if (subtable !== undefined)
+ dbcsCode = subtable[uCode & 0xFF];
+
+ if (dbcsCode <= SEQ_START) { // Sequence start
+ seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];
+ continue;
+ }
- if (listOfActiveTimers.has(handle)) {
- if (repeat) {
- timerInitializationSteps(handler, timeout, args, { methodContext, repeat: true, previousHandle: handle });
- } else {
- listOfActiveTimers.delete(handle);
+ if (dbcsCode == UNASSIGNED && this.gb18030) {
+ // Use GB18030 algorithm to find character(s) to write.
+ var idx = findIdx(this.gb18030.uChars, uCode);
+ if (idx != -1) {
+ var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
+ newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
+ newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
+ newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;
+ newBuf[j++] = 0x30 + dbcsCode;
+ continue;
+ }
+ }
}
- }
- }
- if (timeout < 0) {
- timeout = 0;
+ // 3. Write dbcsCode character.
+ if (dbcsCode === UNASSIGNED)
+ dbcsCode = this.defaultCharSingleByte;
+
+ if (dbcsCode < 0x100) {
+ newBuf[j++] = dbcsCode;
+ }
+ else if (dbcsCode < 0x10000) {
+ newBuf[j++] = dbcsCode >> 8; // high byte
+ newBuf[j++] = dbcsCode & 0xFF; // low byte
+ }
+ else {
+ newBuf[j++] = dbcsCode >> 16;
+ newBuf[j++] = (dbcsCode >> 8) & 0xFF;
+ newBuf[j++] = dbcsCode & 0xFF;
+ }
}
- const nodejsTimer = setTimeout(task, timeout);
- listOfActiveTimers.set(handle, nodejsTimer);
-
- return handle;
- }
+ this.seqObj = seqObj;
+ this.leadSurrogate = leadSurrogate;
+ return newBuf.slice(0, j);
+}
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing
+DBCSEncoder.prototype.end = function() {
+ if (this.leadSurrogate === -1 && this.seqObj === undefined)
+ return; // All clean. Most often case.
- this.queueMicrotask = function (callback) {
- callback = webIDLConversions.Function(callback);
+ var newBuf = Buffer.alloc(10), j = 0;
- anyNodeVersionQueueMicrotask(() => {
- try {
- callback();
- } catch (e) {
- reportException(window, e, window.location.href);
- }
- });
- };
+ if (this.seqObj) { // We're in the sequence.
+ var dbcsCode = this.seqObj[DEF_CHAR];
+ if (dbcsCode !== undefined) { // Write beginning of the sequence.
+ if (dbcsCode < 0x100) {
+ newBuf[j++] = dbcsCode;
+ }
+ else {
+ newBuf[j++] = dbcsCode >> 8; // high byte
+ newBuf[j++] = dbcsCode & 0xFF; // low byte
+ }
+ } else {
+ // See todo above.
+ }
+ this.seqObj = undefined;
+ }
- // https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames
+ if (this.leadSurrogate !== -1) {
+ // Incomplete surrogate pair - only lead surrogate found.
+ newBuf[j++] = this.defaultCharSingleByte;
+ this.leadSurrogate = -1;
+ }
+
+ return newBuf.slice(0, j);
+}
- let animationFrameCallbackId = 0;
- const mapOfAnimationFrameCallbacks = new Map();
- let animationFrameNodejsInterval = null;
+// Export for testing
+DBCSEncoder.prototype.findIdx = findIdx;
- // Unlike the spec, where an animation frame happens every 60 Hz regardless, we optimize so that if there are no
- // requestAnimationFrame() calls outstanding, we don't fire the timer. This helps us track that.
- let numberOfOngoingAnimationFrameCallbacks = 0;
- if (this._pretendToBeVisual) {
- this.requestAnimationFrame = function (callback) {
- callback = webIDLConversions.Function(callback);
+// == Decoder ==================================================================
- const handle = ++animationFrameCallbackId;
- mapOfAnimationFrameCallbacks.set(handle, callback);
+function DBCSDecoder(options, codec) {
+ // Decoder state
+ this.nodeIdx = 0;
+ this.prevBuf = Buffer.alloc(0);
- ++numberOfOngoingAnimationFrameCallbacks;
- if (numberOfOngoingAnimationFrameCallbacks === 1) {
- animationFrameNodejsInterval = setInterval(() => {
- runAnimationFrameCallbacks(rawPerformance.now() - windowInitialized);
- }, 1000 / 60);
- }
+ // Static data
+ this.decodeTables = codec.decodeTables;
+ this.decodeTableSeq = codec.decodeTableSeq;
+ this.defaultCharUnicode = codec.defaultCharUnicode;
+ this.gb18030 = codec.gb18030;
+}
- return handle;
- };
+DBCSDecoder.prototype.write = function(buf) {
+ var newBuf = Buffer.alloc(buf.length*2),
+ nodeIdx = this.nodeIdx,
+ prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length,
+ seqStart = -this.prevBuf.length, // idx of the start of current parsed sequence.
+ uCode;
- this.cancelAnimationFrame = function (handle) {
- handle = webIDLConversions["unsigned long"](handle);
+ if (prevBufOffset > 0) // Make prev buf overlap a little to make it easier to slice later.
+ prevBuf = Buffer.concat([prevBuf, buf.slice(0, 10)]);
+
+ for (var i = 0, j = 0; i < buf.length; i++) {
+ var curByte = (i >= 0) ? buf[i] : prevBuf[i + prevBufOffset];
- removeAnimationFrameCallback(handle);
- };
+ // Lookup in current trie node.
+ var uCode = this.decodeTables[nodeIdx][curByte];
- function runAnimationFrameCallbacks(now) {
- // Converting to an array is important to get a sync snapshot and thus match spec semantics.
- const callbackHandles = [...mapOfAnimationFrameCallbacks.keys()];
- for (const handle of callbackHandles) {
- // This has() can be false if a callback calls cancelAnimationFrame().
- if (mapOfAnimationFrameCallbacks.has(handle)) {
- const callback = mapOfAnimationFrameCallbacks.get(handle);
- removeAnimationFrameCallback(handle);
- try {
- callback(now);
- } catch (e) {
- reportException(window, e, window.location.href);
- }
+ if (uCode >= 0) {
+ // Normal character, just use it.
}
- }
- }
+ else if (uCode === UNASSIGNED) { // Unknown char.
+ // TODO: Callback with seq.
+ //var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset);
+ i = seqStart; // Try to parse again, after skipping first byte of the sequence ('i' will be incremented by 'for' cycle).
+ uCode = this.defaultCharUnicode.charCodeAt(0);
+ }
+ else if (uCode === GB18030_CODE) {
+ var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset);
+ var ptr = (curSeq[0]-0x81)*12600 + (curSeq[1]-0x30)*1260 + (curSeq[2]-0x81)*10 + (curSeq[3]-0x30);
+ var idx = findIdx(this.gb18030.gbChars, ptr);
+ uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
+ }
+ else if (uCode <= NODE_START) { // Go to next trie node.
+ nodeIdx = NODE_START - uCode;
+ continue;
+ }
+ else if (uCode <= SEQ_START) { // Output a sequence of chars.
+ var seq = this.decodeTableSeq[SEQ_START - uCode];
+ for (var k = 0; k < seq.length - 1; k++) {
+ uCode = seq[k];
+ newBuf[j++] = uCode & 0xFF;
+ newBuf[j++] = uCode >> 8;
+ }
+ uCode = seq[seq.length-1];
+ }
+ else
+ throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
- function removeAnimationFrameCallback(handle) {
- if (mapOfAnimationFrameCallbacks.has(handle)) {
- --numberOfOngoingAnimationFrameCallbacks;
- if (numberOfOngoingAnimationFrameCallbacks === 0) {
- clearInterval(animationFrameNodejsInterval);
+ // Write the character to buffer, handling higher planes using surrogate pair.
+ if (uCode > 0xFFFF) {
+ uCode -= 0x10000;
+ var uCodeLead = 0xD800 + Math.floor(uCode / 0x400);
+ newBuf[j++] = uCodeLead & 0xFF;
+ newBuf[j++] = uCodeLead >> 8;
+
+ uCode = 0xDC00 + uCode % 0x400;
}
- }
+ newBuf[j++] = uCode & 0xFF;
+ newBuf[j++] = uCode >> 8;
- mapOfAnimationFrameCallbacks.delete(handle);
+ // Reset trie node.
+ nodeIdx = 0; seqStart = i+1;
}
- }
- function stopAllTimers() {
- for (const nodejsTimer of listOfActiveTimers.values()) {
- clearTimeout(nodejsTimer);
- }
- listOfActiveTimers.clear();
+ this.nodeIdx = nodeIdx;
+ this.prevBuf = (seqStart >= 0) ? buf.slice(seqStart) : prevBuf.slice(seqStart + prevBufOffset);
+ return newBuf.slice(0, j).toString('ucs2');
+}
- clearInterval(animationFrameNodejsInterval);
- }
+DBCSDecoder.prototype.end = function() {
+ var ret = '';
- function Option(text, value, defaultSelected, selected) {
- if (text === undefined) {
- text = "";
- }
- text = webIDLConversions.DOMString(text);
+ // Try to parse all remaining chars.
+ while (this.prevBuf.length > 0) {
+ // Skip 1 character in the buffer.
+ ret += this.defaultCharUnicode;
+ var buf = this.prevBuf.slice(1);
- if (value !== undefined) {
- value = webIDLConversions.DOMString(value);
+ // Parse remaining as usual.
+ this.prevBuf = Buffer.alloc(0);
+ this.nodeIdx = 0;
+ if (buf.length > 0)
+ ret += this.write(buf);
}
- defaultSelected = webIDLConversions.boolean(defaultSelected);
- selected = webIDLConversions.boolean(selected);
+ this.nodeIdx = 0;
+ return ret;
+}
- const option = window._document.createElement("option");
- const impl = idlUtils.implForWrapper(option);
-
- if (text !== "") {
- impl.text = text;
- }
- if (value !== undefined) {
- impl.setAttributeNS(null, "value", value);
- }
- if (defaultSelected) {
- impl.setAttributeNS(null, "selected", "");
- }
- impl._selectedness = selected;
-
- return option;
- }
- Object.defineProperty(Option, "prototype", {
- value: this.HTMLOptionElement.prototype,
- configurable: false,
- enumerable: false,
- writable: false
- });
- Object.defineProperty(window, "Option", {
- value: Option,
- configurable: true,
- enumerable: false,
- writable: true
- });
-
- function Image(...args) {
- const img = window._document.createElement("img");
- const impl = idlUtils.implForWrapper(img);
-
- if (args.length > 0) {
- impl.setAttributeNS(null, "width", String(args[0]));
- }
- if (args.length > 1) {
- impl.setAttributeNS(null, "height", String(args[1]));
- }
-
- return img;
- }
- Object.defineProperty(Image, "prototype", {
- value: this.HTMLImageElement.prototype,
- configurable: false,
- enumerable: false,
- writable: false
- });
- Object.defineProperty(window, "Image", {
- value: Image,
- configurable: true,
- enumerable: false,
- writable: true
- });
-
- function Audio(src) {
- const audio = window._document.createElement("audio");
- const impl = idlUtils.implForWrapper(audio);
- impl.setAttributeNS(null, "preload", "auto");
-
- if (src !== undefined) {
- impl.setAttributeNS(null, "src", String(src));
- }
-
- return audio;
- }
- Object.defineProperty(Audio, "prototype", {
- value: this.HTMLAudioElement.prototype,
- configurable: false,
- enumerable: false,
- writable: false
- });
- Object.defineProperty(window, "Audio", {
- value: Audio,
- configurable: true,
- enumerable: false,
- writable: true
- });
-
- this.postMessage = postMessage(window);
-
- this.atob = function (str) {
- const result = atob(str);
- if (result === null) {
- throw DOMException.create(window, [
- "The string to be decoded contains invalid characters.",
- "InvalidCharacterError"
- ]);
- }
- return result;
- };
-
- this.btoa = function (str) {
- const result = btoa(str);
- if (result === null) {
- throw DOMException.create(window, [
- "The string to be encoded contains invalid characters.",
- "InvalidCharacterError"
- ]);
- }
- return result;
- };
-
- this.stop = function () {
- const manager = idlUtils.implForWrapper(this._document)._requestManager;
- if (manager) {
- manager.close();
- }
- };
+// Binary search for GB18030. Returns largest i such that table[i] <= val.
+function findIdx(table, val) {
+ if (table[0] > val)
+ return -1;
- this.close = function () {
- // Recursively close child frame windows, then ourselves (depth-first).
- for (let i = 0; i < this.length; ++i) {
- this[i].close();
+ var l = 0, r = table.length;
+ while (l < r-1) { // always table[l] <= val < table[r]
+ var mid = l + Math.floor((r-l+1)/2);
+ if (table[mid] <= val)
+ l = mid;
+ else
+ r = mid;
}
+ return l;
+}
- // Clear out all listeners. Any in-flight or upcoming events should not get delivered.
- idlUtils.implForWrapper(this)._eventListeners = Object.create(null);
-
- if (this._document) {
- if (this._document.body) {
- this._document.body.innerHTML = "";
- }
-
- if (this._document.close) {
- // It's especially important to clear out the listeners here because document.close() causes a "load" event to
- // fire.
- idlUtils.implForWrapper(this._document)._eventListeners = Object.create(null);
- this._document.close();
- }
- const doc = idlUtils.implForWrapper(this._document);
- if (doc._requestManager) {
- doc._requestManager.close();
- }
- delete this._document;
- }
- stopAllTimers();
- WebSocketImpl.cleanUpWindow(this);
- };
- this.getComputedStyle = function (elt, pseudoElt = undefined) {
- elt = Element.convert(elt);
- if (pseudoElt !== undefined && pseudoElt !== null) {
- pseudoElt = webIDLConversions.DOMString(pseudoElt);
- }
+/***/ }),
- if (pseudoElt !== undefined && pseudoElt !== null && pseudoElt !== "") {
- // TODO: Parse pseudoElt
+/***/ 91386:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- if (SHADOW_DOM_PSEUDO_REGEXP.test(pseudoElt)) {
- throw new TypeError("Tried to get the computed style of a Shadow DOM pseudo-element.");
- }
+"use strict";
- notImplemented("window.computedStyle(elt, pseudoElt)", this);
- }
- const declaration = new CSSStyleDeclaration();
- const { forEach } = Array.prototype;
- const { style } = elt;
+// Description of supported double byte encodings and aliases.
+// Tables are not require()-d until they are needed to speed up library load.
+// require()-s are direct to support Browserify.
- forEachMatchingSheetRuleOfElement(elt, rule => {
- forEach.call(rule.style, property => {
- declaration.setProperty(
- property,
- rule.style.getPropertyValue(property),
- rule.style.getPropertyPriority(property)
- );
- });
- });
+module.exports = {
+
+ // == Japanese/ShiftJIS ====================================================
+ // All japanese encodings are based on JIS X set of standards:
+ // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
+ // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
+ // Has several variations in 1978, 1983, 1990 and 1997.
+ // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
+ // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
+ // 2 planes, first is superset of 0208, second - revised 0212.
+ // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)
- // https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle
- const declarations = Object.keys(propertiesWithResolvedValueImplemented);
- forEach.call(declarations, property => {
- declaration.setProperty(property, getResolvedValue(elt, property));
- });
+ // Byte encodings are:
+ // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte
+ // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.
+ // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.
+ // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes.
+ // 0x00-0x7F - lower part of 0201
+ // 0x8E, 0xA1-0xDF - upper part of 0201
+ // (0xA1-0xFE)x2 - 0208 plane (94x94).
+ // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
+ // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
+ // Used as-is in ISO2022 family.
+ // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
+ // 0201-1976 Roman, 0208-1978, 0208-1983.
+ // * ISO2022-JP-1: Adds esc seq for 0212-1990.
+ // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
+ // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.
+ // * ISO2022-JP-2004: Adds 0213-2004 Plane 1.
+ //
+ // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
+ //
+ // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
- forEach.call(style, property => {
- declaration.setProperty(property, style.getPropertyValue(property), style.getPropertyPriority(property));
- });
+ 'shiftjis': {
+ type: '_dbcs',
+ table: function() { return __nccwpck_require__(27014) },
+ encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
+ encodeSkipVals: [{from: 0xED40, to: 0xF940}],
+ },
+ 'csshiftjis': 'shiftjis',
+ 'mskanji': 'shiftjis',
+ 'sjis': 'shiftjis',
+ 'windows31j': 'shiftjis',
+ 'ms31j': 'shiftjis',
+ 'xsjis': 'shiftjis',
+ 'windows932': 'shiftjis',
+ 'ms932': 'shiftjis',
+ '932': 'shiftjis',
+ 'cp932': 'shiftjis',
- return declaration;
- };
+ 'eucjp': {
+ type: '_dbcs',
+ table: function() { return __nccwpck_require__(31532) },
+ encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
+ },
- this.getSelection = function () {
- return window._document.getSelection();
- };
+ // TODO: KDDI extension to Shift_JIS
+ // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.
+ // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.
- // The captureEvents() and releaseEvents() methods must do nothing
- this.captureEvents = function () {};
- this.releaseEvents = function () {};
+ // == Chinese/GBK ==========================================================
+ // http://en.wikipedia.org/wiki/GBK
+ // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
- // ### PUBLIC DATA PROPERTIES (TODO: should be getters)
+ // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
+ 'gb2312': 'cp936',
+ 'gb231280': 'cp936',
+ 'gb23121980': 'cp936',
+ 'csgb2312': 'cp936',
+ 'csiso58gb231280': 'cp936',
+ 'euccn': 'cp936',
- function wrapConsoleMethod(method) {
- return (...args) => {
- window._virtualConsole.emit(method, ...args);
- };
- }
+ // Microsoft's CP936 is a subset and approximation of GBK.
+ 'windows936': 'cp936',
+ 'ms936': 'cp936',
+ '936': 'cp936',
+ 'cp936': {
+ type: '_dbcs',
+ table: function() { return __nccwpck_require__(13336) },
+ },
- this.console = {
- assert: wrapConsoleMethod("assert"),
- clear: wrapConsoleMethod("clear"),
- count: wrapConsoleMethod("count"),
- countReset: wrapConsoleMethod("countReset"),
- debug: wrapConsoleMethod("debug"),
- dir: wrapConsoleMethod("dir"),
- dirxml: wrapConsoleMethod("dirxml"),
- error: wrapConsoleMethod("error"),
- group: wrapConsoleMethod("group"),
- groupCollapsed: wrapConsoleMethod("groupCollapsed"),
- groupEnd: wrapConsoleMethod("groupEnd"),
- info: wrapConsoleMethod("info"),
- log: wrapConsoleMethod("log"),
- table: wrapConsoleMethod("table"),
- time: wrapConsoleMethod("time"),
- timeLog: wrapConsoleMethod("timeLog"),
- timeEnd: wrapConsoleMethod("timeEnd"),
- trace: wrapConsoleMethod("trace"),
- warn: wrapConsoleMethod("warn")
- };
+ // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
+ 'gbk': {
+ type: '_dbcs',
+ table: function() { return (__nccwpck_require__(13336).concat)(__nccwpck_require__(44346)) },
+ },
+ 'xgbk': 'gbk',
+ 'isoir58': 'gbk',
- function notImplementedMethod(name) {
- return function () {
- notImplemented(name, window);
- };
- }
+ // GB18030 is an algorithmic extension of GBK.
+ // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
+ // http://icu-project.org/docs/papers/gb18030.html
+ // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
+ // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
+ 'gb18030': {
+ type: '_dbcs',
+ table: function() { return (__nccwpck_require__(13336).concat)(__nccwpck_require__(44346)) },
+ gb18030: function() { return __nccwpck_require__(36258) },
+ encodeSkipVals: [0x80],
+ encodeAdd: {'€': 0xA2E3},
+ },
- define(this, {
- name: "",
- status: "",
- devicePixelRatio: 1,
- innerWidth: 1024,
- innerHeight: 768,
- outerWidth: 1024,
- outerHeight: 768,
- pageXOffset: 0,
- pageYOffset: 0,
- screenX: 0,
- screenLeft: 0,
- screenY: 0,
- screenTop: 0,
- scrollX: 0,
- scrollY: 0,
+ 'chinese': 'gb18030',
- alert: notImplementedMethod("window.alert"),
- blur: notImplementedMethod("window.blur"),
- confirm: notImplementedMethod("window.confirm"),
- focus: notImplementedMethod("window.focus"),
- moveBy: notImplementedMethod("window.moveBy"),
- moveTo: notImplementedMethod("window.moveTo"),
- open: notImplementedMethod("window.open"),
- print: notImplementedMethod("window.print"),
- prompt: notImplementedMethod("window.prompt"),
- resizeBy: notImplementedMethod("window.resizeBy"),
- resizeTo: notImplementedMethod("window.resizeTo"),
- scroll: notImplementedMethod("window.scroll"),
- scrollBy: notImplementedMethod("window.scrollBy"),
- scrollTo: notImplementedMethod("window.scrollTo")
- });
- // ### INITIALIZATION
+ // == Korean ===============================================================
+ // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
+ 'windows949': 'cp949',
+ 'ms949': 'cp949',
+ '949': 'cp949',
+ 'cp949': {
+ type: '_dbcs',
+ table: function() { return __nccwpck_require__(77348) },
+ },
- process.nextTick(() => {
- if (!window.document) {
- return; // window might've been closed already
- }
+ 'cseuckr': 'cp949',
+ 'csksc56011987': 'cp949',
+ 'euckr': 'cp949',
+ 'isoir149': 'cp949',
+ 'korean': 'cp949',
+ 'ksc56011987': 'cp949',
+ 'ksc56011989': 'cp949',
+ 'ksc5601': 'cp949',
- const documentImpl = idlUtils.implForWrapper(window._document);
- if (window.document.readyState === "complete") {
- fireAnEvent("load", window, undefined, {}, documentImpl);
- } else {
- window.document.addEventListener("load", () => {
- fireAnEvent("load", window, undefined, {}, documentImpl);
+ // == Big5/Taiwan/Hong Kong ================================================
+ // There are lots of tables for Big5 and cp950. Please see the following links for history:
+ // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
+ // Variations, in roughly number of defined chars:
+ // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT
+ // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
+ // * Big5-2003 (Taiwan standard) almost superset of cp950.
+ // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
+ // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
+ // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
+ // Plus, it has 4 combining sequences.
+ // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
+ // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.
+ // Implementations are not consistent within browsers; sometimes labeled as just big5.
+ // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.
+ // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31
+ // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
+ // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
+ // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
+ //
+ // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
+ // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
- if (!documentImpl._pageShowingFlag) {
- documentImpl._pageShowingFlag = true;
- fireAnEvent("pageshow", window, PageTransitionEvent, { persisted: false }, documentImpl);
- }
- });
- }
- });
-}
+ 'windows950': 'cp950',
+ 'ms950': 'cp950',
+ '950': 'cp950',
+ 'cp950': {
+ type: '_dbcs',
+ table: function() { return __nccwpck_require__(74284) },
+ },
-function contextifyWindow(window) {
- if (vm.isContext(window)) {
- return;
- }
+ // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
+ 'big5': 'big5hkscs',
+ 'big5hkscs': {
+ type: '_dbcs',
+ table: function() { return (__nccwpck_require__(74284).concat)(__nccwpck_require__(63480)) },
+ encodeSkipVals: [0xa2cc],
+ },
- vm.createContext(window);
-}
+ 'cnbig5': 'big5hkscs',
+ 'csbig5': 'big5hkscs',
+ 'xxbig5': 'big5hkscs',
+};
/***/ }),
-/***/ 89489:
-/***/ ((module) => {
-
-// Ideally, we would use
-// https://html.spec.whatwg.org/multipage/rendering.html#the-css-user-agent-style-sheet-and-presentational-hints
-// but for now, just use the version from blink. This file is copied from
-// https://chromium.googlesource.com/chromium/blink/+/96aa3a280ab7d67178c8f122a04949ce5f8579e0/Source/core/css/html.css
-// (removed a line which had octal literals inside since octal literals are not allowed in template strings)
-
-// We use a .js file because otherwise we can't browserify this. (brfs is unusable due to lack of ES2015 support)
-
-module.exports = `
-/*
- * The default style sheet used to render HTML.
- *
- * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
+/***/ 82733:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-@namespace "http://www.w3.org/1999/xhtml";
+"use strict";
-html {
- display: block
-}
-:root {
- scroll-blocks-on: start-touch wheel-event
-}
+// Update this array if you add/rename/remove files in this directory.
+// We support Browserify by skipping automatic module discovery and requiring modules directly.
+var modules = [
+ __nccwpck_require__(12376),
+ __nccwpck_require__(11155),
+ __nccwpck_require__(51644),
+ __nccwpck_require__(26657),
+ __nccwpck_require__(41080),
+ __nccwpck_require__(21012),
+ __nccwpck_require__(39695),
+ __nccwpck_require__(91386),
+];
-/* children of the element all have display:none */
-head {
- display: none
+// Put all encoding/alias/codec definitions to single object and export it.
+for (var i = 0; i < modules.length; i++) {
+ var module = modules[i];
+ for (var enc in module)
+ if (Object.prototype.hasOwnProperty.call(module, enc))
+ exports[enc] = module[enc];
}
-meta {
- display: none
-}
-title {
- display: none
-}
+/***/ }),
-link {
- display: none
-}
+/***/ 12376:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-style {
- display: none
-}
+"use strict";
-script {
- display: none
-}
+var Buffer = (__nccwpck_require__(15118).Buffer);
-/* generic block-level elements */
+// Export Node.js internal encodings.
-body {
- display: block;
- margin: 8px
-}
+module.exports = {
+ // Encodings
+ utf8: { type: "_internal", bomAware: true},
+ cesu8: { type: "_internal", bomAware: true},
+ unicode11utf8: "utf8",
-p {
- display: block;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1__qem;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
-}
+ ucs2: { type: "_internal", bomAware: true},
+ utf16le: "ucs2",
-div {
- display: block
-}
+ binary: { type: "_internal" },
+ base64: { type: "_internal" },
+ hex: { type: "_internal" },
-layer {
- display: block
-}
+ // Codec.
+ _internal: InternalCodec,
+};
-article, aside, footer, header, hgroup, main, nav, section {
- display: block
-}
+//------------------------------------------------------------------------------
-marquee {
- display: inline-block;
-}
+function InternalCodec(codecOptions, iconv) {
+ this.enc = codecOptions.encodingName;
+ this.bomAware = codecOptions.bomAware;
-address {
- display: block
-}
+ if (this.enc === "base64")
+ this.encoder = InternalEncoderBase64;
+ else if (this.enc === "cesu8") {
+ this.enc = "utf8"; // Use utf8 for decoding.
+ this.encoder = InternalEncoderCesu8;
-blockquote {
- display: block;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 40px;
- -webkit-margin-end: 40px;
+ // Add decoder for versions of Node not supporting CESU-8
+ if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {
+ this.decoder = InternalDecoderCesu8;
+ this.defaultCharUnicode = iconv.defaultCharUnicode;
+ }
+ }
}
-figcaption {
- display: block
-}
+InternalCodec.prototype.encoder = InternalEncoder;
+InternalCodec.prototype.decoder = InternalDecoder;
-figure {
- display: block;
- -webkit-margin-before: 1em;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 40px;
- -webkit-margin-end: 40px;
-}
+//------------------------------------------------------------------------------
-q {
- display: inline
-}
+// We use node.js internal decoder. Its signature is the same as ours.
+var StringDecoder = (__nccwpck_require__(71576).StringDecoder);
-/* nwmatcher does not support ::before and ::after, so we can't render q
-correctly: https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
-TODO: add q::before and q::after selectors
-*/
+if (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.
+ StringDecoder.prototype.end = function() {};
-center {
- display: block;
- /* special centering to be able to emulate the html4/netscape behaviour */
- text-align: -webkit-center
-}
-hr {
- display: block;
- -webkit-margin-before: 0.5em;
- -webkit-margin-after: 0.5em;
- -webkit-margin-start: auto;
- -webkit-margin-end: auto;
- border-style: inset;
- border-width: 1px;
- box-sizing: border-box
+function InternalDecoder(options, codec) {
+ StringDecoder.call(this, codec.enc);
}
-map {
- display: inline
-}
+InternalDecoder.prototype = StringDecoder.prototype;
-video {
- object-fit: contain;
-}
-/* heading elements */
+//------------------------------------------------------------------------------
+// Encoder is mostly trivial
-h1 {
- display: block;
- font-size: 2em;
- -webkit-margin-before: 0.67__qem;
- -webkit-margin-after: 0.67em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
+function InternalEncoder(options, codec) {
+ this.enc = codec.enc;
}
-article h1,
-aside h1,
-nav h1,
-section h1 {
- font-size: 1.5em;
- -webkit-margin-before: 0.83__qem;
- -webkit-margin-after: 0.83em;
+InternalEncoder.prototype.write = function(str) {
+ return Buffer.from(str, this.enc);
}
-article article h1,
-article aside h1,
-article nav h1,
-article section h1,
-aside article h1,
-aside aside h1,
-aside nav h1,
-aside section h1,
-nav article h1,
-nav aside h1,
-nav nav h1,
-nav section h1,
-section article h1,
-section aside h1,
-section nav h1,
-section section h1 {
- font-size: 1.17em;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
+InternalEncoder.prototype.end = function() {
}
-/* Remaining selectors are deleted because nwmatcher does not support
-:matches() and expanding the selectors manually would be far too verbose.
-Also see https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings
-TODO: rewrite to use :matches() when nwmatcher supports it.
-*/
-
-h2 {
- display: block;
- font-size: 1.5em;
- -webkit-margin-before: 0.83__qem;
- -webkit-margin-after: 0.83em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-h3 {
- display: block;
- font-size: 1.17em;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
+//------------------------------------------------------------------------------
+// Except base64 encoder, which must keep its state.
-h4 {
- display: block;
- -webkit-margin-before: 1.33__qem;
- -webkit-margin-after: 1.33em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
+function InternalEncoderBase64(options, codec) {
+ this.prevStr = '';
}
-h5 {
- display: block;
- font-size: .83em;
- -webkit-margin-before: 1.67__qem;
- -webkit-margin-after: 1.67em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
+InternalEncoderBase64.prototype.write = function(str) {
+ str = this.prevStr + str;
+ var completeQuads = str.length - (str.length % 4);
+ this.prevStr = str.slice(completeQuads);
+ str = str.slice(0, completeQuads);
-h6 {
- display: block;
- font-size: .67em;
- -webkit-margin-before: 2.33__qem;
- -webkit-margin-after: 2.33em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
+ return Buffer.from(str, "base64");
}
-/* tables */
-
-table {
- display: table;
- border-collapse: separate;
- border-spacing: 2px;
- border-color: gray
+InternalEncoderBase64.prototype.end = function() {
+ return Buffer.from(this.prevStr, "base64");
}
-thead {
- display: table-header-group;
- vertical-align: middle;
- border-color: inherit
-}
-tbody {
- display: table-row-group;
- vertical-align: middle;
- border-color: inherit
-}
+//------------------------------------------------------------------------------
+// CESU-8 encoder is also special.
-tfoot {
- display: table-footer-group;
- vertical-align: middle;
- border-color: inherit
+function InternalEncoderCesu8(options, codec) {
}
-/* for tables without table section elements (can happen with XHTML or dynamically created tables) */
-table > tr {
- vertical-align: middle;
+InternalEncoderCesu8.prototype.write = function(str) {
+ var buf = Buffer.alloc(str.length * 3), bufIdx = 0;
+ for (var i = 0; i < str.length; i++) {
+ var charCode = str.charCodeAt(i);
+ // Naive implementation, but it works because CESU-8 is especially easy
+ // to convert from UTF-16 (which all JS strings are encoded in).
+ if (charCode < 0x80)
+ buf[bufIdx++] = charCode;
+ else if (charCode < 0x800) {
+ buf[bufIdx++] = 0xC0 + (charCode >>> 6);
+ buf[bufIdx++] = 0x80 + (charCode & 0x3f);
+ }
+ else { // charCode will always be < 0x10000 in javascript.
+ buf[bufIdx++] = 0xE0 + (charCode >>> 12);
+ buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);
+ buf[bufIdx++] = 0x80 + (charCode & 0x3f);
+ }
+ }
+ return buf.slice(0, bufIdx);
}
-col {
- display: table-column
+InternalEncoderCesu8.prototype.end = function() {
}
-colgroup {
- display: table-column-group
-}
+//------------------------------------------------------------------------------
+// CESU-8 decoder is not implemented in Node v4.0+
-tr {
- display: table-row;
- vertical-align: inherit;
- border-color: inherit
+function InternalDecoderCesu8(options, codec) {
+ this.acc = 0;
+ this.contBytes = 0;
+ this.accBytes = 0;
+ this.defaultCharUnicode = codec.defaultCharUnicode;
}
-td, th {
- display: table-cell;
- vertical-align: inherit
-}
+InternalDecoderCesu8.prototype.write = function(buf) {
+ var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes,
+ res = '';
+ for (var i = 0; i < buf.length; i++) {
+ var curByte = buf[i];
+ if ((curByte & 0xC0) !== 0x80) { // Leading byte
+ if (contBytes > 0) { // Previous code is invalid
+ res += this.defaultCharUnicode;
+ contBytes = 0;
+ }
-th {
- font-weight: bold
+ if (curByte < 0x80) { // Single-byte code
+ res += String.fromCharCode(curByte);
+ } else if (curByte < 0xE0) { // Two-byte code
+ acc = curByte & 0x1F;
+ contBytes = 1; accBytes = 1;
+ } else if (curByte < 0xF0) { // Three-byte code
+ acc = curByte & 0x0F;
+ contBytes = 2; accBytes = 1;
+ } else { // Four or more are not supported for CESU-8.
+ res += this.defaultCharUnicode;
+ }
+ } else { // Continuation byte
+ if (contBytes > 0) { // We're waiting for it.
+ acc = (acc << 6) | (curByte & 0x3f);
+ contBytes--; accBytes++;
+ if (contBytes === 0) {
+ // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)
+ if (accBytes === 2 && acc < 0x80 && acc > 0)
+ res += this.defaultCharUnicode;
+ else if (accBytes === 3 && acc < 0x800)
+ res += this.defaultCharUnicode;
+ else
+ // Actually add character.
+ res += String.fromCharCode(acc);
+ }
+ } else { // Unexpected continuation byte
+ res += this.defaultCharUnicode;
+ }
+ }
+ }
+ this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;
+ return res;
}
-caption {
- display: table-caption;
- text-align: -webkit-center
+InternalDecoderCesu8.prototype.end = function() {
+ var res = 0;
+ if (this.contBytes > 0)
+ res += this.defaultCharUnicode;
+ return res;
}
-/* lists */
-ul, menu, dir {
- display: block;
- list-style-type: disc;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- -webkit-padding-start: 40px
-}
+/***/ }),
-ol {
- display: block;
- list-style-type: decimal;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- -webkit-padding-start: 40px
-}
+/***/ 26657:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-li {
- display: list-item;
- text-align: -webkit-match-parent;
-}
+"use strict";
-ul ul, ol ul {
- list-style-type: circle
-}
+var Buffer = (__nccwpck_require__(15118).Buffer);
-ol ol ul, ol ul ul, ul ol ul, ul ul ul {
- list-style-type: square
-}
+// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that
+// correspond to encoded bytes (if 128 - then lower half is ASCII).
-dd {
- display: block;
- -webkit-margin-start: 40px
-}
+exports._sbcs = SBCSCodec;
+function SBCSCodec(codecOptions, iconv) {
+ if (!codecOptions)
+ throw new Error("SBCS codec is called without the data.")
+
+ // Prepare char buffer for decoding.
+ if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))
+ throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)");
+
+ if (codecOptions.chars.length === 128) {
+ var asciiString = "";
+ for (var i = 0; i < 128; i++)
+ asciiString += String.fromCharCode(i);
+ codecOptions.chars = asciiString + codecOptions.chars;
+ }
-dl {
- display: block;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
-}
+ this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');
+
+ // Encoding buffer.
+ var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
-dt {
- display: block
-}
+ for (var i = 0; i < codecOptions.chars.length; i++)
+ encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
-ol ul, ul ol, ul ul, ol ol {
- -webkit-margin-before: 0;
- -webkit-margin-after: 0
+ this.encodeBuf = encodeBuf;
}
-/* form elements */
-
-form {
- display: block;
- margin-top: 0__qem;
-}
+SBCSCodec.prototype.encoder = SBCSEncoder;
+SBCSCodec.prototype.decoder = SBCSDecoder;
-label {
- cursor: default;
-}
-legend {
- display: block;
- -webkit-padding-start: 2px;
- -webkit-padding-end: 2px;
- border: none
+function SBCSEncoder(options, codec) {
+ this.encodeBuf = codec.encodeBuf;
}
-fieldset {
- display: block;
- -webkit-margin-start: 2px;
- -webkit-margin-end: 2px;
- -webkit-padding-before: 0.35em;
- -webkit-padding-start: 0.75em;
- -webkit-padding-end: 0.75em;
- -webkit-padding-after: 0.625em;
- border: 2px groove ThreeDFace;
- min-width: -webkit-min-content;
+SBCSEncoder.prototype.write = function(str) {
+ var buf = Buffer.alloc(str.length);
+ for (var i = 0; i < str.length; i++)
+ buf[i] = this.encodeBuf[str.charCodeAt(i)];
+
+ return buf;
}
-button {
- -webkit-appearance: button;
+SBCSEncoder.prototype.end = function() {
}
-/* Form controls don't go vertical. */
-input, textarea, select, button, meter, progress {
- -webkit-writing-mode: horizontal-tb !important;
-}
-input, textarea, select, button {
- margin: 0__qem;
- font: -webkit-small-control;
- text-rendering: auto; /* FIXME: Remove when tabs work with optimizeLegibility. */
- color: initial;
- letter-spacing: normal;
- word-spacing: normal;
- line-height: normal;
- text-transform: none;
- text-indent: 0;
- text-shadow: none;
- display: inline-block;
- text-align: start;
+function SBCSDecoder(options, codec) {
+ this.decodeBuf = codec.decodeBuf;
}
-/* TODO: Add " i" to attribute matchers to support case-insensitive matching */
-input[type="hidden"] {
- display: none
+SBCSDecoder.prototype.write = function(buf) {
+ // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.
+ var decodeBuf = this.decodeBuf;
+ var newBuf = Buffer.alloc(buf.length*2);
+ var idx1 = 0, idx2 = 0;
+ for (var i = 0; i < buf.length; i++) {
+ idx1 = buf[i]*2; idx2 = i*2;
+ newBuf[idx2] = decodeBuf[idx1];
+ newBuf[idx2+1] = decodeBuf[idx1+1];
+ }
+ return newBuf.toString('ucs2');
}
-input {
- -webkit-appearance: textfield;
- padding: 1px;
- background-color: white;
- border: 2px inset;
- -webkit-rtl-ordering: logical;
- -webkit-user-select: text;
- cursor: auto;
+SBCSDecoder.prototype.end = function() {
}
-input[type="search"] {
- -webkit-appearance: searchfield;
- box-sizing: border-box;
-}
-select {
- border-radius: 5px;
-}
+/***/ }),
-textarea {
- -webkit-appearance: textarea;
- background-color: white;
- border: 1px solid;
- -webkit-rtl-ordering: logical;
- -webkit-user-select: text;
- flex-direction: column;
- resize: auto;
- cursor: auto;
- padding: 2px;
- white-space: pre-wrap;
- word-wrap: break-word;
-}
+/***/ 21012:
+/***/ ((module) => {
-input[type="password"] {
- -webkit-text-security: disc !important;
-}
+"use strict";
-input[type="hidden"], input[type="image"], input[type="file"] {
- -webkit-appearance: initial;
- padding: initial;
- background-color: initial;
- border: initial;
-}
-input[type="file"] {
- align-items: baseline;
- color: inherit;
- text-align: start !important;
+// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.
+module.exports = {
+ "437": "cp437",
+ "737": "cp737",
+ "775": "cp775",
+ "850": "cp850",
+ "852": "cp852",
+ "855": "cp855",
+ "856": "cp856",
+ "857": "cp857",
+ "858": "cp858",
+ "860": "cp860",
+ "861": "cp861",
+ "862": "cp862",
+ "863": "cp863",
+ "864": "cp864",
+ "865": "cp865",
+ "866": "cp866",
+ "869": "cp869",
+ "874": "windows874",
+ "922": "cp922",
+ "1046": "cp1046",
+ "1124": "cp1124",
+ "1125": "cp1125",
+ "1129": "cp1129",
+ "1133": "cp1133",
+ "1161": "cp1161",
+ "1162": "cp1162",
+ "1163": "cp1163",
+ "1250": "windows1250",
+ "1251": "windows1251",
+ "1252": "windows1252",
+ "1253": "windows1253",
+ "1254": "windows1254",
+ "1255": "windows1255",
+ "1256": "windows1256",
+ "1257": "windows1257",
+ "1258": "windows1258",
+ "28591": "iso88591",
+ "28592": "iso88592",
+ "28593": "iso88593",
+ "28594": "iso88594",
+ "28595": "iso88595",
+ "28596": "iso88596",
+ "28597": "iso88597",
+ "28598": "iso88598",
+ "28599": "iso88599",
+ "28600": "iso885910",
+ "28601": "iso885911",
+ "28603": "iso885913",
+ "28604": "iso885914",
+ "28605": "iso885915",
+ "28606": "iso885916",
+ "windows874": {
+ "type": "_sbcs",
+ "chars": "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ },
+ "win874": "windows874",
+ "cp874": "windows874",
+ "windows1250": {
+ "type": "_sbcs",
+ "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
+ },
+ "win1250": "windows1250",
+ "cp1250": "windows1250",
+ "windows1251": {
+ "type": "_sbcs",
+ "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
+ },
+ "win1251": "windows1251",
+ "cp1251": "windows1251",
+ "windows1252": {
+ "type": "_sbcs",
+ "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ "win1252": "windows1252",
+ "cp1252": "windows1252",
+ "windows1253": {
+ "type": "_sbcs",
+ "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
+ },
+ "win1253": "windows1253",
+ "cp1253": "windows1253",
+ "windows1254": {
+ "type": "_sbcs",
+ "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
+ },
+ "win1254": "windows1254",
+ "cp1254": "windows1254",
+ "windows1255": {
+ "type": "_sbcs",
+ "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"
+ },
+ "win1255": "windows1255",
+ "cp1255": "windows1255",
+ "windows1256": {
+ "type": "_sbcs",
+ "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے"
+ },
+ "win1256": "windows1256",
+ "cp1256": "windows1256",
+ "windows1257": {
+ "type": "_sbcs",
+ "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"
+ },
+ "win1257": "windows1257",
+ "cp1257": "windows1257",
+ "windows1258": {
+ "type": "_sbcs",
+ "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
+ },
+ "win1258": "windows1258",
+ "cp1258": "windows1258",
+ "iso88591": {
+ "type": "_sbcs",
+ "chars": "
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ "cp28591": "iso88591",
+ "iso88592": {
+ "type": "_sbcs",
+ "chars": "
Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
+ },
+ "cp28592": "iso88592",
+ "iso88593": {
+ "type": "_sbcs",
+ "chars": "
Ħ˘£¤�Ĥ§¨İŞĞĴ�Ż°ħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"
+ },
+ "cp28593": "iso88593",
+ "iso88594": {
+ "type": "_sbcs",
+ "chars": "
ĄĸŖ¤ĨĻ§¨ŠĒĢŦŽ¯°ą˛ŗ´ĩļˇ¸šēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖ×ØŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"
+ },
+ "cp28594": "iso88594",
+ "iso88595": {
+ "type": "_sbcs",
+ "chars": "
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"
+ },
+ "cp28595": "iso88595",
+ "iso88596": {
+ "type": "_sbcs",
+ "chars": "
���¤�������،�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"
+ },
+ "cp28596": "iso88596",
+ "iso88597": {
+ "type": "_sbcs",
+ "chars": "
‘’£€₯¦§¨©ͺ«¬�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
+ },
+ "cp28597": "iso88597",
+ "iso88598": {
+ "type": "_sbcs",
+ "chars": "
�¢£¤¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת���"
+ },
+ "cp28598": "iso88598",
+ "iso88599": {
+ "type": "_sbcs",
+ "chars": "
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
+ },
+ "cp28599": "iso88599",
+ "iso885910": {
+ "type": "_sbcs",
+ "chars": "
ĄĒĢĪĨĶ§ĻĐŠŦŽŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"
+ },
+ "cp28600": "iso885910",
+ "iso885911": {
+ "type": "_sbcs",
+ "chars": "
กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ },
+ "cp28601": "iso885911",
+ "iso885913": {
+ "type": "_sbcs",
+ "chars": "
”¢£¤„¦§Ø©Ŗ«¬®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"
+ },
+ "cp28603": "iso885913",
+ "iso885914": {
+ "type": "_sbcs",
+ "chars": "
Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"
+ },
+ "cp28604": "iso885914",
+ "iso885915": {
+ "type": "_sbcs",
+ "chars": "
¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ "cp28605": "iso885915",
+ "iso885916": {
+ "type": "_sbcs",
+ "chars": "
ĄąŁ€„Š§š©Ș«ŹźŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"
+ },
+ "cp28606": "iso885916",
+ "cp437": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ "ibm437": "cp437",
+ "csibm437": "cp437",
+ "cp737": {
+ "type": "_sbcs",
+ "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "
+ },
+ "ibm737": "cp737",
+ "csibm737": "cp737",
+ "cp775": {
+ "type": "_sbcs",
+ "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£ØפĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’±“¾¶§÷„°∙·¹³²■ "
+ },
+ "ibm775": "cp775",
+ "csibm775": "cp775",
+ "cp850": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø׃áíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "
+ },
+ "ibm850": "cp850",
+ "csibm850": "cp850",
+ "cp852": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■ "
+ },
+ "ibm852": "cp852",
+ "csibm852": "cp852",
+ "cp855": {
+ "type": "_sbcs",
+ "chars": "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№ыЫзЗшШэЭщЩчЧ§■ "
+ },
+ "ibm855": "cp855",
+ "csibm855": "cp855",
+ "cp856": {
+ "type": "_sbcs",
+ "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´±‗¾¶§÷¸°¨·¹³²■ "
+ },
+ "ibm856": "cp856",
+ "csibm856": "cp856",
+ "cp857": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´±�¾¶§÷¸°¨·¹³²■ "
+ },
+ "ibm857": "cp857",
+ "csibm857": "cp857",
+ "cp858": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø׃áíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "
+ },
+ "ibm858": "cp858",
+ "csibm858": "cp858",
+ "cp860": {
+ "type": "_sbcs",
+ "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ "ibm860": "cp860",
+ "csibm860": "cp860",
+ "cp861": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ "ibm861": "cp861",
+ "csibm861": "cp861",
+ "cp862": {
+ "type": "_sbcs",
+ "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ "ibm862": "cp862",
+ "csibm862": "cp862",
+ "cp863": {
+ "type": "_sbcs",
+ "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ "ibm863": "cp863",
+ "csibm863": "cp863",
+ "cp864": {
+ "type": "_sbcs",
+ "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"
+ },
+ "ibm864": "cp864",
+ "csibm864": "cp864",
+ "cp865": {
+ "type": "_sbcs",
+ "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ "ibm865": "cp865",
+ "csibm865": "cp865",
+ "cp866": {
+ "type": "_sbcs",
+ "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "
+ },
+ "ibm866": "cp866",
+ "csibm866": "cp866",
+ "cp869": {
+ "type": "_sbcs",
+ "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄±υφχ§ψ΅°¨ωϋΰώ■ "
+ },
+ "ibm869": "cp869",
+ "csibm869": "cp869",
+ "cp922": {
+ "type": "_sbcs",
+ "chars": "
¡¢£¤¥¦§¨©ª«¬®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖ×ØÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"
+ },
+ "ibm922": "cp922",
+ "csibm922": "cp922",
+ "cp1046": {
+ "type": "_sbcs",
+ "chars": "ﺈ×÷ﹱ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"
+ },
+ "ibm1046": "cp1046",
+ "csibm1046": "cp1046",
+ "cp1124": {
+ "type": "_sbcs",
+ "chars": "
ЁЂҐЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"
+ },
+ "ibm1124": "cp1124",
+ "csibm1124": "cp1124",
+ "cp1125": {
+ "type": "_sbcs",
+ "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "
+ },
+ "ibm1125": "cp1125",
+ "csibm1125": "cp1125",
+ "cp1129": {
+ "type": "_sbcs",
+ "chars": "
¡¢£¤¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
+ },
+ "ibm1129": "cp1129",
+ "csibm1129": "cp1129",
+ "cp1133": {
+ "type": "_sbcs",
+ "chars": "
ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"
+ },
+ "ibm1133": "cp1133",
+ "csibm1133": "cp1133",
+ "cp1161": {
+ "type": "_sbcs",
+ "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "
+ },
+ "ibm1161": "cp1161",
+ "csibm1161": "cp1161",
+ "cp1162": {
+ "type": "_sbcs",
+ "chars": "€…‘’“”•–— กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ },
+ "ibm1162": "cp1162",
+ "csibm1162": "cp1162",
+ "cp1163": {
+ "type": "_sbcs",
+ "chars": "
¡¢£€¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
+ },
+ "ibm1163": "cp1163",
+ "csibm1163": "cp1163",
+ "maccroatian": {
+ "type": "_sbcs",
+ "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"
+ },
+ "maccyrillic": {
+ "type": "_sbcs",
+ "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
+ },
+ "macgreek": {
+ "type": "_sbcs",
+ "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"
+ },
+ "maciceland": {
+ "type": "_sbcs",
+ "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ "macroman": {
+ "type": "_sbcs",
+ "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ "macromania": {
+ "type": "_sbcs",
+ "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ "macthai": {
+ "type": "_sbcs",
+ "chars": "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"
+ },
+ "macturkish": {
+ "type": "_sbcs",
+ "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ "macukraine": {
+ "type": "_sbcs",
+ "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
+ },
+ "koi8r": {
+ "type": "_sbcs",
+ "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ "koi8u": {
+ "type": "_sbcs",
+ "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ "koi8ru": {
+ "type": "_sbcs",
+ "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ "koi8t": {
+ "type": "_sbcs",
+ "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ "armscii8": {
+ "type": "_sbcs",
+ "chars": "
�և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"
+ },
+ "rk1048": {
+ "type": "_sbcs",
+ "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
+ },
+ "tcvn": {
+ "type": "_sbcs",
+ "chars": "\u0000ÚỤ\u0003ỪỬỮ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010ỨỰỲỶỸÝỴ\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"
+ },
+ "georgianacademy": {
+ "type": "_sbcs",
+ "chars": "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ "georgianps": {
+ "type": "_sbcs",
+ "chars": "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ "pt154": {
+ "type": "_sbcs",
+ "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
+ },
+ "viscii": {
+ "type": "_sbcs",
+ "chars": "\u0000\u0001Ẳ\u0003\u0004ẴẪ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013Ỷ\u0015\u0016\u0017\u0018Ỹ\u001a\u001b\u001c\u001dỴ\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"
+ },
+ "iso646cn": {
+ "type": "_sbcs",
+ "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
+ },
+ "iso646jp": {
+ "type": "_sbcs",
+ "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
+ },
+ "hproman8": {
+ "type": "_sbcs",
+ "chars": "
ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"
+ },
+ "macintosh": {
+ "type": "_sbcs",
+ "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ "ascii": {
+ "type": "_sbcs",
+ "chars": "��������������������������������������������������������������������������������������������������������������������������������"
+ },
+ "tis620": {
+ "type": "_sbcs",
+ "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ }
}
-input[type="radio"], input[type="checkbox"] {
- margin: 3px 0.5ex;
- padding: initial;
- background-color: initial;
- border: initial;
-}
+/***/ }),
-input[type="button"], input[type="submit"], input[type="reset"] {
- -webkit-appearance: push-button;
- -webkit-user-select: none;
- white-space: pre
-}
+/***/ 41080:
+/***/ ((module) => {
-input[type="button"], input[type="submit"], input[type="reset"], button {
- align-items: flex-start;
- text-align: center;
- cursor: default;
- color: ButtonText;
- padding: 2px 6px 3px 6px;
- border: 2px outset ButtonFace;
- background-color: ButtonFace;
- box-sizing: border-box
-}
+"use strict";
-input[type="range"] {
- -webkit-appearance: slider-horizontal;
- padding: initial;
- border: initial;
- margin: 2px;
- color: #909090;
-}
-input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
-button:disabled, select:disabled, optgroup:disabled, option:disabled,
-select[disabled]>option {
- color: GrayText
-}
+// Manually added data to be used by sbcs codec in addition to generated one.
-input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, button:active {
- border-style: inset
-}
+module.exports = {
+ // Not supported by iconv, not sure why.
+ "10029": "maccenteuro",
+ "maccenteuro": {
+ "type": "_sbcs",
+ "chars": "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
+ },
-input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, button:active:disabled {
- border-style: outset
-}
+ "808": "cp808",
+ "ibm808": "cp808",
+ "cp808": {
+ "type": "_sbcs",
+ "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "
+ },
-datalist {
- display: none
-}
+ "mik": {
+ "type": "_sbcs",
+ "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
-area {
- display: inline;
- cursor: pointer;
-}
+ // Aliases of generated encodings.
+ "ascii8bit": "ascii",
+ "usascii": "ascii",
+ "ansix34": "ascii",
+ "ansix341968": "ascii",
+ "ansix341986": "ascii",
+ "csascii": "ascii",
+ "cp367": "ascii",
+ "ibm367": "ascii",
+ "isoir6": "ascii",
+ "iso646us": "ascii",
+ "iso646irv": "ascii",
+ "us": "ascii",
-param {
- display: none
-}
+ "latin1": "iso88591",
+ "latin2": "iso88592",
+ "latin3": "iso88593",
+ "latin4": "iso88594",
+ "latin5": "iso88599",
+ "latin6": "iso885910",
+ "latin7": "iso885913",
+ "latin8": "iso885914",
+ "latin9": "iso885915",
+ "latin10": "iso885916",
-input[type="checkbox"] {
- -webkit-appearance: checkbox;
- box-sizing: border-box;
-}
+ "csisolatin1": "iso88591",
+ "csisolatin2": "iso88592",
+ "csisolatin3": "iso88593",
+ "csisolatin4": "iso88594",
+ "csisolatincyrillic": "iso88595",
+ "csisolatinarabic": "iso88596",
+ "csisolatingreek" : "iso88597",
+ "csisolatinhebrew": "iso88598",
+ "csisolatin5": "iso88599",
+ "csisolatin6": "iso885910",
-input[type="radio"] {
- -webkit-appearance: radio;
- box-sizing: border-box;
-}
+ "l1": "iso88591",
+ "l2": "iso88592",
+ "l3": "iso88593",
+ "l4": "iso88594",
+ "l5": "iso88599",
+ "l6": "iso885910",
+ "l7": "iso885913",
+ "l8": "iso885914",
+ "l9": "iso885915",
+ "l10": "iso885916",
-input[type="color"] {
- -webkit-appearance: square-button;
- width: 44px;
- height: 23px;
- background-color: ButtonFace;
- /* Same as native_theme_base. */
- border: 1px #a9a9a9 solid;
- padding: 1px 2px;
-}
+ "isoir14": "iso646jp",
+ "isoir57": "iso646cn",
+ "isoir100": "iso88591",
+ "isoir101": "iso88592",
+ "isoir109": "iso88593",
+ "isoir110": "iso88594",
+ "isoir144": "iso88595",
+ "isoir127": "iso88596",
+ "isoir126": "iso88597",
+ "isoir138": "iso88598",
+ "isoir148": "iso88599",
+ "isoir157": "iso885910",
+ "isoir166": "tis620",
+ "isoir179": "iso885913",
+ "isoir199": "iso885914",
+ "isoir203": "iso885915",
+ "isoir226": "iso885916",
-input[type="color"][list] {
- -webkit-appearance: menulist;
- width: 88px;
- height: 23px
-}
+ "cp819": "iso88591",
+ "ibm819": "iso88591",
-select {
- -webkit-appearance: menulist;
- box-sizing: border-box;
- align-items: center;
- border: 1px solid;
- white-space: pre;
- -webkit-rtl-ordering: logical;
- color: black;
- background-color: white;
- cursor: default;
-}
+ "cyrillic": "iso88595",
-optgroup {
- font-weight: bolder;
- display: block;
-}
+ "arabic": "iso88596",
+ "arabic8": "iso88596",
+ "ecma114": "iso88596",
+ "asmo708": "iso88596",
-option {
- font-weight: normal;
- display: block;
- padding: 0 2px 1px 2px;
- white-space: pre;
- min-height: 1.2em;
-}
+ "greek" : "iso88597",
+ "greek8" : "iso88597",
+ "ecma118" : "iso88597",
+ "elot928" : "iso88597",
-output {
- display: inline;
-}
+ "hebrew": "iso88598",
+ "hebrew8": "iso88598",
-/* meter */
+ "turkish": "iso88599",
+ "turkish8": "iso88599",
-meter {
- -webkit-appearance: meter;
- box-sizing: border-box;
- display: inline-block;
- height: 1em;
- width: 5em;
- vertical-align: -0.2em;
-}
+ "thai": "iso885911",
+ "thai8": "iso885911",
-/* progress */
+ "celtic": "iso885914",
+ "celtic8": "iso885914",
+ "isoceltic": "iso885914",
-progress {
- -webkit-appearance: progress-bar;
- box-sizing: border-box;
- display: inline-block;
- height: 1em;
- width: 10em;
- vertical-align: -0.2em;
-}
+ "tis6200": "tis620",
+ "tis62025291": "tis620",
+ "tis62025330": "tis620",
-/* inline elements */
+ "10000": "macroman",
+ "10006": "macgreek",
+ "10007": "maccyrillic",
+ "10079": "maciceland",
+ "10081": "macturkish",
-u, ins {
- text-decoration: underline
-}
+ "cspc8codepage437": "cp437",
+ "cspc775baltic": "cp775",
+ "cspc850multilingual": "cp850",
+ "cspcp852": "cp852",
+ "cspc862latinhebrew": "cp862",
+ "cpgr": "cp869",
-strong, b {
- font-weight: bold
-}
+ "msee": "cp1250",
+ "mscyrl": "cp1251",
+ "msansi": "cp1252",
+ "msgreek": "cp1253",
+ "msturk": "cp1254",
+ "mshebr": "cp1255",
+ "msarab": "cp1256",
+ "winbaltrim": "cp1257",
-i, cite, em, var, address, dfn {
- font-style: italic
-}
+ "cp20866": "koi8r",
+ "20866": "koi8r",
+ "ibm878": "koi8r",
+ "cskoi8r": "koi8r",
-tt, code, kbd, samp {
- font-family: monospace
-}
+ "cp21866": "koi8u",
+ "21866": "koi8u",
+ "ibm1168": "koi8u",
-pre, xmp, plaintext, listing {
- display: block;
- font-family: monospace;
- white-space: pre;
- margin: 1__qem 0
-}
+ "strk10482002": "rk1048",
-mark {
- background-color: yellow;
- color: black
-}
+ "tcvn5712": "tcvn",
+ "tcvn57121": "tcvn",
-big {
- font-size: larger
-}
+ "gb198880": "iso646cn",
+ "cn": "iso646cn",
-small {
- font-size: smaller
-}
+ "csiso14jisc6220ro": "iso646jp",
+ "jisc62201969ro": "iso646jp",
+ "jp": "iso646jp",
-s, strike, del {
- text-decoration: line-through
-}
+ "cshproman8": "hproman8",
+ "r8": "hproman8",
+ "roman8": "hproman8",
+ "xroman8": "hproman8",
+ "ibm1051": "hproman8",
-sub {
- vertical-align: sub;
- font-size: smaller
-}
+ "mac": "macintosh",
+ "csmacintosh": "macintosh",
+};
-sup {
- vertical-align: super;
- font-size: smaller
-}
-nobr {
- white-space: nowrap
-}
-/* states */
+/***/ }),
-:focus {
- outline: auto 5px -webkit-focus-ring-color
-}
+/***/ 11155:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-/* Read-only text fields do not show a focus ring but do still receive focus */
-html:focus, body:focus, input[readonly]:focus {
- outline: none
-}
+"use strict";
-embed:focus, iframe:focus, object:focus {
- outline: none
-}
+var Buffer = (__nccwpck_require__(15118).Buffer);
-input:focus, textarea:focus, select:focus {
- outline-offset: -2px
-}
+// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
-input[type="button"]:focus,
-input[type="checkbox"]:focus,
-input[type="file"]:focus,
-input[type="hidden"]:focus,
-input[type="image"]:focus,
-input[type="radio"]:focus,
-input[type="reset"]:focus,
-input[type="search"]:focus,
-input[type="submit"]:focus {
- outline-offset: 0
+// == UTF16-BE codec. ==========================================================
+
+exports.utf16be = Utf16BECodec;
+function Utf16BECodec() {
}
-/* HTML5 ruby elements */
+Utf16BECodec.prototype.encoder = Utf16BEEncoder;
+Utf16BECodec.prototype.decoder = Utf16BEDecoder;
+Utf16BECodec.prototype.bomAware = true;
-ruby, rt {
- text-indent: 0; /* blocks used for ruby rendering should not trigger this */
-}
-rt {
- line-height: normal;
- -webkit-text-emphasis: none;
+// -- Encoding
+
+function Utf16BEEncoder() {
}
-ruby > rt {
- display: block;
- font-size: 50%;
- text-align: start;
+Utf16BEEncoder.prototype.write = function(str) {
+ var buf = Buffer.from(str, 'ucs2');
+ for (var i = 0; i < buf.length; i += 2) {
+ var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;
+ }
+ return buf;
}
-ruby > rp {
- display: none;
+Utf16BEEncoder.prototype.end = function() {
}
-/* other elements */
-noframes {
- display: none
-}
+// -- Decoding
-frameset, frame {
- display: block
+function Utf16BEDecoder() {
+ this.overflowByte = -1;
}
-frameset {
- border-color: inherit
-}
+Utf16BEDecoder.prototype.write = function(buf) {
+ if (buf.length == 0)
+ return '';
-iframe {
- border: 2px inset
-}
+ var buf2 = Buffer.alloc(buf.length + 1),
+ i = 0, j = 0;
-details {
- display: block
-}
+ if (this.overflowByte !== -1) {
+ buf2[0] = buf[0];
+ buf2[1] = this.overflowByte;
+ i = 1; j = 2;
+ }
-summary {
- display: block
+ for (; i < buf.length-1; i += 2, j+= 2) {
+ buf2[j] = buf[i+1];
+ buf2[j+1] = buf[i];
+ }
+
+ this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;
+
+ return buf2.slice(0, j).toString('ucs2');
}
-template {
- display: none
+Utf16BEDecoder.prototype.end = function() {
}
-bdi, output {
- unicode-bidi: -webkit-isolate;
+
+// == UTF-16 codec =============================================================
+// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.
+// Defaults to UTF-16LE, as it's prevalent and default in Node.
+// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le
+// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});
+
+// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).
+
+exports.utf16 = Utf16Codec;
+function Utf16Codec(codecOptions, iconv) {
+ this.iconv = iconv;
}
-bdo {
- unicode-bidi: bidi-override;
+Utf16Codec.prototype.encoder = Utf16Encoder;
+Utf16Codec.prototype.decoder = Utf16Decoder;
+
+
+// -- Encoding (pass-through)
+
+function Utf16Encoder(options, codec) {
+ options = options || {};
+ if (options.addBOM === undefined)
+ options.addBOM = true;
+ this.encoder = codec.iconv.getEncoder('utf-16le', options);
}
-textarea[dir=auto] {
- unicode-bidi: -webkit-plaintext;
+Utf16Encoder.prototype.write = function(str) {
+ return this.encoder.write(str);
}
-dialog:not([open]) {
- display: none
+Utf16Encoder.prototype.end = function() {
+ return this.encoder.end();
}
-dialog {
- position: absolute;
- left: 0;
- right: 0;
- width: -webkit-fit-content;
- height: -webkit-fit-content;
- margin: auto;
- border: solid;
- padding: 1em;
- background: white;
- color: black
+
+// -- Decoding
+
+function Utf16Decoder(options, codec) {
+ this.decoder = null;
+ this.initialBytes = [];
+ this.initialBytesLen = 0;
+
+ this.options = options || {};
+ this.iconv = codec.iconv;
}
-[hidden] {
- display: none
+Utf16Decoder.prototype.write = function(buf) {
+ if (!this.decoder) {
+ // Codec is not chosen yet. Accumulate initial bytes.
+ this.initialBytes.push(buf);
+ this.initialBytesLen += buf.length;
+
+ if (this.initialBytesLen < 16) // We need more bytes to use space heuristic (see below)
+ return '';
+
+ // We have enough bytes -> detect endianness.
+ var buf = Buffer.concat(this.initialBytes),
+ encoding = detectEncoding(buf, this.options.defaultEncoding);
+ this.decoder = this.iconv.getDecoder(encoding, this.options);
+ this.initialBytes.length = this.initialBytesLen = 0;
+ }
+
+ return this.decoder.write(buf);
}
-/* noscript is handled internally, as it depends on settings. */
+Utf16Decoder.prototype.end = function() {
+ if (!this.decoder) {
+ var buf = Buffer.concat(this.initialBytes),
+ encoding = detectEncoding(buf, this.options.defaultEncoding);
+ this.decoder = this.iconv.getDecoder(encoding, this.options);
-`;
+ var res = this.decoder.write(buf),
+ trail = this.decoder.end();
+ return trail ? (res + trail) : res;
+ }
+ return this.decoder.end();
+}
-/***/ }),
+function detectEncoding(buf, defaultEncoding) {
+ var enc = defaultEncoding || 'utf-16le';
-/***/ 42751:
-/***/ ((module) => {
+ if (buf.length >= 2) {
+ // Check BOM.
+ if (buf[0] == 0xFE && buf[1] == 0xFF) // UTF-16BE BOM
+ enc = 'utf-16be';
+ else if (buf[0] == 0xFF && buf[1] == 0xFE) // UTF-16LE BOM
+ enc = 'utf-16le';
+ else {
+ // No BOM found. Try to deduce encoding from initial content.
+ // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.
+ // So, we count ASCII as if it was LE or BE, and decide from that.
+ var asciiCharsLE = 0, asciiCharsBE = 0, // Counts of chars in both positions
+ _len = Math.min(buf.length - (buf.length % 2), 64); // Len is always even.
-"use strict";
+ for (var i = 0; i < _len; i += 2) {
+ if (buf[i] === 0 && buf[i+1] !== 0) asciiCharsBE++;
+ if (buf[i] !== 0 && buf[i+1] === 0) asciiCharsLE++;
+ }
+ if (asciiCharsBE > asciiCharsLE)
+ enc = 'utf-16be';
+ else if (asciiCharsBE < asciiCharsLE)
+ enc = 'utf-16le';
+ }
+ }
-module.exports = function (nameForErrorMessage, window) {
- if (!window) {
- // Do nothing for window-less documents.
- return;
- }
+ return enc;
+}
- const error = new Error(`Not implemented: ${nameForErrorMessage}`);
- error.type = "not implemented";
- window._virtualConsole.emit("jsdomError", error);
-};
/***/ }),
-/***/ 53601:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 51644:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
+var Buffer = (__nccwpck_require__(15118).Buffer);
-const parse5 = __nccwpck_require__(65598);
+// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
+// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
-const { createElement } = __nccwpck_require__(98548);
-const { HTML_NS } = __nccwpck_require__(52635);
+exports.utf7 = Utf7Codec;
+exports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7
+function Utf7Codec(codecOptions, iconv) {
+ this.iconv = iconv;
+};
-const DocumentType = __nccwpck_require__(53193);
-const DocumentFragment = __nccwpck_require__(11490);
-const Text = __nccwpck_require__(49374);
-const Comment = __nccwpck_require__(56625);
+Utf7Codec.prototype.encoder = Utf7Encoder;
+Utf7Codec.prototype.decoder = Utf7Decoder;
+Utf7Codec.prototype.bomAware = true;
-const attributes = __nccwpck_require__(35092);
-const nodeTypes = __nccwpck_require__(10656);
-const serializationAdapter = __nccwpck_require__(19756);
-const {
- customElementReactionsStack, invokeCEReactions, lookupCEDefinition
-} = __nccwpck_require__(25392);
+// -- Encoding
-// Horrible monkey-patch to implement https://github.com/inikulin/parse5/issues/237 and
-// https://github.com/inikulin/parse5/issues/285.
-const OpenElementStack = __nccwpck_require__(64813);
+var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
-const openElementStackOriginalPush = OpenElementStack.prototype.push;
-OpenElementStack.prototype.push = function (...args) {
- openElementStackOriginalPush.apply(this, args);
- this.treeAdapter._currentElement = this.current;
+function Utf7Encoder(options, codec) {
+ this.iconv = codec.iconv;
+}
- const after = this.items[this.stackTop];
- if (after._pushedOnStackOfOpenElements) {
- after._pushedOnStackOfOpenElements();
- }
-};
+Utf7Encoder.prototype.write = function(str) {
+ // Naive implementation.
+ // Non-direct chars are encoded as "+-"; single "+" char is encoded as "+-".
+ return Buffer.from(str.replace(nonDirectChars, function(chunk) {
+ return "+" + (chunk === '+' ? '' :
+ this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, ''))
+ + "-";
+ }.bind(this)));
+}
-const openElementStackOriginalPop = OpenElementStack.prototype.pop;
-OpenElementStack.prototype.pop = function (...args) {
- const before = this.items[this.stackTop];
+Utf7Encoder.prototype.end = function() {
+}
- openElementStackOriginalPop.apply(this, args);
- this.treeAdapter._currentElement = this.current;
- if (before._poppedOffStackOfOpenElements) {
- before._poppedOffStackOfOpenElements();
- }
-};
+// -- Decoding
-class JSDOMParse5Adapter {
- constructor(documentImpl, options = {}) {
- this._documentImpl = documentImpl;
- this._globalObject = documentImpl._globalObject;
- this._fragment = options.fragment || false;
+function Utf7Decoder(options, codec) {
+ this.iconv = codec.iconv;
+ this.inBase64 = false;
+ this.base64Accum = '';
+}
- // Since the createElement hook doesn't provide the parent element, we keep track of this using _currentElement:
- // https://github.com/inikulin/parse5/issues/285. See above horrible monkey-patch for how this is maintained.
- this._currentElement = undefined;
- }
+var base64Regex = /[A-Za-z0-9\/+]/;
+var base64Chars = [];
+for (var i = 0; i < 256; i++)
+ base64Chars[i] = base64Regex.test(String.fromCharCode(i));
- _ownerDocument() {
- const { _currentElement } = this;
+var plusChar = '+'.charCodeAt(0),
+ minusChar = '-'.charCodeAt(0),
+ andChar = '&'.charCodeAt(0);
- // The _currentElement is undefined when parsing elements at the root of the document.
- if (_currentElement) {
- return _currentElement.localName === "template" && _currentElement.namespaceURI === HTML_NS ?
- _currentElement.content._ownerDocument :
- _currentElement._ownerDocument;
- }
+Utf7Decoder.prototype.write = function(buf) {
+ var res = "", lastI = 0,
+ inBase64 = this.inBase64,
+ base64Accum = this.base64Accum;
- return this._documentImpl;
- }
+ // The decoder is more involved as we must handle chunks in stream.
- createDocument() {
- // parse5's model assumes that parse(html) will call into here to create the new Document, then return it. However,
- // jsdom's model assumes we can create a Window (and through that create an empty Document), do some other setup
- // stuff, and then parse, stuffing nodes into that Document as we go. So to adapt between these two models, we just
- // return the already-created Document when asked by parse5 to "create" a Document.
- return this._documentImpl;
- }
+ for (var i = 0; i < buf.length; i++) {
+ if (!inBase64) { // We're in direct mode.
+ // Write direct chars until '+'
+ if (buf[i] == plusChar) {
+ res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars.
+ lastI = i+1;
+ inBase64 = true;
+ }
+ } else { // We decode base64.
+ if (!base64Chars[buf[i]]) { // Base64 ended.
+ if (i == lastI && buf[i] == minusChar) {// "+-" -> "+"
+ res += "+";
+ } else {
+ var b64str = base64Accum + buf.slice(lastI, i).toString();
+ res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
+ }
- createDocumentFragment() {
- const ownerDocument = this._ownerDocument();
- return DocumentFragment.createImpl(this._globalObject, [], { ownerDocument });
- }
+ if (buf[i] != minusChar) // Minus is absorbed after base64.
+ i--;
- // https://html.spec.whatwg.org/#create-an-element-for-the-token
- createElement(localName, namespace, attrs) {
- const ownerDocument = this._ownerDocument();
+ lastI = i+1;
+ inBase64 = false;
+ base64Accum = '';
+ }
+ }
+ }
- const isAttribute = attrs.find(attr => attr.name === "is");
- const isValue = isAttribute ? isAttribute.value : null;
+ if (!inBase64) {
+ res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars.
+ } else {
+ var b64str = base64Accum + buf.slice(lastI).toString();
- const definition = lookupCEDefinition(ownerDocument, namespace, localName);
+ var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
+ base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.
+ b64str = b64str.slice(0, canBeDecoded);
- let willExecuteScript = false;
- if (definition !== null && !this._fragment) {
- willExecuteScript = true;
+ res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
}
- if (willExecuteScript) {
- ownerDocument._throwOnDynamicMarkupInsertionCounter++;
- customElementReactionsStack.push([]);
- }
+ this.inBase64 = inBase64;
+ this.base64Accum = base64Accum;
- const element = createElement(ownerDocument, localName, namespace, null, isValue, willExecuteScript);
- this.adoptAttributes(element, attrs);
+ return res;
+}
- if (willExecuteScript) {
- const queue = customElementReactionsStack.pop();
- invokeCEReactions(queue);
- ownerDocument._throwOnDynamicMarkupInsertionCounter--;
- }
+Utf7Decoder.prototype.end = function() {
+ var res = "";
+ if (this.inBase64 && this.base64Accum.length > 0)
+ res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
- if ("_parserInserted" in element) {
- element._parserInserted = true;
- }
+ this.inBase64 = false;
+ this.base64Accum = '';
+ return res;
+}
- return element;
- }
- createCommentNode(data) {
- const ownerDocument = this._ownerDocument();
- return Comment.createImpl(this._globalObject, [], { data, ownerDocument });
- }
+// UTF-7-IMAP codec.
+// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)
+// Differences:
+// * Base64 part is started by "&" instead of "+"
+// * Direct characters are 0x20-0x7E, except "&" (0x26)
+// * In Base64, "," is used instead of "/"
+// * Base64 must not be used to represent direct characters.
+// * No implicit shift back from Base64 (should always end with '-')
+// * String must end in non-shifted position.
+// * "-&" while in base64 is not allowed.
- appendChild(parentNode, newNode) {
- parentNode._append(newNode);
- }
- insertBefore(parentNode, newNode, referenceNode) {
- parentNode._insert(newNode, referenceNode);
- }
+exports.utf7imap = Utf7IMAPCodec;
+function Utf7IMAPCodec(codecOptions, iconv) {
+ this.iconv = iconv;
+};
- setTemplateContent(templateElement, contentFragment) {
- // This code makes the glue between jsdom and parse5 HTMLTemplateElement parsing:
- //
- // * jsdom during the construction of the HTMLTemplateElement (for example when create via
- // `document.createElement("template")`), creates a DocumentFragment and set it into _templateContents.
- // * parse5 when parsing a tag creates an HTMLTemplateElement (`createElement` adapter hook) and also
- // create a DocumentFragment (`createDocumentFragment` adapter hook).
- //
- // At this point we now have to replace the one created in jsdom with one created by parse5.
- const { _ownerDocument, _host } = templateElement._templateContents;
- contentFragment._ownerDocument = _ownerDocument;
- contentFragment._host = _host;
+Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
+Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
+Utf7IMAPCodec.prototype.bomAware = true;
- templateElement._templateContents = contentFragment;
- }
- setDocumentType(document, name, publicId, systemId) {
- const ownerDocument = this._ownerDocument();
- const documentType = DocumentType.createImpl(this._globalObject, [], { name, publicId, systemId, ownerDocument });
+// -- Encoding
- document._append(documentType);
- }
+function Utf7IMAPEncoder(options, codec) {
+ this.iconv = codec.iconv;
+ this.inBase64 = false;
+ this.base64Accum = Buffer.alloc(6);
+ this.base64AccumIdx = 0;
+}
- setDocumentMode(document, mode) {
- // TODO: the rest of jsdom ignores this
- document._mode = mode;
- }
+Utf7IMAPEncoder.prototype.write = function(str) {
+ var inBase64 = this.inBase64,
+ base64Accum = this.base64Accum,
+ base64AccumIdx = this.base64AccumIdx,
+ buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;
- detachNode(node) {
- node.remove();
- }
+ for (var i = 0; i < str.length; i++) {
+ var uChar = str.charCodeAt(i);
+ if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'.
+ if (inBase64) {
+ if (base64AccumIdx > 0) {
+ bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
+ base64AccumIdx = 0;
+ }
- insertText(parentNode, text) {
- const { lastChild } = parentNode;
- if (lastChild && lastChild.nodeType === nodeTypes.TEXT_NODE) {
- lastChild.data += text;
- } else {
- const ownerDocument = this._ownerDocument();
- const textNode = Text.createImpl(this._globalObject, [], { data: text, ownerDocument });
- parentNode._append(textNode);
- }
- }
+ buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.
+ inBase64 = false;
+ }
- insertTextBefore(parentNode, text, referenceNode) {
- const { previousSibling } = referenceNode;
- if (previousSibling && previousSibling.nodeType === nodeTypes.TEXT_NODE) {
- previousSibling.data += text;
- } else {
- const ownerDocument = this._ownerDocument();
- const textNode = Text.createImpl(this._globalObject, [], { data: text, ownerDocument });
- parentNode._append(textNode, referenceNode);
+ if (!inBase64) {
+ buf[bufIdx++] = uChar; // Write direct character
+
+ if (uChar === andChar) // Ampersand -> '&-'
+ buf[bufIdx++] = minusChar;
+ }
+
+ } else { // Non-direct character
+ if (!inBase64) {
+ buf[bufIdx++] = andChar; // Write '&', then go to base64 mode.
+ inBase64 = true;
+ }
+ if (inBase64) {
+ base64Accum[base64AccumIdx++] = uChar >> 8;
+ base64Accum[base64AccumIdx++] = uChar & 0xFF;
+
+ if (base64AccumIdx == base64Accum.length) {
+ bufIdx += buf.write(base64Accum.toString('base64').replace(/\//g, ','), bufIdx);
+ base64AccumIdx = 0;
+ }
+ }
+ }
}
- }
- adoptAttributes(element, attrs) {
- for (const attr of attrs) {
- const prefix = attr.prefix === "" ? null : attr.prefix;
- attributes.setAttributeValue(element, attr.name, attr.value, prefix, attr.namespace);
+ this.inBase64 = inBase64;
+ this.base64AccumIdx = base64AccumIdx;
+
+ return buf.slice(0, bufIdx);
+}
+
+Utf7IMAPEncoder.prototype.end = function() {
+ var buf = Buffer.alloc(10), bufIdx = 0;
+ if (this.inBase64) {
+ if (this.base64AccumIdx > 0) {
+ bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
+ this.base64AccumIdx = 0;
+ }
+
+ buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.
+ this.inBase64 = false;
}
- }
+
+ return buf.slice(0, bufIdx);
}
-// Assign shared adapters with serializer.
-Object.assign(JSDOMParse5Adapter.prototype, serializationAdapter);
-function parseFragment(markup, contextElement) {
- const ownerDocument = contextElement.localName === "template" && contextElement.namespaceURI === HTML_NS ?
- contextElement.content._ownerDocument :
- contextElement._ownerDocument;
+// -- Decoding
- const config = {
- ...ownerDocument._parseOptions,
- treeAdapter: new JSDOMParse5Adapter(ownerDocument, { fragment: true })
- };
+function Utf7IMAPDecoder(options, codec) {
+ this.iconv = codec.iconv;
+ this.inBase64 = false;
+ this.base64Accum = '';
+}
- return parse5.parseFragment(contextElement, markup, config);
+var base64IMAPChars = base64Chars.slice();
+base64IMAPChars[','.charCodeAt(0)] = true;
+
+Utf7IMAPDecoder.prototype.write = function(buf) {
+ var res = "", lastI = 0,
+ inBase64 = this.inBase64,
+ base64Accum = this.base64Accum;
+
+ // The decoder is more involved as we must handle chunks in stream.
+ // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).
+
+ for (var i = 0; i < buf.length; i++) {
+ if (!inBase64) { // We're in direct mode.
+ // Write direct chars until '&'
+ if (buf[i] == andChar) {
+ res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars.
+ lastI = i+1;
+ inBase64 = true;
+ }
+ } else { // We decode base64.
+ if (!base64IMAPChars[buf[i]]) { // Base64 ended.
+ if (i == lastI && buf[i] == minusChar) { // "&-" -> "&"
+ res += "&";
+ } else {
+ var b64str = base64Accum + buf.slice(lastI, i).toString().replace(/,/g, '/');
+ res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
+ }
+
+ if (buf[i] != minusChar) // Minus may be absorbed after base64.
+ i--;
+
+ lastI = i+1;
+ inBase64 = false;
+ base64Accum = '';
+ }
+ }
+ }
+
+ if (!inBase64) {
+ res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars.
+ } else {
+ var b64str = base64Accum + buf.slice(lastI).toString().replace(/,/g, '/');
+
+ var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
+ base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.
+ b64str = b64str.slice(0, canBeDecoded);
+
+ res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
+ }
+
+ this.inBase64 = inBase64;
+ this.base64Accum = base64Accum;
+
+ return res;
}
-function parseIntoDocument(markup, ownerDocument) {
- const config = {
- ...ownerDocument._parseOptions,
- treeAdapter: new JSDOMParse5Adapter(ownerDocument)
- };
+Utf7IMAPDecoder.prototype.end = function() {
+ var res = "";
+ if (this.inBase64 && this.base64Accum.length > 0)
+ res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
- return parse5.parse(markup, config);
+ this.inBase64 = false;
+ this.base64Accum = '';
+ return res;
}
-module.exports = {
- parseFragment,
- parseIntoDocument
-};
+
/***/ }),
-/***/ 35373:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 67961:
+/***/ ((__unused_webpack_module, exports) => {
"use strict";
-const xmlParser = __nccwpck_require__(13408);
-const htmlParser = __nccwpck_require__(53601);
+var BOMChar = '\uFEFF';
-// https://w3c.github.io/DOM-Parsing/#dfn-fragment-parsing-algorithm
-function parseFragment(markup, contextElement) {
- const { _parsingMode } = contextElement._ownerDocument;
+exports.PrependBOM = PrependBOMWrapper
+function PrependBOMWrapper(encoder, options) {
+ this.encoder = encoder;
+ this.addBOM = true;
+}
- let parseAlgorithm;
- if (_parsingMode === "html") {
- parseAlgorithm = htmlParser.parseFragment;
- } else if (_parsingMode === "xml") {
- parseAlgorithm = xmlParser.parseFragment;
- }
+PrependBOMWrapper.prototype.write = function(str) {
+ if (this.addBOM) {
+ str = BOMChar + str;
+ this.addBOM = false;
+ }
- // Note: HTML and XML fragment parsing algorithm already return a document fragments; no need to do steps 3 and 4
- return parseAlgorithm(markup, contextElement);
+ return this.encoder.write(str);
}
-function parseIntoDocument(markup, ownerDocument) {
- const { _parsingMode } = ownerDocument;
+PrependBOMWrapper.prototype.end = function() {
+ return this.encoder.end();
+}
- let parseAlgorithm;
- if (_parsingMode === "html") {
- parseAlgorithm = htmlParser.parseIntoDocument;
- } else if (_parsingMode === "xml") {
- parseAlgorithm = xmlParser.parseIntoDocument;
- }
- return parseAlgorithm(markup, ownerDocument);
+//------------------------------------------------------------------------------
+
+exports.StripBOM = StripBOMWrapper;
+function StripBOMWrapper(decoder, options) {
+ this.decoder = decoder;
+ this.pass = false;
+ this.options = options || {};
+}
+
+StripBOMWrapper.prototype.write = function(buf) {
+ var res = this.decoder.write(buf);
+ if (this.pass || !res)
+ return res;
+
+ if (res[0] === BOMChar) {
+ res = res.slice(1);
+ if (typeof this.options.stripBOM === 'function')
+ this.options.stripBOM();
+ }
+
+ this.pass = true;
+ return res;
+}
+
+StripBOMWrapper.prototype.end = function() {
+ return this.decoder.end();
}
-module.exports = {
- parseFragment,
- parseIntoDocument
-};
/***/ }),
-/***/ 13408:
+/***/ 30393:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
+var Buffer = (__nccwpck_require__(14300).Buffer);
+// Note: not polyfilled with safer-buffer on a purpose, as overrides Buffer
-const { SaxesParser } = __nccwpck_require__(42958);
-const DOMException = __nccwpck_require__(57617);
+// == Extend Node primitives to use iconv-lite =================================
-const { createElement } = __nccwpck_require__(98548);
+module.exports = function (iconv) {
+ var original = undefined; // Place to keep original methods.
-const DocumentFragment = __nccwpck_require__(11490);
-const DocumentType = __nccwpck_require__(53193);
-const CDATASection = __nccwpck_require__(85221);
-const Comment = __nccwpck_require__(56625);
-const ProcessingInstruction = __nccwpck_require__(75221);
-const Text = __nccwpck_require__(49374);
+ // Node authors rewrote Buffer internals to make it compatible with
+ // Uint8Array and we cannot patch key functions since then.
+ // Note: this does use older Buffer API on a purpose
+ iconv.supportsNodeEncodingsExtension = !(Buffer.from || new Buffer(0) instanceof Uint8Array);
-const attributes = __nccwpck_require__(35092);
-const { HTML_NS } = __nccwpck_require__(52635);
+ iconv.extendNodeEncodings = function extendNodeEncodings() {
+ if (original) return;
+ original = {};
-const HTML5_DOCTYPE = //i;
-const PUBLIC_DOCTYPE = /]+)/i;
+ if (!iconv.supportsNodeEncodingsExtension) {
+ console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node");
+ console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility");
+ return;
+ }
-function parseDocType(globalObject, ownerDocument, html) {
- if (HTML5_DOCTYPE.test(html)) {
- return createDocumentType(globalObject, ownerDocument, "html", "", "");
- }
+ var nodeNativeEncodings = {
+ 'hex': true, 'utf8': true, 'utf-8': true, 'ascii': true, 'binary': true,
+ 'base64': true, 'ucs2': true, 'ucs-2': true, 'utf16le': true, 'utf-16le': true,
+ };
- const publicPieces = PUBLIC_DOCTYPE.exec(html);
- if (publicPieces) {
- return createDocumentType(globalObject, ownerDocument, publicPieces[1], publicPieces[2], publicPieces[3]);
- }
+ Buffer.isNativeEncoding = function(enc) {
+ return enc && nodeNativeEncodings[enc.toLowerCase()];
+ }
- const systemPieces = SYSTEM_DOCTYPE.exec(html);
- if (systemPieces) {
- return createDocumentType(globalObject, ownerDocument, systemPieces[1], "", systemPieces[2]);
- }
+ // -- SlowBuffer -----------------------------------------------------------
+ var SlowBuffer = (__nccwpck_require__(14300).SlowBuffer);
- const namePiece = CUSTOM_NAME_DOCTYPE.exec(html)[1] || "html";
- return createDocumentType(globalObject, ownerDocument, namePiece, "", "");
-}
+ original.SlowBufferToString = SlowBuffer.prototype.toString;
+ SlowBuffer.prototype.toString = function(encoding, start, end) {
+ encoding = String(encoding || 'utf8').toLowerCase();
-function createDocumentType(globalObject, ownerDocument, name, publicId, systemId) {
- return DocumentType.createImpl(globalObject, [], { ownerDocument, name, publicId, systemId });
-}
+ // Use native conversion when possible
+ if (Buffer.isNativeEncoding(encoding))
+ return original.SlowBufferToString.call(this, encoding, start, end);
-function isHTMLTemplateElement(element) {
- return element.tagName === "template" && element.namespaceURI === HTML_NS;
-}
+ // Otherwise, use our decoding method.
+ if (typeof start == 'undefined') start = 0;
+ if (typeof end == 'undefined') end = this.length;
+ return iconv.decode(this.slice(start, end), encoding);
+ }
+ original.SlowBufferWrite = SlowBuffer.prototype.write;
+ SlowBuffer.prototype.write = function(string, offset, length, encoding) {
+ // Support both (string, offset, length, encoding)
+ // and the legacy (string, encoding, offset, length)
+ if (isFinite(offset)) {
+ if (!isFinite(length)) {
+ encoding = length;
+ length = undefined;
+ }
+ } else { // legacy
+ var swap = encoding;
+ encoding = offset;
+ offset = length;
+ length = swap;
+ }
-function createParser(rootNode, globalObject, saxesOptions) {
- const parser = new SaxesParser({
- ...saxesOptions,
- // Browsers always have namespace support.
- xmlns: true,
- // We force the parser to treat all documents (even documents declaring themselves to be XML 1.1 documents) as XML
- // 1.0 documents. See https://github.com/jsdom/jsdom/issues/2677 for a discussion of the stakes.
- defaultXMLVersion: "1.0",
- forceXMLVersion: true
- });
- const openStack = [rootNode];
+ offset = +offset || 0;
+ var remaining = this.length - offset;
+ if (!length) {
+ length = remaining;
+ } else {
+ length = +length;
+ if (length > remaining) {
+ length = remaining;
+ }
+ }
+ encoding = String(encoding || 'utf8').toLowerCase();
- function getOwnerDocument() {
- const currentElement = openStack[openStack.length - 1];
+ // Use native conversion when possible
+ if (Buffer.isNativeEncoding(encoding))
+ return original.SlowBufferWrite.call(this, string, offset, length, encoding);
- return isHTMLTemplateElement(currentElement) ?
- currentElement._templateContents._ownerDocument :
- currentElement._ownerDocument;
- }
+ if (string.length > 0 && (length < 0 || offset < 0))
+ throw new RangeError('attempt to write beyond buffer bounds');
- function appendChild(child) {
- const parentElement = openStack[openStack.length - 1];
+ // Otherwise, use our encoding method.
+ var buf = iconv.encode(string, encoding);
+ if (buf.length < length) length = buf.length;
+ buf.copy(this, offset, 0, length);
+ return length;
+ }
- if (isHTMLTemplateElement(parentElement)) {
- parentElement._templateContents._insert(child, null);
- } else {
- parentElement._insert(child, null);
- }
- }
+ // -- Buffer ---------------------------------------------------------------
- parser.on("text", saxesOptions.fragment ?
- // In a fragment, all text events produced by saxes must result in a text
- // node.
- data => {
- const ownerDocument = getOwnerDocument();
- appendChild(Text.createImpl(globalObject, [], { data, ownerDocument }));
- } :
- // When parsing a whole document, we must ignore those text nodes that are
- // produced outside the root element. Saxes produces events for them,
- // but DOM trees do not record text outside the root element.
- data => {
- if (openStack.length > 1) {
- const ownerDocument = getOwnerDocument();
- appendChild(Text.createImpl(globalObject, [], { data, ownerDocument }));
- }
- });
+ original.BufferIsEncoding = Buffer.isEncoding;
+ Buffer.isEncoding = function(encoding) {
+ return Buffer.isNativeEncoding(encoding) || iconv.encodingExists(encoding);
+ }
- parser.on("cdata", data => {
- const ownerDocument = getOwnerDocument();
- appendChild(CDATASection.createImpl(globalObject, [], { data, ownerDocument }));
- });
+ original.BufferByteLength = Buffer.byteLength;
+ Buffer.byteLength = SlowBuffer.byteLength = function(str, encoding) {
+ encoding = String(encoding || 'utf8').toLowerCase();
- parser.on("opentag", tag => {
- const { local: tagLocal, attributes: tagAttributes } = tag;
+ // Use native conversion when possible
+ if (Buffer.isNativeEncoding(encoding))
+ return original.BufferByteLength.call(this, str, encoding);
- const ownerDocument = getOwnerDocument();
- const tagNamespace = tag.uri === "" ? null : tag.uri;
- const tagPrefix = tag.prefix === "" ? null : tag.prefix;
- const isValue = tagAttributes.is === undefined ? null : tagAttributes.is.value;
+ // Slow, I know, but we don't have a better way yet.
+ return iconv.encode(str, encoding).length;
+ }
- const elem = createElement(ownerDocument, tagLocal, tagNamespace, tagPrefix, isValue, true);
+ original.BufferToString = Buffer.prototype.toString;
+ Buffer.prototype.toString = function(encoding, start, end) {
+ encoding = String(encoding || 'utf8').toLowerCase();
- // We mark a script element as "parser-inserted", which prevents it from
- // being immediately executed.
- if (tagLocal === "script" && tagNamespace === HTML_NS) {
- elem._parserInserted = true;
- }
+ // Use native conversion when possible
+ if (Buffer.isNativeEncoding(encoding))
+ return original.BufferToString.call(this, encoding, start, end);
- for (const key of Object.keys(tagAttributes)) {
- const { prefix, local, uri, value } = tagAttributes[key];
- attributes.setAttributeValue(elem, local, value, prefix === "" ? null : prefix, uri === "" ? null : uri);
- }
+ // Otherwise, use our decoding method.
+ if (typeof start == 'undefined') start = 0;
+ if (typeof end == 'undefined') end = this.length;
+ return iconv.decode(this.slice(start, end), encoding);
+ }
- appendChild(elem);
- openStack.push(elem);
- });
+ original.BufferWrite = Buffer.prototype.write;
+ Buffer.prototype.write = function(string, offset, length, encoding) {
+ var _offset = offset, _length = length, _encoding = encoding;
+ // Support both (string, offset, length, encoding)
+ // and the legacy (string, encoding, offset, length)
+ if (isFinite(offset)) {
+ if (!isFinite(length)) {
+ encoding = length;
+ length = undefined;
+ }
+ } else { // legacy
+ var swap = encoding;
+ encoding = offset;
+ offset = length;
+ length = swap;
+ }
- parser.on("closetag", () => {
- const elem = openStack.pop();
- // Once a script is populated, we can execute it.
- if (elem.localName === "script" && elem.namespaceURI === HTML_NS) {
- elem._eval();
- }
- });
+ encoding = String(encoding || 'utf8').toLowerCase();
- parser.on("comment", data => {
- const ownerDocument = getOwnerDocument();
- appendChild(Comment.createImpl(globalObject, [], { data, ownerDocument }));
- });
+ // Use native conversion when possible
+ if (Buffer.isNativeEncoding(encoding))
+ return original.BufferWrite.call(this, string, _offset, _length, _encoding);
- parser.on("processinginstruction", ({ target, body }) => {
- const ownerDocument = getOwnerDocument();
- appendChild(ProcessingInstruction.createImpl(globalObject, [], { target, data: body, ownerDocument }));
- });
+ offset = +offset || 0;
+ var remaining = this.length - offset;
+ if (!length) {
+ length = remaining;
+ } else {
+ length = +length;
+ if (length > remaining) {
+ length = remaining;
+ }
+ }
- parser.on("doctype", dt => {
- const ownerDocument = getOwnerDocument();
- appendChild(parseDocType(globalObject, ownerDocument, ``));
+ if (string.length > 0 && (length < 0 || offset < 0))
+ throw new RangeError('attempt to write beyond buffer bounds');
- const entityMatcher = //g;
- let result;
- while ((result = entityMatcher.exec(dt))) {
- const [, name, value] = result;
- if (!(name in parser.ENTITIES)) {
- parser.ENTITIES[name] = value;
- }
- }
- });
+ // Otherwise, use our encoding method.
+ var buf = iconv.encode(string, encoding);
+ if (buf.length < length) length = buf.length;
+ buf.copy(this, offset, 0, length);
+ return length;
- parser.on("error", err => {
- throw DOMException.create(globalObject, [err.message, "SyntaxError"]);
- });
+ // TODO: Set _charsWritten.
+ }
- return parser;
-}
-function parseFragment(markup, contextElement) {
- const { _globalObject, _ownerDocument } = contextElement;
+ // -- Readable -------------------------------------------------------------
+ if (iconv.supportsStreams) {
+ var Readable = (__nccwpck_require__(12781).Readable);
- const fragment = DocumentFragment.createImpl(_globalObject, [], { ownerDocument: _ownerDocument });
+ original.ReadableSetEncoding = Readable.prototype.setEncoding;
+ Readable.prototype.setEncoding = function setEncoding(enc, options) {
+ // Use our own decoder, it has the same interface.
+ // We cannot use original function as it doesn't handle BOM-s.
+ this._readableState.decoder = iconv.getDecoder(enc, options);
+ this._readableState.encoding = enc;
+ }
- // Only parseFragment needs resolvePrefix per the saxes documentation:
- // https://github.com/lddubeau/saxes#parsing-xml-fragments
- const parser = createParser(fragment, _globalObject, {
- fragment: true,
- resolvePrefix(prefix) {
- // saxes wants undefined as the return value if the prefix is not defined, not null.
- return contextElement.lookupNamespaceURI(prefix) || undefined;
+ Readable.prototype.collect = iconv._collect;
+ }
}
- });
- parser.write(markup).close();
+ // Remove iconv-lite Node primitive extensions.
+ iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() {
+ if (!iconv.supportsNodeEncodingsExtension)
+ return;
+ if (!original)
+ throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called.")
- return fragment;
-}
+ delete Buffer.isNativeEncoding;
-function parseIntoDocument(markup, ownerDocument) {
- const { _globalObject } = ownerDocument;
+ var SlowBuffer = (__nccwpck_require__(14300).SlowBuffer);
- const parser = createParser(ownerDocument, _globalObject, {
- fileName: ownerDocument.location && ownerDocument.location.href
- });
+ SlowBuffer.prototype.toString = original.SlowBufferToString;
+ SlowBuffer.prototype.write = original.SlowBufferWrite;
- parser.write(markup).close();
+ Buffer.isEncoding = original.BufferIsEncoding;
+ Buffer.byteLength = original.BufferByteLength;
+ Buffer.prototype.toString = original.BufferToString;
+ Buffer.prototype.write = original.BufferWrite;
- return ownerDocument;
-}
+ if (iconv.supportsStreams) {
+ var Readable = (__nccwpck_require__(12781).Readable);
-module.exports = {
- parseFragment,
- parseIntoDocument
-};
+ Readable.prototype.setEncoding = original.ReadableSetEncoding;
+ delete Readable.prototype.collect;
+ }
+
+ original = undefined;
+ }
+}
/***/ }),
-/***/ 69420:
-/***/ ((module) => {
+/***/ 19032:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-class QueueItem {
- constructor(onLoad, onError, dependentItem) {
- this.onLoad = onLoad;
- this.onError = onError;
- this.data = null;
- this.error = null;
- this.dependentItem = dependentItem;
- }
-}
+// Some environments don't have global Buffer (e.g. React Native).
+// Solution would be installing npm modules "buffer" and "stream" explicitly.
+var Buffer = (__nccwpck_require__(15118).Buffer);
-/**
- * AsyncResourceQueue is the queue in charge of run the async scripts
- * and notify when they finish.
- */
-module.exports = class AsyncResourceQueue {
- constructor() {
- this.items = new Set();
- this.dependentItems = new Set();
- }
+var bomHandling = __nccwpck_require__(67961),
+ iconv = module.exports;
- count() {
- return this.items.size + this.dependentItems.size;
- }
+// All codecs and aliases are kept here, keyed by encoding name/alias.
+// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.
+iconv.encodings = null;
- _notify() {
- if (this._listener) {
- this._listener();
- }
- }
+// Characters emitted in case of error.
+iconv.defaultCharUnicode = '�';
+iconv.defaultCharSingleByte = '?';
- _check(item) {
- let promise;
+// Public API.
+iconv.encode = function encode(str, encoding, options) {
+ str = "" + (str || ""); // Ensure string.
- if (item.onError && item.error) {
- promise = item.onError(item.error);
- } else if (item.onLoad && item.data) {
- promise = item.onLoad(item.data);
- }
+ var encoder = iconv.getEncoder(encoding, options);
- promise
- .then(() => {
- this.items.delete(item);
- this.dependentItems.delete(item);
+ var res = encoder.write(str);
+ var trail = encoder.end();
+
+ return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;
+}
- if (this.count() === 0) {
- this._notify();
+iconv.decode = function decode(buf, encoding, options) {
+ if (typeof buf === 'string') {
+ if (!iconv.skipDecodeWarning) {
+ console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');
+ iconv.skipDecodeWarning = true;
}
- });
- }
- setListener(listener) {
- this._listener = listener;
- }
+ buf = Buffer.from("" + (buf || ""), "binary"); // Ensure buffer.
+ }
- push(request, onLoad, onError, dependentItem) {
- const q = this;
+ var decoder = iconv.getDecoder(encoding, options);
- const item = new QueueItem(onLoad, onError, dependentItem);
+ var res = decoder.write(buf);
+ var trail = decoder.end();
- q.items.add(item);
+ return trail ? (res + trail) : res;
+}
- return request
- .then(data => {
- item.data = data;
+iconv.encodingExists = function encodingExists(enc) {
+ try {
+ iconv.getCodec(enc);
+ return true;
+ } catch (e) {
+ return false;
+ }
+}
- if (dependentItem && !dependentItem.finished) {
- q.dependentItems.add(item);
- return q.items.delete(item);
- }
+// Legacy aliases to convert functions
+iconv.toEncoding = iconv.encode;
+iconv.fromEncoding = iconv.decode;
- if (onLoad) {
- return q._check(item);
- }
+// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.
+iconv._codecDataCache = {};
+iconv.getCodec = function getCodec(encoding) {
+ if (!iconv.encodings)
+ iconv.encodings = __nccwpck_require__(82733); // Lazy load all encoding definitions.
+
+ // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
+ var enc = iconv._canonicalizeEncoding(encoding);
- q.items.delete(item);
+ // Traverse iconv.encodings to find actual codec.
+ var codecOptions = {};
+ while (true) {
+ var codec = iconv._codecDataCache[enc];
+ if (codec)
+ return codec;
- if (q.count() === 0) {
- q._notify();
- }
+ var codecDef = iconv.encodings[enc];
- return null;
- })
- .catch(err => {
- item.error = err;
+ switch (typeof codecDef) {
+ case "string": // Direct alias to other encoding.
+ enc = codecDef;
+ break;
- if (dependentItem && !dependentItem.finished) {
- q.dependentItems.add(item);
- return q.items.delete(item);
- }
+ case "object": // Alias with options. Can be layered.
+ for (var key in codecDef)
+ codecOptions[key] = codecDef[key];
- if (onError) {
- return q._check(item);
- }
+ if (!codecOptions.encodingName)
+ codecOptions.encodingName = enc;
+
+ enc = codecDef.type;
+ break;
- q.items.delete(item);
+ case "function": // Codec itself.
+ if (!codecOptions.encodingName)
+ codecOptions.encodingName = enc;
- if (q.count() === 0) {
- q._notify();
- }
+ // The codec function must load all tables and return object with .encoder and .decoder methods.
+ // It'll be called only once (for each different options object).
+ codec = new codecDef(codecOptions, iconv);
- return null;
- });
- }
+ iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.
+ return codec;
- notifyItem(syncItem) {
- for (const item of this.dependentItems) {
- if (item.dependentItem === syncItem) {
- this._check(item);
- }
+ default:
+ throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')");
+ }
}
- }
-};
+}
+iconv._canonicalizeEncoding = function(encoding) {
+ // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
+ return (''+encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
+}
-/***/ }),
+iconv.getEncoder = function getEncoder(encoding, options) {
+ var codec = iconv.getCodec(encoding),
+ encoder = new codec.encoder(options, codec);
-/***/ 5383:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ if (codec.bomAware && options && options.addBOM)
+ encoder = new bomHandling.PrependBOM(encoder, options);
-"use strict";
+ return encoder;
+}
-const ResourceLoader = __nccwpck_require__(90007);
+iconv.getDecoder = function getDecoder(encoding, options) {
+ var codec = iconv.getCodec(encoding),
+ decoder = new codec.decoder(options, codec);
-module.exports = class NoOpResourceLoader extends ResourceLoader {
- fetch() {
- return null;
- }
-};
+ if (codec.bomAware && !(options && options.stripBOM === false))
+ decoder = new bomHandling.StripBOM(decoder, options);
+
+ return decoder;
+}
+
+
+// Load extensions in Node. All of them are omitted in Browserify build via 'browser' field in package.json.
+var nodeVer = typeof process !== 'undefined' && process.versions && process.versions.node;
+if (nodeVer) {
+
+ // Load streaming support in Node v0.10+
+ var nodeVerArr = nodeVer.split(".").map(Number);
+ if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) {
+ __nccwpck_require__(76409)(iconv);
+ }
+
+ // Load Node primitive extensions.
+ __nccwpck_require__(30393)(iconv);
+}
+
+if (false) {}
/***/ }),
-/***/ 42801:
+/***/ 76409:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const idlUtils = __nccwpck_require__(34908);
-const { fireAnEvent } = __nccwpck_require__(45673);
-module.exports = class PerDocumentResourceLoader {
- constructor(document) {
- this._document = document;
- this._defaultEncoding = document._encoding;
- this._resourceLoader = document._defaultView ? document._defaultView._resourceLoader : null;
- this._requestManager = document._requestManager;
- this._queue = document._queue;
- this._deferQueue = document._deferQueue;
- this._asyncQueue = document._asyncQueue;
- }
+var Buffer = (__nccwpck_require__(14300).Buffer),
+ Transform = (__nccwpck_require__(12781).Transform);
- fetch(url, { element, onLoad, onError }) {
- const request = this._resourceLoader.fetch(url, {
- cookieJar: this._document._cookieJar,
- element: idlUtils.wrapperForImpl(element),
- referrer: this._document.URL
- });
- if (request === null) {
- return null;
+// == Exports ==================================================================
+module.exports = function(iconv) {
+
+ // Additional Public API.
+ iconv.encodeStream = function encodeStream(encoding, options) {
+ return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
}
- this._requestManager.add(request);
+ iconv.decodeStream = function decodeStream(encoding, options) {
+ return new IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);
+ }
- const onErrorWrapped = error => {
- this._requestManager.remove(request);
+ iconv.supportsStreams = true;
- if (onError) {
- onError(error);
- }
- fireAnEvent("error", element);
-
- const err = new Error(`Could not load ${element.localName}: "${url}"`);
- err.type = "resource loading";
- err.detail = error;
-
- this._document._defaultView._virtualConsole.emit("jsdomError", err);
+ // Not published yet.
+ iconv.IconvLiteEncoderStream = IconvLiteEncoderStream;
+ iconv.IconvLiteDecoderStream = IconvLiteDecoderStream;
+ iconv._collect = IconvLiteDecoderStream.prototype.collect;
+};
- return Promise.resolve();
- };
- const onLoadWrapped = data => {
- this._requestManager.remove(request);
+// == Encoder stream =======================================================
+function IconvLiteEncoderStream(conv, options) {
+ this.conv = conv;
+ options = options || {};
+ options.decodeStrings = false; // We accept only strings, so we don't need to decode them.
+ Transform.call(this, options);
+}
- this._addCookies(url, request.response ? request.response.headers : {});
+IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
+ constructor: { value: IconvLiteEncoderStream }
+});
- try {
- const result = onLoad ? onLoad(data) : undefined;
+IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
+ if (typeof chunk != 'string')
+ return done(new Error("Iconv encoding stream needs strings as its input."));
+ try {
+ var res = this.conv.write(chunk);
+ if (res && res.length) this.push(res);
+ done();
+ }
+ catch (e) {
+ done(e);
+ }
+}
- return Promise.resolve(result)
- .then(() => {
- fireAnEvent("load", element);
+IconvLiteEncoderStream.prototype._flush = function(done) {
+ try {
+ var res = this.conv.end();
+ if (res && res.length) this.push(res);
+ done();
+ }
+ catch (e) {
+ done(e);
+ }
+}
- return Promise.resolve();
- })
- .catch(err => {
- return onErrorWrapped(err);
- });
- } catch (err) {
- return onErrorWrapped(err);
- }
- };
+IconvLiteEncoderStream.prototype.collect = function(cb) {
+ var chunks = [];
+ this.on('error', cb);
+ this.on('data', function(chunk) { chunks.push(chunk); });
+ this.on('end', function() {
+ cb(null, Buffer.concat(chunks));
+ });
+ return this;
+}
- if (element.localName === "script" && element.hasAttributeNS(null, "async")) {
- this._asyncQueue.push(request, onLoadWrapped, onErrorWrapped, this._queue.getLastScript());
- } else if (element.localName === "script" && element.hasAttributeNS(null, "defer")) {
- this._deferQueue.push(request, onLoadWrapped, onErrorWrapped, false, element);
- } else {
- this._queue.push(request, onLoadWrapped, onErrorWrapped, false, element);
- }
- return request;
- }
+// == Decoder stream =======================================================
+function IconvLiteDecoderStream(conv, options) {
+ this.conv = conv;
+ options = options || {};
+ options.encoding = this.encoding = 'utf8'; // We output strings.
+ Transform.call(this, options);
+}
- _addCookies(url, headers) {
- let cookies = headers["set-cookie"];
+IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
+ constructor: { value: IconvLiteDecoderStream }
+});
- if (!cookies) {
- return;
+IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
+ if (!Buffer.isBuffer(chunk))
+ return done(new Error("Iconv decoding stream needs buffers as its input."));
+ try {
+ var res = this.conv.write(chunk);
+ if (res && res.length) this.push(res, this.encoding);
+ done();
+ }
+ catch (e) {
+ done(e);
}
+}
- if (!Array.isArray(cookies)) {
- cookies = [cookies];
+IconvLiteDecoderStream.prototype._flush = function(done) {
+ try {
+ var res = this.conv.end();
+ if (res && res.length) this.push(res, this.encoding);
+ done();
}
+ catch (e) {
+ done(e);
+ }
+}
- cookies.forEach(cookie => {
- this._document._cookieJar.setCookieSync(cookie, url, { http: true, ignoreError: true });
+IconvLiteDecoderStream.prototype.collect = function(cb) {
+ var res = '';
+ this.on('error', cb);
+ this.on('data', function(chunk) { res += chunk; });
+ this.on('end', function() {
+ cb(null, res);
});
- }
-};
+ return this;
+}
+
/***/ }),
-/***/ 87657:
+/***/ 42469:
/***/ ((module) => {
-"use strict";
+// Generated using `npm run build`. Do not edit.
+var regex = /^[a-z](?:[\.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-(?:[\x2D\.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
-/**
- * Manage all the request and it is able to abort
- * all pending request.
- */
-module.exports = class RequestManager {
- constructor() {
- this.openedRequests = [];
- }
+var isPotentialCustomElementName = function(string) {
+ return regex.test(string);
+};
- add(req) {
- this.openedRequests.push(req);
- }
+module.exports = isPotentialCustomElementName;
- remove(req) {
- const idx = this.openedRequests.indexOf(req);
- if (idx !== -1) {
- this.openedRequests.splice(idx, 1);
- }
- }
- close() {
- for (const openedRequest of this.openedRequests) {
- openedRequest.abort();
- }
- this.openedRequests = [];
- }
+/***/ }),
- size() {
- return this.openedRequests.length;
- }
-};
+/***/ 10657:
+/***/ ((module) => {
+
+module.exports = isTypedArray
+isTypedArray.strict = isStrictTypedArray
+isTypedArray.loose = isLooseTypedArray
+
+var toString = Object.prototype.toString
+var names = {
+ '[object Int8Array]': true
+ , '[object Int16Array]': true
+ , '[object Int32Array]': true
+ , '[object Uint8Array]': true
+ , '[object Uint8ClampedArray]': true
+ , '[object Uint16Array]': true
+ , '[object Uint32Array]': true
+ , '[object Float32Array]': true
+ , '[object Float64Array]': true
+}
+
+function isTypedArray(arr) {
+ return (
+ isStrictTypedArray(arr)
+ || isLooseTypedArray(arr)
+ )
+}
+
+function isStrictTypedArray(arr) {
+ return (
+ arr instanceof Int8Array
+ || arr instanceof Int16Array
+ || arr instanceof Int32Array
+ || arr instanceof Uint8Array
+ || arr instanceof Uint8ClampedArray
+ || arr instanceof Uint16Array
+ || arr instanceof Uint32Array
+ || arr instanceof Float32Array
+ || arr instanceof Float64Array
+ )
+}
+
+function isLooseTypedArray(arr) {
+ return names[toString.call(arr)]
+}
/***/ }),
-/***/ 90007:
+/***/ 83362:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-"use strict";
+var stream = __nccwpck_require__(12781)
-const fs = __nccwpck_require__(35747);
-const { fileURLToPath } = __nccwpck_require__(78835);
-const { parseURL } = __nccwpck_require__(66365);
-const dataURLFromRecord = __nccwpck_require__(18326).fromURLRecord;
-const request = __nccwpck_require__(56483);
-const wrapCookieJarForRequest = __nccwpck_require__(14906);
-const packageVersion = __nccwpck_require__(71241)/* .version */ .i8;
-const IS_BROWSER = Object.prototype.toString.call(process) !== "[object process]";
-module.exports = class ResourceLoader {
- constructor({
- strictSSL = true,
- proxy = undefined,
- userAgent = `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 ` +
- `(KHTML, like Gecko) jsdom/${packageVersion}`
- } = {}) {
- this._strictSSL = strictSSL;
- this._proxy = proxy;
- this._userAgent = userAgent;
- }
+function isStream (obj) {
+ return obj instanceof stream.Stream
+}
- _readDataURL(urlRecord) {
- const dataURL = dataURLFromRecord(urlRecord);
- let timeoutId;
- const promise = new Promise(resolve => {
- timeoutId = setTimeout(resolve, 0, dataURL.body);
- });
- promise.abort = () => {
- if (timeoutId !== undefined) {
- clearTimeout(timeoutId);
- }
- };
- return promise;
- }
- _readFile(filePath) {
- let readableStream, abort; // Native Promises doesn't have an "abort" method.
+function isReadable (obj) {
+ return isStream(obj) && typeof obj._read == 'function' && typeof obj._readableState == 'object'
+}
- // Creating a promise for two reason:
- // 1. fetch always return a promise.
- // 2. We need to add an abort handler.
- const promise = new Promise((resolve, reject) => {
- readableStream = fs.createReadStream(filePath);
- let data = Buffer.alloc(0);
- abort = reject;
+function isWritable (obj) {
+ return isStream(obj) && typeof obj._write == 'function' && typeof obj._writableState == 'object'
+}
- readableStream.on("error", reject);
- readableStream.on("data", chunk => {
- data = Buffer.concat([data, chunk]);
- });
+function isDuplex (obj) {
+ return isReadable(obj) && isWritable(obj)
+}
- readableStream.on("end", () => {
- resolve(data);
- });
- });
- promise.abort = () => {
- readableStream.destroy();
- const error = new Error("request canceled by user");
- error.isAbortError = true;
- abort(error);
- };
+module.exports = isStream
+module.exports.isReadable = isReadable
+module.exports.isWritable = isWritable
+module.exports.isDuplex = isDuplex
- return promise;
- }
- _getRequestOptions({ cookieJar, referrer, accept = "*/*" }) {
- const requestOptions = {
- encoding: null,
- gzip: true,
- jar: wrapCookieJarForRequest(cookieJar),
- strictSSL: this._strictSSL,
- proxy: this._proxy,
- forever: true,
- headers: {
- "User-Agent": this._userAgent,
- "Accept-Language": "en",
- "Accept": accept
- }
- };
+/***/ }),
- if (referrer && !IS_BROWSER) {
- requestOptions.headers.referer = referrer;
- }
+/***/ 85587:
+/***/ (function(module, exports) {
- return requestOptions;
- }
+(function(){
- fetch(urlString, options = {}) {
- const url = parseURL(urlString);
+ // Copyright (c) 2005 Tom Wu
+ // All Rights Reserved.
+ // See "LICENSE" for details.
- if (!url) {
- return Promise.reject(new Error(`Tried to fetch invalid URL ${urlString}`));
+ // Basic JavaScript BN library - subset useful for RSA encryption.
+
+ // Bits per digit
+ var dbits;
+
+ // JavaScript engine analysis
+ var canary = 0xdeadbeefcafe;
+ var j_lm = ((canary&0xffffff)==0xefcafe);
+
+ // (public) Constructor
+ function BigInteger(a,b,c) {
+ if(a != null)
+ if("number" == typeof a) this.fromNumber(a,b,c);
+ else if(b == null && "string" != typeof a) this.fromString(a,256);
+ else this.fromString(a,b);
}
- switch (url.scheme) {
- case "data": {
- return this._readDataURL(url);
- }
+ // return new, unset BigInteger
+ function nbi() { return new BigInteger(null); }
- case "http":
- case "https": {
- const requestOptions = this._getRequestOptions(options);
- return request(urlString, requestOptions);
- }
+ // am: Compute w_j += (x*this_i), propagate carries,
+ // c is initial carry, returns final carry.
+ // c < 3*dvalue, x < 2*dvalue, this_i < dvalue
+ // We need to select the fastest one that works in this environment.
- case "file": {
- try {
- return this._readFile(fileURLToPath(urlString));
- } catch (e) {
- return Promise.reject(e);
- }
+ // am1: use a single mult and divide to get the high bits,
+ // max digit bits should be 26 because
+ // max internal value = 2*dvalue^2-2*dvalue (< 2^53)
+ function am1(i,x,w,j,c,n) {
+ while(--n >= 0) {
+ var v = x*this[i++]+w[j]+c;
+ c = Math.floor(v/0x4000000);
+ w[j++] = v&0x3ffffff;
}
-
- default: {
- return Promise.reject(new Error(`Tried to fetch URL ${urlString} with invalid scheme ${url.scheme}`));
+ return c;
+ }
+ // am2 avoids a big mult-and-extract completely.
+ // Max digit bits should be <= 30 because we do bitwise ops
+ // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)
+ function am2(i,x,w,j,c,n) {
+ var xl = x&0x7fff, xh = x>>15;
+ while(--n >= 0) {
+ var l = this[i]&0x7fff;
+ var h = this[i++]>>15;
+ var m = xh*l+h*xl;
+ l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff);
+ c = (l>>>30)+(m>>>15)+xh*h+(c>>>30);
+ w[j++] = l&0x3fffffff;
}
+ return c;
+ }
+ // Alternately, set max digit bits to 28 since some
+ // browsers slow down when dealing with 32-bit numbers.
+ function am3(i,x,w,j,c,n) {
+ var xl = x&0x3fff, xh = x>>14;
+ while(--n >= 0) {
+ var l = this[i]&0x3fff;
+ var h = this[i++]>>14;
+ var m = xh*l+h*xl;
+ l = xl*l+((m&0x3fff)<<14)+w[j]+c;
+ c = (l>>28)+(m>>14)+xh*h;
+ w[j++] = l&0xfffffff;
+ }
+ return c;
+ }
+ var inBrowser = typeof navigator !== "undefined";
+ if(inBrowser && j_lm && (navigator.appName == "Microsoft Internet Explorer")) {
+ BigInteger.prototype.am = am2;
+ dbits = 30;
+ }
+ else if(inBrowser && j_lm && (navigator.appName != "Netscape")) {
+ BigInteger.prototype.am = am1;
+ dbits = 26;
+ }
+ else { // Mozilla/Netscape seems to prefer am3
+ BigInteger.prototype.am = am3;
+ dbits = 28;
}
- }
-};
+ BigInteger.prototype.DB = dbits;
+ BigInteger.prototype.DM = ((1< {
+ // Digit conversions
+ var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
+ var BI_RC = new Array();
+ var rr,vv;
+ rr = "0".charCodeAt(0);
+ for(vv = 0; vv <= 9; ++vv) BI_RC[rr++] = vv;
+ rr = "a".charCodeAt(0);
+ for(vv = 10; vv < 36; ++vv) BI_RC[rr++] = vv;
+ rr = "A".charCodeAt(0);
+ for(vv = 10; vv < 36; ++vv) BI_RC[rr++] = vv;
-"use strict";
+ function int2char(n) { return BI_RM.charAt(n); }
+ function intAt(s,i) {
+ var c = BI_RC[s.charCodeAt(i)];
+ return (c==null)?-1:c;
+ }
+ // (protected) copy this to r
+ function bnpCopyTo(r) {
+ for(var i = this.t-1; i >= 0; --i) r[i] = this[i];
+ r.t = this.t;
+ r.s = this.s;
+ }
-/**
- * Queue for all the resources to be download except async scripts.
- * Async scripts have their own queue AsyncResourceQueue.
- */
-module.exports = class ResourceQueue {
- constructor({ paused, asyncQueue } = {}) {
- this.paused = Boolean(paused);
- this._asyncQueue = asyncQueue;
- }
+ // (protected) set from integer value x, -DV <= x < DV
+ function bnpFromInt(x) {
+ this.t = 1;
+ this.s = (x<0)?-1:0;
+ if(x > 0) this[0] = x;
+ else if(x < -1) this[0] = x+this.DV;
+ else this.t = 0;
+ }
- getLastScript() {
- let head = this.tail;
+ // return bigint initialized to value
+ function nbv(i) { var r = nbi(); r.fromInt(i); return r; }
- while (head) {
- if (head.isScript) {
- return head;
+ // (protected) set from string and radix
+ function bnpFromString(s,b) {
+ var k;
+ if(b == 16) k = 4;
+ else if(b == 8) k = 3;
+ else if(b == 256) k = 8; // byte array
+ else if(b == 2) k = 1;
+ else if(b == 32) k = 5;
+ else if(b == 4) k = 2;
+ else { this.fromRadix(s,b); return; }
+ this.t = 0;
+ this.s = 0;
+ var i = s.length, mi = false, sh = 0;
+ while(--i >= 0) {
+ var x = (k==8)?s[i]&0xff:intAt(s,i);
+ if(x < 0) {
+ if(s.charAt(i) == "-") mi = true;
+ continue;
+ }
+ mi = false;
+ if(sh == 0)
+ this[this.t++] = x;
+ else if(sh+k > this.DB) {
+ this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh));
+ }
+ else
+ this[this.t-1] |= x<= this.DB) sh -= this.DB;
}
- head = head.prev;
+ if(k == 8 && (s[0]&0x80) != 0) {
+ this.s = -1;
+ if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this[this.t-1] == c) --this.t;
+ }
- let head = this.tail;
- while (head && !found) {
- found = head.isScript;
- head = head.prev;
+ // (public) return string representation in given radix
+ function bnToString(b) {
+ if(this.s < 0) return "-"+this.negate().toString(b);
+ var k;
+ if(b == 16) k = 4;
+ else if(b == 8) k = 3;
+ else if(b == 2) k = 1;
+ else if(b == 32) k = 5;
+ else if(b == 4) k = 2;
+ else return this.toRadix(b);
+ var km = (1< 0) {
+ if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); }
+ while(i >= 0) {
+ if(p < k) {
+ d = (this[i]&((1<>(p+=this.DB-k);
+ }
+ else {
+ d = (this[i]>>(p-=k))&km;
+ if(p <= 0) { p += this.DB; --i; }
+ }
+ if(d > 0) m = true;
+ if(m) r += int2char(d);
+ }
+ }
+ return m?r:"0";
}
- return found;
- }
+ // (public) -this
+ function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }
- _notify() {
- if (this._listener) {
- this._listener();
+ // (public) |this|
+ function bnAbs() { return (this.s<0)?this.negate():this; }
+
+ // (public) return + if this > a, - if this < a, 0 if equal
+ function bnCompareTo(a) {
+ var r = this.s-a.s;
+ if(r != 0) return r;
+ var i = this.t;
+ r = i-a.t;
+ if(r != 0) return (this.s<0)?-r:r;
+ while(--i >= 0) if((r=this[i]-a[i]) != 0) return r;
+ return 0;
}
- }
- setListener(listener) {
- this._listener = listener;
- }
+ // returns bit length of the integer x
+ function nbits(x) {
+ var r = 1, t;
+ if((t=x>>>16) != 0) { x = t; r += 16; }
+ if((t=x>>8) != 0) { x = t; r += 8; }
+ if((t=x>>4) != 0) { x = t; r += 4; }
+ if((t=x>>2) != 0) { x = t; r += 2; }
+ if((t=x>>1) != 0) { x = t; r += 1; }
+ return r;
+ }
- push(request, onLoad, onError, keepLast, element) {
- const isScript = element ? element.localName === "script" : false;
+ // (public) return the number of bits in "this"
+ function bnBitLength() {
+ if(this.t <= 0) return 0;
+ return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM));
+ }
- if (!request) {
- if (isScript && !this._moreScripts()) {
- return onLoad();
- }
+ // (protected) r = this << n*DB
+ function bnpDLShiftTo(n,r) {
+ var i;
+ for(i = this.t-1; i >= 0; --i) r[i+n] = this[i];
+ for(i = n-1; i >= 0; --i) r[i] = 0;
+ r.t = this.t+n;
+ r.s = this.s;
+ }
- request = Promise.resolve();
+ // (protected) r = this >> n*DB
+ function bnpDRShiftTo(n,r) {
+ for(var i = n; i < this.t; ++i) r[i-n] = this[i];
+ r.t = Math.max(this.t-n,0);
+ r.s = this.s;
}
- const q = this;
- const item = {
- isScript,
- err: null,
- element,
- fired: false,
- data: null,
- keepLast,
- prev: q.tail,
- check() {
- if (!q.paused && !this.prev && this.fired) {
- let promise;
- if (this.err && onError) {
- promise = onError(this.err);
- }
+ // (protected) r = this << n
+ function bnpLShiftTo(n,r) {
+ var bs = n%this.DB;
+ var cbs = this.DB-bs;
+ var bm = (1<= 0; --i) {
+ r[i+ds+1] = (this[i]>>cbs)|c;
+ c = (this[i]&bm)<= 0; --i) r[i] = 0;
+ r[ds] = c;
+ r.t = this.t+ds+1;
+ r.s = this.s;
+ r.clamp();
+ }
- if (!this.err && onLoad) {
- promise = onLoad(this.data);
- }
+ // (protected) r = this >> n
+ function bnpRShiftTo(n,r) {
+ r.s = this.s;
+ var ds = Math.floor(n/this.DB);
+ if(ds >= this.t) { r.t = 0; return; }
+ var bs = n%this.DB;
+ var cbs = this.DB-bs;
+ var bm = (1<>bs;
+ for(var i = ds+1; i < this.t; ++i) {
+ r[i-ds-1] |= (this[i]&bm)<>bs;
+ }
+ if(bs > 0) r[this.t-ds-1] |= (this.s&bm)< {
- if (this.next) {
- this.next.prev = null;
- this.next.check();
- } else { // q.tail===this
- q.tail = null;
- q._notify();
- }
+ // (protected) r = this - a
+ function bnpSubTo(a,r) {
+ var i = 0, c = 0, m = Math.min(a.t,this.t);
+ while(i < m) {
+ c += this[i]-a[i];
+ r[i++] = c&this.DM;
+ c >>= this.DB;
+ }
+ if(a.t < this.t) {
+ c -= a.s;
+ while(i < this.t) {
+ c += this[i];
+ r[i++] = c&this.DM;
+ c >>= this.DB;
+ }
+ c += this.s;
+ }
+ else {
+ c += this.s;
+ while(i < a.t) {
+ c -= a[i];
+ r[i++] = c&this.DM;
+ c >>= this.DB;
+ }
+ c -= a.s;
+ }
+ r.s = (c<0)?-1:0;
+ if(c < -1) r[i++] = this.DV+c;
+ else if(c > 0) r[i++] = c;
+ r.t = i;
+ r.clamp();
+ }
- this.finished = true;
+ // (protected) r = this * a, r != this,a (HAC 14.12)
+ // "this" should be the larger one if appropriate.
+ function bnpMultiplyTo(a,r) {
+ var x = this.abs(), y = a.abs();
+ var i = x.t;
+ r.t = i+y.t;
+ while(--i >= 0) r[i] = 0;
+ for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t);
+ r.s = 0;
+ r.clamp();
+ if(this.s != a.s) BigInteger.ZERO.subTo(r,r);
+ }
- if (q._asyncQueue) {
- q._asyncQueue.notifyItem(this);
- }
- });
+ // (protected) r = this^2, r != this (HAC 14.16)
+ function bnpSquareTo(r) {
+ var x = this.abs();
+ var i = r.t = 2*x.t;
+ while(--i >= 0) r[i] = 0;
+ for(i = 0; i < x.t-1; ++i) {
+ var c = x.am(i,x[i],r,2*i,0,1);
+ if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) {
+ r[i+x.t] -= x.DV;
+ r[i+x.t+1] = 1;
}
}
- };
- if (q.tail) {
- if (q.tail.keepLast) {
- // if the tail is the load event in document and we receive a new element to load
- // we should add this new request before the load event.
- if (q.tail.prev) {
- q.tail.prev.next = item;
+ if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1);
+ r.s = 0;
+ r.clamp();
+ }
+
+ // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)
+ // r != q, this != m. q or r may be null.
+ function bnpDivRemTo(m,q,r) {
+ var pm = m.abs();
+ if(pm.t <= 0) return;
+ var pt = this.abs();
+ if(pt.t < pm.t) {
+ if(q != null) q.fromInt(0);
+ if(r != null) this.copyTo(r);
+ return;
+ }
+ if(r == null) r = nbi();
+ var y = nbi(), ts = this.s, ms = m.s;
+ var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus
+ if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); }
+ else { pm.copyTo(y); pt.copyTo(r); }
+ var ys = y.t;
+ var y0 = y[ys-1];
+ if(y0 == 0) return;
+ var yt = y0*(1<1)?y[ys-2]>>this.F2:0);
+ var d1 = this.FV/yt, d2 = (1<= 0) {
+ r[r.t++] = 1;
+ r.subTo(t,r);
+ }
+ BigInteger.ONE.dlShiftTo(ys,t);
+ t.subTo(y,y); // "negative" y so we can replace sub with am later
+ while(y.t < ys) y[y.t++] = 0;
+ while(--j >= 0) {
+ // Estimate quotient digit
+ var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);
+ if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out
+ y.dlShiftTo(j,t);
+ r.subTo(t,r);
+ while(r[i] < --qd) r.subTo(t,r);
}
- item.prev = q.tail.prev;
- q.tail.prev = item;
- item.next = q.tail;
- } else {
- q.tail.next = item;
- q.tail = item;
}
- } else {
- q.tail = item;
+ if(q != null) {
+ r.drShiftTo(ys,q);
+ if(ts != ms) BigInteger.ZERO.subTo(q,q);
+ }
+ r.t = ys;
+ r.clamp();
+ if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder
+ if(ts < 0) BigInteger.ZERO.subTo(r,r);
}
- return request
- .then(data => {
- item.fired = 1;
- item.data = data;
- item.check();
- })
- .catch(err => {
- item.fired = true;
- item.err = err;
- item.check();
- });
- }
- resume() {
- if (!this.paused) {
- return;
+ // (public) this mod a
+ function bnMod(a) {
+ var r = nbi();
+ this.abs().divRemTo(a,null,r);
+ if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
+ return r;
}
- this.paused = false;
- let head = this.tail;
- while (head && head.prev) {
- head = head.prev;
+ // Modular reduction using "classic" algorithm
+ function Classic(m) { this.m = m; }
+ function cConvert(x) {
+ if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);
+ else return x;
}
- if (head) {
- head.check();
+ function cRevert(x) { return x; }
+ function cReduce(x) { x.divRemTo(this.m,null,x); }
+ function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
+ function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
+
+ Classic.prototype.convert = cConvert;
+ Classic.prototype.revert = cRevert;
+ Classic.prototype.reduce = cReduce;
+ Classic.prototype.mulTo = cMulTo;
+ Classic.prototype.sqrTo = cSqrTo;
+
+ // (protected) return "-1/this % 2^DB"; useful for Mont. reduction
+ // justification:
+ // xy == 1 (mod m)
+ // xy = 1+km
+ // xy(2-xy) = (1+km)(1-km)
+ // x[y(2-xy)] = 1-k^2m^2
+ // x[y(2-xy)] == 1 (mod m^2)
+ // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2
+ // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.
+ // JS multiply "overflows" differently from C/C++, so care is needed here.
+ function bnpInvDigit() {
+ if(this.t < 1) return 0;
+ var x = this[0];
+ if((x&1) == 0) return 0;
+ var y = x&3; // y == 1/x mod 2^2
+ y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4
+ y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8
+ y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16
+ // last step - calculate inverse mod DV directly;
+ // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints
+ y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits
+ // we really want the negative inverse, and -DV < y < DV
+ return (y>0)?this.DV-y:-y;
}
- }
-};
+ // Montgomery reduction
+ function Montgomery(m) {
+ this.m = m;
+ this.mp = m.invDigit();
+ this.mpl = this.mp&0x7fff;
+ this.mph = this.mp>>15;
+ this.um = (1<<(m.DB-15))-1;
+ this.mt2 = 2*m.t;
+ }
-/***/ }),
+ // xR mod m
+ function montConvert(x) {
+ var r = nbi();
+ x.abs().dlShiftTo(this.m.t,r);
+ r.divRemTo(this.m,null,r);
+ if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
+ return r;
+ }
-/***/ 37300:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ // x/R mod m
+ function montRevert(x) {
+ var r = nbi();
+ x.copyTo(r);
+ this.reduce(r);
+ return r;
+ }
-"use strict";
+ // x = x/R mod m (HAC 14.32)
+ function montReduce(x) {
+ while(x.t <= this.mt2) // pad x so am has enough room later
+ x[x.t++] = 0;
+ for(var i = 0; i < this.m.t; ++i) {
+ // faster way of calculating u0 = x[i]*mp mod DV
+ var j = x[i]&0x7fff;
+ var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM;
+ // use am to combine the multiply-shift-add into one call
+ j = i+this.m.t;
+ x[j] += this.m.am(0,u0,x,i,0,this.m.t);
+ // propagate carry
+ while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; }
+ }
+ x.clamp();
+ x.drShiftTo(this.m.t,x);
+ if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
+ }
-const cssom = __nccwpck_require__(1295);
-const cssstyle = __nccwpck_require__(15674);
+ // r = "x^2/R mod m"; x != r
+ function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
-exports.addToCore = core => {
- // What works now:
- // - Accessing the rules defined in individual stylesheets
- // - Modifications to style content attribute are reflected in style property
- // - Modifications to style property are reflected in style content attribute
- // TODO
- // - Modifications to style element's textContent are reflected in sheet property.
- // - Modifications to style element's sheet property are reflected in textContent.
- // - Modifications to link.href property are reflected in sheet property.
- // - Less-used features of link: disabled
- // - Less-used features of style: disabled, scoped, title
- // - CSSOM-View
- // - getComputedStyle(): requires default stylesheet, cascading, inheritance,
- // filtering by @media (screen? print?), layout for widths/heights
- // - Load events are not in the specs, but apparently some browsers
- // implement something. Should onload only fire after all @imports have been
- // loaded, or only the primary sheet?
+ // r = "xy/R mod m"; x,y != r
+ function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
- core.StyleSheet = cssom.StyleSheet;
- core.MediaList = cssom.MediaList;
- core.CSSStyleSheet = cssom.CSSStyleSheet;
- core.CSSRule = cssom.CSSRule;
- core.CSSStyleRule = cssom.CSSStyleRule;
- core.CSSMediaRule = cssom.CSSMediaRule;
- core.CSSImportRule = cssom.CSSImportRule;
- core.CSSStyleDeclaration = cssstyle.CSSStyleDeclaration;
+ Montgomery.prototype.convert = montConvert;
+ Montgomery.prototype.revert = montRevert;
+ Montgomery.prototype.reduce = montReduce;
+ Montgomery.prototype.mulTo = montMulTo;
+ Montgomery.prototype.sqrTo = montSqrTo;
- // Relavant specs
- // http://www.w3.org/TR/DOM-Level-2-Style (2000)
- // http://www.w3.org/TR/cssom-view/ (2008)
- // http://dev.w3.org/csswg/cssom/ (2010) Meant to replace DOM Level 2 Style
- // http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5, of course
- // http://dev.w3.org/csswg/css-style-attr/ not sure what's new here
+ // (protected) true iff this is even
+ function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; }
- // Objects that aren't in cssom library but should be:
- // CSSRuleList (cssom just uses array)
- // CSSFontFaceRule
- // CSSPageRule
+ // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79)
+ function bnpExp(e,z) {
+ if(e > 0xffffffff || e < 1) return BigInteger.ONE;
+ var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1;
+ g.copyTo(r);
+ while(--i >= 0) {
+ z.sqrTo(r,r2);
+ if((e&(1< 0) z.mulTo(r2,g,r);
+ else { var t = r; r = r2; r2 = t; }
+ }
+ return z.revert(r);
+ }
- // These rules don't really make sense to implement, so CSSOM draft makes them
- // obsolete.
- // CSSCharsetRule
- // CSSUnknownRule
+ // (public) this^e % m, 0 <= e < 2^32
+ function bnModPowInt(e,m) {
+ var z;
+ if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);
+ return this.exp(e,z);
+ }
- // These objects are considered obsolete by CSSOM draft, although modern
- // browsers implement them.
- // CSSValue
- // CSSPrimitiveValue
- // CSSValueList
- // RGBColor
- // Rect
- // Counter
-};
+ // protected
+ BigInteger.prototype.copyTo = bnpCopyTo;
+ BigInteger.prototype.fromInt = bnpFromInt;
+ BigInteger.prototype.fromString = bnpFromString;
+ BigInteger.prototype.clamp = bnpClamp;
+ BigInteger.prototype.dlShiftTo = bnpDLShiftTo;
+ BigInteger.prototype.drShiftTo = bnpDRShiftTo;
+ BigInteger.prototype.lShiftTo = bnpLShiftTo;
+ BigInteger.prototype.rShiftTo = bnpRShiftTo;
+ BigInteger.prototype.subTo = bnpSubTo;
+ BigInteger.prototype.multiplyTo = bnpMultiplyTo;
+ BigInteger.prototype.squareTo = bnpSquareTo;
+ BigInteger.prototype.divRemTo = bnpDivRemTo;
+ BigInteger.prototype.invDigit = bnpInvDigit;
+ BigInteger.prototype.isEven = bnpIsEven;
+ BigInteger.prototype.exp = bnpExp;
+ // public
+ BigInteger.prototype.toString = bnToString;
+ BigInteger.prototype.negate = bnNegate;
+ BigInteger.prototype.abs = bnAbs;
+ BigInteger.prototype.compareTo = bnCompareTo;
+ BigInteger.prototype.bitLength = bnBitLength;
+ BigInteger.prototype.mod = bnMod;
+ BigInteger.prototype.modPowInt = bnModPowInt;
-/***/ }),
+ // "constants"
+ BigInteger.ZERO = nbv(0);
+ BigInteger.ONE = nbv(1);
-/***/ 82225:
-/***/ ((module) => {
+ // Copyright (c) 2005-2009 Tom Wu
+ // All Rights Reserved.
+ // See "LICENSE" for details.
-/** Here is yet another implementation of XPath 1.0 in Javascript.
- *
- * My goal was to make it relatively compact, but as I fixed all the axis bugs
- * the axes became more and more complicated. :-(.
- *
- * I have not implemented namespaces or case-sensitive axes for XML yet.
- *
- * How to test it in Chrome: You can make a Chrome extension that replaces
- * the WebKit XPath parser with this one. But it takes a bit of effort to
- * get around isolated world and same-origin restrictions:
- * manifest.json:
- {
- "name": "XPathTest",
- "version": "0.1",
- "content_scripts": [{
- "matches": ["http://localhost/*"], // or wildcard host
- "js": ["xpath.js", "injection.js"],
- "all_frames": true, "run_at": "document_start"
- }]
+ // Extended JavaScript BN functions, required for RSA private ops.
+
+ // Version 1.1: new BigInteger("0", 10) returns "proper" zero
+ // Version 1.2: square() API, isProbablePrime fix
+
+ // (public)
+ function bnClone() { var r = nbi(); this.copyTo(r); return r; }
+
+ // (public) return value as integer
+ function bnIntValue() {
+ if(this.s < 0) {
+ if(this.t == 1) return this[0]-this.DV;
+ else if(this.t == 0) return -1;
+ }
+ else if(this.t == 1) return this[0];
+ else if(this.t == 0) return 0;
+ // assumes 16 < DB < 32
+ return ((this[1]&((1<<(32-this.DB))-1))< {
- var xpath = {};
- // Helper function to deal with the migration of Attr to no longer have a nodeName property despite this codebase
- // assuming it does.
- function getNodeName(nodeOrAttr) {
- return nodeOrAttr.constructor.name === 'Attr' ? nodeOrAttr.name : nodeOrAttr.nodeName;
- }
+ // (public) return value as byte
+ function bnByteValue() { return (this.t==0)?this.s:(this[0]<<24)>>24; }
- /***************************************************************************
- * Tokenization *
- ***************************************************************************/
- /**
- * The XPath lexer is basically a single regular expression, along with
- * some helper functions to pop different types.
- */
- var Stream = xpath.Stream = function Stream(str) {
- this.original = this.str = str;
- this.peeked = null;
- // TODO: not really needed, but supposedly tokenizer also disambiguates
- // a * b vs. node test *
- this.prev = null; // for debugging
- this.prevprev = null;
- }
- Stream.prototype = {
- peek: function() {
- if (this.peeked) return this.peeked;
- var m = this.re.exec(this.str);
- if (!m) return null;
- this.str = this.str.substr(m[0].length);
- return this.peeked = m[1];
- },
- /** Peek 2 tokens ahead. */
- peek2: function() {
- this.peek(); // make sure this.peeked is set
- var m = this.re.exec(this.str);
- if (!m) return null;
- return m[1];
- },
- pop: function() {
- var r = this.peek();
- this.peeked = null;
- this.prevprev = this.prev;
- this.prev = r;
- return r;
- },
- trypop: function(tokens) {
- var tok = this.peek();
- if (tok === tokens) return this.pop();
- if (Array.isArray(tokens)) {
- for (var i = 0; i < tokens.length; ++i) {
- var t = tokens[i];
- if (t == tok) return this.pop();;
+ // (public) return value as short (assumes DB>=16)
+ function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; }
+
+ // (protected) return x s.t. r^x < DV
+ function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }
+
+ // (public) 0 if this == 0, 1 if this > 0
+ function bnSigNum() {
+ if(this.s < 0) return -1;
+ else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0;
+ else return 1;
+ }
+
+ // (protected) convert to radix string
+ function bnpToRadix(b) {
+ if(b == null) b = 10;
+ if(this.signum() == 0 || b < 2 || b > 36) return "0";
+ var cs = this.chunkSize(b);
+ var a = Math.pow(b,cs);
+ var d = nbv(a), y = nbi(), z = nbi(), r = "";
+ this.divRemTo(d,y,z);
+ while(y.signum() > 0) {
+ r = (a+z.intValue()).toString(b).substr(1) + r;
+ y.divRemTo(d,y,z);
+ }
+ return z.intValue().toString(b) + r;
+ }
+
+ // (protected) convert from radix string
+ function bnpFromRadix(s,b) {
+ this.fromInt(0);
+ if(b == null) b = 10;
+ var cs = this.chunkSize(b);
+ var d = Math.pow(b,cs), mi = false, j = 0, w = 0;
+ for(var i = 0; i < s.length; ++i) {
+ var x = intAt(s,i);
+ if(x < 0) {
+ if(s.charAt(i) == "-" && this.signum() == 0) mi = true;
+ continue;
+ }
+ w = b*w+x;
+ if(++j >= cs) {
+ this.dMultiply(d);
+ this.dAddOffset(w,0);
+ j = 0;
+ w = 0;
}
}
- },
- trypopfuncname: function() {
- var tok = this.peek();
- if (!this.isQnameRe.test(tok))
- return null;
- switch (tok) {
- case 'comment': case 'text': case 'processing-instruction': case 'node':
- return null;
+ if(j > 0) {
+ this.dMultiply(Math.pow(b,j));
+ this.dAddOffset(w,0);
}
- if ('(' != this.peek2()) return null;
- return this.pop();
- },
- trypopaxisname: function() {
- var tok = this.peek();
- switch (tok) {
- case 'ancestor': case 'ancestor-or-self': case 'attribute':
- case 'child': case 'descendant': case 'descendant-or-self':
- case 'following': case 'following-sibling': case 'namespace':
- case 'parent': case 'preceding': case 'preceding-sibling': case 'self':
- if ('::' == this.peek2()) return this.pop();
+ if(mi) BigInteger.ZERO.subTo(this,this);
+ }
+
+ // (protected) alternate constructor
+ function bnpFromNumber(a,b,c) {
+ if("number" == typeof b) {
+ // new BigInteger(int,int,RNG)
+ if(a < 2) this.fromInt(1);
+ else {
+ this.fromNumber(a,c);
+ if(!this.testBit(a-1)) // force MSB set
+ this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);
+ if(this.isEven()) this.dAddOffset(1,0); // force odd
+ while(!this.isProbablePrime(b)) {
+ this.dAddOffset(2,0);
+ if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);
+ }
+ }
}
- return null;
- },
- trypopnametest: function() {
- var tok = this.peek();
- if ('*' === tok || this.startsWithNcNameRe.test(tok)) return this.pop();
- return null;
- },
- trypopliteral: function() {
- var tok = this.peek();
- if (null == tok) return null;
- var first = tok.charAt(0);
- var last = tok.charAt(tok.length - 1);
- if ('"' === first && '"' === last ||
- "'" === first && "'" === last) {
- this.pop();
- return tok.substr(1, tok.length - 2);
+ else {
+ // new BigInteger(int,RNG)
+ var x = new Array(), t = a&7;
+ x.length = (a>>3)+1;
+ b.nextBytes(x);
+ if(t > 0) x[0] &= ((1<=|[*/|+\\-=<>]'; // //, !=, <=, >= before individual ones.
- var literal = '"[^"]*"|' + "'[^']*'";
- var numberChars = '[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+';
- var variableReference = '\\$' + qNameChars;
- var nameTestChars = '\\*|' + ncNameChars + ':\\*|' + qNameChars;
- var optionalSpace = '[ \t\r\n]*'; // stricter than regexp \s.
- var nodeType = 'comment|text|processing-instruction|node';
- var re = new RegExp(
- // numberChars before otherChars so that leading-decimal doesn't become .
- '^' + optionalSpace + '(' + numberChars + '|' + otherChars + '|' +
- nameTestChars + '|' + operatorChars + '|' + literal + '|' +
- variableReference + ')'
- // operatorName | nodeType | functionName | axisName are lumped into
- // qName for now; we'll check them on pop.
- );
- Stream.prototype.re = re;
- Stream.prototype.startsWithNcNameRe = new RegExp('^' + ncNameChars);
- Stream.prototype.isQnameRe = new RegExp('^' + qNameChars + '$');
- Stream.prototype.isNumberRe = new RegExp('^' + numberChars + '$');
- })();
- /***************************************************************************
- * Parsing *
- ***************************************************************************/
- var parse = xpath.parse = function parse(stream, a) {
- var r = orExpr(stream,a);
- var x, unparsed = [];
- while (x = stream.pop()) {
- unparsed.push(x);
+ // (public) convert to bigendian byte array
+ function bnToByteArray() {
+ var i = this.t, r = new Array();
+ r[0] = this.s;
+ var p = this.DB-(i*this.DB)%8, d, k = 0;
+ if(i-- > 0) {
+ if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p)
+ r[k++] = d|(this.s<<(this.DB-p));
+ while(i >= 0) {
+ if(p < 8) {
+ d = (this[i]&((1<>(p+=this.DB-8);
+ }
+ else {
+ d = (this[i]>>(p-=8))&0xff;
+ if(p <= 0) { p += this.DB; --i; }
+ }
+ if((d&0x80) != 0) d |= -256;
+ if(k == 0 && (this.s&0x80) != (d&0x80)) ++k;
+ if(k > 0 || d != this.s) r[k++] = d;
+ }
+ }
+ return r;
}
- if (unparsed.length)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Unparsed tokens: ' + unparsed.join(' '));
- return r;
- }
- /**
- * binaryL ::= subExpr
- * | binaryL op subExpr
- * so a op b op c becomes ((a op b) op c)
- */
- function binaryL(subExpr, stream, a, ops) {
- var lhs = subExpr(stream, a);
- if (lhs == null) return null;
- var op;
- while (op = stream.trypop(ops)) {
- var rhs = subExpr(stream, a);
- if (rhs == null)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected something after ' + op);
- lhs = a.node(op, lhs, rhs);
- }
- return lhs;
- }
- /**
- * Too bad this is never used. If they made a ** operator (raise to power),
- ( we would use it.
- * binaryR ::= subExpr
- * | subExpr op binaryR
- * so a op b op c becomes (a op (b op c))
- */
- function binaryR(subExpr, stream, a, ops) {
- var lhs = subExpr(stream, a);
- if (lhs == null) return null;
- var op = stream.trypop(ops);
- if (op) {
- var rhs = binaryR(stream, a);
- if (rhs == null)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected something after ' + op);
- return a.node(op, lhs, rhs);
- } else {
- return lhs;// TODO
- }
- }
- /** [1] LocationPath::= RelativeLocationPath | AbsoluteLocationPath
- * e.g. a, a/b, //a/b
- */
- function locationPath(stream, a) {
- return absoluteLocationPath(stream, a) ||
- relativeLocationPath(null, stream, a);
- }
- /** [2] AbsoluteLocationPath::= '/' RelativeLocationPath? | AbbreviatedAbsoluteLocationPath
- * [10] AbbreviatedAbsoluteLocationPath::= '//' RelativeLocationPath
- */
- function absoluteLocationPath(stream, a) {
- var op = stream.peek();
- if ('/' === op || '//' === op) {
- var lhs = a.node('Root');
- return relativeLocationPath(lhs, stream, a, true);
- } else {
- return null;
- }
- }
- /** [3] RelativeLocationPath::= Step | RelativeLocationPath '/' Step |
- * | AbbreviatedRelativeLocationPath
- * [11] AbbreviatedRelativeLocationPath::= RelativeLocationPath '//' Step
- * e.g. p/a, etc.
- */
- function relativeLocationPath(lhs, stream, a, isOnlyRootOk) {
- if (null == lhs) {
- lhs = step(stream, a);
- if (null == lhs) return lhs;
- }
- var op;
- while (op = stream.trypop(['/', '//'])) {
- if ('//' === op) {
- lhs = a.node('/', lhs,
- a.node('Axis', 'descendant-or-self', 'node', undefined));
+ function bnEquals(a) { return(this.compareTo(a)==0); }
+ function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
+ function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
+
+ // (protected) r = this op a (bitwise)
+ function bnpBitwiseTo(a,op,r) {
+ var i, f, m = Math.min(a.t,this.t);
+ for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]);
+ if(a.t < this.t) {
+ f = a.s&this.DM;
+ for(i = m; i < this.t; ++i) r[i] = op(this[i],f);
+ r.t = this.t;
}
- var rhs = step(stream, a);
- if (null == rhs && '/' === op && isOnlyRootOk) return lhs;
- else isOnlyRootOk = false;
- if (null == rhs)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected step after ' + op);
- lhs = a.node('/', lhs, rhs);
+ else {
+ f = this.s&this.DM;
+ for(i = m; i < a.t; ++i) r[i] = op(f,a[i]);
+ r.t = a.t;
+ }
+ r.s = op(this.s,a.s);
+ r.clamp();
}
- return lhs;
- }
- /** [4] Step::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep
- * [12] AbbreviatedStep::= '.' | '..'
- * e.g. @href, self::p, p, a[@href], ., ..
- */
- function step(stream, a) {
- var abbrStep = stream.trypop(['.', '..']);
- if ('.' === abbrStep) // A location step of . is short for self::node().
- return a.node('Axis', 'self', 'node');
- if ('..' === abbrStep) // A location step of .. is short for parent::node()
- return a.node('Axis', 'parent', 'node');
- var axis = axisSpecifier(stream, a);
- var nodeType = nodeTypeTest(stream, a);
- var nodeName;
- if (null == nodeType) nodeName = nodeNameTest(stream, a);
- if (null == axis && null == nodeType && null == nodeName) return null;
- if (null == nodeType && null == nodeName)
- throw new XPathException(
- XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected nodeTest after axisSpecifier ' + axis);
- if (null == axis) axis = 'child';
- if (null == nodeType) {
- // When there's only a node name, then the node type is forced to be the
- // principal node type of the axis.
- // see http://www.w3.org/TR/xpath/#dt-principal-node-type
- if ('attribute' === axis) nodeType = 'attribute';
- else if ('namespace' === axis) nodeType = 'namespace';
- else nodeType = 'element';
- }
- var lhs = a.node('Axis', axis, nodeType, nodeName);
- var pred;
- while (null != (pred = predicate(lhs, stream, a))) {
- lhs = pred;
- }
- return lhs;
- }
- /** [5] AxisSpecifier::= AxisName '::' | AbbreviatedAxisSpecifier
- * [6] AxisName::= 'ancestor' | 'ancestor-or-self' | 'attribute' | 'child'
- * | 'descendant' | 'descendant-or-self' | 'following'
- * | 'following-sibling' | 'namespace' | 'parent' |
- * | 'preceding' | 'preceding-sibling' | 'self'
- * [13] AbbreviatedAxisSpecifier::= '@'?
- */
- function axisSpecifier(stream, a) {
- var attr = stream.trypop('@');
- if (null != attr) return 'attribute';
- var axisName = stream.trypopaxisname();
- if (null != axisName) {
- var coloncolon = stream.trypop('::');
- if (null == coloncolon)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Should not happen. Should be ::.');
- return axisName;
- }
- }
- /** [7] NodeTest::= NameTest | NodeType '(' ')' | 'processing-instruction' '(' Literal ')'
- * [38] NodeType::= 'comment' | 'text' | 'processing-instruction' | 'node'
- * I've split nodeTypeTest from nodeNameTest for convenience.
- */
- function nodeTypeTest(stream, a) {
- if ('(' !== stream.peek2()) {
- return null;
- }
- var type = stream.trypop(['comment', 'text', 'processing-instruction', 'node']);
- if (null != type) {
- if (null == stream.trypop('('))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Should not happen.');
- var param = undefined;
- if (type == 'processing-instruction') {
- param = stream.trypopliteral();
- }
- if (null == stream.trypop(')'))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected close parens.');
- return type
+ // (public) this & a
+ function op_and(x,y) { return x&y; }
+ function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }
+
+ // (public) this | a
+ function op_or(x,y) { return x|y; }
+ function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }
+
+ // (public) this ^ a
+ function op_xor(x,y) { return x^y; }
+ function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }
+
+ // (public) this & ~a
+ function op_andnot(x,y) { return x&~y; }
+ function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; }
+
+ // (public) ~this
+ function bnNot() {
+ var r = nbi();
+ for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i];
+ r.t = this.t;
+ r.s = ~this.s;
+ return r;
}
- }
- function nodeNameTest(stream, a) {
- var name = stream.trypopnametest();
- if (name != null) return name;
- else return null;
- }
- /** [8] Predicate::= '[' PredicateExpr ']'
- * [9] PredicateExpr::= Expr
- */
- function predicate(lhs, stream, a) {
- if (null == stream.trypop('[')) return null;
- var expr = orExpr(stream, a);
- if (null == expr)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected expression after [');
- if (null == stream.trypop(']'))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected ] after expression.');
- return a.node('Predicate', lhs, expr);
- }
- /** [14] Expr::= OrExpr
- */
- /** [15] PrimaryExpr::= VariableReference | '(' Expr ')' | Literal | Number | FunctionCall
- * e.g. $x, (3+4), "hi", 32, f(x)
- */
- function primaryExpr(stream, a) {
- var x = stream.trypopliteral();
- if (null == x)
- x = stream.trypopnumber();
- if (null != x) {
- return x;
+
+ // (public) this << n
+ function bnShiftLeft(n) {
+ var r = nbi();
+ if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r);
+ return r;
}
- var varRef = stream.trypopvarref();
- if (null != varRef) return a.node('VariableReference', varRef);
- var funCall = functionCall(stream, a);
- if (null != funCall) {
- return funCall;
+
+ // (public) this >> n
+ function bnShiftRight(n) {
+ var r = nbi();
+ if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r);
+ return r;
}
- if (stream.trypop('(')) {
- var e = orExpr(stream, a);
- if (null == e)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected expression after (.');
- if (null == stream.trypop(')'))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected ) after expression.');
- return e;
+
+ // return index of lowest 1-bit in x, x < 2^31
+ function lbit(x) {
+ if(x == 0) return -1;
+ var r = 0;
+ if((x&0xffff) == 0) { x >>= 16; r += 16; }
+ if((x&0xff) == 0) { x >>= 8; r += 8; }
+ if((x&0xf) == 0) { x >>= 4; r += 4; }
+ if((x&3) == 0) { x >>= 2; r += 2; }
+ if((x&1) == 0) ++r;
+ return r;
}
- return null;
- }
- /** [16] FunctionCall::= FunctionName '(' ( Argument ( ',' Argument )* )? ')'
- * [17] Argument::= Expr
- */
- function functionCall(stream, a) {
- var name = stream.trypopfuncname(stream, a);
- if (null == name) return null;
- if (null == stream.trypop('('))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected ( ) after function name.');
- var params = [];
- var first = true;
- while (null == stream.trypop(')')) {
- if (!first && null == stream.trypop(','))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected , between arguments of the function.');
- first = false;
- var param = orExpr(stream, a);
- if (param == null)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected expression as argument of function.');
- params.push(param);
+
+ // (public) returns index of lowest 1-bit (or -1 if none)
+ function bnGetLowestSetBit() {
+ for(var i = 0; i < this.t; ++i)
+ if(this[i] != 0) return i*this.DB+lbit(this[i]);
+ if(this.s < 0) return this.t*this.DB;
+ return -1;
}
- return a.node('FunctionCall', name, params);
- }
- /** [18] UnionExpr::= PathExpr | UnionExpr '|' PathExpr
- */
- function unionExpr(stream, a) { return binaryL(pathExpr, stream, a, '|'); }
- /** [19] PathExpr ::= LocationPath
- * | FilterExpr
- * | FilterExpr '/' RelativeLocationPath
- * | FilterExpr '//' RelativeLocationPath
- * Unlike most other nodes, this one always generates a node because
- * at this point all reverse nodesets must turn into a forward nodeset
- */
- function pathExpr(stream, a) {
- // We have to do FilterExpr before LocationPath because otherwise
- // LocationPath will eat up the name from a function call.
- var filter = filterExpr(stream, a);
- if (null == filter) {
- var loc = locationPath(stream, a);
- if (null == loc) {
- throw new Error
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': The expression shouldn\'t be empty...');
- }
- return a.node('PathExpr', loc);
+ // return number of 1 bits in x
+ function cbit(x) {
+ var r = 0;
+ while(x != 0) { x &= x-1; ++r; }
+ return r;
}
- var rel = relativeLocationPath(filter, stream, a, false);
- if (filter === rel) return rel;
- else return a.node('PathExpr', rel);
- }
- /** [20] FilterExpr::= PrimaryExpr | FilterExpr Predicate
- * aka. FilterExpr ::= PrimaryExpr Predicate*
- */
- function filterExpr(stream, a) {
- var primary = primaryExpr(stream, a);
- if (primary == null) return null;
- var pred, lhs = primary;
- while (null != (pred = predicate(lhs, stream, a))) {
- lhs = pred;
+
+ // (public) return number of set bits
+ function bnBitCount() {
+ var r = 0, x = this.s&this.DM;
+ for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x);
+ return r;
}
- return lhs;
- }
- /** [21] OrExpr::= AndExpr | OrExpr 'or' AndExpr
- */
- function orExpr(stream, a) {
- var orig = (stream.peeked || '') + stream.str
- var r = binaryL(andExpr, stream, a, 'or');
- var now = (stream.peeked || '') + stream.str;
- return r;
- }
- /** [22] AndExpr::= EqualityExpr | AndExpr 'and' EqualityExpr
- */
- function andExpr(stream, a) { return binaryL(equalityExpr, stream, a, 'and'); }
- /** [23] EqualityExpr::= RelationalExpr | EqualityExpr '=' RelationalExpr
- * | EqualityExpr '!=' RelationalExpr
- */
- function equalityExpr(stream, a) { return binaryL(relationalExpr, stream, a, ['=','!=']); }
- /** [24] RelationalExpr::= AdditiveExpr | RelationalExpr '<' AdditiveExpr
- * | RelationalExpr '>' AdditiveExpr
- * | RelationalExpr '<=' AdditiveExpr
- * | RelationalExpr '>=' AdditiveExpr
- */
- function relationalExpr(stream, a) { return binaryL(additiveExpr, stream, a, ['<','>','<=','>=']); }
- /** [25] AdditiveExpr::= MultiplicativeExpr
- * | AdditiveExpr '+' MultiplicativeExpr
- * | AdditiveExpr '-' MultiplicativeExpr
- */
- function additiveExpr(stream, a) { return binaryL(multiplicativeExpr, stream, a, ['+','-']); }
- /** [26] MultiplicativeExpr::= UnaryExpr
- * | MultiplicativeExpr MultiplyOperator UnaryExpr
- * | MultiplicativeExpr 'div' UnaryExpr
- * | MultiplicativeExpr 'mod' UnaryExpr
- */
- function multiplicativeExpr(stream, a) { return binaryL(unaryExpr, stream, a, ['*','div','mod']); }
- /** [27] UnaryExpr::= UnionExpr | '-' UnaryExpr
- */
- function unaryExpr(stream, a) {
- if (stream.trypop('-')) {
- var e = unaryExpr(stream, a);
- if (null == e)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected unary expression after -');
- return a.node('UnaryMinus', e);
+ // (public) true iff nth bit is set
+ function bnTestBit(n) {
+ var j = Math.floor(n/this.DB);
+ if(j >= this.t) return(this.s!=0);
+ return((this[j]&(1<<(n%this.DB)))!=0);
}
- else return unionExpr(stream, a);
- }
- var astFactory = {
- node: function() {return Array.prototype.slice.call(arguments);}
- };
+ // (protected) this op (1<>= this.DB;
}
- },
- finalize: function() {
- if (null == this.nextPos) return this;
- console.assert(0 === this.nextPos.length);
- var lastsJSON = JSON.stringify(this.lasts);
- for (var i = 0; i < this.lasts.length; ++i) {
- for (var j = 0; j < this.lasts[i].length; ++j) {
- console.assert(null != this.lasts[i][j], i + ',' + j + ':' + lastsJSON);
+ if(a.t < this.t) {
+ c += a.s;
+ while(i < this.t) {
+ c += this[i];
+ r[i++] = c&this.DM;
+ c >>= this.DB;
}
+ c += this.s;
}
- this.pushSeries = this.popSeries = this.addNode = function() {
- throw new Error('Already finalized.');
- };
- return this;
- },
- addNode: function addNode(node) {
- console.assert(node);
- this._pushToNodes.call(this.nodes, node)
- this._pushToNodes.call(this.pos, this.nextPos.slice());
- this._pushToNodes.call(this.lasts, new Array(this.nextPos.length));
- for (var i = 0; i < this.nextPos.length; ++i) this.nextPos[i]++;
- },
- simplify: function() {
- this.finalize();
- return {nodes:this.nodes, pos:this.pos, lasts:this.lasts};
- }
- };
- function eachContext(nodeMultiSet) {
- var r = [];
- for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
- var node = nodeMultiSet.nodes[i];
- if (!nodeMultiSet.pos) {
- r.push({nodes:[node], pos: [[i + 1]], lasts: [[nodeMultiSet.nodes.length]]});
- } else {
- for (var j = 0; j < nodeMultiSet.pos[i].length; ++j) {
- r.push({nodes:[node], pos: [[nodeMultiSet.pos[i][j]]], lasts: [[nodeMultiSet.lasts[i][j]]]});
+ else {
+ c += this.s;
+ while(i < a.t) {
+ c += a[i];
+ r[i++] = c&this.DM;
+ c >>= this.DB;
}
+ c += a.s;
}
+ r.s = (c<0)?-1:0;
+ if(c > 0) r[i++] = c;
+ else if(c < -1) r[i++] = this.DV+c;
+ r.t = i;
+ r.clamp();
}
- return r;
- }
- /** Matcher used in the axes.
- */
- function NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase) {
- this.nodeTypeNum = nodeTypeNum;
- this.nodeName = nodeName;
- this.shouldLowerCase = shouldLowerCase;
- this.nodeNameTest =
- null == nodeName ? this._alwaysTrue :
- shouldLowerCase ? this._nodeNameLowerCaseEquals :
- this._nodeNameEquals;
- }
- NodeMatcher.prototype = {
- matches: function matches(node) {
- if (0 === this.nodeTypeNum || this._nodeTypeMatches(node)) {
- return this.nodeNameTest(getNodeName(node));
- }
- return false;
- },
- _nodeTypeMatches(nodeOrAttr) {
- if (nodeOrAttr.constructor.name === 'Attr' && this.nodeTypeNum === 2) {
- return true;
- }
- return nodeOrAttr.nodeType === this.nodeTypeNum;
- },
- _alwaysTrue: function(name) {return true;},
- _nodeNameEquals: function _nodeNameEquals(name) {
- return this.nodeName === name;
- },
- _nodeNameLowerCaseEquals: function _nodeNameLowerCaseEquals(name) {
- return this.nodeName === name.toLowerCase();
- }
- };
+ // (public) this + a
+ function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }
- function followingSiblingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, shift, peek, followingNode, andSelf, isReverseAxis) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(isReverseAxis);
- while (0 < nodeList.length) { // can be if for following, preceding
- var node = shift.call(nodeList);
- console.assert(node != null);
- node = followingNode(node);
- nodeMultiSet.pushSeries();
- var numPushed = 1;
- while (null != node) {
- if (! andSelf && matcher.matches(node))
- nodeMultiSet.addNode(node);
- if (node === peek.call(nodeList)) {
- shift.call(nodeList);
- nodeMultiSet.pushSeries();
- numPushed++;
- }
- if (andSelf && matcher.matches(node))
- nodeMultiSet.addNode(node);
- node = followingNode(node);
- }
- while (0 < numPushed--)
- nodeMultiSet.popSeries();
+ // (public) this - a
+ function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }
+
+ // (public) this * a
+ function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }
+
+ // (public) this^2
+ function bnSquare() { var r = nbi(); this.squareTo(r); return r; }
+
+ // (public) this / a
+ function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }
+
+ // (public) this % a
+ function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; }
+
+ // (public) [this/a,this%a]
+ function bnDivideAndRemainder(a) {
+ var q = nbi(), r = nbi();
+ this.divRemTo(a,q,r);
+ return new Array(q,r);
}
- return nodeMultiSet;
- }
- /** Returns the next non-descendant node in document order.
- * This is the first node in following::node(), if node is the context.
- */
- function followingNonDescendantNode(node) {
- if (node.ownerElement) {
- if (node.ownerElement.firstChild)
- return node.ownerElement.firstChild;
- node = node.ownerElement;
+ // (protected) this *= n, this >= 0, 1 < n < DV
+ function bnpDMultiply(n) {
+ this[this.t] = this.am(0,n-1,this,0,0,this.t);
+ ++this.t;
+ this.clamp();
}
- do {
- if (node.nextSibling) return node.nextSibling;
- } while (node = node.parentNode);
- return null;
- }
- /** Returns the next node in a document-order depth-first search.
- * See the definition of document order[1]:
- * 1) element
- * 2) namespace nodes
- * 3) attributes
- * 4) children
- * [1]: http://www.w3.org/TR/xpath/#dt-document-order
- */
- function followingNode(node) {
- if (node.ownerElement) // attributes: following node of element.
- node = node.ownerElement;
- if (null != node.firstChild)
- return node.firstChild;
- do {
- if (null != node.nextSibling) {
- return node.nextSibling;
- }
- node = node.parentNode;
- } while (node);
- return null;
- }
- /** Returns the previous node in document order (excluding attributes
- * and namespace nodes).
- */
- function precedingNode(node) {
- if (node.ownerElement)
- return node.ownerElement;
- if (null != node.previousSibling) {
- node = node.previousSibling;
- while (null != node.lastChild) {
- node = node.lastChild;
+ // (protected) this += n << w words, this >= 0
+ function bnpDAddOffset(n,w) {
+ if(n == 0) return;
+ while(this.t <= w) this[this.t++] = 0;
+ this[w] += n;
+ while(this[w] >= this.DV) {
+ this[w] -= this.DV;
+ if(++w >= this.t) this[this.t++] = 0;
+ ++this[w];
}
- return node;
}
- if (null != node.parentNode) {
- return node.parentNode;
+
+ // A "null" reducer
+ function NullExp() {}
+ function nNop(x) { return x; }
+ function nMulTo(x,y,r) { x.multiplyTo(y,r); }
+ function nSqrTo(x,r) { x.squareTo(r); }
+
+ NullExp.prototype.convert = nNop;
+ NullExp.prototype.revert = nNop;
+ NullExp.prototype.mulTo = nMulTo;
+ NullExp.prototype.sqrTo = nSqrTo;
+
+ // (public) this^e
+ function bnPow(e) { return this.exp(e,new NullExp()); }
+
+ // (protected) r = lower n words of "this * a", a.t <= n
+ // "this" should be the larger one if appropriate.
+ function bnpMultiplyLowerTo(a,n,r) {
+ var i = Math.min(this.t+a.t,n);
+ r.s = 0; // assumes a,this >= 0
+ r.t = i;
+ while(i > 0) r[--i] = 0;
+ var j;
+ for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t);
+ for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i);
+ r.clamp();
}
- return null;
- }
- /** This axis is inefficient if there are many nodes in the nodeList.
- * But I think it's a pretty useless axis so it's ok. */
- function followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- var cursor = nodeList[0];
- var unorderedFollowingStarts = [];
- for (var i = 0; i < nodeList.length; i++) {
- var node = nodeList[i];
- var start = followingNonDescendantNode(node);
- if (start)
- unorderedFollowingStarts.push(start);
+
+ // (protected) r = "this * a" without lower n words, n > 0
+ // "this" should be the larger one if appropriate.
+ function bnpMultiplyUpperTo(a,n,r) {
+ --n;
+ var i = r.t = this.t+a.t-n;
+ r.s = 0; // assumes a,this >= 0
+ while(--i >= 0) r[i] = 0;
+ for(i = Math.max(n-this.t,0); i < a.t; ++i)
+ r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n);
+ r.clamp();
+ r.drShiftTo(1,r);
}
- if (0 === unorderedFollowingStarts.length)
- return {nodes:[]};
- var pos = [], nextPos = [];
- var started = 0;
- while (cursor = followingNode(cursor)) {
- for (var i = unorderedFollowingStarts.length - 1; i >= 0; i--){
- if (cursor === unorderedFollowingStarts[i]) {
- nodeMultiSet.pushSeries();
- unorderedFollowingStarts.splice(i,i+1);
- started++;
+
+ // Barrett modular reduction
+ function Barrett(m) {
+ // setup Barrett
+ this.r2 = nbi();
+ this.q3 = nbi();
+ BigInteger.ONE.dlShiftTo(2*m.t,this.r2);
+ this.mu = this.r2.divide(m);
+ this.m = m;
+ }
+
+ function barrettConvert(x) {
+ if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m);
+ else if(x.compareTo(this.m) < 0) return x;
+ else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; }
+ }
+
+ function barrettRevert(x) { return x; }
+
+ // x = x mod m (HAC 14.42)
+ function barrettReduce(x) {
+ x.drShiftTo(this.m.t-1,this.r2);
+ if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }
+ this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);
+ this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);
+ while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1);
+ x.subTo(this.r2,x);
+ while(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
+ }
+
+ // r = x^2 mod m; x != r
+ function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
+
+ // r = x*y mod m; x,y != r
+ function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
+
+ Barrett.prototype.convert = barrettConvert;
+ Barrett.prototype.revert = barrettRevert;
+ Barrett.prototype.reduce = barrettReduce;
+ Barrett.prototype.mulTo = barrettMulTo;
+ Barrett.prototype.sqrTo = barrettSqrTo;
+
+ // (public) this^e % m (HAC 14.85)
+ function bnModPow(e,m) {
+ var i = e.bitLength(), k, r = nbv(1), z;
+ if(i <= 0) return r;
+ else if(i < 18) k = 1;
+ else if(i < 48) k = 3;
+ else if(i < 144) k = 4;
+ else if(i < 768) k = 5;
+ else k = 6;
+ if(i < 8)
+ z = new Classic(m);
+ else if(m.isEven())
+ z = new Barrett(m);
+ else
+ z = new Montgomery(m);
+
+ // precomputation
+ var g = new Array(), n = 3, k1 = k-1, km = (1< 1) {
+ var g2 = nbi();
+ z.sqrTo(g[1],g2);
+ while(n <= km) {
+ g[n] = nbi();
+ z.mulTo(g2,g[n-2],g[n]);
+ n += 2;
}
}
- if (started && matcher.matches(cursor)) {
- nodeMultiSet.addNode(cursor);
+
+ var j = e.t-1, w, is1 = true, r2 = nbi(), t;
+ i = nbits(e[j])-1;
+ while(j >= 0) {
+ if(i >= k1) w = (e[j]>>(i-k1))&km;
+ else {
+ w = (e[j]&((1<<(i+1))-1))<<(k1-i);
+ if(j > 0) w |= e[j-1]>>(this.DB+i-k1);
+ }
+
+ n = k;
+ while((w&1) == 0) { w >>= 1; --n; }
+ if((i -= n) < 0) { i += this.DB; --j; }
+ if(is1) { // ret == 1, don't bother squaring or multiplying it
+ g[w].copyTo(r);
+ is1 = false;
+ }
+ else {
+ while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; }
+ if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; }
+ z.mulTo(r2,g[w],r);
+ }
+
+ while(j >= 0 && (e[j]&(1< 0) {
+ x.rShiftTo(g,x);
+ y.rShiftTo(g,y);
}
- var matches = matcher.matches(cursor);
- var pos, someoneUsed = false;
- if (matches)
- pos = nextPos.slice();
+ while(x.signum() > 0) {
+ if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x);
+ if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y);
+ if(x.compareTo(y) >= 0) {
+ x.subTo(y,x);
+ x.rShiftTo(1,x);
+ }
+ else {
+ y.subTo(x,y);
+ y.rShiftTo(1,y);
+ }
+ }
+ if(g > 0) y.lShiftTo(g,y);
+ return y;
+ }
- for (var i = 0; i < nextParents.length; ++i) {
- if (cursor === nextParents[i]) {
- nextParents[i] = cursor.parentNode || cursor.ownerElement;
- if (matches) {
- pos[i] = null;
+ // (protected) this % n, n < 2^26
+ function bnpModInt(n) {
+ if(n <= 0) return 0;
+ var d = this.DV%n, r = (this.s<0)?n-1:0;
+ if(this.t > 0)
+ if(d == 0) r = this[0]%n;
+ else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;
+ return r;
+ }
+
+ // (public) 1/this % m (HAC 14.61)
+ function bnModInverse(m) {
+ var ac = m.isEven();
+ if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;
+ var u = m.clone(), v = this.clone();
+ var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1);
+ while(u.signum() != 0) {
+ while(u.isEven()) {
+ u.rShiftTo(1,u);
+ if(ac) {
+ if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }
+ a.rShiftTo(1,a);
}
- } else {
- if (matches) {
- pos[i] = nextPos[i]++;
- someoneUsed = true;
+ else if(!b.isEven()) b.subTo(m,b);
+ b.rShiftTo(1,b);
+ }
+ while(v.isEven()) {
+ v.rShiftTo(1,v);
+ if(ac) {
+ if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); }
+ c.rShiftTo(1,c);
}
+ else if(!d.isEven()) d.subTo(m,d);
+ d.rShiftTo(1,d);
}
- }
- if (someoneUsed) {
- r.nodes.unshift(cursor);
- r.pos.unshift(pos);
- }
- }
- for (var i = 0; i < r.pos.length; ++i) {
- var lasts = [];
- r.lasts.push(lasts);
- for (var j = r.pos[i].length - 1; j >= 0; j--) {
- if (null == r.pos[i][j]) {
- r.pos[i].splice(j, j+1);
- } else {
- lasts.unshift(nextPos[j] - 1);
+ if(u.compareTo(v) >= 0) {
+ u.subTo(v,u);
+ if(ac) a.subTo(c,a);
+ b.subTo(d,b);
+ }
+ else {
+ v.subTo(u,v);
+ if(ac) c.subTo(a,c);
+ d.subTo(b,d);
}
}
+ if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;
+ if(d.compareTo(m) >= 0) return d.subtract(m);
+ if(d.signum() < 0) d.addTo(m,d); else return d;
+ if(d.signum() < 0) return d.add(m); else return d;
}
- return r;
- }
- /** node-set, axis -> node-set */
- function descendantDfs(nodeMultiSet, node, remaining, matcher, andSelf, attrIndices, attrNodes) {
- while (0 < remaining.length && null != remaining[0].ownerElement) {
- var attr = remaining.shift();
- if (andSelf && matcher.matches(attr)) {
- attrNodes.push(attr);
- attrIndices.push(nodeMultiSet.nodes.length);
+ var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];
+ var lplim = (1<<26)/lowprimes[lowprimes.length-1];
+
+ // (public) test primality with certainty >= 1-.5^t
+ function bnIsProbablePrime(t) {
+ var i, x = this.abs();
+ if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) {
+ for(i = 0; i < lowprimes.length; ++i)
+ if(x[0] == lowprimes[i]) return true;
+ return false;
}
- }
- if (null != node && !andSelf) {
- if (matcher.matches(node))
- nodeMultiSet.addNode(node);
- }
- var pushed = false;
- if (null == node) {
- if (0 === remaining.length) return;
- node = remaining.shift();
- nodeMultiSet.pushSeries();
- pushed = true;
- } else if (0 < remaining.length && node === remaining[0]) {
- nodeMultiSet.pushSeries();
- pushed = true;
- remaining.shift();
- }
- if (andSelf) {
- if (matcher.matches(node))
- nodeMultiSet.addNode(node);
- }
- // TODO: use optimization. Also try element.getElementsByTagName
- // var nodeList = 1 === nodeTypeNum && null != node.children ? node.children : node.childNodes;
- var nodeList = node.childNodes;
- for (var j = 0; j < nodeList.length; ++j) {
- var child = nodeList[j];
- descendantDfs(nodeMultiSet, child, remaining, matcher, andSelf, attrIndices, attrNodes);
- }
- if (pushed) {
- nodeMultiSet.popSeries();
- }
- }
- function descenantHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- var attrIndices = [], attrNodes = [];
- while (0 < nodeList.length) {
- // var node = nodeList.shift();
- descendantDfs(nodeMultiSet, null, nodeList, matcher, andSelf, attrIndices, attrNodes);
- }
- nodeMultiSet.finalize();
- for (var i = attrNodes.length-1; i >= 0; --i) {
- nodeMultiSet.nodes.splice(attrIndices[i], attrIndices[i], attrNodes[i]);
- nodeMultiSet.pos.splice(attrIndices[i], attrIndices[i], [1]);
- nodeMultiSet.lasts.splice(attrIndices[i], attrIndices[i], [1]);
- }
- return nodeMultiSet;
- }
- /**
- */
- function ancestorHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var ancestors = []; // array of non-empty arrays of matching ancestors
- for (var i = 0; i < nodeList.length; ++i) {
- var node = nodeList[i];
- var isFirst = true;
- var a = [];
- while (null != node) {
- if (!isFirst || andSelf) {
- if (matcher.matches(node))
- a.push(node);
- }
- isFirst = false;
- node = node.parentNode || node.ownerElement;
+ if(x.isEven()) return false;
+ i = 1;
+ while(i < lowprimes.length) {
+ var m = lowprimes[i], j = i+1;
+ while(j < lowprimes.length && m < lplim) m *= lowprimes[j++];
+ m = x.modInt(m);
+ while(i < j) if(m%lowprimes[i++] == 0) return false;
}
- if (0 < a.length)
- ancestors.push(a);
+ return x.millerRabin(t);
}
- var lasts = [];
- for (var i = 0; i < ancestors.length; ++i) lasts.push(ancestors[i].length);
- var nodeMultiSet = new NodeMultiSet(true);
- var newCtx = {nodes:[], pos:[], lasts:[]};
- while (0 < ancestors.length) {
- var pos = [ancestors[0].length];
- var last = [lasts[0]];
- var node = ancestors[0].pop();
- for (var i = ancestors.length - 1; i > 0; --i) {
- if (node === ancestors[i][ancestors[i].length - 1]) {
- pos.push(ancestors[i].length);
- last.push(lasts[i]);
- ancestors[i].pop();
- if (0 === ancestors[i].length) {
- ancestors.splice(i, i+1);
- lasts.splice(i, i+1);
+
+ // (protected) true if probably prime (HAC 4.24, Miller-Rabin)
+ function bnpMillerRabin(t) {
+ var n1 = this.subtract(BigInteger.ONE);
+ var k = n1.getLowestSetBit();
+ if(k <= 0) return false;
+ var r = n1.shiftRight(k);
+ t = (t+1)>>1;
+ if(t > lowprimes.length) t = lowprimes.length;
+ var a = nbi();
+ for(var i = 0; i < t; ++i) {
+ //Pick bases at random, instead of starting at 2
+ a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);
+ var y = a.modPow(r,this);
+ if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {
+ var j = 1;
+ while(j++ < k && y.compareTo(n1) != 0) {
+ y = y.modPowInt(2,this);
+ if(y.compareTo(BigInteger.ONE) == 0) return false;
}
+ if(y.compareTo(n1) != 0) return false;
}
}
- if (0 === ancestors[0].length) {
- ancestors.shift();
- lasts.shift();
- }
- newCtx.nodes.push(node);
- newCtx.pos.push(pos);
- newCtx.lasts.push(last);
+ return true;
}
- return newCtx;
+
+ // protected
+ BigInteger.prototype.chunkSize = bnpChunkSize;
+ BigInteger.prototype.toRadix = bnpToRadix;
+ BigInteger.prototype.fromRadix = bnpFromRadix;
+ BigInteger.prototype.fromNumber = bnpFromNumber;
+ BigInteger.prototype.bitwiseTo = bnpBitwiseTo;
+ BigInteger.prototype.changeBit = bnpChangeBit;
+ BigInteger.prototype.addTo = bnpAddTo;
+ BigInteger.prototype.dMultiply = bnpDMultiply;
+ BigInteger.prototype.dAddOffset = bnpDAddOffset;
+ BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;
+ BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;
+ BigInteger.prototype.modInt = bnpModInt;
+ BigInteger.prototype.millerRabin = bnpMillerRabin;
+
+ // public
+ BigInteger.prototype.clone = bnClone;
+ BigInteger.prototype.intValue = bnIntValue;
+ BigInteger.prototype.byteValue = bnByteValue;
+ BigInteger.prototype.shortValue = bnShortValue;
+ BigInteger.prototype.signum = bnSigNum;
+ BigInteger.prototype.toByteArray = bnToByteArray;
+ BigInteger.prototype.equals = bnEquals;
+ BigInteger.prototype.min = bnMin;
+ BigInteger.prototype.max = bnMax;
+ BigInteger.prototype.and = bnAnd;
+ BigInteger.prototype.or = bnOr;
+ BigInteger.prototype.xor = bnXor;
+ BigInteger.prototype.andNot = bnAndNot;
+ BigInteger.prototype.not = bnNot;
+ BigInteger.prototype.shiftLeft = bnShiftLeft;
+ BigInteger.prototype.shiftRight = bnShiftRight;
+ BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;
+ BigInteger.prototype.bitCount = bnBitCount;
+ BigInteger.prototype.testBit = bnTestBit;
+ BigInteger.prototype.setBit = bnSetBit;
+ BigInteger.prototype.clearBit = bnClearBit;
+ BigInteger.prototype.flipBit = bnFlipBit;
+ BigInteger.prototype.add = bnAdd;
+ BigInteger.prototype.subtract = bnSubtract;
+ BigInteger.prototype.multiply = bnMultiply;
+ BigInteger.prototype.divide = bnDivide;
+ BigInteger.prototype.remainder = bnRemainder;
+ BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;
+ BigInteger.prototype.modPow = bnModPow;
+ BigInteger.prototype.modInverse = bnModInverse;
+ BigInteger.prototype.pow = bnPow;
+ BigInteger.prototype.gcd = bnGCD;
+ BigInteger.prototype.isProbablePrime = bnIsProbablePrime;
+
+ // JSBN-specific extension
+ BigInteger.prototype.square = bnSquare;
+
+ // Expose the Barrett function
+ BigInteger.prototype.Barrett = Barrett
+
+ // BigInteger interfaces not implemented in jsbn:
+
+ // BigInteger(int signum, byte[] magnitude)
+ // double doubleValue()
+ // float floatValue()
+ // int hashCode()
+ // long longValue()
+ // static BigInteger valueOf(long val)
+
+ // Random number generator - requires a PRNG backend, e.g. prng4.js
+
+ // For best results, put code like
+ //
+ // in your main HTML document.
+
+ var rng_state;
+ var rng_pool;
+ var rng_pptr;
+
+ // Mix in a 32-bit integer into the pool
+ function rng_seed_int(x) {
+ rng_pool[rng_pptr++] ^= x & 255;
+ rng_pool[rng_pptr++] ^= (x >> 8) & 255;
+ rng_pool[rng_pptr++] ^= (x >> 16) & 255;
+ rng_pool[rng_pptr++] ^= (x >> 24) & 255;
+ if(rng_pptr >= rng_psize) rng_pptr -= rng_psize;
+ }
+
+ // Mix in the current time (w/milliseconds) into the pool
+ function rng_seed_time() {
+ rng_seed_int(new Date().getTime());
+ }
+
+ // Initialize the pool with junk if needed.
+ if(rng_pool == null) {
+ rng_pool = new Array();
+ rng_pptr = 0;
+ var t;
+ if(typeof window !== "undefined" && window.crypto) {
+ if (window.crypto.getRandomValues) {
+ // Use webcrypto if available
+ var ua = new Uint8Array(32);
+ window.crypto.getRandomValues(ua);
+ for(t = 0; t < 32; ++t)
+ rng_pool[rng_pptr++] = ua[t];
+ }
+ else if(navigator.appName == "Netscape" && navigator.appVersion < "5") {
+ // Extract entropy (256 bits) from NS4 RNG if available
+ var z = window.crypto.random(32);
+ for(t = 0; t < z.length; ++t)
+ rng_pool[rng_pptr++] = z.charCodeAt(t) & 255;
+ }
+ }
+ while(rng_pptr < rng_psize) { // extract some randomness from Math.random()
+ t = Math.floor(65536 * Math.random());
+ rng_pool[rng_pptr++] = t >>> 8;
+ rng_pool[rng_pptr++] = t & 255;
+ }
+ rng_pptr = 0;
+ rng_seed_time();
+ //rng_seed_int(window.screenX);
+ //rng_seed_int(window.screenY);
+ }
+
+ function rng_get_byte() {
+ if(rng_state == null) {
+ rng_seed_time();
+ rng_state = prng_newstate();
+ rng_state.init(rng_pool);
+ for(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr)
+ rng_pool[rng_pptr] = 0;
+ rng_pptr = 0;
+ //rng_pool = null;
+ }
+ // TODO: allow reseeding after first request
+ return rng_state.next();
+ }
+
+ function rng_get_bytes(ba) {
+ var i;
+ for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte();
+ }
+
+ function SecureRandom() {}
+
+ SecureRandom.prototype.nextBytes = rng_get_bytes;
+
+ // prng4.js - uses Arcfour as a PRNG
+
+ function Arcfour() {
+ this.i = 0;
+ this.j = 0;
+ this.S = new Array();
+ }
+
+ // Initialize arcfour context from key, an array of ints, each from [0..255]
+ function ARC4init(key) {
+ var i, j, t;
+ for(i = 0; i < 256; ++i)
+ this.S[i] = i;
+ j = 0;
+ for(i = 0; i < 256; ++i) {
+ j = (j + this.S[i] + key[i % key.length]) & 255;
+ t = this.S[i];
+ this.S[i] = this.S[j];
+ this.S[j] = t;
+ }
+ this.i = 0;
+ this.j = 0;
+ }
+
+ function ARC4next() {
+ var t;
+ this.i = (this.i + 1) & 255;
+ this.j = (this.j + this.S[this.i]) & 255;
+ t = this.S[this.i];
+ this.S[this.i] = this.S[this.j];
+ this.S[this.j] = t;
+ return this.S[(t + this.S[this.i]) & 255];
+ }
+
+ Arcfour.prototype.init = ARC4init;
+ Arcfour.prototype.next = ARC4next;
+
+ // Plug in your RNG constructor here
+ function prng_newstate() {
+ return new Arcfour();
+ }
+
+ // Pool size must be a multiple of 4 and greater than 32.
+ // An array of bytes the size of the pool will be passed to init()
+ var rng_psize = 256;
+
+ BigInteger.SecureRandom = SecureRandom;
+ BigInteger.BigInteger = BigInteger;
+ if (true) {
+ exports = module.exports = BigInteger;
+ } else {}
+
+}).call(this);
+
+
+/***/ }),
+
+/***/ 46123:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+const path = __nccwpck_require__(71017);
+const fs = (__nccwpck_require__(57147).promises);
+const vm = __nccwpck_require__(26144);
+const toughCookie = __nccwpck_require__(47372);
+const sniffHTMLEncoding = __nccwpck_require__(15487);
+const whatwgURL = __nccwpck_require__(66365);
+const whatwgEncoding = __nccwpck_require__(49967);
+const { URL } = __nccwpck_require__(66365);
+const MIMEType = __nccwpck_require__(59488);
+const idlUtils = __nccwpck_require__(34908);
+const VirtualConsole = __nccwpck_require__(57704);
+const { createWindow } = __nccwpck_require__(55802);
+const { parseIntoDocument } = __nccwpck_require__(35373);
+const { fragmentSerialization } = __nccwpck_require__(33740);
+const ResourceLoader = __nccwpck_require__(90007);
+const NoOpResourceLoader = __nccwpck_require__(5383);
+
+class CookieJar extends toughCookie.CookieJar {
+ constructor(store, options) {
+ // jsdom cookie jars must be loose by default
+ super(store, { looseMode: true, ...options });
}
- /** Helper function for sortDocumentOrder. Returns a list of indices, from the
- * node to the root, of positions within parent.
- * For convenience, the node is the first element of the array.
- */
- function addressVector(node) {
- var r = [node];
- if (null != node.ownerElement) {
- node = node.ownerElement;
- r.push(-1);
- }
- while (null != node) {
- var i = 0;
- while (null != node.previousSibling) {
- node = node.previousSibling;
- i++;
- }
- r.push(i);
- node = node.parentNode
- }
- return r;
+}
+
+const window = Symbol("window");
+let sharedFragmentDocument = null;
+
+class JSDOM {
+ constructor(input = "", options = {}) {
+ const mimeType = new MIMEType(options.contentType === undefined ? "text/html" : options.contentType);
+ const { html, encoding } = normalizeHTML(input, mimeType);
+
+ options = transformOptions(options, encoding, mimeType);
+
+ this[window] = createWindow(options.windowOptions);
+
+ const documentImpl = idlUtils.implForWrapper(this[window]._document);
+
+ options.beforeParse(this[window]._globalProxy);
+
+ parseIntoDocument(html, documentImpl);
+
+ documentImpl.close();
}
- function addressComparator(a, b) {
- var minlen = Math.min(a.length - 1, b.length - 1), // not including [0]=node
- alen = a.length,
- blen = b.length;
- if (a[0] === b[0]) return 0;
- var c;
- for (var i = 0; i < minlen; ++i) {
- c = a[alen - i - 1] - b[blen - i - 1];
- if (0 !== c)
- break;
- }
- if (null == c || 0 === c) {
- // All equal until one of the nodes. The longer one is the descendant.
- c = alen - blen;
- }
- if (0 === c)
- c = getNodeName(a) - getNodeName(b);
- if (0 === c)
- c = 1;
- return c;
+
+ get window() {
+ // It's important to grab the global proxy, instead of just the result of `createWindow(...)`, since otherwise
+ // things like `window.eval` don't exist.
+ return this[window]._globalProxy;
}
- var sortUniqDocumentOrder = xpath.sortUniqDocumentOrder = function(nodes) {
- var a = [];
- for (var i = 0; i < nodes.length; i++) {
- var node = nodes[i];
- var v = addressVector(node);
- a.push(v);
+
+ get virtualConsole() {
+ return this[window]._virtualConsole;
+ }
+
+ get cookieJar() {
+ // TODO NEWAPI move _cookieJar to window probably
+ return idlUtils.implForWrapper(this[window]._document)._cookieJar;
+ }
+
+ serialize() {
+ return fragmentSerialization(idlUtils.implForWrapper(this[window]._document), { requireWellFormed: false });
+ }
+
+ nodeLocation(node) {
+ if (!idlUtils.implForWrapper(this[window]._document)._parseOptions.sourceCodeLocationInfo) {
+ throw new Error("Location information was not saved for this jsdom. Use includeNodeLocations during creation.");
}
- a.sort(addressComparator);
- var b = [];
- for (var i = 0; i < a.length; i++) {
- if (0 < i && a[i][0] === a[i - 1][0])
- continue;
- b.push(a[i][0]);
+
+ return idlUtils.implForWrapper(node).sourceCodeLocation;
+ }
+
+ getInternalVMContext() {
+ if (!vm.isContext(this[window])) {
+ throw new TypeError("This jsdom was not configured to allow script running. " +
+ "Use the runScripts option during creation.");
}
- return b;
+
+ return this[window];
}
- /** Sort node multiset. Does not do any de-duping. */
- function sortNodeMultiSet(nodeMultiSet) {
- var a = [];
- for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
- var v = addressVector(nodeMultiSet.nodes[i]);
- a.push({v:v, n:nodeMultiSet.nodes[i],
- p:nodeMultiSet.pos[i], l:nodeMultiSet.lasts[i]});
+
+ reconfigure(settings) {
+ if ("windowTop" in settings) {
+ this[window]._top = settings.windowTop;
}
- a.sort(compare);
- var r = {nodes:[], pos:[], lasts:[]};
- for (var i = 0; i < a.length; ++i) {
- r.nodes.push(a[i].n);
- r.pos.push(a[i].p);
- r.lasts.push(a[i].l);
+
+ if ("url" in settings) {
+ const document = idlUtils.implForWrapper(this[window]._document);
+
+ const url = whatwgURL.parseURL(settings.url);
+ if (url === null) {
+ throw new TypeError(`Could not parse "${settings.url}" as a URL`);
+ }
+
+ document._URL = url;
+ document._origin = whatwgURL.serializeURLOrigin(document._URL);
}
- function compare(x, y) {
- return addressComparator(x.v, y.v);
+ }
+
+ static fragment(string = "") {
+ if (!sharedFragmentDocument) {
+ sharedFragmentDocument = (new JSDOM()).window.document;
}
- return r;
+
+ const template = sharedFragmentDocument.createElement("template");
+ template.innerHTML = string;
+ return template.content;
}
- /** Returns an array containing all the ancestors down to a node.
- * The array starts with document.
- */
- function nodeAndAncestors(node) {
- var ancestors = [node];
- var p = node;
- while (p = p.parentNode || p.ownerElement) {
- ancestors.unshift(p);
+
+ static fromURL(url, options = {}) {
+ return Promise.resolve().then(() => {
+ // Remove the hash while sending this through the research loader fetch().
+ // It gets added back a few lines down when constructing the JSDOM object.
+ const parsedURL = new URL(url);
+ const originalHash = parsedURL.hash;
+ parsedURL.hash = "";
+ url = parsedURL.href;
+
+ options = normalizeFromURLOptions(options);
+
+ const resourceLoader = resourcesToResourceLoader(options.resources);
+ const resourceLoaderForInitialRequest = resourceLoader.constructor === NoOpResourceLoader ?
+ new ResourceLoader() :
+ resourceLoader;
+
+ const req = resourceLoaderForInitialRequest.fetch(url, {
+ accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ cookieJar: options.cookieJar,
+ referrer: options.referrer
+ });
+
+ return req.then(body => {
+ const res = req.response;
+
+ options = Object.assign(options, {
+ url: req.href + originalHash,
+ contentType: res.headers["content-type"],
+ referrer: req.getHeader("referer")
+ });
+
+ return new JSDOM(body, options);
+ });
+ });
+ }
+
+ static async fromFile(filename, options = {}) {
+ options = normalizeFromFileOptions(filename, options);
+ const buffer = await fs.readFile(filename);
+
+ return new JSDOM(buffer, options);
+ }
+}
+
+function normalizeFromURLOptions(options) {
+ // Checks on options that are invalid for `fromURL`
+ if (options.url !== undefined) {
+ throw new TypeError("Cannot supply a url option when using fromURL");
+ }
+ if (options.contentType !== undefined) {
+ throw new TypeError("Cannot supply a contentType option when using fromURL");
+ }
+
+ // Normalization of options which must be done before the rest of the fromURL code can use them, because they are
+ // given to request()
+ const normalized = { ...options };
+
+ if (options.referrer !== undefined) {
+ normalized.referrer = (new URL(options.referrer)).href;
+ }
+
+ if (options.cookieJar === undefined) {
+ normalized.cookieJar = new CookieJar();
+ }
+
+ return normalized;
+
+ // All other options don't need to be processed yet, and can be taken care of in the normal course of things when
+ // `fromURL` calls `new JSDOM(html, options)`.
+}
+
+function normalizeFromFileOptions(filename, options) {
+ const normalized = { ...options };
+
+ if (normalized.contentType === undefined) {
+ const extname = path.extname(filename);
+ if (extname === ".xhtml" || extname === ".xht" || extname === ".xml") {
+ normalized.contentType = "application/xhtml+xml";
}
- return ancestors;
}
- function compareSiblings(a, b) {
- if (a === b) return 0;
- var c = a;
- while (c = c.previousSibling) {
- if (c === b)
- return 1; // b < a
+
+ if (normalized.url === undefined) {
+ normalized.url = new URL("file:" + path.resolve(filename));
+ }
+
+ return normalized;
+}
+
+function transformOptions(options, encoding, mimeType) {
+ const transformed = {
+ windowOptions: {
+ // Defaults
+ url: "about:blank",
+ referrer: "",
+ contentType: "text/html",
+ parsingMode: "html",
+ parseOptions: {
+ sourceCodeLocationInfo: false,
+ scriptingEnabled: false
+ },
+ runScripts: undefined,
+ encoding,
+ pretendToBeVisual: false,
+ storageQuota: 5000000,
+
+ // Defaults filled in later
+ resourceLoader: undefined,
+ virtualConsole: undefined,
+ cookieJar: undefined
+ },
+
+ // Defaults
+ beforeParse() { }
+ };
+
+ // options.contentType was parsed into mimeType by the caller.
+ if (!mimeType.isHTML() && !mimeType.isXML()) {
+ throw new RangeError(`The given content type of "${options.contentType}" was not a HTML or XML content type`);
+ }
+
+ transformed.windowOptions.contentType = mimeType.essence;
+ transformed.windowOptions.parsingMode = mimeType.isHTML() ? "html" : "xml";
+
+ if (options.url !== undefined) {
+ transformed.windowOptions.url = (new URL(options.url)).href;
+ }
+
+ if (options.referrer !== undefined) {
+ transformed.windowOptions.referrer = (new URL(options.referrer)).href;
+ }
+
+ if (options.includeNodeLocations) {
+ if (transformed.windowOptions.parsingMode === "xml") {
+ throw new TypeError("Cannot set includeNodeLocations to true with an XML content type");
}
- c = b;
- while (c = c.previousSibling) {
- if (c === a)
- return -1; // a < b
+
+ transformed.windowOptions.parseOptions = { sourceCodeLocationInfo: true };
+ }
+
+ transformed.windowOptions.cookieJar = options.cookieJar === undefined ?
+ new CookieJar() :
+ options.cookieJar;
+
+ transformed.windowOptions.virtualConsole = options.virtualConsole === undefined ?
+ (new VirtualConsole()).sendTo(console) :
+ options.virtualConsole;
+
+ if (!(transformed.windowOptions.virtualConsole instanceof VirtualConsole)) {
+ throw new TypeError("virtualConsole must be an instance of VirtualConsole");
+ }
+
+ transformed.windowOptions.resourceLoader = resourcesToResourceLoader(options.resources);
+
+ if (options.runScripts !== undefined) {
+ transformed.windowOptions.runScripts = String(options.runScripts);
+ if (transformed.windowOptions.runScripts === "dangerously") {
+ transformed.windowOptions.parseOptions.scriptingEnabled = true;
+ } else if (transformed.windowOptions.runScripts !== "outside-only") {
+ throw new RangeError(`runScripts must be undefined, "dangerously", or "outside-only"`);
}
- throw new Error('a and b are not siblings: ' + xpath.stringifyObject(a) + ' vs ' + xpath.stringifyObject(b));
}
- /** The merge in merge-sort.*/
- function mergeNodeLists(x, y) {
- var a, b, aanc, banc, r = [];
- if ('object' !== typeof x)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Invalid LHS for | operator ' +
- '(expected node-set): ' + x);
- if ('object' !== typeof y)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Invalid LHS for | operator ' +
- '(expected node-set): ' + y);
- while (true) {
- if (null == a) {
- a = x.shift();
- if (null != a)
- aanc = addressVector(a);
- }
- if (null == b) {
- b = y.shift();
- if (null != b)
- banc = addressVector(b);
- }
- if (null == a || null == b) break;
- var c = addressComparator(aanc, banc);
- if (c < 0) {
- r.push(a);
- a = null;
- aanc = null;
- } else if (c > 0) {
- r.push(b);
- b = null;
- banc = null;
- } else if (getNodeName(a) < getNodeName(b)) { // attributes
- r.push(a);
- a = null;
- aanc = null;
- } else if (getNodeName(a) > getNodeName(b)) { // attributes
- r.push(b);
- b = null;
- banc = null;
- } else if (a !== b) {
- // choose b arbitrarily
- r.push(b);
- b = null;
- banc = null;
- } else {
- console.assert(a === b, c);
- // just skip b without pushing it.
- b = null;
- banc = null;
- }
+
+ if (options.beforeParse !== undefined) {
+ transformed.beforeParse = options.beforeParse;
+ }
+
+ if (options.pretendToBeVisual !== undefined) {
+ transformed.windowOptions.pretendToBeVisual = Boolean(options.pretendToBeVisual);
+ }
+
+ if (options.storageQuota !== undefined) {
+ transformed.windowOptions.storageQuota = Number(options.storageQuota);
+ }
+
+ return transformed;
+}
+
+function normalizeHTML(html, mimeType) {
+ let encoding = "UTF-8";
+
+ if (ArrayBuffer.isView(html)) {
+ html = Buffer.from(html.buffer, html.byteOffset, html.byteLength);
+ } else if (html instanceof ArrayBuffer) {
+ html = Buffer.from(html);
+ }
+
+ if (Buffer.isBuffer(html)) {
+ encoding = sniffHTMLEncoding(html, {
+ defaultEncoding: mimeType.isXML() ? "UTF-8" : "windows-1252",
+ transportLayerEncodingLabel: mimeType.parameters.get("charset")
+ });
+ html = whatwgEncoding.decode(html, encoding);
+ } else {
+ html = String(html);
+ }
+
+ return { html, encoding };
+}
+
+function resourcesToResourceLoader(resources) {
+ switch (resources) {
+ case undefined: {
+ return new NoOpResourceLoader();
}
- while (a) {
- r.push(a);
- a = x.shift();
+ case "usable": {
+ return new ResourceLoader();
}
- while (b) {
- r.push(b);
- b = y.shift();
+ default: {
+ if (!(resources instanceof ResourceLoader)) {
+ throw new TypeError("resources must be an instance of ResourceLoader");
+ }
+ return resources;
}
- return r;
}
- function comparisonHelper(test, x, y, isNumericComparison) {
- var coersion;
- if (isNumericComparison)
- coersion = fn.number;
- else coersion =
- 'boolean' === typeof x || 'boolean' === typeof y ? fn['boolean'] :
- 'number' === typeof x || 'number' === typeof y ? fn.number :
- fn.string;
- if ('object' === typeof x && 'object' === typeof y) {
- var aMap = {};
- for (var i = 0; i < x.nodes.length; ++i) {
- var xi = coersion({nodes:[x.nodes[i]]});
- for (var j = 0; j < y.nodes.length; ++j) {
- var yj = coersion({nodes:[y.nodes[j]]});
- if (test(xi, yj)) return true;
- }
- }
- return false;
- } else if ('object' === typeof x && x.nodes && x.nodes.length) {
- for (var i = 0; i < x.nodes.length; ++i) {
- var xi = coersion({nodes:[x.nodes[i]]}), yc = coersion(y);
- if (test(xi, yc))
- return true;
+}
+
+exports.JSDOM = JSDOM;
+
+exports.VirtualConsole = VirtualConsole;
+exports.CookieJar = CookieJar;
+exports.ResourceLoader = ResourceLoader;
+
+exports.toughCookie = toughCookie;
+
+
+/***/ }),
+
+/***/ 55802:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+const vm = __nccwpck_require__(26144);
+const webIDLConversions = __nccwpck_require__(54886);
+const { CSSStyleDeclaration } = __nccwpck_require__(15674);
+const { Performance: RawPerformance } = __nccwpck_require__(38481);
+const notImplemented = __nccwpck_require__(42751);
+const { installInterfaces } = __nccwpck_require__(71643);
+const { define, mixin } = __nccwpck_require__(11463);
+const Element = __nccwpck_require__(4444);
+const EventTarget = __nccwpck_require__(71038);
+const EventHandlerNonNull = __nccwpck_require__(23129);
+const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
+const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
+const PageTransitionEvent = __nccwpck_require__(32941);
+const namedPropertiesWindow = __nccwpck_require__(15200);
+const postMessage = __nccwpck_require__(47054);
+const DOMException = __nccwpck_require__(57617);
+const { btoa, atob } = __nccwpck_require__(75696);
+const idlUtils = __nccwpck_require__(34908);
+const WebSocketImpl = (__nccwpck_require__(13846).implementation);
+const BarProp = __nccwpck_require__(35849);
+const documents = __nccwpck_require__(19951);
+const External = __nccwpck_require__(19995);
+const Navigator = __nccwpck_require__(96340);
+const Performance = __nccwpck_require__(19264);
+const Screen = __nccwpck_require__(46164);
+const Storage = __nccwpck_require__(76969);
+const Selection = __nccwpck_require__(69144);
+const reportException = __nccwpck_require__(15612);
+const { getCurrentEventHandlerValue } = __nccwpck_require__(50238);
+const { fireAnEvent } = __nccwpck_require__(45673);
+const SessionHistory = __nccwpck_require__(14825);
+const { forEachMatchingSheetRuleOfElement, getResolvedValue, propertiesWithResolvedValueImplemented,
+ SHADOW_DOM_PSEUDO_REGEXP } = __nccwpck_require__(11627);
+const CustomElementRegistry = __nccwpck_require__(17609);
+const jsGlobals = __nccwpck_require__(40264);
+
+const GlobalEventHandlersImpl = (__nccwpck_require__(4084).implementation);
+const WindowEventHandlersImpl = (__nccwpck_require__(55974).implementation);
+
+const events = new Set([
+ // GlobalEventHandlers
+ "abort", "autocomplete",
+ "autocompleteerror", "blur",
+ "cancel", "canplay", "canplaythrough",
+ "change", "click",
+ "close", "contextmenu",
+ "cuechange", "dblclick",
+ "drag", "dragend",
+ "dragenter",
+ "dragleave", "dragover",
+ "dragstart", "drop",
+ "durationchange", "emptied",
+ "ended", "focus",
+ "input", "invalid",
+ "keydown", "keypress",
+ "keyup", "load", "loadeddata",
+ "loadedmetadata", "loadstart",
+ "mousedown", "mouseenter",
+ "mouseleave", "mousemove",
+ "mouseout", "mouseover",
+ "mouseup", "wheel",
+ "pause", "play",
+ "playing", "progress",
+ "ratechange", "reset",
+ "resize", "scroll",
+ "securitypolicyviolation",
+ "seeked", "seeking",
+ "select", "sort", "stalled",
+ "submit", "suspend",
+ "timeupdate", "toggle",
+ "volumechange", "waiting",
+
+ // WindowEventHandlers
+ "afterprint",
+ "beforeprint",
+ "hashchange",
+ "languagechange",
+ "message",
+ "messageerror",
+ "offline",
+ "online",
+ "pagehide",
+ "pageshow",
+ "popstate",
+ "rejectionhandled",
+ "storage",
+ "unhandledrejection",
+ "unload"
+
+ // "error" and "beforeunload" are added separately
+]);
+
+exports.createWindow = function (options) {
+ return new Window(options);
+};
+
+const jsGlobalEntriesToInstall = Object.entries(jsGlobals).filter(([name]) => name in global);
+
+// TODO remove when we drop Node v10 support.
+const anyNodeVersionQueueMicrotask = typeof queueMicrotask === "function" ? queueMicrotask : process.nextTick;
+
+// https://html.spec.whatwg.org/#the-window-object
+function setupWindow(windowInstance, { runScripts }) {
+ if (runScripts === "outside-only" || runScripts === "dangerously") {
+ contextifyWindow(windowInstance);
+
+ // Without this, these globals will only appear to scripts running inside the context using vm.runScript; they will
+ // not appear to scripts running from the outside, including to JSDOM implementation code.
+ for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
+ const propDesc = { ...globalPropDesc, value: vm.runInContext(globalName, windowInstance) };
+ Object.defineProperty(windowInstance, globalName, propDesc);
+ }
+ } else {
+ // Without contextifying the window, none of the globals will exist. So, let's at least alias them from the Node.js
+ // context. See https://github.com/jsdom/jsdom/issues/2727 for more background and discussion.
+ for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
+ const propDesc = { ...globalPropDesc, value: global[globalName] };
+ Object.defineProperty(windowInstance, globalName, propDesc);
+ }
+ }
+
+ installInterfaces(windowInstance, ["Window"]);
+
+ const EventTargetConstructor = windowInstance.EventTarget;
+
+ // eslint-disable-next-line func-name-matching, func-style, no-shadow
+ const windowConstructor = function Window() {
+ throw new TypeError("Illegal constructor");
+ };
+ Object.setPrototypeOf(windowConstructor, EventTargetConstructor);
+
+ Object.defineProperty(windowInstance, "Window", {
+ configurable: true,
+ writable: true,
+ value: windowConstructor
+ });
+
+ const windowPrototype = Object.create(EventTargetConstructor.prototype);
+ Object.defineProperties(windowPrototype, {
+ constructor: {
+ value: windowConstructor,
+ writable: true,
+ configurable: true
+ },
+ [Symbol.toStringTag]: {
+ value: "Window",
+ configurable: true
+ }
+ });
+
+ windowConstructor.prototype = windowPrototype;
+ Object.setPrototypeOf(windowInstance, windowPrototype);
+
+ EventTarget.setup(windowInstance, windowInstance);
+ mixin(windowInstance, WindowEventHandlersImpl.prototype);
+ mixin(windowInstance, GlobalEventHandlersImpl.prototype);
+ windowInstance._initGlobalEvents();
+
+ Object.defineProperty(windowInstance, "onbeforeunload", {
+ configurable: true,
+ enumerable: true,
+ get() {
+ return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "beforeunload"));
+ },
+ set(V) {
+ if (!idlUtils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onbeforeunload' property on 'Window': The provided value"
+ });
}
- return false;
- } else if ('object' === typeof y && x.nodes && x.nodes.length) {
- for (var i = 0; i < x.nodes.length; ++i) {
- var yi = coersion({nodes:[y.nodes[i]]}), xc = coersion(x);
- if (test(xc, yi))
- return true;
+ this._setEventHandlerFor("beforeunload", V);
+ }
+ });
+
+ Object.defineProperty(windowInstance, "onerror", {
+ configurable: true,
+ enumerable: true,
+ get() {
+ return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "error"));
+ },
+ set(V) {
+ if (!idlUtils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnErrorEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onerror' property on 'Window': The provided value"
+ });
}
- return false;
- } else {
- var xc = coersion(x), yc = coersion(y);
- return test(xc, yc);
+ this._setEventHandlerFor("error", V);
}
- }
- var axes = xpath.axes = {
- 'ancestor':
- function ancestor(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return ancestorHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
- },
- 'ancestor-or-self':
- function ancestorOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return ancestorHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
+ });
+
+ for (const event of events) {
+ Object.defineProperty(windowInstance, `on${event}`, {
+ configurable: true,
+ enumerable: true,
+ get() {
+ return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, event));
},
- 'attribute':
- function attribute(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- // TODO: figure out whether positions should be undefined here.
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- if (null != nodeName) {
- // TODO: with namespace
- for (var i = 0; i < nodeList.length; ++i) {
- var node = nodeList[i];
- if (null == node.getAttributeNode)
- continue; // only Element has .getAttributeNode
- var attr = node.getAttributeNode(nodeName);
- if (null != attr && matcher.matches(attr)) {
- nodeMultiSet.pushSeries();
- nodeMultiSet.addNode(attr);
- nodeMultiSet.popSeries();
- }
- }
+ set(V) {
+ if (!idlUtils.isObject(V)) {
+ V = null;
} else {
- for (var i = 0; i < nodeList.length; ++i) {
- var node = nodeList[i];
- if (null != node.attributes) {
- nodeMultiSet.pushSeries();
- for (var j = 0; j < node.attributes.length; j++) { // all nodes have .attributes
- var attr = node.attributes[j];
- if (matcher.matches(attr)) // TODO: I think this check is unnecessary
- nodeMultiSet.addNode(attr);
- }
- nodeMultiSet.popSeries();
- }
- }
- }
- return nodeMultiSet.finalize();
- },
- 'child':
- function child(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- for (var i = 0; i < nodeList.length; ++i) {
- var n = nodeList[i];
- if (n.ownerElement) // skip attribute nodes' text child.
- continue;
- if (n.childNodes) {
- nodeMultiSet.pushSeries();
- var childList = 1 === nodeTypeNum && null != n.children ?
- n.children : n.childNodes;
- for (var j = 0; j < childList.length; ++j) {
- var child = childList[j];
- if (matcher.matches(child)) {
- nodeMultiSet.addNode(child);
- }
- // don't have to do de-duping because children have parent,
- // which are current context.
- }
- nodeMultiSet.popSeries();
- }
- }
- nodeMultiSet.finalize();
- return sortNodeMultiSet(nodeMultiSet);
- },
- 'descendant':
- function descenant(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return descenantHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
- },
- 'descendant-or-self':
- function descenantOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return descenantHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
- },
- 'following':
- function following(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
- },
- 'following-sibling':
- function followingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return followingSiblingHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
- Array.prototype.shift, function() {return this[0];},
- function(node) {return node.nextSibling;});
- },
- 'namespace':
- function namespace(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- // TODO
- },
- 'parent':
- function parent(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodes = [], pos = [];
- for (var i = 0; i < nodeList.length; ++i) {
- var parent = nodeList[i].parentNode || nodeList[i].ownerElement;
- if (null == parent)
- continue;
- if (!matcher.matches(parent))
- continue;
- if (nodes.length > 0 && parent === nodes[nodes.length-1])
- continue;
- nodes.push(parent);
- pos.push([1]);
- }
- return {nodes:nodes, pos:pos, lasts:pos};
- },
- 'preceding':
- function preceding(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return precedingHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
- },
- 'preceding-sibling':
- function precedingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return followingSiblingHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
- Array.prototype.pop, function() {return this[this.length-1];},
- function(node) {return node.previousSibling},
- false, true);
- },
- 'self':
- function self(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var nodes = [], pos = [];
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- for (var i = 0; i < nodeList.length; ++i) {
- if (matcher.matches(nodeList[i])) {
- nodes.push(nodeList[i]);
- pos.push([1]);
- }
+ V = EventHandlerNonNull.convert(V, {
+ context: `Failed to set the 'on${event}' property on 'Window': The provided value`
+ });
}
- return {nodes: nodes, pos: pos, lasts: pos}
+ this._setEventHandlerFor(event, V);
+ }
+ });
+ }
+
+ windowInstance._globalObject = windowInstance;
+}
+
+// NOTE: per https://heycam.github.io/webidl/#Global, all properties on the Window object must be own-properties.
+// That is why we assign everything inside of the constructor, instead of using a shared prototype.
+// You can verify this in e.g. Firefox or Internet Explorer, which do a good job with Web IDL compliance.
+function Window(options) {
+ setupWindow(this, { runScripts: options.runScripts });
+
+ const rawPerformance = new RawPerformance();
+ const windowInitialized = rawPerformance.now();
+
+ const window = this;
+
+ // ### PRIVATE DATA PROPERTIES
+
+ this._resourceLoader = options.resourceLoader;
+
+ // vm initialization is deferred until script processing is activated
+ this._globalProxy = this;
+ Object.defineProperty(idlUtils.implForWrapper(this), idlUtils.wrapperSymbol, { get: () => this._globalProxy });
+
+ // List options explicitly to be clear which are passed through
+ this._document = documents.createWrapper(window, {
+ parsingMode: options.parsingMode,
+ contentType: options.contentType,
+ encoding: options.encoding,
+ cookieJar: options.cookieJar,
+ url: options.url,
+ lastModified: options.lastModified,
+ referrer: options.referrer,
+ parseOptions: options.parseOptions,
+ defaultView: this._globalProxy,
+ global: this,
+ parentOrigin: options.parentOrigin
+ }, { alwaysUseDocumentClass: true });
+
+ if (vm.isContext(window)) {
+ const documentImpl = idlUtils.implForWrapper(window._document);
+ documentImpl._defaultView = window._globalProxy = vm.runInContext("this", window);
+ }
+
+ const documentOrigin = idlUtils.implForWrapper(this._document)._origin;
+ this._origin = documentOrigin;
+
+ // https://html.spec.whatwg.org/#session-history
+ this._sessionHistory = new SessionHistory({
+ document: idlUtils.implForWrapper(this._document),
+ url: idlUtils.implForWrapper(this._document)._URL,
+ stateObject: null
+ }, this);
+
+ this._virtualConsole = options.virtualConsole;
+
+ this._runScripts = options.runScripts;
+
+ // Set up the window as if it's a top level window.
+ // If it's not, then references will be corrected by frame/iframe code.
+ this._parent = this._top = this._globalProxy;
+ this._frameElement = null;
+
+ // This implements window.frames.length, since window.frames returns a
+ // self reference to the window object. This value is incremented in the
+ // HTMLFrameElement implementation.
+ this._length = 0;
+
+ // https://dom.spec.whatwg.org/#window-current-event
+ this._currentEvent = undefined;
+
+ this._pretendToBeVisual = options.pretendToBeVisual;
+ this._storageQuota = options.storageQuota;
+
+ // Some properties (such as localStorage and sessionStorage) share data
+ // between windows in the same origin. This object is intended
+ // to contain such data.
+ if (options.commonForOrigin && options.commonForOrigin[documentOrigin]) {
+ this._commonForOrigin = options.commonForOrigin;
+ } else {
+ this._commonForOrigin = {
+ [documentOrigin]: {
+ localStorageArea: new Map(),
+ sessionStorageArea: new Map(),
+ windowsInSameOrigin: [this]
}
+ };
+ }
+
+ this._currentOriginData = this._commonForOrigin[documentOrigin];
+
+ // ### WEB STORAGE
+
+ this._localStorage = Storage.create(window, [], {
+ associatedWindow: this,
+ storageArea: this._currentOriginData.localStorageArea,
+ type: "localStorage",
+ url: this._document.documentURI,
+ storageQuota: this._storageQuota
+ });
+ this._sessionStorage = Storage.create(window, [], {
+ associatedWindow: this,
+ storageArea: this._currentOriginData.sessionStorageArea,
+ type: "sessionStorage",
+ url: this._document.documentURI,
+ storageQuota: this._storageQuota
+ });
+
+ // ### SELECTION
+
+ // https://w3c.github.io/selection-api/#dfn-selection
+ this._selection = Selection.createImpl(window);
+
+ // https://w3c.github.io/selection-api/#dom-window
+ this.getSelection = function () {
+ return window._selection;
};
- /***************************************************************************
- * Evaluation: functions *
- ***************************************************************************/
- var fn = {
- 'number': function number(optObject) {
- if ('number' === typeof optObject)
- return optObject;
- if ('string' === typeof optObject)
- return parseFloat(optObject); // note: parseFloat(' ') -> NaN, unlike +' ' -> 0.
- if ('boolean' === typeof optObject)
- return +optObject;
- return fn.number(fn.string.call(this, optObject)); // for node-sets
- },
- 'string': function string(optObject) {
- if (null == optObject)
- return fn.string(this);
- if ('string' === typeof optObject || 'boolean' === typeof optObject ||
- 'number' === typeof optObject)
- return '' + optObject;
- if (0 == optObject.nodes.length) return '';
- if (null != optObject.nodes[0].textContent)
- return optObject.nodes[0].textContent;
- return optObject.nodes[0].nodeValue;
- },
- 'boolean': function booleanVal(x) {
- return 'object' === typeof x ? x.nodes.length > 0 : !!x;
+ // ### GETTERS
+
+ const locationbar = BarProp.create(window);
+ const menubar = BarProp.create(window);
+ const personalbar = BarProp.create(window);
+ const scrollbars = BarProp.create(window);
+ const statusbar = BarProp.create(window);
+ const toolbar = BarProp.create(window);
+ const external = External.create(window);
+ const navigator = Navigator.create(window, [], { userAgent: this._resourceLoader._userAgent });
+ const performance = Performance.create(window, [], { rawPerformance });
+ const screen = Screen.create(window);
+ const customElementRegistry = CustomElementRegistry.create(window);
+
+ define(this, {
+ get length() {
+ return window._length;
},
- 'last': function last() {
- console.assert(Array.isArray(this.pos));
- console.assert(Array.isArray(this.lasts));
- console.assert(1 === this.pos.length);
- console.assert(1 === this.lasts.length);
- console.assert(1 === this.lasts[0].length);
- return this.lasts[0][0];
+ get window() {
+ return window._globalProxy;
},
- 'position': function position() {
- console.assert(Array.isArray(this.pos));
- console.assert(Array.isArray(this.lasts));
- console.assert(1 === this.pos.length);
- console.assert(1 === this.lasts.length);
- console.assert(1 === this.pos[0].length);
- return this.pos[0][0];
+ get frameElement() {
+ return idlUtils.wrapperForImpl(window._frameElement);
},
- 'count': function count(nodeSet) {
- if ('object' !== typeof nodeSet)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Function count(node-set) ' +
- 'got wrong argument type: ' + nodeSet);
- return nodeSet.nodes.length;
+ get frames() {
+ return window._globalProxy;
},
- 'id': function id(object) {
- var r = {nodes: []};
- var doc = this.nodes[0].ownerDocument || this.nodes[0];
- console.assert(doc);
- var ids;
- if ('object' === typeof object) {
- // for node-sets, map id over each node value.
- ids = [];
- for (var i = 0; i < object.nodes.length; ++i) {
- var idNode = object.nodes[i];
- var idsString = fn.string({nodes:[idNode]});
- var a = idsString.split(/[ \t\r\n]+/g);
- Array.prototype.push.apply(ids, a);
- }
- } else {
- var idsString = fn.string(object);
- var a = idsString.split(/[ \t\r\n]+/g);
- ids = a;
- }
- for (var i = 0; i < ids.length; ++i) {
- var id = ids[i];
- if (0 === id.length)
- continue;
- var node = doc.getElementById(id);
- if (null != node)
- r.nodes.push(node);
- }
- r.nodes = sortUniqDocumentOrder(r.nodes);
- return r;
+ get self() {
+ return window._globalProxy;
},
- 'local-name': function(nodeSet) {
- if (null == nodeSet)
- return fn.name(this);
- if (null == nodeSet.nodes) {
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'argument to name() must be a node-set. got ' + nodeSet);
- }
- // TODO: namespaced version
- return nodeSet.nodes[0].localName;
+ get parent() {
+ return window._parent;
},
- 'namespace-uri': function(nodeSet) {
- // TODO
- throw new Error('not implemented yet');
+ get top() {
+ return window._top;
},
- 'name': function(nodeSet) {
- if (null == nodeSet)
- return fn.name(this);
- if (null == nodeSet.nodes) {
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'argument to name() must be a node-set. got ' + nodeSet);
- }
- return nodeSet.nodes[0].name;
+ get document() {
+ return window._document;
},
- 'concat': function concat(x) {
- var l = [];
- for (var i = 0; i < arguments.length; ++i) {
- l.push(fn.string(arguments[i]));
- }
- return l.join('');
+ get external() {
+ return external;
},
- 'starts-with': function startsWith(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- return as.substr(0, bs.length) === bs;
+ get location() {
+ return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
},
- 'contains': function contains(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- var i = as.indexOf(bs);
- if (-1 === i) return false;
- return true;
+ get history() {
+ return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._history);
},
- 'substring-before': function substringBefore(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- var i = as.indexOf(bs);
- if (-1 === i) return '';
- return as.substr(0, i);
+ get navigator() {
+ return navigator;
},
- 'substring-after': function substringBefore(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- var i = as.indexOf(bs);
- if (-1 === i) return '';
- return as.substr(i + bs.length);
+ get locationbar() {
+ return locationbar;
},
- 'substring': function substring(string, start, optEnd) {
- if (null == string || null == start) {
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Must be at least 2 arguments to string()');
- }
- var sString = fn.string(string),
- iStart = fn.round(start),
- iEnd = optEnd == null ? null : fn.round(optEnd);
- // Note that xpath string positions user 1-based index
- if (iEnd == null)
- return sString.substr(iStart - 1);
- else
- return sString.substr(iStart - 1, iEnd);
+ get menubar() {
+ return menubar;
},
- 'string-length': function stringLength(optString) {
- return fn.string.call(this, optString).length;
+ get personalbar() {
+ return personalbar;
},
- 'normalize-space': function normalizeSpace(optString) {
- var s = fn.string.call(this, optString);
- return s.replace(/[ \t\r\n]+/g, ' ').replace(/^ | $/g, '');
+ get scrollbars() {
+ return scrollbars;
},
- 'translate': function translate(string, from, to) {
- var sString = fn.string.call(this, string),
- sFrom = fn.string(from),
- sTo = fn.string(to);
- var eachCharRe = [];
- var map = {};
- for (var i = 0; i < sFrom.length; ++i) {
- var c = sFrom.charAt(i);
- map[c] = sTo.charAt(i); // returns '' if beyond length of sTo.
- // copied from goog.string.regExpEscape in the Closure library.
- eachCharRe.push(
- c.replace(/([-()\[\]{}+?*.$\^|,:#': function(x, y) {
- return comparisonHelper(function(x, y) { return fn.number(x) > fn.number(y);}, x, y, true);
+ get sessionStorage() {
+ if (idlUtils.implForWrapper(this._document)._origin === "null") {
+ throw DOMException.create(window, [
+ "sessionStorage is not available for opaque origins",
+ "SecurityError"
+ ]);
+ }
+
+ return this._sessionStorage;
},
- '>=': function(x, y) {
- return comparisonHelper(function(x, y) { return fn.number(x) >= fn.number(y);}, x, y, true);
+ get customElements() {
+ return customElementRegistry;
},
- 'and': function(x, y) { return fn['boolean'](x) && fn['boolean'](y); },
- 'or': function(x, y) { return fn['boolean'](x) || fn['boolean'](y); },
- '|': function(x, y) { return {nodes: mergeNodeLists(x.nodes, y.nodes)}; },
- '=': function(x, y) {
- // optimization for two node-sets case: avoid n^2 comparisons.
- if ('object' === typeof x && 'object' === typeof y) {
- var aMap = {};
- for (var i = 0; i < x.nodes.length; ++i) {
- var s = fn.string({nodes:[x.nodes[i]]});
- aMap[s] = true;
- }
- for (var i = 0; i < y.nodes.length; ++i) {
- var s = fn.string({nodes:[y.nodes[i]]});
- if (aMap[s]) return true;
- }
- return false;
- } else {
- return comparisonHelper(function(x, y) {return x === y;}, x, y);
- }
+ get event() {
+ return window._currentEvent ? idlUtils.wrapperForImpl(window._currentEvent) : undefined;
},
- '!=': function(x, y) {
- // optimization for two node-sets case: avoid n^2 comparisons.
- if ('object' === typeof x && 'object' === typeof y) {
- if (0 === x.nodes.length || 0 === y.nodes.length) return false;
- var aMap = {};
- for (var i = 0; i < x.nodes.length; ++i) {
- var s = fn.string({nodes:[x.nodes[i]]});
- aMap[s] = true;
- }
- for (var i = 0; i < y.nodes.length; ++i) {
- var s = fn.string({nodes:[y.nodes[i]]});
- if (!aMap[s]) return true;
- }
- return false;
- } else {
- return comparisonHelper(function(x, y) {return x !== y;}, x, y);
- }
+ set event(value) {
+ Object.defineProperty(window, "event", { configurable: true, enumerable: true, writable: true, value });
+ }
+ });
+
+ namedPropertiesWindow.initializeWindow(this, this._globalProxy);
+
+ // ### METHODS
+
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
+
+ // In the spec the list of active timers is a set of IDs. We make it a map of IDs to Node.js timer objects, so that
+ // we can call Node.js-side clearTimeout() when clearing, and thus allow process shutdown faster.
+ const listOfActiveTimers = new Map();
+ let latestTimerId = 0;
+
+ this.setTimeout = function (handler, timeout = 0, ...args) {
+ if (typeof handler !== "function") {
+ handler = webIDLConversions.DOMString(handler);
}
+ timeout = webIDLConversions.long(timeout);
+
+ return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: false });
};
- var nodeTypes = xpath.nodeTypes = {
- 'node': 0,
- 'attribute': 2,
- 'comment': 8, // this.doc.COMMENT_NODE,
- 'text': 3, // this.doc.TEXT_NODE,
- 'processing-instruction': 7, // this.doc.PROCESSING_INSTRUCTION_NODE,
- 'element': 1 //this.doc.ELEMENT_NODE
+ this.setInterval = function (handler, timeout = 0, ...args) {
+ if (typeof handler !== "function") {
+ handler = webIDLConversions.DOMString(handler);
+ }
+ timeout = webIDLConversions.long(timeout);
+
+ return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: true });
};
- /** For debugging and unit tests: returnjs a stringified version of the
- * argument. */
- var stringifyObject = xpath.stringifyObject = function stringifyObject(ctx) {
- var seenKey = 'seen' + Math.floor(Math.random()*1000000000);
- return JSON.stringify(helper(ctx));
- function helper(ctx) {
- if (Array.isArray(ctx)) {
- return ctx.map(function(x) {return helper(x);});
+ this.clearTimeout = function (handle = 0) {
+ handle = webIDLConversions.long(handle);
+
+ const nodejsTimer = listOfActiveTimers.get(handle);
+ if (nodejsTimer) {
+ clearTimeout(nodejsTimer);
+ listOfActiveTimers.delete(handle);
+ }
+ };
+ this.clearInterval = function (handle = 0) {
+ handle = webIDLConversions.long(handle);
+
+ const nodejsTimer = listOfActiveTimers.get(handle);
+ if (nodejsTimer) {
+ // We use setTimeout() in timerInitializationSteps even for this.setInterval().
+ clearTimeout(nodejsTimer);
+ listOfActiveTimers.delete(handle);
+ }
+ };
+
+ function timerInitializationSteps(handler, timeout, args, { methodContext, repeat, previousHandle }) {
+ // This appears to be unspecced, but matches browser behavior for close()ed windows.
+ if (!methodContext._document) {
+ return 0;
+ }
+
+ // TODO: implement timer nesting level behavior.
+
+ const methodContextProxy = methodContext._globalProxy;
+ const handle = previousHandle !== undefined ? previousHandle : ++latestTimerId;
+
+ function task() {
+ if (!listOfActiveTimers.has(handle)) {
+ return;
}
- if ('object' !== typeof ctx) return ctx;
- if (null == ctx) return ctx;
- // if (ctx.toString) return ctx.toString();
- if (null != ctx.outerHTML) return ctx.outerHTML;
- if (null != ctx.nodeValue) return ctx.nodeName + '=' + ctx.nodeValue;
- if (ctx[seenKey]) return '[circular]';
- ctx[seenKey] = true;
- var nicer = {};
- for (var key in ctx) {
- if (seenKey === key)
- continue;
- try {
- nicer[key] = helper(ctx[key]);
- } catch (e) {
- nicer[key] = '[exception: ' + e.message + ']';
+
+ try {
+ if (typeof handler === "function") {
+ handler.apply(methodContextProxy, args);
+ } else if (window._runScripts === "dangerously") {
+ vm.runInContext(handler, window, { filename: window.location.href, displayErrors: false });
}
+ } catch (e) {
+ reportException(window, e, window.location.href);
}
- delete ctx[seenKey];
- return nicer;
- }
- }
- var Evaluator = xpath.Evaluator = function Evaluator(doc) {
- this.doc = doc;
- }
- Evaluator.prototype = {
- val: function val(ast, ctx) {
- console.assert(ctx.nodes);
- if ('number' === typeof ast || 'string' === typeof ast) return ast;
- if (more[ast[0]]) {
- var evaluatedParams = [];
- for (var i = 1; i < ast.length; ++i) {
- evaluatedParams.push(this.val(ast[i], ctx));
+ if (listOfActiveTimers.has(handle)) {
+ if (repeat) {
+ timerInitializationSteps(handler, timeout, args, { methodContext, repeat: true, previousHandle: handle });
+ } else {
+ listOfActiveTimers.delete(handle);
}
- var r = more[ast[0]].apply(ctx, evaluatedParams);
- return r;
- }
- switch (ast[0]) {
- case 'Root': return {nodes: [this.doc]};
- case 'FunctionCall':
- var functionName = ast[1], functionParams = ast[2];
- if (null == fn[functionName])
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Unknown function: ' + functionName);
- var evaluatedParams = [];
- for (var i = 0; i < functionParams.length; ++i) {
- evaluatedParams.push(this.val(functionParams[i], ctx));
- }
- var r = fn[functionName].apply(ctx, evaluatedParams);
- return r;
- case 'Predicate':
- var lhs = this.val(ast[1], ctx);
- var ret = {nodes: []};
- var contexts = eachContext(lhs);
- for (var i = 0; i < contexts.length; ++i) {
- var singleNodeSet = contexts[i];
- var rhs = this.val(ast[2], singleNodeSet);
- var success;
- if ('number' === typeof rhs) {
- success = rhs === singleNodeSet.pos[0][0];
- } else {
- success = fn['boolean'](rhs);
- }
- if (success) {
- var node = singleNodeSet.nodes[0];
- ret.nodes.push(node);
- // skip over all the rest of the same node.
- while (i+1 < contexts.length && node === contexts[i+1].nodes[0]) {
- i++;
- }
- }
- }
- return ret;
- case 'PathExpr':
- // turn the path into an expressoin; i.e., remove the position
- // information of the last axis.
- var x = this.val(ast[1], ctx);
- // Make the nodeset a forward-direction-only one.
- if (x.finalize) { // it is a NodeMultiSet
- return {nodes: x.nodes};
- } else {
- return x;
- }
- case '/':
- // TODO: don't generate '/' nodes, just Axis nodes.
- var lhs = this.val(ast[1], ctx);
- console.assert(null != lhs);
- var r = this.val(ast[2], lhs);
- console.assert(null != r);
- return r;
- case 'Axis':
- // All the axis tests from Step. We only get AxisSpecifier NodeTest,
- // not the predicate (which is applied later)
- var axis = ast[1],
- nodeType = ast[2],
- nodeTypeNum = nodeTypes[nodeType],
- shouldLowerCase = true, // TODO: give option
- nodeName = ast[3] && shouldLowerCase ? ast[3].toLowerCase() : ast[3];
- nodeName = nodeName === '*' ? null : nodeName;
- if ('object' !== typeof ctx) return {nodes:[], pos:[]};
- var nodeList = ctx.nodes.slice(); // TODO: is copy needed?
- var r = axes[axis](nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
- return r;
}
}
- };
- var evaluate = xpath.evaluate = function evaluate(expr, doc, context) {
- //var astFactory = new AstEvaluatorFactory(doc, context);
- var stream = new Stream(expr);
- var ast = parse(stream, astFactory);
- var val = new Evaluator(doc).val(ast, {nodes: [context]});
- return val;
- }
- /***************************************************************************
- * DOM interface *
- ***************************************************************************/
- var XPathException = xpath.XPathException = function XPathException(code, message) {
- var e = new Error(message);
- e.name = 'XPathException';
- e.code = code;
- return e;
- }
- XPathException.INVALID_EXPRESSION_ERR = 51;
- XPathException.TYPE_ERR = 52;
+ if (timeout < 0) {
+ timeout = 0;
+ }
+ const nodejsTimer = setTimeout(task, timeout);
+ listOfActiveTimers.set(handle, nodejsTimer);
- var XPathEvaluator = xpath.XPathEvaluator = function XPathEvaluator() {}
- XPathEvaluator.prototype = {
- createExpression: function(expression, resolver) {
- return new XPathExpression(expression, resolver);
- },
- createNSResolver: function(nodeResolver) {
- // TODO
- },
- evaluate: function evaluate(expression, contextNode, resolver, type, result) {
- var expr = new XPathExpression(expression, resolver);
- return expr.evaluate(contextNode, type, result);
- }
- };
-
-
- var XPathExpression = xpath.XPathExpression = function XPathExpression(expression, resolver, optDoc) {
- var stream = new Stream(expression);
- this._ast = parse(stream, astFactory);
- this._doc = optDoc;
- }
- XPathExpression.prototype = {
- evaluate: function evaluate(contextNode, type, result) {
- if (null == contextNode.nodeType)
- throw new Error('bad argument (expected context node): ' + contextNode);
- var doc = contextNode.ownerDocument || contextNode;
- if (null != this._doc && this._doc !== doc) {
- throw new core.DOMException(
- core.DOMException.WRONG_DOCUMENT_ERR,
- 'The document must be the same as the context node\'s document.');
- }
- var evaluator = new Evaluator(doc);
- var value = evaluator.val(this._ast, {nodes: [contextNode]});
- if (XPathResult.NUMBER_TYPE === type)
- value = fn.number(value);
- else if (XPathResult.STRING_TYPE === type)
- value = fn.string(value);
- else if (XPathResult.BOOLEAN_TYPE === type)
- value = fn['boolean'](value);
- else if (XPathResult.ANY_TYPE !== type &&
- XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== type &&
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== type &&
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== type &&
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== type &&
- XPathResult.ANY_UNORDERED_NODE_TYPE !== type &&
- XPathResult.FIRST_ORDERED_NODE_TYPE !== type)
- throw new core.DOMException(
- core.DOMException.NOT_SUPPORTED_ERR,
- 'You must provide an XPath result type (0=any).');
- else if (XPathResult.ANY_TYPE !== type &&
- 'object' !== typeof value)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'Value should be a node-set: ' + value);
- return new XPathResult(doc, value, type);
- }
+ return handle;
}
- var XPathResult = xpath.XPathResult = function XPathResult(doc, value, resultType) {
- this._value = value;
- this._resultType = resultType;
- this._i = 0;
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing
- // TODO: we removed mutation events but didn't take care of this. No tests fail, so that's nice, but eventually we
- // should fix this, preferably by entirely replacing our XPath implementation.
- // this._invalidated = false;
- // if (this.resultType === XPathResult.UNORDERED_NODE_ITERATOR_TYPE ||
- // this.resultType === XPathResult.ORDERED_NODE_ITERATOR_TYPE) {
- // doc.addEventListener('DOMSubtreeModified', invalidate, true);
- // var self = this;
- // function invalidate() {
- // self._invalidated = true;
- // doc.removeEventListener('DOMSubtreeModified', invalidate, true);
- // }
- // }
- }
- XPathResult.ANY_TYPE = 0;
- XPathResult.NUMBER_TYPE = 1;
- XPathResult.STRING_TYPE = 2;
- XPathResult.BOOLEAN_TYPE = 3;
- XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
- XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
- XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
- XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
- var proto = {
- // XPathResultType
- get resultType() {
- if (this._resultType) return this._resultType;
- switch (typeof this._value) {
- case 'number': return XPathResult.NUMBER_TYPE;
- case 'string': return XPathResult.STRING_TYPE;
- case 'boolean': return XPathResult.BOOLEAN_TYPE;
- default: return XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
+ this.queueMicrotask = function (callback) {
+ callback = webIDLConversions.Function(callback);
+
+ anyNodeVersionQueueMicrotask(() => {
+ try {
+ callback();
+ } catch (e) {
+ reportException(window, e, window.location.href);
}
- },
- get numberValue() {
- if (XPathResult.NUMBER_TYPE !== this.resultType)
- throw new XPathException(XPathException.TYPE_ERR,
- 'You should have asked for a NUMBER_TYPE.');
- return this._value;
- },
- get stringValue() {
- if (XPathResult.STRING_TYPE !== this.resultType)
- throw new XPathException(XPathException.TYPE_ERR,
- 'You should have asked for a STRING_TYPE.');
- return this._value;
- },
- get booleanValue() {
- if (XPathResult.BOOLEAN_TYPE !== this.resultType)
- throw new XPathException(XPathException.TYPE_ERR,
- 'You should have asked for a BOOLEAN_TYPE.');
- return this._value;
- },
- get singleNodeValue() {
- if (XPathResult.ANY_UNORDERED_NODE_TYPE !== this.resultType &&
- XPathResult.FIRST_ORDERED_NODE_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a FIRST_ORDERED_NODE_TYPE.');
- return this._value.nodes[0] || null;
- },
- get invalidIteratorState() {
- if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
- return false;
- return !!this._invalidated;
- },
- get snapshotLength() {
- if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
- return this._value.nodes.length;
- },
- iterateNext: function iterateNext() {
- if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a ORDERED_NODE_ITERATOR_TYPE.');
- if (this.invalidIteratorState)
- throw new core.DOMException(
- core.DOMException.INVALID_STATE_ERR,
- 'The document has been mutated since the result was returned');
- return this._value.nodes[this._i++] || null;
- },
- snapshotItem: function snapshotItem(index) {
- if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
- return this._value.nodes[index] || null;
- }
+ });
};
- // so you can access ANY_TYPE etc. from the instances:
- XPathResult.prototype = Object.create(XPathResult,
- Object.keys(proto).reduce(function (descriptors, name) {
- descriptors[name] = Object.getOwnPropertyDescriptor(proto, name);
- return descriptors;
- }, {
- constructor: {
- value: XPathResult,
- writable: true,
- configurable: true
- }
- }));
-
- core.XPathException = XPathException;
- core.XPathExpression = XPathExpression;
- core.XPathResult = XPathResult;
- core.XPathEvaluator = XPathEvaluator;
- core.Document.prototype.createExpression =
- XPathEvaluator.prototype.createExpression;
+ // https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames
- core.Document.prototype.createNSResolver =
- XPathEvaluator.prototype.createNSResolver;
+ let animationFrameCallbackId = 0;
+ const mapOfAnimationFrameCallbacks = new Map();
+ let animationFrameNodejsInterval = null;
- core.Document.prototype.evaluate = XPathEvaluator.prototype.evaluate;
+ // Unlike the spec, where an animation frame happens every 60 Hz regardless, we optimize so that if there are no
+ // requestAnimationFrame() calls outstanding, we don't fire the timer. This helps us track that.
+ let numberOfOngoingAnimationFrameCallbacks = 0;
- return xpath; // for tests
-};
+ if (this._pretendToBeVisual) {
+ this.requestAnimationFrame = function (callback) {
+ callback = webIDLConversions.Function(callback);
+ const handle = ++animationFrameCallbackId;
+ mapOfAnimationFrameCallbacks.set(handle, callback);
-/***/ }),
+ ++numberOfOngoingAnimationFrameCallbacks;
+ if (numberOfOngoingAnimationFrameCallbacks === 1) {
+ animationFrameNodejsInterval = setInterval(() => {
+ runAnimationFrameCallbacks(rawPerformance.now() - windowInitialized);
+ }, 1000 / 60);
+ }
-/***/ 68314:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ return handle;
+ };
-"use strict";
+ this.cancelAnimationFrame = function (handle) {
+ handle = webIDLConversions["unsigned long"](handle);
+ removeAnimationFrameCallback(handle);
+ };
-const AbortSignal = __nccwpck_require__(58571);
+ function runAnimationFrameCallbacks(now) {
+ // Converting to an array is important to get a sync snapshot and thus match spec semantics.
+ const callbackHandles = [...mapOfAnimationFrameCallbacks.keys()];
+ for (const handle of callbackHandles) {
+ // This has() can be false if a callback calls cancelAnimationFrame().
+ if (mapOfAnimationFrameCallbacks.has(handle)) {
+ const callback = mapOfAnimationFrameCallbacks.get(handle);
+ removeAnimationFrameCallback(handle);
+ try {
+ callback(now);
+ } catch (e) {
+ reportException(window, e, window.location.href);
+ }
+ }
+ }
+ }
-class AbortControllerImpl {
- constructor(globalObject) {
- this.signal = AbortSignal.createImpl(globalObject, []);
- }
+ function removeAnimationFrameCallback(handle) {
+ if (mapOfAnimationFrameCallbacks.has(handle)) {
+ --numberOfOngoingAnimationFrameCallbacks;
+ if (numberOfOngoingAnimationFrameCallbacks === 0) {
+ clearInterval(animationFrameNodejsInterval);
+ }
+ }
- abort() {
- this.signal._signalAbort();
+ mapOfAnimationFrameCallbacks.delete(handle);
+ }
}
-}
-
-module.exports = {
- implementation: AbortControllerImpl
-};
+ function stopAllTimers() {
+ for (const nodejsTimer of listOfActiveTimers.values()) {
+ clearTimeout(nodejsTimer);
+ }
+ listOfActiveTimers.clear();
-/***/ }),
-
-/***/ 57971:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ clearInterval(animationFrameNodejsInterval);
+ }
-"use strict";
+ function Option(text, value, defaultSelected, selected) {
+ if (text === undefined) {
+ text = "";
+ }
+ text = webIDLConversions.DOMString(text);
+ if (value !== undefined) {
+ value = webIDLConversions.DOMString(value);
+ }
-const { setupForSimpleEventAccessors } = __nccwpck_require__(50238);
-const { fireAnEvent } = __nccwpck_require__(45673);
-const EventTargetImpl = __nccwpck_require__(18557).implementation;
+ defaultSelected = webIDLConversions.boolean(defaultSelected);
+ selected = webIDLConversions.boolean(selected);
-class AbortSignalImpl extends EventTargetImpl {
- constructor(globalObject, args, privateData) {
- super(globalObject, args, privateData);
+ const option = window._document.createElement("option");
+ const impl = idlUtils.implForWrapper(option);
- // make event firing possible
- this._ownerDocument = globalObject.document;
+ if (text !== "") {
+ impl.text = text;
+ }
+ if (value !== undefined) {
+ impl.setAttributeNS(null, "value", value);
+ }
+ if (defaultSelected) {
+ impl.setAttributeNS(null, "selected", "");
+ }
+ impl._selectedness = selected;
- this.aborted = false;
- this.abortAlgorithms = new Set();
+ return option;
}
+ Object.defineProperty(Option, "prototype", {
+ value: this.HTMLOptionElement.prototype,
+ configurable: false,
+ enumerable: false,
+ writable: false
+ });
+ Object.defineProperty(window, "Option", {
+ value: Option,
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
- _signalAbort() {
- if (this.aborted) {
- return;
- }
- this.aborted = true;
+ function Image(...args) {
+ const img = window._document.createElement("img");
+ const impl = idlUtils.implForWrapper(img);
- for (const algorithm of this.abortAlgorithms) {
- algorithm();
+ if (args.length > 0) {
+ impl.setAttributeNS(null, "width", String(args[0]));
+ }
+ if (args.length > 1) {
+ impl.setAttributeNS(null, "height", String(args[1]));
}
- this.abortAlgorithms.clear();
- fireAnEvent("abort", this);
+ return img;
}
+ Object.defineProperty(Image, "prototype", {
+ value: this.HTMLImageElement.prototype,
+ configurable: false,
+ enumerable: false,
+ writable: false
+ });
+ Object.defineProperty(window, "Image", {
+ value: Image,
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
- _addAlgorithm(algorithm) {
- if (this.aborted) {
- return;
+ function Audio(src) {
+ const audio = window._document.createElement("audio");
+ const impl = idlUtils.implForWrapper(audio);
+ impl.setAttributeNS(null, "preload", "auto");
+
+ if (src !== undefined) {
+ impl.setAttributeNS(null, "src", String(src));
}
- this.abortAlgorithms.add(algorithm);
- }
- _removeAlgorithm(algorithm) {
- this.abortAlgorithms.delete(algorithm);
+ return audio;
}
-}
+ Object.defineProperty(Audio, "prototype", {
+ value: this.HTMLAudioElement.prototype,
+ configurable: false,
+ enumerable: false,
+ writable: false
+ });
+ Object.defineProperty(window, "Audio", {
+ value: Audio,
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
-setupForSimpleEventAccessors(AbortSignalImpl.prototype, ["abort"]);
+ this.postMessage = postMessage(window);
-module.exports = {
- implementation: AbortSignalImpl
-};
+ this.atob = function (str) {
+ const result = atob(str);
+ if (result === null) {
+ throw DOMException.create(window, [
+ "The string to be decoded contains invalid characters.",
+ "InvalidCharacterError"
+ ]);
+ }
+ return result;
+ };
+ this.btoa = function (str) {
+ const result = btoa(str);
+ if (result === null) {
+ throw DOMException.create(window, [
+ "The string to be encoded contains invalid characters.",
+ "InvalidCharacterError"
+ ]);
+ }
+ return result;
+ };
-/***/ }),
+ this.stop = function () {
+ const manager = idlUtils.implForWrapper(this._document)._requestManager;
+ if (manager) {
+ manager.close();
+ }
+ };
-/***/ 35092:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ this.close = function () {
+ // Recursively close child frame windows, then ourselves (depth-first).
+ for (let i = 0; i < this.length; ++i) {
+ this[i].close();
+ }
-"use strict";
+ // Clear out all listeners. Any in-flight or upcoming events should not get delivered.
+ idlUtils.implForWrapper(this)._eventListeners = Object.create(null);
-const DOMException = __nccwpck_require__(57617);
+ if (this._document) {
+ if (this._document.body) {
+ this._document.body.innerHTML = "";
+ }
-const { HTML_NS } = __nccwpck_require__(52635);
-const { asciiLowercase } = __nccwpck_require__(4764);
-const { queueAttributeMutationRecord } = __nccwpck_require__(58028);
-const { enqueueCECallbackReaction } = __nccwpck_require__(25392);
+ if (this._document.close) {
+ // It's especially important to clear out the listeners here because document.close() causes a "load" event to
+ // fire.
+ idlUtils.implForWrapper(this._document)._eventListeners = Object.create(null);
+ this._document.close();
+ }
+ const doc = idlUtils.implForWrapper(this._document);
+ if (doc._requestManager) {
+ doc._requestManager.close();
+ }
+ delete this._document;
+ }
-// The following three are for https://dom.spec.whatwg.org/#concept-element-attribute-has. We don't just have a
-// predicate tester since removing that kind of flexibility gives us the potential for better future optimizations.
+ stopAllTimers();
+ WebSocketImpl.cleanUpWindow(this);
+ };
-/* eslint-disable no-restricted-properties */
+ this.getComputedStyle = function (elt, pseudoElt = undefined) {
+ elt = Element.convert(elt);
+ if (pseudoElt !== undefined && pseudoElt !== null) {
+ pseudoElt = webIDLConversions.DOMString(pseudoElt);
+ }
-exports.hasAttribute = function (element, A) {
- return element._attributeList.includes(A);
-};
+ if (pseudoElt !== undefined && pseudoElt !== null && pseudoElt !== "") {
+ // TODO: Parse pseudoElt
-exports.hasAttributeByName = function (element, name) {
- return element._attributesByNameMap.has(name);
-};
+ if (SHADOW_DOM_PSEUDO_REGEXP.test(pseudoElt)) {
+ throw new TypeError("Tried to get the computed style of a Shadow DOM pseudo-element.");
+ }
-exports.hasAttributeByNameNS = function (element, namespace, localName) {
- return element._attributeList.some(attribute => {
- return attribute._localName === localName && attribute._namespace === namespace;
- });
-};
+ notImplemented("window.computedStyle(elt, pseudoElt)", this);
+ }
-// https://dom.spec.whatwg.org/#concept-element-attributes-change
-exports.changeAttribute = (element, attribute, value) => {
- const { _localName, _namespace, _value } = attribute;
+ const declaration = new CSSStyleDeclaration();
+ const { forEach } = Array.prototype;
+ const { style } = elt;
- queueAttributeMutationRecord(element, _localName, _namespace, _value);
+ forEachMatchingSheetRuleOfElement(elt, rule => {
+ forEach.call(rule.style, property => {
+ declaration.setProperty(
+ property,
+ rule.style.getPropertyValue(property),
+ rule.style.getPropertyPriority(property)
+ );
+ });
+ });
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- _value,
- value,
- _namespace
- ]);
- }
+ // https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle
+ const declarations = Object.keys(propertiesWithResolvedValueImplemented);
+ forEach.call(declarations, property => {
+ declaration.setProperty(property, getResolvedValue(elt, property));
+ });
- attribute._value = value;
+ forEach.call(style, property => {
+ declaration.setProperty(property, style.getPropertyValue(property), style.getPropertyPriority(property));
+ });
- // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is changed."
- element._attrModified(attribute._qualifiedName, value, _value);
-};
+ return declaration;
+ };
-// https://dom.spec.whatwg.org/#concept-element-attributes-append
-exports.appendAttribute = function (element, attribute) {
- const { _localName, _namespace, _value } = attribute;
- queueAttributeMutationRecord(element, _localName, _namespace, null);
+ this.getSelection = function () {
+ return window._document.getSelection();
+ };
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- null,
- _value,
- _namespace
- ]);
- }
+ // The captureEvents() and releaseEvents() methods must do nothing
+ this.captureEvents = function () {};
- const attributeList = element._attributeList;
+ this.releaseEvents = function () {};
- attributeList.push(attribute);
- attribute._element = element;
+ // ### PUBLIC DATA PROPERTIES (TODO: should be getters)
- // Sync name cache
- const name = attribute._qualifiedName;
- const cache = element._attributesByNameMap;
- let entry = cache.get(name);
- if (!entry) {
- entry = [];
- cache.set(name, entry);
+ function wrapConsoleMethod(method) {
+ return (...args) => {
+ window._virtualConsole.emit(method, ...args);
+ };
}
- entry.push(attribute);
- // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is added."
- element._attrModified(name, _value, null);
-};
-
-exports.removeAttribute = function (element, attribute) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-remove
-
- const { _localName, _namespace, _value } = attribute;
-
- queueAttributeMutationRecord(element, _localName, _namespace, _value);
+ this.console = {
+ assert: wrapConsoleMethod("assert"),
+ clear: wrapConsoleMethod("clear"),
+ count: wrapConsoleMethod("count"),
+ countReset: wrapConsoleMethod("countReset"),
+ debug: wrapConsoleMethod("debug"),
+ dir: wrapConsoleMethod("dir"),
+ dirxml: wrapConsoleMethod("dirxml"),
+ error: wrapConsoleMethod("error"),
+ group: wrapConsoleMethod("group"),
+ groupCollapsed: wrapConsoleMethod("groupCollapsed"),
+ groupEnd: wrapConsoleMethod("groupEnd"),
+ info: wrapConsoleMethod("info"),
+ log: wrapConsoleMethod("log"),
+ table: wrapConsoleMethod("table"),
+ time: wrapConsoleMethod("time"),
+ timeLog: wrapConsoleMethod("timeLog"),
+ timeEnd: wrapConsoleMethod("timeEnd"),
+ trace: wrapConsoleMethod("trace"),
+ warn: wrapConsoleMethod("warn")
+ };
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- _value,
- null,
- _namespace
- ]);
+ function notImplementedMethod(name) {
+ return function () {
+ notImplemented(name, window);
+ };
}
- const attributeList = element._attributeList;
-
- for (let i = 0; i < attributeList.length; ++i) {
- if (attributeList[i] === attribute) {
- attributeList.splice(i, 1);
- attribute._element = null;
+ define(this, {
+ name: "",
+ status: "",
+ devicePixelRatio: 1,
+ innerWidth: 1024,
+ innerHeight: 768,
+ outerWidth: 1024,
+ outerHeight: 768,
+ pageXOffset: 0,
+ pageYOffset: 0,
+ screenX: 0,
+ screenLeft: 0,
+ screenY: 0,
+ screenTop: 0,
+ scrollX: 0,
+ scrollY: 0,
- // Sync name cache
- const name = attribute._qualifiedName;
- const cache = element._attributesByNameMap;
- const entry = cache.get(name);
- entry.splice(entry.indexOf(attribute), 1);
- if (entry.length === 0) {
- cache.delete(name);
- }
+ alert: notImplementedMethod("window.alert"),
+ blur: notImplementedMethod("window.blur"),
+ confirm: notImplementedMethod("window.confirm"),
+ focus: notImplementedMethod("window.focus"),
+ moveBy: notImplementedMethod("window.moveBy"),
+ moveTo: notImplementedMethod("window.moveTo"),
+ open: notImplementedMethod("window.open"),
+ print: notImplementedMethod("window.print"),
+ prompt: notImplementedMethod("window.prompt"),
+ resizeBy: notImplementedMethod("window.resizeBy"),
+ resizeTo: notImplementedMethod("window.resizeTo"),
+ scroll: notImplementedMethod("window.scroll"),
+ scrollBy: notImplementedMethod("window.scrollBy"),
+ scrollTo: notImplementedMethod("window.scrollTo")
+ });
- // Run jsdom hooks; roughly correspond to spec's "An attribute is removed."
- element._attrModified(name, null, attribute._value);
+ // ### INITIALIZATION
- return;
+ process.nextTick(() => {
+ if (!window.document) {
+ return; // window might've been closed already
}
- }
-};
-exports.replaceAttribute = function (element, oldAttr, newAttr) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-replace
+ const documentImpl = idlUtils.implForWrapper(window._document);
- const { _localName, _namespace, _value } = oldAttr;
+ if (window.document.readyState === "complete") {
+ fireAnEvent("load", window, undefined, {}, documentImpl);
+ } else {
+ window.document.addEventListener("load", () => {
+ fireAnEvent("load", window, undefined, {}, documentImpl);
- queueAttributeMutationRecord(element, _localName, _namespace, _value);
+ if (!documentImpl._pageShowingFlag) {
+ documentImpl._pageShowingFlag = true;
+ fireAnEvent("pageshow", window, PageTransitionEvent, { persisted: false }, documentImpl);
+ }
+ });
+ }
+ });
+}
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- _value,
- newAttr._value,
- _namespace
- ]);
+function contextifyWindow(window) {
+ if (vm.isContext(window)) {
+ return;
}
- const attributeList = element._attributeList;
-
- for (let i = 0; i < attributeList.length; ++i) {
- if (attributeList[i] === oldAttr) {
- attributeList.splice(i, 1, newAttr);
- oldAttr._element = null;
- newAttr._element = element;
+ vm.createContext(window);
+}
- // Sync name cache
- const name = newAttr._qualifiedName;
- const cache = element._attributesByNameMap;
- let entry = cache.get(name);
- if (!entry) {
- entry = [];
- cache.set(name, entry);
- }
- entry.splice(entry.indexOf(oldAttr), 1, newAttr);
- // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is changed."
- element._attrModified(name, newAttr._value, oldAttr._value);
+/***/ }),
- return;
- }
- }
-};
+/***/ 89489:
+/***/ ((module) => {
-exports.getAttributeByName = function (element, name) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name
+// Ideally, we would use
+// https://html.spec.whatwg.org/multipage/rendering.html#the-css-user-agent-style-sheet-and-presentational-hints
+// but for now, just use the version from blink. This file is copied from
+// https://chromium.googlesource.com/chromium/blink/+/96aa3a280ab7d67178c8f122a04949ce5f8579e0/Source/core/css/html.css
+// (removed a line which had octal literals inside since octal literals are not allowed in template strings)
- if (element._namespaceURI === HTML_NS &&
- element._ownerDocument._parsingMode === "html") {
- name = asciiLowercase(name);
- }
+// We use a .js file because otherwise we can't browserify this. (brfs is unusable due to lack of ES2015 support)
- const cache = element._attributesByNameMap;
- const entry = cache.get(name);
- if (!entry) {
- return null;
- }
+module.exports = `
+/*
+ * The default style sheet used to render HTML.
+ *
+ * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
- return entry[0];
-};
+@namespace "http://www.w3.org/1999/xhtml";
-exports.getAttributeByNameNS = function (element, namespace, localName) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace
+html {
+ display: block
+}
- if (namespace === "") {
- namespace = null;
- }
+:root {
+ scroll-blocks-on: start-touch wheel-event
+}
- const attributeList = element._attributeList;
- for (let i = 0; i < attributeList.length; ++i) {
- const attr = attributeList[i];
- if (attr._namespace === namespace && attr._localName === localName) {
- return attr;
- }
- }
+/* children of the element all have display:none */
+head {
+ display: none
+}
- return null;
-};
+meta {
+ display: none
+}
-// Both of the following functions implement https://dom.spec.whatwg.org/#concept-element-attributes-get-value.
-// Separated them into two to keep symmetry with other functions.
-exports.getAttributeValue = function (element, localName) {
- const attr = exports.getAttributeByNameNS(element, null, localName);
+title {
+ display: none
+}
- if (!attr) {
- return "";
- }
+link {
+ display: none
+}
- return attr._value;
-};
+style {
+ display: none
+}
-exports.getAttributeValueNS = function (element, namespace, localName) {
- const attr = exports.getAttributeByNameNS(element, namespace, localName);
+script {
+ display: none
+}
- if (!attr) {
- return "";
- }
+/* generic block-level elements */
- return attr._value;
-};
+body {
+ display: block;
+ margin: 8px
+}
-exports.setAttribute = function (element, attr) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-set
+p {
+ display: block;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1__qem;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+}
- if (attr._element !== null && attr._element !== element) {
- throw DOMException.create(element._globalObject, ["The attribute is in use.", "InUseAttributeError"]);
- }
+div {
+ display: block
+}
- const oldAttr = exports.getAttributeByNameNS(element, attr._namespace, attr._localName);
- if (oldAttr === attr) {
- return attr;
- }
+layer {
+ display: block
+}
- if (oldAttr !== null) {
- exports.replaceAttribute(element, oldAttr, attr);
- } else {
- exports.appendAttribute(element, attr);
- }
+article, aside, footer, header, hgroup, main, nav, section {
+ display: block
+}
- return oldAttr;
-};
+marquee {
+ display: inline-block;
+}
-exports.setAttributeValue = function (element, localName, value, prefix, namespace) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-set-value
+address {
+ display: block
+}
- if (prefix === undefined) {
- prefix = null;
- }
- if (namespace === undefined) {
- namespace = null;
- }
+blockquote {
+ display: block;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 40px;
+ -webkit-margin-end: 40px;
+}
- const attribute = exports.getAttributeByNameNS(element, namespace, localName);
- if (attribute === null) {
- const newAttribute = element._ownerDocument._createAttribute({
- namespace,
- namespacePrefix: prefix,
- localName,
- value
- });
- exports.appendAttribute(element, newAttribute);
+figcaption {
+ display: block
+}
- return;
- }
+figure {
+ display: block;
+ -webkit-margin-before: 1em;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 40px;
+ -webkit-margin-end: 40px;
+}
- exports.changeAttribute(element, attribute, value);
-};
+q {
+ display: inline
+}
-// https://dom.spec.whatwg.org/#set-an-existing-attribute-value
-exports.setAnExistingAttributeValue = (attribute, value) => {
- const element = attribute._element;
- if (element === null) {
- attribute._value = value;
- } else {
- exports.changeAttribute(element, attribute, value);
- }
-};
+/* nwmatcher does not support ::before and ::after, so we can't render q
+correctly: https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
+TODO: add q::before and q::after selectors
+*/
-exports.removeAttributeByName = function (element, name) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-name
+center {
+ display: block;
+ /* special centering to be able to emulate the html4/netscape behaviour */
+ text-align: -webkit-center
+}
- const attr = exports.getAttributeByName(element, name);
+hr {
+ display: block;
+ -webkit-margin-before: 0.5em;
+ -webkit-margin-after: 0.5em;
+ -webkit-margin-start: auto;
+ -webkit-margin-end: auto;
+ border-style: inset;
+ border-width: 1px;
+ box-sizing: border-box
+}
- if (attr !== null) {
- exports.removeAttribute(element, attr);
- }
+map {
+ display: inline
+}
- return attr;
-};
+video {
+ object-fit: contain;
+}
-exports.removeAttributeByNameNS = function (element, namespace, localName) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace
+/* heading elements */
- const attr = exports.getAttributeByNameNS(element, namespace, localName);
+h1 {
+ display: block;
+ font-size: 2em;
+ -webkit-margin-before: 0.67__qem;
+ -webkit-margin-after: 0.67em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ font-weight: bold
+}
- if (attr !== null) {
- exports.removeAttribute(element, attr);
- }
+article h1,
+aside h1,
+nav h1,
+section h1 {
+ font-size: 1.5em;
+ -webkit-margin-before: 0.83__qem;
+ -webkit-margin-after: 0.83em;
+}
- return attr;
-};
+article article h1,
+article aside h1,
+article nav h1,
+article section h1,
+aside article h1,
+aside aside h1,
+aside nav h1,
+aside section h1,
+nav article h1,
+nav aside h1,
+nav nav h1,
+nav section h1,
+section article h1,
+section aside h1,
+section nav h1,
+section section h1 {
+ font-size: 1.17em;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1em;
+}
-exports.attributeNames = function (element) {
- // Needed by https://dom.spec.whatwg.org/#dom-element-getattributenames
+/* Remaining selectors are deleted because nwmatcher does not support
+:matches() and expanding the selectors manually would be far too verbose.
+Also see https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings
+TODO: rewrite to use :matches() when nwmatcher supports it.
+*/
- return element._attributeList.map(a => a._qualifiedName);
-};
+h2 {
+ display: block;
+ font-size: 1.5em;
+ -webkit-margin-before: 0.83__qem;
+ -webkit-margin-after: 0.83em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ font-weight: bold
+}
-exports.hasAttributes = function (element) {
- // Needed by https://dom.spec.whatwg.org/#dom-element-hasattributes
+h3 {
+ display: block;
+ font-size: 1.17em;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ font-weight: bold
+}
- return element._attributeList.length > 0;
-};
+h4 {
+ display: block;
+ -webkit-margin-before: 1.33__qem;
+ -webkit-margin-after: 1.33em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ font-weight: bold
+}
+h5 {
+ display: block;
+ font-size: .83em;
+ -webkit-margin-before: 1.67__qem;
+ -webkit-margin-after: 1.67em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ font-weight: bold
+}
-/***/ }),
+h6 {
+ display: block;
+ font-size: .67em;
+ -webkit-margin-before: 2.33__qem;
+ -webkit-margin-after: 2.33em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ font-weight: bold
+}
-/***/ 34306:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/* tables */
-"use strict";
+table {
+ display: table;
+ border-collapse: separate;
+ border-spacing: 2px;
+ border-color: gray
+}
+thead {
+ display: table-header-group;
+ vertical-align: middle;
+ border-color: inherit
+}
-const { setAnExistingAttributeValue } = __nccwpck_require__(35092);
-const NodeImpl = __nccwpck_require__(53563).implementation;
-const { ATTRIBUTE_NODE } = __nccwpck_require__(10656);
+tbody {
+ display: table-row-group;
+ vertical-align: middle;
+ border-color: inherit
+}
-exports.implementation = class AttrImpl extends NodeImpl {
- constructor(globalObject, args, privateData) {
- super(globalObject, args, privateData);
+tfoot {
+ display: table-footer-group;
+ vertical-align: middle;
+ border-color: inherit
+}
- this._namespace = privateData.namespace !== undefined ? privateData.namespace : null;
- this._namespacePrefix = privateData.namespacePrefix !== undefined ? privateData.namespacePrefix : null;
- this._localName = privateData.localName;
- this._value = privateData.value !== undefined ? privateData.value : "";
- this._element = privateData.element !== undefined ? privateData.element : null;
+/* for tables without table section elements (can happen with XHTML or dynamically created tables) */
+table > tr {
+ vertical-align: middle;
+}
- this.nodeType = ATTRIBUTE_NODE;
- this.specified = true;
- }
+col {
+ display: table-column
+}
- get namespaceURI() {
- return this._namespace;
- }
+colgroup {
+ display: table-column-group
+}
- get prefix() {
- return this._namespacePrefix;
- }
+tr {
+ display: table-row;
+ vertical-align: inherit;
+ border-color: inherit
+}
- get localName() {
- return this._localName;
- }
+td, th {
+ display: table-cell;
+ vertical-align: inherit
+}
- get name() {
- return this._qualifiedName;
- }
+th {
+ font-weight: bold
+}
- get nodeName() {
- return this._qualifiedName;
- }
+caption {
+ display: table-caption;
+ text-align: -webkit-center
+}
- get value() {
- return this._value;
- }
- set value(value) {
- setAnExistingAttributeValue(this, value);
- }
+/* lists */
- get ownerElement() {
- return this._element;
- }
+ul, menu, dir {
+ display: block;
+ list-style-type: disc;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ -webkit-padding-start: 40px
+}
- get _qualifiedName() {
- // https://dom.spec.whatwg.org/#concept-attribute-qualified-name
- if (this._namespacePrefix === null) {
- return this._localName;
- }
+ol {
+ display: block;
+ list-style-type: decimal;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ -webkit-padding-start: 40px
+}
- return this._namespacePrefix + ":" + this._localName;
- }
-};
+li {
+ display: list-item;
+ text-align: -webkit-match-parent;
+}
+ul ul, ol ul {
+ list-style-type: circle
+}
-/***/ }),
+ol ol ul, ol ul ul, ul ol ul, ul ul ul {
+ list-style-type: square
+}
-/***/ 28698:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+dd {
+ display: block;
+ -webkit-margin-start: 40px
+}
-"use strict";
+dl {
+ display: block;
+ -webkit-margin-before: 1__qem;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+}
+dt {
+ display: block
+}
-const DOMException = __nccwpck_require__(57617);
-const idlUtils = __nccwpck_require__(34908);
-const attributes = __nccwpck_require__(35092);
-const { HTML_NS } = __nccwpck_require__(52635);
+ol ul, ul ol, ul ul, ol ol {
+ -webkit-margin-before: 0;
+ -webkit-margin-after: 0
+}
-exports.implementation = class NamedNodeMapImpl {
- constructor(globalObject, args, privateData) {
- this._element = privateData.element;
+/* form elements */
- this._globalObject = globalObject;
- }
- get _attributeList() {
- return this._element._attributeList;
- }
+form {
+ display: block;
+ margin-top: 0__qem;
+}
- get [idlUtils.supportedPropertyIndices]() {
- return this._attributeList.keys();
- }
- get length() {
- return this._attributeList.length;
- }
- item(index) {
- if (index >= this._attributeList.length) {
- return null;
- }
- return this._attributeList[index];
- }
+label {
+ cursor: default;
+}
- get [idlUtils.supportedPropertyNames]() {
- const names = new Set(this._attributeList.map(a => a._qualifiedName));
- const el = this._element;
- if (el._namespaceURI === HTML_NS && el._ownerDocument._parsingMode === "html") {
- for (const name of names) {
- const lowercaseName = name.toLowerCase();
- if (lowercaseName !== name) {
- names.delete(name);
- }
- }
- }
- return names;
- }
- getNamedItem(qualifiedName) {
- return attributes.getAttributeByName(this._element, qualifiedName);
- }
- getNamedItemNS(namespace, localName) {
- return attributes.getAttributeByNameNS(this._element, namespace, localName);
- }
- setNamedItem(attr) {
- // eslint-disable-next-line no-restricted-properties
- return attributes.setAttribute(this._element, attr);
- }
- setNamedItemNS(attr) {
- // eslint-disable-next-line no-restricted-properties
- return attributes.setAttribute(this._element, attr);
- }
- removeNamedItem(qualifiedName) {
- const attr = attributes.removeAttributeByName(this._element, qualifiedName);
- if (attr === null) {
- throw DOMException.create(this._globalObject, [
- "Tried to remove an attribute that was not present",
- "NotFoundError"
- ]);
- }
- return attr;
- }
- removeNamedItemNS(namespace, localName) {
- const attr = attributes.removeAttributeByNameNS(this._element, namespace, localName);
- if (attr === null) {
- throw DOMException.create(this._globalObject, [
- "Tried to remove an attribute that was not present",
- "NotFoundError"
- ]);
- }
- return attr;
- }
-};
+legend {
+ display: block;
+ -webkit-padding-start: 2px;
+ -webkit-padding-end: 2px;
+ border: none
+}
+fieldset {
+ display: block;
+ -webkit-margin-start: 2px;
+ -webkit-margin-end: 2px;
+ -webkit-padding-before: 0.35em;
+ -webkit-padding-start: 0.75em;
+ -webkit-padding-end: 0.75em;
+ -webkit-padding-after: 0.625em;
+ border: 2px groove ThreeDFace;
+ min-width: -webkit-min-content;
+}
-/***/ }),
+button {
+ -webkit-appearance: button;
+}
-/***/ 6460:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/* Form controls don't go vertical. */
+input, textarea, select, button, meter, progress {
+ -webkit-writing-mode: horizontal-tb !important;
+}
-"use strict";
+input, textarea, select, button {
+ margin: 0__qem;
+ font: -webkit-small-control;
+ text-rendering: auto; /* FIXME: Remove when tabs work with optimizeLegibility. */
+ color: initial;
+ letter-spacing: normal;
+ word-spacing: normal;
+ line-height: normal;
+ text-transform: none;
+ text-indent: 0;
+ text-shadow: none;
+ display: inline-block;
+ text-align: start;
+}
+/* TODO: Add " i" to attribute matchers to support case-insensitive matching */
+input[type="hidden"] {
+ display: none
+}
-const ValidityState = __nccwpck_require__(84979);
-const { isDisabled } = __nccwpck_require__(2744);
-const { closest } = __nccwpck_require__(32604);
-const { fireAnEvent } = __nccwpck_require__(45673);
+input {
+ -webkit-appearance: textfield;
+ padding: 1px;
+ background-color: white;
+ border: 2px inset;
+ -webkit-rtl-ordering: logical;
+ -webkit-user-select: text;
+ cursor: auto;
+}
-exports.i = class DefaultConstraintValidationImpl {
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-willvalidate
- get willValidate() {
- return this._isCandidateForConstraintValidation();
- }
+input[type="search"] {
+ -webkit-appearance: searchfield;
+ box-sizing: border-box;
+}
- get validity() {
- if (!this._validity) {
- this._validity = ValidityState.createImpl(this._globalObject, [], {
- element: this
- });
- }
- return this._validity;
- }
+select {
+ border-radius: 5px;
+}
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-checkvalidity
- checkValidity() {
- if (!this._isCandidateForConstraintValidation()) {
- return true;
- }
- if (this._satisfiesConstraints()) {
- return true;
- }
- fireAnEvent("invalid", this, undefined, { cancelable: true });
- return false;
- }
+textarea {
+ -webkit-appearance: textarea;
+ background-color: white;
+ border: 1px solid;
+ -webkit-rtl-ordering: logical;
+ -webkit-user-select: text;
+ flex-direction: column;
+ resize: auto;
+ cursor: auto;
+ padding: 2px;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-setcustomvalidity
- setCustomValidity(message) {
- this._customValidityErrorMessage = message;
- }
+input[type="password"] {
+ -webkit-text-security: disc !important;
+}
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-reportvalidity
- // Since jsdom has no user interaction, it's the same as #checkValidity
- reportValidity() {
- return this.checkValidity();
- }
+input[type="hidden"], input[type="image"], input[type="file"] {
+ -webkit-appearance: initial;
+ padding: initial;
+ background-color: initial;
+ border: initial;
+}
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-validationmessage
- get validationMessage() {
- const { validity } = this;
- if (!this._isCandidateForConstraintValidation() || this._satisfiesConstraints()) {
- return "";
- }
- const isSufferingFromCustomError = validity.customError;
- if (isSufferingFromCustomError) {
- return this._customValidityErrorMessage;
- }
- return "Constraints not satisfied";
- }
+input[type="file"] {
+ align-items: baseline;
+ color: inherit;
+ text-align: start !important;
+}
- _isCandidateForConstraintValidation() {
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
- return !isDisabled(this) &&
- // If an element has a datalist element ancestor,
- // it is barred from constraint validation.
- closest(this, "datalist") === null &&
- !this._barredFromConstraintValidationSpecialization();
- }
+input[type="radio"], input[type="checkbox"] {
+ margin: 3px 0.5ex;
+ padding: initial;
+ background-color: initial;
+ border: initial;
+}
- _isBarredFromConstraintValidation() {
- return !this._isCandidateForConstraintValidation();
- }
+input[type="button"], input[type="submit"], input[type="reset"] {
+ -webkit-appearance: push-button;
+ -webkit-user-select: none;
+ white-space: pre
+}
- _satisfiesConstraints() {
- return this.validity.valid;
- }
-};
+input[type="button"], input[type="submit"], input[type="reset"], button {
+ align-items: flex-start;
+ text-align: center;
+ cursor: default;
+ color: ButtonText;
+ padding: 2px 6px 3px 6px;
+ border: 2px outset ButtonFace;
+ background-color: ButtonFace;
+ box-sizing: border-box
+}
+input[type="range"] {
+ -webkit-appearance: slider-horizontal;
+ padding: initial;
+ border: initial;
+ margin: 2px;
+ color: #909090;
+}
-/***/ }),
+input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
+button:disabled, select:disabled, optgroup:disabled, option:disabled,
+select[disabled]>option {
+ color: GrayText
+}
-/***/ 82125:
-/***/ ((__unused_webpack_module, exports) => {
+input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, button:active {
+ border-style: inset
+}
-"use strict";
+input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, button:active:disabled {
+ border-style: outset
+}
+datalist {
+ display: none
+}
-exports.implementation = class ValidityStateImpl {
- constructor(globalObject, args, privateData) {
- const { element, state = {} } = privateData;
+area {
+ display: inline;
+ cursor: pointer;
+}
- this._element = element;
- this._state = state;
- }
+param {
+ display: none
+}
- get badInput() {
- return this._failsConstraint("badInput");
- }
+input[type="checkbox"] {
+ -webkit-appearance: checkbox;
+ box-sizing: border-box;
+}
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-a-custom-error
- get customError() {
- return this._element._customValidityErrorMessage !== "";
- }
+input[type="radio"] {
+ -webkit-appearance: radio;
+ box-sizing: border-box;
+}
- get patternMismatch() {
- return this._failsConstraint("patternMismatch");
- }
+input[type="color"] {
+ -webkit-appearance: square-button;
+ width: 44px;
+ height: 23px;
+ background-color: ButtonFace;
+ /* Same as native_theme_base. */
+ border: 1px #a9a9a9 solid;
+ padding: 1px 2px;
+}
- get rangeOverflow() {
- return this._failsConstraint("rangeOverflow");
- }
+input[type="color"][list] {
+ -webkit-appearance: menulist;
+ width: 88px;
+ height: 23px
+}
- get rangeUnderflow() {
- return this._failsConstraint("rangeUnderflow");
- }
+select {
+ -webkit-appearance: menulist;
+ box-sizing: border-box;
+ align-items: center;
+ border: 1px solid;
+ white-space: pre;
+ -webkit-rtl-ordering: logical;
+ color: black;
+ background-color: white;
+ cursor: default;
+}
- get stepMismatch() {
- return this._failsConstraint("stepMismatch");
- }
+optgroup {
+ font-weight: bolder;
+ display: block;
+}
- get tooLong() {
- return this._failsConstraint("tooLong");
- }
+option {
+ font-weight: normal;
+ display: block;
+ padding: 0 2px 1px 2px;
+ white-space: pre;
+ min-height: 1.2em;
+}
- get tooShort() {
- return this._failsConstraint("tooShort");
- }
+output {
+ display: inline;
+}
- get typeMismatch() {
- return this._failsConstraint("typeMismatch");
- }
+/* meter */
- get valueMissing() {
- return this._failsConstraint("valueMissing");
- }
+meter {
+ -webkit-appearance: meter;
+ box-sizing: border-box;
+ display: inline-block;
+ height: 1em;
+ width: 5em;
+ vertical-align: -0.2em;
+}
- _failsConstraint(method) {
- const validationMethod = this._state[method];
- if (validationMethod) {
- return validationMethod();
- }
+/* progress */
- return false;
- }
+progress {
+ -webkit-appearance: progress-bar;
+ box-sizing: border-box;
+ display: inline-block;
+ height: 1em;
+ width: 10em;
+ vertical-align: -0.2em;
+}
- get valid() {
- return !(this.badInput || this.valueMissing || this.customError ||
- this.patternMismatch || this.rangeOverflow || this.rangeUnderflow ||
- this.stepMismatch || this.tooLong || this.tooShort || this.typeMismatch);
- }
-};
+/* inline elements */
+u, ins {
+ text-decoration: underline
+}
-/***/ }),
+strong, b {
+ font-weight: bold
+}
-/***/ 63894:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+i, cite, em, var, address, dfn {
+ font-style: italic
+}
-"use strict";
+tt, code, kbd, samp {
+ font-family: monospace
+}
+pre, xmp, plaintext, listing {
+ display: block;
+ font-family: monospace;
+ white-space: pre;
+ margin: 1__qem 0
+}
-const idlUtils = __nccwpck_require__(34908);
+mark {
+ background-color: yellow;
+ color: black
+}
-exports.implementation = class StyleSheetList {
- constructor() {
- this._list = [];
- }
+big {
+ font-size: larger
+}
- get length() {
- return this._list.length;
- }
+small {
+ font-size: smaller
+}
- item(index) {
- const result = this._list[index];
- return result !== undefined ? result : null;
- }
+s, strike, del {
+ text-decoration: line-through
+}
- get [idlUtils.supportedPropertyIndices]() {
- return this._list.keys();
- }
+sub {
+ vertical-align: sub;
+ font-size: smaller
+}
- _add(sheet) {
- const { _list } = this;
- if (!_list.includes(sheet)) {
- _list.push(sheet);
- }
- }
+sup {
+ vertical-align: super;
+ font-size: smaller
+}
- _remove(sheet) {
- const { _list } = this;
+nobr {
+ white-space: nowrap
+}
- const index = _list.indexOf(sheet);
- if (index >= 0) {
- _list.splice(index, 1);
- }
- }
-};
+/* states */
+:focus {
+ outline: auto 5px -webkit-focus-ring-color
+}
-/***/ }),
+/* Read-only text fields do not show a focus ring but do still receive focus */
+html:focus, body:focus, input[readonly]:focus {
+ outline: none
+}
-/***/ 49495:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+embed:focus, iframe:focus, object:focus {
+ outline: none
+}
-"use strict";
+input:focus, textarea:focus, select:focus {
+ outline-offset: -2px
+}
+input[type="button"]:focus,
+input[type="checkbox"]:focus,
+input[type="file"]:focus,
+input[type="hidden"]:focus,
+input[type="image"]:focus,
+input[type="radio"]:focus,
+input[type="reset"]:focus,
+input[type="search"]:focus,
+input[type="submit"]:focus {
+ outline-offset: 0
+}
-const webIDLConversions = __nccwpck_require__(54886);
-const DOMException = __nccwpck_require__(57617);
+/* HTML5 ruby elements */
-const NODE_TYPE = __nccwpck_require__(10656);
+ruby, rt {
+ text-indent: 0; /* blocks used for ruby rendering should not trigger this */
+}
-const { HTML_NS } = __nccwpck_require__(52635);
-const { getHTMLElementInterface } = __nccwpck_require__(98548);
-const { shadowIncludingInclusiveDescendantsIterator } = __nccwpck_require__(36893);
-const { isValidCustomElementName, tryUpgradeElement, enqueueCEUpgradeReaction } = __nccwpck_require__(25392);
+rt {
+ line-height: normal;
+ -webkit-text-emphasis: none;
+}
-const idlUtils = __nccwpck_require__(34908);
-const IDLFunction = __nccwpck_require__(79936);
-const HTMLUnknownElement = __nccwpck_require__(30065);
+ruby > rt {
+ display: block;
+ font-size: 50%;
+ text-align: start;
+}
-const LIFECYCLE_CALLBACKS = [
- "connectedCallback",
- "disconnectedCallback",
- "adoptedCallback",
- "attributeChangedCallback"
-];
+ruby > rp {
+ display: none;
+}
-function convertToSequenceDOMString(obj) {
- if (!obj || !obj[Symbol.iterator]) {
- throw new TypeError("Invalid Sequence");
- }
+/* other elements */
- return Array.from(obj).map(webIDLConversions.DOMString);
+noframes {
+ display: none
}
-// Returns true is the passed value is a valid constructor.
-// Borrowed from: https://stackoverflow.com/a/39336206/3832710
-function isConstructor(value) {
- if (typeof value !== "function") {
- return false;
- }
+frameset, frame {
+ display: block
+}
- try {
- const P = new Proxy(value, {
- construct() {
- return {};
- }
- });
+frameset {
+ border-color: inherit
+}
- // eslint-disable-next-line no-new
- new P();
+iframe {
+ border: 2px inset
+}
- return true;
- } catch {
- return false;
- }
+details {
+ display: block
}
-// https://html.spec.whatwg.org/#customelementregistry
-class CustomElementRegistryImpl {
- constructor(globalObject) {
- this._customElementDefinitions = [];
- this._elementDefinitionIsRunning = false;
- this._whenDefinedPromiseMap = Object.create(null);
+summary {
+ display: block
+}
- this._globalObject = globalObject;
- }
+template {
+ display: none
+}
- // https://html.spec.whatwg.org/#dom-customelementregistry-define
- define(name, constructor, options) {
- const { _globalObject } = this;
- const ctor = constructor.objectReference;
+bdi, output {
+ unicode-bidi: -webkit-isolate;
+}
- if (!isConstructor(ctor)) {
- throw new TypeError("Constructor argument is not a constructor.");
- }
+bdo {
+ unicode-bidi: bidi-override;
+}
- if (!isValidCustomElementName(name)) {
- throw DOMException.create(_globalObject, ["Name argument is not a valid custom element name.", "SyntaxError"]);
- }
+textarea[dir=auto] {
+ unicode-bidi: -webkit-plaintext;
+}
- const nameAlreadyRegistered = this._customElementDefinitions.some(entry => entry.name === name);
- if (nameAlreadyRegistered) {
- throw DOMException.create(_globalObject, [
- "This name has already been registered in the registry.",
- "NotSupportedError"
- ]);
- }
+dialog:not([open]) {
+ display: none
+}
- const ctorAlreadyRegistered = this._customElementDefinitions.some(entry => entry.objectReference === ctor);
- if (ctorAlreadyRegistered) {
- throw DOMException.create(_globalObject, [
- "This constructor has already been registered in the registry.",
- "NotSupportedError"
- ]);
- }
+dialog {
+ position: absolute;
+ left: 0;
+ right: 0;
+ width: -webkit-fit-content;
+ height: -webkit-fit-content;
+ margin: auto;
+ border: solid;
+ padding: 1em;
+ background: white;
+ color: black
+}
- let localName = name;
+[hidden] {
+ display: none
+}
- let extendsOption = null;
- if (options !== undefined && options.extends) {
- extendsOption = options.extends;
- }
+/* noscript is handled internally, as it depends on settings. */
- if (extendsOption !== null) {
- if (isValidCustomElementName(extendsOption)) {
- throw DOMException.create(_globalObject, [
- "Option extends value can't be a valid custom element name.",
- "NotSupportedError"
- ]);
- }
+`;
- const extendsInterface = getHTMLElementInterface(extendsOption);
- if (extendsInterface === HTMLUnknownElement) {
- throw DOMException.create(_globalObject, [
- `${extendsOption} is an HTMLUnknownElement.`,
- "NotSupportedError"
- ]);
- }
- localName = extendsOption;
- }
+/***/ }),
- if (this._elementDefinitionIsRunning) {
- throw DOMException.create(_globalObject, [
- "Invalid nested custom element definition.",
- "NotSupportedError"
- ]);
- }
+/***/ 42751:
+/***/ ((module) => {
- this._elementDefinitionIsRunning = true;
+"use strict";
- let disableShadow = false;
- let observedAttributes = [];
- const lifecycleCallbacks = {
- connectedCallback: null,
- disconnectedCallback: null,
- adoptedCallback: null,
- attributeChangedCallback: null
- };
- let caughtError;
- try {
- const { prototype } = ctor;
+module.exports = function (nameForErrorMessage, window) {
+ if (!window) {
+ // Do nothing for window-less documents.
+ return;
+ }
- if (typeof prototype !== "object") {
- throw new TypeError("Invalid constructor prototype.");
- }
+ const error = new Error(`Not implemented: ${nameForErrorMessage}`);
+ error.type = "not implemented";
- for (const callbackName of LIFECYCLE_CALLBACKS) {
- const callbackValue = prototype[callbackName];
+ window._virtualConsole.emit("jsdomError", error);
+};
- if (callbackValue !== undefined) {
- lifecycleCallbacks[callbackName] = IDLFunction.convert(callbackValue, {
- context: `The lifecycle callback "${callbackName}"`
- });
- }
- }
- if (lifecycleCallbacks.attributeChangedCallback !== null) {
- const observedAttributesIterable = ctor.observedAttributes;
+/***/ }),
- if (observedAttributesIterable !== undefined) {
- observedAttributes = convertToSequenceDOMString(observedAttributesIterable);
- }
- }
+/***/ 53601:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- let disabledFeatures = [];
- const disabledFeaturesIterable = ctor.disabledFeatures;
- if (disabledFeaturesIterable) {
- disabledFeatures = convertToSequenceDOMString(disabledFeaturesIterable);
- }
+"use strict";
- disableShadow = disabledFeatures.includes("shadow");
- } catch (err) {
- caughtError = err;
- } finally {
- this._elementDefinitionIsRunning = false;
- }
- if (caughtError !== undefined) {
- throw caughtError;
- }
+const parse5 = __nccwpck_require__(65598);
- const definition = {
- name,
- localName,
- constructor,
- objectReference: ctor,
- observedAttributes,
- lifecycleCallbacks,
- disableShadow,
- constructionStack: []
- };
+const { createElement } = __nccwpck_require__(98548);
+const { HTML_NS } = __nccwpck_require__(52635);
- this._customElementDefinitions.push(definition);
+const DocumentType = __nccwpck_require__(53193);
+const DocumentFragment = __nccwpck_require__(11490);
+const Text = __nccwpck_require__(49374);
+const Comment = __nccwpck_require__(56625);
- const document = idlUtils.implForWrapper(this._globalObject._document);
+const attributes = __nccwpck_require__(35092);
+const nodeTypes = __nccwpck_require__(10656);
- const upgradeCandidates = [];
- for (const candidate of shadowIncludingInclusiveDescendantsIterator(document)) {
- if (
- (candidate._namespaceURI === HTML_NS && candidate._localName === localName) &&
- (extendsOption === null || candidate._isValue === name)
- ) {
- upgradeCandidates.push(candidate);
- }
- }
+const serializationAdapter = __nccwpck_require__(19756);
+const {
+ customElementReactionsStack, invokeCEReactions, lookupCEDefinition
+} = __nccwpck_require__(25392);
- for (const upgradeCandidate of upgradeCandidates) {
- enqueueCEUpgradeReaction(upgradeCandidate, definition);
- }
+// Horrible monkey-patch to implement https://github.com/inikulin/parse5/issues/237 and
+// https://github.com/inikulin/parse5/issues/285.
+const OpenElementStack = __nccwpck_require__(64813);
- if (this._whenDefinedPromiseMap[name] !== undefined) {
- this._whenDefinedPromiseMap[name].resolve(ctor);
- delete this._whenDefinedPromiseMap[name];
- }
- }
+const openElementStackOriginalPush = OpenElementStack.prototype.push;
+OpenElementStack.prototype.push = function (...args) {
+ openElementStackOriginalPush.apply(this, args);
+ this.treeAdapter._currentElement = this.current;
- // https://html.spec.whatwg.org/#dom-customelementregistry-get
- get(name) {
- const definition = this._customElementDefinitions.find(entry => entry.name === name);
- return definition && definition.objectReference;
+ const after = this.items[this.stackTop];
+ if (after._pushedOnStackOfOpenElements) {
+ after._pushedOnStackOfOpenElements();
}
+};
- // https://html.spec.whatwg.org/#dom-customelementregistry-whendefined
- whenDefined(name) {
- if (!isValidCustomElementName(name)) {
- return Promise.reject(DOMException.create(
- this._globalObject,
- ["Name argument is not a valid custom element name.", "SyntaxError"]
- ));
- }
-
- const alreadyRegistered = this._customElementDefinitions.find(entry => entry.name === name);
- if (alreadyRegistered) {
- return Promise.resolve(alreadyRegistered.objectReference);
- }
-
- if (this._whenDefinedPromiseMap[name] === undefined) {
- let resolve;
- const promise = new Promise(r => {
- resolve = r;
- });
-
- // Store the pending Promise along with the extracted resolve callback to actually resolve the returned Promise,
- // once the custom element is registered.
- this._whenDefinedPromiseMap[name] = {
- promise,
- resolve
- };
- }
+const openElementStackOriginalPop = OpenElementStack.prototype.pop;
+OpenElementStack.prototype.pop = function (...args) {
+ const before = this.items[this.stackTop];
- return this._whenDefinedPromiseMap[name].promise;
- }
+ openElementStackOriginalPop.apply(this, args);
+ this.treeAdapter._currentElement = this.current;
- // https://html.spec.whatwg.org/#dom-customelementregistry-upgrade
- upgrade(root) {
- for (const candidate of shadowIncludingInclusiveDescendantsIterator(root)) {
- if (candidate.nodeType === NODE_TYPE.ELEMENT_NODE) {
- tryUpgradeElement(candidate);
- }
- }
+ if (before._poppedOffStackOfOpenElements) {
+ before._poppedOffStackOfOpenElements();
}
-}
-
-module.exports = {
- implementation: CustomElementRegistryImpl
};
+class JSDOMParse5Adapter {
+ constructor(documentImpl, options = {}) {
+ this._documentImpl = documentImpl;
+ this._globalObject = documentImpl._globalObject;
+ this._fragment = options.fragment || false;
-/***/ }),
-
-/***/ 19951:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ // Since the createElement hook doesn't provide the parent element, we keep track of this using _currentElement:
+ // https://github.com/inikulin/parse5/issues/285. See above horrible monkey-patch for how this is maintained.
+ this._currentElement = undefined;
+ }
-"use strict";
+ _ownerDocument() {
+ const { _currentElement } = this;
-const XMLDocument = __nccwpck_require__(79133);
-const Document = __nccwpck_require__(11795);
-const { wrapperForImpl } = __nccwpck_require__(34908);
+ // The _currentElement is undefined when parsing elements at the root of the document.
+ if (_currentElement) {
+ return _currentElement.localName === "template" && _currentElement.namespaceURI === HTML_NS ?
+ _currentElement.content._ownerDocument :
+ _currentElement._ownerDocument;
+ }
-exports.createImpl = (globalObject, options, { alwaysUseDocumentClass = false } = {}) => {
- if (options.parsingMode === "xml" && !alwaysUseDocumentClass) {
- return XMLDocument.createImpl(globalObject, [], { options });
+ return this._documentImpl;
}
- return Document.createImpl(globalObject, [], { options });
-};
-
-exports.createWrapper = (...args) => {
- return wrapperForImpl(exports.createImpl(...args));
-};
+ createDocument() {
+ // parse5's model assumes that parse(html) will call into here to create the new Document, then return it. However,
+ // jsdom's model assumes we can create a Window (and through that create an empty Document), do some other setup
+ // stuff, and then parse, stuffing nodes into that Document as we go. So to adapt between these two models, we just
+ // return the already-created Document when asked by parse5 to "create" a Document.
+ return this._documentImpl;
+ }
-/***/ }),
+ createDocumentFragment() {
+ const ownerDocument = this._ownerDocument();
+ return DocumentFragment.createImpl(this._globalObject, [], { ownerDocument });
+ }
-/***/ 27124:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ // https://html.spec.whatwg.org/#create-an-element-for-the-token
+ createElement(localName, namespace, attrs) {
+ const ownerDocument = this._ownerDocument();
-"use strict";
+ const isAttribute = attrs.find(attr => attr.name === "is");
+ const isValue = isAttribute ? isAttribute.value : null;
+ const definition = lookupCEDefinition(ownerDocument, namespace, localName);
-const { parseIntoDocument } = __nccwpck_require__(35373);
+ let willExecuteScript = false;
+ if (definition !== null && !this._fragment) {
+ willExecuteScript = true;
+ }
-const Document = __nccwpck_require__(11795);
-
-exports.implementation = class DOMParserImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- parseFromString(string, contentType) {
- switch (String(contentType)) {
- case "text/html": {
- return this.createScriptingDisabledDocument("html", contentType, string);
- }
-
- case "text/xml":
- case "application/xml":
- case "application/xhtml+xml":
- case "image/svg+xml": {
- try {
- return this.createScriptingDisabledDocument("xml", contentType, string);
- } catch (error) {
- const document = this.createScriptingDisabledDocument("xml", contentType);
- const element = document.createElementNS("http://www.mozilla.org/newlayout/xml/parsererror.xml", "parsererror");
+ if (willExecuteScript) {
+ ownerDocument._throwOnDynamicMarkupInsertionCounter++;
+ customElementReactionsStack.push([]);
+ }
- element.textContent = error.message;
+ const element = createElement(ownerDocument, localName, namespace, null, isValue, willExecuteScript);
+ this.adoptAttributes(element, attrs);
- document.appendChild(element);
- return document;
- }
- }
+ if (willExecuteScript) {
+ const queue = customElementReactionsStack.pop();
+ invokeCEReactions(queue);
+ ownerDocument._throwOnDynamicMarkupInsertionCounter--;
+ }
- default:
- throw new TypeError("Invalid contentType");
+ if ("_parserInserted" in element) {
+ element._parserInserted = true;
}
+
+ return element;
}
- createScriptingDisabledDocument(parsingMode, contentType, string) {
- const document = Document.createImpl(this._globalObject, [], {
- options: {
- parsingMode,
- encoding: "UTF-8",
- contentType,
- readyState: "complete",
- scriptingDisabled: true
- // TODO: somehow set URL to active document's URL
- }
- });
+ createCommentNode(data) {
+ const ownerDocument = this._ownerDocument();
+ return Comment.createImpl(this._globalObject, [], { data, ownerDocument });
+ }
- if (string !== undefined) {
- parseIntoDocument(string, document);
- }
+ appendChild(parentNode, newNode) {
+ parentNode._append(newNode);
+ }
- return document;
+ insertBefore(parentNode, newNode, referenceNode) {
+ parentNode._insert(newNode, referenceNode);
}
-};
+ setTemplateContent(templateElement, contentFragment) {
+ // This code makes the glue between jsdom and parse5 HTMLTemplateElement parsing:
+ //
+ // * jsdom during the construction of the HTMLTemplateElement (for example when create via
+ // `document.createElement("template")`), creates a DocumentFragment and set it into _templateContents.
+ // * parse5 when parsing a tag creates an HTMLTemplateElement (`createElement` adapter hook) and also
+ // create a DocumentFragment (`createDocumentFragment` adapter hook).
+ //
+ // At this point we now have to replace the one created in jsdom with one created by parse5.
+ const { _ownerDocument, _host } = templateElement._templateContents;
+ contentFragment._ownerDocument = _ownerDocument;
+ contentFragment._host = _host;
-/***/ }),
+ templateElement._templateContents = contentFragment;
+ }
-/***/ 10393:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ setDocumentType(document, name, publicId, systemId) {
+ const ownerDocument = this._ownerDocument();
+ const documentType = DocumentType.createImpl(this._globalObject, [], { name, publicId, systemId, ownerDocument });
-"use strict";
+ document._append(documentType);
+ }
+ setDocumentMode(document, mode) {
+ // TODO: the rest of jsdom ignores this
+ document._mode = mode;
+ }
-const { parseFragment } = __nccwpck_require__(35373);
-const { HTML_NS } = __nccwpck_require__(52635);
-const { isShadowRoot } = __nccwpck_require__(36893);
-const NODE_TYPE = __nccwpck_require__(10656);
-const { fragmentSerialization } = __nccwpck_require__(33740);
+ detachNode(node) {
+ node.remove();
+ }
-// https://w3c.github.io/DOM-Parsing/#the-innerhtml-mixin
-exports.i = class InnerHTMLImpl {
- // https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
- get innerHTML() {
- return fragmentSerialization(this, {
- requireWellFormed: true,
- globalObject: this._globalObject
- });
+ insertText(parentNode, text) {
+ const { lastChild } = parentNode;
+ if (lastChild && lastChild.nodeType === nodeTypes.TEXT_NODE) {
+ lastChild.data += text;
+ } else {
+ const ownerDocument = this._ownerDocument();
+ const textNode = Text.createImpl(this._globalObject, [], { data: text, ownerDocument });
+ parentNode._append(textNode);
+ }
}
- set innerHTML(markup) {
- const contextElement = isShadowRoot(this) ? this.host : this;
- const fragment = parseFragment(markup, contextElement);
- let contextObject = this;
- if (this.nodeType === NODE_TYPE.ELEMENT_NODE && this.localName === "template" && this.namespaceURI === HTML_NS) {
- contextObject = this._templateContents;
+ insertTextBefore(parentNode, text, referenceNode) {
+ const { previousSibling } = referenceNode;
+ if (previousSibling && previousSibling.nodeType === nodeTypes.TEXT_NODE) {
+ previousSibling.data += text;
+ } else {
+ const ownerDocument = this._ownerDocument();
+ const textNode = Text.createImpl(this._globalObject, [], { data: text, ownerDocument });
+ parentNode._append(textNode, referenceNode);
}
+ }
- contextObject._replaceAll(fragment);
+ adoptAttributes(element, attrs) {
+ for (const attr of attrs) {
+ const prefix = attr.prefix === "" ? null : attr.prefix;
+ attributes.setAttributeValue(element, attr.name, attr.value, prefix, attr.namespace);
+ }
}
-};
+}
+// Assign shared adapters with serializer.
+Object.assign(JSDOMParse5Adapter.prototype, serializationAdapter);
-/***/ }),
+function parseFragment(markup, contextElement) {
+ const ownerDocument = contextElement.localName === "template" && contextElement.namespaceURI === HTML_NS ?
+ contextElement.content._ownerDocument :
+ contextElement._ownerDocument;
-/***/ 347:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ const config = {
+ ...ownerDocument._parseOptions,
+ treeAdapter: new JSDOMParse5Adapter(ownerDocument, { fragment: true })
+ };
-"use strict";
+ return parse5.parseFragment(contextElement, markup, config);
+}
-const serialize = __nccwpck_require__(57914);
-const DOMException = __nccwpck_require__(57617);
-const utils = __nccwpck_require__(34908);
+function parseIntoDocument(markup, ownerDocument) {
+ const config = {
+ ...ownerDocument._parseOptions,
+ treeAdapter: new JSDOMParse5Adapter(ownerDocument)
+ };
-exports.implementation = class XMLSerializerImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
+ return parse5.parse(markup, config);
+}
- serializeToString(root) {
- try {
- return serialize(utils.wrapperForImpl(root), { requireWellFormed: false });
- } catch (e) {
- throw DOMException.create(this._globalObject, [e.message, "InvalidStateError"]);
- }
- }
+module.exports = {
+ parseFragment,
+ parseIntoDocument
};
/***/ }),
-/***/ 19756:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 35373:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const nodeTypes = __nccwpck_require__(10656);
-const { domSymbolTree } = __nccwpck_require__(35633);
-// Serialization only requires a subset of the tree adapter interface.
-// Tree traversing
-exports.getFirstChild = node => node.firstChild;
+const xmlParser = __nccwpck_require__(13408);
+const htmlParser = __nccwpck_require__(53601);
-exports.getChildNodes = node => node.childNodesForSerializing || domSymbolTree.childrenToArray(node);
+// https://w3c.github.io/DOM-Parsing/#dfn-fragment-parsing-algorithm
+function parseFragment(markup, contextElement) {
+ const { _parsingMode } = contextElement._ownerDocument;
-exports.getParentNode = node => node.parentNode;
+ let parseAlgorithm;
+ if (_parsingMode === "html") {
+ parseAlgorithm = htmlParser.parseFragment;
+ } else if (_parsingMode === "xml") {
+ parseAlgorithm = xmlParser.parseFragment;
+ }
-exports.getAttrList = element => {
- const attributeList = [...element._attributeList];
+ // Note: HTML and XML fragment parsing algorithm already return a document fragments; no need to do steps 3 and 4
+ return parseAlgorithm(markup, contextElement);
+}
- if (element._isValue && attributeList.every(attr => attr.name !== "is")) {
- attributeList.unshift({
- name: "is",
- namespace: null,
- prefix: null,
- value: element._isValue
- });
+function parseIntoDocument(markup, ownerDocument) {
+ const { _parsingMode } = ownerDocument;
+
+ let parseAlgorithm;
+ if (_parsingMode === "html") {
+ parseAlgorithm = htmlParser.parseIntoDocument;
+ } else if (_parsingMode === "xml") {
+ parseAlgorithm = xmlParser.parseIntoDocument;
}
- return attributeList;
-};
+ return parseAlgorithm(markup, ownerDocument);
+}
-// Node data
-exports.getTagName = element => element._qualifiedName; // https://github.com/inikulin/parse5/issues/231
+module.exports = {
+ parseFragment,
+ parseIntoDocument
+};
-exports.getNamespaceURI = element => element.namespaceURI;
-exports.getTextNodeContent = exports.getCommentNodeContent = node => node.data;
+/***/ }),
-exports.getDocumentTypeNodeName = node => node.name;
+/***/ 13408:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-exports.getDocumentTypeNodePublicId = node => node.publicId;
+"use strict";
-exports.getDocumentTypeNodeSystemId = node => node.systemId;
-exports.getTemplateContent = templateElement => templateElement._templateContents;
+const { SaxesParser } = __nccwpck_require__(42958);
+const DOMException = __nccwpck_require__(57617);
-exports.getDocumentMode = document => document._mode;
+const { createElement } = __nccwpck_require__(98548);
-// Node types
-exports.isTextNode = node => node.nodeType === nodeTypes.TEXT_NODE;
+const DocumentFragment = __nccwpck_require__(11490);
+const DocumentType = __nccwpck_require__(53193);
+const CDATASection = __nccwpck_require__(85221);
+const Comment = __nccwpck_require__(56625);
+const ProcessingInstruction = __nccwpck_require__(75221);
+const Text = __nccwpck_require__(49374);
-exports.isCommentNode = node => node.nodeType === nodeTypes.COMMENT_NODE;
+const attributes = __nccwpck_require__(35092);
+const { HTML_NS } = __nccwpck_require__(52635);
-exports.isDocumentTypeNode = node => node.nodeType === nodeTypes.DOCUMENT_TYPE_NODE;
+const HTML5_DOCTYPE = //i;
+const PUBLIC_DOCTYPE = /]+)/i;
-exports.isElementNode = node => node.nodeType === nodeTypes.ELEMENT_NODE;
+function parseDocType(globalObject, ownerDocument, html) {
+ if (HTML5_DOCTYPE.test(html)) {
+ return createDocumentType(globalObject, ownerDocument, "html", "", "");
+ }
-// Source code location
-exports.setNodeSourceCodeLocation = (node, location) => {
- node.sourceCodeLocation = location;
-};
+ const publicPieces = PUBLIC_DOCTYPE.exec(html);
+ if (publicPieces) {
+ return createDocumentType(globalObject, ownerDocument, publicPieces[1], publicPieces[2], publicPieces[3]);
+ }
-exports.getNodeSourceCodeLocation = node => node.sourceCodeLocation;
+ const systemPieces = SYSTEM_DOCTYPE.exec(html);
+ if (systemPieces) {
+ return createDocumentType(globalObject, ownerDocument, systemPieces[1], "", systemPieces[2]);
+ }
-exports.updateNodeSourceCodeLocation = (node, endLocation) => {
- Object.assign(node.sourceCodeLocation, endLocation);
-};
+ const namePiece = CUSTOM_NAME_DOCTYPE.exec(html)[1] || "html";
+ return createDocumentType(globalObject, ownerDocument, namePiece, "", "");
+}
+function createDocumentType(globalObject, ownerDocument, name, publicId, systemId) {
+ return DocumentType.createImpl(globalObject, [], { ownerDocument, name, publicId, systemId });
+}
-/***/ }),
+function isHTMLTemplateElement(element) {
+ return element.tagName === "template" && element.namespaceURI === HTML_NS;
+}
-/***/ 33740:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-"use strict";
+function createParser(rootNode, globalObject, saxesOptions) {
+ const parser = new SaxesParser({
+ ...saxesOptions,
+ // Browsers always have namespace support.
+ xmlns: true,
+ // We force the parser to treat all documents (even documents declaring themselves to be XML 1.1 documents) as XML
+ // 1.0 documents. See https://github.com/jsdom/jsdom/issues/2677 for a discussion of the stakes.
+ defaultXMLVersion: "1.0",
+ forceXMLVersion: true
+ });
+ const openStack = [rootNode];
+ function getOwnerDocument() {
+ const currentElement = openStack[openStack.length - 1];
-const produceXMLSerialization = __nccwpck_require__(57914);
-const parse5 = __nccwpck_require__(65598);
-const DOMException = __nccwpck_require__(57617);
+ return isHTMLTemplateElement(currentElement) ?
+ currentElement._templateContents._ownerDocument :
+ currentElement._ownerDocument;
+ }
-const utils = __nccwpck_require__(34908);
-const treeAdapter = __nccwpck_require__(19756);
-const NODE_TYPE = __nccwpck_require__(10656);
-const NAMESPACES = __nccwpck_require__(52635);
+ function appendChild(child) {
+ const parentElement = openStack[openStack.length - 1];
-function htmlSerialization(node) {
- if (
- node.nodeType === NODE_TYPE.ELEMENT_NODE &&
- node.namespaceURI === NAMESPACES.HTML_NS &&
- node.tagName === "TEMPLATE"
- ) {
- node = node.content;
+ if (isHTMLTemplateElement(parentElement)) {
+ parentElement._templateContents._insert(child, null);
+ } else {
+ parentElement._insert(child, null);
+ }
}
- return parse5.serialize(node, { treeAdapter });
-}
+ parser.on("text", saxesOptions.fragment ?
+ // In a fragment, all text events produced by saxes must result in a text
+ // node.
+ data => {
+ const ownerDocument = getOwnerDocument();
+ appendChild(Text.createImpl(globalObject, [], { data, ownerDocument }));
+ } :
+ // When parsing a whole document, we must ignore those text nodes that are
+ // produced outside the root element. Saxes produces events for them,
+ // but DOM trees do not record text outside the root element.
+ data => {
+ if (openStack.length > 1) {
+ const ownerDocument = getOwnerDocument();
+ appendChild(Text.createImpl(globalObject, [], { data, ownerDocument }));
+ }
+ });
-module.exports.fragmentSerialization = (node, { requireWellFormed, globalObject }) => {
- const contextDocument =
- node.nodeType === NODE_TYPE.DOCUMENT_NODE ? node : node._ownerDocument;
- if (contextDocument._parsingMode === "html") {
- return htmlSerialization(node);
- }
+ parser.on("cdata", data => {
+ const ownerDocument = getOwnerDocument();
+ appendChild(CDATASection.createImpl(globalObject, [], { data, ownerDocument }));
+ });
- const childNodes = node.childNodesForSerializing || node.childNodes;
+ parser.on("opentag", tag => {
+ const { local: tagLocal, attributes: tagAttributes } = tag;
- try {
- let serialized = "";
- for (let i = 0; i < childNodes.length; ++i) {
- serialized += produceXMLSerialization(
- utils.wrapperForImpl(childNodes[i] || childNodes.item(i)),
- { requireWellFormed }
- );
+ const ownerDocument = getOwnerDocument();
+ const tagNamespace = tag.uri === "" ? null : tag.uri;
+ const tagPrefix = tag.prefix === "" ? null : tag.prefix;
+ const isValue = tagAttributes.is === undefined ? null : tagAttributes.is.value;
+
+ const elem = createElement(ownerDocument, tagLocal, tagNamespace, tagPrefix, isValue, true);
+
+ // We mark a script element as "parser-inserted", which prevents it from
+ // being immediately executed.
+ if (tagLocal === "script" && tagNamespace === HTML_NS) {
+ elem._parserInserted = true;
}
- return serialized;
- } catch (e) {
- throw DOMException.create(globalObject, [e.message, "InvalidStateError"]);
- }
-};
+ for (const key of Object.keys(tagAttributes)) {
+ const { prefix, local, uri, value } = tagAttributes[key];
+ attributes.setAttributeValue(elem, local, value, prefix === "" ? null : prefix, uri === "" ? null : uri);
+ }
-/***/ }),
+ appendChild(elem);
+ openStack.push(elem);
+ });
-/***/ 9213:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ parser.on("closetag", () => {
+ const elem = openStack.pop();
+ // Once a script is populated, we can execute it.
+ if (elem.localName === "script" && elem.namespaceURI === HTML_NS) {
+ elem._eval();
+ }
+ });
-"use strict";
+ parser.on("comment", data => {
+ const ownerDocument = getOwnerDocument();
+ appendChild(Comment.createImpl(globalObject, [], { data, ownerDocument }));
+ });
+ parser.on("processinginstruction", ({ target, body }) => {
+ const ownerDocument = getOwnerDocument();
+ appendChild(ProcessingInstruction.createImpl(globalObject, [], { target, data: body, ownerDocument }));
+ });
-const EventImpl = __nccwpck_require__(61883).implementation;
+ parser.on("doctype", dt => {
+ const ownerDocument = getOwnerDocument();
+ appendChild(parseDocType(globalObject, ownerDocument, ``));
-const CloseEventInit = __nccwpck_require__(6450);
+ const entityMatcher = //g;
+ let result;
+ while ((result = entityMatcher.exec(dt))) {
+ const [, name, value] = result;
+ if (!(name in parser.ENTITIES)) {
+ parser.ENTITIES[name] = value;
+ }
+ }
+ });
-class CloseEventImpl extends EventImpl {}
-CloseEventImpl.defaultInit = CloseEventInit.convert(undefined);
+ parser.on("error", err => {
+ throw DOMException.create(globalObject, [err.message, "SyntaxError"]);
+ });
-exports.implementation = CloseEventImpl;
+ return parser;
+}
+function parseFragment(markup, contextElement) {
+ const { _globalObject, _ownerDocument } = contextElement;
-/***/ }),
+ const fragment = DocumentFragment.createImpl(_globalObject, [], { ownerDocument: _ownerDocument });
-/***/ 79607:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ // Only parseFragment needs resolvePrefix per the saxes documentation:
+ // https://github.com/lddubeau/saxes#parsing-xml-fragments
+ const parser = createParser(fragment, _globalObject, {
+ fragment: true,
+ resolvePrefix(prefix) {
+ // saxes wants undefined as the return value if the prefix is not defined, not null.
+ return contextElement.lookupNamespaceURI(prefix) || undefined;
+ }
+ });
-"use strict";
+ parser.write(markup).close();
+ return fragment;
+}
-const UIEventImpl = __nccwpck_require__(55900).implementation;
-const CompositionEventInit = __nccwpck_require__(57053);
+function parseIntoDocument(markup, ownerDocument) {
+ const { _globalObject } = ownerDocument;
-class CompositionEventImpl extends UIEventImpl {
- initCompositionEvent(type, bubbles, cancelable, view, data) {
- if (this._dispatchFlag) {
- return;
- }
+ const parser = createParser(ownerDocument, _globalObject, {
+ fileName: ownerDocument.location && ownerDocument.location.href
+ });
- this.initUIEvent(type, bubbles, cancelable, view, 0);
- this.data = data;
- }
+ parser.write(markup).close();
+
+ return ownerDocument;
}
-CompositionEventImpl.defaultInit = CompositionEventInit.convert(undefined);
module.exports = {
- implementation: CompositionEventImpl
+ parseFragment,
+ parseIntoDocument
};
/***/ }),
-/***/ 47560:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 69420:
+/***/ ((module) => {
"use strict";
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const CustomEventInit = __nccwpck_require__(29264);
-
-class CustomEventImpl extends EventImpl {
- initCustomEvent(type, bubbles, cancelable, detail) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.detail = detail;
+class QueueItem {
+ constructor(onLoad, onError, dependentItem) {
+ this.onLoad = onLoad;
+ this.onError = onError;
+ this.data = null;
+ this.error = null;
+ this.dependentItem = dependentItem;
}
}
-CustomEventImpl.defaultInit = CustomEventInit.convert(undefined);
-
-module.exports = {
- implementation: CustomEventImpl
-};
+/**
+ * AsyncResourceQueue is the queue in charge of run the async scripts
+ * and notify when they finish.
+ */
+module.exports = class AsyncResourceQueue {
+ constructor() {
+ this.items = new Set();
+ this.dependentItems = new Set();
+ }
-/***/ }),
+ count() {
+ return this.items.size + this.dependentItems.size;
+ }
-/***/ 21385:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ _notify() {
+ if (this._listener) {
+ this._listener();
+ }
+ }
-"use strict";
+ _check(item) {
+ let promise;
+ if (item.onError && item.error) {
+ promise = item.onError(item.error);
+ } else if (item.onLoad && item.data) {
+ promise = item.onLoad(item.data);
+ }
-const EventImpl = __nccwpck_require__(61883).implementation;
+ promise
+ .then(() => {
+ this.items.delete(item);
+ this.dependentItems.delete(item);
-const ErrorEventInit = __nccwpck_require__(72886);
+ if (this.count() === 0) {
+ this._notify();
+ }
+ });
+ }
-class ErrorEventImpl extends EventImpl {
+ setListener(listener) {
+ this._listener = listener;
+ }
-}
-ErrorEventImpl.defaultInit = ErrorEventInit.convert(undefined);
+ push(request, onLoad, onError, dependentItem) {
+ const q = this;
-module.exports = {
- implementation: ErrorEventImpl
-};
+ const item = new QueueItem(onLoad, onError, dependentItem);
+ q.items.add(item);
-/***/ }),
+ return request
+ .then(data => {
+ item.data = data;
-/***/ 61883:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ if (dependentItem && !dependentItem.finished) {
+ q.dependentItems.add(item);
+ return q.items.delete(item);
+ }
-"use strict";
+ if (onLoad) {
+ return q._check(item);
+ }
+ q.items.delete(item);
-const idlUtils = __nccwpck_require__(34908);
-const EventInit = __nccwpck_require__(4895);
+ if (q.count() === 0) {
+ q._notify();
+ }
-class EventImpl {
- constructor(globalObject, args, privateData) {
- const [type, eventInitDict = this.constructor.defaultInit] = args;
+ return null;
+ })
+ .catch(err => {
+ item.error = err;
- this.type = type;
+ if (dependentItem && !dependentItem.finished) {
+ q.dependentItems.add(item);
+ return q.items.delete(item);
+ }
- this.bubbles = false;
- this.cancelable = false;
- for (const key in eventInitDict) {
- if (key in this.constructor.defaultInit) {
- this[key] = eventInitDict[key];
- }
- }
- for (const key in this.constructor.defaultInit) {
- if (!(key in this)) {
- this[key] = this.constructor.defaultInit[key];
- }
- }
+ if (onError) {
+ return q._check(item);
+ }
- this.target = null;
- this.currentTarget = null;
- this.eventPhase = 0;
+ q.items.delete(item);
- this._globalObject = globalObject;
- this._initializedFlag = true;
- this._stopPropagationFlag = false;
- this._stopImmediatePropagationFlag = false;
- this._canceledFlag = false;
- this._inPassiveListenerFlag = false;
- this._dispatchFlag = false;
- this._path = [];
+ if (q.count() === 0) {
+ q._notify();
+ }
- this.isTrusted = privateData.isTrusted || false;
- this.timeStamp = Date.now();
+ return null;
+ });
}
- // https://dom.spec.whatwg.org/#set-the-canceled-flag
- _setTheCanceledFlag() {
- if (this.cancelable && !this._inPassiveListenerFlag) {
- this._canceledFlag = true;
+ notifyItem(syncItem) {
+ for (const item of this.dependentItems) {
+ if (item.dependentItem === syncItem) {
+ this._check(item);
+ }
}
}
+};
- get srcElement() {
- return this.target;
- }
-
- get returnValue() {
- return !this._canceledFlag;
- }
- set returnValue(v) {
- if (v === false) {
- this._setTheCanceledFlag();
- }
- }
+/***/ }),
- get defaultPrevented() {
- return this._canceledFlag;
- }
+/***/ 5383:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- stopPropagation() {
- this._stopPropagationFlag = true;
- }
+"use strict";
- get cancelBubble() {
- return this._stopPropagationFlag;
- }
+const ResourceLoader = __nccwpck_require__(90007);
- set cancelBubble(v) {
- if (v) {
- this._stopPropagationFlag = true;
- }
+module.exports = class NoOpResourceLoader extends ResourceLoader {
+ fetch() {
+ return null;
}
+};
- stopImmediatePropagation() {
- this._stopPropagationFlag = true;
- this._stopImmediatePropagationFlag = true;
- }
- preventDefault() {
- this._setTheCanceledFlag();
- }
+/***/ }),
- // https://dom.spec.whatwg.org/#dom-event-composedpath
- // Current implementation is based of https://whatpr.org/dom/699.html#dom-event-composedpath
- // due to a bug in composed path implementation https://github.com/whatwg/dom/issues/684
- composedPath() {
- const composedPath = [];
+/***/ 42801:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- const { currentTarget, _path: path } = this;
+"use strict";
- if (path.length === 0) {
- return composedPath;
- }
+const idlUtils = __nccwpck_require__(34908);
+const { fireAnEvent } = __nccwpck_require__(45673);
- composedPath.push(currentTarget);
+module.exports = class PerDocumentResourceLoader {
+ constructor(document) {
+ this._document = document;
+ this._defaultEncoding = document._encoding;
+ this._resourceLoader = document._defaultView ? document._defaultView._resourceLoader : null;
+ this._requestManager = document._requestManager;
+ this._queue = document._queue;
+ this._deferQueue = document._deferQueue;
+ this._asyncQueue = document._asyncQueue;
+ }
- let currentTargetIndex = 0;
- let currentTargetHiddenSubtreeLevel = 0;
+ fetch(url, { element, onLoad, onError }) {
+ const request = this._resourceLoader.fetch(url, {
+ cookieJar: this._document._cookieJar,
+ element: idlUtils.wrapperForImpl(element),
+ referrer: this._document.URL
+ });
- for (let index = path.length - 1; index >= 0; index--) {
- const { item, rootOfClosedTree, slotInClosedTree } = path[index];
+ if (request === null) {
+ return null;
+ }
- if (rootOfClosedTree) {
- currentTargetHiddenSubtreeLevel++;
- }
+ this._requestManager.add(request);
- if (item === idlUtils.implForWrapper(currentTarget)) {
- currentTargetIndex = index;
- break;
- }
+ const onErrorWrapped = error => {
+ this._requestManager.remove(request);
- if (slotInClosedTree) {
- currentTargetHiddenSubtreeLevel--;
+ if (onError) {
+ onError(error);
}
- }
- let currentHiddenLevel = currentTargetHiddenSubtreeLevel;
- let maxHiddenLevel = currentTargetHiddenSubtreeLevel;
+ fireAnEvent("error", element);
- for (let i = currentTargetIndex - 1; i >= 0; i--) {
- const { item, rootOfClosedTree, slotInClosedTree } = path[i];
+ const err = new Error(`Could not load ${element.localName}: "${url}"`);
+ err.type = "resource loading";
+ err.detail = error;
- if (rootOfClosedTree) {
- currentHiddenLevel++;
- }
+ this._document._defaultView._virtualConsole.emit("jsdomError", err);
- if (currentHiddenLevel <= maxHiddenLevel) {
- composedPath.unshift(idlUtils.wrapperForImpl(item));
- }
+ return Promise.resolve();
+ };
- if (slotInClosedTree) {
- currentHiddenLevel--;
- if (currentHiddenLevel < maxHiddenLevel) {
- maxHiddenLevel = currentHiddenLevel;
- }
- }
- }
+ const onLoadWrapped = data => {
+ this._requestManager.remove(request);
- currentHiddenLevel = currentTargetHiddenSubtreeLevel;
- maxHiddenLevel = currentTargetHiddenSubtreeLevel;
+ this._addCookies(url, request.response ? request.response.headers : {});
- for (let index = currentTargetIndex + 1; index < path.length; index++) {
- const { item, rootOfClosedTree, slotInClosedTree } = path[index];
+ try {
+ const result = onLoad ? onLoad(data) : undefined;
- if (slotInClosedTree) {
- currentHiddenLevel++;
- }
+ return Promise.resolve(result)
+ .then(() => {
+ fireAnEvent("load", element);
- if (currentHiddenLevel <= maxHiddenLevel) {
- composedPath.push(idlUtils.wrapperForImpl(item));
+ return Promise.resolve();
+ })
+ .catch(err => {
+ return onErrorWrapped(err);
+ });
+ } catch (err) {
+ return onErrorWrapped(err);
}
+ };
- if (rootOfClosedTree) {
- currentHiddenLevel--;
- if (currentHiddenLevel < maxHiddenLevel) {
- maxHiddenLevel = currentHiddenLevel;
- }
- }
+ if (element.localName === "script" && element.hasAttributeNS(null, "async")) {
+ this._asyncQueue.push(request, onLoadWrapped, onErrorWrapped, this._queue.getLastScript());
+ } else if (element.localName === "script" && element.hasAttributeNS(null, "defer")) {
+ this._deferQueue.push(request, onLoadWrapped, onErrorWrapped, false, element);
+ } else {
+ this._queue.push(request, onLoadWrapped, onErrorWrapped, false, element);
}
- return composedPath;
+ return request;
}
- _initialize(type, bubbles, cancelable) {
- this.type = type;
- this._initializedFlag = true;
-
- this._stopPropagationFlag = false;
- this._stopImmediatePropagationFlag = false;
- this._canceledFlag = false;
-
- this.isTrusted = false;
- this.target = null;
- this.bubbles = bubbles;
- this.cancelable = cancelable;
- }
+ _addCookies(url, headers) {
+ let cookies = headers["set-cookie"];
- initEvent(type, bubbles, cancelable) {
- if (this._dispatchFlag) {
+ if (!cookies) {
return;
}
- this._initialize(type, bubbles, cancelable);
- }
-}
-EventImpl.defaultInit = EventInit.convert(undefined);
+ if (!Array.isArray(cookies)) {
+ cookies = [cookies];
+ }
-module.exports = {
- implementation: EventImpl
+ cookies.forEach(cookie => {
+ this._document._cookieJar.setCookieSync(cookie, url, { http: true, ignoreError: true });
+ });
+ }
};
/***/ }),
-/***/ 86789:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 87657:
+/***/ ((module) => {
"use strict";
-// This mixin doesn't have an IDL equivalent, but since MouseEvent and KeyboardEvent implement getModifierState() the
-// same way, its implementation is shared here.
+/**
+ * Manage all the request and it is able to abort
+ * all pending request.
+ */
+module.exports = class RequestManager {
+ constructor() {
+ this.openedRequests = [];
+ }
-class EventModifierMixinImpl {
- // Event's constructor assumes all options correspond to IDL attributes with the same names, and sets them on `this`.
- // That is not the case for these modifier boolean options, but since the options are set on `this` anyway we'll
- // access them that way. The spec doesn't say much about the case where keyArg is not one of the valid ones
- // (https://w3c.github.io/uievents-key/#keys-modifier), but at least Chrome returns false for invalid modifiers. Since
- // these invalid modifiers will be undefined on `this` (thus `false` after casting it to boolean), we don't need to do
- // extra checking for validity.
- getModifierState(keyArg) {
- return Boolean(this[`modifier${keyArg}`]);
+ add(req) {
+ this.openedRequests.push(req);
}
-}
-exports.i = EventModifierMixinImpl;
+ remove(req) {
+ const idx = this.openedRequests.indexOf(req);
+ if (idx !== -1) {
+ this.openedRequests.splice(idx, 1);
+ }
+ }
+
+ close() {
+ for (const openedRequest of this.openedRequests) {
+ openedRequest.abort();
+ }
+ this.openedRequests = [];
+ }
+
+ size() {
+ return this.openedRequests.length;
+ }
+};
/***/ }),
-/***/ 18557:
+/***/ 90007:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const DOMException = __nccwpck_require__(57617);
+const fs = __nccwpck_require__(57147);
+const { fileURLToPath } = __nccwpck_require__(57310);
+const { parseURL } = __nccwpck_require__(66365);
+const dataURLFromRecord = (__nccwpck_require__(18326).fromURLRecord);
+const request = __nccwpck_require__(56483);
+const wrapCookieJarForRequest = __nccwpck_require__(14906);
+const packageVersion = (__nccwpck_require__(89244)/* .version */ .i8);
+const IS_BROWSER = Object.prototype.toString.call(process) !== "[object process]";
-const reportException = __nccwpck_require__(15612);
-const idlUtils = __nccwpck_require__(34908);
-const { nodeRoot } = __nccwpck_require__(98962);
-const {
- isNode, isShadowRoot, isSlotable, getEventTargetParent,
- isShadowInclusiveAncestor, retarget
-} = __nccwpck_require__(36893);
+module.exports = class ResourceLoader {
+ constructor({
+ strictSSL = true,
+ proxy = undefined,
+ userAgent = `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 ` +
+ `(KHTML, like Gecko) jsdom/${packageVersion}`
+ } = {}) {
+ this._strictSSL = strictSSL;
+ this._proxy = proxy;
+ this._userAgent = userAgent;
+ }
-const MouseEvent = __nccwpck_require__(35364);
+ _readDataURL(urlRecord) {
+ const dataURL = dataURLFromRecord(urlRecord);
+ let timeoutId;
+ const promise = new Promise(resolve => {
+ timeoutId = setTimeout(resolve, 0, dataURL.body);
+ });
+ promise.abort = () => {
+ if (timeoutId !== undefined) {
+ clearTimeout(timeoutId);
+ }
+ };
+ return promise;
+ }
-const EVENT_PHASE = {
- NONE: 0,
- CAPTURING_PHASE: 1,
- AT_TARGET: 2,
- BUBBLING_PHASE: 3
-};
+ _readFile(filePath) {
+ let readableStream, abort; // Native Promises doesn't have an "abort" method.
-class EventTargetImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- this._eventListeners = Object.create(null);
- }
+ // Creating a promise for two reason:
+ // 1. fetch always return a promise.
+ // 2. We need to add an abort handler.
+ const promise = new Promise((resolve, reject) => {
+ readableStream = fs.createReadStream(filePath);
+ let data = Buffer.alloc(0);
- addEventListener(type, callback, options) {
- options = normalizeEventHandlerOptions(options, ["capture", "once", "passive"]);
+ abort = reject;
- if (callback === null) {
- return;
- }
+ readableStream.on("error", reject);
- if (!this._eventListeners[type]) {
- this._eventListeners[type] = [];
- }
+ readableStream.on("data", chunk => {
+ data = Buffer.concat([data, chunk]);
+ });
- for (let i = 0; i < this._eventListeners[type].length; ++i) {
- const listener = this._eventListeners[type][i];
- if (
- listener.callback.objectReference === callback.objectReference &&
- listener.options.capture === options.capture
- ) {
- return;
+ readableStream.on("end", () => {
+ resolve(data);
+ });
+ });
+
+ promise.abort = () => {
+ readableStream.destroy();
+ const error = new Error("request canceled by user");
+ error.isAbortError = true;
+ abort(error);
+ };
+
+ return promise;
+ }
+
+ _getRequestOptions({ cookieJar, referrer, accept = "*/*" }) {
+ const requestOptions = {
+ encoding: null,
+ gzip: true,
+ jar: wrapCookieJarForRequest(cookieJar),
+ strictSSL: this._strictSSL,
+ proxy: this._proxy,
+ forever: true,
+ headers: {
+ "User-Agent": this._userAgent,
+ "Accept-Language": "en",
+ "Accept": accept
}
+ };
+
+ if (referrer && !IS_BROWSER) {
+ requestOptions.headers.referer = referrer;
}
- this._eventListeners[type].push({
- callback,
- options
- });
+ return requestOptions;
}
- removeEventListener(type, callback, options) {
- options = normalizeEventHandlerOptions(options, ["capture"]);
+ fetch(urlString, options = {}) {
+ const url = parseURL(urlString);
- if (callback === null) {
- // Optimization, not in the spec.
- return;
+ if (!url) {
+ return Promise.reject(new Error(`Tried to fetch invalid URL ${urlString}`));
}
- if (!this._eventListeners[type]) {
- return;
- }
+ switch (url.scheme) {
+ case "data": {
+ return this._readDataURL(url);
+ }
- for (let i = 0; i < this._eventListeners[type].length; ++i) {
- const listener = this._eventListeners[type][i];
- if (
- listener.callback.objectReference === callback.objectReference &&
- listener.options.capture === options.capture
- ) {
- this._eventListeners[type].splice(i, 1);
- break;
+ case "http":
+ case "https": {
+ const requestOptions = this._getRequestOptions(options);
+ return request(urlString, requestOptions);
+ }
+
+ case "file": {
+ try {
+ return this._readFile(fileURLToPath(urlString));
+ } catch (e) {
+ return Promise.reject(e);
+ }
+ }
+
+ default: {
+ return Promise.reject(new Error(`Tried to fetch URL ${urlString} with invalid scheme ${url.scheme}`));
}
}
}
+};
- dispatchEvent(eventImpl) {
- if (eventImpl._dispatchFlag || !eventImpl._initializedFlag) {
- throw DOMException.create(this._globalObject, [
- "Tried to dispatch an uninitialized event",
- "InvalidStateError"
- ]);
- }
- if (eventImpl.eventPhase !== EVENT_PHASE.NONE) {
- throw DOMException.create(this._globalObject, [
- "Tried to dispatch a dispatching event",
- "InvalidStateError"
- ]);
- }
-
- eventImpl.isTrusted = false;
-
- return this._dispatch(eventImpl);
- }
-
- // https://dom.spec.whatwg.org/#get-the-parent
- _getTheParent() {
- return null;
- }
-
- // https://dom.spec.whatwg.org/#concept-event-dispatch
- // legacyOutputDidListenersThrowFlag optional parameter is not necessary here since it is only used by indexDB.
- _dispatch(eventImpl, targetOverride /* , legacyOutputDidListenersThrowFlag */) {
- let targetImpl = this;
- let clearTargets = false;
- let activationTarget = null;
-
- eventImpl._dispatchFlag = true;
-
- targetOverride = targetOverride || targetImpl;
- let relatedTarget = retarget(eventImpl.relatedTarget, targetImpl);
-
- if (targetImpl !== relatedTarget || targetImpl === eventImpl.relatedTarget) {
- const touchTargets = [];
-
- appendToEventPath(eventImpl, targetImpl, targetOverride, relatedTarget, touchTargets, false);
-
- const isActivationEvent = MouseEvent.isImpl(eventImpl) && eventImpl.type === "click";
-
- if (isActivationEvent && targetImpl._hasActivationBehavior) {
- activationTarget = targetImpl;
- }
-
- let slotInClosedTree = false;
- let slotable = isSlotable(targetImpl) && targetImpl._assignedSlot ? targetImpl : null;
- let parent = getEventTargetParent(targetImpl, eventImpl);
-
- // Populate event path
- // https://dom.spec.whatwg.org/#event-path
- while (parent !== null) {
- if (slotable !== null) {
- if (parent.localName !== "slot") {
- throw new Error(`JSDOM Internal Error: Expected parent to be a Slot`);
- }
-
- slotable = null;
-
- const parentRoot = nodeRoot(parent);
- if (isShadowRoot(parentRoot) && parentRoot.mode === "closed") {
- slotInClosedTree = true;
- }
- }
- if (isSlotable(parent) && parent._assignedSlot) {
- slotable = parent;
- }
-
- relatedTarget = retarget(eventImpl.relatedTarget, parent);
-
- if (
- (isNode(parent) && isShadowInclusiveAncestor(nodeRoot(targetImpl), parent)) ||
- idlUtils.wrapperForImpl(parent).constructor.name === "Window"
- ) {
- if (isActivationEvent && eventImpl.bubbles && activationTarget === null &&
- parent._hasActivationBehavior) {
- activationTarget = parent;
- }
-
- appendToEventPath(eventImpl, parent, null, relatedTarget, touchTargets, slotInClosedTree);
- } else if (parent === relatedTarget) {
- parent = null;
- } else {
- targetImpl = parent;
-
- if (isActivationEvent && activationTarget === null && targetImpl._hasActivationBehavior) {
- activationTarget = targetImpl;
- }
-
- appendToEventPath(eventImpl, parent, targetImpl, relatedTarget, touchTargets, slotInClosedTree);
- }
-
- if (parent !== null) {
- parent = getEventTargetParent(parent, eventImpl);
- }
-
- slotInClosedTree = false;
- }
-
- let clearTargetsStructIndex = -1;
- for (let i = eventImpl._path.length - 1; i >= 0 && clearTargetsStructIndex === -1; i--) {
- if (eventImpl._path[i].target !== null) {
- clearTargetsStructIndex = i;
- }
- }
- const clearTargetsStruct = eventImpl._path[clearTargetsStructIndex];
-
- clearTargets =
- (isNode(clearTargetsStruct.target) && isShadowRoot(nodeRoot(clearTargetsStruct.target))) ||
- (isNode(clearTargetsStruct.relatedTarget) && isShadowRoot(nodeRoot(clearTargetsStruct.relatedTarget)));
-
- if (activationTarget !== null && activationTarget._legacyPreActivationBehavior) {
- activationTarget._legacyPreActivationBehavior();
- }
-
- for (let i = eventImpl._path.length - 1; i >= 0; --i) {
- const struct = eventImpl._path[i];
+/***/ }),
- if (struct.target !== null) {
- eventImpl.eventPhase = EVENT_PHASE.AT_TARGET;
- } else {
- eventImpl.eventPhase = EVENT_PHASE.CAPTURING_PHASE;
- }
+/***/ 65930:
+/***/ ((module) => {
- invokeEventListeners(struct, eventImpl, "capturing");
- }
+"use strict";
- for (let i = 0; i < eventImpl._path.length; i++) {
- const struct = eventImpl._path[i];
- if (struct.target !== null) {
- eventImpl.eventPhase = EVENT_PHASE.AT_TARGET;
- } else {
- if (!eventImpl.bubbles) {
- continue;
- }
+/**
+ * Queue for all the resources to be download except async scripts.
+ * Async scripts have their own queue AsyncResourceQueue.
+ */
+module.exports = class ResourceQueue {
+ constructor({ paused, asyncQueue } = {}) {
+ this.paused = Boolean(paused);
+ this._asyncQueue = asyncQueue;
+ }
- eventImpl.eventPhase = EVENT_PHASE.BUBBLING_PHASE;
- }
+ getLastScript() {
+ let head = this.tail;
- invokeEventListeners(struct, eventImpl, "bubbling");
+ while (head) {
+ if (head.isScript) {
+ return head;
}
+ head = head.prev;
}
- eventImpl.eventPhase = EVENT_PHASE.NONE;
-
- eventImpl.currentTarget = null;
- eventImpl._path = [];
- eventImpl._dispatchFlag = false;
- eventImpl._stopPropagationFlag = false;
- eventImpl._stopImmediatePropagationFlag = false;
+ return null;
+ }
- if (clearTargets) {
- eventImpl.target = null;
- eventImpl.relatedTarget = null;
- }
+ _moreScripts() {
+ let found = false;
- if (activationTarget !== null) {
- if (!eventImpl._canceledFlag) {
- activationTarget._activationBehavior(eventImpl);
- } else if (activationTarget._legacyCanceledActivationBehavior) {
- activationTarget._legacyCanceledActivationBehavior();
- }
+ let head = this.tail;
+ while (head && !found) {
+ found = head.isScript;
+ head = head.prev;
}
- return !eventImpl._canceledFlag;
+ return found;
}
-}
-
-module.exports = {
- implementation: EventTargetImpl
-};
-// https://dom.spec.whatwg.org/#concept-event-listener-invoke
-function invokeEventListeners(struct, eventImpl, phase) {
- const structIndex = eventImpl._path.indexOf(struct);
- for (let i = structIndex; i >= 0; i--) {
- const t = eventImpl._path[i];
- if (t.target) {
- eventImpl.target = t.target;
- break;
+ _notify() {
+ if (this._listener) {
+ this._listener();
}
}
- eventImpl.relatedTarget = idlUtils.wrapperForImpl(struct.relatedTarget);
-
- if (eventImpl._stopPropagationFlag) {
- return;
- }
-
- eventImpl.currentTarget = idlUtils.wrapperForImpl(struct.item);
-
- const listeners = struct.item._eventListeners;
- innerInvokeEventListeners(eventImpl, listeners, phase, struct.itemInShadowTree);
-}
-
-// https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke
-function innerInvokeEventListeners(eventImpl, listeners, phase, itemInShadowTree) {
- let found = false;
-
- const { type, target } = eventImpl;
- const wrapper = idlUtils.wrapperForImpl(target);
-
- if (!listeners || !listeners[type]) {
- return found;
+ setListener(listener) {
+ this._listener = listener;
}
- // Copy event listeners before iterating since the list can be modified during the iteration.
- const handlers = listeners[type].slice();
+ push(request, onLoad, onError, keepLast, element) {
+ const isScript = element ? element.localName === "script" : false;
- for (let i = 0; i < handlers.length; i++) {
- const listener = handlers[i];
- const { capture, once, passive } = listener.options;
+ if (!request) {
+ if (isScript && !this._moreScripts()) {
+ return onLoad();
+ }
- // Check if the event listener has been removed since the listeners has been cloned.
- if (!listeners[type].includes(listener)) {
- continue;
+ request = Promise.resolve();
}
+ const q = this;
+ const item = {
+ isScript,
+ err: null,
+ element,
+ fired: false,
+ data: null,
+ keepLast,
+ prev: q.tail,
+ check() {
+ if (!q.paused && !this.prev && this.fired) {
+ let promise;
- found = true;
+ if (this.err && onError) {
+ promise = onError(this.err);
+ }
- if (
- (phase === "capturing" && !capture) ||
- (phase === "bubbling" && capture)
- ) {
- continue;
- }
+ if (!this.err && onLoad) {
+ promise = onLoad(this.data);
+ }
- if (once) {
- listeners[type].splice(listeners[type].indexOf(listener), 1);
- }
+ Promise.resolve(promise)
+ .then(() => {
+ if (this.next) {
+ this.next.prev = null;
+ this.next.check();
+ } else { // q.tail===this
+ q.tail = null;
+ q._notify();
+ }
- let window = null;
- if (wrapper && wrapper._document) {
- // Triggered by Window
- window = wrapper;
- } else if (target._ownerDocument) {
- // Triggered by most webidl2js'ed instances
- window = target._ownerDocument._defaultView;
- } else if (wrapper._ownerDocument) {
- // Currently triggered by some non-webidl2js things
- window = wrapper._ownerDocument._defaultView;
- }
+ this.finished = true;
- let currentEvent;
- if (window) {
- currentEvent = window._currentEvent;
- if (!itemInShadowTree) {
- window._currentEvent = eventImpl;
+ if (q._asyncQueue) {
+ q._asyncQueue.notifyItem(this);
+ }
+ });
+ }
}
- }
-
- if (passive) {
- eventImpl._inPassiveListenerFlag = true;
- }
-
- try {
- listener.callback.call(eventImpl.currentTarget, eventImpl);
- } catch (e) {
- if (window) {
- reportException(window, e);
+ };
+ if (q.tail) {
+ if (q.tail.keepLast) {
+ // if the tail is the load event in document and we receive a new element to load
+ // we should add this new request before the load event.
+ if (q.tail.prev) {
+ q.tail.prev.next = item;
+ }
+ item.prev = q.tail.prev;
+ q.tail.prev = item;
+ item.next = q.tail;
+ } else {
+ q.tail.next = item;
+ q.tail = item;
}
- // Errors in window-less documents just get swallowed... can you think of anything better?
+ } else {
+ q.tail = item;
}
+ return request
+ .then(data => {
+ item.fired = 1;
+ item.data = data;
+ item.check();
+ })
+ .catch(err => {
+ item.fired = true;
+ item.err = err;
+ item.check();
+ });
+ }
- eventImpl._inPassiveListenerFlag = false;
-
- if (window) {
- window._currentEvent = currentEvent;
+ resume() {
+ if (!this.paused) {
+ return;
}
+ this.paused = false;
- if (eventImpl._stopImmediatePropagationFlag) {
- return found;
+ let head = this.tail;
+ while (head && head.prev) {
+ head = head.prev;
+ }
+ if (head) {
+ head.check();
}
}
-
- return found;
-}
-
-/**
- * Normalize the event listeners options argument in order to get always a valid options object
- * @param {Object} options - user defined options
- * @param {Array} defaultBoolKeys - boolean properties that should belong to the options object
- * @returns {Object} object containing at least the "defaultBoolKeys"
- */
-function normalizeEventHandlerOptions(options, defaultBoolKeys) {
- const returnValue = {};
-
- // no need to go further here
- if (typeof options === "boolean" || options === null || typeof options === "undefined") {
- returnValue.capture = Boolean(options);
- return returnValue;
- }
-
- // non objects options so we typecast its value as "capture" value
- if (typeof options !== "object") {
- returnValue.capture = Boolean(options);
- // at this point we don't need to loop the "capture" key anymore
- defaultBoolKeys = defaultBoolKeys.filter(k => k !== "capture");
- }
-
- for (const key of defaultBoolKeys) {
- returnValue[key] = Boolean(options[key]);
- }
-
- return returnValue;
-}
-
-// https://dom.spec.whatwg.org/#concept-event-path-append
-function appendToEventPath(eventImpl, target, targetOverride, relatedTarget, touchTargets, slotInClosedTree) {
- const itemInShadowTree = isNode(target) && isShadowRoot(nodeRoot(target));
- const rootOfClosedTree = isShadowRoot(target) && target.mode === "closed";
-
- eventImpl._path.push({
- item: target,
- itemInShadowTree,
- target: targetOverride,
- relatedTarget,
- touchTargets,
- rootOfClosedTree,
- slotInClosedTree
- });
-}
+};
/***/ }),
-/***/ 8703:
+/***/ 37300:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const UIEventImpl = __nccwpck_require__(55900).implementation;
-
-const FocusEventInit = __nccwpck_require__(89088);
-
-class FocusEventImpl extends UIEventImpl {}
-FocusEventImpl.defaultInit = FocusEventInit.convert(undefined);
-
-exports.implementation = FocusEventImpl;
-
-
-/***/ }),
-
-/***/ 93234:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const HashChangeEventInit = __nccwpck_require__(72491);
-
-class HashChangeEventImpl extends EventImpl {
-
-}
-HashChangeEventImpl.defaultInit = HashChangeEventInit.convert(undefined);
-
-module.exports = {
- implementation: HashChangeEventImpl
-};
-
+const cssom = __nccwpck_require__(1295);
+const cssstyle = __nccwpck_require__(15674);
-/***/ }),
+exports.addToCore = core => {
+ // What works now:
+ // - Accessing the rules defined in individual stylesheets
+ // - Modifications to style content attribute are reflected in style property
+ // - Modifications to style property are reflected in style content attribute
+ // TODO
+ // - Modifications to style element's textContent are reflected in sheet property.
+ // - Modifications to style element's sheet property are reflected in textContent.
+ // - Modifications to link.href property are reflected in sheet property.
+ // - Less-used features of link: disabled
+ // - Less-used features of style: disabled, scoped, title
+ // - CSSOM-View
+ // - getComputedStyle(): requires default stylesheet, cascading, inheritance,
+ // filtering by @media (screen? print?), layout for widths/heights
+ // - Load events are not in the specs, but apparently some browsers
+ // implement something. Should onload only fire after all @imports have been
+ // loaded, or only the primary sheet?
-/***/ 58056:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ core.StyleSheet = cssom.StyleSheet;
+ core.MediaList = cssom.MediaList;
+ core.CSSStyleSheet = cssom.CSSStyleSheet;
+ core.CSSRule = cssom.CSSRule;
+ core.CSSStyleRule = cssom.CSSStyleRule;
+ core.CSSMediaRule = cssom.CSSMediaRule;
+ core.CSSImportRule = cssom.CSSImportRule;
+ core.CSSStyleDeclaration = cssstyle.CSSStyleDeclaration;
-"use strict";
+ // Relavant specs
+ // http://www.w3.org/TR/DOM-Level-2-Style (2000)
+ // http://www.w3.org/TR/cssom-view/ (2008)
+ // http://dev.w3.org/csswg/cssom/ (2010) Meant to replace DOM Level 2 Style
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5, of course
+ // http://dev.w3.org/csswg/css-style-attr/ not sure what's new here
-const UIEventImpl = __nccwpck_require__(55900).implementation;
-const InputEventInit = __nccwpck_require__(75799);
+ // Objects that aren't in cssom library but should be:
+ // CSSRuleList (cssom just uses array)
+ // CSSFontFaceRule
+ // CSSPageRule
-// https://w3c.github.io/uievents/#interface-inputevent
-class InputEventImpl extends UIEventImpl { }
-InputEventImpl.defaultInit = InputEventInit.convert(undefined);
+ // These rules don't really make sense to implement, so CSSOM draft makes them
+ // obsolete.
+ // CSSCharsetRule
+ // CSSUnknownRule
-module.exports = {
- implementation: InputEventImpl
+ // These objects are considered obsolete by CSSOM draft, although modern
+ // browsers implement them.
+ // CSSValue
+ // CSSPrimitiveValue
+ // CSSValueList
+ // RGBColor
+ // Rect
+ // Counter
};
/***/ }),
-/***/ 44410:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { mixin } = __nccwpck_require__(11463);
-const EventModifierMixinImpl = __nccwpck_require__(86789)/* .implementation */ .i;
-const UIEventImpl = __nccwpck_require__(55900).implementation;
-
-const KeyboardEventInit = __nccwpck_require__(72711);
+/***/ 82225:
+/***/ ((module) => {
-class KeyboardEventImpl extends UIEventImpl {
- initKeyboardEvent(type, bubbles, cancelable, view, key, location, ctrlKey, altKey, shiftKey, metaKey) {
- if (this._dispatchFlag) {
- return;
+/** Here is yet another implementation of XPath 1.0 in Javascript.
+ *
+ * My goal was to make it relatively compact, but as I fixed all the axis bugs
+ * the axes became more and more complicated. :-(.
+ *
+ * I have not implemented namespaces or case-sensitive axes for XML yet.
+ *
+ * How to test it in Chrome: You can make a Chrome extension that replaces
+ * the WebKit XPath parser with this one. But it takes a bit of effort to
+ * get around isolated world and same-origin restrictions:
+ * manifest.json:
+ {
+ "name": "XPathTest",
+ "version": "0.1",
+ "content_scripts": [{
+ "matches": ["http://localhost/*"], // or wildcard host
+ "js": ["xpath.js", "injection.js"],
+ "all_frames": true, "run_at": "document_start"
+ }]
}
+ * injection.js:
+ // goal: give my xpath object to the website's JS context.
+ var script = document.createElement('script');
+ script.textContent =
+ "document.addEventListener('xpathextend', function(e) {\n" +
+ " console.log('extending document with xpath...');\n" +
+ " e.detail(window);" +
+ "});";
+ document.documentElement.appendChild(script);
+ document.documentElement.removeChild(script);
+ var evt = document.createEvent('CustomEvent');
+ evt.initCustomEvent('xpathextend', true, true, this.xpath.extend);
+ document.dispatchEvent(evt);
+ */
+module.exports = core => {
+ var xpath = {};
- this.initUIEvent(type, bubbles, cancelable, view, 0);
- this.key = key;
- this.location = location;
- this.ctrlKey = ctrlKey;
- this.altKey = altKey;
- this.shiftKey = shiftKey;
- this.metaKey = metaKey;
+ // Helper function to deal with the migration of Attr to no longer have a nodeName property despite this codebase
+ // assuming it does.
+ function getNodeName(nodeOrAttr) {
+ return nodeOrAttr.constructor.name === 'Attr' ? nodeOrAttr.name : nodeOrAttr.nodeName;
}
-}
-mixin(KeyboardEventImpl.prototype, EventModifierMixinImpl.prototype);
-KeyboardEventImpl.defaultInit = KeyboardEventInit.convert(undefined);
-
-module.exports = {
- implementation: KeyboardEventImpl
-};
-
-
-/***/ }),
-/***/ 62673:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const MessageEventInit = __nccwpck_require__(75669);
-
-class MessageEventImpl extends EventImpl {
- initMessageEvent(type, bubbles, cancelable, data, origin, lastEventId, source, ports) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.data = data;
- this.origin = origin;
- this.lastEventId = lastEventId;
- this.source = source;
- this.ports = ports;
+ /***************************************************************************
+ * Tokenization *
+ ***************************************************************************/
+ /**
+ * The XPath lexer is basically a single regular expression, along with
+ * some helper functions to pop different types.
+ */
+ var Stream = xpath.Stream = function Stream(str) {
+ this.original = this.str = str;
+ this.peeked = null;
+ // TODO: not really needed, but supposedly tokenizer also disambiguates
+ // a * b vs. node test *
+ this.prev = null; // for debugging
+ this.prevprev = null;
}
-}
-MessageEventImpl.defaultInit = MessageEventInit.convert(undefined);
-
-module.exports = {
- implementation: MessageEventImpl
-};
-
-
-/***/ }),
-
-/***/ 91684:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { mixin } = __nccwpck_require__(11463);
-const EventModifierMixinImpl = __nccwpck_require__(86789)/* .implementation */ .i;
-const UIEventImpl = __nccwpck_require__(55900).implementation;
-
-const MouseEventInit = __nccwpck_require__(88445);
-
-class MouseEventImpl extends UIEventImpl {
- initMouseEvent(
- type,
- bubbles,
- cancelable,
- view,
- detail,
- screenX,
- screenY,
- clientX,
- clientY,
- ctrlKey,
- altKey,
- shiftKey,
- metaKey,
- button,
- relatedTarget
- ) {
- if (this._dispatchFlag) {
- return;
+ Stream.prototype = {
+ peek: function() {
+ if (this.peeked) return this.peeked;
+ var m = this.re.exec(this.str);
+ if (!m) return null;
+ this.str = this.str.substr(m[0].length);
+ return this.peeked = m[1];
+ },
+ /** Peek 2 tokens ahead. */
+ peek2: function() {
+ this.peek(); // make sure this.peeked is set
+ var m = this.re.exec(this.str);
+ if (!m) return null;
+ return m[1];
+ },
+ pop: function() {
+ var r = this.peek();
+ this.peeked = null;
+ this.prevprev = this.prev;
+ this.prev = r;
+ return r;
+ },
+ trypop: function(tokens) {
+ var tok = this.peek();
+ if (tok === tokens) return this.pop();
+ if (Array.isArray(tokens)) {
+ for (var i = 0; i < tokens.length; ++i) {
+ var t = tokens[i];
+ if (t == tok) return this.pop();;
+ }
+ }
+ },
+ trypopfuncname: function() {
+ var tok = this.peek();
+ if (!this.isQnameRe.test(tok))
+ return null;
+ switch (tok) {
+ case 'comment': case 'text': case 'processing-instruction': case 'node':
+ return null;
+ }
+ if ('(' != this.peek2()) return null;
+ return this.pop();
+ },
+ trypopaxisname: function() {
+ var tok = this.peek();
+ switch (tok) {
+ case 'ancestor': case 'ancestor-or-self': case 'attribute':
+ case 'child': case 'descendant': case 'descendant-or-self':
+ case 'following': case 'following-sibling': case 'namespace':
+ case 'parent': case 'preceding': case 'preceding-sibling': case 'self':
+ if ('::' == this.peek2()) return this.pop();
+ }
+ return null;
+ },
+ trypopnametest: function() {
+ var tok = this.peek();
+ if ('*' === tok || this.startsWithNcNameRe.test(tok)) return this.pop();
+ return null;
+ },
+ trypopliteral: function() {
+ var tok = this.peek();
+ if (null == tok) return null;
+ var first = tok.charAt(0);
+ var last = tok.charAt(tok.length - 1);
+ if ('"' === first && '"' === last ||
+ "'" === first && "'" === last) {
+ this.pop();
+ return tok.substr(1, tok.length - 2);
+ }
+ },
+ trypopnumber: function() {
+ var tok = this.peek();
+ if (this.isNumberRe.test(tok)) return parseFloat(this.pop());
+ else return null;
+ },
+ trypopvarref: function() {
+ var tok = this.peek();
+ if (null == tok) return null;
+ if ('$' === tok.charAt(0)) return this.pop().substr(1);
+ else return null;
+ },
+ position: function() {
+ return this.original.length - this.str.length;
}
+ };
+ (function() {
+ // http://www.w3.org/TR/REC-xml-names/#NT-NCName
+ var nameStartCharsExceptColon =
+ 'A-Z_a-z\xc0-\xd6\xd8-\xf6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF' +
+ '\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF' +
+ '\uFDF0-\uFFFD'; // JS doesn't support [#x10000-#xEFFFF]
+ var nameCharExceptColon = nameStartCharsExceptColon +
+ '\\-\\.0-9\xb7\u0300-\u036F\u203F-\u2040';
+ var ncNameChars = '[' + nameStartCharsExceptColon +
+ '][' + nameCharExceptColon + ']*'
+ // http://www.w3.org/TR/REC-xml-names/#NT-QName
+ var qNameChars = ncNameChars + '(?::' + ncNameChars + ')?';
+ var otherChars = '\\.\\.|[\\(\\)\\[\\].@,]|::'; // .. must come before [.]
+ var operatorChars =
+ 'and|or|mod|div|' +
+ '//|!=|<=|>=|[*/|+\\-=<>]'; // //, !=, <=, >= before individual ones.
+ var literal = '"[^"]*"|' + "'[^']*'";
+ var numberChars = '[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+';
+ var variableReference = '\\$' + qNameChars;
+ var nameTestChars = '\\*|' + ncNameChars + ':\\*|' + qNameChars;
+ var optionalSpace = '[ \t\r\n]*'; // stricter than regexp \s.
+ var nodeType = 'comment|text|processing-instruction|node';
+ var re = new RegExp(
+ // numberChars before otherChars so that leading-decimal doesn't become .
+ '^' + optionalSpace + '(' + numberChars + '|' + otherChars + '|' +
+ nameTestChars + '|' + operatorChars + '|' + literal + '|' +
+ variableReference + ')'
+ // operatorName | nodeType | functionName | axisName are lumped into
+ // qName for now; we'll check them on pop.
+ );
+ Stream.prototype.re = re;
+ Stream.prototype.startsWithNcNameRe = new RegExp('^' + ncNameChars);
+ Stream.prototype.isQnameRe = new RegExp('^' + qNameChars + '$');
+ Stream.prototype.isNumberRe = new RegExp('^' + numberChars + '$');
+ })();
- this.initUIEvent(type, bubbles, cancelable, view, detail);
- this.screenX = screenX;
- this.screenY = screenY;
- this.clientX = clientX;
- this.clientY = clientY;
- this.ctrlKey = ctrlKey;
- this.altKey = altKey;
- this.shiftKey = shiftKey;
- this.metaKey = metaKey;
- this.button = button;
- this.relatedTarget = relatedTarget;
- }
-}
-mixin(MouseEventImpl.prototype, EventModifierMixinImpl.prototype);
-MouseEventImpl.defaultInit = MouseEventInit.convert(undefined);
-
-module.exports = {
- implementation: MouseEventImpl
-};
-
-
-/***/ }),
-
-/***/ 50265:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const PageTransitionEventInit = __nccwpck_require__(21782);
-
-// https://html.spec.whatwg.org/multipage/browsing-the-web.html#pagetransitionevent
-class PageTransitionEventImpl extends EventImpl {
- initPageTransitionEvent(type, bubbles, cancelable, persisted) {
- if (this._dispatchFlag) {
- return;
+ /***************************************************************************
+ * Parsing *
+ ***************************************************************************/
+ var parse = xpath.parse = function parse(stream, a) {
+ var r = orExpr(stream,a);
+ var x, unparsed = [];
+ while (x = stream.pop()) {
+ unparsed.push(x);
}
-
- this.initEvent(type, bubbles, cancelable);
- this.persisted = persisted;
+ if (unparsed.length)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Unparsed tokens: ' + unparsed.join(' '));
+ return r;
}
-}
-PageTransitionEventImpl.defaultInit = PageTransitionEventInit.convert(undefined);
-
-exports.implementation = PageTransitionEventImpl;
-
-
-/***/ }),
-
-/***/ 46633:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const PopStateEventInit = __nccwpck_require__(18089);
-
-class PopStateEventImpl extends EventImpl {}
-PopStateEventImpl.defaultInit = PopStateEventInit.convert(undefined);
-
-exports.implementation = PopStateEventImpl;
-
-
-/***/ }),
-
-/***/ 38424:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const ProgressEventInit = __nccwpck_require__(24624);
-
-class ProgressEventImpl extends EventImpl {
-
-}
-ProgressEventImpl.defaultInit = ProgressEventInit.convert(undefined);
-
-module.exports = {
- implementation: ProgressEventImpl
-};
-
-/***/ }),
-
-/***/ 85232:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-const StorageEventInit = __nccwpck_require__(68629);
-
-// https://html.spec.whatwg.org/multipage/webstorage.html#the-storageevent-interface
-class StorageEventImpl extends EventImpl {
- initStorageEvent(type, bubbles, cancelable, key, oldValue, newValue, url, storageArea) {
- if (this._dispatchFlag) {
- return;
+ /**
+ * binaryL ::= subExpr
+ * | binaryL op subExpr
+ * so a op b op c becomes ((a op b) op c)
+ */
+ function binaryL(subExpr, stream, a, ops) {
+ var lhs = subExpr(stream, a);
+ if (lhs == null) return null;
+ var op;
+ while (op = stream.trypop(ops)) {
+ var rhs = subExpr(stream, a);
+ if (rhs == null)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected something after ' + op);
+ lhs = a.node(op, lhs, rhs);
}
-
- this.initEvent(type, bubbles, cancelable);
- this.key = key;
- this.oldValue = oldValue;
- this.newValue = newValue;
- this.url = url;
- this.storageArea = storageArea;
+ return lhs;
}
-}
-StorageEventImpl.defaultInit = StorageEventInit.convert(undefined);
-
-module.exports = {
- implementation: StorageEventImpl
-};
-
-
-/***/ }),
-
-/***/ 8409:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const UIEventImpl = __nccwpck_require__(55900).implementation;
-
-const TouchEventInit = __nccwpck_require__(36157);
-
-class TouchEventImpl extends UIEventImpl {
-
-}
-TouchEventImpl.defaultInit = TouchEventInit.convert(undefined);
-
-module.exports = {
- implementation: TouchEventImpl
-};
-
-
-/***/ }),
-
-/***/ 55900:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-const UIEventInit = __nccwpck_require__(82015);
-const EventImpl = __nccwpck_require__(61883).implementation;
-
-// Until webidl2js gains support for checking for Window, this would have to do.
-function isWindow(val) {
- if (typeof val !== "object") {
- return false;
+ /**
+ * Too bad this is never used. If they made a ** operator (raise to power),
+ ( we would use it.
+ * binaryR ::= subExpr
+ * | subExpr op binaryR
+ * so a op b op c becomes (a op (b op c))
+ */
+ function binaryR(subExpr, stream, a, ops) {
+ var lhs = subExpr(stream, a);
+ if (lhs == null) return null;
+ var op = stream.trypop(ops);
+ if (op) {
+ var rhs = binaryR(stream, a);
+ if (rhs == null)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected something after ' + op);
+ return a.node(op, lhs, rhs);
+ } else {
+ return lhs;// TODO
+ }
}
- const wrapper = idlUtils.wrapperForImpl(val);
- if (typeof wrapper === "object") {
- return wrapper === wrapper._globalProxy;
+ /** [1] LocationPath::= RelativeLocationPath | AbsoluteLocationPath
+ * e.g. a, a/b, //a/b
+ */
+ function locationPath(stream, a) {
+ return absoluteLocationPath(stream, a) ||
+ relativeLocationPath(null, stream, a);
}
-
- // `val` may be either impl or wrapper currently, because webidl2js currently unwraps Window objects (and their global
- // proxies) to their underlying EventTargetImpl during conversion, which is not what we want. But at the same time,
- // some internal usage call this constructor with the actual global proxy.
- return isWindow(idlUtils.implForWrapper(val));
-}
-
-class UIEventImpl extends EventImpl {
- constructor(globalObject, args, privateData) {
- const eventInitDict = args[1];
-
- // undefined check included so that we can omit the property in internal usage.
- if (eventInitDict && eventInitDict.view !== null && eventInitDict.view !== undefined) {
- if (!isWindow(eventInitDict.view)) {
- throw new TypeError(`Failed to construct '${new.target.name.replace(/Impl$/, "")}': member view is not of ` +
- "type Window.");
- }
+ /** [2] AbsoluteLocationPath::= '/' RelativeLocationPath? | AbbreviatedAbsoluteLocationPath
+ * [10] AbbreviatedAbsoluteLocationPath::= '//' RelativeLocationPath
+ */
+ function absoluteLocationPath(stream, a) {
+ var op = stream.peek();
+ if ('/' === op || '//' === op) {
+ var lhs = a.node('Root');
+ return relativeLocationPath(lhs, stream, a, true);
+ } else {
+ return null;
}
-
- super(globalObject, args, privateData);
}
-
- initUIEvent(type, bubbles, cancelable, view, detail) {
- if (view !== null) {
- if (!isWindow(view)) {
- throw new TypeError(`Failed to execute 'initUIEvent' on '${this.constructor.name.replace(/Impl$/, "")}': ` +
- "parameter 4 is not of type 'Window'.");
+ /** [3] RelativeLocationPath::= Step | RelativeLocationPath '/' Step |
+ * | AbbreviatedRelativeLocationPath
+ * [11] AbbreviatedRelativeLocationPath::= RelativeLocationPath '//' Step
+ * e.g. p/a, etc.
+ */
+ function relativeLocationPath(lhs, stream, a, isOnlyRootOk) {
+ if (null == lhs) {
+ lhs = step(stream, a);
+ if (null == lhs) return lhs;
+ }
+ var op;
+ while (op = stream.trypop(['/', '//'])) {
+ if ('//' === op) {
+ lhs = a.node('/', lhs,
+ a.node('Axis', 'descendant-or-self', 'node', undefined));
}
+ var rhs = step(stream, a);
+ if (null == rhs && '/' === op && isOnlyRootOk) return lhs;
+ else isOnlyRootOk = false;
+ if (null == rhs)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected step after ' + op);
+ lhs = a.node('/', lhs, rhs);
}
-
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.view = view;
- this.detail = detail;
- }
-}
-UIEventImpl.defaultInit = UIEventInit.convert(undefined);
-
-module.exports = {
- implementation: UIEventImpl
-};
-
-
-/***/ }),
-
-/***/ 96117:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const MouseEventImpl = __nccwpck_require__(91684).implementation;
-
-const WheelEventInit = __nccwpck_require__(35117);
-
-class WheelEventImpl extends MouseEventImpl {}
-WheelEventImpl.defaultInit = WheelEventInit.convert(undefined);
-
-module.exports = {
- implementation: WheelEventImpl
-};
-
-
-/***/ }),
-
-/***/ 15643:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const {
- isForbidden,
- isForbiddenResponse,
- isPrivilegedNoCORSRequest,
- isNoCORSSafelistedRequest,
- isCORSWhitelisted
-} = __nccwpck_require__(74270);
-const HeaderList = __nccwpck_require__(94452);
-
-function assertName(name) {
- if (!name.match(/^[!#$%&'*+\-.^`|~\w]+$/)) {
- throw new TypeError("name is invalid");
+ return lhs;
}
-}
+ /** [4] Step::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep
+ * [12] AbbreviatedStep::= '.' | '..'
+ * e.g. @href, self::p, p, a[@href], ., ..
+ */
+ function step(stream, a) {
+ var abbrStep = stream.trypop(['.', '..']);
+ if ('.' === abbrStep) // A location step of . is short for self::node().
+ return a.node('Axis', 'self', 'node');
+ if ('..' === abbrStep) // A location step of .. is short for parent::node()
+ return a.node('Axis', 'parent', 'node');
-function assertValue(value) {
- if (value.match(/[\0\r\n]/)) {
- throw new TypeError("value is invalid");
+ var axis = axisSpecifier(stream, a);
+ var nodeType = nodeTypeTest(stream, a);
+ var nodeName;
+ if (null == nodeType) nodeName = nodeNameTest(stream, a);
+ if (null == axis && null == nodeType && null == nodeName) return null;
+ if (null == nodeType && null == nodeName)
+ throw new XPathException(
+ XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected nodeTest after axisSpecifier ' + axis);
+ if (null == axis) axis = 'child';
+ if (null == nodeType) {
+ // When there's only a node name, then the node type is forced to be the
+ // principal node type of the axis.
+ // see http://www.w3.org/TR/xpath/#dt-principal-node-type
+ if ('attribute' === axis) nodeType = 'attribute';
+ else if ('namespace' === axis) nodeType = 'namespace';
+ else nodeType = 'element';
+ }
+ var lhs = a.node('Axis', axis, nodeType, nodeName);
+ var pred;
+ while (null != (pred = predicate(lhs, stream, a))) {
+ lhs = pred;
+ }
+ return lhs;
}
-}
-
-class HeadersImpl {
- constructor(globalObject, args) {
- this.guard = "none";
- this.headersList = new HeaderList();
-
- if (args[0]) {
- this._fill(args[0]);
+ /** [5] AxisSpecifier::= AxisName '::' | AbbreviatedAxisSpecifier
+ * [6] AxisName::= 'ancestor' | 'ancestor-or-self' | 'attribute' | 'child'
+ * | 'descendant' | 'descendant-or-self' | 'following'
+ * | 'following-sibling' | 'namespace' | 'parent' |
+ * | 'preceding' | 'preceding-sibling' | 'self'
+ * [13] AbbreviatedAxisSpecifier::= '@'?
+ */
+ function axisSpecifier(stream, a) {
+ var attr = stream.trypop('@');
+ if (null != attr) return 'attribute';
+ var axisName = stream.trypopaxisname();
+ if (null != axisName) {
+ var coloncolon = stream.trypop('::');
+ if (null == coloncolon)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Should not happen. Should be ::.');
+ return axisName;
}
}
-
- _fill(init) {
- if (Array.isArray(init)) {
- for (const header of init) {
- if (header.length !== 2) {
- throw new TypeError("init is invalid");
- }
- this.append(header[0], header[1]);
- }
- } else {
- for (const key of Object.keys(init)) {
- this.append(key, init[key]);
+ /** [7] NodeTest::= NameTest | NodeType '(' ')' | 'processing-instruction' '(' Literal ')'
+ * [38] NodeType::= 'comment' | 'text' | 'processing-instruction' | 'node'
+ * I've split nodeTypeTest from nodeNameTest for convenience.
+ */
+ function nodeTypeTest(stream, a) {
+ if ('(' !== stream.peek2()) {
+ return null;
+ }
+ var type = stream.trypop(['comment', 'text', 'processing-instruction', 'node']);
+ if (null != type) {
+ if (null == stream.trypop('('))
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Should not happen.');
+ var param = undefined;
+ if (type == 'processing-instruction') {
+ param = stream.trypopliteral();
}
+ if (null == stream.trypop(')'))
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected close parens.');
+ return type
}
}
-
- has(name) {
- assertName(name);
- return this.headersList.contains(name);
+ function nodeNameTest(stream, a) {
+ var name = stream.trypopnametest();
+ if (name != null) return name;
+ else return null;
}
-
- get(name) {
- assertName(name);
- return this.headersList.get(name);
+ /** [8] Predicate::= '[' PredicateExpr ']'
+ * [9] PredicateExpr::= Expr
+ */
+ function predicate(lhs, stream, a) {
+ if (null == stream.trypop('[')) return null;
+ var expr = orExpr(stream, a);
+ if (null == expr)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected expression after [');
+ if (null == stream.trypop(']'))
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected ] after expression.');
+ return a.node('Predicate', lhs, expr);
}
-
- _removePrivilegedNoCORSHeaders() {
- this.headersList.delete("range");
+ /** [14] Expr::= OrExpr
+ */
+ /** [15] PrimaryExpr::= VariableReference | '(' Expr ')' | Literal | Number | FunctionCall
+ * e.g. $x, (3+4), "hi", 32, f(x)
+ */
+ function primaryExpr(stream, a) {
+ var x = stream.trypopliteral();
+ if (null == x)
+ x = stream.trypopnumber();
+ if (null != x) {
+ return x;
+ }
+ var varRef = stream.trypopvarref();
+ if (null != varRef) return a.node('VariableReference', varRef);
+ var funCall = functionCall(stream, a);
+ if (null != funCall) {
+ return funCall;
+ }
+ if (stream.trypop('(')) {
+ var e = orExpr(stream, a);
+ if (null == e)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected expression after (.');
+ if (null == stream.trypop(')'))
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected ) after expression.');
+ return e;
+ }
+ return null;
}
-
- append(name, value) {
- value = value.trim();
- assertName(name);
- assertValue(value);
-
- switch (this.guard) {
- case "immutable":
- throw new TypeError("Headers is immutable");
- case "request":
- if (isForbidden(name)) {
- return;
- }
- break;
- case "request-no-cors": {
- let temporaryValue = this.get(name);
- if (temporaryValue === null) {
- temporaryValue = value;
- } else {
- temporaryValue += `, ${value}`;
- }
- if (!isCORSWhitelisted(name, value)) {
- return;
- }
- break;
- }
- case "response":
- if (isForbiddenResponse(name)) {
- return;
- }
- break;
+ /** [16] FunctionCall::= FunctionName '(' ( Argument ( ',' Argument )* )? ')'
+ * [17] Argument::= Expr
+ */
+ function functionCall(stream, a) {
+ var name = stream.trypopfuncname(stream, a);
+ if (null == name) return null;
+ if (null == stream.trypop('('))
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected ( ) after function name.');
+ var params = [];
+ var first = true;
+ while (null == stream.trypop(')')) {
+ if (!first && null == stream.trypop(','))
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected , between arguments of the function.');
+ first = false;
+ var param = orExpr(stream, a);
+ if (param == null)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected expression as argument of function.');
+ params.push(param);
}
-
- this.headersList.append(name, value);
- this._removePrivilegedNoCORSHeaders();
+ return a.node('FunctionCall', name, params);
}
- set(name, value) {
- value = value.trim();
- assertName(name);
- assertValue(value);
-
- switch (this.guard) {
- case "immutable":
- throw new TypeError("Headers is immutable");
- case "request":
- if (isForbidden(name)) {
- return;
- }
- break;
- case "request-no-cors": {
- if (!isCORSWhitelisted(name, value)) {
- return;
- }
- break;
+ /** [18] UnionExpr::= PathExpr | UnionExpr '|' PathExpr
+ */
+ function unionExpr(stream, a) { return binaryL(pathExpr, stream, a, '|'); }
+ /** [19] PathExpr ::= LocationPath
+ * | FilterExpr
+ * | FilterExpr '/' RelativeLocationPath
+ * | FilterExpr '//' RelativeLocationPath
+ * Unlike most other nodes, this one always generates a node because
+ * at this point all reverse nodesets must turn into a forward nodeset
+ */
+ function pathExpr(stream, a) {
+ // We have to do FilterExpr before LocationPath because otherwise
+ // LocationPath will eat up the name from a function call.
+ var filter = filterExpr(stream, a);
+ if (null == filter) {
+ var loc = locationPath(stream, a);
+ if (null == loc) {
+ throw new Error
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': The expression shouldn\'t be empty...');
}
- case "response":
- if (isForbiddenResponse(name)) {
- return;
- }
- break;
+ return a.node('PathExpr', loc);
}
- this.headersList.set(name, value);
- this._removePrivilegedNoCORSHeaders();
+ var rel = relativeLocationPath(filter, stream, a, false);
+ if (filter === rel) return rel;
+ else return a.node('PathExpr', rel);
}
-
- delete(name) {
- assertName(name);
-
- switch (this.guard) {
- case "immutable":
- throw new TypeError("Headers is immutable");
- case "request":
- if (isForbidden(name)) {
- return;
- }
- break;
- case "request-no-cors": {
- if (
- !isNoCORSSafelistedRequest(name) &&
- !isPrivilegedNoCORSRequest(name)
- ) {
- return;
- }
- break;
- }
- case "response":
- if (isForbiddenResponse(name)) {
- return;
- }
- break;
+ /** [20] FilterExpr::= PrimaryExpr | FilterExpr Predicate
+ * aka. FilterExpr ::= PrimaryExpr Predicate*
+ */
+ function filterExpr(stream, a) {
+ var primary = primaryExpr(stream, a);
+ if (primary == null) return null;
+ var pred, lhs = primary;
+ while (null != (pred = predicate(lhs, stream, a))) {
+ lhs = pred;
}
- this.headersList.delete(name);
- this._removePrivilegedNoCORSHeaders();
+ return lhs;
}
- * [Symbol.iterator]() {
- for (const header of this.headersList.sortAndCombine()) {
- yield header;
+ /** [21] OrExpr::= AndExpr | OrExpr 'or' AndExpr
+ */
+ function orExpr(stream, a) {
+ var orig = (stream.peeked || '') + stream.str
+ var r = binaryL(andExpr, stream, a, 'or');
+ var now = (stream.peeked || '') + stream.str;
+ return r;
+ }
+ /** [22] AndExpr::= EqualityExpr | AndExpr 'and' EqualityExpr
+ */
+ function andExpr(stream, a) { return binaryL(equalityExpr, stream, a, 'and'); }
+ /** [23] EqualityExpr::= RelationalExpr | EqualityExpr '=' RelationalExpr
+ * | EqualityExpr '!=' RelationalExpr
+ */
+ function equalityExpr(stream, a) { return binaryL(relationalExpr, stream, a, ['=','!=']); }
+ /** [24] RelationalExpr::= AdditiveExpr | RelationalExpr '<' AdditiveExpr
+ * | RelationalExpr '>' AdditiveExpr
+ * | RelationalExpr '<=' AdditiveExpr
+ * | RelationalExpr '>=' AdditiveExpr
+ */
+ function relationalExpr(stream, a) { return binaryL(additiveExpr, stream, a, ['<','>','<=','>=']); }
+ /** [25] AdditiveExpr::= MultiplicativeExpr
+ * | AdditiveExpr '+' MultiplicativeExpr
+ * | AdditiveExpr '-' MultiplicativeExpr
+ */
+ function additiveExpr(stream, a) { return binaryL(multiplicativeExpr, stream, a, ['+','-']); }
+ /** [26] MultiplicativeExpr::= UnaryExpr
+ * | MultiplicativeExpr MultiplyOperator UnaryExpr
+ * | MultiplicativeExpr 'div' UnaryExpr
+ * | MultiplicativeExpr 'mod' UnaryExpr
+ */
+ function multiplicativeExpr(stream, a) { return binaryL(unaryExpr, stream, a, ['*','div','mod']); }
+ /** [27] UnaryExpr::= UnionExpr | '-' UnaryExpr
+ */
+ function unaryExpr(stream, a) {
+ if (stream.trypop('-')) {
+ var e = unaryExpr(stream, a);
+ if (null == e)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Expected unary expression after -');
+ return a.node('UnaryMinus', e);
}
+ else return unionExpr(stream, a);
}
-}
-
-exports.implementation = HeadersImpl;
-
+ var astFactory = {
+ node: function() {return Array.prototype.slice.call(arguments);}
+ };
-/***/ }),
-/***/ 94452:
-/***/ ((module) => {
+ /***************************************************************************
+ * Optimizations (TODO) *
+ ***************************************************************************/
+ /**
+ * Some things I've been considering:
+ * 1) a//b becomes a/descendant::b if there's no predicate that uses
+ * position() or last()
+ * 2) axis[pred]: when pred doesn't use position, evaluate it just once per
+ * node in the node-set rather than once per (node, position, last).
+ * For more optimizations, look up Gecko's optimizer:
+ * http://mxr.mozilla.org/mozilla-central/source/content/xslt/src/xpath/txXPathOptimizer.cpp
+ */
+ // TODO
+ function optimize(ast) {
+ }
-"use strict";
+ /***************************************************************************
+ * Evaluation: axes *
+ ***************************************************************************/
+ /**
+ * Data types: For string, number, boolean, we just use Javascript types.
+ * Node-sets have the form
+ * {nodes: [node, ...]}
+ * or {nodes: [node, ...], pos: [[1], [2], ...], lasts: [[1], [2], ...]}
+ *
+ * Most of the time, only the node is used and the position information is
+ * discarded. But if you use a predicate, we need to try every value of
+ * position and last in case the predicate calls position() or last().
+ */
-/**
- * Provides some utility functions for somewhat efficiently modifying a
- * collection of headers.
- *
- * Note that this class only operates on ByteStrings (which is also why we use
- * toLowerCase internally).
- */
-class HeaderList {
- constructor() {
- this.headers = new Map();
+ /**
+ * The NodeMultiSet is a helper class to help generate
+ * {nodes:[], pos:[], lasts:[]} structures. It is useful for the
+ * descendant, descendant-or-self, following-sibling, and
+ * preceding-sibling axes for which we can use a stack to organize things.
+ */
+ function NodeMultiSet(isReverseAxis) {
+ this.nodes = [];
+ this.pos = [];
+ this.lasts = [];
+ this.nextPos = [];
+ this.seriesIndexes = []; // index within nodes that each series begins.
+ this.isReverseAxis = isReverseAxis;
+ this._pushToNodes = isReverseAxis ? Array.prototype.unshift : Array.prototype.push;
}
-
- append(name, value) {
- const existing = this.headers.get(name.toLowerCase());
- if (existing) {
- name = existing[0].name;
- existing.push({ name, value });
- } else {
- this.headers.set(name.toLowerCase(), [{ name, value }]);
+ NodeMultiSet.prototype = {
+ pushSeries: function pushSeries() {
+ this.nextPos.push(1);
+ this.seriesIndexes.push(this.nodes.length);
+ },
+ popSeries: function popSeries() {
+ console.assert(0 < this.nextPos.length, this.nextPos);
+ var last = this.nextPos.pop() - 1,
+ indexInPos = this.nextPos.length,
+ seriesBeginIndex = this.seriesIndexes.pop(),
+ seriesEndIndex = this.nodes.length;
+ for (var i = seriesBeginIndex; i < seriesEndIndex; ++i) {
+ console.assert(indexInPos < this.lasts[i].length);
+ console.assert(undefined === this.lasts[i][indexInPos]);
+ this.lasts[i][indexInPos] = last;
+ }
+ },
+ finalize: function() {
+ if (null == this.nextPos) return this;
+ console.assert(0 === this.nextPos.length);
+ var lastsJSON = JSON.stringify(this.lasts);
+ for (var i = 0; i < this.lasts.length; ++i) {
+ for (var j = 0; j < this.lasts[i].length; ++j) {
+ console.assert(null != this.lasts[i][j], i + ',' + j + ':' + lastsJSON);
+ }
+ }
+ this.pushSeries = this.popSeries = this.addNode = function() {
+ throw new Error('Already finalized.');
+ };
+ return this;
+ },
+ addNode: function addNode(node) {
+ console.assert(node);
+ this._pushToNodes.call(this.nodes, node)
+ this._pushToNodes.call(this.pos, this.nextPos.slice());
+ this._pushToNodes.call(this.lasts, new Array(this.nextPos.length));
+ for (var i = 0; i < this.nextPos.length; ++i) this.nextPos[i]++;
+ },
+ simplify: function() {
+ this.finalize();
+ return {nodes:this.nodes, pos:this.pos, lasts:this.lasts};
+ }
+ };
+ function eachContext(nodeMultiSet) {
+ var r = [];
+ for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
+ var node = nodeMultiSet.nodes[i];
+ if (!nodeMultiSet.pos) {
+ r.push({nodes:[node], pos: [[i + 1]], lasts: [[nodeMultiSet.nodes.length]]});
+ } else {
+ for (var j = 0; j < nodeMultiSet.pos[i].length; ++j) {
+ r.push({nodes:[node], pos: [[nodeMultiSet.pos[i][j]]], lasts: [[nodeMultiSet.lasts[i][j]]]});
+ }
+ }
}
+ return r;
}
-
- contains(name) {
- return this.headers.has(name.toLowerCase());
+ /** Matcher used in the axes.
+ */
+ function NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase) {
+ this.nodeTypeNum = nodeTypeNum;
+ this.nodeName = nodeName;
+ this.shouldLowerCase = shouldLowerCase;
+ this.nodeNameTest =
+ null == nodeName ? this._alwaysTrue :
+ shouldLowerCase ? this._nodeNameLowerCaseEquals :
+ this._nodeNameEquals;
}
+ NodeMatcher.prototype = {
+ matches: function matches(node) {
+ if (0 === this.nodeTypeNum || this._nodeTypeMatches(node)) {
+ return this.nodeNameTest(getNodeName(node));
+ }
- get(name) {
- name = name.toLowerCase();
- const values = this.headers.get(name);
- if (!values) {
- return null;
+ return false;
+ },
+ _nodeTypeMatches(nodeOrAttr) {
+ if (nodeOrAttr.constructor.name === 'Attr' && this.nodeTypeNum === 2) {
+ return true;
+ }
+ return nodeOrAttr.nodeType === this.nodeTypeNum;
+ },
+ _alwaysTrue: function(name) {return true;},
+ _nodeNameEquals: function _nodeNameEquals(name) {
+ return this.nodeName === name;
+ },
+ _nodeNameLowerCaseEquals: function _nodeNameLowerCaseEquals(name) {
+ return this.nodeName === name.toLowerCase();
}
- return values.map(h => h.value).join(", ");
- }
-
- delete(name) {
- this.headers.delete(name.toLowerCase());
- }
+ };
- set(name, value) {
- const lowerName = name.toLowerCase();
- this.headers.delete(lowerName);
- this.headers.set(lowerName, [{ name, value }]);
+ function followingSiblingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, shift, peek, followingNode, andSelf, isReverseAxis) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var nodeMultiSet = new NodeMultiSet(isReverseAxis);
+ while (0 < nodeList.length) { // can be if for following, preceding
+ var node = shift.call(nodeList);
+ console.assert(node != null);
+ node = followingNode(node);
+ nodeMultiSet.pushSeries();
+ var numPushed = 1;
+ while (null != node) {
+ if (! andSelf && matcher.matches(node))
+ nodeMultiSet.addNode(node);
+ if (node === peek.call(nodeList)) {
+ shift.call(nodeList);
+ nodeMultiSet.pushSeries();
+ numPushed++;
+ }
+ if (andSelf && matcher.matches(node))
+ nodeMultiSet.addNode(node);
+ node = followingNode(node);
+ }
+ while (0 < numPushed--)
+ nodeMultiSet.popSeries();
+ }
+ return nodeMultiSet;
}
- sortAndCombine() {
- const names = [...this.headers.keys()].sort();
- return names.map(n => [n, this.get(n)]);
+ /** Returns the next non-descendant node in document order.
+ * This is the first node in following::node(), if node is the context.
+ */
+ function followingNonDescendantNode(node) {
+ if (node.ownerElement) {
+ if (node.ownerElement.firstChild)
+ return node.ownerElement.firstChild;
+ node = node.ownerElement;
+ }
+ do {
+ if (node.nextSibling) return node.nextSibling;
+ } while (node = node.parentNode);
+ return null;
}
-}
-
-module.exports = HeaderList;
-
-
-/***/ }),
-
-/***/ 74270:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const MIMEType = __nccwpck_require__(59488);
-
-const PRIVILEGED_NO_CORS_REQUEST = new Set(["range"]);
-function isPrivilegedNoCORSRequest(name) {
- return PRIVILEGED_NO_CORS_REQUEST.has(name.toLowerCase());
-}
-
-const NO_CORS_SAFELISTED_REQUEST = new Set([
- `accept`,
- `accept-language`,
- `content-language`,
- `content-type`
-]);
-function isNoCORSSafelistedRequest(name) {
- return NO_CORS_SAFELISTED_REQUEST.has(name.toLowerCase());
-}
-
-const FORBIDDEN = new Set([
- `accept-charset`,
- `accept-encoding`,
- `access-control-request-headers`,
- `access-control-request-method`,
- `connection`,
- `content-length`,
- `cookie`,
- `cookie2`,
- `date`,
- `dnt`,
- `expect`,
- `host`,
- `keep-alive`,
- `origin`,
- `referer`,
- `te`,
- `trailer`,
- `transfer-encoding`,
- `upgrade`,
- `via`
-]);
-function isForbidden(name) {
- name = name.toLowerCase();
- return (
- FORBIDDEN.has(name) || name.startsWith("proxy-") || name.startsWith("sec-")
- );
-}
-
-const FORBIDDEN_RESPONSE = new Set(["set-cookie", "set-cookie2"]);
-function isForbiddenResponse(name) {
- return FORBIDDEN_RESPONSE.has(name.toLowerCase());
-}
-const CORS_UNSAFE_BYTE = /[\x00-\x08\x0A-\x1F"():<>?@[\\\]{}\x7F]/;
-function isCORSWhitelisted(name, value) {
- name = name.toLowerCase();
- switch (name) {
- case "accept":
- if (value.match(CORS_UNSAFE_BYTE)) {
- return false;
- }
- break;
- case "accept-language":
- case "content-language":
- if (value.match(/[^\x30-\x39\x41-\x5A\x61-\x7A *,\-.;=]/)) {
- return false;
+ /** Returns the next node in a document-order depth-first search.
+ * See the definition of document order[1]:
+ * 1) element
+ * 2) namespace nodes
+ * 3) attributes
+ * 4) children
+ * [1]: http://www.w3.org/TR/xpath/#dt-document-order
+ */
+ function followingNode(node) {
+ if (node.ownerElement) // attributes: following node of element.
+ node = node.ownerElement;
+ if (null != node.firstChild)
+ return node.firstChild;
+ do {
+ if (null != node.nextSibling) {
+ return node.nextSibling;
}
- break;
- case "content-type": {
- if (value.match(CORS_UNSAFE_BYTE)) {
- return false;
+ node = node.parentNode;
+ } while (node);
+ return null;
+ }
+ /** Returns the previous node in document order (excluding attributes
+ * and namespace nodes).
+ */
+ function precedingNode(node) {
+ if (node.ownerElement)
+ return node.ownerElement;
+ if (null != node.previousSibling) {
+ node = node.previousSibling;
+ while (null != node.lastChild) {
+ node = node.lastChild;
}
- const mimeType = MIMEType.parse(value);
- if (mimeType === null) {
- return false;
+ return node;
+ }
+ if (null != node.parentNode) {
+ return node.parentNode;
+ }
+ return null;
+ }
+ /** This axis is inefficient if there are many nodes in the nodeList.
+ * But I think it's a pretty useless axis so it's ok. */
+ function followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var nodeMultiSet = new NodeMultiSet(false);
+ var cursor = nodeList[0];
+ var unorderedFollowingStarts = [];
+ for (var i = 0; i < nodeList.length; i++) {
+ var node = nodeList[i];
+ var start = followingNonDescendantNode(node);
+ if (start)
+ unorderedFollowingStarts.push(start);
+ }
+ if (0 === unorderedFollowingStarts.length)
+ return {nodes:[]};
+ var pos = [], nextPos = [];
+ var started = 0;
+ while (cursor = followingNode(cursor)) {
+ for (var i = unorderedFollowingStarts.length - 1; i >= 0; i--){
+ if (cursor === unorderedFollowingStarts[i]) {
+ nodeMultiSet.pushSeries();
+ unorderedFollowingStarts.splice(i,i+1);
+ started++;
+ }
}
- if (
- ![
- "application/x-www-form-urlencoded",
- "multipart/form-data",
- "text/plain"
- ].includes(mimeType.essence)
- ) {
- return false;
+ if (started && matcher.matches(cursor)) {
+ nodeMultiSet.addNode(cursor);
}
- break;
}
- default:
- return false;
- }
- if (Buffer.from(value).length > 128) {
- return false;
+ console.assert(0 === unorderedFollowingStarts.length);
+ for (var i = 0; i < started; i++)
+ nodeMultiSet.popSeries();
+ return nodeMultiSet.finalize();
}
- return true;
-}
-
-module.exports = {
- isPrivilegedNoCORSRequest,
- isNoCORSSafelistedRequest,
- isForbidden,
- isForbiddenResponse,
- isCORSWhitelisted
-};
-
-
-/***/ }),
-
-/***/ 90699:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const Blob = __nccwpck_require__(48350);
-const { isArrayBuffer } = __nccwpck_require__(34908);
-
-function convertLineEndingsToNative(s) {
- // jsdom always pretends to be *nix, for consistency.
- // See also https://github.com/jsdom/jsdom/issues/2396.
- return s.replace(/\r\n|\r|\n/g, "\n");
-}
-
-exports.implementation = class BlobImpl {
- constructor(globalObject, args) {
- const parts = args[0];
- const properties = args[1];
-
- const buffers = [];
+ function precedingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var cursor = nodeList.pop();
+ if (null == cursor) return {nodes:{}};
+ var r = {nodes:[], pos:[], lasts:[]};
+ var nextParents = [cursor.parentNode || cursor.ownerElement], nextPos = [1];
+ while (cursor = precedingNode(cursor)) {
+ if (cursor === nodeList[nodeList.length - 1]) {
+ nextParents.push(nodeList.pop());
+ nextPos.push(1);
+ }
+ var matches = matcher.matches(cursor);
+ var pos, someoneUsed = false;
+ if (matches)
+ pos = nextPos.slice();
- if (parts !== undefined) {
- for (const part of parts) {
- let buffer;
- if (isArrayBuffer(part)) {
- buffer = Buffer.from(part);
- } else if (ArrayBuffer.isView(part)) {
- buffer = Buffer.from(part.buffer, part.byteOffset, part.byteLength);
- } else if (Blob.isImpl(part)) {
- buffer = part._buffer;
+ for (var i = 0; i < nextParents.length; ++i) {
+ if (cursor === nextParents[i]) {
+ nextParents[i] = cursor.parentNode || cursor.ownerElement;
+ if (matches) {
+ pos[i] = null;
+ }
} else {
- let s = part;
- if (properties.endings === "native") {
- s = convertLineEndingsToNative(part);
+ if (matches) {
+ pos[i] = nextPos[i]++;
+ someoneUsed = true;
}
- buffer = Buffer.from(s);
}
- buffers.push(buffer);
+ }
+ if (someoneUsed) {
+ r.nodes.unshift(cursor);
+ r.pos.unshift(pos);
}
}
-
- this._buffer = Buffer.concat(buffers);
- this._globalObject = globalObject;
-
- this.type = properties.type;
- if (/[^\u0020-\u007E]/.test(this.type)) {
- this.type = "";
- } else {
- this.type = this.type.toLowerCase();
+ for (var i = 0; i < r.pos.length; ++i) {
+ var lasts = [];
+ r.lasts.push(lasts);
+ for (var j = r.pos[i].length - 1; j >= 0; j--) {
+ if (null == r.pos[i][j]) {
+ r.pos[i].splice(j, j+1);
+ } else {
+ lasts.unshift(nextPos[j] - 1);
+ }
+ }
}
+ return r;
}
- get size() {
- return this._buffer.length;
- }
-
- slice(start, end, contentType) {
- const { size } = this;
-
- let relativeStart, relativeEnd, relativeContentType;
-
- if (start === undefined) {
- relativeStart = 0;
- } else if (start < 0) {
- relativeStart = Math.max(size + start, 0);
- } else {
- relativeStart = Math.min(start, size);
+ /** node-set, axis -> node-set */
+ function descendantDfs(nodeMultiSet, node, remaining, matcher, andSelf, attrIndices, attrNodes) {
+ while (0 < remaining.length && null != remaining[0].ownerElement) {
+ var attr = remaining.shift();
+ if (andSelf && matcher.matches(attr)) {
+ attrNodes.push(attr);
+ attrIndices.push(nodeMultiSet.nodes.length);
+ }
}
- if (end === undefined) {
- relativeEnd = size;
- } else if (end < 0) {
- relativeEnd = Math.max(size + end, 0);
- } else {
- relativeEnd = Math.min(end, size);
+ if (null != node && !andSelf) {
+ if (matcher.matches(node))
+ nodeMultiSet.addNode(node);
}
-
- if (contentType === undefined) {
- relativeContentType = "";
- } else {
- // sanitization (lower case and invalid char check) is done in the
- // constructor
- relativeContentType = contentType;
+ var pushed = false;
+ if (null == node) {
+ if (0 === remaining.length) return;
+ node = remaining.shift();
+ nodeMultiSet.pushSeries();
+ pushed = true;
+ } else if (0 < remaining.length && node === remaining[0]) {
+ nodeMultiSet.pushSeries();
+ pushed = true;
+ remaining.shift();
+ }
+ if (andSelf) {
+ if (matcher.matches(node))
+ nodeMultiSet.addNode(node);
+ }
+ // TODO: use optimization. Also try element.getElementsByTagName
+ // var nodeList = 1 === nodeTypeNum && null != node.children ? node.children : node.childNodes;
+ var nodeList = node.childNodes;
+ for (var j = 0; j < nodeList.length; ++j) {
+ var child = nodeList[j];
+ descendantDfs(nodeMultiSet, child, remaining, matcher, andSelf, attrIndices, attrNodes);
+ }
+ if (pushed) {
+ nodeMultiSet.popSeries();
}
-
- const span = Math.max(relativeEnd - relativeStart, 0);
-
- const buffer = this._buffer;
- const slicedBuffer = buffer.slice(
- relativeStart,
- relativeStart + span
- );
-
- const blob = Blob.createImpl(this._globalObject, [[], { type: relativeContentType }], {});
- blob._buffer = slicedBuffer;
- return blob;
- }
-};
-
-
-/***/ }),
-
-/***/ 66294:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const BlobImpl = __nccwpck_require__(90699).implementation;
-
-exports.implementation = class FileImpl extends BlobImpl {
- constructor(globalObject, [fileBits, fileName, options], privateData) {
- super(globalObject, [fileBits, options], privateData);
-
- this.name = fileName;
- this.lastModified = "lastModified" in options ? options.lastModified : Date.now();
- }
-};
-
-
-/***/ }),
-
-/***/ 87378:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-
-exports.implementation = class FileListImpl extends Array {
- constructor() {
- super(0);
- }
- item(index) {
- return this[index] || null;
}
- get [idlUtils.supportedPropertyIndices]() {
- return this.keys();
+ function descenantHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var nodeMultiSet = new NodeMultiSet(false);
+ var attrIndices = [], attrNodes = [];
+ while (0 < nodeList.length) {
+ // var node = nodeList.shift();
+ descendantDfs(nodeMultiSet, null, nodeList, matcher, andSelf, attrIndices, attrNodes);
+ }
+ nodeMultiSet.finalize();
+ for (var i = attrNodes.length-1; i >= 0; --i) {
+ nodeMultiSet.nodes.splice(attrIndices[i], attrIndices[i], attrNodes[i]);
+ nodeMultiSet.pos.splice(attrIndices[i], attrIndices[i], [1]);
+ nodeMultiSet.lasts.splice(attrIndices[i], attrIndices[i], [1]);
+ }
+ return nodeMultiSet;
}
-};
-
-
-/***/ }),
-
-/***/ 75394:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const whatwgEncoding = __nccwpck_require__(49967);
-const MIMEType = __nccwpck_require__(59488);
-const DOMException = __nccwpck_require__(57617);
-const EventTargetImpl = __nccwpck_require__(18557).implementation;
-const ProgressEvent = __nccwpck_require__(34426);
-const { setupForSimpleEventAccessors } = __nccwpck_require__(50238);
-const { fireAnEvent } = __nccwpck_require__(45673);
-const { copyToArrayBufferInNewRealm } = __nccwpck_require__(69232);
-
-const READY_STATES = Object.freeze({
- EMPTY: 0,
- LOADING: 1,
- DONE: 2
-});
-
-const events = ["loadstart", "progress", "load", "abort", "error", "loadend"];
-
-class FileReaderImpl extends EventTargetImpl {
- constructor(globalObject, args, privateData) {
- super(globalObject, args, privateData);
-
- this.error = null;
- this.readyState = READY_STATES.EMPTY;
- this.result = null;
-
- this._globalObject = globalObject;
- this._ownerDocument = globalObject.document;
- this._terminated = false;
- }
-
- readAsArrayBuffer(file) {
- this._readFile(file, "buffer");
+ /**
+ */
+ function ancestorHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var ancestors = []; // array of non-empty arrays of matching ancestors
+ for (var i = 0; i < nodeList.length; ++i) {
+ var node = nodeList[i];
+ var isFirst = true;
+ var a = [];
+ while (null != node) {
+ if (!isFirst || andSelf) {
+ if (matcher.matches(node))
+ a.push(node);
+ }
+ isFirst = false;
+ node = node.parentNode || node.ownerElement;
+ }
+ if (0 < a.length)
+ ancestors.push(a);
+ }
+ var lasts = [];
+ for (var i = 0; i < ancestors.length; ++i) lasts.push(ancestors[i].length);
+ var nodeMultiSet = new NodeMultiSet(true);
+ var newCtx = {nodes:[], pos:[], lasts:[]};
+ while (0 < ancestors.length) {
+ var pos = [ancestors[0].length];
+ var last = [lasts[0]];
+ var node = ancestors[0].pop();
+ for (var i = ancestors.length - 1; i > 0; --i) {
+ if (node === ancestors[i][ancestors[i].length - 1]) {
+ pos.push(ancestors[i].length);
+ last.push(lasts[i]);
+ ancestors[i].pop();
+ if (0 === ancestors[i].length) {
+ ancestors.splice(i, i+1);
+ lasts.splice(i, i+1);
+ }
+ }
+ }
+ if (0 === ancestors[0].length) {
+ ancestors.shift();
+ lasts.shift();
+ }
+ newCtx.nodes.push(node);
+ newCtx.pos.push(pos);
+ newCtx.lasts.push(last);
+ }
+ return newCtx;
}
- readAsBinaryString(file) {
- this._readFile(file, "binaryString");
+ /** Helper function for sortDocumentOrder. Returns a list of indices, from the
+ * node to the root, of positions within parent.
+ * For convenience, the node is the first element of the array.
+ */
+ function addressVector(node) {
+ var r = [node];
+ if (null != node.ownerElement) {
+ node = node.ownerElement;
+ r.push(-1);
+ }
+ while (null != node) {
+ var i = 0;
+ while (null != node.previousSibling) {
+ node = node.previousSibling;
+ i++;
+ }
+ r.push(i);
+ node = node.parentNode
+ }
+ return r;
}
- readAsDataURL(file) {
- this._readFile(file, "dataURL");
+ function addressComparator(a, b) {
+ var minlen = Math.min(a.length - 1, b.length - 1), // not including [0]=node
+ alen = a.length,
+ blen = b.length;
+ if (a[0] === b[0]) return 0;
+ var c;
+ for (var i = 0; i < minlen; ++i) {
+ c = a[alen - i - 1] - b[blen - i - 1];
+ if (0 !== c)
+ break;
+ }
+ if (null == c || 0 === c) {
+ // All equal until one of the nodes. The longer one is the descendant.
+ c = alen - blen;
+ }
+ if (0 === c)
+ c = getNodeName(a) - getNodeName(b);
+ if (0 === c)
+ c = 1;
+ return c;
}
- readAsText(file, encoding) {
- this._readFile(file, "text", whatwgEncoding.labelToName(encoding) || "UTF-8");
+ var sortUniqDocumentOrder = xpath.sortUniqDocumentOrder = function(nodes) {
+ var a = [];
+ for (var i = 0; i < nodes.length; i++) {
+ var node = nodes[i];
+ var v = addressVector(node);
+ a.push(v);
+ }
+ a.sort(addressComparator);
+ var b = [];
+ for (var i = 0; i < a.length; i++) {
+ if (0 < i && a[i][0] === a[i - 1][0])
+ continue;
+ b.push(a[i][0]);
+ }
+ return b;
}
-
- abort() {
- if (this.readyState === READY_STATES.EMPTY || this.readyState === READY_STATES.DONE) {
- this.result = null;
- return;
+ /** Sort node multiset. Does not do any de-duping. */
+ function sortNodeMultiSet(nodeMultiSet) {
+ var a = [];
+ for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
+ var v = addressVector(nodeMultiSet.nodes[i]);
+ a.push({v:v, n:nodeMultiSet.nodes[i],
+ p:nodeMultiSet.pos[i], l:nodeMultiSet.lasts[i]});
}
-
- if (this.readyState === READY_STATES.LOADING) {
- this.readyState = READY_STATES.DONE;
- this.result = null;
+ a.sort(compare);
+ var r = {nodes:[], pos:[], lasts:[]};
+ for (var i = 0; i < a.length; ++i) {
+ r.nodes.push(a[i].n);
+ r.pos.push(a[i].p);
+ r.lasts.push(a[i].l);
}
-
- this._terminated = true;
- this._fireProgressEvent("abort");
- this._fireProgressEvent("loadend");
+ function compare(x, y) {
+ return addressComparator(x.v, y.v);
+ }
+ return r;
}
-
- _fireProgressEvent(name, props) {
- fireAnEvent(name, this, ProgressEvent, props);
+ /** Returns an array containing all the ancestors down to a node.
+ * The array starts with document.
+ */
+ function nodeAndAncestors(node) {
+ var ancestors = [node];
+ var p = node;
+ while (p = p.parentNode || p.ownerElement) {
+ ancestors.unshift(p);
+ }
+ return ancestors;
}
-
- _readFile(file, format, encoding) {
- if (this.readyState === READY_STATES.LOADING) {
- throw DOMException.create(this._globalObject, [
- "The object is in an invalid state.",
- "InvalidStateError"
- ]);
+ function compareSiblings(a, b) {
+ if (a === b) return 0;
+ var c = a;
+ while (c = c.previousSibling) {
+ if (c === b)
+ return 1; // b < a
}
-
- this.readyState = READY_STATES.LOADING;
-
- setImmediate(() => {
- if (this._terminated) {
- this._terminated = false;
- return;
+ c = b;
+ while (c = c.previousSibling) {
+ if (c === a)
+ return -1; // a < b
+ }
+ throw new Error('a and b are not siblings: ' + xpath.stringifyObject(a) + ' vs ' + xpath.stringifyObject(b));
+ }
+ /** The merge in merge-sort.*/
+ function mergeNodeLists(x, y) {
+ var a, b, aanc, banc, r = [];
+ if ('object' !== typeof x)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Invalid LHS for | operator ' +
+ '(expected node-set): ' + x);
+ if ('object' !== typeof y)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Invalid LHS for | operator ' +
+ '(expected node-set): ' + y);
+ while (true) {
+ if (null == a) {
+ a = x.shift();
+ if (null != a)
+ aanc = addressVector(a);
}
-
- this._fireProgressEvent("loadstart");
-
- let data = file._buffer;
- if (!data) {
- data = Buffer.alloc(0);
+ if (null == b) {
+ b = y.shift();
+ if (null != b)
+ banc = addressVector(b);
}
- this._fireProgressEvent("progress", {
- lengthComputable: !isNaN(file.size),
- total: file.size,
- loaded: data.length
- });
-
- setImmediate(() => {
- if (this._terminated) {
- this._terminated = false;
- return;
+ if (null == a || null == b) break;
+ var c = addressComparator(aanc, banc);
+ if (c < 0) {
+ r.push(a);
+ a = null;
+ aanc = null;
+ } else if (c > 0) {
+ r.push(b);
+ b = null;
+ banc = null;
+ } else if (getNodeName(a) < getNodeName(b)) { // attributes
+ r.push(a);
+ a = null;
+ aanc = null;
+ } else if (getNodeName(a) > getNodeName(b)) { // attributes
+ r.push(b);
+ b = null;
+ banc = null;
+ } else if (a !== b) {
+ // choose b arbitrarily
+ r.push(b);
+ b = null;
+ banc = null;
+ } else {
+ console.assert(a === b, c);
+ // just skip b without pushing it.
+ b = null;
+ banc = null;
+ }
+ }
+ while (a) {
+ r.push(a);
+ a = x.shift();
+ }
+ while (b) {
+ r.push(b);
+ b = y.shift();
+ }
+ return r;
+ }
+ function comparisonHelper(test, x, y, isNumericComparison) {
+ var coersion;
+ if (isNumericComparison)
+ coersion = fn.number;
+ else coersion =
+ 'boolean' === typeof x || 'boolean' === typeof y ? fn['boolean'] :
+ 'number' === typeof x || 'number' === typeof y ? fn.number :
+ fn.string;
+ if ('object' === typeof x && 'object' === typeof y) {
+ var aMap = {};
+ for (var i = 0; i < x.nodes.length; ++i) {
+ var xi = coersion({nodes:[x.nodes[i]]});
+ for (var j = 0; j < y.nodes.length; ++j) {
+ var yj = coersion({nodes:[y.nodes[j]]});
+ if (test(xi, yj)) return true;
}
-
- switch (format) {
- case "binaryString": {
- this.result = data.toString("binary");
- break;
+ }
+ return false;
+ } else if ('object' === typeof x && x.nodes && x.nodes.length) {
+ for (var i = 0; i < x.nodes.length; ++i) {
+ var xi = coersion({nodes:[x.nodes[i]]}), yc = coersion(y);
+ if (test(xi, yc))
+ return true;
+ }
+ return false;
+ } else if ('object' === typeof y && x.nodes && x.nodes.length) {
+ for (var i = 0; i < x.nodes.length; ++i) {
+ var yi = coersion({nodes:[y.nodes[i]]}), xc = coersion(x);
+ if (test(xc, yi))
+ return true;
+ }
+ return false;
+ } else {
+ var xc = coersion(x), yc = coersion(y);
+ return test(xc, yc);
+ }
+ }
+ var axes = xpath.axes = {
+ 'ancestor':
+ function ancestor(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return ancestorHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
+ },
+ 'ancestor-or-self':
+ function ancestorOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return ancestorHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
+ },
+ 'attribute':
+ function attribute(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ // TODO: figure out whether positions should be undefined here.
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var nodeMultiSet = new NodeMultiSet(false);
+ if (null != nodeName) {
+ // TODO: with namespace
+ for (var i = 0; i < nodeList.length; ++i) {
+ var node = nodeList[i];
+ if (null == node.getAttributeNode)
+ continue; // only Element has .getAttributeNode
+ var attr = node.getAttributeNode(nodeName);
+ if (null != attr && matcher.matches(attr)) {
+ nodeMultiSet.pushSeries();
+ nodeMultiSet.addNode(attr);
+ nodeMultiSet.popSeries();
+ }
}
- case "dataURL": {
- // Spec seems very unclear here; see https://github.com/w3c/FileAPI/issues/104.
- const contentType = MIMEType.parse(file.type) || "application/octet-stream";
- this.result = `data:${contentType};base64,${data.toString("base64")}`;
- break;
+ } else {
+ for (var i = 0; i < nodeList.length; ++i) {
+ var node = nodeList[i];
+ if (null != node.attributes) {
+ nodeMultiSet.pushSeries();
+ for (var j = 0; j < node.attributes.length; j++) { // all nodes have .attributes
+ var attr = node.attributes[j];
+ if (matcher.matches(attr)) // TODO: I think this check is unnecessary
+ nodeMultiSet.addNode(attr);
+ }
+ nodeMultiSet.popSeries();
+ }
}
- case "text": {
- this.result = whatwgEncoding.decode(data, encoding);
- break;
+ }
+ return nodeMultiSet.finalize();
+ },
+ 'child':
+ function child(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var nodeMultiSet = new NodeMultiSet(false);
+ for (var i = 0; i < nodeList.length; ++i) {
+ var n = nodeList[i];
+ if (n.ownerElement) // skip attribute nodes' text child.
+ continue;
+ if (n.childNodes) {
+ nodeMultiSet.pushSeries();
+ var childList = 1 === nodeTypeNum && null != n.children ?
+ n.children : n.childNodes;
+ for (var j = 0; j < childList.length; ++j) {
+ var child = childList[j];
+ if (matcher.matches(child)) {
+ nodeMultiSet.addNode(child);
+ }
+ // don't have to do de-duping because children have parent,
+ // which are current context.
+ }
+ nodeMultiSet.popSeries();
}
- case "buffer":
- default: {
- this.result = copyToArrayBufferInNewRealm(data, this._globalObject);
- break;
+ }
+ nodeMultiSet.finalize();
+ return sortNodeMultiSet(nodeMultiSet);
+ },
+ 'descendant':
+ function descenant(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return descenantHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
+ },
+ 'descendant-or-self':
+ function descenantOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return descenantHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
+ },
+ 'following':
+ function following(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
+ },
+ 'following-sibling':
+ function followingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return followingSiblingHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
+ Array.prototype.shift, function() {return this[0];},
+ function(node) {return node.nextSibling;});
+ },
+ 'namespace':
+ function namespace(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ // TODO
+ },
+ 'parent':
+ function parent(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ var nodes = [], pos = [];
+ for (var i = 0; i < nodeList.length; ++i) {
+ var parent = nodeList[i].parentNode || nodeList[i].ownerElement;
+ if (null == parent)
+ continue;
+ if (!matcher.matches(parent))
+ continue;
+ if (nodes.length > 0 && parent === nodes[nodes.length-1])
+ continue;
+ nodes.push(parent);
+ pos.push([1]);
+ }
+ return {nodes:nodes, pos:pos, lasts:pos};
+ },
+ 'preceding':
+ function preceding(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return precedingHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
+ },
+ 'preceding-sibling':
+ function precedingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ return followingSiblingHelper(
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
+ Array.prototype.pop, function() {return this[this.length-1];},
+ function(node) {return node.previousSibling},
+ false, true);
+ },
+ 'self':
+ function self(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
+ var nodes = [], pos = [];
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
+ for (var i = 0; i < nodeList.length; ++i) {
+ if (matcher.matches(nodeList[i])) {
+ nodes.push(nodeList[i]);
+ pos.push([1]);
}
}
- this.readyState = READY_STATES.DONE;
- this._fireProgressEvent("load");
- this._fireProgressEvent("loadend");
- });
- });
- }
-}
-setupForSimpleEventAccessors(FileReaderImpl.prototype, events);
-
-exports.implementation = FileReaderImpl;
-
-
-/***/ }),
-
-/***/ 42169:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ return {nodes: nodes, pos: pos, lasts: pos}
+ }
+ };
-const interfaceName = "AbortController";
+ /***************************************************************************
+ * Evaluation: functions *
+ ***************************************************************************/
+ var fn = {
+ 'number': function number(optObject) {
+ if ('number' === typeof optObject)
+ return optObject;
+ if ('string' === typeof optObject)
+ return parseFloat(optObject); // note: parseFloat(' ') -> NaN, unlike +' ' -> 0.
+ if ('boolean' === typeof optObject)
+ return +optObject;
+ return fn.number(fn.string.call(this, optObject)); // for node-sets
+ },
+ 'string': function string(optObject) {
+ if (null == optObject)
+ return fn.string(this);
+ if ('string' === typeof optObject || 'boolean' === typeof optObject ||
+ 'number' === typeof optObject)
+ return '' + optObject;
+ if (0 == optObject.nodes.length) return '';
+ if (null != optObject.nodes[0].textContent)
+ return optObject.nodes[0].textContent;
+ return optObject.nodes[0].nodeValue;
+ },
+ 'boolean': function booleanVal(x) {
+ return 'object' === typeof x ? x.nodes.length > 0 : !!x;
+ },
+ 'last': function last() {
+ console.assert(Array.isArray(this.pos));
+ console.assert(Array.isArray(this.lasts));
+ console.assert(1 === this.pos.length);
+ console.assert(1 === this.lasts.length);
+ console.assert(1 === this.lasts[0].length);
+ return this.lasts[0][0];
+ },
+ 'position': function position() {
+ console.assert(Array.isArray(this.pos));
+ console.assert(Array.isArray(this.lasts));
+ console.assert(1 === this.pos.length);
+ console.assert(1 === this.lasts.length);
+ console.assert(1 === this.pos[0].length);
+ return this.pos[0][0];
+ },
+ 'count': function count(nodeSet) {
+ if ('object' !== typeof nodeSet)
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Position ' + stream.position() +
+ ': Function count(node-set) ' +
+ 'got wrong argument type: ' + nodeSet);
+ return nodeSet.nodes.length;
+ },
+ 'id': function id(object) {
+ var r = {nodes: []};
+ var doc = this.nodes[0].ownerDocument || this.nodes[0];
+ console.assert(doc);
+ var ids;
+ if ('object' === typeof object) {
+ // for node-sets, map id over each node value.
+ ids = [];
+ for (var i = 0; i < object.nodes.length; ++i) {
+ var idNode = object.nodes[i];
+ var idsString = fn.string({nodes:[idNode]});
+ var a = idsString.split(/[ \t\r\n]+/g);
+ Array.prototype.push.apply(ids, a);
+ }
+ } else {
+ var idsString = fn.string(object);
+ var a = idsString.split(/[ \t\r\n]+/g);
+ ids = a;
+ }
+ for (var i = 0; i < ids.length; ++i) {
+ var id = ids[i];
+ if (0 === id.length)
+ continue;
+ var node = doc.getElementById(id);
+ if (null != node)
+ r.nodes.push(node);
+ }
+ r.nodes = sortUniqDocumentOrder(r.nodes);
+ return r;
+ },
+ 'local-name': function(nodeSet) {
+ if (null == nodeSet)
+ return fn.name(this);
+ if (null == nodeSet.nodes) {
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'argument to name() must be a node-set. got ' + nodeSet);
+ }
+ // TODO: namespaced version
+ return nodeSet.nodes[0].localName;
+ },
+ 'namespace-uri': function(nodeSet) {
+ // TODO
+ throw new Error('not implemented yet');
+ },
+ 'name': function(nodeSet) {
+ if (null == nodeSet)
+ return fn.name(this);
+ if (null == nodeSet.nodes) {
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'argument to name() must be a node-set. got ' + nodeSet);
+ }
+ return nodeSet.nodes[0].name;
+ },
+ 'concat': function concat(x) {
+ var l = [];
+ for (var i = 0; i < arguments.length; ++i) {
+ l.push(fn.string(arguments[i]));
+ }
+ return l.join('');
+ },
+ 'starts-with': function startsWith(a, b) {
+ var as = fn.string(a), bs = fn.string(b);
+ return as.substr(0, bs.length) === bs;
+ },
+ 'contains': function contains(a, b) {
+ var as = fn.string(a), bs = fn.string(b);
+ var i = as.indexOf(bs);
+ if (-1 === i) return false;
+ return true;
+ },
+ 'substring-before': function substringBefore(a, b) {
+ var as = fn.string(a), bs = fn.string(b);
+ var i = as.indexOf(bs);
+ if (-1 === i) return '';
+ return as.substr(0, i);
+ },
+ 'substring-after': function substringBefore(a, b) {
+ var as = fn.string(a), bs = fn.string(b);
+ var i = as.indexOf(bs);
+ if (-1 === i) return '';
+ return as.substr(i + bs.length);
+ },
+ 'substring': function substring(string, start, optEnd) {
+ if (null == string || null == start) {
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Must be at least 2 arguments to string()');
+ }
+ var sString = fn.string(string),
+ iStart = fn.round(start),
+ iEnd = optEnd == null ? null : fn.round(optEnd);
+ // Note that xpath string positions user 1-based index
+ if (iEnd == null)
+ return sString.substr(iStart - 1);
+ else
+ return sString.substr(iStart - 1, iEnd);
+ },
+ 'string-length': function stringLength(optString) {
+ return fn.string.call(this, optString).length;
+ },
+ 'normalize-space': function normalizeSpace(optString) {
+ var s = fn.string.call(this, optString);
+ return s.replace(/[ \t\r\n]+/g, ' ').replace(/^ | $/g, '');
+ },
+ 'translate': function translate(string, from, to) {
+ var sString = fn.string.call(this, string),
+ sFrom = fn.string(from),
+ sTo = fn.string(to);
+ var eachCharRe = [];
+ var map = {};
+ for (var i = 0; i < sFrom.length; ++i) {
+ var c = sFrom.charAt(i);
+ map[c] = sTo.charAt(i); // returns '' if beyond length of sTo.
+ // copied from goog.string.regExpEscape in the Closure library.
+ eachCharRe.push(
+ c.replace(/([-()\[\]{}+?*.$\^|,:#': function(x, y) {
+ return comparisonHelper(function(x, y) { return fn.number(x) > fn.number(y);}, x, y, true);
+ },
+ '>=': function(x, y) {
+ return comparisonHelper(function(x, y) { return fn.number(x) >= fn.number(y);}, x, y, true);
+ },
+ 'and': function(x, y) { return fn['boolean'](x) && fn['boolean'](y); },
+ 'or': function(x, y) { return fn['boolean'](x) || fn['boolean'](y); },
+ '|': function(x, y) { return {nodes: mergeNodeLists(x.nodes, y.nodes)}; },
+ '=': function(x, y) {
+ // optimization for two node-sets case: avoid n^2 comparisons.
+ if ('object' === typeof x && 'object' === typeof y) {
+ var aMap = {};
+ for (var i = 0; i < x.nodes.length; ++i) {
+ var s = fn.string({nodes:[x.nodes[i]]});
+ aMap[s] = true;
+ }
+ for (var i = 0; i < y.nodes.length; ++i) {
+ var s = fn.string({nodes:[y.nodes[i]]});
+ if (aMap[s]) return true;
+ }
+ return false;
+ } else {
+ return comparisonHelper(function(x, y) {return x === y;}, x, y);
+ }
+ },
+ '!=': function(x, y) {
+ // optimization for two node-sets case: avoid n^2 comparisons.
+ if ('object' === typeof x && 'object' === typeof y) {
+ if (0 === x.nodes.length || 0 === y.nodes.length) return false;
+ var aMap = {};
+ for (var i = 0; i < x.nodes.length; ++i) {
+ var s = fn.string({nodes:[x.nodes[i]]});
+ aMap[s] = true;
+ }
+ for (var i = 0; i < y.nodes.length; ++i) {
+ var s = fn.string({nodes:[y.nodes[i]]});
+ if (!aMap[s]) return true;
+ }
+ return false;
+ } else {
+ return comparisonHelper(function(x, y) {return x !== y;}, x, y);
+ }
+ }
+ };
+ var nodeTypes = xpath.nodeTypes = {
+ 'node': 0,
+ 'attribute': 2,
+ 'comment': 8, // this.doc.COMMENT_NODE,
+ 'text': 3, // this.doc.TEXT_NODE,
+ 'processing-instruction': 7, // this.doc.PROCESSING_INSTRUCTION_NODE,
+ 'element': 1 //this.doc.ELEMENT_NODE
+ };
+ /** For debugging and unit tests: returnjs a stringified version of the
+ * argument. */
+ var stringifyObject = xpath.stringifyObject = function stringifyObject(ctx) {
+ var seenKey = 'seen' + Math.floor(Math.random()*1000000000);
+ return JSON.stringify(helper(ctx));
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ function helper(ctx) {
+ if (Array.isArray(ctx)) {
+ return ctx.map(function(x) {return helper(x);});
+ }
+ if ('object' !== typeof ctx) return ctx;
+ if (null == ctx) return ctx;
+ // if (ctx.toString) return ctx.toString();
+ if (null != ctx.outerHTML) return ctx.outerHTML;
+ if (null != ctx.nodeValue) return ctx.nodeName + '=' + ctx.nodeValue;
+ if (ctx[seenKey]) return '[circular]';
+ ctx[seenKey] = true;
+ var nicer = {};
+ for (var key in ctx) {
+ if (seenKey === key)
+ continue;
+ try {
+ nicer[key] = helper(ctx[key]);
+ } catch (e) {
+ nicer[key] = '[exception: ' + e.message + ']';
+ }
+ }
+ delete ctx[seenKey];
+ return nicer;
+ }
}
- throw new TypeError(`${context} is not of type 'AbortController'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+ var Evaluator = xpath.Evaluator = function Evaluator(doc) {
+ this.doc = doc;
}
+ Evaluator.prototype = {
+ val: function val(ast, ctx) {
+ console.assert(ctx.nodes);
- const ctor = globalObject[ctorRegistrySymbol]["AbortController"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor AbortController is not installed on the passed global object");
+ if ('number' === typeof ast || 'string' === typeof ast) return ast;
+ if (more[ast[0]]) {
+ var evaluatedParams = [];
+ for (var i = 1; i < ast.length; ++i) {
+ evaluatedParams.push(this.val(ast[i], ctx));
+ }
+ var r = more[ast[0]].apply(ctx, evaluatedParams);
+ return r;
+ }
+ switch (ast[0]) {
+ case 'Root': return {nodes: [this.doc]};
+ case 'FunctionCall':
+ var functionName = ast[1], functionParams = ast[2];
+ if (null == fn[functionName])
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
+ 'Unknown function: ' + functionName);
+ var evaluatedParams = [];
+ for (var i = 0; i < functionParams.length; ++i) {
+ evaluatedParams.push(this.val(functionParams[i], ctx));
+ }
+ var r = fn[functionName].apply(ctx, evaluatedParams);
+ return r;
+ case 'Predicate':
+ var lhs = this.val(ast[1], ctx);
+ var ret = {nodes: []};
+ var contexts = eachContext(lhs);
+ for (var i = 0; i < contexts.length; ++i) {
+ var singleNodeSet = contexts[i];
+ var rhs = this.val(ast[2], singleNodeSet);
+ var success;
+ if ('number' === typeof rhs) {
+ success = rhs === singleNodeSet.pos[0][0];
+ } else {
+ success = fn['boolean'](rhs);
+ }
+ if (success) {
+ var node = singleNodeSet.nodes[0];
+ ret.nodes.push(node);
+ // skip over all the rest of the same node.
+ while (i+1 < contexts.length && node === contexts[i+1].nodes[0]) {
+ i++;
+ }
+ }
+ }
+ return ret;
+ case 'PathExpr':
+ // turn the path into an expressoin; i.e., remove the position
+ // information of the last axis.
+ var x = this.val(ast[1], ctx);
+ // Make the nodeset a forward-direction-only one.
+ if (x.finalize) { // it is a NodeMultiSet
+ return {nodes: x.nodes};
+ } else {
+ return x;
+ }
+ case '/':
+ // TODO: don't generate '/' nodes, just Axis nodes.
+ var lhs = this.val(ast[1], ctx);
+ console.assert(null != lhs);
+ var r = this.val(ast[2], lhs);
+ console.assert(null != r);
+ return r;
+ case 'Axis':
+ // All the axis tests from Step. We only get AxisSpecifier NodeTest,
+ // not the predicate (which is applied later)
+ var axis = ast[1],
+ nodeType = ast[2],
+ nodeTypeNum = nodeTypes[nodeType],
+ shouldLowerCase = true, // TODO: give option
+ nodeName = ast[3] && shouldLowerCase ? ast[3].toLowerCase() : ast[3];
+ nodeName = nodeName === '*' ? null : nodeName;
+ if ('object' !== typeof ctx) return {nodes:[], pos:[]};
+ var nodeList = ctx.nodes.slice(); // TODO: is copy needed?
+ var r = axes[axis](nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
+ return r;
+ }
+ }
+ };
+ var evaluate = xpath.evaluate = function evaluate(expr, doc, context) {
+ //var astFactory = new AstEvaluatorFactory(doc, context);
+ var stream = new Stream(expr);
+ var ast = parse(stream, astFactory);
+ var val = new Evaluator(doc).val(ast, {nodes: [context]});
+ return val;
}
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ /***************************************************************************
+ * DOM interface *
+ ***************************************************************************/
+ var XPathException = xpath.XPathException = function XPathException(code, message) {
+ var e = new Error(message);
+ e.name = 'XPathException';
+ e.code = code;
+ return e;
}
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ XPathException.INVALID_EXPRESSION_ERR = 51;
+ XPathException.TYPE_ERR = 52;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ var XPathEvaluator = xpath.XPathEvaluator = function XPathEvaluator() {}
+ XPathEvaluator.prototype = {
+ createExpression: function(expression, resolver) {
+ return new XPathExpression(expression, resolver);
+ },
+ createNSResolver: function(nodeResolver) {
+ // TODO
+ },
+ evaluate: function evaluate(expression, contextNode, resolver, type, result) {
+ var expr = new XPathExpression(expression, resolver);
+ return expr.evaluate(contextNode, type, result);
+ }
+ };
-const exposed = new Set(["Window", "Worker"]);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+ var XPathExpression = xpath.XPathExpression = function XPathExpression(expression, resolver, optDoc) {
+ var stream = new Stream(expression);
+ this._ast = parse(stream, astFactory);
+ this._doc = optDoc;
}
- class AbortController {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- abort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'abort' called on an object that is not a valid instance of AbortController.");
+ XPathExpression.prototype = {
+ evaluate: function evaluate(contextNode, type, result) {
+ if (null == contextNode.nodeType)
+ throw new Error('bad argument (expected context node): ' + contextNode);
+ var doc = contextNode.ownerDocument || contextNode;
+ if (null != this._doc && this._doc !== doc) {
+ throw new core.DOMException(
+ core.DOMException.WRONG_DOCUMENT_ERR,
+ 'The document must be the same as the context node\'s document.');
}
-
- return esValue[implSymbol].abort();
+ var evaluator = new Evaluator(doc);
+ var value = evaluator.val(this._ast, {nodes: [contextNode]});
+ if (XPathResult.NUMBER_TYPE === type)
+ value = fn.number(value);
+ else if (XPathResult.STRING_TYPE === type)
+ value = fn.string(value);
+ else if (XPathResult.BOOLEAN_TYPE === type)
+ value = fn['boolean'](value);
+ else if (XPathResult.ANY_TYPE !== type &&
+ XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== type &&
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE !== type &&
+ XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== type &&
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== type &&
+ XPathResult.ANY_UNORDERED_NODE_TYPE !== type &&
+ XPathResult.FIRST_ORDERED_NODE_TYPE !== type)
+ throw new core.DOMException(
+ core.DOMException.NOT_SUPPORTED_ERR,
+ 'You must provide an XPath result type (0=any).');
+ else if (XPathResult.ANY_TYPE !== type &&
+ 'object' !== typeof value)
+ throw new XPathException(
+ XPathException.TYPE_ERR,
+ 'Value should be a node-set: ' + value);
+ return new XPathResult(doc, value, type);
}
+ }
- get signal() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ var XPathResult = xpath.XPathResult = function XPathResult(doc, value, resultType) {
+ this._value = value;
+ this._resultType = resultType;
+ this._i = 0;
- if (!exports.is(esValue)) {
- throw new TypeError("'get signal' called on an object that is not a valid instance of AbortController.");
+ // TODO: we removed mutation events but didn't take care of this. No tests fail, so that's nice, but eventually we
+ // should fix this, preferably by entirely replacing our XPath implementation.
+ // this._invalidated = false;
+ // if (this.resultType === XPathResult.UNORDERED_NODE_ITERATOR_TYPE ||
+ // this.resultType === XPathResult.ORDERED_NODE_ITERATOR_TYPE) {
+ // doc.addEventListener('DOMSubtreeModified', invalidate, true);
+ // var self = this;
+ // function invalidate() {
+ // self._invalidated = true;
+ // doc.removeEventListener('DOMSubtreeModified', invalidate, true);
+ // }
+ // }
+ }
+ XPathResult.ANY_TYPE = 0;
+ XPathResult.NUMBER_TYPE = 1;
+ XPathResult.STRING_TYPE = 2;
+ XPathResult.BOOLEAN_TYPE = 3;
+ XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
+ XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
+ XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
+ XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
+ var proto = {
+ // XPathResultType
+ get resultType() {
+ if (this._resultType) return this._resultType;
+ switch (typeof this._value) {
+ case 'number': return XPathResult.NUMBER_TYPE;
+ case 'string': return XPathResult.STRING_TYPE;
+ case 'boolean': return XPathResult.BOOLEAN_TYPE;
+ default: return XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
}
-
- return utils.getSameObject(this, "signal", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["signal"]);
- });
+ },
+ get numberValue() {
+ if (XPathResult.NUMBER_TYPE !== this.resultType)
+ throw new XPathException(XPathException.TYPE_ERR,
+ 'You should have asked for a NUMBER_TYPE.');
+ return this._value;
+ },
+ get stringValue() {
+ if (XPathResult.STRING_TYPE !== this.resultType)
+ throw new XPathException(XPathException.TYPE_ERR,
+ 'You should have asked for a STRING_TYPE.');
+ return this._value;
+ },
+ get booleanValue() {
+ if (XPathResult.BOOLEAN_TYPE !== this.resultType)
+ throw new XPathException(XPathException.TYPE_ERR,
+ 'You should have asked for a BOOLEAN_TYPE.');
+ return this._value;
+ },
+ get singleNodeValue() {
+ if (XPathResult.ANY_UNORDERED_NODE_TYPE !== this.resultType &&
+ XPathResult.FIRST_ORDERED_NODE_TYPE !== this.resultType)
+ throw new XPathException(
+ XPathException.TYPE_ERR,
+ 'You should have asked for a FIRST_ORDERED_NODE_TYPE.');
+ return this._value.nodes[0] || null;
+ },
+ get invalidIteratorState() {
+ if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
+ return false;
+ return !!this._invalidated;
+ },
+ get snapshotLength() {
+ if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
+ throw new XPathException(
+ XPathException.TYPE_ERR,
+ 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
+ return this._value.nodes.length;
+ },
+ iterateNext: function iterateNext() {
+ if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
+ throw new XPathException(
+ XPathException.TYPE_ERR,
+ 'You should have asked for a ORDERED_NODE_ITERATOR_TYPE.');
+ if (this.invalidIteratorState)
+ throw new core.DOMException(
+ core.DOMException.INVALID_STATE_ERR,
+ 'The document has been mutated since the result was returned');
+ return this._value.nodes[this._i++] || null;
+ },
+ snapshotItem: function snapshotItem(index) {
+ if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
+ throw new XPathException(
+ XPathException.TYPE_ERR,
+ 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
+ return this._value.nodes[index] || null;
}
- }
- Object.defineProperties(AbortController.prototype, {
- abort: { enumerable: true },
- signal: { enumerable: true },
- [Symbol.toStringTag]: { value: "AbortController", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = AbortController;
+ };
+ // so you can access ANY_TYPE etc. from the instances:
+ XPathResult.prototype = Object.create(XPathResult,
+ Object.keys(proto).reduce(function (descriptors, name) {
+ descriptors[name] = Object.getOwnPropertyDescriptor(proto, name);
+ return descriptors;
+ }, {
+ constructor: {
+ value: XPathResult,
+ writable: true,
+ configurable: true
+ }
+ }));
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: AbortController
- });
-};
+ core.XPathException = XPathException;
+ core.XPathExpression = XPathExpression;
+ core.XPathResult = XPathResult;
+ core.XPathEvaluator = XPathEvaluator;
-const Impl = __nccwpck_require__(68314);
+ core.Document.prototype.createExpression =
+ XPathEvaluator.prototype.createExpression;
+ core.Document.prototype.createNSResolver =
+ XPathEvaluator.prototype.createNSResolver;
-/***/ }),
+ core.Document.prototype.evaluate = XPathEvaluator.prototype.evaluate;
-/***/ 58571:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ return xpath; // for tests
+};
-"use strict";
+/***/ }),
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+/***/ 68314:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
+"use strict";
-const interfaceName = "AbortSignal";
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'AbortSignal'.`);
-};
+const AbortSignal = __nccwpck_require__(58571);
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+class AbortControllerImpl {
+ constructor(globalObject) {
+ this.signal = AbortSignal.createImpl(globalObject, []);
}
- const ctor = globalObject[ctorRegistrySymbol]["AbortSignal"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor AbortSignal is not installed on the passed global object");
+ abort() {
+ this.signal._signalAbort();
}
-
- return Object.create(ctor.prototype);
}
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
+module.exports = {
+ implementation: AbortControllerImpl
};
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+/***/ }),
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+/***/ 57971:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+"use strict";
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+const { setupForSimpleEventAccessors } = __nccwpck_require__(50238);
+const { fireAnEvent } = __nccwpck_require__(45673);
+const EventTargetImpl = (__nccwpck_require__(18557).implementation);
-const exposed = new Set(["Window", "Worker"]);
+class AbortSignalImpl extends EventTargetImpl {
+ constructor(globalObject, args, privateData) {
+ super(globalObject, args, privateData);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ // make event firing possible
+ this._ownerDocument = globalObject.document;
- if (globalObject.EventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate AbortSignal before EventTarget");
+ this.aborted = false;
+ this.abortAlgorithms = new Set();
}
- class AbortSignal extends globalObject.EventTarget {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- get aborted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get aborted' called on an object that is not a valid instance of AbortSignal.");
- }
- return esValue[implSymbol]["aborted"];
+ _signalAbort() {
+ if (this.aborted) {
+ return;
}
+ this.aborted = true;
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onabort' called on an object that is not a valid instance of AbortSignal.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
+ for (const algorithm of this.abortAlgorithms) {
+ algorithm();
}
+ this.abortAlgorithms.clear();
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onabort' called on an object that is not a valid instance of AbortSignal.");
- }
+ fireAnEvent("abort", this);
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onabort' property on 'AbortSignal': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
+ _addAlgorithm(algorithm) {
+ if (this.aborted) {
+ return;
}
+ this.abortAlgorithms.add(algorithm);
}
- Object.defineProperties(AbortSignal.prototype, {
- aborted: { enumerable: true },
- onabort: { enumerable: true },
- [Symbol.toStringTag]: { value: "AbortSignal", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+
+ _removeAlgorithm(algorithm) {
+ this.abortAlgorithms.delete(algorithm);
}
- globalObject[ctorRegistrySymbol][interfaceName] = AbortSignal;
+}
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: AbortSignal
- });
-};
+setupForSimpleEventAccessors(AbortSignalImpl.prototype, ["abort"]);
-const Impl = __nccwpck_require__(57971);
+module.exports = {
+ implementation: AbortSignalImpl
+};
/***/ }),
-/***/ 10083:
+/***/ 35092:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
+const DOMException = __nccwpck_require__(57617);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const { HTML_NS } = __nccwpck_require__(52635);
+const { asciiLowercase } = __nccwpck_require__(4764);
+const { queueAttributeMutationRecord } = __nccwpck_require__(58028);
+const { enqueueCECallbackReaction } = __nccwpck_require__(25392);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+// The following three are for https://dom.spec.whatwg.org/#concept-element-attribute-has. We don't just have a
+// predicate tester since removing that kind of flexibility gives us the potential for better future optimizations.
-const interfaceName = "AbstractRange";
+/* eslint-disable no-restricted-properties */
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'AbstractRange'.`);
+exports.hasAttribute = function (element, A) {
+ return element._attributeList.includes(A);
};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["AbstractRange"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor AbstractRange is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+exports.hasAttributeByName = function (element, name) {
+ return element._attributesByNameMap.has(name);
};
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
+exports.hasAttributeByNameNS = function (element, namespace, localName) {
+ return element._attributeList.some(attribute => {
+ return attribute._localName === localName && attribute._namespace === namespace;
+ });
};
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+// https://dom.spec.whatwg.org/#concept-element-attributes-change
+exports.changeAttribute = (element, attribute, value) => {
+ const { _localName, _namespace, _value } = attribute;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ queueAttributeMutationRecord(element, _localName, _namespace, _value);
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ if (element._ceState === "custom") {
+ enqueueCECallbackReaction(element, "attributeChangedCallback", [
+ _localName,
+ _value,
+ value,
+ _namespace
+ ]);
}
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ attribute._value = value;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
+ // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is changed."
+ element._attrModified(attribute._qualifiedName, value, _value);
};
-const exposed = new Set(["Window"]);
+// https://dom.spec.whatwg.org/#concept-element-attributes-append
+exports.appendAttribute = function (element, attribute) {
+ const { _localName, _namespace, _value } = attribute;
+ queueAttributeMutationRecord(element, _localName, _namespace, null);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+ if (element._ceState === "custom") {
+ enqueueCECallbackReaction(element, "attributeChangedCallback", [
+ _localName,
+ null,
+ _value,
+ _namespace
+ ]);
}
- class AbstractRange {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
- get startContainer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const attributeList = element._attributeList;
- if (!exports.is(esValue)) {
- throw new TypeError("'get startContainer' called on an object that is not a valid instance of AbstractRange.");
- }
+ attributeList.push(attribute);
+ attribute._element = element;
- return utils.tryWrapperForImpl(esValue[implSymbol]["startContainer"]);
- }
+ // Sync name cache
+ const name = attribute._qualifiedName;
+ const cache = element._attributesByNameMap;
+ let entry = cache.get(name);
+ if (!entry) {
+ entry = [];
+ cache.set(name, entry);
+ }
+ entry.push(attribute);
- get startOffset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is added."
+ element._attrModified(name, _value, null);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get startOffset' called on an object that is not a valid instance of AbstractRange.");
- }
+exports.removeAttribute = function (element, attribute) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-remove
- return esValue[implSymbol]["startOffset"];
- }
+ const { _localName, _namespace, _value } = attribute;
- get endContainer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ queueAttributeMutationRecord(element, _localName, _namespace, _value);
- if (!exports.is(esValue)) {
- throw new TypeError("'get endContainer' called on an object that is not a valid instance of AbstractRange.");
- }
+ if (element._ceState === "custom") {
+ enqueueCECallbackReaction(element, "attributeChangedCallback", [
+ _localName,
+ _value,
+ null,
+ _namespace
+ ]);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["endContainer"]);
- }
+ const attributeList = element._attributeList;
- get endOffset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ for (let i = 0; i < attributeList.length; ++i) {
+ if (attributeList[i] === attribute) {
+ attributeList.splice(i, 1);
+ attribute._element = null;
- if (!exports.is(esValue)) {
- throw new TypeError("'get endOffset' called on an object that is not a valid instance of AbstractRange.");
+ // Sync name cache
+ const name = attribute._qualifiedName;
+ const cache = element._attributesByNameMap;
+ const entry = cache.get(name);
+ entry.splice(entry.indexOf(attribute), 1);
+ if (entry.length === 0) {
+ cache.delete(name);
}
- return esValue[implSymbol]["endOffset"];
- }
-
- get collapsed() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get collapsed' called on an object that is not a valid instance of AbstractRange.");
- }
+ // Run jsdom hooks; roughly correspond to spec's "An attribute is removed."
+ element._attrModified(name, null, attribute._value);
- return esValue[implSymbol]["collapsed"];
+ return;
}
}
- Object.defineProperties(AbstractRange.prototype, {
- startContainer: { enumerable: true },
- startOffset: { enumerable: true },
- endContainer: { enumerable: true },
- endOffset: { enumerable: true },
- collapsed: { enumerable: true },
- [Symbol.toStringTag]: { value: "AbstractRange", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = AbstractRange;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: AbstractRange
- });
};
-const Impl = __nccwpck_require__(30825);
-
-
-/***/ }),
+exports.replaceAttribute = function (element, oldAttr, newAttr) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-replace
-/***/ 34003:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ const { _localName, _namespace, _value } = oldAttr;
-"use strict";
+ queueAttributeMutationRecord(element, _localName, _namespace, _value);
+ if (element._ceState === "custom") {
+ enqueueCECallbackReaction(element, "attributeChangedCallback", [
+ _localName,
+ _value,
+ newAttr._value,
+ _namespace
+ ]);
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ const attributeList = element._attributeList;
-const EventListenerOptions = __nccwpck_require__(25619);
+ for (let i = 0; i < attributeList.length; ++i) {
+ if (attributeList[i] === oldAttr) {
+ attributeList.splice(i, 1, newAttr);
+ oldAttr._element = null;
+ newAttr._element = element;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventListenerOptions._convertInherit(obj, ret, { context });
+ // Sync name cache
+ const name = newAttr._qualifiedName;
+ const cache = element._attributesByNameMap;
+ let entry = cache.get(name);
+ if (!entry) {
+ entry = [];
+ cache.set(name, entry);
+ }
+ entry.splice(entry.indexOf(oldAttr), 1, newAttr);
- {
- const key = "once";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'once' that" });
+ // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is changed."
+ element._attrModified(name, newAttr._value, oldAttr._value);
- ret[key] = value;
- } else {
- ret[key] = false;
+ return;
}
}
+};
- {
- const key = "passive";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'passive' that" });
+exports.getAttributeByName = function (element, name) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name
- ret[key] = value;
- } else {
- ret[key] = false;
- }
+ if (element._namespaceURI === HTML_NS &&
+ element._ownerDocument._parsingMode === "html") {
+ name = asciiLowercase(name);
}
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ const cache = element._attributesByNameMap;
+ const entry = cache.get(name);
+ if (!entry) {
+ return null;
}
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ return entry[0];
};
+exports.getAttributeByNameNS = function (element, namespace, localName) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace
-/***/ }),
-
-/***/ 28411:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+ if (namespace === "") {
+ namespace = null;
+ }
+ const attributeList = element._attributeList;
+ for (let i = 0; i < attributeList.length; ++i) {
+ const attr = attributeList[i];
+ if (attr._namespace === namespace && attr._localName === localName) {
+ return attr;
+ }
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ return null;
+};
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "flatten";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'flatten' that" });
+// Both of the following functions implement https://dom.spec.whatwg.org/#concept-element-attributes-get-value.
+// Separated them into two to keep symmetry with other functions.
+exports.getAttributeValue = function (element, localName) {
+ const attr = exports.getAttributeByNameNS(element, null, localName);
- ret[key] = value;
- } else {
- ret[key] = false;
- }
+ if (!attr) {
+ return "";
}
+
+ return attr._value;
};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+exports.getAttributeValueNS = function (element, namespace, localName) {
+ const attr = exports.getAttributeByNameNS(element, namespace, localName);
+
+ if (!attr) {
+ return "";
}
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ return attr._value;
};
+exports.setAttribute = function (element, attr) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-set
-/***/ }),
+ if (attr._element !== null && attr._element !== element) {
+ throw DOMException.create(element._globalObject, ["The attribute is in use.", "InUseAttributeError"]);
+ }
-/***/ 78717:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ const oldAttr = exports.getAttributeByNameNS(element, attr._namespace, attr._localName);
+ if (oldAttr === attr) {
+ return attr;
+ }
-"use strict";
+ if (oldAttr !== null) {
+ exports.replaceAttribute(element, oldAttr, attr);
+ } else {
+ exports.appendAttribute(element, attr);
+ }
+ return oldAttr;
+};
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+exports.setAttributeValue = function (element, localName, value, prefix, namespace) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-set-value
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Node = __nccwpck_require__(41209);
+ if (prefix === undefined) {
+ prefix = null;
+ }
+ if (namespace === undefined) {
+ namespace = null;
+ }
-const interfaceName = "Attr";
+ const attribute = exports.getAttributeByNameNS(element, namespace, localName);
+ if (attribute === null) {
+ const newAttribute = element._ownerDocument._createAttribute({
+ namespace,
+ namespacePrefix: prefix,
+ localName,
+ value
+ });
+ exports.appendAttribute(element, newAttribute);
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ return;
}
- throw new TypeError(`${context} is not of type 'Attr'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ exports.changeAttribute(element, attribute, value);
+};
- const ctor = globalObject[ctorRegistrySymbol]["Attr"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Attr is not installed on the passed global object");
+// https://dom.spec.whatwg.org/#set-an-existing-attribute-value
+exports.setAnExistingAttributeValue = (attribute, value) => {
+ const element = attribute._element;
+ if (element === null) {
+ attribute._value = value;
+ } else {
+ exports.changeAttribute(element, attribute, value);
}
+};
- return Object.create(ctor.prototype);
-}
+exports.removeAttributeByName = function (element, name) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-name
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ const attr = exports.getAttributeByName(element, name);
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (attr !== null) {
+ exports.removeAttribute(element, attr);
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
+ return attr;
};
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+exports.removeAttributeByNameNS = function (element, namespace, localName) {
+ // https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ const attr = exports.getAttributeByNameNS(element, namespace, localName);
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ if (attr !== null) {
+ exports.removeAttribute(element, attr);
}
- return wrapper;
+
+ return attr;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports.attributeNames = function (element) {
+ // Needed by https://dom.spec.whatwg.org/#dom-element-getattributenames
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ return element._attributeList.map(a => a._qualifiedName);
+};
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
+exports.hasAttributes = function (element) {
+ // Needed by https://dom.spec.whatwg.org/#dom-element-hasattributes
+
+ return element._attributeList.length > 0;
};
-const exposed = new Set(["Window"]);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+/***/ }),
- if (globalObject.Node === undefined) {
- throw new Error("Internal error: attempting to evaluate Attr before Node");
- }
- class Attr extends globalObject.Node {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
+/***/ 34306:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get namespaceURI() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get namespaceURI' called on an object that is not a valid instance of Attr.");
- }
- return esValue[implSymbol]["namespaceURI"];
- }
+const { setAnExistingAttributeValue } = __nccwpck_require__(35092);
+const NodeImpl = (__nccwpck_require__(53563).implementation);
+const { ATTRIBUTE_NODE } = __nccwpck_require__(10656);
- get prefix() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.implementation = class AttrImpl extends NodeImpl {
+ constructor(globalObject, args, privateData) {
+ super(globalObject, args, privateData);
- if (!exports.is(esValue)) {
- throw new TypeError("'get prefix' called on an object that is not a valid instance of Attr.");
- }
+ this._namespace = privateData.namespace !== undefined ? privateData.namespace : null;
+ this._namespacePrefix = privateData.namespacePrefix !== undefined ? privateData.namespacePrefix : null;
+ this._localName = privateData.localName;
+ this._value = privateData.value !== undefined ? privateData.value : "";
+ this._element = privateData.element !== undefined ? privateData.element : null;
- return esValue[implSymbol]["prefix"];
- }
+ this.nodeType = ATTRIBUTE_NODE;
+ this.specified = true;
+ }
- get localName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ get namespaceURI() {
+ return this._namespace;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get localName' called on an object that is not a valid instance of Attr.");
- }
+ get prefix() {
+ return this._namespacePrefix;
+ }
- return esValue[implSymbol]["localName"];
- }
+ get localName() {
+ return this._localName;
+ }
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ get name() {
+ return this._qualifiedName;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of Attr.");
- }
+ get nodeName() {
+ return this._qualifiedName;
+ }
- return esValue[implSymbol]["name"];
+ get value() {
+ return this._value;
+ }
+ set value(value) {
+ setAnExistingAttributeValue(this, value);
+ }
+
+ get ownerElement() {
+ return this._element;
+ }
+
+ get _qualifiedName() {
+ // https://dom.spec.whatwg.org/#concept-attribute-qualified-name
+ if (this._namespacePrefix === null) {
+ return this._localName;
}
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return this._namespacePrefix + ":" + this._localName;
+ }
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of Attr.");
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ }),
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 28698:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of Attr.");
- }
+"use strict";
- V = conversions["DOMString"](V, { context: "Failed to set the 'value' property on 'Attr': The provided value" });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const DOMException = __nccwpck_require__(57617);
+const idlUtils = __nccwpck_require__(34908);
+const attributes = __nccwpck_require__(35092);
+const { HTML_NS } = __nccwpck_require__(52635);
- get ownerElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.implementation = class NamedNodeMapImpl {
+ constructor(globalObject, args, privateData) {
+ this._element = privateData.element;
- if (!exports.is(esValue)) {
- throw new TypeError("'get ownerElement' called on an object that is not a valid instance of Attr.");
- }
+ this._globalObject = globalObject;
+ }
+ get _attributeList() {
+ return this._element._attributeList;
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ownerElement"]);
+ get [idlUtils.supportedPropertyIndices]() {
+ return this._attributeList.keys();
+ }
+ get length() {
+ return this._attributeList.length;
+ }
+ item(index) {
+ if (index >= this._attributeList.length) {
+ return null;
}
+ return this._attributeList[index];
+ }
- get specified() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get specified' called on an object that is not a valid instance of Attr.");
+ get [idlUtils.supportedPropertyNames]() {
+ const names = new Set(this._attributeList.map(a => a._qualifiedName));
+ const el = this._element;
+ if (el._namespaceURI === HTML_NS && el._ownerDocument._parsingMode === "html") {
+ for (const name of names) {
+ const lowercaseName = name.toLowerCase();
+ if (lowercaseName !== name) {
+ names.delete(name);
+ }
}
-
- return esValue[implSymbol]["specified"];
}
+ return names;
}
- Object.defineProperties(Attr.prototype, {
- namespaceURI: { enumerable: true },
- prefix: { enumerable: true },
- localName: { enumerable: true },
- name: { enumerable: true },
- value: { enumerable: true },
- ownerElement: { enumerable: true },
- specified: { enumerable: true },
- [Symbol.toStringTag]: { value: "Attr", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+ getNamedItem(qualifiedName) {
+ return attributes.getAttributeByName(this._element, qualifiedName);
+ }
+ getNamedItemNS(namespace, localName) {
+ return attributes.getAttributeByNameNS(this._element, namespace, localName);
+ }
+ setNamedItem(attr) {
+ // eslint-disable-next-line no-restricted-properties
+ return attributes.setAttribute(this._element, attr);
+ }
+ setNamedItemNS(attr) {
+ // eslint-disable-next-line no-restricted-properties
+ return attributes.setAttribute(this._element, attr);
+ }
+ removeNamedItem(qualifiedName) {
+ const attr = attributes.removeAttributeByName(this._element, qualifiedName);
+ if (attr === null) {
+ throw DOMException.create(this._globalObject, [
+ "Tried to remove an attribute that was not present",
+ "NotFoundError"
+ ]);
+ }
+ return attr;
+ }
+ removeNamedItemNS(namespace, localName) {
+ const attr = attributes.removeAttributeByNameNS(this._element, namespace, localName);
+ if (attr === null) {
+ throw DOMException.create(this._globalObject, [
+ "Tried to remove an attribute that was not present",
+ "NotFoundError"
+ ]);
+ }
+ return attr;
}
- globalObject[ctorRegistrySymbol][interfaceName] = Attr;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Attr
- });
};
-const Impl = __nccwpck_require__(34306);
-
/***/ }),
-/***/ 35849:
+/***/ 6460:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const ValidityState = __nccwpck_require__(84979);
+const { isDisabled } = __nccwpck_require__(2744);
+const { closest } = __nccwpck_require__(32604);
+const { fireAnEvent } = __nccwpck_require__(45673);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+exports.i = class DefaultConstraintValidationImpl {
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-willvalidate
+ get willValidate() {
+ return this._isCandidateForConstraintValidation();
+ }
-const interfaceName = "BarProp";
+ get validity() {
+ if (!this._validity) {
+ this._validity = ValidityState.createImpl(this._globalObject, [], {
+ element: this
+ });
+ }
+ return this._validity;
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-checkvalidity
+ checkValidity() {
+ if (!this._isCandidateForConstraintValidation()) {
+ return true;
+ }
+ if (this._satisfiesConstraints()) {
+ return true;
+ }
+ fireAnEvent("invalid", this, undefined, { cancelable: true });
+ return false;
}
- throw new TypeError(`${context} is not of type 'BarProp'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-setcustomvalidity
+ setCustomValidity(message) {
+ this._customValidityErrorMessage = message;
}
- const ctor = globalObject[ctorRegistrySymbol]["BarProp"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor BarProp is not installed on the passed global object");
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-reportvalidity
+ // Since jsdom has no user interaction, it's the same as #checkValidity
+ reportValidity() {
+ return this.checkValidity();
}
- return Object.create(ctor.prototype);
-}
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-validationmessage
+ get validationMessage() {
+ const { validity } = this;
+ if (!this._isCandidateForConstraintValidation() || this._satisfiesConstraints()) {
+ return "";
+ }
+ const isSufferingFromCustomError = validity.customError;
+ if (isSufferingFromCustomError) {
+ return this._customValidityErrorMessage;
+ }
+ return "Constraints not satisfied";
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ _isCandidateForConstraintValidation() {
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
+ return !isDisabled(this) &&
+ // If an element has a datalist element ancestor,
+ // it is barred from constraint validation.
+ closest(this, "datalist") === null &&
+ !this._barredFromConstraintValidationSpecialization();
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
+ _isBarredFromConstraintValidation() {
+ return !this._isCandidateForConstraintValidation();
+ }
+
+ _satisfiesConstraints() {
+ return this.validity.valid;
+ }
};
-exports._internalSetup = (wrapper, globalObject) => {};
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+/***/ }),
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+/***/ 82125:
+/***/ ((__unused_webpack_module, exports) => {
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+"use strict";
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+exports.implementation = class ValidityStateImpl {
+ constructor(globalObject, args, privateData) {
+ const { element, state = {} } = privateData;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ this._element = element;
+ this._state = state;
}
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+ get badInput() {
+ return this._failsConstraint("badInput");
}
- class BarProp {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
- get visible() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get visible' called on an object that is not a valid instance of BarProp.");
- }
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-a-custom-error
+ get customError() {
+ return this._element._customValidityErrorMessage !== "";
+ }
- return esValue[implSymbol]["visible"];
- }
+ get patternMismatch() {
+ return this._failsConstraint("patternMismatch");
}
- Object.defineProperties(BarProp.prototype, {
- visible: { enumerable: true },
- [Symbol.toStringTag]: { value: "BarProp", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+
+ get rangeOverflow() {
+ return this._failsConstraint("rangeOverflow");
}
- globalObject[ctorRegistrySymbol][interfaceName] = BarProp;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: BarProp
- });
-};
+ get rangeUnderflow() {
+ return this._failsConstraint("rangeUnderflow");
+ }
-const Impl = __nccwpck_require__(39949);
+ get stepMismatch() {
+ return this._failsConstraint("stepMismatch");
+ }
+ get tooLong() {
+ return this._failsConstraint("tooLong");
+ }
-/***/ }),
+ get tooShort() {
+ return this._failsConstraint("tooShort");
+ }
-/***/ 55075:
-/***/ ((__unused_webpack_module, exports) => {
+ get typeMismatch() {
+ return this._failsConstraint("typeMismatch");
+ }
-"use strict";
+ get valueMissing() {
+ return this._failsConstraint("valueMissing");
+ }
+ _failsConstraint(method) {
+ const validationMethod = this._state[method];
+ if (validationMethod) {
+ return validationMethod();
+ }
-const enumerationValues = new Set(["blob", "arraybuffer"]);
-exports.enumerationValues = enumerationValues;
+ return false;
+ }
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for BinaryType`);
+ get valid() {
+ return !(this.badInput || this.valueMissing || this.customError ||
+ this.patternMismatch || this.rangeOverflow || this.rangeUnderflow ||
+ this.stepMismatch || this.tooLong || this.tooShort || this.typeMismatch);
}
- return string;
};
/***/ }),
-/***/ 48350:
+/***/ 63894:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const idlUtils = __nccwpck_require__(34908);
-const BlobPropertyBag = __nccwpck_require__(72334);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+exports.implementation = class StyleSheetList {
+ constructor() {
+ this._list = [];
+ }
-const interfaceName = "Blob";
+ get length() {
+ return this._list.length;
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ item(index) {
+ const result = this._list[index];
+ return result !== undefined ? result : null;
}
- throw new TypeError(`${context} is not of type 'Blob'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+ get [idlUtils.supportedPropertyIndices]() {
+ return this._list.keys();
}
- const ctor = globalObject[ctorRegistrySymbol]["Blob"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Blob is not installed on the passed global object");
+ _add(sheet) {
+ const { _list } = this;
+ if (!_list.includes(sheet)) {
+ _list.push(sheet);
+ }
}
- return Object.create(ctor.prototype);
-}
+ _remove(sheet) {
+ const { _list } = this;
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+ const index = _list.indexOf(sheet);
+ if (index >= 0) {
+ _list.splice(index, 1);
+ }
+ }
};
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-exports._internalSetup = (wrapper, globalObject) => {};
+/***/ }),
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+/***/ 49495:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+"use strict";
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+
+const webIDLConversions = __nccwpck_require__(54886);
+const DOMException = __nccwpck_require__(57617);
+
+const NODE_TYPE = __nccwpck_require__(10656);
+
+const { HTML_NS } = __nccwpck_require__(52635);
+const { getHTMLElementInterface } = __nccwpck_require__(98548);
+const { shadowIncludingInclusiveDescendantsIterator } = __nccwpck_require__(36893);
+const { isValidCustomElementName, tryUpgradeElement, enqueueCEUpgradeReaction } = __nccwpck_require__(25392);
+
+const idlUtils = __nccwpck_require__(34908);
+const IDLFunction = __nccwpck_require__(79936);
+const HTMLUnknownElement = __nccwpck_require__(30065);
+
+const LIFECYCLE_CALLBACKS = [
+ "connectedCallback",
+ "disconnectedCallback",
+ "adoptedCallback",
+ "attributeChangedCallback"
+];
+
+function convertToSequenceDOMString(obj) {
+ if (!obj || !obj[Symbol.iterator]) {
+ throw new TypeError("Invalid Sequence");
}
- return wrapper;
-};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ return Array.from(obj).map(webIDLConversions.DOMString);
+}
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+// Returns true is the passed value is a valid constructor.
+// Borrowed from: https://stackoverflow.com/a/39336206/3832710
+function isConstructor(value) {
+ if (typeof value !== "function") {
+ return false;
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ try {
+ const P = new Proxy(value, {
+ construct() {
+ return {};
+ }
+ });
+
+ // eslint-disable-next-line no-new
+ new P();
+
+ return true;
+ } catch {
+ return false;
}
- return wrapper[implSymbol];
-};
+}
-const exposed = new Set(["Window", "Worker"]);
+// https://html.spec.whatwg.org/#customelementregistry
+class CustomElementRegistryImpl {
+ constructor(globalObject) {
+ this._customElementDefinitions = [];
+ this._elementDefinitionIsRunning = false;
+ this._whenDefinedPromiseMap = Object.create(null);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+ this._globalObject = globalObject;
}
- class Blob {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new TypeError("Failed to construct 'Blob': parameter 1" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- if (exports.is(nextItem)) {
- nextItem = utils.implForWrapper(nextItem);
- } else if (utils.isArrayBuffer(nextItem)) {
- } else if (ArrayBuffer.isView(nextItem)) {
- } else {
- nextItem = conversions["USVString"](nextItem, {
- context: "Failed to construct 'Blob': parameter 1" + "'s element"
- });
- }
- V.push(nextItem);
- }
- curArg = V;
- }
- }
- args.push(curArg);
+
+ // https://html.spec.whatwg.org/#dom-customelementregistry-define
+ define(name, constructor, options) {
+ const { _globalObject } = this;
+ const ctor = constructor.objectReference;
+
+ if (!isConstructor(ctor)) {
+ throw new TypeError("Constructor argument is not a constructor.");
+ }
+
+ if (!isValidCustomElementName(name)) {
+ throw DOMException.create(_globalObject, ["Name argument is not a valid custom element name.", "SyntaxError"]);
+ }
+
+ const nameAlreadyRegistered = this._customElementDefinitions.some(entry => entry.name === name);
+ if (nameAlreadyRegistered) {
+ throw DOMException.create(_globalObject, [
+ "This name has already been registered in the registry.",
+ "NotSupportedError"
+ ]);
+ }
+
+ const ctorAlreadyRegistered = this._customElementDefinitions.some(entry => entry.objectReference === ctor);
+ if (ctorAlreadyRegistered) {
+ throw DOMException.create(_globalObject, [
+ "This constructor has already been registered in the registry.",
+ "NotSupportedError"
+ ]);
+ }
+
+ let localName = name;
+
+ let extendsOption = null;
+ if (options !== undefined && options.extends) {
+ extendsOption = options.extends;
+ }
+
+ if (extendsOption !== null) {
+ if (isValidCustomElementName(extendsOption)) {
+ throw DOMException.create(_globalObject, [
+ "Option extends value can't be a valid custom element name.",
+ "NotSupportedError"
+ ]);
}
- {
- let curArg = arguments[1];
- curArg = BlobPropertyBag.convert(curArg, { context: "Failed to construct 'Blob': parameter 2" });
- args.push(curArg);
+
+ const extendsInterface = getHTMLElementInterface(extendsOption);
+ if (extendsInterface === HTMLUnknownElement) {
+ throw DOMException.create(_globalObject, [
+ `${extendsOption} is an HTMLUnknownElement.`,
+ "NotSupportedError"
+ ]);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+
+ localName = extendsOption;
}
- slice() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'slice' called on an object that is not a valid instance of Blob.");
+ if (this._elementDefinitionIsRunning) {
+ throw DOMException.create(_globalObject, [
+ "Invalid nested custom element definition.",
+ "NotSupportedError"
+ ]);
+ }
+
+ this._elementDefinitionIsRunning = true;
+
+ let disableShadow = false;
+ let observedAttributes = [];
+ const lifecycleCallbacks = {
+ connectedCallback: null,
+ disconnectedCallback: null,
+ adoptedCallback: null,
+ attributeChangedCallback: null
+ };
+
+ let caughtError;
+ try {
+ const { prototype } = ctor;
+
+ if (typeof prototype !== "object") {
+ throw new TypeError("Invalid constructor prototype.");
}
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long long"](curArg, {
- context: "Failed to execute 'slice' on 'Blob': parameter 1",
- clamp: true
+
+ for (const callbackName of LIFECYCLE_CALLBACKS) {
+ const callbackValue = prototype[callbackName];
+
+ if (callbackValue !== undefined) {
+ lifecycleCallbacks[callbackName] = IDLFunction.convert(callbackValue, {
+ context: `The lifecycle callback "${callbackName}"`
});
}
- args.push(curArg);
}
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["long long"](curArg, {
- context: "Failed to execute 'slice' on 'Blob': parameter 2",
- clamp: true
- });
+
+ if (lifecycleCallbacks.attributeChangedCallback !== null) {
+ const observedAttributesIterable = ctor.observedAttributes;
+
+ if (observedAttributesIterable !== undefined) {
+ observedAttributes = convertToSequenceDOMString(observedAttributesIterable);
}
- args.push(curArg);
}
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'slice' on 'Blob': parameter 3" });
- }
- args.push(curArg);
+
+ let disabledFeatures = [];
+ const disabledFeaturesIterable = ctor.disabledFeatures;
+ if (disabledFeaturesIterable) {
+ disabledFeatures = convertToSequenceDOMString(disabledFeaturesIterable);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].slice(...args));
+
+ disableShadow = disabledFeatures.includes("shadow");
+ } catch (err) {
+ caughtError = err;
+ } finally {
+ this._elementDefinitionIsRunning = false;
}
- get size() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (caughtError !== undefined) {
+ throw caughtError;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get size' called on an object that is not a valid instance of Blob.");
+ const definition = {
+ name,
+ localName,
+ constructor,
+ objectReference: ctor,
+ observedAttributes,
+ lifecycleCallbacks,
+ disableShadow,
+ constructionStack: []
+ };
+
+ this._customElementDefinitions.push(definition);
+
+ const document = idlUtils.implForWrapper(this._globalObject._document);
+
+ const upgradeCandidates = [];
+ for (const candidate of shadowIncludingInclusiveDescendantsIterator(document)) {
+ if (
+ (candidate._namespaceURI === HTML_NS && candidate._localName === localName) &&
+ (extendsOption === null || candidate._isValue === name)
+ ) {
+ upgradeCandidates.push(candidate);
}
+ }
- return esValue[implSymbol]["size"];
+ for (const upgradeCandidate of upgradeCandidates) {
+ enqueueCEUpgradeReaction(upgradeCandidate, definition);
}
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (this._whenDefinedPromiseMap[name] !== undefined) {
+ this._whenDefinedPromiseMap[name].resolve(ctor);
+ delete this._whenDefinedPromiseMap[name];
+ }
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of Blob.");
- }
+ // https://html.spec.whatwg.org/#dom-customelementregistry-get
+ get(name) {
+ const definition = this._customElementDefinitions.find(entry => entry.name === name);
+ return definition && definition.objectReference;
+ }
- return esValue[implSymbol]["type"];
+ // https://html.spec.whatwg.org/#dom-customelementregistry-whendefined
+ whenDefined(name) {
+ if (!isValidCustomElementName(name)) {
+ return Promise.reject(DOMException.create(
+ this._globalObject,
+ ["Name argument is not a valid custom element name.", "SyntaxError"]
+ ));
+ }
+
+ const alreadyRegistered = this._customElementDefinitions.find(entry => entry.name === name);
+ if (alreadyRegistered) {
+ return Promise.resolve(alreadyRegistered.objectReference);
+ }
+
+ if (this._whenDefinedPromiseMap[name] === undefined) {
+ let resolve;
+ const promise = new Promise(r => {
+ resolve = r;
+ });
+
+ // Store the pending Promise along with the extracted resolve callback to actually resolve the returned Promise,
+ // once the custom element is registered.
+ this._whenDefinedPromiseMap[name] = {
+ promise,
+ resolve
+ };
}
+
+ return this._whenDefinedPromiseMap[name].promise;
}
- Object.defineProperties(Blob.prototype, {
- slice: { enumerable: true },
- size: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "Blob", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+
+ // https://html.spec.whatwg.org/#dom-customelementregistry-upgrade
+ upgrade(root) {
+ for (const candidate of shadowIncludingInclusiveDescendantsIterator(root)) {
+ if (candidate.nodeType === NODE_TYPE.ELEMENT_NODE) {
+ tryUpgradeElement(candidate);
+ }
+ }
}
- globalObject[ctorRegistrySymbol][interfaceName] = Blob;
+}
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Blob
- });
+module.exports = {
+ implementation: CustomElementRegistryImpl
};
-const Impl = __nccwpck_require__(90699);
+
+/***/ }),
+
+/***/ 19951:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+const XMLDocument = __nccwpck_require__(79133);
+const Document = __nccwpck_require__(11795);
+const { wrapperForImpl } = __nccwpck_require__(34908);
+
+exports.createImpl = (globalObject, options, { alwaysUseDocumentClass = false } = {}) => {
+ if (options.parsingMode === "xml" && !alwaysUseDocumentClass) {
+ return XMLDocument.createImpl(globalObject, [], { options });
+ }
+ return Document.createImpl(globalObject, [], { options });
+};
+
+exports.createWrapper = (...args) => {
+ return wrapperForImpl(exports.createImpl(...args));
+};
/***/ }),
-/***/ 45775:
+/***/ 27124:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const { parseIntoDocument } = __nccwpck_require__(35373);
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new TypeError(context + " is not a function");
+const Document = __nccwpck_require__(11795);
+
+exports.implementation = class DOMParserImpl {
+ constructor(globalObject) {
+ this._globalObject = globalObject;
}
- function invokeTheCallbackFunction(blob) {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
- }
+ parseFromString(string, contentType) {
+ switch (String(contentType)) {
+ case "text/html": {
+ return this.createScriptingDisabledDocument("html", contentType, string);
+ }
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
+ case "text/xml":
+ case "application/xml":
+ case "application/xhtml+xml":
+ case "image/svg+xml": {
+ try {
+ return this.createScriptingDisabledDocument("xml", contentType, string);
+ } catch (error) {
+ const document = this.createScriptingDisabledDocument("xml", contentType);
+ const element = document.createElementNS("http://www.mozilla.org/newlayout/xml/parsererror.xml", "parsererror");
- blob = utils.tryWrapperForImpl(blob);
+ element.textContent = error.message;
- callResult = Reflect.apply(value, thisArg, [blob]);
- }
+ document.appendChild(element);
+ return document;
+ }
+ }
- invokeTheCallbackFunction.construct = blob => {
- blob = utils.tryWrapperForImpl(blob);
+ default:
+ throw new TypeError("Invalid contentType");
+ }
+ }
- let callResult = Reflect.construct(value, [blob]);
- };
+ createScriptingDisabledDocument(parsingMode, contentType, string) {
+ const document = Document.createImpl(this._globalObject, [], {
+ options: {
+ parsingMode,
+ encoding: "UTF-8",
+ contentType,
+ readyState: "complete",
+ scriptingDisabled: true
+ // TODO: somehow set URL to active document's URL
+ }
+ });
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
+ if (string !== undefined) {
+ parseIntoDocument(string, document);
+ }
- return invokeTheCallbackFunction;
+ return document;
+ }
};
/***/ }),
-/***/ 72334:
+/***/ 10393:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EndingType = __nccwpck_require__(52015);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "endings";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = EndingType.convert(value, { context: context + " has member 'endings' that" });
+const { parseFragment } = __nccwpck_require__(35373);
+const { HTML_NS } = __nccwpck_require__(52635);
+const { isShadowRoot } = __nccwpck_require__(36893);
+const NODE_TYPE = __nccwpck_require__(10656);
+const { fragmentSerialization } = __nccwpck_require__(33740);
- ret[key] = value;
- } else {
- ret[key] = "transparent";
- }
+// https://w3c.github.io/DOM-Parsing/#the-innerhtml-mixin
+exports.i = class InnerHTMLImpl {
+ // https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
+ get innerHTML() {
+ return fragmentSerialization(this, {
+ requireWellFormed: true,
+ globalObject: this._globalObject
+ });
}
+ set innerHTML(markup) {
+ const contextElement = isShadowRoot(this) ? this.host : this;
+ const fragment = parseFragment(markup, contextElement);
- {
- const key = "type";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'type' that" });
-
- ret[key] = value;
- } else {
- ret[key] = "";
+ let contextObject = this;
+ if (this.nodeType === NODE_TYPE.ELEMENT_NODE && this.localName === "template" && this.namespaceURI === HTML_NS) {
+ contextObject = this._templateContents;
}
+
+ contextObject._replaceAll(fragment);
}
};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+
+/***/ }),
+
+/***/ 347:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+const serialize = __nccwpck_require__(57914);
+const DOMException = __nccwpck_require__(57617);
+const utils = __nccwpck_require__(34908);
+
+exports.implementation = class XMLSerializerImpl {
+ constructor(globalObject) {
+ this._globalObject = globalObject;
}
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ serializeToString(root) {
+ try {
+ return serialize(utils.wrapperForImpl(root), { requireWellFormed: false });
+ } catch (e) {
+ throw DOMException.create(this._globalObject, [e.message, "InvalidStateError"]);
+ }
+ }
};
/***/ }),
-/***/ 85221:
+/***/ 19756:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
+const nodeTypes = __nccwpck_require__(10656);
+const { domSymbolTree } = __nccwpck_require__(35633);
+// Serialization only requires a subset of the tree adapter interface.
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+// Tree traversing
+exports.getFirstChild = node => node.firstChild;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Text = __nccwpck_require__(49374);
+exports.getChildNodes = node => node.childNodesForSerializing || domSymbolTree.childrenToArray(node);
-const interfaceName = "CDATASection";
+exports.getParentNode = node => node.parentNode;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+exports.getAttrList = element => {
+ const attributeList = [...element._attributeList];
+
+ if (element._isValue && attributeList.every(attr => attr.name !== "is")) {
+ attributeList.unshift({
+ name: "is",
+ namespace: null,
+ prefix: null,
+ value: element._isValue
+ });
}
- throw new TypeError(`${context} is not of type 'CDATASection'.`);
+
+ return attributeList;
};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+// Node data
+exports.getTagName = element => element._qualifiedName; // https://github.com/inikulin/parse5/issues/231
- const ctor = globalObject[ctorRegistrySymbol]["CDATASection"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor CDATASection is not installed on the passed global object");
- }
+exports.getNamespaceURI = element => element.namespaceURI;
- return Object.create(ctor.prototype);
-}
+exports.getTextNodeContent = exports.getCommentNodeContent = node => node.data;
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+exports.getDocumentTypeNodeName = node => node.name;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
+exports.getDocumentTypeNodePublicId = node => node.publicId;
+
+exports.getDocumentTypeNodeSystemId = node => node.systemId;
+
+exports.getTemplateContent = templateElement => templateElement._templateContents;
+
+exports.getDocumentMode = document => document._mode;
+
+// Node types
+exports.isTextNode = node => node.nodeType === nodeTypes.TEXT_NODE;
+
+exports.isCommentNode = node => node.nodeType === nodeTypes.COMMENT_NODE;
+
+exports.isDocumentTypeNode = node => node.nodeType === nodeTypes.DOCUMENT_TYPE_NODE;
+
+exports.isElementNode = node => node.nodeType === nodeTypes.ELEMENT_NODE;
+
+// Source code location
+exports.setNodeSourceCodeLocation = (node, location) => {
+ node.sourceCodeLocation = location;
};
-exports._internalSetup = (wrapper, globalObject) => {
- Text._internalSetup(wrapper, globalObject);
+exports.getNodeSourceCodeLocation = node => node.sourceCodeLocation;
+
+exports.updateNodeSourceCodeLocation = (node, endLocation) => {
+ Object.assign(node.sourceCodeLocation, endLocation);
};
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+/***/ }),
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+/***/ 33740:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+"use strict";
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+const produceXMLSerialization = __nccwpck_require__(57914);
+const parse5 = __nccwpck_require__(65598);
+const DOMException = __nccwpck_require__(57617);
-const exposed = new Set(["Window"]);
+const utils = __nccwpck_require__(34908);
+const treeAdapter = __nccwpck_require__(19756);
+const NODE_TYPE = __nccwpck_require__(10656);
+const NAMESPACES = __nccwpck_require__(52635);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+function htmlSerialization(node) {
+ if (
+ node.nodeType === NODE_TYPE.ELEMENT_NODE &&
+ node.namespaceURI === NAMESPACES.HTML_NS &&
+ node.tagName === "TEMPLATE"
+ ) {
+ node = node.content;
}
- if (globalObject.Text === undefined) {
- throw new Error("Internal error: attempting to evaluate CDATASection before Text");
+ return parse5.serialize(node, { treeAdapter });
+}
+
+module.exports.fragmentSerialization = (node, { requireWellFormed, globalObject }) => {
+ const contextDocument =
+ node.nodeType === NODE_TYPE.DOCUMENT_NODE ? node : node._ownerDocument;
+ if (contextDocument._parsingMode === "html") {
+ return htmlSerialization(node);
}
- class CDATASection extends globalObject.Text {
- constructor() {
- throw new TypeError("Illegal constructor");
+
+ const childNodes = node.childNodesForSerializing || node.childNodes;
+
+ try {
+ let serialized = "";
+ for (let i = 0; i < childNodes.length; ++i) {
+ serialized += produceXMLSerialization(
+ utils.wrapperForImpl(childNodes[i] || childNodes.item(i)),
+ { requireWellFormed }
+ );
}
+ return serialized;
+ } catch (e) {
+ throw DOMException.create(globalObject, [e.message, "InvalidStateError"]);
}
- Object.defineProperties(CDATASection.prototype, {
- [Symbol.toStringTag]: { value: "CDATASection", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = CDATASection;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CDATASection
- });
};
-const Impl = __nccwpck_require__(68423);
-
/***/ }),
-/***/ 30948:
+/***/ 9213:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const EventImpl = (__nccwpck_require__(61883).implementation);
-const interfaceName = "CharacterData";
+const CloseEventInit = __nccwpck_require__(6450);
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'CharacterData'.`);
-};
+class CloseEventImpl extends EventImpl {}
+CloseEventImpl.defaultInit = CloseEventInit.convert(undefined);
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+exports.implementation = CloseEventImpl;
- const ctor = globalObject[ctorRegistrySymbol]["CharacterData"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor CharacterData is not installed on the passed global object");
- }
- return Object.create(ctor.prototype);
-}
+/***/ }),
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+/***/ 79607:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+"use strict";
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+const UIEventImpl = (__nccwpck_require__(55900).implementation);
+const CompositionEventInit = __nccwpck_require__(57053);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+class CompositionEventImpl extends UIEventImpl {
+ initCompositionEvent(type, bubbles, cancelable, view, data) {
+ if (this._dispatchFlag) {
+ return;
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ this.initUIEvent(type, bubbles, cancelable, view, 0);
+ this.data = data;
}
- return wrapper;
+}
+CompositionEventImpl.defaultInit = CompositionEventInit.convert(undefined);
+
+module.exports = {
+ implementation: CompositionEventImpl
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+/***/ }),
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+/***/ 47560:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-const exposed = new Set(["Window"]);
+"use strict";
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- if (globalObject.Node === undefined) {
- throw new Error("Internal error: attempting to evaluate CharacterData before Node");
- }
- class CharacterData extends globalObject.Node {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
+const EventImpl = (__nccwpck_require__(61883).implementation);
- substringData(offset, count) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'substringData' called on an object that is not a valid instance of CharacterData.");
- }
+const CustomEventInit = __nccwpck_require__(29264);
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'substringData' on 'CharacterData': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'substringData' on 'CharacterData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'substringData' on 'CharacterData': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].substringData(...args);
+class CustomEventImpl extends EventImpl {
+ initCustomEvent(type, bubbles, cancelable, detail) {
+ if (this._dispatchFlag) {
+ return;
}
- appendData(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'appendData' called on an object that is not a valid instance of CharacterData.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'appendData' on 'CharacterData': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'appendData' on 'CharacterData': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].appendData(...args);
- }
+ this.initEvent(type, bubbles, cancelable);
+ this.detail = detail;
+ }
+}
+CustomEventImpl.defaultInit = CustomEventInit.convert(undefined);
- insertData(offset, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'insertData' called on an object that is not a valid instance of CharacterData.");
- }
+module.exports = {
+ implementation: CustomEventImpl
+};
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'insertData' on 'CharacterData': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'insertData' on 'CharacterData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertData' on 'CharacterData': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].insertData(...args);
- }
- deleteData(offset, count) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'deleteData' called on an object that is not a valid instance of CharacterData.");
- }
+/***/ }),
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'deleteData' on 'CharacterData': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'deleteData' on 'CharacterData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'deleteData' on 'CharacterData': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].deleteData(...args);
- }
+/***/ 21385:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- replaceData(offset, count, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'replaceData' called on an object that is not a valid instance of CharacterData.");
- }
+"use strict";
- if (arguments.length < 3) {
- throw new TypeError(
- "Failed to execute 'replaceData' on 'CharacterData': 3 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'replaceData' on 'CharacterData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'replaceData' on 'CharacterData': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceData' on 'CharacterData': parameter 3"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].replaceData(...args);
- }
- before() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'before' called on an object that is not a valid instance of CharacterData.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'before' on 'CharacterData': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].before(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const EventImpl = (__nccwpck_require__(61883).implementation);
- after() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'after' called on an object that is not a valid instance of CharacterData.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'after' on 'CharacterData': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].after(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const ErrorEventInit = __nccwpck_require__(72886);
- replaceWith() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'replaceWith' called on an object that is not a valid instance of CharacterData.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceWith' on 'CharacterData': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceWith(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+class ErrorEventImpl extends EventImpl {
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'remove' called on an object that is not a valid instance of CharacterData.");
- }
+}
+ErrorEventImpl.defaultInit = ErrorEventInit.convert(undefined);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+module.exports = {
+ implementation: ErrorEventImpl
+};
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get data' called on an object that is not a valid instance of CharacterData.");
- }
+/***/ }),
- return esValue[implSymbol]["data"];
- }
+/***/ 61883:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- set data(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'set data' called on an object that is not a valid instance of CharacterData.");
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'data' property on 'CharacterData': The provided value",
- treatNullAsEmptyString: true
- });
+const idlUtils = __nccwpck_require__(34908);
+const EventInit = __nccwpck_require__(4895);
- esValue[implSymbol]["data"] = V;
- }
+class EventImpl {
+ constructor(globalObject, args, privateData) {
+ const [type, eventInitDict = this.constructor.defaultInit] = args;
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ this.type = type;
- if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of CharacterData.");
+ this.bubbles = false;
+ this.cancelable = false;
+ for (const key in eventInitDict) {
+ if (key in this.constructor.defaultInit) {
+ this[key] = eventInitDict[key];
}
-
- return esValue[implSymbol]["length"];
}
-
- get previousElementSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get previousElementSibling' called on an object that is not a valid instance of CharacterData."
- );
+ for (const key in this.constructor.defaultInit) {
+ if (!(key in this)) {
+ this[key] = this.constructor.defaultInit[key];
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
}
- get nextElementSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ this.target = null;
+ this.currentTarget = null;
+ this.eventPhase = 0;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get nextElementSibling' called on an object that is not a valid instance of CharacterData."
- );
- }
+ this._globalObject = globalObject;
+ this._initializedFlag = true;
+ this._stopPropagationFlag = false;
+ this._stopImmediatePropagationFlag = false;
+ this._canceledFlag = false;
+ this._inPassiveListenerFlag = false;
+ this._dispatchFlag = false;
+ this._path = [];
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
- }
+ this.isTrusted = privateData.isTrusted || false;
+ this.timeStamp = Date.now();
}
- Object.defineProperties(CharacterData.prototype, {
- substringData: { enumerable: true },
- appendData: { enumerable: true },
- insertData: { enumerable: true },
- deleteData: { enumerable: true },
- replaceData: { enumerable: true },
- before: { enumerable: true },
- after: { enumerable: true },
- replaceWith: { enumerable: true },
- remove: { enumerable: true },
- data: { enumerable: true },
- length: { enumerable: true },
- previousElementSibling: { enumerable: true },
- nextElementSibling: { enumerable: true },
- [Symbol.toStringTag]: { value: "CharacterData", configurable: true },
- [Symbol.unscopables]: {
- value: { before: true, after: true, replaceWith: true, remove: true, __proto__: null },
- configurable: true
+
+ // https://dom.spec.whatwg.org/#set-the-canceled-flag
+ _setTheCanceledFlag() {
+ if (this.cancelable && !this._inPassiveListenerFlag) {
+ this._canceledFlag = true;
}
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = CharacterData;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CharacterData
- });
-};
-
-const Impl = __nccwpck_require__(96727);
-
-
-/***/ }),
-/***/ 19235:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+ get srcElement() {
+ return this.target;
+ }
+ get returnValue() {
+ return !this._canceledFlag;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ set returnValue(v) {
+ if (v === false) {
+ this._setTheCanceledFlag();
+ }
+ }
-const CloseEventInit = __nccwpck_require__(6450);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+ get defaultPrevented() {
+ return this._canceledFlag;
+ }
-const interfaceName = "CloseEvent";
+ stopPropagation() {
+ this._stopPropagationFlag = true;
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ get cancelBubble() {
+ return this._stopPropagationFlag;
}
- throw new TypeError(`${context} is not of type 'CloseEvent'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+ set cancelBubble(v) {
+ if (v) {
+ this._stopPropagationFlag = true;
+ }
}
- const ctor = globalObject[ctorRegistrySymbol]["CloseEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor CloseEvent is not installed on the passed global object");
+ stopImmediatePropagation() {
+ this._stopPropagationFlag = true;
+ this._stopImmediatePropagationFlag = true;
}
- return Object.create(ctor.prototype);
-}
+ preventDefault() {
+ this._setTheCanceledFlag();
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ // https://dom.spec.whatwg.org/#dom-event-composedpath
+ // Current implementation is based of https://whatpr.org/dom/699.html#dom-event-composedpath
+ // due to a bug in composed path implementation https://github.com/whatwg/dom/issues/684
+ composedPath() {
+ const composedPath = [];
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ const { currentTarget, _path: path } = this;
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+ if (path.length === 0) {
+ return composedPath;
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ composedPath.push(currentTarget);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ let currentTargetIndex = 0;
+ let currentTargetHiddenSubtreeLevel = 0;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ for (let index = path.length - 1; index >= 0; index--) {
+ const { item, rootOfClosedTree, slotInClosedTree } = path[index];
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (rootOfClosedTree) {
+ currentTargetHiddenSubtreeLevel++;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (item === idlUtils.implForWrapper(currentTarget)) {
+ currentTargetIndex = index;
+ break;
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (slotInClosedTree) {
+ currentTargetHiddenSubtreeLevel--;
+ }
+ }
-const exposed = new Set(["Window", "Worker"]);
+ let currentHiddenLevel = currentTargetHiddenSubtreeLevel;
+ let maxHiddenLevel = currentTargetHiddenSubtreeLevel;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ for (let i = currentTargetIndex - 1; i >= 0; i--) {
+ const { item, rootOfClosedTree, slotInClosedTree } = path[i];
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate CloseEvent before Event");
- }
- class CloseEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'CloseEvent': 1 argument required, but only " + arguments.length + " present."
- );
+ if (rootOfClosedTree) {
+ currentHiddenLevel++;
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'CloseEvent': parameter 1" });
- args.push(curArg);
+
+ if (currentHiddenLevel <= maxHiddenLevel) {
+ composedPath.unshift(idlUtils.wrapperForImpl(item));
}
- {
- let curArg = arguments[1];
- curArg = CloseEventInit.convert(curArg, { context: "Failed to construct 'CloseEvent': parameter 2" });
- args.push(curArg);
+
+ if (slotInClosedTree) {
+ currentHiddenLevel--;
+ if (currentHiddenLevel < maxHiddenLevel) {
+ maxHiddenLevel = currentHiddenLevel;
+ }
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get wasClean() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get wasClean' called on an object that is not a valid instance of CloseEvent.");
- }
+ currentHiddenLevel = currentTargetHiddenSubtreeLevel;
+ maxHiddenLevel = currentTargetHiddenSubtreeLevel;
- return esValue[implSymbol]["wasClean"];
- }
+ for (let index = currentTargetIndex + 1; index < path.length; index++) {
+ const { item, rootOfClosedTree, slotInClosedTree } = path[index];
- get code() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (slotInClosedTree) {
+ currentHiddenLevel++;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get code' called on an object that is not a valid instance of CloseEvent.");
+ if (currentHiddenLevel <= maxHiddenLevel) {
+ composedPath.push(idlUtils.wrapperForImpl(item));
}
- return esValue[implSymbol]["code"];
+ if (rootOfClosedTree) {
+ currentHiddenLevel--;
+ if (currentHiddenLevel < maxHiddenLevel) {
+ maxHiddenLevel = currentHiddenLevel;
+ }
+ }
}
- get reason() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return composedPath;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get reason' called on an object that is not a valid instance of CloseEvent.");
- }
+ _initialize(type, bubbles, cancelable) {
+ this.type = type;
+ this._initializedFlag = true;
- return esValue[implSymbol]["reason"];
- }
+ this._stopPropagationFlag = false;
+ this._stopImmediatePropagationFlag = false;
+ this._canceledFlag = false;
+
+ this.isTrusted = false;
+ this.target = null;
+ this.bubbles = bubbles;
+ this.cancelable = cancelable;
}
- Object.defineProperties(CloseEvent.prototype, {
- wasClean: { enumerable: true },
- code: { enumerable: true },
- reason: { enumerable: true },
- [Symbol.toStringTag]: { value: "CloseEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+
+ initEvent(type, bubbles, cancelable) {
+ if (this._dispatchFlag) {
+ return;
+ }
+
+ this._initialize(type, bubbles, cancelable);
}
- globalObject[ctorRegistrySymbol][interfaceName] = CloseEvent;
+}
+EventImpl.defaultInit = EventInit.convert(undefined);
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CloseEvent
- });
+module.exports = {
+ implementation: EventImpl
};
-const Impl = __nccwpck_require__(9213);
+
+/***/ }),
+
+/***/ 86789:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+// This mixin doesn't have an IDL equivalent, but since MouseEvent and KeyboardEvent implement getModifierState() the
+// same way, its implementation is shared here.
+
+class EventModifierMixinImpl {
+ // Event's constructor assumes all options correspond to IDL attributes with the same names, and sets them on `this`.
+ // That is not the case for these modifier boolean options, but since the options are set on `this` anyway we'll
+ // access them that way. The spec doesn't say much about the case where keyArg is not one of the valid ones
+ // (https://w3c.github.io/uievents-key/#keys-modifier), but at least Chrome returns false for invalid modifiers. Since
+ // these invalid modifiers will be undefined on `this` (thus `false` after casting it to boolean), we don't need to do
+ // extra checking for validity.
+ getModifierState(keyArg) {
+ return Boolean(this[`modifier${keyArg}`]);
+ }
+}
+
+exports.i = EventModifierMixinImpl;
/***/ }),
-/***/ 6450:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 18557:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
+const DOMException = __nccwpck_require__(57617);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const reportException = __nccwpck_require__(15612);
+const idlUtils = __nccwpck_require__(34908);
+const { nodeRoot } = __nccwpck_require__(98962);
+const {
+ isNode, isShadowRoot, isSlotable, getEventTargetParent,
+ isShadowInclusiveAncestor, retarget
+} = __nccwpck_require__(36893);
-const EventInit = __nccwpck_require__(4895);
+const MouseEvent = __nccwpck_require__(35364);
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+const EVENT_PHASE = {
+ NONE: 0,
+ CAPTURING_PHASE: 1,
+ AT_TARGET: 2,
+ BUBBLING_PHASE: 3
+};
- {
- const key = "code";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned short"](value, { context: context + " has member 'code' that" });
+class EventTargetImpl {
+ constructor(globalObject) {
+ this._globalObject = globalObject;
+ this._eventListeners = Object.create(null);
+ }
- ret[key] = value;
- } else {
- ret[key] = 0;
+ addEventListener(type, callback, options) {
+ options = normalizeEventHandlerOptions(options, ["capture", "once", "passive"]);
+
+ if (callback === null) {
+ return;
}
- }
- {
- const key = "reason";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'reason' that" });
+ if (!this._eventListeners[type]) {
+ this._eventListeners[type] = [];
+ }
- ret[key] = value;
- } else {
- ret[key] = "";
+ for (let i = 0; i < this._eventListeners[type].length; ++i) {
+ const listener = this._eventListeners[type][i];
+ if (
+ listener.callback.objectReference === callback.objectReference &&
+ listener.options.capture === options.capture
+ ) {
+ return;
+ }
}
+
+ this._eventListeners[type].push({
+ callback,
+ options
+ });
}
- {
- const key = "wasClean";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'wasClean' that" });
+ removeEventListener(type, callback, options) {
+ options = normalizeEventHandlerOptions(options, ["capture"]);
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (callback === null) {
+ // Optimization, not in the spec.
+ return;
+ }
+
+ if (!this._eventListeners[type]) {
+ return;
+ }
+
+ for (let i = 0; i < this._eventListeners[type].length; ++i) {
+ const listener = this._eventListeners[type][i];
+ if (
+ listener.callback.objectReference === callback.objectReference &&
+ listener.options.capture === options.capture
+ ) {
+ this._eventListeners[type].splice(i, 1);
+ break;
+ }
}
}
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ dispatchEvent(eventImpl) {
+ if (eventImpl._dispatchFlag || !eventImpl._initializedFlag) {
+ throw DOMException.create(this._globalObject, [
+ "Tried to dispatch an uninitialized event",
+ "InvalidStateError"
+ ]);
+ }
+ if (eventImpl.eventPhase !== EVENT_PHASE.NONE) {
+ throw DOMException.create(this._globalObject, [
+ "Tried to dispatch a dispatching event",
+ "InvalidStateError"
+ ]);
+ }
+
+ eventImpl.isTrusted = false;
+
+ return this._dispatch(eventImpl);
}
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ // https://dom.spec.whatwg.org/#get-the-parent
+ _getTheParent() {
+ return null;
+ }
+ // https://dom.spec.whatwg.org/#concept-event-dispatch
+ // legacyOutputDidListenersThrowFlag optional parameter is not necessary here since it is only used by indexDB.
+ _dispatch(eventImpl, targetOverride /* , legacyOutputDidListenersThrowFlag */) {
+ let targetImpl = this;
+ let clearTargets = false;
+ let activationTarget = null;
-/***/ }),
+ eventImpl._dispatchFlag = true;
-/***/ 56625:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ targetOverride = targetOverride || targetImpl;
+ let relatedTarget = retarget(eventImpl.relatedTarget, targetImpl);
-"use strict";
+ if (targetImpl !== relatedTarget || targetImpl === eventImpl.relatedTarget) {
+ const touchTargets = [];
+ appendToEventPath(eventImpl, targetImpl, targetOverride, relatedTarget, touchTargets, false);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ const isActivationEvent = MouseEvent.isImpl(eventImpl) && eventImpl.type === "click";
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const CharacterData = __nccwpck_require__(30948);
+ if (isActivationEvent && targetImpl._hasActivationBehavior) {
+ activationTarget = targetImpl;
+ }
-const interfaceName = "Comment";
+ let slotInClosedTree = false;
+ let slotable = isSlotable(targetImpl) && targetImpl._assignedSlot ? targetImpl : null;
+ let parent = getEventTargetParent(targetImpl, eventImpl);
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Comment'.`);
-};
+ // Populate event path
+ // https://dom.spec.whatwg.org/#event-path
+ while (parent !== null) {
+ if (slotable !== null) {
+ if (parent.localName !== "slot") {
+ throw new Error(`JSDOM Internal Error: Expected parent to be a Slot`);
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ slotable = null;
- const ctor = globalObject[ctorRegistrySymbol]["Comment"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Comment is not installed on the passed global object");
- }
+ const parentRoot = nodeRoot(parent);
+ if (isShadowRoot(parentRoot) && parentRoot.mode === "closed") {
+ slotInClosedTree = true;
+ }
+ }
- return Object.create(ctor.prototype);
-}
+ if (isSlotable(parent) && parent._assignedSlot) {
+ slotable = parent;
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ relatedTarget = retarget(eventImpl.relatedTarget, parent);
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (
+ (isNode(parent) && isShadowInclusiveAncestor(nodeRoot(targetImpl), parent)) ||
+ idlUtils.wrapperForImpl(parent).constructor.name === "Window"
+ ) {
+ if (isActivationEvent && eventImpl.bubbles && activationTarget === null &&
+ parent._hasActivationBehavior) {
+ activationTarget = parent;
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- CharacterData._internalSetup(wrapper, globalObject);
-};
+ appendToEventPath(eventImpl, parent, null, relatedTarget, touchTargets, slotInClosedTree);
+ } else if (parent === relatedTarget) {
+ parent = null;
+ } else {
+ targetImpl = parent;
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (isActivationEvent && activationTarget === null && targetImpl._hasActivationBehavior) {
+ activationTarget = targetImpl;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ appendToEventPath(eventImpl, parent, targetImpl, relatedTarget, touchTargets, slotInClosedTree);
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (parent !== null) {
+ parent = getEventTargetParent(parent, eventImpl);
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ slotInClosedTree = false;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ let clearTargetsStructIndex = -1;
+ for (let i = eventImpl._path.length - 1; i >= 0 && clearTargetsStructIndex === -1; i--) {
+ if (eventImpl._path[i].target !== null) {
+ clearTargetsStructIndex = i;
+ }
+ }
+ const clearTargetsStruct = eventImpl._path[clearTargetsStructIndex];
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ clearTargets =
+ (isNode(clearTargetsStruct.target) && isShadowRoot(nodeRoot(clearTargetsStruct.target))) ||
+ (isNode(clearTargetsStruct.relatedTarget) && isShadowRoot(nodeRoot(clearTargetsStruct.relatedTarget)));
-const exposed = new Set(["Window"]);
+ if (activationTarget !== null && activationTarget._legacyPreActivationBehavior) {
+ activationTarget._legacyPreActivationBehavior();
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ for (let i = eventImpl._path.length - 1; i >= 0; --i) {
+ const struct = eventImpl._path[i];
- if (globalObject.CharacterData === undefined) {
- throw new Error("Internal error: attempting to evaluate Comment before CharacterData");
- }
- class Comment extends globalObject.CharacterData {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'Comment': parameter 1" });
+ if (struct.target !== null) {
+ eventImpl.eventPhase = EVENT_PHASE.AT_TARGET;
} else {
- curArg = "";
+ eventImpl.eventPhase = EVENT_PHASE.CAPTURING_PHASE;
}
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
- }
- Object.defineProperties(Comment.prototype, { [Symbol.toStringTag]: { value: "Comment", configurable: true } });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = Comment;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Comment
- });
-};
-const Impl = __nccwpck_require__(6119);
+ invokeEventListeners(struct, eventImpl, "capturing");
+ }
+ for (let i = 0; i < eventImpl._path.length; i++) {
+ const struct = eventImpl._path[i];
-/***/ }),
+ if (struct.target !== null) {
+ eventImpl.eventPhase = EVENT_PHASE.AT_TARGET;
+ } else {
+ if (!eventImpl.bubbles) {
+ continue;
+ }
-/***/ 88774:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ eventImpl.eventPhase = EVENT_PHASE.BUBBLING_PHASE;
+ }
-"use strict";
+ invokeEventListeners(struct, eventImpl, "bubbling");
+ }
+ }
+ eventImpl.eventPhase = EVENT_PHASE.NONE;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ eventImpl.currentTarget = null;
+ eventImpl._path = [];
+ eventImpl._dispatchFlag = false;
+ eventImpl._stopPropagationFlag = false;
+ eventImpl._stopImmediatePropagationFlag = false;
-const CompositionEventInit = __nccwpck_require__(57053);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
+ if (clearTargets) {
+ eventImpl.target = null;
+ eventImpl.relatedTarget = null;
+ }
-const interfaceName = "CompositionEvent";
+ if (activationTarget !== null) {
+ if (!eventImpl._canceledFlag) {
+ activationTarget._activationBehavior(eventImpl);
+ } else if (activationTarget._legacyCanceledActivationBehavior) {
+ activationTarget._legacyCanceledActivationBehavior();
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ return !eventImpl._canceledFlag;
}
- throw new TypeError(`${context} is not of type 'CompositionEvent'.`);
+}
+
+module.exports = {
+ implementation: EventTargetImpl
};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+// https://dom.spec.whatwg.org/#concept-event-listener-invoke
+function invokeEventListeners(struct, eventImpl, phase) {
+ const structIndex = eventImpl._path.indexOf(struct);
+ for (let i = structIndex; i >= 0; i--) {
+ const t = eventImpl._path[i];
+ if (t.target) {
+ eventImpl.target = t.target;
+ break;
+ }
}
- const ctor = globalObject[ctorRegistrySymbol]["CompositionEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor CompositionEvent is not installed on the passed global object");
+ eventImpl.relatedTarget = idlUtils.wrapperForImpl(struct.relatedTarget);
+
+ if (eventImpl._stopPropagationFlag) {
+ return;
}
- return Object.create(ctor.prototype);
+ eventImpl.currentTarget = idlUtils.wrapperForImpl(struct.item);
+
+ const listeners = struct.item._eventListeners;
+ innerInvokeEventListeners(eventImpl, listeners, phase, struct.itemInShadowTree);
}
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+// https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke
+function innerInvokeEventListeners(eventImpl, listeners, phase, itemInShadowTree) {
+ let found = false;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
+ const { type, target } = eventImpl;
+ const wrapper = idlUtils.wrapperForImpl(target);
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!listeners || !listeners[type]) {
+ return found;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ // Copy event listeners before iterating since the list can be modified during the iteration.
+ const handlers = listeners[type].slice();
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ for (let i = 0; i < handlers.length; i++) {
+ const listener = handlers[i];
+ const { capture, once, passive } = listener.options;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ // Check if the event listener has been removed since the listeners has been cloned.
+ if (!listeners[type].includes(listener)) {
+ continue;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ found = true;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (
+ (phase === "capturing" && !capture) ||
+ (phase === "bubbling" && capture)
+ ) {
+ continue;
+ }
-const exposed = new Set(["Window"]);
+ if (once) {
+ listeners[type].splice(listeners[type].indexOf(listener), 1);
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ let window = null;
+ if (wrapper && wrapper._document) {
+ // Triggered by Window
+ window = wrapper;
+ } else if (target._ownerDocument) {
+ // Triggered by most webidl2js'ed instances
+ window = target._ownerDocument._defaultView;
+ } else if (wrapper._ownerDocument) {
+ // Currently triggered by some non-webidl2js things
+ window = wrapper._ownerDocument._defaultView;
+ }
- if (globalObject.UIEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate CompositionEvent before UIEvent");
- }
- class CompositionEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'CompositionEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'CompositionEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CompositionEventInit.convert(curArg, {
- context: "Failed to construct 'CompositionEvent': parameter 2"
- });
- args.push(curArg);
+ let currentEvent;
+ if (window) {
+ currentEvent = window._currentEvent;
+ if (!itemInShadowTree) {
+ window._currentEvent = eventImpl;
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- initCompositionEvent(typeArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'initCompositionEvent' called on an object that is not a valid instance of CompositionEvent."
- );
- }
+ if (passive) {
+ eventImpl._inPassiveListenerFlag = true;
+ }
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initCompositionEvent' on 'CompositionEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 5"
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
+ try {
+ listener.callback.call(eventImpl.currentTarget, eventImpl);
+ } catch (e) {
+ if (window) {
+ reportException(window, e);
}
- return esValue[implSymbol].initCompositionEvent(...args);
+ // Errors in window-less documents just get swallowed... can you think of anything better?
}
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ eventImpl._inPassiveListenerFlag = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'get data' called on an object that is not a valid instance of CompositionEvent.");
- }
+ if (window) {
+ window._currentEvent = currentEvent;
+ }
- return esValue[implSymbol]["data"];
+ if (eventImpl._stopImmediatePropagationFlag) {
+ return found;
}
}
- Object.defineProperties(CompositionEvent.prototype, {
- initCompositionEvent: { enumerable: true },
- data: { enumerable: true },
- [Symbol.toStringTag]: { value: "CompositionEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+
+ return found;
+}
+
+/**
+ * Normalize the event listeners options argument in order to get always a valid options object
+ * @param {Object} options - user defined options
+ * @param {Array} defaultBoolKeys - boolean properties that should belong to the options object
+ * @returns {Object} object containing at least the "defaultBoolKeys"
+ */
+function normalizeEventHandlerOptions(options, defaultBoolKeys) {
+ const returnValue = {};
+
+ // no need to go further here
+ if (typeof options === "boolean" || options === null || typeof options === "undefined") {
+ returnValue.capture = Boolean(options);
+ return returnValue;
}
- globalObject[ctorRegistrySymbol][interfaceName] = CompositionEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CompositionEvent
- });
-};
+ // non objects options so we typecast its value as "capture" value
+ if (typeof options !== "object") {
+ returnValue.capture = Boolean(options);
+ // at this point we don't need to loop the "capture" key anymore
+ defaultBoolKeys = defaultBoolKeys.filter(k => k !== "capture");
+ }
-const Impl = __nccwpck_require__(79607);
+ for (const key of defaultBoolKeys) {
+ returnValue[key] = Boolean(options[key]);
+ }
+
+ return returnValue;
+}
+
+// https://dom.spec.whatwg.org/#concept-event-path-append
+function appendToEventPath(eventImpl, target, targetOverride, relatedTarget, touchTargets, slotInClosedTree) {
+ const itemInShadowTree = isNode(target) && isShadowRoot(nodeRoot(target));
+ const rootOfClosedTree = isShadowRoot(target) && target.mode === "closed";
+
+ eventImpl._path.push({
+ item: target,
+ itemInShadowTree,
+ target: targetOverride,
+ relatedTarget,
+ touchTargets,
+ rootOfClosedTree,
+ slotInClosedTree
+ });
+}
/***/ }),
-/***/ 57053:
+/***/ 8703:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
+const UIEventImpl = (__nccwpck_require__(55900).implementation);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const FocusEventInit = __nccwpck_require__(89088);
-const UIEventInit = __nccwpck_require__(82015);
+class FocusEventImpl extends UIEventImpl {}
+FocusEventImpl.defaultInit = FocusEventInit.convert(undefined);
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(obj, ret, { context });
+exports.implementation = FocusEventImpl;
- {
- const key = "data";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'data' that" });
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-};
+/***/ }),
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+/***/ 93234:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+"use strict";
+
+
+const EventImpl = (__nccwpck_require__(61883).implementation);
+
+const HashChangeEventInit = __nccwpck_require__(72491);
+
+class HashChangeEventImpl extends EventImpl {
+
+}
+HashChangeEventImpl.defaultInit = HashChangeEventInit.convert(undefined);
+
+module.exports = {
+ implementation: HashChangeEventImpl
};
/***/ }),
-/***/ 58110:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 58056:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
+const UIEventImpl = (__nccwpck_require__(55900).implementation);
+const InputEventInit = __nccwpck_require__(75799);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+// https://w3c.github.io/uievents/#interface-inputevent
+class InputEventImpl extends UIEventImpl { }
+InputEventImpl.defaultInit = InputEventInit.convert(undefined);
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new TypeError(context + " is not a function");
- }
+module.exports = {
+ implementation: InputEventImpl
+};
- function invokeTheCallbackFunction() {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
- }
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
+/***/ }),
- callResult = Reflect.apply(value, thisArg, []);
+/***/ 44410:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- callResult = conversions["any"](callResult, { context: context });
+"use strict";
- return callResult;
- }
- invokeTheCallbackFunction.construct = () => {
- let callResult = Reflect.construct(value, []);
+const { mixin } = __nccwpck_require__(11463);
+const EventModifierMixinImpl = (__nccwpck_require__(86789)/* .implementation */ .i);
+const UIEventImpl = (__nccwpck_require__(55900).implementation);
- callResult = conversions["any"](callResult, { context: context });
+const KeyboardEventInit = __nccwpck_require__(72711);
- return callResult;
- };
+class KeyboardEventImpl extends UIEventImpl {
+ initKeyboardEvent(type, bubbles, cancelable, view, key, location, ctrlKey, altKey, shiftKey, metaKey) {
+ if (this._dispatchFlag) {
+ return;
+ }
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
+ this.initUIEvent(type, bubbles, cancelable, view, 0);
+ this.key = key;
+ this.location = location;
+ this.ctrlKey = ctrlKey;
+ this.altKey = altKey;
+ this.shiftKey = shiftKey;
+ this.metaKey = metaKey;
+ }
+}
+mixin(KeyboardEventImpl.prototype, EventModifierMixinImpl.prototype);
+KeyboardEventImpl.defaultInit = KeyboardEventInit.convert(undefined);
- return invokeTheCallbackFunction;
+module.exports = {
+ implementation: KeyboardEventImpl
};
/***/ }),
-/***/ 17609:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 62673:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const CustomElementConstructor = __nccwpck_require__(58110);
-const ElementDefinitionOptions = __nccwpck_require__(54882);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "CustomElementRegistry";
+const EventImpl = (__nccwpck_require__(61883).implementation);
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'CustomElementRegistry'.`);
-};
+const MessageEventInit = __nccwpck_require__(75669);
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+class MessageEventImpl extends EventImpl {
+ initMessageEvent(type, bubbles, cancelable, data, origin, lastEventId, source, ports) {
+ if (this._dispatchFlag) {
+ return;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["CustomElementRegistry"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor CustomElementRegistry is not installed on the passed global object");
+ this.initEvent(type, bubbles, cancelable);
+ this.data = data;
+ this.origin = origin;
+ this.lastEventId = lastEventId;
+ this.source = source;
+ this.ports = ports;
}
-
- return Object.create(ctor.prototype);
}
+MessageEventImpl.defaultInit = MessageEventInit.convert(undefined);
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+module.exports = {
+ implementation: MessageEventImpl
};
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-exports._internalSetup = (wrapper, globalObject) => {};
+/***/ }),
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+/***/ 91684:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+"use strict";
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+const { mixin } = __nccwpck_require__(11463);
+const EventModifierMixinImpl = (__nccwpck_require__(86789)/* .implementation */ .i);
+const UIEventImpl = (__nccwpck_require__(55900).implementation);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+const MouseEventInit = __nccwpck_require__(88445);
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+class MouseEventImpl extends UIEventImpl {
+ initMouseEvent(
+ type,
+ bubbles,
+ cancelable,
+ view,
+ detail,
+ screenX,
+ screenY,
+ clientX,
+ clientY,
+ ctrlKey,
+ altKey,
+ shiftKey,
+ metaKey,
+ button,
+ relatedTarget
+ ) {
+ if (this._dispatchFlag) {
+ return;
+ }
+
+ this.initUIEvent(type, bubbles, cancelable, view, detail);
+ this.screenX = screenX;
+ this.screenY = screenY;
+ this.clientX = clientX;
+ this.clientY = clientY;
+ this.ctrlKey = ctrlKey;
+ this.altKey = altKey;
+ this.shiftKey = shiftKey;
+ this.metaKey = metaKey;
+ this.button = button;
+ this.relatedTarget = relatedTarget;
}
- return wrapper[implSymbol];
+}
+mixin(MouseEventImpl.prototype, EventModifierMixinImpl.prototype);
+MouseEventImpl.defaultInit = MouseEventInit.convert(undefined);
+
+module.exports = {
+ implementation: MouseEventImpl
};
-const exposed = new Set(["Window"]);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class CustomElementRegistry {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
+/***/ }),
- define(name, constructor) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'define' called on an object that is not a valid instance of CustomElementRegistry.");
- }
+/***/ 50265:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'define' on 'CustomElementRegistry': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CustomElementConstructor.convert(curArg, {
- context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = ElementDefinitionOptions.convert(curArg, {
- context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 3"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].define(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+"use strict";
- get(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get' called on an object that is not a valid instance of CustomElementRegistry.");
- }
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'get' on 'CustomElementRegistry': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'get' on 'CustomElementRegistry': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].get(...args);
- }
+const EventImpl = (__nccwpck_require__(61883).implementation);
- whenDefined(name) {
- try {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'whenDefined' called on an object that is not a valid instance of CustomElementRegistry."
- );
- }
+const PageTransitionEventInit = __nccwpck_require__(21782);
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'whenDefined' on 'CustomElementRegistry': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'whenDefined' on 'CustomElementRegistry': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].whenDefined(...args));
- } catch (e) {
- return Promise.reject(e);
- }
+// https://html.spec.whatwg.org/multipage/browsing-the-web.html#pagetransitionevent
+class PageTransitionEventImpl extends EventImpl {
+ initPageTransitionEvent(type, bubbles, cancelable, persisted) {
+ if (this._dispatchFlag) {
+ return;
}
- upgrade(root) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'upgrade' called on an object that is not a valid instance of CustomElementRegistry.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'upgrade' on 'CustomElementRegistry': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, {
- context: "Failed to execute 'upgrade' on 'CustomElementRegistry': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].upgrade(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(CustomElementRegistry.prototype, {
- define: { enumerable: true },
- get: { enumerable: true },
- whenDefined: { enumerable: true },
- upgrade: { enumerable: true },
- [Symbol.toStringTag]: { value: "CustomElementRegistry", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+ this.initEvent(type, bubbles, cancelable);
+ this.persisted = persisted;
}
- globalObject[ctorRegistrySymbol][interfaceName] = CustomElementRegistry;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CustomElementRegistry
- });
-};
+}
+PageTransitionEventImpl.defaultInit = PageTransitionEventInit.convert(undefined);
-const Impl = __nccwpck_require__(49495);
+exports.implementation = PageTransitionEventImpl;
/***/ }),
-/***/ 99023:
+/***/ 46633:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
+const EventImpl = (__nccwpck_require__(61883).implementation);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const PopStateEventInit = __nccwpck_require__(18089);
-const CustomEventInit = __nccwpck_require__(29264);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+class PopStateEventImpl extends EventImpl {}
+PopStateEventImpl.defaultInit = PopStateEventInit.convert(undefined);
-const interfaceName = "CustomEvent";
+exports.implementation = PopStateEventImpl;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'CustomEvent'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+/***/ }),
- const ctor = globalObject[ctorRegistrySymbol]["CustomEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor CustomEvent is not installed on the passed global object");
- }
+/***/ 38424:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const EventImpl = (__nccwpck_require__(61883).implementation);
+
+const ProgressEventInit = __nccwpck_require__(24624);
+
+class ProgressEventImpl extends EventImpl {
- return Object.create(ctor.prototype);
}
+ProgressEventImpl.defaultInit = ProgressEventInit.convert(undefined);
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+module.exports = {
+ implementation: ProgressEventImpl
};
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+/***/ }),
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+/***/ 85232:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+"use strict";
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+const EventImpl = (__nccwpck_require__(61883).implementation);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+const StorageEventInit = __nccwpck_require__(68629);
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+// https://html.spec.whatwg.org/multipage/webstorage.html#the-storageevent-interface
+class StorageEventImpl extends EventImpl {
+ initStorageEvent(type, bubbles, cancelable, key, oldValue, newValue, url, storageArea) {
+ if (this._dispatchFlag) {
+ return;
+ }
+
+ this.initEvent(type, bubbles, cancelable);
+ this.key = key;
+ this.oldValue = oldValue;
+ this.newValue = newValue;
+ this.url = url;
+ this.storageArea = storageArea;
}
- return wrapper[implSymbol];
+}
+StorageEventImpl.defaultInit = StorageEventInit.convert(undefined);
+
+module.exports = {
+ implementation: StorageEventImpl
};
-const exposed = new Set(["Window", "Worker"]);
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+/***/ }),
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate CustomEvent before Event");
- }
- class CustomEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'CustomEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'CustomEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CustomEventInit.convert(curArg, { context: "Failed to construct 'CustomEvent': parameter 2" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
+/***/ 8409:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- initCustomEvent(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'initCustomEvent' called on an object that is not a valid instance of CustomEvent.");
- }
+"use strict";
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initCustomEvent' on 'CustomEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 4"
- });
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initCustomEvent(...args);
- }
- get detail() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const UIEventImpl = (__nccwpck_require__(55900).implementation);
- if (!exports.is(esValue)) {
- throw new TypeError("'get detail' called on an object that is not a valid instance of CustomEvent.");
- }
+const TouchEventInit = __nccwpck_require__(36157);
- return esValue[implSymbol]["detail"];
- }
- }
- Object.defineProperties(CustomEvent.prototype, {
- initCustomEvent: { enumerable: true },
- detail: { enumerable: true },
- [Symbol.toStringTag]: { value: "CustomEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = CustomEvent;
+class TouchEventImpl extends UIEventImpl {
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CustomEvent
- });
-};
+}
+TouchEventImpl.defaultInit = TouchEventInit.convert(undefined);
-const Impl = __nccwpck_require__(47560);
+module.exports = {
+ implementation: TouchEventImpl
+};
/***/ }),
-/***/ 29264:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 55900:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const idlUtils = __nccwpck_require__(34908);
+const UIEventInit = __nccwpck_require__(82015);
+const EventImpl = (__nccwpck_require__(61883).implementation);
-const EventInit = __nccwpck_require__(4895);
+// Until webidl2js gains support for checking for Window, this would have to do.
+function isWindow(val) {
+ if (typeof val !== "object") {
+ return false;
+ }
+ const wrapper = idlUtils.wrapperForImpl(val);
+ if (typeof wrapper === "object") {
+ return wrapper === wrapper._globalProxy;
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+ // `val` may be either impl or wrapper currently, because webidl2js currently unwraps Window objects (and their global
+ // proxies) to their underlying EventTargetImpl during conversion, which is not what we want. But at the same time,
+ // some internal usage call this constructor with the actual global proxy.
+ return isWindow(idlUtils.implForWrapper(val));
+}
- {
- const key = "detail";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'detail' that" });
+class UIEventImpl extends EventImpl {
+ constructor(globalObject, args, privateData) {
+ const eventInitDict = args[1];
- ret[key] = value;
- } else {
- ret[key] = null;
+ // undefined check included so that we can omit the property in internal usage.
+ if (eventInitDict && eventInitDict.view !== null && eventInitDict.view !== undefined) {
+ if (!isWindow(eventInitDict.view)) {
+ throw new TypeError(`Failed to construct '${new.target.name.replace(/Impl$/, "")}': member view is not of ` +
+ "type Window.");
+ }
}
+
+ super(globalObject, args, privateData);
}
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ initUIEvent(type, bubbles, cancelable, view, detail) {
+ if (view !== null) {
+ if (!isWindow(view)) {
+ throw new TypeError(`Failed to execute 'initUIEvent' on '${this.constructor.name.replace(/Impl$/, "")}': ` +
+ "parameter 4 is not of type 'Window'.");
+ }
+ }
+
+ if (this._dispatchFlag) {
+ return;
+ }
+
+ this.initEvent(type, bubbles, cancelable);
+ this.view = view;
+ this.detail = detail;
}
+}
+UIEventImpl.defaultInit = UIEventInit.convert(undefined);
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+module.exports = {
+ implementation: UIEventImpl
};
/***/ }),
-/***/ 96374:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 96117:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+const MouseEventImpl = (__nccwpck_require__(91684).implementation);
-const DocumentType = __nccwpck_require__(53193);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const WheelEventInit = __nccwpck_require__(35117);
-const interfaceName = "DOMImplementation";
+class WheelEventImpl extends MouseEventImpl {}
+WheelEventImpl.defaultInit = WheelEventInit.convert(undefined);
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'DOMImplementation'.`);
+module.exports = {
+ implementation: WheelEventImpl
};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["DOMImplementation"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor DOMImplementation is not installed on the passed global object");
- }
- return Object.create(ctor.prototype);
-}
+/***/ }),
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+/***/ 15643:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+"use strict";
-exports._internalSetup = (wrapper, globalObject) => {};
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+const {
+ isForbidden,
+ isForbiddenResponse,
+ isPrivilegedNoCORSRequest,
+ isNoCORSSafelistedRequest,
+ isCORSWhitelisted
+} = __nccwpck_require__(74270);
+const HeaderList = __nccwpck_require__(94452);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+function assertName(name) {
+ if (!name.match(/^[!#$%&'*+\-.^`|~\w]+$/)) {
+ throw new TypeError("name is invalid");
+ }
+}
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+function assertValue(value) {
+ if (value.match(/[\0\r\n]/)) {
+ throw new TypeError("value is invalid");
}
- return wrapper;
-};
+}
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+class HeadersImpl {
+ constructor(globalObject, args) {
+ this.guard = "none";
+ this.headersList = new HeaderList();
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (args[0]) {
+ this._fill(args[0]);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ _fill(init) {
+ if (Array.isArray(init)) {
+ for (const header of init) {
+ if (header.length !== 2) {
+ throw new TypeError("init is invalid");
+ }
+ this.append(header[0], header[1]);
+ }
+ } else {
+ for (const key of Object.keys(init)) {
+ this.append(key, init[key]);
+ }
+ }
}
- return wrapper[implSymbol];
-};
-const exposed = new Set(["Window"]);
+ has(name) {
+ assertName(name);
+ return this.headersList.contains(name);
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+ get(name) {
+ assertName(name);
+ return this.headersList.get(name);
}
- class DOMImplementation {
- constructor() {
- throw new TypeError("Illegal constructor");
+
+ _removePrivilegedNoCORSHeaders() {
+ this.headersList.delete("range");
+ }
+
+ append(name, value) {
+ value = value.trim();
+ assertName(name);
+ assertValue(value);
+
+ switch (this.guard) {
+ case "immutable":
+ throw new TypeError("Headers is immutable");
+ case "request":
+ if (isForbidden(name)) {
+ return;
+ }
+ break;
+ case "request-no-cors": {
+ let temporaryValue = this.get(name);
+ if (temporaryValue === null) {
+ temporaryValue = value;
+ } else {
+ temporaryValue += `, ${value}`;
+ }
+ if (!isCORSWhitelisted(name, value)) {
+ return;
+ }
+ break;
+ }
+ case "response":
+ if (isForbiddenResponse(name)) {
+ return;
+ }
+ break;
}
- createDocumentType(qualifiedName, publicId, systemId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'createDocumentType' called on an object that is not a valid instance of DOMImplementation."
- );
+ this.headersList.append(name, value);
+ this._removePrivilegedNoCORSHeaders();
+ }
+
+ set(name, value) {
+ value = value.trim();
+ assertName(name);
+ assertValue(value);
+
+ switch (this.guard) {
+ case "immutable":
+ throw new TypeError("Headers is immutable");
+ case "request":
+ if (isForbidden(name)) {
+ return;
+ }
+ break;
+ case "request-no-cors": {
+ if (!isCORSWhitelisted(name, value)) {
+ return;
+ }
+ break;
}
+ case "response":
+ if (isForbiddenResponse(name)) {
+ return;
+ }
+ break;
+ }
+ this.headersList.set(name, value);
+ this._removePrivilegedNoCORSHeaders();
+ }
- if (arguments.length < 3) {
- throw new TypeError(
- "Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only " +
- arguments.length +
- " present."
- );
+ delete(name) {
+ assertName(name);
+
+ switch (this.guard) {
+ case "immutable":
+ throw new TypeError("Headers is immutable");
+ case "request":
+ if (isForbidden(name)) {
+ return;
+ }
+ break;
+ case "request-no-cors": {
+ if (
+ !isNoCORSSafelistedRequest(name) &&
+ !isPrivilegedNoCORSRequest(name)
+ ) {
+ return;
+ }
+ break;
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 1"
- });
- args.push(curArg);
+ case "response":
+ if (isForbiddenResponse(name)) {
+ return;
+ }
+ break;
+ }
+ this.headersList.delete(name);
+ this._removePrivilegedNoCORSHeaders();
+ }
+
+ * [Symbol.iterator]() {
+ for (const header of this.headersList.sortAndCombine()) {
+ yield header;
+ }
+ }
+}
+
+exports.implementation = HeadersImpl;
+
+
+/***/ }),
+
+/***/ 94452:
+/***/ ((module) => {
+
+"use strict";
+
+
+/**
+ * Provides some utility functions for somewhat efficiently modifying a
+ * collection of headers.
+ *
+ * Note that this class only operates on ByteStrings (which is also why we use
+ * toLowerCase internally).
+ */
+class HeaderList {
+ constructor() {
+ this.headers = new Map();
+ }
+
+ append(name, value) {
+ const existing = this.headers.get(name.toLowerCase());
+ if (existing) {
+ name = existing[0].name;
+ existing.push({ name, value });
+ } else {
+ this.headers.set(name.toLowerCase(), [{ name, value }]);
+ }
+ }
+
+ contains(name) {
+ return this.headers.has(name.toLowerCase());
+ }
+
+ get(name) {
+ name = name.toLowerCase();
+ const values = this.headers.get(name);
+ if (!values) {
+ return null;
+ }
+ return values.map(h => h.value).join(", ");
+ }
+
+ delete(name) {
+ this.headers.delete(name.toLowerCase());
+ }
+
+ set(name, value) {
+ const lowerName = name.toLowerCase();
+ this.headers.delete(lowerName);
+ this.headers.set(lowerName, [{ name, value }]);
+ }
+
+ sortAndCombine() {
+ const names = [...this.headers.keys()].sort();
+ return names.map(n => [n, this.get(n)]);
+ }
+}
+
+module.exports = HeaderList;
+
+
+/***/ }),
+
+/***/ 74270:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const MIMEType = __nccwpck_require__(59488);
+
+const PRIVILEGED_NO_CORS_REQUEST = new Set(["range"]);
+function isPrivilegedNoCORSRequest(name) {
+ return PRIVILEGED_NO_CORS_REQUEST.has(name.toLowerCase());
+}
+
+const NO_CORS_SAFELISTED_REQUEST = new Set([
+ `accept`,
+ `accept-language`,
+ `content-language`,
+ `content-type`
+]);
+function isNoCORSSafelistedRequest(name) {
+ return NO_CORS_SAFELISTED_REQUEST.has(name.toLowerCase());
+}
+
+const FORBIDDEN = new Set([
+ `accept-charset`,
+ `accept-encoding`,
+ `access-control-request-headers`,
+ `access-control-request-method`,
+ `connection`,
+ `content-length`,
+ `cookie`,
+ `cookie2`,
+ `date`,
+ `dnt`,
+ `expect`,
+ `host`,
+ `keep-alive`,
+ `origin`,
+ `referer`,
+ `te`,
+ `trailer`,
+ `transfer-encoding`,
+ `upgrade`,
+ `via`
+]);
+function isForbidden(name) {
+ name = name.toLowerCase();
+ return (
+ FORBIDDEN.has(name) || name.startsWith("proxy-") || name.startsWith("sec-")
+ );
+}
+
+const FORBIDDEN_RESPONSE = new Set(["set-cookie", "set-cookie2"]);
+function isForbiddenResponse(name) {
+ return FORBIDDEN_RESPONSE.has(name.toLowerCase());
+}
+
+const CORS_UNSAFE_BYTE = /[\x00-\x08\x0A-\x1F"():<>?@[\\\]{}\x7F]/;
+function isCORSWhitelisted(name, value) {
+ name = name.toLowerCase();
+ switch (name) {
+ case "accept":
+ if (value.match(CORS_UNSAFE_BYTE)) {
+ return false;
}
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 2"
- });
- args.push(curArg);
+ break;
+ case "accept-language":
+ case "content-language":
+ if (value.match(/[^\x30-\x39\x41-\x5A\x61-\x7A *,\-.;=]/)) {
+ return false;
}
- {
- let curArg = arguments[2];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 3"
- });
- args.push(curArg);
+ break;
+ case "content-type": {
+ if (value.match(CORS_UNSAFE_BYTE)) {
+ return false;
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createDocumentType(...args));
+ const mimeType = MIMEType.parse(value);
+ if (mimeType === null) {
+ return false;
+ }
+ if (
+ ![
+ "application/x-www-form-urlencoded",
+ "multipart/form-data",
+ "text/plain"
+ ].includes(mimeType.essence)
+ ) {
+ return false;
+ }
+ break;
}
+ default:
+ return false;
+ }
+ if (Buffer.from(value).length > 128) {
+ return false;
+ }
+ return true;
+}
- createDocument(namespace, qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createDocument' called on an object that is not a valid instance of DOMImplementation.");
- }
+module.exports = {
+ isPrivilegedNoCORSRequest,
+ isNoCORSSafelistedRequest,
+ isForbidden,
+ isForbiddenResponse,
+ isCORSWhitelisted
+};
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
+
+/***/ }),
+
+/***/ 90699:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+const Blob = __nccwpck_require__(48350);
+const { isArrayBuffer } = __nccwpck_require__(34908);
+
+function convertLineEndingsToNative(s) {
+ // jsdom always pretends to be *nix, for consistency.
+ // See also https://github.com/jsdom/jsdom/issues/2396.
+ return s.replace(/\r\n|\r|\n/g, "\n");
+}
+
+exports.implementation = class BlobImpl {
+ constructor(globalObject, args) {
+ const parts = args[0];
+ const properties = args[1];
+
+ const buffers = [];
+
+ if (parts !== undefined) {
+ for (const part of parts) {
+ let buffer;
+ if (isArrayBuffer(part)) {
+ buffer = Buffer.from(part);
+ } else if (ArrayBuffer.isView(part)) {
+ buffer = Buffer.from(part.buffer, part.byteOffset, part.byteLength);
+ } else if (Blob.isImpl(part)) {
+ buffer = part._buffer;
} else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 2",
- treatNullAsEmptyString: true
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = DocumentType.convert(curArg, {
- context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 3"
- });
+ let s = part;
+ if (properties.endings === "native") {
+ s = convertLineEndingsToNative(part);
}
- } else {
- curArg = null;
+ buffer = Buffer.from(s);
}
- args.push(curArg);
+ buffers.push(buffer);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createDocument(...args));
}
- createHTMLDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'createHTMLDocument' called on an object that is not a valid instance of DOMImplementation."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createHTMLDocument' on 'DOMImplementation': parameter 1"
- });
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createHTMLDocument(...args));
+ this._buffer = Buffer.concat(buffers);
+ this._globalObject = globalObject;
+
+ this.type = properties.type;
+ if (/[^\u0020-\u007E]/.test(this.type)) {
+ this.type = "";
+ } else {
+ this.type = this.type.toLowerCase();
}
+ }
- hasFeature() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'hasFeature' called on an object that is not a valid instance of DOMImplementation.");
- }
+ get size() {
+ return this._buffer.length;
+ }
- return esValue[implSymbol].hasFeature();
+ slice(start, end, contentType) {
+ const { size } = this;
+
+ let relativeStart, relativeEnd, relativeContentType;
+
+ if (start === undefined) {
+ relativeStart = 0;
+ } else if (start < 0) {
+ relativeStart = Math.max(size + start, 0);
+ } else {
+ relativeStart = Math.min(start, size);
}
+ if (end === undefined) {
+ relativeEnd = size;
+ } else if (end < 0) {
+ relativeEnd = Math.max(size + end, 0);
+ } else {
+ relativeEnd = Math.min(end, size);
+ }
+
+ if (contentType === undefined) {
+ relativeContentType = "";
+ } else {
+ // sanitization (lower case and invalid char check) is done in the
+ // constructor
+ relativeContentType = contentType;
+ }
+
+ const span = Math.max(relativeEnd - relativeStart, 0);
+
+ const buffer = this._buffer;
+ const slicedBuffer = buffer.slice(
+ relativeStart,
+ relativeStart + span
+ );
+
+ const blob = Blob.createImpl(this._globalObject, [[], { type: relativeContentType }], {});
+ blob._buffer = slicedBuffer;
+ return blob;
}
- Object.defineProperties(DOMImplementation.prototype, {
- createDocumentType: { enumerable: true },
- createDocument: { enumerable: true },
- createHTMLDocument: { enumerable: true },
- hasFeature: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMImplementation", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+};
+
+
+/***/ }),
+
+/***/ 66294:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const BlobImpl = (__nccwpck_require__(90699).implementation);
+
+exports.implementation = class FileImpl extends BlobImpl {
+ constructor(globalObject, [fileBits, fileName, options], privateData) {
+ super(globalObject, [fileBits, options], privateData);
+
+ this.name = fileName;
+ this.lastModified = "lastModified" in options ? options.lastModified : Date.now();
}
- globalObject[ctorRegistrySymbol][interfaceName] = DOMImplementation;
+};
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMImplementation
- });
+
+/***/ }),
+
+/***/ 87378:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const idlUtils = __nccwpck_require__(34908);
+
+exports.implementation = class FileListImpl extends Array {
+ constructor() {
+ super(0);
+ }
+ item(index) {
+ return this[index] || null;
+ }
+ get [idlUtils.supportedPropertyIndices]() {
+ return this.keys();
+ }
};
-const Impl = __nccwpck_require__(20466);
+
+/***/ }),
+
+/***/ 75394:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const whatwgEncoding = __nccwpck_require__(49967);
+const MIMEType = __nccwpck_require__(59488);
+const DOMException = __nccwpck_require__(57617);
+const EventTargetImpl = (__nccwpck_require__(18557).implementation);
+const ProgressEvent = __nccwpck_require__(34426);
+const { setupForSimpleEventAccessors } = __nccwpck_require__(50238);
+const { fireAnEvent } = __nccwpck_require__(45673);
+const { copyToArrayBufferInNewRealm } = __nccwpck_require__(69232);
+
+const READY_STATES = Object.freeze({
+ EMPTY: 0,
+ LOADING: 1,
+ DONE: 2
+});
+
+const events = ["loadstart", "progress", "load", "abort", "error", "loadend"];
+
+class FileReaderImpl extends EventTargetImpl {
+ constructor(globalObject, args, privateData) {
+ super(globalObject, args, privateData);
+
+ this.error = null;
+ this.readyState = READY_STATES.EMPTY;
+ this.result = null;
+
+ this._globalObject = globalObject;
+ this._ownerDocument = globalObject.document;
+ this._terminated = false;
+ }
+
+ readAsArrayBuffer(file) {
+ this._readFile(file, "buffer");
+ }
+ readAsBinaryString(file) {
+ this._readFile(file, "binaryString");
+ }
+ readAsDataURL(file) {
+ this._readFile(file, "dataURL");
+ }
+ readAsText(file, encoding) {
+ this._readFile(file, "text", whatwgEncoding.labelToName(encoding) || "UTF-8");
+ }
+
+ abort() {
+ if (this.readyState === READY_STATES.EMPTY || this.readyState === READY_STATES.DONE) {
+ this.result = null;
+ return;
+ }
+
+ if (this.readyState === READY_STATES.LOADING) {
+ this.readyState = READY_STATES.DONE;
+ this.result = null;
+ }
+
+ this._terminated = true;
+ this._fireProgressEvent("abort");
+ this._fireProgressEvent("loadend");
+ }
+
+ _fireProgressEvent(name, props) {
+ fireAnEvent(name, this, ProgressEvent, props);
+ }
+
+ _readFile(file, format, encoding) {
+ if (this.readyState === READY_STATES.LOADING) {
+ throw DOMException.create(this._globalObject, [
+ "The object is in an invalid state.",
+ "InvalidStateError"
+ ]);
+ }
+
+ this.readyState = READY_STATES.LOADING;
+
+ setImmediate(() => {
+ if (this._terminated) {
+ this._terminated = false;
+ return;
+ }
+
+ this._fireProgressEvent("loadstart");
+
+ let data = file._buffer;
+ if (!data) {
+ data = Buffer.alloc(0);
+ }
+ this._fireProgressEvent("progress", {
+ lengthComputable: !isNaN(file.size),
+ total: file.size,
+ loaded: data.length
+ });
+
+ setImmediate(() => {
+ if (this._terminated) {
+ this._terminated = false;
+ return;
+ }
+
+ switch (format) {
+ case "binaryString": {
+ this.result = data.toString("binary");
+ break;
+ }
+ case "dataURL": {
+ // Spec seems very unclear here; see https://github.com/w3c/FileAPI/issues/104.
+ const contentType = MIMEType.parse(file.type) || "application/octet-stream";
+ this.result = `data:${contentType};base64,${data.toString("base64")}`;
+ break;
+ }
+ case "text": {
+ this.result = whatwgEncoding.decode(data, encoding);
+ break;
+ }
+ case "buffer":
+ default: {
+ this.result = copyToArrayBufferInNewRealm(data, this._globalObject);
+ break;
+ }
+ }
+ this.readyState = READY_STATES.DONE;
+ this._fireProgressEvent("load");
+ this._fireProgressEvent("loadend");
+ });
+ });
+ }
+}
+setupForSimpleEventAccessors(FileReaderImpl.prototype, events);
+
+exports.implementation = FileReaderImpl;
/***/ }),
-/***/ 63350:
+/***/ 42169:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -67529,11 +62719,10 @@ const Impl = __nccwpck_require__(20466);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const SupportedType = __nccwpck_require__(10095);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "DOMParser";
+const interfaceName = "AbortController";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -67545,7 +62734,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'DOMParser'.`);
+ throw new TypeError(`${context} is not of type 'AbortController'.`);
};
function makeWrapper(globalObject) {
@@ -67553,9 +62742,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["DOMParser"];
+ const ctor = globalObject[ctorRegistrySymbol]["AbortController"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor DOMParser is not installed on the passed global object");
+ throw new Error("Internal error: constructor AbortController is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -67589,7 +62778,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -67605,70 +62794,61 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class DOMParser {
+ class AbortController {
constructor() {
return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- parseFromString(str, type) {
+ abort() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'parseFromString' called on an object that is not a valid instance of DOMParser.");
+ throw new TypeError("'abort' called on an object that is not a valid instance of AbortController.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'parseFromString' on 'DOMParser': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'parseFromString' on 'DOMParser': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = SupportedType.convert(curArg, {
- context: "Failed to execute 'parseFromString' on 'DOMParser': parameter 2"
- });
- args.push(curArg);
+ return esValue[implSymbol].abort();
+ }
+
+ get signal() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get signal' called on an object that is not a valid instance of AbortController.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].parseFromString(...args));
+
+ return utils.getSameObject(this, "signal", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["signal"]);
+ });
}
}
- Object.defineProperties(DOMParser.prototype, {
- parseFromString: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMParser", configurable: true }
+ Object.defineProperties(AbortController.prototype, {
+ abort: { enumerable: true },
+ signal: { enumerable: true },
+ [Symbol.toStringTag]: { value: "AbortController", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = DOMParser;
+ globalObject[ctorRegistrySymbol][interfaceName] = AbortController;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: DOMParser
+ value: AbortController
});
};
-const Impl = __nccwpck_require__(27124);
+const Impl = __nccwpck_require__(68314);
/***/ }),
-/***/ 81054:
+/***/ 58571:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -67677,12 +62857,12 @@ const Impl = __nccwpck_require__(27124);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const EventHandlerNonNull = __nccwpck_require__(23129);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const EventTarget = __nccwpck_require__(71038);
-const interfaceName = "DOMStringMap";
+const interfaceName = "AbortSignal";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -67694,7 +62874,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'DOMStringMap'.`);
+ throw new TypeError(`${context} is not of type 'AbortSignal'.`);
};
function makeWrapper(globalObject) {
@@ -67702,23 +62882,14 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["DOMStringMap"];
+ const ctor = globalObject[ctorRegistrySymbol]["AbortSignal"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor DOMStringMap is not installed on the passed global object");
+ throw new Error("Internal error: constructor AbortSignal is not installed on the passed global object");
}
return Object.create(ctor.prototype);
}
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
exports.create = (globalObject, constructorArgs, privateData) => {
const wrapper = makeWrapper(globalObject);
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
@@ -67729,7 +62900,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ EventTarget._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -67740,8 +62913,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = makeProxy(wrapper, globalObject);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -67749,8 +62920,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -67758,8 +62929,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = makeProxy(wrapper, globalObject);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -67767,238 +62936,81 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class DOMStringMap {
+
+ if (globalObject.EventTarget === undefined) {
+ throw new Error("Internal error: attempting to evaluate AbortSignal before EventTarget");
+ }
+ class AbortSignal extends globalObject.EventTarget {
constructor() {
throw new TypeError("Illegal constructor");
}
- }
- Object.defineProperties(DOMStringMap.prototype, {
- [Symbol.toStringTag]: { value: "DOMStringMap", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = DOMStringMap;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMStringMap
- });
-};
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
+ get aborted() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get aborted' called on an object that is not a valid instance of AbortSignal.");
}
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
+ return esValue[implSymbol]["aborted"];
}
- return false;
- }
- ownKeys(target) {
- const keys = new Set();
+ get onabort() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!utils.hasOwn(target, key)) {
- keys.add(`${key}`);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onabort' called on an object that is not a valid instance of AbortSignal.");
}
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- const namedValue = target[implSymbol][utils.namedGet](P);
-
- if (namedValue !== undefined && !utils.hasOwn(target, P) && !ignoreNamedProps) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
}
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
-
- if (typeof P === "string") {
- let namedValue = V;
-
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'DOMStringMap': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol][utils.namedGet](P) !== undefined);
- if (creating) {
- target[implSymbol][utils.namedSetNew](P, namedValue);
- } else {
- target[implSymbol][utils.namedSetExisting](P, namedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- return true;
- }
- }
- let ownDesc;
+ set onabort(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onabort' called on an object that is not a valid instance of AbortSignal.");
}
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (desc.get || desc.set) {
- return false;
- }
-
- let namedValue = desc.value;
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'DOMStringMap': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol][utils.namedGet](P) !== undefined);
- if (creating) {
- target[implSymbol][utils.namedSetNew](P, namedValue);
+ if (!utils.isObject(V)) {
+ V = null;
} else {
- target[implSymbol][utils.namedSetExisting](P, namedValue);
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onabort' property on 'AbortSignal': The provided value"
+ });
}
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ esValue[implSymbol]["onabort"] = V;
}
-
- return true;
}
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (target[implSymbol][utils.namedGet](P) !== undefined && !utils.hasOwn(target, P)) {
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- target[implSymbol][utils.namedDelete](P);
- return true;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- return Reflect.deleteProperty(target, P);
+ Object.defineProperties(AbortSignal.prototype, {
+ aborted: { enumerable: true },
+ onabort: { enumerable: true },
+ [Symbol.toStringTag]: { value: "AbortSignal", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = AbortSignal;
- preventExtensions() {
- return false;
- }
-}
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: AbortSignal
+ });
+};
-const Impl = __nccwpck_require__(25770);
+const Impl = __nccwpck_require__(57971);
/***/ }),
-/***/ 51252:
+/***/ 10083:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -68007,12 +63019,10 @@ const Impl = __nccwpck_require__(25770);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "DOMTokenList";
+const interfaceName = "AbstractRange";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -68024,7 +63034,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'DOMTokenList'.`);
+ throw new TypeError(`${context} is not of type 'AbstractRange'.`);
};
function makeWrapper(globalObject) {
@@ -68032,9 +63042,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["DOMTokenList"];
+ const ctor = globalObject[ctorRegistrySymbol]["AbstractRange"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor DOMTokenList is not installed on the passed global object");
+ throw new Error("Internal error: constructor AbstractRange is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -68061,8 +63071,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -68070,8 +63078,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -68079,8 +63087,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -68094,212 +63100,323 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class DOMTokenList {
+ class AbstractRange {
constructor() {
throw new TypeError("Illegal constructor");
}
- item(index) {
+ get startContainer() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get startContainer' called on an object that is not a valid instance of AbstractRange.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'item' on 'DOMTokenList': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'DOMTokenList': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].item(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["startContainer"]);
}
- contains(token) {
+ get startOffset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'contains' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get startOffset' called on an object that is not a valid instance of AbstractRange.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'contains' on 'DOMTokenList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'contains' on 'DOMTokenList': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].contains(...args);
+ return esValue[implSymbol]["startOffset"];
}
- add() {
+ get endContainer() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'add' called on an object that is not a valid instance of DOMTokenList.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'add' on 'DOMTokenList': parameter " + (i + 1)
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].add(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'get endContainer' called on an object that is not a valid instance of AbstractRange.");
}
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["endContainer"]);
}
- remove() {
+ get endOffset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'remove' called on an object that is not a valid instance of DOMTokenList.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'remove' on 'DOMTokenList': parameter " + (i + 1)
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'get endOffset' called on an object that is not a valid instance of AbstractRange.");
}
+
+ return esValue[implSymbol]["endOffset"];
}
- toggle(token) {
+ get collapsed() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toggle' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get collapsed' called on an object that is not a valid instance of AbstractRange.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'toggle' on 'DOMTokenList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toggle' on 'DOMTokenList': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'toggle' on 'DOMTokenList': parameter 2"
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].toggle(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["collapsed"];
}
+ }
+ Object.defineProperties(AbstractRange.prototype, {
+ startContainer: { enumerable: true },
+ startOffset: { enumerable: true },
+ endContainer: { enumerable: true },
+ endOffset: { enumerable: true },
+ collapsed: { enumerable: true },
+ [Symbol.toStringTag]: { value: "AbstractRange", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = AbstractRange;
- replace(token, newToken) {
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: AbstractRange
+ });
+};
+
+const Impl = __nccwpck_require__(30825);
+
+
+/***/ }),
+
+/***/ 34003:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const EventListenerOptions = __nccwpck_require__(25619);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventListenerOptions._convertInherit(obj, ret, { context });
+
+ {
+ const key = "once";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'once' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "passive";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'passive' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 28411:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "flatten";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'flatten' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 78717:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Node = __nccwpck_require__(41209);
+
+const interfaceName = "Attr";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Attr'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["Attr"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Attr is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ Node._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.Node === undefined) {
+ throw new Error("Internal error: attempting to evaluate Attr before Node");
+ }
+ class Attr extends globalObject.Node {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+
+ get namespaceURI() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'replace' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get namespaceURI' called on an object that is not a valid instance of Attr.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'replace' on 'DOMTokenList': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replace' on 'DOMTokenList': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replace' on 'DOMTokenList': parameter 2"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replace(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["namespaceURI"];
}
- supports(token) {
+ get prefix() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'supports' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get prefix' called on an object that is not a valid instance of Attr.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'supports' on 'DOMTokenList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'supports' on 'DOMTokenList': parameter 1"
- });
- args.push(curArg);
+ return esValue[implSymbol]["prefix"];
+ }
+
+ get localName() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get localName' called on an object that is not a valid instance of Attr.");
}
- return esValue[implSymbol].supports(...args);
+
+ return esValue[implSymbol]["localName"];
}
- get length() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of Attr.");
}
- return esValue[implSymbol]["length"];
+ return esValue[implSymbol]["name"];
}
get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of Attr.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -68314,12 +63431,10 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of Attr.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'DOMTokenList': The provided value"
- });
+ V = conversions["DOMString"](V, { context: "Failed to set the 'value' property on 'Attr': The provided value" });
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
@@ -68329,215 +63444,200 @@ exports.install = (globalObject, globalNames) => {
}
}
- toString() {
- const esValue = this;
+ get ownerElement() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toString' called on an object that is not a valid instance of DOMTokenList.");
+ throw new TypeError("'get ownerElement' called on an object that is not a valid instance of Attr.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ownerElement"]);
+ }
+
+ get specified() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get specified' called on an object that is not a valid instance of Attr.");
}
+
+ return esValue[implSymbol]["specified"];
}
}
- Object.defineProperties(DOMTokenList.prototype, {
- item: { enumerable: true },
- contains: { enumerable: true },
- add: { enumerable: true },
- remove: { enumerable: true },
- toggle: { enumerable: true },
- replace: { enumerable: true },
- supports: { enumerable: true },
- length: { enumerable: true },
+ Object.defineProperties(Attr.prototype, {
+ namespaceURI: { enumerable: true },
+ prefix: { enumerable: true },
+ localName: { enumerable: true },
+ name: { enumerable: true },
value: { enumerable: true },
- toString: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMTokenList", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true },
- keys: { value: Array.prototype.keys, configurable: true, enumerable: true, writable: true },
- values: { value: Array.prototype[Symbol.iterator], configurable: true, enumerable: true, writable: true },
- entries: { value: Array.prototype.entries, configurable: true, enumerable: true, writable: true },
- forEach: { value: Array.prototype.forEach, configurable: true, enumerable: true, writable: true }
+ ownerElement: { enumerable: true },
+ specified: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Attr", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = DOMTokenList;
+ globalObject[ctorRegistrySymbol][interfaceName] = Attr;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: DOMTokenList
+ value: Attr
});
};
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
+const Impl = __nccwpck_require__(34306);
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
- ownKeys(target) {
- const keys = new Set();
+/***/ }),
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+/***/ 35849:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
+"use strict";
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- }
- let ownDesc;
+const interfaceName = "BarProp";
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'BarProp'.`);
+};
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["BarProp"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor BarProp is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class BarProp {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
+
+ get visible() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get visible' called on an object that is not a valid instance of BarProp.");
}
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
+ return esValue[implSymbol]["visible"];
}
+ }
+ Object.defineProperties(BarProp.prototype, {
+ visible: { enumerable: true },
+ [Symbol.toStringTag]: { value: "BarProp", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = BarProp;
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: BarProp
+ });
+};
- return Reflect.defineProperty(target, P, desc);
- },
+const Impl = __nccwpck_require__(39949);
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
+/***/ }),
- return Reflect.deleteProperty(target, P);
- },
+/***/ 55075:
+/***/ ((__unused_webpack_module, exports) => {
- preventExtensions() {
- return false;
+"use strict";
+
+
+const enumerationValues = new Set(["blob", "arraybuffer"]);
+exports.enumerationValues = enumerationValues;
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ const string = `${value}`;
+ if (!enumerationValues.has(string)) {
+ throw new TypeError(`${context} '${string}' is not a valid enumeration value for BinaryType`);
}
+ return string;
};
-const Impl = __nccwpck_require__(26822);
-
/***/ }),
-/***/ 11795:
+/***/ 48350:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -68546,18 +63646,11 @@ const Impl = __nccwpck_require__(26822);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const ElementCreationOptions = __nccwpck_require__(41411);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const Node = __nccwpck_require__(41209);
-const NodeFilter = __nccwpck_require__(39151);
-const HTMLElement = __nccwpck_require__(8932);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
+const BlobPropertyBag = __nccwpck_require__(72334);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "Document";
+const interfaceName = "Blob";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -68569,7 +63662,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Document'.`);
+ throw new TypeError(`${context} is not of type 'Blob'.`);
};
function makeWrapper(globalObject) {
@@ -68577,9 +63670,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Document"];
+ const ctor = globalObject[ctorRegistrySymbol]["Blob"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Document is not installed on the passed global object");
+ throw new Error("Internal error: constructor Blob is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -68595,39 +63688,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-
- Object.defineProperties(
- wrapper,
- Object.getOwnPropertyDescriptors({
- get location() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get location' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["location"]);
- },
- set location(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set location' called on an object that is not a valid instance of Document.");
- }
-
- const Q = esValue["location"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'location' is not an object");
- }
- Reflect.set(Q, "href", V);
- }
- })
- );
-
- Object.defineProperties(wrapper, { location: { configurable: false } });
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -68645,7 +63706,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -68661,421 +63722,454 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.Node === undefined) {
- throw new Error("Internal error: attempting to evaluate Document before Node");
- }
- class Document extends globalObject.Node {
+ class Blob {
constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- getElementsByTagName(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByTagName' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getElementsByTagName' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagName' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
- }
-
- getElementsByTagNameNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByTagNameNS' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'getElementsByTagNameNS' on 'Document': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Document': parameter 1"
- });
+ if (curArg !== undefined) {
+ if (!utils.isObject(curArg)) {
+ throw new TypeError("Failed to construct 'Blob': parameter 1" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = curArg;
+ for (let nextItem of tmp) {
+ if (exports.is(nextItem)) {
+ nextItem = utils.implForWrapper(nextItem);
+ } else if (utils.isArrayBuffer(nextItem)) {
+ } else if (ArrayBuffer.isView(nextItem)) {
+ } else {
+ nextItem = conversions["USVString"](nextItem, {
+ context: "Failed to construct 'Blob': parameter 1" + "'s element"
+ });
+ }
+ V.push(nextItem);
+ }
+ curArg = V;
+ }
}
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Document': parameter 2"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
- }
-
- getElementsByClassName(classNames) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByClassName' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getElementsByClassName' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByClassName' on 'Document': parameter 1"
- });
+ curArg = BlobPropertyBag.convert(curArg, { context: "Failed to construct 'Blob': parameter 2" });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- createElement(localName) {
+ slice() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createElement' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'createElement' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ throw new TypeError("'slice' called on an object that is not a valid instance of Blob.");
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = ElementCreationOptions.convert(curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 2"
- });
- } else if (utils.isObject(curArg)) {
- curArg = ElementCreationOptions.convert(curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 2" + " dictionary"
- });
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 2"
- });
- }
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].createElement(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createElementNS(namespace, qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createElementNS' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'createElementNS' on 'Document': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 1"
+ curArg = conversions["long long"](curArg, {
+ context: "Failed to execute 'slice' on 'Blob': parameter 1",
+ clamp: true
});
}
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 2"
- });
+ if (curArg !== undefined) {
+ curArg = conversions["long long"](curArg, {
+ context: "Failed to execute 'slice' on 'Blob': parameter 2",
+ clamp: true
+ });
+ }
args.push(curArg);
}
{
let curArg = arguments[2];
if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = ElementCreationOptions.convert(curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 3"
- });
- } else if (utils.isObject(curArg)) {
- curArg = ElementCreationOptions.convert(curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 3" + " dictionary"
- });
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 3"
- });
- }
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'slice' on 'Blob': parameter 3" });
}
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].createElementNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol].slice(...args));
}
- createDocumentFragment() {
+ get size() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createDocumentFragment' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createDocumentFragment());
- }
- createTextNode(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createTextNode' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get size' called on an object that is not a valid instance of Blob.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'createTextNode' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createTextNode' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createTextNode(...args));
+ return esValue[implSymbol]["size"];
}
- createCDATASection(data) {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'createCDATASection' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of Blob.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'createCDATASection' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createCDATASection' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createCDATASection(...args));
+ return esValue[implSymbol]["type"];
}
+ }
+ Object.defineProperties(Blob.prototype, {
+ slice: { enumerable: true },
+ size: { enumerable: true },
+ type: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Blob", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = Blob;
- createComment(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createComment' called on an object that is not a valid instance of Document.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Blob
+ });
+};
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'createComment' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createComment' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createComment(...args));
+const Impl = __nccwpck_require__(90699);
+
+
+/***/ }),
+
+/***/ 45775:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (typeof value !== "function") {
+ throw new TypeError(context + " is not a function");
+ }
+
+ function invokeTheCallbackFunction(blob) {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
- createProcessingInstruction(target, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'createProcessingInstruction' called on an object that is not a valid instance of Document."
- );
- }
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createProcessingInstruction' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createProcessingInstruction' on 'Document': parameter 2"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createProcessingInstruction(...args));
+ blob = utils.tryWrapperForImpl(blob);
+
+ callResult = Reflect.apply(value, thisArg, [blob]);
+ }
+
+ invokeTheCallbackFunction.construct = blob => {
+ blob = utils.tryWrapperForImpl(blob);
+
+ let callResult = Reflect.construct(value, [blob]);
+ };
+
+ invokeTheCallbackFunction[utils.wrapperSymbol] = value;
+ invokeTheCallbackFunction.objectReference = value;
+
+ return invokeTheCallbackFunction;
+};
+
+
+/***/ }),
+
+/***/ 72334:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const EndingType = __nccwpck_require__(52015);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "endings";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = EndingType.convert(value, { context: context + " has member 'endings' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = "transparent";
}
+ }
- importNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'importNode' called on an object that is not a valid instance of Document.");
- }
+ {
+ const key = "type";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'type' that" });
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'importNode' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'importNode' on 'Document': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'importNode' on 'Document': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].importNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ ret[key] = value;
+ } else {
+ ret[key] = "";
}
+ }
+};
- adoptNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'adoptNode' called on an object that is not a valid instance of Document.");
- }
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'adoptNode' on 'Document': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'adoptNode' on 'Document': parameter 1" });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].adoptNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 85221:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Text = __nccwpck_require__(49374);
+
+const interfaceName = "CDATASection";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'CDATASection'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["CDATASection"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor CDATASection is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ Text._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.Text === undefined) {
+ throw new Error("Internal error: attempting to evaluate CDATASection before Text");
+ }
+ class CDATASection extends globalObject.Text {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
+ }
+ Object.defineProperties(CDATASection.prototype, {
+ [Symbol.toStringTag]: { value: "CDATASection", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = CDATASection;
- createAttribute(localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createAttribute' called on an object that is not a valid instance of Document.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: CDATASection
+ });
+};
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'createAttribute' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createAttribute' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createAttribute(...args));
+const Impl = __nccwpck_require__(68423);
+
+
+/***/ }),
+
+/***/ 30948:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const Node = __nccwpck_require__(41209);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+
+const interfaceName = "CharacterData";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'CharacterData'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["CharacterData"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor CharacterData is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ Node._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.Node === undefined) {
+ throw new Error("Internal error: attempting to evaluate CharacterData before Node");
+ }
+ class CharacterData extends globalObject.Node {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- createAttributeNS(namespace, qualifiedName) {
+ substringData(offset, count) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createAttributeNS' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'substringData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'createAttributeNS' on 'Document': 2 arguments required, but only " +
+ "Failed to execute 'substringData' on 'CharacterData': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -69083,34 +64177,30 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createAttributeNS' on 'Document': parameter 1"
- });
- }
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'substringData' on 'CharacterData': parameter 1"
+ });
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createAttributeNS' on 'Document': parameter 2"
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'substringData' on 'CharacterData': parameter 2"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createAttributeNS(...args));
+ return esValue[implSymbol].substringData(...args);
}
- createEvent(interface_) {
+ appendData(data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createEvent' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'appendData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'createEvent' on 'Document': 1 argument required, but only " +
+ "Failed to execute 'appendData' on 'CharacterData': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -69119,31 +64209,22 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createEvent' on 'Document': parameter 1"
+ context: "Failed to execute 'appendData' on 'CharacterData': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createEvent(...args));
- }
-
- createRange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createRange' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createRange());
+ return esValue[implSymbol].appendData(...args);
}
- createNodeIterator(root) {
+ insertData(offset, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createNodeIterator' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'insertData' called on an object that is not a valid instance of CharacterData.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'createNodeIterator' on 'Document': 1 argument required, but only " +
+ "Failed to execute 'insertData' on 'CharacterData': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -69151,47 +64232,30 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'createNodeIterator' on 'Document': parameter 1" });
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'insertData' on 'CharacterData': parameter 1"
+ });
args.push(curArg);
}
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'createNodeIterator' on 'Document': parameter 2"
- });
- } else {
- curArg = 0xffffffff;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = NodeFilter.convert(curArg, {
- context: "Failed to execute 'createNodeIterator' on 'Document': parameter 3"
- });
- }
- } else {
- curArg = null;
- }
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'insertData' on 'CharacterData': parameter 2"
+ });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createNodeIterator(...args));
+ return esValue[implSymbol].insertData(...args);
}
- createTreeWalker(root) {
+ deleteData(offset, count) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createTreeWalker' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'deleteData' called on an object that is not a valid instance of CharacterData.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'createTreeWalker' on 'Document': 1 argument required, but only " +
+ "Failed to execute 'deleteData' on 'CharacterData': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -69199,47 +64263,30 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'createTreeWalker' on 'Document': parameter 1" });
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'deleteData' on 'CharacterData': parameter 1"
+ });
args.push(curArg);
}
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'createTreeWalker' on 'Document': parameter 2"
- });
- } else {
- curArg = 0xffffffff;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = NodeFilter.convert(curArg, {
- context: "Failed to execute 'createTreeWalker' on 'Document': parameter 3"
- });
- }
- } else {
- curArg = null;
- }
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'deleteData' on 'CharacterData': parameter 2"
+ });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createTreeWalker(...args));
+ return esValue[implSymbol].deleteData(...args);
}
- getElementsByName(elementName) {
+ replaceData(offset, count, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByName' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'replaceData' called on an object that is not a valid instance of CharacterData.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 3) {
throw new TypeError(
- "Failed to execute 'getElementsByName' on 'Document': 1 argument required, but only " +
+ "Failed to execute 'replaceData' on 'CharacterData': 3 arguments required, but only " +
arguments.length +
" present."
);
@@ -69247,175 +64294,57 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByName' on 'Document': parameter 1"
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'replaceData' on 'CharacterData': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByName(...args));
- }
-
- open() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'open' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'open' on 'Document': parameter 1" });
- } else {
- curArg = "text/html";
- }
- args.push(curArg);
- }
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'open' on 'Document': parameter 2" });
- } else {
- curArg = "";
- }
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'replaceData' on 'CharacterData': parameter 2"
+ });
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].open(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- close() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'close' called on an object that is not a valid instance of Document.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].close();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- write() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'write' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
+ {
+ let curArg = arguments[2];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'write' on 'Document': parameter " + (i + 1)
+ context: "Failed to execute 'replaceData' on 'CharacterData': parameter 3"
});
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].write(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].replaceData(...args);
}
- writeln() {
+ before() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'writeln' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'before' called on an object that is not a valid instance of CharacterData.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'writeln' on 'Document': parameter " + (i + 1)
- });
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'before' on 'CharacterData': parameter " + (i + 1)
+ });
+ }
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].writeln(...args);
+ return esValue[implSymbol].before(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- hasFocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'hasFocus' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol].hasFocus();
- }
-
- clear() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'clear' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol].clear();
- }
-
- captureEvents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'captureEvents' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol].captureEvents();
- }
-
- releaseEvents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'releaseEvents' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol].releaseEvents();
- }
-
- getSelection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getSelection' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getSelection());
- }
-
- getElementById(elementId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getElementById' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getElementById' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementById' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
- }
-
- prepend() {
+ after() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'prepend' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'after' called on an object that is not a valid instance of CharacterData.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -69424,23 +64353,23 @@ exports.install = (globalObject, globalNames) => {
curArg = utils.implForWrapper(curArg);
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'prepend' on 'Document': parameter " + (i + 1)
+ context: "Failed to execute 'after' on 'CharacterData': parameter " + (i + 1)
});
}
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].prepend(...args);
+ return esValue[implSymbol].after(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- append() {
+ replaceWith() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'append' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'replaceWith' called on an object that is not a valid instance of CharacterData.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -69449,2396 +64378,2562 @@ exports.install = (globalObject, globalNames) => {
curArg = utils.implForWrapper(curArg);
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'append' on 'Document': parameter " + (i + 1)
+ context: "Failed to execute 'replaceWith' on 'CharacterData': parameter " + (i + 1)
});
}
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].append(...args);
+ return esValue[implSymbol].replaceWith(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- querySelector(selectors) {
+ remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'querySelector' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'remove' called on an object that is not a valid instance of CharacterData.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'querySelector' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelector' on 'Document': parameter 1"
- });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].remove();
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
}
- querySelectorAll(selectors) {
+ get data() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get data' called on an object that is not a valid instance of CharacterData.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'querySelectorAll' on 'Document': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelectorAll' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
+ return esValue[implSymbol]["data"];
}
- get implementation() {
+ set data(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get implementation' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'set data' called on an object that is not a valid instance of CharacterData.");
}
- return utils.getSameObject(this, "implementation", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["implementation"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'data' property on 'CharacterData': The provided value",
+ treatNullAsEmptyString: true
});
+
+ esValue[implSymbol]["data"] = V;
}
- get URL() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get URL' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of CharacterData.");
}
- return esValue[implSymbol]["URL"];
+ return esValue[implSymbol]["length"];
}
- get documentURI() {
+ get previousElementSibling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get documentURI' called on an object that is not a valid instance of Document.");
+ throw new TypeError(
+ "'get previousElementSibling' called on an object that is not a valid instance of CharacterData."
+ );
}
- return esValue[implSymbol]["documentURI"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
}
- get compatMode() {
+ get nextElementSibling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get compatMode' called on an object that is not a valid instance of Document.");
+ throw new TypeError(
+ "'get nextElementSibling' called on an object that is not a valid instance of CharacterData."
+ );
}
- return esValue[implSymbol]["compatMode"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
+ }
+ }
+ Object.defineProperties(CharacterData.prototype, {
+ substringData: { enumerable: true },
+ appendData: { enumerable: true },
+ insertData: { enumerable: true },
+ deleteData: { enumerable: true },
+ replaceData: { enumerable: true },
+ before: { enumerable: true },
+ after: { enumerable: true },
+ replaceWith: { enumerable: true },
+ remove: { enumerable: true },
+ data: { enumerable: true },
+ length: { enumerable: true },
+ previousElementSibling: { enumerable: true },
+ nextElementSibling: { enumerable: true },
+ [Symbol.toStringTag]: { value: "CharacterData", configurable: true },
+ [Symbol.unscopables]: {
+ value: { before: true, after: true, replaceWith: true, remove: true, __proto__: null },
+ configurable: true
}
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = CharacterData;
- get characterSet() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: CharacterData
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get characterSet' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(96727);
- return esValue[implSymbol]["characterSet"];
- }
- get charset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get charset' called on an object that is not a valid instance of Document.");
- }
+/***/ 19235:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return esValue[implSymbol]["charset"];
- }
+"use strict";
- get inputEncoding() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get inputEncoding' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return esValue[implSymbol]["inputEncoding"];
+const CloseEventInit = __nccwpck_require__(6450);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Event = __nccwpck_require__(35348);
+
+const interfaceName = "CloseEvent";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'CloseEvent'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["CloseEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor CloseEvent is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ Event._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window", "Worker"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate CloseEvent before Event");
+ }
+ class CloseEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'CloseEvent': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'CloseEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = CloseEventInit.convert(curArg, { context: "Failed to construct 'CloseEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get contentType() {
+ get wasClean() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get contentType' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get wasClean' called on an object that is not a valid instance of CloseEvent.");
}
- return esValue[implSymbol]["contentType"];
+ return esValue[implSymbol]["wasClean"];
}
- get doctype() {
+ get code() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get doctype' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get code' called on an object that is not a valid instance of CloseEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["doctype"]);
+ return esValue[implSymbol]["code"];
}
- get documentElement() {
+ get reason() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get documentElement' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get reason' called on an object that is not a valid instance of CloseEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["documentElement"]);
+ return esValue[implSymbol]["reason"];
}
+ }
+ Object.defineProperties(CloseEvent.prototype, {
+ wasClean: { enumerable: true },
+ code: { enumerable: true },
+ reason: { enumerable: true },
+ [Symbol.toStringTag]: { value: "CloseEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = CloseEvent;
- get referrer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get referrer' called on an object that is not a valid instance of Document.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: CloseEvent
+ });
+};
- return esValue[implSymbol]["referrer"];
- }
+const Impl = __nccwpck_require__(9213);
- get cookie() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get cookie' called on an object that is not a valid instance of Document.");
- }
+/***/ }),
- return esValue[implSymbol]["cookie"];
- }
+/***/ 6450:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- set cookie(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'set cookie' called on an object that is not a valid instance of Document.");
- }
- V = conversions["USVString"](V, {
- context: "Failed to set the 'cookie' property on 'Document': The provided value"
- });
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- esValue[implSymbol]["cookie"] = V;
- }
+const EventInit = __nccwpck_require__(4895);
- get lastModified() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get lastModified' called on an object that is not a valid instance of Document.");
- }
+ {
+ const key = "code";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned short"](value, { context: context + " has member 'code' that" });
- return esValue[implSymbol]["lastModified"];
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
}
+ }
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ {
+ const key = "reason";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["USVString"](value, { context: context + " has member 'reason' that" });
- if (!exports.is(esValue)) {
- throw new TypeError("'get readyState' called on an object that is not a valid instance of Document.");
- }
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["readyState"]);
+ {
+ const key = "wasClean";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'wasClean' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
}
+ }
+};
- get title() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get title' called on an object that is not a valid instance of Document.");
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["title"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set title(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'set title' called on an object that is not a valid instance of Document.");
- }
+/***/ 56625:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'title' property on 'Document': The provided value"
- });
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["title"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- get dir() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'get dir' called on an object that is not a valid instance of Document.");
- }
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const CharacterData = __nccwpck_require__(30948);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["dir"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const interfaceName = "Comment";
- set dir(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Comment'.`);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set dir' called on an object that is not a valid instance of Document.");
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dir' property on 'Document': The provided value"
- });
+ const ctor = globalObject[ctorRegistrySymbol]["Comment"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Comment is not installed on the passed global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["dir"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ return Object.create(ctor.prototype);
+}
- get body() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get body' called on an object that is not a valid instance of Document.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["body"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ CharacterData._internalSetup(wrapper, globalObject);
+};
- set body(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'set body' called on an object that is not a valid instance of Document.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLElement.convert(V, { context: "Failed to set the 'body' property on 'Document': The provided value" });
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["body"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get head() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get head' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["head"]);
- }
+const exposed = new Set(["Window"]);
- get images() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get images' called on an object that is not a valid instance of Document.");
+ if (globalObject.CharacterData === undefined) {
+ throw new Error("Internal error: attempting to evaluate Comment before CharacterData");
+ }
+ class Comment extends globalObject.CharacterData {
+ constructor() {
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'Comment': parameter 1" });
+ } else {
+ curArg = "";
+ }
+ args.push(curArg);
}
-
- return utils.getSameObject(this, "images", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["images"]);
- });
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
+ }
+ Object.defineProperties(Comment.prototype, { [Symbol.toStringTag]: { value: "Comment", configurable: true } });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = Comment;
- get embeds() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Comment
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get embeds' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(6119);
- return utils.getSameObject(this, "embeds", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["embeds"]);
- });
- }
- get plugins() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get plugins' called on an object that is not a valid instance of Document.");
- }
+/***/ 88774:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.getSameObject(this, "plugins", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["plugins"]);
- });
- }
+"use strict";
- get links() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get links' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return utils.getSameObject(this, "links", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["links"]);
- });
- }
+const CompositionEventInit = __nccwpck_require__(57053);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const UIEvent = __nccwpck_require__(58078);
- get forms() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "CompositionEvent";
- if (!exports.is(esValue)) {
- throw new TypeError("'get forms' called on an object that is not a valid instance of Document.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'CompositionEvent'.`);
+};
- return utils.getSameObject(this, "forms", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["forms"]);
- });
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- get scripts() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["CompositionEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor CompositionEvent is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get scripts' called on an object that is not a valid instance of Document.");
- }
+ return Object.create(ctor.prototype);
+}
- return utils.getSameObject(this, "scripts", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["scripts"]);
- });
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get currentScript() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get currentScript' called on an object that is not a valid instance of Document.");
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ UIEvent._internalSetup(wrapper, globalObject);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["currentScript"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- get defaultView() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get defaultView' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["defaultView"]);
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get onreadystatechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- return;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreadystatechange"]);
- }
+const exposed = new Set(["Window"]);
- set onreadystatechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!exports.is(esValue)) {
- return;
+ if (globalObject.UIEvent === undefined) {
+ throw new Error("Internal error: attempting to evaluate CompositionEvent before UIEvent");
+ }
+ class CompositionEvent extends globalObject.UIEvent {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'CompositionEvent': 1 argument required, but only " + arguments.length + " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onreadystatechange' property on 'Document': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'CompositionEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = CompositionEventInit.convert(curArg, {
+ context: "Failed to construct 'CompositionEvent': parameter 2"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onreadystatechange"] = V;
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get anchors() {
+ initCompositionEvent(typeArg) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get anchors' called on an object that is not a valid instance of Document.");
+ throw new TypeError(
+ "'initCompositionEvent' called on an object that is not a valid instance of CompositionEvent."
+ );
}
- return utils.getSameObject(this, "anchors", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["anchors"]);
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'initCompositionEvent' on 'CompositionEvent': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 3"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = utils.tryImplForWrapper(curArg);
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[4];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 5"
+ });
+ } else {
+ curArg = "";
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].initCompositionEvent(...args);
}
- get applets() {
+ get data() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get applets' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get data' called on an object that is not a valid instance of CompositionEvent.");
}
- return utils.getSameObject(this, "applets", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["applets"]);
- });
+ return esValue[implSymbol]["data"];
}
+ }
+ Object.defineProperties(CompositionEvent.prototype, {
+ initCompositionEvent: { enumerable: true },
+ data: { enumerable: true },
+ [Symbol.toStringTag]: { value: "CompositionEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = CompositionEvent;
- get styleSheets() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: CompositionEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get styleSheets' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(79607);
- return utils.getSameObject(this, "styleSheets", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["styleSheets"]);
- });
- }
- get hidden() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get hidden' called on an object that is not a valid instance of Document.");
- }
+/***/ 57053:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return esValue[implSymbol]["hidden"];
- }
+"use strict";
- get visibilityState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get visibilityState' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return utils.tryWrapperForImpl(esValue[implSymbol]["visibilityState"]);
- }
+const UIEventInit = __nccwpck_require__(82015);
- get onvisibilitychange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ UIEventInit._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onvisibilitychange' called on an object that is not a valid instance of Document.");
- }
+ {
+ const key = "data";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'data' that" });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvisibilitychange"]);
+ ret[key] = value;
+ } else {
+ ret[key] = "";
}
+ }
+};
- set onvisibilitychange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onvisibilitychange' called on an object that is not a valid instance of Document.");
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onvisibilitychange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onvisibilitychange"] = V;
- }
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get onabort' called on an object that is not a valid instance of Document.");
- }
+/***/ 58110:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
+"use strict";
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onabort' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onabort' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (typeof value !== "function") {
+ throw new TypeError(context + " is not a function");
+ }
- get onauxclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ function invokeTheCallbackFunction() {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onauxclick' called on an object that is not a valid instance of Document.");
- }
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
- }
+ callResult = Reflect.apply(value, thisArg, []);
- set onauxclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ callResult = conversions["any"](callResult, { context: context });
- if (!exports.is(esValue)) {
- throw new TypeError("'set onauxclick' called on an object that is not a valid instance of Document.");
- }
+ return callResult;
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onauxclick' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onauxclick"] = V;
- }
+ invokeTheCallbackFunction.construct = () => {
+ let callResult = Reflect.construct(value, []);
- get onblur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ callResult = conversions["any"](callResult, { context: context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onblur' called on an object that is not a valid instance of Document.");
- }
+ return callResult;
+ };
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
- }
+ invokeTheCallbackFunction[utils.wrapperSymbol] = value;
+ invokeTheCallbackFunction.objectReference = value;
- set onblur(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return invokeTheCallbackFunction;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onblur' called on an object that is not a valid instance of Document.");
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onblur' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onblur"] = V;
- }
+/***/ }),
- get oncancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 17609:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncancel' called on an object that is not a valid instance of Document.");
- }
+"use strict";
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
- }
- set oncancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncancel' called on an object that is not a valid instance of Document.");
- }
+const CustomElementConstructor = __nccwpck_require__(58110);
+const ElementDefinitionOptions = __nccwpck_require__(54882);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const Node = __nccwpck_require__(41209);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncancel' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncancel"] = V;
- }
+const interfaceName = "CustomElementRegistry";
- get oncanplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'CustomElementRegistry'.`);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncanplay' called on an object that is not a valid instance of Document.");
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
- }
+ const ctor = globalObject[ctorRegistrySymbol]["CustomElementRegistry"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor CustomElementRegistry is not installed on the passed global object");
+ }
- set oncanplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Object.create(ctor.prototype);
+}
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncanplay' called on an object that is not a valid instance of Document.");
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncanplay' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncanplay"] = V;
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- get oncanplaythrough() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._internalSetup = (wrapper, globalObject) => {};
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncanplaythrough' called on an object that is not a valid instance of Document.");
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- set oncanplaythrough(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncanplaythrough' called on an object that is not a valid instance of Document.");
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncanplaythrough' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncanplaythrough"] = V;
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- get onchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onchange' called on an object that is not a valid instance of Document.");
- }
+const exposed = new Set(["Window"]);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class CustomElementRegistry {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- set onchange(V) {
+ define(name, constructor) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onchange' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'define' called on an object that is not a valid instance of CustomElementRegistry.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onchange' property on 'Document': The provided value"
- });
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'define' on 'CustomElementRegistry': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
}
- esValue[implSymbol]["onchange"] = V;
- }
-
- get onclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onclick' called on an object that is not a valid instance of Document.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 1"
+ });
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
- }
-
- set onclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onclick' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[1];
+ curArg = CustomElementConstructor.convert(curArg, {
+ context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 2"
+ });
+ args.push(curArg);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclick' property on 'Document': The provided value"
+ {
+ let curArg = arguments[2];
+ curArg = ElementDefinitionOptions.convert(curArg, {
+ context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 3"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onclick"] = V;
- }
-
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onclose' called on an object that is not a valid instance of Document.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].define(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
}
- set onclose(V) {
+ get(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onclose' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get' called on an object that is not a valid instance of CustomElementRegistry.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclose' property on 'Document': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'get' on 'CustomElementRegistry': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'get' on 'CustomElementRegistry': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onclose"] = V;
+ return esValue[implSymbol].get(...args);
}
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ whenDefined(name) {
+ try {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'whenDefined' called on an object that is not a valid instance of CustomElementRegistry."
+ );
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncontextmenu' called on an object that is not a valid instance of Document.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'whenDefined' on 'CustomElementRegistry': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'whenDefined' on 'CustomElementRegistry': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].whenDefined(...args));
+ } catch (e) {
+ return Promise.reject(e);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
}
- set oncontextmenu(V) {
+ upgrade(root) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set oncontextmenu' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'upgrade' called on an object that is not a valid instance of CustomElementRegistry.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncontextmenu' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
-
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncuechange' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
-
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncuechange' called on an object that is not a valid instance of Document.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'upgrade' on 'CustomElementRegistry': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncuechange' property on 'Document': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, {
+ context: "Failed to execute 'upgrade' on 'CustomElementRegistry': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["oncuechange"] = V;
- }
-
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondblclick' called on an object that is not a valid instance of Document.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].upgrade(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
}
+ }
+ Object.defineProperties(CustomElementRegistry.prototype, {
+ define: { enumerable: true },
+ get: { enumerable: true },
+ whenDefined: { enumerable: true },
+ upgrade: { enumerable: true },
+ [Symbol.toStringTag]: { value: "CustomElementRegistry", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = CustomElementRegistry;
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: CustomElementRegistry
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondblclick' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(49495);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondblclick' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondrag' called on an object that is not a valid instance of Document.");
- }
+/***/ 99023:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
- }
+"use strict";
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondrag' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondrag' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondrag"] = V;
- }
+const CustomEventInit = __nccwpck_require__(29264);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Event = __nccwpck_require__(35348);
- get ondragend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "CustomEvent";
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragend' called on an object that is not a valid instance of Document.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'CustomEvent'.`);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["CustomEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor CustomEvent is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragend' called on an object that is not a valid instance of Document.");
- }
+ return Object.create(ctor.prototype);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragenter' called on an object that is not a valid instance of Document.");
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ Event._internalSetup(wrapper, globalObject);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragenter' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragenter' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragleave' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
- }
+const exposed = new Set(["Window", "Worker"]);
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragleave' called on an object that is not a valid instance of Document.");
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate CustomEvent before Event");
+ }
+ class CustomEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'CustomEvent': 1 argument required, but only " + arguments.length + " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragleave' property on 'Document': The provided value"
- });
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'CustomEvent': parameter 1" });
+ args.push(curArg);
}
- esValue[implSymbol]["ondragleave"] = V;
- }
-
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragover' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[1];
+ curArg = CustomEventInit.convert(curArg, { context: "Failed to construct 'CustomEvent': parameter 2" });
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- set ondragover(V) {
+ initCustomEvent(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set ondragover' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'initCustomEvent' called on an object that is not a valid instance of CustomEvent.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragover' property on 'Document': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'initCustomEvent' on 'CustomEvent': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["ondragover"] = V;
- }
-
- get ondragstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragstart' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
- }
-
- set ondragstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragstart' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 3"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragstart' property on 'Document': The provided value"
- });
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ curArg = conversions["any"](curArg, {
+ context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 4"
+ });
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
- esValue[implSymbol]["ondragstart"] = V;
+ return esValue[implSymbol].initCustomEvent(...args);
}
- get ondrop() {
+ get detail() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ondrop' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get detail' called on an object that is not a valid instance of CustomEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
+ return esValue[implSymbol]["detail"];
}
+ }
+ Object.defineProperties(CustomEvent.prototype, {
+ initCustomEvent: { enumerable: true },
+ detail: { enumerable: true },
+ [Symbol.toStringTag]: { value: "CustomEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = CustomEvent;
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: CustomEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondrop' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(47560);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondrop' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondurationchange' called on an object that is not a valid instance of Document.");
- }
+/***/ 29264:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
+"use strict";
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondurationchange' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondurationchange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
- }
+const EventInit = __nccwpck_require__(4895);
- get onemptied() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onemptied' called on an object that is not a valid instance of Document.");
- }
+ {
+ const key = "detail";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["any"](value, { context: context + " has member 'detail' that" });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
+ ret[key] = value;
+ } else {
+ ret[key] = null;
}
+ }
+};
- set onemptied(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onemptied' called on an object that is not a valid instance of Document.");
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onemptied' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
- }
- get onended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get onended' called on an object that is not a valid instance of Document.");
- }
+/***/ 96374:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
- }
+"use strict";
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onended' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onended' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
+const DocumentType = __nccwpck_require__(53193);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "DOMImplementation";
- if (!exports.is(esValue)) {
- throw new TypeError("'get onerror' called on an object that is not a valid instance of Document.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'DOMImplementation'.`);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["DOMImplementation"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor DOMImplementation is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onerror' called on an object that is not a valid instance of Document.");
- }
+ return Object.create(ctor.prototype);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get onfocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onfocus' called on an object that is not a valid instance of Document.");
- }
+exports._internalSetup = (wrapper, globalObject) => {};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set onfocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set onfocus' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onfocus' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onfocus"] = V;
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get oninput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get oninput' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class DOMImplementation {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- set oninput(V) {
+ createDocumentType(qualifiedName, publicId, systemId) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set oninput' called on an object that is not a valid instance of Document.");
+ throw new TypeError(
+ "'createDocumentType' called on an object that is not a valid instance of DOMImplementation."
+ );
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oninput' property on 'Document': The provided value"
- });
+ if (arguments.length < 3) {
+ throw new TypeError(
+ "Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
}
- esValue[implSymbol]["oninput"] = V;
- }
-
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get oninvalid' called on an object that is not a valid instance of Document.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 1"
+ });
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
-
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set oninvalid' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 2"
+ });
+ args.push(curArg);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oninvalid' property on 'Document': The provided value"
+ {
+ let curArg = arguments[2];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 3"
});
+ args.push(curArg);
}
- esValue[implSymbol]["oninvalid"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].createDocumentType(...args));
}
- get onkeydown() {
+ createDocument(namespace, qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeydown' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'createDocument' called on an object that is not a valid instance of DOMImplementation.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
- }
-
- set onkeydown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onkeydown' called on an object that is not a valid instance of Document.");
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeydown' property on 'Document': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 1"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 2",
+ treatNullAsEmptyString: true
});
+ args.push(curArg);
}
- esValue[implSymbol]["onkeydown"] = V;
- }
-
- get onkeypress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onkeypress' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = DocumentType.convert(curArg, {
+ context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 3"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createDocument(...args));
}
- set onkeypress(V) {
+ createHTMLDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onkeypress' called on an object that is not a valid instance of Document.");
+ throw new TypeError(
+ "'createHTMLDocument' called on an object that is not a valid instance of DOMImplementation."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeypress' property on 'Document': The provided value"
- });
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createHTMLDocument' on 'DOMImplementation': parameter 1"
+ });
+ }
+ args.push(curArg);
}
- esValue[implSymbol]["onkeypress"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].createHTMLDocument(...args));
}
- get onkeyup() {
+ hasFeature() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeyup' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'hasFeature' called on an object that is not a valid instance of DOMImplementation.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
+ return esValue[implSymbol].hasFeature();
}
+ }
+ Object.defineProperties(DOMImplementation.prototype, {
+ createDocumentType: { enumerable: true },
+ createDocument: { enumerable: true },
+ createHTMLDocument: { enumerable: true },
+ hasFeature: { enumerable: true },
+ [Symbol.toStringTag]: { value: "DOMImplementation", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = DOMImplementation;
- set onkeyup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: DOMImplementation
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onkeyup' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(20466);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeyup' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onkeyup"] = V;
- }
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get onload' called on an object that is not a valid instance of Document.");
- }
+/***/ 63350:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
+"use strict";
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onload' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onload' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
+const SupportedType = __nccwpck_require__(10095);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- get onloadeddata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "DOMParser";
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadeddata' called on an object that is not a valid instance of Document.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'DOMParser'.`);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- set onloadeddata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["DOMParser"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor DOMParser is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadeddata' called on an object that is not a valid instance of Document.");
- }
+ return Object.create(ctor.prototype);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadeddata' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onloadeddata"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get onloadedmetadata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadedmetadata' called on an object that is not a valid instance of Document.");
- }
+exports._internalSetup = (wrapper, globalObject) => {};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set onloadedmetadata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadedmetadata' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadedmetadata' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onloadedmetadata"] = V;
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get onloadend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadend' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class DOMParser {
+ constructor() {
+ return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- set onloadend(V) {
+ parseFromString(str, type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadend' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'parseFromString' called on an object that is not a valid instance of DOMParser.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadend' property on 'Document': The provided value"
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'parseFromString' on 'DOMParser': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'parseFromString' on 'DOMParser': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onloadend"] = V;
+ {
+ let curArg = arguments[1];
+ curArg = SupportedType.convert(curArg, {
+ context: "Failed to execute 'parseFromString' on 'DOMParser': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].parseFromString(...args));
}
+ }
+ Object.defineProperties(DOMParser.prototype, {
+ parseFromString: { enumerable: true },
+ [Symbol.toStringTag]: { value: "DOMParser", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = DOMParser;
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: DOMParser
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadstart' called on an object that is not a valid instance of Document.");
- }
+const Impl = __nccwpck_require__(27124);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadstart' called on an object that is not a valid instance of Document.");
- }
+/***/ 81054:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadstart' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
+"use strict";
- get onmousedown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmousedown' called on an object that is not a valid instance of Document.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
- }
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- set onmousedown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "DOMStringMap";
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmousedown' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmousedown' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmousedown"] = V;
- }
-
- get onmouseenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'DOMStringMap'.`);
+};
- if (!exports.is(esValue)) {
- return;
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
- }
+ const ctor = globalObject[ctorRegistrySymbol]["DOMStringMap"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor DOMStringMap is not installed on the passed global object");
+ }
- set onmouseenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Object.create(ctor.prototype);
+}
- if (!exports.is(esValue)) {
- return;
- }
+function makeProxy(wrapper, globalObject) {
+ let proxyHandler = proxyHandlerCache.get(globalObject);
+ if (proxyHandler === undefined) {
+ proxyHandler = new ProxyHandler(globalObject);
+ proxyHandlerCache.set(globalObject, proxyHandler);
+ }
+ return new Proxy(wrapper, proxyHandler);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseenter' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseenter"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get onmouseleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- return;
- }
+exports._internalSetup = (wrapper, globalObject) => {};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set onmouseleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- return;
- }
+ wrapper = makeProxy(wrapper, globalObject);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseleave' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseleave"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- get onmousemove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmousemove' called on an object that is not a valid instance of Document.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
- }
+ wrapper = makeProxy(wrapper, globalObject);
- set onmousemove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmousemove' called on an object that is not a valid instance of Document.");
- }
+const exposed = new Set(["Window"]);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmousemove' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmousemove"] = V;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class DOMStringMap {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
+ }
+ Object.defineProperties(DOMStringMap.prototype, {
+ [Symbol.toStringTag]: { value: "DOMStringMap", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = DOMStringMap;
- get onmouseout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: DOMStringMap
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseout' called on an object that is not a valid instance of Document.");
- }
+const proxyHandlerCache = new WeakMap();
+class ProxyHandler {
+ constructor(globalObject) {
+ this._globalObject = globalObject;
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
}
-
- set onmouseout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseout' called on an object that is not a valid instance of Document.");
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseout' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseout"] = V;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
}
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ }
- get onmouseover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ ownKeys(target) {
+ const keys = new Set();
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseover' called on an object that is not a valid instance of Document.");
+ for (const key of target[implSymbol][utils.supportedPropertyNames]) {
+ if (!utils.hasOwn(target, key)) {
+ keys.add(`${key}`);
}
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ }
- set onmouseover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseover' called on an object that is not a valid instance of Document.");
- }
+ const namedValue = target[implSymbol][utils.namedGet](P);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseover' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseover"] = V;
+ if (namedValue !== undefined && !utils.hasOwn(target, P) && !ignoreNamedProps) {
+ return {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(namedValue)
+ };
}
- get onmouseup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseup' called on an object that is not a valid instance of Document.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
}
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ const globalObject = this._globalObject;
- set onmouseup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseup' called on an object that is not a valid instance of Document.");
- }
+ if (typeof P === "string") {
+ let namedValue = V;
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseup' property on 'Document': The provided value"
+ namedValue = conversions["DOMString"](namedValue, {
+ context: "Failed to set the '" + P + "' property on 'DOMStringMap': The provided value"
});
- }
- esValue[implSymbol]["onmouseup"] = V;
- }
- get onwheel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const creating = !(target[implSymbol][utils.namedGet](P) !== undefined);
+ if (creating) {
+ target[implSymbol][utils.namedSetNew](P, namedValue);
+ } else {
+ target[implSymbol][utils.namedSetExisting](P, namedValue);
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onwheel' called on an object that is not a valid instance of Document.");
+ return true;
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
}
+ let ownDesc;
- set onwheel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onwheel' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onwheel' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwheel"] = V;
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
}
-
- get onpause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onpause' called on an object that is not a valid instance of Document.");
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- set onpause(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpause' called on an object that is not a valid instance of Document.");
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpause' property on 'Document': The provided value"
- });
+ if (!existingDesc.writable) {
+ return false;
}
- esValue[implSymbol]["onpause"] = V;
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ }
- get onplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onplay' called on an object that is not a valid instance of Document.");
- }
+ const globalObject = this._globalObject;
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
+ if (desc.get || desc.set) {
+ return false;
}
- set onplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ let namedValue = desc.value;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onplay' called on an object that is not a valid instance of Document.");
- }
+ namedValue = conversions["DOMString"](namedValue, {
+ context: "Failed to set the '" + P + "' property on 'DOMStringMap': The provided value"
+ });
- if (!utils.isObject(V)) {
- V = null;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const creating = !(target[implSymbol][utils.namedGet](P) !== undefined);
+ if (creating) {
+ target[implSymbol][utils.namedSetNew](P, namedValue);
} else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onplay' property on 'Document': The provided value"
- });
+ target[implSymbol][utils.namedSetExisting](P, namedValue);
}
- esValue[implSymbol]["onplay"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- get onplaying() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onplaying' called on an object that is not a valid instance of Document.");
- }
+ return true;
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
}
- set onplaying(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onplaying' called on an object that is not a valid instance of Document.");
- }
+ const globalObject = this._globalObject;
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onplaying' property on 'Document': The provided value"
- });
+ if (target[implSymbol][utils.namedGet](P) !== undefined && !utils.hasOwn(target, P)) {
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ target[implSymbol][utils.namedDelete](P);
+ return true;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onplaying"] = V;
}
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.deleteProperty(target, P);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onprogress' called on an object that is not a valid instance of Document.");
- }
+ preventExtensions() {
+ return false;
+ }
+}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
+const Impl = __nccwpck_require__(25770);
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onprogress' called on an object that is not a valid instance of Document.");
- }
+/***/ }),
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onprogress' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
+/***/ 51252:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get onratechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get onratechange' called on an object that is not a valid instance of Document.");
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- set onratechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onratechange' called on an object that is not a valid instance of Document.");
- }
+const interfaceName = "DOMTokenList";
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onratechange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onratechange"] = V;
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'DOMTokenList'.`);
+};
- get onreset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onreset' called on an object that is not a valid instance of Document.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["DOMTokenList"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor DOMTokenList is not installed on the passed global object");
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
- }
+ return Object.create(ctor.prototype);
+}
- set onreset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onreset' called on an object that is not a valid instance of Document.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onreset' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onreset"] = V;
- }
+exports._internalSetup = (wrapper, globalObject) => {};
- get onresize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onresize' called on an object that is not a valid instance of Document.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
- }
+ wrapper = new Proxy(wrapper, proxyHandler);
- set onresize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onresize' called on an object that is not a valid instance of Document.");
- }
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onresize' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onresize"] = V;
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- get onscroll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper = new Proxy(wrapper, proxyHandler);
- if (!exports.is(esValue)) {
- throw new TypeError("'get onscroll' called on an object that is not a valid instance of Document.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class DOMTokenList {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- set onscroll(V) {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onscroll' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'item' called on an object that is not a valid instance of DOMTokenList.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onscroll' property on 'Document': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'item' on 'DOMTokenList': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'DOMTokenList': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onscroll"] = V;
+ return esValue[implSymbol].item(...args);
}
- get onsecuritypolicyviolation() {
+ contains(token) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of Document."
- );
+ throw new TypeError("'contains' called on an object that is not a valid instance of DOMTokenList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
- }
-
- set onsecuritypolicyviolation(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
+ if (arguments.length < 1) {
throw new TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of Document."
+ "Failed to execute 'contains' on 'DOMTokenList': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'Document': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'contains' on 'DOMTokenList': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
- }
-
- get onseeked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onseeked' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
+ return esValue[implSymbol].contains(...args);
}
- set onseeked(V) {
+ add() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onseeked' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'add' called on an object that is not a valid instance of DOMTokenList.");
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onseeked' property on 'Document': The provided value"
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'add' on 'DOMTokenList': parameter " + (i + 1)
});
+ args.push(curArg);
}
- esValue[implSymbol]["onseeked"] = V;
- }
-
- get onseeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onseeking' called on an object that is not a valid instance of Document.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].add(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
}
- set onseeking(V) {
+ remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onseeking' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'remove' called on an object that is not a valid instance of DOMTokenList.");
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onseeking' property on 'Document': The provided value"
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'remove' on 'DOMTokenList': parameter " + (i + 1)
});
+ args.push(curArg);
}
- esValue[implSymbol]["onseeking"] = V;
- }
-
- get onselect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onselect' called on an object that is not a valid instance of Document.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].remove(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
}
- set onselect(V) {
+ toggle(token) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onselect' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'toggle' called on an object that is not a valid instance of DOMTokenList.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onselect' property on 'Document': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'toggle' on 'DOMTokenList': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'toggle' on 'DOMTokenList': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onselect"] = V;
- }
-
- get onstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onstalled' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'toggle' on 'DOMTokenList': parameter 2"
+ });
+ }
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].toggle(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
}
- set onstalled(V) {
+ replace(token, newToken) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onstalled' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'replace' called on an object that is not a valid instance of DOMTokenList.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onstalled' property on 'Document': The provided value"
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'replace' on 'DOMTokenList': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'replace' on 'DOMTokenList': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onstalled"] = V;
- }
-
- get onsubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onsubmit' called on an object that is not a valid instance of Document.");
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'replace' on 'DOMTokenList': parameter 2"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].replace(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
}
- set onsubmit(V) {
+ supports(token) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onsubmit' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'supports' called on an object that is not a valid instance of DOMTokenList.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsubmit' property on 'Document': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'supports' on 'DOMTokenList': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'supports' on 'DOMTokenList': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onsubmit"] = V;
+ return esValue[implSymbol].supports(...args);
}
- get onsuspend() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onsuspend' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of DOMTokenList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
+ return esValue[implSymbol]["length"];
}
- set onsuspend(V) {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onsuspend' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of DOMTokenList.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsuspend' property on 'Document': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["value"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onsuspend"] = V;
}
- get ontimeupdate() {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ontimeupdate' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of DOMTokenList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
- }
-
- set ontimeupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ontimeupdate' called on an object that is not a valid instance of Document.");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'value' property on 'DOMTokenList': The provided value"
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontimeupdate' property on 'Document': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["value"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["ontimeupdate"] = V;
}
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
+ toString() {
+ const esValue = this;
if (!exports.is(esValue)) {
- throw new TypeError("'get ontoggle' called on an object that is not a valid instance of Document.");
+ throw new TypeError("'toString' called on an object that is not a valid instance of DOMTokenList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["value"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
+ }
+ Object.defineProperties(DOMTokenList.prototype, {
+ item: { enumerable: true },
+ contains: { enumerable: true },
+ add: { enumerable: true },
+ remove: { enumerable: true },
+ toggle: { enumerable: true },
+ replace: { enumerable: true },
+ supports: { enumerable: true },
+ length: { enumerable: true },
+ value: { enumerable: true },
+ toString: { enumerable: true },
+ [Symbol.toStringTag]: { value: "DOMTokenList", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true },
+ keys: { value: Array.prototype.keys, configurable: true, enumerable: true, writable: true },
+ values: { value: Array.prototype[Symbol.iterator], configurable: true, enumerable: true, writable: true },
+ entries: { value: Array.prototype.entries, configurable: true, enumerable: true, writable: true },
+ forEach: { value: Array.prototype.forEach, configurable: true, enumerable: true, writable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = DOMTokenList;
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: DOMTokenList
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set ontoggle' called on an object that is not a valid instance of Document.");
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ },
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontoggle' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
}
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ },
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ ownKeys(target) {
+ const keys = new Set();
- if (!exports.is(esValue)) {
- throw new TypeError("'get onvolumechange' called on an object that is not a valid instance of Document.");
- }
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ },
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onvolumechange' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onvolumechange' property on 'Document': The provided value"
- });
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
- esValue[implSymbol]["onvolumechange"] = V;
+ ignoreNamedProps = true;
}
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onwaiting' called on an object that is not a valid instance of Document.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
}
-
- set onwaiting(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onwaiting' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onwaiting' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwaiting"] = V;
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
}
+ let ownDesc;
- get activeElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get activeElement' called on an object that is not a valid instance of Document.");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["activeElement"]);
}
- get children() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get children' called on an object that is not a valid instance of Document.");
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
-
- return utils.getSameObject(this, "children", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
- });
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- get firstElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get firstElementChild' called on an object that is not a valid instance of Document.");
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
+ }
+ if (!existingDesc.writable) {
+ return false;
}
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
+ }
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
}
- get lastElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get lastElementChild' called on an object that is not a valid instance of Document.");
- }
+ return Reflect.defineProperty(target, P, desc);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
}
- get childElementCount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get childElementCount' called on an object that is not a valid instance of Document.");
- }
+ return Reflect.deleteProperty(target, P);
+ },
- return esValue[implSymbol]["childElementCount"];
- }
- }
- Object.defineProperties(Document.prototype, {
- getElementsByTagName: { enumerable: true },
- getElementsByTagNameNS: { enumerable: true },
- getElementsByClassName: { enumerable: true },
- createElement: { enumerable: true },
- createElementNS: { enumerable: true },
- createDocumentFragment: { enumerable: true },
- createTextNode: { enumerable: true },
- createCDATASection: { enumerable: true },
- createComment: { enumerable: true },
- createProcessingInstruction: { enumerable: true },
- importNode: { enumerable: true },
- adoptNode: { enumerable: true },
- createAttribute: { enumerable: true },
- createAttributeNS: { enumerable: true },
- createEvent: { enumerable: true },
- createRange: { enumerable: true },
- createNodeIterator: { enumerable: true },
- createTreeWalker: { enumerable: true },
- getElementsByName: { enumerable: true },
- open: { enumerable: true },
- close: { enumerable: true },
- write: { enumerable: true },
- writeln: { enumerable: true },
- hasFocus: { enumerable: true },
- clear: { enumerable: true },
- captureEvents: { enumerable: true },
- releaseEvents: { enumerable: true },
- getSelection: { enumerable: true },
- getElementById: { enumerable: true },
- prepend: { enumerable: true },
- append: { enumerable: true },
- querySelector: { enumerable: true },
- querySelectorAll: { enumerable: true },
- implementation: { enumerable: true },
- URL: { enumerable: true },
- documentURI: { enumerable: true },
- compatMode: { enumerable: true },
- characterSet: { enumerable: true },
- charset: { enumerable: true },
- inputEncoding: { enumerable: true },
- contentType: { enumerable: true },
- doctype: { enumerable: true },
- documentElement: { enumerable: true },
- referrer: { enumerable: true },
- cookie: { enumerable: true },
- lastModified: { enumerable: true },
- readyState: { enumerable: true },
- title: { enumerable: true },
- dir: { enumerable: true },
- body: { enumerable: true },
- head: { enumerable: true },
- images: { enumerable: true },
- embeds: { enumerable: true },
- plugins: { enumerable: true },
- links: { enumerable: true },
- forms: { enumerable: true },
- scripts: { enumerable: true },
- currentScript: { enumerable: true },
- defaultView: { enumerable: true },
- onreadystatechange: { enumerable: true },
- anchors: { enumerable: true },
- applets: { enumerable: true },
- styleSheets: { enumerable: true },
- hidden: { enumerable: true },
- visibilityState: { enumerable: true },
- onvisibilitychange: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncuechange: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadend: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onwheel: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- activeElement: { enumerable: true },
- children: { enumerable: true },
- firstElementChild: { enumerable: true },
- lastElementChild: { enumerable: true },
- childElementCount: { enumerable: true },
- [Symbol.toStringTag]: { value: "Document", configurable: true },
- [Symbol.unscopables]: { value: { prepend: true, append: true, __proto__: null }, configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+ preventExtensions() {
+ return false;
}
- globalObject[ctorRegistrySymbol][interfaceName] = Document;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Document
- });
};
-const Impl = __nccwpck_require__(54581);
+const Impl = __nccwpck_require__(26822);
/***/ }),
-/***/ 11490:
+/***/ 11795:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -71847,13 +66942,18 @@ const Impl = __nccwpck_require__(54581);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const ElementCreationOptions = __nccwpck_require__(41411);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const NodeFilter = __nccwpck_require__(39151);
+const HTMLElement = __nccwpck_require__(8932);
+const EventHandlerNonNull = __nccwpck_require__(23129);
+const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "DocumentFragment";
+const interfaceName = "Document";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -71865,7 +66965,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'DocumentFragment'.`);
+ throw new TypeError(`${context} is not of type 'Document'.`);
};
function makeWrapper(globalObject) {
@@ -71873,9 +66973,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["DocumentFragment"];
+ const ctor = globalObject[ctorRegistrySymbol]["Document"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor DocumentFragment is not installed on the passed global object");
+ throw new Error("Internal error: constructor Document is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -71893,6 +66993,36 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
exports._internalSetup = (wrapper, globalObject) => {
Node._internalSetup(wrapper, globalObject);
+
+ Object.defineProperties(
+ wrapper,
+ Object.getOwnPropertyDescriptors({
+ get location() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get location' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["location"]);
+ },
+ set location(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set location' called on an object that is not a valid instance of Document.");
+ }
+
+ const Q = esValue["location"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'location' is not an object");
+ }
+ Reflect.set(Q, "href", V);
+ }
+ })
+ );
+
+ Object.defineProperties(wrapper, { location: { configurable: false } });
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -71911,7 +67041,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -71935,22 +67065,22 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.Node === undefined) {
- throw new Error("Internal error: attempting to evaluate DocumentFragment before Node");
+ throw new Error("Internal error: attempting to evaluate Document before Node");
}
- class DocumentFragment extends globalObject.Node {
+ class Document extends globalObject.Node {
constructor() {
return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- getElementById(elementId) {
+ getElementsByTagName(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getElementById' called on an object that is not a valid instance of DocumentFragment.");
+ throw new TypeError("'getElementsByTagName' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getElementById' on 'DocumentFragment': 1 argument required, but only " +
+ "Failed to execute 'getElementsByTagName' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -71959,72 +67089,57 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementById' on 'DocumentFragment': parameter 1"
+ context: "Failed to execute 'getElementsByTagName' on 'Document': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
}
- prepend() {
+ getElementsByTagNameNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'prepend' called on an object that is not a valid instance of DocumentFragment.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'prepend' on 'DocumentFragment': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].prepend(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'getElementsByTagNameNS' called on an object that is not a valid instance of Document.");
}
- }
- append() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'append' called on an object that is not a valid instance of DocumentFragment.");
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'getElementsByTagNameNS' on 'Document': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
}
const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'append' on 'DocumentFragment': parameter " + (i + 1)
+ context: "Failed to execute 'getElementsByTagNameNS' on 'Document': parameter 1"
});
}
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].append(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementsByTagNameNS' on 'Document': parameter 2"
+ });
+ args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
}
- querySelector(selectors) {
+ getElementsByClassName(classNames) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'querySelector' called on an object that is not a valid instance of DocumentFragment.");
+ throw new TypeError("'getElementsByClassName' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'querySelector' on 'DocumentFragment': 1 argument required, but only " +
+ "Failed to execute 'getElementsByClassName' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72033,22 +67148,22 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelector' on 'DocumentFragment': parameter 1"
+ context: "Failed to execute 'getElementsByClassName' on 'Document': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
}
- querySelectorAll(selectors) {
+ createElement(localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of DocumentFragment.");
+ throw new TypeError("'createElement' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'querySelectorAll' on 'DocumentFragment': 1 argument required, but only " +
+ "Failed to execute 'createElement' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72057,478 +67172,138 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelectorAll' on 'DocumentFragment': parameter 1"
+ context: "Failed to execute 'createElement' on 'Document': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
- }
-
- get children() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get children' called on an object that is not a valid instance of DocumentFragment.");
- }
-
- return utils.getSameObject(this, "children", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
- });
- }
-
- get firstElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get firstElementChild' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
- }
-
- get lastElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get lastElementChild' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
- }
-
- get childElementCount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get childElementCount' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return esValue[implSymbol]["childElementCount"];
- }
- }
- Object.defineProperties(DocumentFragment.prototype, {
- getElementById: { enumerable: true },
- prepend: { enumerable: true },
- append: { enumerable: true },
- querySelector: { enumerable: true },
- querySelectorAll: { enumerable: true },
- children: { enumerable: true },
- firstElementChild: { enumerable: true },
- lastElementChild: { enumerable: true },
- childElementCount: { enumerable: true },
- [Symbol.toStringTag]: { value: "DocumentFragment", configurable: true },
- [Symbol.unscopables]: { value: { prepend: true, append: true, __proto__: null }, configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = DocumentFragment;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DocumentFragment
- });
-};
-
-const Impl = __nccwpck_require__(69567);
-
-
-/***/ }),
-
-/***/ 53193:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DocumentType";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'DocumentType'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["DocumentType"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor DocumentType is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.Node === undefined) {
- throw new Error("Internal error: attempting to evaluate DocumentType before Node");
- }
- class DocumentType extends globalObject.Node {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- before() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'before' called on an object that is not a valid instance of DocumentType.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'before' on 'DocumentType': parameter " + (i + 1)
- });
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = ElementCreationOptions.convert(curArg, {
+ context: "Failed to execute 'createElement' on 'Document': parameter 2"
+ });
+ } else if (utils.isObject(curArg)) {
+ curArg = ElementCreationOptions.convert(curArg, {
+ context: "Failed to execute 'createElement' on 'Document': parameter 2" + " dictionary"
+ });
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createElement' on 'Document': parameter 2"
+ });
+ }
}
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].before(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createElement(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- after() {
+ createElementNS(namespace, qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'after' called on an object that is not a valid instance of DocumentType.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'after' on 'DocumentType': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].after(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'createElementNS' called on an object that is not a valid instance of Document.");
}
- }
- replaceWith() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'replaceWith' called on an object that is not a valid instance of DocumentType.");
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'createElementNS' on 'Document': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
}
const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceWith' on 'DocumentType': parameter " + (i + 1)
+ context: "Failed to execute 'createElementNS' on 'Document': parameter 1"
});
}
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceWith(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createElementNS' on 'Document': parameter 2"
+ });
+ args.push(curArg);
}
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'remove' called on an object that is not a valid instance of DocumentType.");
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = ElementCreationOptions.convert(curArg, {
+ context: "Failed to execute 'createElementNS' on 'Document': parameter 3"
+ });
+ } else if (utils.isObject(curArg)) {
+ curArg = ElementCreationOptions.convert(curArg, {
+ context: "Failed to execute 'createElementNS' on 'Document': parameter 3" + " dictionary"
+ });
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createElementNS' on 'Document': parameter 3"
+ });
+ }
+ }
+ args.push(curArg);
}
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].remove();
+ return utils.tryWrapperForImpl(esValue[implSymbol].createElementNS(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of DocumentType.");
- }
-
- return esValue[implSymbol]["name"];
- }
-
- get publicId() {
+ createDocumentFragment() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get publicId' called on an object that is not a valid instance of DocumentType.");
+ throw new TypeError("'createDocumentFragment' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["publicId"];
+ return utils.tryWrapperForImpl(esValue[implSymbol].createDocumentFragment());
}
- get systemId() {
+ createTextNode(data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get systemId' called on an object that is not a valid instance of DocumentType.");
+ throw new TypeError("'createTextNode' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["systemId"];
- }
- }
- Object.defineProperties(DocumentType.prototype, {
- before: { enumerable: true },
- after: { enumerable: true },
- replaceWith: { enumerable: true },
- remove: { enumerable: true },
- name: { enumerable: true },
- publicId: { enumerable: true },
- systemId: { enumerable: true },
- [Symbol.toStringTag]: { value: "DocumentType", configurable: true },
- [Symbol.unscopables]: {
- value: { before: true, after: true, replaceWith: true, remove: true, __proto__: null },
- configurable: true
- }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = DocumentType;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DocumentType
- });
-};
-
-const Impl = __nccwpck_require__(98560);
-
-
-/***/ }),
-
-/***/ 4444:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const Attr = __nccwpck_require__(78717);
-const ShadowRootInit = __nccwpck_require__(83671);
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Element";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Element'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["Element"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Element is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.Node === undefined) {
- throw new Error("Internal error: attempting to evaluate Element before Node");
- }
- class Element extends globalObject.Node {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- hasAttributes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'hasAttributes' called on an object that is not a valid instance of Element.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'createTextNode' on 'Document': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- return esValue[implSymbol].hasAttributes();
- }
-
- getAttributeNames() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getAttributeNames' called on an object that is not a valid instance of Element.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createTextNode' on 'Document': parameter 1"
+ });
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNames());
+ return utils.tryWrapperForImpl(esValue[implSymbol].createTextNode(...args));
}
- getAttribute(qualifiedName) {
+ createCDATASection(data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getAttribute' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createCDATASection' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getAttribute' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'createCDATASection' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72537,22 +67312,22 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttribute' on 'Element': parameter 1"
+ context: "Failed to execute 'createCDATASection' on 'Document': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].getAttribute(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createCDATASection(...args));
}
- getAttributeNS(namespace, localName) {
+ createComment(data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getAttributeNS' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createComment' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only " +
+ "Failed to execute 'createComment' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72560,34 +67335,25 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNS' on 'Element': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNS' on 'Element': parameter 2"
+ context: "Failed to execute 'createComment' on 'Document': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].getAttributeNS(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createComment(...args));
}
- setAttribute(qualifiedName, value) {
+ createProcessingInstruction(target, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setAttribute' called on an object that is not a valid instance of Element.");
+ throw new TypeError(
+ "'createProcessingInstruction' called on an object that is not a valid instance of Document."
+ );
}
if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only " +
+ "Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -72596,34 +67362,29 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttribute' on 'Element': parameter 1"
+ context: "Failed to execute 'createProcessingInstruction' on 'Document': parameter 1"
});
args.push(curArg);
}
{
let curArg = arguments[1];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttribute' on 'Element': parameter 2"
+ context: "Failed to execute 'createProcessingInstruction' on 'Document': parameter 2"
});
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].setAttribute(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol].createProcessingInstruction(...args));
}
- setAttributeNS(namespace, qualifiedName, value) {
+ importNode(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setAttributeNS' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'importNode' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 3) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only " +
+ "Failed to execute 'importNode' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72631,153 +67392,62 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttributeNS' on 'Element': parameter 1"
- });
- }
+ curArg = Node.convert(curArg, { context: "Failed to execute 'importNode' on 'Document': parameter 1" });
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttributeNS' on 'Element': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttributeNS' on 'Element': parameter 3"
- });
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'importNode' on 'Document': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].setAttributeNS(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].importNode(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- removeAttribute(qualifiedName) {
+ adoptNode(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'removeAttribute' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'adoptNode' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'removeAttribute' on 'Element': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'adoptNode' on 'Document': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeAttribute' on 'Element': parameter 1"
- });
+ curArg = Node.convert(curArg, { context: "Failed to execute 'adoptNode' on 'Document': parameter 1" });
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].removeAttribute(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].adoptNode(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- removeAttributeNS(namespace, localName) {
+ createAttribute(localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'removeAttributeNS' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createAttribute' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 2"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].removeAttributeNS(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- toggleAttribute(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'toggleAttribute' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'toggleAttribute' on 'Element': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toggleAttribute' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'toggleAttribute' on 'Element': parameter 2"
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].toggleAttribute(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- hasAttribute(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'hasAttribute' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'hasAttribute' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'createAttribute' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72786,22 +67456,22 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'hasAttribute' on 'Element': parameter 1"
+ context: "Failed to execute 'createAttribute' on 'Document': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].hasAttribute(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createAttribute(...args));
}
- hasAttributeNS(namespace, localName) {
+ createAttributeNS(namespace, qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'hasAttributeNS' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createAttributeNS' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only " +
+ "Failed to execute 'createAttributeNS' on 'Document': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -72813,7 +67483,7 @@ exports.install = (globalObject, globalNames) => {
curArg = null;
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 1"
+ context: "Failed to execute 'createAttributeNS' on 'Document': parameter 1"
});
}
args.push(curArg);
@@ -72821,22 +67491,22 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[1];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 2"
+ context: "Failed to execute 'createAttributeNS' on 'Document': parameter 2"
});
args.push(curArg);
}
- return esValue[implSymbol].hasAttributeNS(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createAttributeNS(...args));
}
- getAttributeNode(qualifiedName) {
+ createEvent(interface_) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getAttributeNode' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createEvent' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getAttributeNode' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'createEvent' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72845,57 +67515,31 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNode' on 'Element': parameter 1"
+ context: "Failed to execute 'createEvent' on 'Document': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNode(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].createEvent(...args));
}
- getAttributeNodeNS(namespace, localName) {
+ createRange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getAttributeNodeNS' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createRange' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'getAttributeNodeNS' on 'Element': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 2"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNodeNS(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].createRange());
}
- setAttributeNode(attr) {
+ createNodeIterator(root) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setAttributeNode' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createNodeIterator' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setAttributeNode' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'createNodeIterator' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72903,80 +67547,47 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Attr.convert(curArg, { context: "Failed to execute 'setAttributeNode' on 'Element': parameter 1" });
+ curArg = Node.convert(curArg, { context: "Failed to execute 'createNodeIterator' on 'Document': parameter 1" });
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- setAttributeNodeNS(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'setAttributeNodeNS' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setAttributeNodeNS' on 'Element': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- curArg = Attr.convert(curArg, { context: "Failed to execute 'setAttributeNodeNS' on 'Element': parameter 1" });
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'createNodeIterator' on 'Document': parameter 2"
+ });
+ } else {
+ curArg = 0xffffffff;
+ }
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNodeNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeAttributeNode(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'removeAttributeNode' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'removeAttributeNode' on 'Element': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- curArg = Attr.convert(curArg, { context: "Failed to execute 'removeAttributeNode' on 'Element': parameter 1" });
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = NodeFilter.convert(curArg, {
+ context: "Failed to execute 'createNodeIterator' on 'Document': parameter 3"
+ });
+ }
+ } else {
+ curArg = null;
+ }
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeAttributeNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol].createNodeIterator(...args));
}
- attachShadow(init) {
+ createTreeWalker(root) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'attachShadow' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'createTreeWalker' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'attachShadow' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'createTreeWalker' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -72984,87 +67595,47 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = ShadowRootInit.convert(curArg, {
- context: "Failed to execute 'attachShadow' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].attachShadow(...args));
- }
-
- closest(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'closest' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'closest' on 'Element': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'closest' on 'Element': parameter 1" });
+ curArg = Node.convert(curArg, { context: "Failed to execute 'createTreeWalker' on 'Document': parameter 1" });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].closest(...args));
- }
-
- matches(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'matches' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'matches' on 'Element': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'matches' on 'Element': parameter 1" });
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'createTreeWalker' on 'Document': parameter 2"
+ });
+ } else {
+ curArg = 0xffffffff;
+ }
args.push(curArg);
}
- return esValue[implSymbol].matches(...args);
- }
-
- webkitMatchesSelector(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'webkitMatchesSelector' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'webkitMatchesSelector' on 'Element': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'webkitMatchesSelector' on 'Element': parameter 1"
- });
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = NodeFilter.convert(curArg, {
+ context: "Failed to execute 'createTreeWalker' on 'Document': parameter 3"
+ });
+ }
+ } else {
+ curArg = null;
+ }
args.push(curArg);
}
- return esValue[implSymbol].webkitMatchesSelector(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].createTreeWalker(...args));
}
- getElementsByTagName(qualifiedName) {
+ getElementsByName(elementName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByTagName' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'getElementsByName' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getElementsByTagName' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'getElementsByName' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -73073,286 +67644,174 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagName' on 'Element': parameter 1"
+ context: "Failed to execute 'getElementsByName' on 'Document': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByName(...args));
}
- getElementsByTagNameNS(namespace, localName) {
+ open() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByTagNameNS' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
+ throw new TypeError("'open' called on an object that is not a valid instance of Document.");
}
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'open' on 'Document': parameter 1" });
} else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 1"
- });
+ curArg = "text/html";
}
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 2"
- });
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'open' on 'Document': parameter 2" });
+ } else {
+ curArg = "";
+ }
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
- }
-
- getElementsByClassName(classNames) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getElementsByClassName' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getElementsByClassName' on 'Element': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByClassName' on 'Element': parameter 1"
- });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].open(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
}
- insertAdjacentElement(where, element) {
+ close() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'insertAdjacentElement' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'close' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'insertAdjacentElement' on 'Element': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = exports.convert(curArg, {
- context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 2"
- });
- args.push(curArg);
- }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return utils.tryWrapperForImpl(esValue[implSymbol].insertAdjacentElement(...args));
+ return esValue[implSymbol].close();
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- insertAdjacentText(where, data) {
+ write() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'insertAdjacentText' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'insertAdjacentText' on 'Element': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
+ throw new TypeError("'write' called on an object that is not a valid instance of Document.");
}
const args = [];
- {
- let curArg = arguments[0];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 1"
+ context: "Failed to execute 'write' on 'Document': parameter " + (i + 1)
});
args.push(curArg);
}
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 2"
- });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].write(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].insertAdjacentText(...args);
}
- insertAdjacentHTML(position, text) {
+ writeln() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'insertAdjacentHTML' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'insertAdjacentHTML' on 'Element': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
+ throw new TypeError("'writeln' called on an object that is not a valid instance of Document.");
}
const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 2"
+ context: "Failed to execute 'writeln' on 'Document': parameter " + (i + 1)
});
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].insertAdjacentHTML(...args);
+ return esValue[implSymbol].writeln(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- getClientRects() {
+ hasFocus() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getClientRects' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'hasFocus' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getClientRects());
+ return esValue[implSymbol].hasFocus();
}
- getBoundingClientRect() {
+ clear() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getBoundingClientRect' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'clear' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getBoundingClientRect());
+ return esValue[implSymbol].clear();
}
- before() {
+ captureEvents() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'before' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'before' on 'Element': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].before(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'captureEvents' called on an object that is not a valid instance of Document.");
}
+
+ return esValue[implSymbol].captureEvents();
}
- after() {
+ releaseEvents() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'after' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'after' on 'Element': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].after(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'releaseEvents' called on an object that is not a valid instance of Document.");
}
+
+ return esValue[implSymbol].releaseEvents();
}
- replaceWith() {
+ getSelection() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'replaceWith' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceWith' on 'Element': parameter " + (i + 1)
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceWith(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'getSelection' called on an object that is not a valid instance of Document.");
}
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].getSelection());
}
- remove() {
+ getElementById(elementId) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'remove' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'getElementById' called on an object that is not a valid instance of Document.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getElementById' on 'Document': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementById' on 'Document': parameter 1"
+ });
+ args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
}
prepend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'prepend' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'prepend' called on an object that is not a valid instance of Document.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -73361,7 +67820,7 @@ exports.install = (globalObject, globalNames) => {
curArg = utils.implForWrapper(curArg);
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'prepend' on 'Element': parameter " + (i + 1)
+ context: "Failed to execute 'prepend' on 'Document': parameter " + (i + 1)
});
}
args.push(curArg);
@@ -73377,7 +67836,7 @@ exports.install = (globalObject, globalNames) => {
append() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'append' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'append' called on an object that is not a valid instance of Document.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -73386,7 +67845,7 @@ exports.install = (globalObject, globalNames) => {
curArg = utils.implForWrapper(curArg);
} else {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'append' on 'Element': parameter " + (i + 1)
+ context: "Failed to execute 'append' on 'Document': parameter " + (i + 1)
});
}
args.push(curArg);
@@ -73402,12 +67861,12 @@ exports.install = (globalObject, globalNames) => {
querySelector(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'querySelector' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'querySelector' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'querySelector' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'querySelector' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -73416,7 +67875,7 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelector' on 'Element': parameter 1"
+ context: "Failed to execute 'querySelector' on 'Document': parameter 1"
});
args.push(curArg);
}
@@ -73426,12 +67885,12 @@ exports.install = (globalObject, globalNames) => {
querySelectorAll(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of Document.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'querySelectorAll' on 'Element': 1 argument required, but only " +
+ "Failed to execute 'querySelectorAll' on 'Document': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -73440,2101 +67899,2342 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelectorAll' on 'Element': parameter 1"
+ context: "Failed to execute 'querySelectorAll' on 'Document': parameter 1"
});
args.push(curArg);
}
return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
}
- get namespaceURI() {
+ get implementation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get namespaceURI' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get implementation' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["namespaceURI"];
+ return utils.getSameObject(this, "implementation", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["implementation"]);
+ });
}
- get prefix() {
+ get URL() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get prefix' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get URL' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["prefix"];
+ return esValue[implSymbol]["URL"];
}
- get localName() {
+ get documentURI() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get localName' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get documentURI' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["localName"];
+ return esValue[implSymbol]["documentURI"];
}
- get tagName() {
+ get compatMode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get tagName' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get compatMode' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["tagName"];
+ return esValue[implSymbol]["compatMode"];
}
- get id() {
+ get characterSet() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get id' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get characterSet' called on an object that is not a valid instance of Document.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "id");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return esValue[implSymbol]["characterSet"];
+ }
+
+ get charset() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get charset' called on an object that is not a valid instance of Document.");
}
+
+ return esValue[implSymbol]["charset"];
}
- set id(V) {
+ get inputEncoding() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set id' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get inputEncoding' called on an object that is not a valid instance of Document.");
}
- V = conversions["DOMString"](V, { context: "Failed to set the 'id' property on 'Element': The provided value" });
+ return esValue[implSymbol]["inputEncoding"];
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "id", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ get contentType() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get contentType' called on an object that is not a valid instance of Document.");
}
+
+ return esValue[implSymbol]["contentType"];
}
- get className() {
+ get doctype() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get className' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get doctype' called on an object that is not a valid instance of Document.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "class");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["doctype"]);
+ }
+
+ get documentElement() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get documentElement' called on an object that is not a valid instance of Document.");
}
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["documentElement"]);
}
- set className(V) {
+ get referrer() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set className' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get referrer' called on an object that is not a valid instance of Document.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'className' property on 'Element': The provided value"
- });
+ return esValue[implSymbol]["referrer"];
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "class", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ get cookie() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get cookie' called on an object that is not a valid instance of Document.");
}
+
+ return esValue[implSymbol]["cookie"];
}
- get classList() {
+ set cookie(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get classList' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set cookie' called on an object that is not a valid instance of Document.");
}
- return utils.getSameObject(this, "classList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["classList"]);
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'cookie' property on 'Document': The provided value"
});
+
+ esValue[implSymbol]["cookie"] = V;
}
- set classList(V) {
+ get lastModified() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set classList' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get lastModified' called on an object that is not a valid instance of Document.");
}
- const Q = esValue["classList"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'classList' is not an object");
+ return esValue[implSymbol]["lastModified"];
+ }
+
+ get readyState() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get readyState' called on an object that is not a valid instance of Document.");
}
- Reflect.set(Q, "value", V);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["readyState"]);
}
- get slot() {
+ get title() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get slot' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get title' called on an object that is not a valid instance of Document.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "slot");
- return value === null ? "" : value;
+ return esValue[implSymbol]["title"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set slot(V) {
+ set title(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set slot' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set title' called on an object that is not a valid instance of Document.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'slot' property on 'Element': The provided value"
+ context: "Failed to set the 'title' property on 'Document': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "slot", V);
+ esValue[implSymbol]["title"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get attributes() {
+ get dir() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get attributes' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get dir' called on an object that is not a valid instance of Document.");
}
- return utils.getSameObject(this, "attributes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["attributes"]);
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["dir"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get shadowRoot() {
+ set dir(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get shadowRoot' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set dir' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'dir' property on 'Document': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["dir"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get outerHTML() {
+ get body() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get outerHTML' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get body' called on an object that is not a valid instance of Document.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["outerHTML"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["body"]);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set outerHTML(V) {
+ set body(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set outerHTML' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set body' called on an object that is not a valid instance of Document.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'outerHTML' property on 'Element': The provided value",
- treatNullAsEmptyString: true
- });
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = HTMLElement.convert(V, { context: "Failed to set the 'body' property on 'Document': The provided value" });
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["outerHTML"] = V;
+ esValue[implSymbol]["body"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get scrollTop() {
+ get head() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scrollTop' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get head' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["scrollTop"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["head"]);
}
- set scrollTop(V) {
+ get images() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set scrollTop' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get images' called on an object that is not a valid instance of Document.");
}
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'scrollTop' property on 'Element': The provided value"
+ return utils.getSameObject(this, "images", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["images"]);
});
-
- esValue[implSymbol]["scrollTop"] = V;
}
- get scrollLeft() {
+ get embeds() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scrollLeft' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get embeds' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["scrollLeft"];
+ return utils.getSameObject(this, "embeds", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["embeds"]);
+ });
}
- set scrollLeft(V) {
+ get plugins() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set scrollLeft' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get plugins' called on an object that is not a valid instance of Document.");
}
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'scrollLeft' property on 'Element': The provided value"
+ return utils.getSameObject(this, "plugins", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["plugins"]);
});
+ }
- esValue[implSymbol]["scrollLeft"] = V;
+ get links() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get links' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.getSameObject(this, "links", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["links"]);
+ });
}
- get scrollWidth() {
+ get forms() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scrollWidth' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get forms' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["scrollWidth"];
+ return utils.getSameObject(this, "forms", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["forms"]);
+ });
}
- get scrollHeight() {
+ get scripts() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scrollHeight' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get scripts' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["scrollHeight"];
+ return utils.getSameObject(this, "scripts", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["scripts"]);
+ });
}
- get clientTop() {
+ get currentScript() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get clientTop' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get currentScript' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["clientTop"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["currentScript"]);
}
- get clientLeft() {
+ get defaultView() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get clientLeft' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get defaultView' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["clientLeft"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["defaultView"]);
}
- get clientWidth() {
+ get onreadystatechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get clientWidth' called on an object that is not a valid instance of Element.");
+ return;
}
- return esValue[implSymbol]["clientWidth"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onreadystatechange"]);
}
- get clientHeight() {
+ set onreadystatechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get clientHeight' called on an object that is not a valid instance of Element.");
+ return;
}
- return esValue[implSymbol]["clientHeight"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onreadystatechange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onreadystatechange"] = V;
}
- get innerHTML() {
+ get anchors() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get innerHTML' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get anchors' called on an object that is not a valid instance of Document.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["innerHTML"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return utils.getSameObject(this, "anchors", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["anchors"]);
+ });
+ }
+
+ get applets() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get applets' called on an object that is not a valid instance of Document.");
}
+
+ return utils.getSameObject(this, "applets", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["applets"]);
+ });
}
- set innerHTML(V) {
+ get styleSheets() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set innerHTML' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get styleSheets' called on an object that is not a valid instance of Document.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
- treatNullAsEmptyString: true
+ return utils.getSameObject(this, "styleSheets", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["styleSheets"]);
});
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["innerHTML"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ get hidden() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get hidden' called on an object that is not a valid instance of Document.");
}
+
+ return esValue[implSymbol]["hidden"];
}
- get previousElementSibling() {
+ get visibilityState() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get previousElementSibling' called on an object that is not a valid instance of Element."
- );
+ throw new TypeError("'get visibilityState' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["visibilityState"]);
}
- get nextElementSibling() {
+ get onvisibilitychange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get nextElementSibling' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get onvisibilitychange' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onvisibilitychange"]);
}
- get children() {
+ set onvisibilitychange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get children' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set onvisibilitychange' called on an object that is not a valid instance of Document.");
}
- return utils.getSameObject(this, "children", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
- });
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onvisibilitychange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onvisibilitychange"] = V;
}
- get firstElementChild() {
+ get onabort() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get firstElementChild' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get onabort' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
}
- get lastElementChild() {
+ set onabort(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get lastElementChild' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set onabort' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onabort' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onabort"] = V;
}
- get childElementCount() {
+ get onauxclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get childElementCount' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'get onauxclick' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["childElementCount"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
}
- get assignedSlot() {
+ set onauxclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get assignedSlot' called on an object that is not a valid instance of Element.");
+ throw new TypeError("'set onauxclick' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onauxclick' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onauxclick"] = V;
}
- }
- Object.defineProperties(Element.prototype, {
- hasAttributes: { enumerable: true },
- getAttributeNames: { enumerable: true },
- getAttribute: { enumerable: true },
- getAttributeNS: { enumerable: true },
- setAttribute: { enumerable: true },
- setAttributeNS: { enumerable: true },
- removeAttribute: { enumerable: true },
- removeAttributeNS: { enumerable: true },
- toggleAttribute: { enumerable: true },
- hasAttribute: { enumerable: true },
- hasAttributeNS: { enumerable: true },
- getAttributeNode: { enumerable: true },
- getAttributeNodeNS: { enumerable: true },
- setAttributeNode: { enumerable: true },
- setAttributeNodeNS: { enumerable: true },
- removeAttributeNode: { enumerable: true },
- attachShadow: { enumerable: true },
- closest: { enumerable: true },
- matches: { enumerable: true },
- webkitMatchesSelector: { enumerable: true },
- getElementsByTagName: { enumerable: true },
- getElementsByTagNameNS: { enumerable: true },
- getElementsByClassName: { enumerable: true },
- insertAdjacentElement: { enumerable: true },
- insertAdjacentText: { enumerable: true },
- insertAdjacentHTML: { enumerable: true },
- getClientRects: { enumerable: true },
- getBoundingClientRect: { enumerable: true },
- before: { enumerable: true },
- after: { enumerable: true },
- replaceWith: { enumerable: true },
- remove: { enumerable: true },
- prepend: { enumerable: true },
- append: { enumerable: true },
- querySelector: { enumerable: true },
- querySelectorAll: { enumerable: true },
- namespaceURI: { enumerable: true },
- prefix: { enumerable: true },
- localName: { enumerable: true },
- tagName: { enumerable: true },
- id: { enumerable: true },
- className: { enumerable: true },
- classList: { enumerable: true },
- slot: { enumerable: true },
- attributes: { enumerable: true },
- shadowRoot: { enumerable: true },
- outerHTML: { enumerable: true },
- scrollTop: { enumerable: true },
- scrollLeft: { enumerable: true },
- scrollWidth: { enumerable: true },
- scrollHeight: { enumerable: true },
- clientTop: { enumerable: true },
- clientLeft: { enumerable: true },
- clientWidth: { enumerable: true },
- clientHeight: { enumerable: true },
- innerHTML: { enumerable: true },
- previousElementSibling: { enumerable: true },
- nextElementSibling: { enumerable: true },
- children: { enumerable: true },
- firstElementChild: { enumerable: true },
- lastElementChild: { enumerable: true },
- childElementCount: { enumerable: true },
- assignedSlot: { enumerable: true },
- [Symbol.toStringTag]: { value: "Element", configurable: true },
- [Symbol.unscopables]: {
- value: {
- slot: true,
- before: true,
- after: true,
- replaceWith: true,
- remove: true,
- prepend: true,
- append: true,
- __proto__: null
- },
- configurable: true
- }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = Element;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Element
- });
-};
-const Impl = __nccwpck_require__(5121);
+ get onblur() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onblur' called on an object that is not a valid instance of Document.");
+ }
-/***/ }),
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
+ }
-/***/ 41411:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ set onblur(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onblur' called on an object that is not a valid instance of Document.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onblur' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onblur"] = V;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get oncancel() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "is";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'is' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncancel' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
}
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ set oncancel(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oncancel' called on an object that is not a valid instance of Document.");
+ }
-/***/ }),
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncancel' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncancel"] = V;
+ }
-/***/ 54882:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ get oncanplay() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncanplay' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ set oncanplay(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "extends";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'extends' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oncanplay' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncanplay' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncanplay"] = V;
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ get oncanplaythrough() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncanplaythrough' called on an object that is not a valid instance of Document.");
+ }
-/***/ }),
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
+ }
-/***/ 52015:
-/***/ ((__unused_webpack_module, exports) => {
+ set oncanplaythrough(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oncanplaythrough' called on an object that is not a valid instance of Document.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncanplaythrough' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncanplaythrough"] = V;
+ }
-const enumerationValues = new Set(["transparent", "native"]);
-exports.enumerationValues = enumerationValues;
+ get onchange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for EndingType`);
- }
- return string;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onchange' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
+ }
-/***/ }),
+ set onchange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 65153:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onchange' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onchange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onchange"] = V;
+ }
+ get onclick() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onclick' called on an object that is not a valid instance of Document.");
+ }
-const ErrorEventInit = __nccwpck_require__(72886);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
+ }
-const interfaceName = "ErrorEvent";
+ set onclick(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'ErrorEvent'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onclick' called on an object that is not a valid instance of Document.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onclick' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onclick"] = V;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["ErrorEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor ErrorEvent is not installed on the passed global object");
- }
+ get onclose() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onclose' called on an object that is not a valid instance of Document.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set onclose(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onclose' called on an object that is not a valid instance of Document.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onclose' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onclose"] = V;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ get oncontextmenu() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncontextmenu' called on an object that is not a valid instance of Document.");
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ set oncontextmenu(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oncontextmenu' called on an object that is not a valid instance of Document.");
+ }
-const exposed = new Set(["Window", "Worker"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncontextmenu' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncontextmenu"] = V;
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ get oncuechange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate ErrorEvent before Event");
- }
- class ErrorEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'ErrorEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'ErrorEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = ErrorEventInit.convert(curArg, { context: "Failed to construct 'ErrorEvent': parameter 2" });
- args.push(curArg);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncuechange' called on an object that is not a valid instance of Document.");
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
}
- get message() {
+ set oncuechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get message' called on an object that is not a valid instance of ErrorEvent.");
+ throw new TypeError("'set oncuechange' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["message"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncuechange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncuechange"] = V;
}
- get filename() {
+ get ondblclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get filename' called on an object that is not a valid instance of ErrorEvent.");
+ throw new TypeError("'get ondblclick' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["filename"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
}
- get lineno() {
+ set ondblclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get lineno' called on an object that is not a valid instance of ErrorEvent.");
+ throw new TypeError("'set ondblclick' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["lineno"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondblclick' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondblclick"] = V;
}
- get colno() {
+ get ondrag() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get colno' called on an object that is not a valid instance of ErrorEvent.");
+ throw new TypeError("'get ondrag' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["colno"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
}
- get error() {
+ set ondrag(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get error' called on an object that is not a valid instance of ErrorEvent.");
+ throw new TypeError("'set ondrag' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["error"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondrag' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondrag"] = V;
}
- }
- Object.defineProperties(ErrorEvent.prototype, {
- message: { enumerable: true },
- filename: { enumerable: true },
- lineno: { enumerable: true },
- colno: { enumerable: true },
- error: { enumerable: true },
- [Symbol.toStringTag]: { value: "ErrorEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = ErrorEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ErrorEvent
- });
-};
+ get ondragend() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(21385);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragend' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
+ }
-/***/ }),
+ set ondragend(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 72886:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragend' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragend' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragend"] = V;
+ }
+ get ondragenter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragenter' called on an object that is not a valid instance of Document.");
+ }
-const EventInit = __nccwpck_require__(4895);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+ set ondragenter(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "colno";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'colno' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragenter' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = 0;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragenter' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragenter"] = V;
}
- }
- {
- const key = "error";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'error' that" });
+ get ondragleave() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = null;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragleave' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
}
- }
- {
- const key = "filename";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'filename' that" });
+ set ondragleave(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = "";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragleave' called on an object that is not a valid instance of Document.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragleave' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragleave"] = V;
}
- }
- {
- const key = "lineno";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'lineno' that" });
+ get ondragover() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = 0;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragover' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
}
- }
- {
- const key = "message";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'message' that" });
+ set ondragover(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = "";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragover' called on an object that is not a valid instance of Document.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragover' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragover"] = V;
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ get ondragstart() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragstart' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
+ }
-/***/ }),
+ set ondragstart(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 35348:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragstart' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragstart' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragstart"] = V;
+ }
+ get ondrop() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondrop' called on an object that is not a valid instance of Document.");
+ }
-const EventInit = __nccwpck_require__(4895);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
+ }
-const interfaceName = "Event";
+ set ondrop(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Event'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondrop' called on an object that is not a valid instance of Document.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondrop' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondrop"] = V;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["Event"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Event is not installed on the passed global object");
- }
+ get ondurationchange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondurationchange' called on an object that is not a valid instance of Document.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set ondurationchange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- Object.defineProperties(
- wrapper,
- Object.getOwnPropertyDescriptors({
- get isTrusted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondurationchange' called on an object that is not a valid instance of Document.");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get isTrusted' called on an object that is not a valid instance of Event.");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondurationchange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondurationchange"] = V;
+ }
- return esValue[implSymbol]["isTrusted"];
+ get onemptied() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onemptied' called on an object that is not a valid instance of Document.");
}
- })
- );
- Object.defineProperties(wrapper, { isTrusted: { configurable: false } });
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ set onemptied(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onemptied' called on an object that is not a valid instance of Document.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onemptied' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onemptied"] = V;
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ get onended() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onended' called on an object that is not a valid instance of Document.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
+ }
-const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
+ set onended(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'Event': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'Event': parameter 1" });
- args.push(curArg);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onended' called on an object that is not a valid instance of Document.");
}
- {
- let curArg = arguments[1];
- curArg = EventInit.convert(curArg, { context: "Failed to construct 'Event': parameter 2" });
- args.push(curArg);
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onended' property on 'Document': The provided value"
+ });
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ esValue[implSymbol]["onended"] = V;
}
- composedPath() {
+ get onerror() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'composedPath' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onerror' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].composedPath());
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
}
- stopPropagation() {
+ set onerror(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'stopPropagation' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onerror' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol].stopPropagation();
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnErrorEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onerror' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onerror"] = V;
}
- stopImmediatePropagation() {
+ get onfocus() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'stopImmediatePropagation' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onfocus' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol].stopImmediatePropagation();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
}
- preventDefault() {
+ set onfocus(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'preventDefault' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onfocus' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol].preventDefault();
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onfocus' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onfocus"] = V;
}
- initEvent(type) {
+ get oninput() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'initEvent' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get oninput' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initEvent' on 'Event': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'initEvent' on 'Event': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, { context: "Failed to execute 'initEvent' on 'Event': parameter 2" });
- } else {
- curArg = false;
- }
- args.push(curArg);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
+ }
+
+ set oninput(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oninput' called on an object that is not a valid instance of Document.");
}
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, { context: "Failed to execute 'initEvent' on 'Event': parameter 3" });
- } else {
- curArg = false;
- }
- args.push(curArg);
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oninput' property on 'Document': The provided value"
+ });
}
- return esValue[implSymbol].initEvent(...args);
+ esValue[implSymbol]["oninput"] = V;
}
- get type() {
+ get oninvalid() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get oninvalid' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["type"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
}
- get target() {
+ set oninvalid(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set oninvalid' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oninvalid' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["oninvalid"] = V;
}
- get srcElement() {
+ get onkeydown() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get srcElement' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onkeydown' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["srcElement"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
}
- get currentTarget() {
+ set onkeydown(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get currentTarget' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onkeydown' called on an object that is not a valid instance of Document.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["currentTarget"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeydown' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeydown"] = V;
}
- get eventPhase() {
+ get onkeypress() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get eventPhase' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onkeypress' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["eventPhase"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
}
- get cancelBubble() {
+ set onkeypress(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cancelBubble' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onkeypress' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["cancelBubble"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeypress' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeypress"] = V;
}
- set cancelBubble(V) {
+ get onkeyup() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cancelBubble' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onkeyup' called on an object that is not a valid instance of Document.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'cancelBubble' property on 'Event': The provided value"
- });
-
- esValue[implSymbol]["cancelBubble"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
}
- get bubbles() {
+ set onkeyup(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get bubbles' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onkeyup' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["bubbles"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeyup' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeyup"] = V;
}
- get cancelable() {
+ get onload() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cancelable' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onload' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["cancelable"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
}
- get returnValue() {
+ set onload(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get returnValue' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onload' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["returnValue"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onload' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onload"] = V;
}
- set returnValue(V) {
+ get onloadeddata() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set returnValue' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onloadeddata' called on an object that is not a valid instance of Document.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'returnValue' property on 'Event': The provided value"
- });
-
- esValue[implSymbol]["returnValue"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
}
- get defaultPrevented() {
+ set onloadeddata(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get defaultPrevented' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onloadeddata' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["defaultPrevented"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadeddata' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadeddata"] = V;
}
- get composed() {
+ get onloadedmetadata() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get composed' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'get onloadedmetadata' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["composed"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
}
- get timeStamp() {
+ set onloadedmetadata(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get timeStamp' called on an object that is not a valid instance of Event.");
+ throw new TypeError("'set onloadedmetadata' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol]["timeStamp"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadedmetadata' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadedmetadata"] = V;
}
- }
- Object.defineProperties(Event.prototype, {
- composedPath: { enumerable: true },
- stopPropagation: { enumerable: true },
- stopImmediatePropagation: { enumerable: true },
- preventDefault: { enumerable: true },
- initEvent: { enumerable: true },
- type: { enumerable: true },
- target: { enumerable: true },
- srcElement: { enumerable: true },
- currentTarget: { enumerable: true },
- eventPhase: { enumerable: true },
- cancelBubble: { enumerable: true },
- bubbles: { enumerable: true },
- cancelable: { enumerable: true },
- returnValue: { enumerable: true },
- defaultPrevented: { enumerable: true },
- composed: { enumerable: true },
- timeStamp: { enumerable: true },
- [Symbol.toStringTag]: { value: "Event", configurable: true },
- NONE: { value: 0, enumerable: true },
- CAPTURING_PHASE: { value: 1, enumerable: true },
- AT_TARGET: { value: 2, enumerable: true },
- BUBBLING_PHASE: { value: 3, enumerable: true }
- });
- Object.defineProperties(Event, {
- NONE: { value: 0, enumerable: true },
- CAPTURING_PHASE: { value: 1, enumerable: true },
- AT_TARGET: { value: 2, enumerable: true },
- BUBBLING_PHASE: { value: 3, enumerable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = Event;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Event
- });
-};
+ get onloadend() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(61883);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadend' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ }
-/***/ }),
+ set onloadend(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 23129:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadend' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadend' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadend"] = V;
+ }
+ get onloadstart() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadstart' called on an object that is not a valid instance of Document.");
+ }
-exports.convert = (value, { context = "The provided value" } = {}) => {
- function invokeTheCallbackFunction(event) {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
}
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
+ set onloadstart(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (typeof value === "function") {
- event = utils.tryWrapperForImpl(event);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadstart' called on an object that is not a valid instance of Document.");
+ }
- callResult = Reflect.apply(value, thisArg, [event]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadstart' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadstart"] = V;
}
- callResult = conversions["any"](callResult, { context: context });
-
- return callResult;
- }
+ get onmousedown() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- invokeTheCallbackFunction.construct = event => {
- event = utils.tryWrapperForImpl(event);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmousedown' called on an object that is not a valid instance of Document.");
+ }
- let callResult = Reflect.construct(value, [event]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
+ }
- callResult = conversions["any"](callResult, { context: context });
+ set onmousedown(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return callResult;
- };
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmousedown' called on an object that is not a valid instance of Document.");
+ }
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmousedown' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmousedown"] = V;
+ }
- return invokeTheCallbackFunction;
-};
+ get onmouseenter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ return;
+ }
-/***/ }),
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
+ }
-/***/ 4895:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ set onmouseenter(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ return;
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseenter' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseenter"] = V;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get onmouseleave() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "bubbles";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'bubbles' that" });
+ if (!exports.is(esValue)) {
+ return;
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
}
- }
- {
- const key = "cancelable";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'cancelable' that" });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
+ set onmouseleave(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "composed";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'composed' that" });
+ if (!exports.is(esValue)) {
+ return;
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseleave' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseleave"] = V;
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ get onmousemove() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmousemove' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
+ }
-/***/ }),
+ set onmousemove(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 10694:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmousemove' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmousemove' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmousemove"] = V;
+ }
+ get onmouseout() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseout' called on an object that is not a valid instance of Document.");
+ }
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- if (!utils.isObject(value)) {
- throw new TypeError(`${context} is not an object.`);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
+ }
- function callTheUserObjectsOperation(event) {
- let thisArg = utils.tryWrapperForImpl(this);
- let O = value;
- let X = O;
+ set onmouseout(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (typeof O !== "function") {
- X = O["handleEvent"];
- if (typeof X !== "function") {
- throw new TypeError(`${context} does not correctly implement EventListener.`);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmouseout' called on an object that is not a valid instance of Document.");
}
- thisArg = O;
- }
- event = utils.tryWrapperForImpl(event);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseout' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseout"] = V;
+ }
- let callResult = Reflect.apply(X, thisArg, [event]);
- }
+ get onmouseover() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- callTheUserObjectsOperation[utils.wrapperSymbol] = value;
- callTheUserObjectsOperation.objectReference = value;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseover' called on an object that is not a valid instance of Document.");
+ }
- return callTheUserObjectsOperation;
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
+ }
-exports.install = (globalObject, globalNames) => {};
+ set onmouseover(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmouseover' called on an object that is not a valid instance of Document.");
+ }
-/***/ }),
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseover' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseover"] = V;
+ }
-/***/ 25619:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ get onmouseup() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseup' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ set onmouseup(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "capture";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'capture' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmouseup' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseup' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseup"] = V;
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ get onwheel() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onwheel' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
+ }
-/***/ }),
+ set onwheel(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 22409:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onwheel' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onwheel' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onwheel"] = V;
+ }
+ get onpause() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onpause' called on an object that is not a valid instance of Document.");
+ }
-const UIEventInit = __nccwpck_require__(82015);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(obj, ret, { context });
+ set onpause(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "altKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'altKey' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onpause' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpause' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onpause"] = V;
}
- }
-
- {
- const key = "ctrlKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'ctrlKey' that" });
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
+ get onplay() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "metaKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'metaKey' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onplay' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
}
- }
-
- {
- const key = "modifierAltGraph";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierAltGraph' that" });
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
+ set onplay(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "modifierCapsLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierCapsLock' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onplay' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onplay' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onplay"] = V;
}
- }
-
- {
- const key = "modifierFn";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierFn' that" });
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
+ get onplaying() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "modifierFnLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierFnLock' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onplaying' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
}
- }
-
- {
- const key = "modifierHyper";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierHyper' that" });
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
+ set onplaying(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "modifierNumLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierNumLock' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onplaying' called on an object that is not a valid instance of Document.");
+ }
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onplaying' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onplaying"] = V;
}
- }
- {
- const key = "modifierScrollLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierScrollLock' that" });
+ get onprogress() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onprogress' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
}
- }
- {
- const key = "modifierSuper";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierSuper' that" });
+ set onprogress(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onprogress' called on an object that is not a valid instance of Document.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onprogress' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onprogress"] = V;
}
- }
- {
- const key = "modifierSymbol";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierSymbol' that" });
+ get onratechange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onratechange' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
}
- }
- {
- const key = "modifierSymbolLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'modifierSymbolLock' that" });
+ set onratechange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onratechange' called on an object that is not a valid instance of Document.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onratechange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onratechange"] = V;
}
- }
- {
- const key = "shiftKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'shiftKey' that" });
+ get onreset() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onreset' called on an object that is not a valid instance of Document.");
+ }
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
+ }
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ set onreset(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onreset' called on an object that is not a valid instance of Document.");
+ }
-/***/ }),
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onreset' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onreset"] = V;
+ }
-/***/ 71038:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ get onresize() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onresize' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ set onresize(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const EventListener = __nccwpck_require__(10694);
-const AddEventListenerOptions = __nccwpck_require__(34003);
-const EventListenerOptions = __nccwpck_require__(25619);
-const Event = __nccwpck_require__(35348);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onresize' called on an object that is not a valid instance of Document.");
+ }
-const interfaceName = "EventTarget";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onresize' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onresize"] = V;
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'EventTarget'.`);
-};
+ get onscroll() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onscroll' called on an object that is not a valid instance of Document.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["EventTarget"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor EventTarget is not installed on the passed global object");
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
+ }
- return Object.create(ctor.prototype);
-}
+ set onscroll(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onscroll' called on an object that is not a valid instance of Document.");
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onscroll' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onscroll"] = V;
+ }
-exports._internalSetup = (wrapper, globalObject) => {};
+ get onsecuritypolicyviolation() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get onsecuritypolicyviolation' called on an object that is not a valid instance of Document."
+ );
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ set onsecuritypolicyviolation(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onsecuritypolicyviolation' called on an object that is not a valid instance of Document."
+ );
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsecuritypolicyviolation' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onsecuritypolicyviolation"] = V;
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ get onseeked() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onseeked' called on an object that is not a valid instance of Document.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class EventTarget {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
}
- addEventListener(type, callback) {
+ set onseeked(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'addEventListener' called on an object that is not a valid instance of EventTarget.");
+ throw new TypeError("'set onseeked' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 1"
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onseeked' property on 'Document': The provided value"
});
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = EventListener.convert(curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 2"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = AddEventListenerOptions.convert(curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
- });
- } else if (utils.isObject(curArg)) {
- curArg = AddEventListenerOptions.convert(curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3" + " dictionary"
- });
- } else if (typeof curArg === "boolean") {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
- });
- } else {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
- });
- }
- }
- args.push(curArg);
}
- return esValue[implSymbol].addEventListener(...args);
+ esValue[implSymbol]["onseeked"] = V;
}
- removeEventListener(type, callback) {
+ get onseeking() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'removeEventListener' called on an object that is not a valid instance of EventTarget.");
+ throw new TypeError("'get onseeking' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
+ }
+
+ set onseeking(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onseeking' called on an object that is not a valid instance of Document.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 1"
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onseeking' property on 'Document': The provided value"
});
- args.push(curArg);
}
- {
- let curArg = arguments[1];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = EventListener.convert(curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 2"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = EventListenerOptions.convert(curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
- });
- } else if (utils.isObject(curArg)) {
- curArg = EventListenerOptions.convert(curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3" + " dictionary"
- });
- } else if (typeof curArg === "boolean") {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
- });
- } else {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
- });
- }
- }
- args.push(curArg);
- }
- return esValue[implSymbol].removeEventListener(...args);
+ esValue[implSymbol]["onseeking"] = V;
}
- dispatchEvent(event) {
+ get onselect() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'dispatchEvent' called on an object that is not a valid instance of EventTarget.");
+ throw new TypeError("'get onselect' called on an object that is not a valid instance of Document.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'dispatchEvent' on 'EventTarget': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
+ }
+
+ set onselect(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onselect' called on an object that is not a valid instance of Document.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Event.convert(curArg, { context: "Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1" });
- args.push(curArg);
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onselect' property on 'Document': The provided value"
+ });
}
- return esValue[implSymbol].dispatchEvent(...args);
+ esValue[implSymbol]["onselect"] = V;
}
- }
- Object.defineProperties(EventTarget.prototype, {
- addEventListener: { enumerable: true },
- removeEventListener: { enumerable: true },
- dispatchEvent: { enumerable: true },
- [Symbol.toStringTag]: { value: "EventTarget", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = EventTarget;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: EventTarget
- });
-};
+ get onstalled() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(18557);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onstalled' called on an object that is not a valid instance of Document.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
+ }
-/***/ }),
+ set onstalled(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 19995:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onstalled' called on an object that is not a valid instance of Document.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onstalled' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onstalled"] = V;
+ }
+ get onsubmit() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onsubmit' called on an object that is not a valid instance of Document.");
+ }
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
+ }
-const interfaceName = "External";
+ set onsubmit(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'External'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onsubmit' called on an object that is not a valid instance of Document.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsubmit' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onsubmit"] = V;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["External"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor External is not installed on the passed global object");
- }
+ get onsuspend() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onsuspend' called on an object that is not a valid instance of Document.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set onsuspend(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onsuspend' called on an object that is not a valid instance of Document.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsuspend' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onsuspend"] = V;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ get ontimeupdate() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ontimeupdate' called on an object that is not a valid instance of Document.");
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ set ontimeupdate(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ontimeupdate' called on an object that is not a valid instance of Document.");
+ }
-const exposed = new Set(["Window"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ontimeupdate' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ontimeupdate"] = V;
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class External {
- constructor() {
- throw new TypeError("Illegal constructor");
+ get ontoggle() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ontoggle' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
}
- AddSearchProvider() {
+ set ontoggle(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'AddSearchProvider' called on an object that is not a valid instance of External.");
+ throw new TypeError("'set ontoggle' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol].AddSearchProvider();
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ontoggle' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["ontoggle"] = V;
}
- IsSearchProviderInstalled() {
+ get onvolumechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'IsSearchProviderInstalled' called on an object that is not a valid instance of External."
- );
+ throw new TypeError("'get onvolumechange' called on an object that is not a valid instance of Document.");
}
- return esValue[implSymbol].IsSearchProviderInstalled();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
+ }
+
+ set onvolumechange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onvolumechange' called on an object that is not a valid instance of Document.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onvolumechange' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onvolumechange"] = V;
+ }
+
+ get onwaiting() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onwaiting' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
+ }
+
+ set onwaiting(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onwaiting' called on an object that is not a valid instance of Document.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onwaiting' property on 'Document': The provided value"
+ });
+ }
+ esValue[implSymbol]["onwaiting"] = V;
+ }
+
+ get activeElement() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get activeElement' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["activeElement"]);
+ }
+
+ get children() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get children' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.getSameObject(this, "children", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
+ });
+ }
+
+ get firstElementChild() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get firstElementChild' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
+ }
+
+ get lastElementChild() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get lastElementChild' called on an object that is not a valid instance of Document.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
+ }
+
+ get childElementCount() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get childElementCount' called on an object that is not a valid instance of Document.");
+ }
+
+ return esValue[implSymbol]["childElementCount"];
}
}
- Object.defineProperties(External.prototype, {
- AddSearchProvider: { enumerable: true },
- IsSearchProviderInstalled: { enumerable: true },
- [Symbol.toStringTag]: { value: "External", configurable: true }
+ Object.defineProperties(Document.prototype, {
+ getElementsByTagName: { enumerable: true },
+ getElementsByTagNameNS: { enumerable: true },
+ getElementsByClassName: { enumerable: true },
+ createElement: { enumerable: true },
+ createElementNS: { enumerable: true },
+ createDocumentFragment: { enumerable: true },
+ createTextNode: { enumerable: true },
+ createCDATASection: { enumerable: true },
+ createComment: { enumerable: true },
+ createProcessingInstruction: { enumerable: true },
+ importNode: { enumerable: true },
+ adoptNode: { enumerable: true },
+ createAttribute: { enumerable: true },
+ createAttributeNS: { enumerable: true },
+ createEvent: { enumerable: true },
+ createRange: { enumerable: true },
+ createNodeIterator: { enumerable: true },
+ createTreeWalker: { enumerable: true },
+ getElementsByName: { enumerable: true },
+ open: { enumerable: true },
+ close: { enumerable: true },
+ write: { enumerable: true },
+ writeln: { enumerable: true },
+ hasFocus: { enumerable: true },
+ clear: { enumerable: true },
+ captureEvents: { enumerable: true },
+ releaseEvents: { enumerable: true },
+ getSelection: { enumerable: true },
+ getElementById: { enumerable: true },
+ prepend: { enumerable: true },
+ append: { enumerable: true },
+ querySelector: { enumerable: true },
+ querySelectorAll: { enumerable: true },
+ implementation: { enumerable: true },
+ URL: { enumerable: true },
+ documentURI: { enumerable: true },
+ compatMode: { enumerable: true },
+ characterSet: { enumerable: true },
+ charset: { enumerable: true },
+ inputEncoding: { enumerable: true },
+ contentType: { enumerable: true },
+ doctype: { enumerable: true },
+ documentElement: { enumerable: true },
+ referrer: { enumerable: true },
+ cookie: { enumerable: true },
+ lastModified: { enumerable: true },
+ readyState: { enumerable: true },
+ title: { enumerable: true },
+ dir: { enumerable: true },
+ body: { enumerable: true },
+ head: { enumerable: true },
+ images: { enumerable: true },
+ embeds: { enumerable: true },
+ plugins: { enumerable: true },
+ links: { enumerable: true },
+ forms: { enumerable: true },
+ scripts: { enumerable: true },
+ currentScript: { enumerable: true },
+ defaultView: { enumerable: true },
+ onreadystatechange: { enumerable: true },
+ anchors: { enumerable: true },
+ applets: { enumerable: true },
+ styleSheets: { enumerable: true },
+ hidden: { enumerable: true },
+ visibilityState: { enumerable: true },
+ onvisibilitychange: { enumerable: true },
+ onabort: { enumerable: true },
+ onauxclick: { enumerable: true },
+ onblur: { enumerable: true },
+ oncancel: { enumerable: true },
+ oncanplay: { enumerable: true },
+ oncanplaythrough: { enumerable: true },
+ onchange: { enumerable: true },
+ onclick: { enumerable: true },
+ onclose: { enumerable: true },
+ oncontextmenu: { enumerable: true },
+ oncuechange: { enumerable: true },
+ ondblclick: { enumerable: true },
+ ondrag: { enumerable: true },
+ ondragend: { enumerable: true },
+ ondragenter: { enumerable: true },
+ ondragleave: { enumerable: true },
+ ondragover: { enumerable: true },
+ ondragstart: { enumerable: true },
+ ondrop: { enumerable: true },
+ ondurationchange: { enumerable: true },
+ onemptied: { enumerable: true },
+ onended: { enumerable: true },
+ onerror: { enumerable: true },
+ onfocus: { enumerable: true },
+ oninput: { enumerable: true },
+ oninvalid: { enumerable: true },
+ onkeydown: { enumerable: true },
+ onkeypress: { enumerable: true },
+ onkeyup: { enumerable: true },
+ onload: { enumerable: true },
+ onloadeddata: { enumerable: true },
+ onloadedmetadata: { enumerable: true },
+ onloadend: { enumerable: true },
+ onloadstart: { enumerable: true },
+ onmousedown: { enumerable: true },
+ onmouseenter: { enumerable: true },
+ onmouseleave: { enumerable: true },
+ onmousemove: { enumerable: true },
+ onmouseout: { enumerable: true },
+ onmouseover: { enumerable: true },
+ onmouseup: { enumerable: true },
+ onwheel: { enumerable: true },
+ onpause: { enumerable: true },
+ onplay: { enumerable: true },
+ onplaying: { enumerable: true },
+ onprogress: { enumerable: true },
+ onratechange: { enumerable: true },
+ onreset: { enumerable: true },
+ onresize: { enumerable: true },
+ onscroll: { enumerable: true },
+ onsecuritypolicyviolation: { enumerable: true },
+ onseeked: { enumerable: true },
+ onseeking: { enumerable: true },
+ onselect: { enumerable: true },
+ onstalled: { enumerable: true },
+ onsubmit: { enumerable: true },
+ onsuspend: { enumerable: true },
+ ontimeupdate: { enumerable: true },
+ ontoggle: { enumerable: true },
+ onvolumechange: { enumerable: true },
+ onwaiting: { enumerable: true },
+ activeElement: { enumerable: true },
+ children: { enumerable: true },
+ firstElementChild: { enumerable: true },
+ lastElementChild: { enumerable: true },
+ childElementCount: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Document", configurable: true },
+ [Symbol.unscopables]: { value: { prepend: true, append: true, __proto__: null }, configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = External;
+ globalObject[ctorRegistrySymbol][interfaceName] = Document;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: External
+ value: Document
});
};
-const Impl = __nccwpck_require__(87625);
+const Impl = __nccwpck_require__(54581);
/***/ }),
-/***/ 74022:
+/***/ 11490:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -75543,12 +70243,13 @@ const Impl = __nccwpck_require__(87625);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Blob = __nccwpck_require__(48350);
-const FilePropertyBag = __nccwpck_require__(3281);
+const Node = __nccwpck_require__(41209);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "File";
+const interfaceName = "DocumentFragment";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -75560,7 +70261,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'File'.`);
+ throw new TypeError(`${context} is not of type 'DocumentFragment'.`);
};
function makeWrapper(globalObject) {
@@ -75568,9 +70269,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["File"];
+ const ctor = globalObject[ctorRegistrySymbol]["DocumentFragment"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor File is not installed on the passed global object");
+ throw new Error("Internal error: constructor DocumentFragment is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -75587,7 +70288,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- Blob._internalSetup(wrapper, globalObject);
+ Node._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -75606,7 +70307,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -75622,103 +70323,222 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.Blob === undefined) {
- throw new Error("Internal error: attempting to evaluate File before Blob");
+ if (globalObject.Node === undefined) {
+ throw new Error("Internal error: attempting to evaluate DocumentFragment before Node");
}
- class File extends globalObject.Blob {
- constructor(fileBits, fileName) {
- if (arguments.length < 2) {
+ class DocumentFragment extends globalObject.Node {
+ constructor() {
+ return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
+ }
+
+ getElementById(elementId) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getElementById' called on an object that is not a valid instance of DocumentFragment.");
+ }
+
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'File': 2 arguments required, but only " + arguments.length + " present."
+ "Failed to execute 'getElementById' on 'DocumentFragment': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- if (!utils.isObject(curArg)) {
- throw new TypeError("Failed to construct 'File': parameter 1" + " is not an iterable object.");
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementById' on 'DocumentFragment': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
+ }
+
+ prepend() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'prepend' called on an object that is not a valid instance of DocumentFragment.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
} else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- if (Blob.is(nextItem)) {
- nextItem = utils.implForWrapper(nextItem);
- } else if (utils.isArrayBuffer(nextItem)) {
- } else if (ArrayBuffer.isView(nextItem)) {
- } else {
- nextItem = conversions["USVString"](nextItem, {
- context: "Failed to construct 'File': parameter 1" + "'s element"
- });
- }
- V.push(nextItem);
- }
- curArg = V;
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'prepend' on 'DocumentFragment': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].prepend(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ append() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'append' called on an object that is not a valid instance of DocumentFragment.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'append' on 'DocumentFragment': parameter " + (i + 1)
+ });
}
args.push(curArg);
}
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].append(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ querySelector(selectors) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'querySelector' called on an object that is not a valid instance of DocumentFragment.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'querySelector' on 'DocumentFragment': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, { context: "Failed to construct 'File': parameter 2" });
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'querySelector' on 'DocumentFragment': parameter 1"
+ });
args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
+ }
+
+ querySelectorAll(selectors) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of DocumentFragment.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'querySelectorAll' on 'DocumentFragment': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[2];
- curArg = FilePropertyBag.convert(curArg, { context: "Failed to construct 'File': parameter 3" });
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'querySelectorAll' on 'DocumentFragment': parameter 1"
+ });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
}
- get name() {
+ get children() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of File.");
+ throw new TypeError("'get children' called on an object that is not a valid instance of DocumentFragment.");
}
- return esValue[implSymbol]["name"];
+ return utils.getSameObject(this, "children", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
+ });
}
- get lastModified() {
+ get firstElementChild() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get lastModified' called on an object that is not a valid instance of File.");
+ throw new TypeError(
+ "'get firstElementChild' called on an object that is not a valid instance of DocumentFragment."
+ );
}
- return esValue[implSymbol]["lastModified"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
+ }
+
+ get lastElementChild() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get lastElementChild' called on an object that is not a valid instance of DocumentFragment."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
+ }
+
+ get childElementCount() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get childElementCount' called on an object that is not a valid instance of DocumentFragment."
+ );
+ }
+
+ return esValue[implSymbol]["childElementCount"];
}
}
- Object.defineProperties(File.prototype, {
- name: { enumerable: true },
- lastModified: { enumerable: true },
- [Symbol.toStringTag]: { value: "File", configurable: true }
+ Object.defineProperties(DocumentFragment.prototype, {
+ getElementById: { enumerable: true },
+ prepend: { enumerable: true },
+ append: { enumerable: true },
+ querySelector: { enumerable: true },
+ querySelectorAll: { enumerable: true },
+ children: { enumerable: true },
+ firstElementChild: { enumerable: true },
+ lastElementChild: { enumerable: true },
+ childElementCount: { enumerable: true },
+ [Symbol.toStringTag]: { value: "DocumentFragment", configurable: true },
+ [Symbol.unscopables]: { value: { prepend: true, append: true, __proto__: null }, configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = File;
+ globalObject[ctorRegistrySymbol][interfaceName] = DocumentFragment;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: File
+ value: DocumentFragment
});
};
-const Impl = __nccwpck_require__(66294);
+const Impl = __nccwpck_require__(69567);
/***/ }),
-/***/ 51414:
+/***/ 53193:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -75727,10 +70547,13 @@ const Impl = __nccwpck_require__(66294);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const Node = __nccwpck_require__(41209);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "FileList";
+const interfaceName = "DocumentType";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -75742,7 +70565,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'FileList'.`);
+ throw new TypeError(`${context} is not of type 'DocumentType'.`);
};
function makeWrapper(globalObject) {
@@ -75750,9 +70573,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["FileList"];
+ const ctor = globalObject[ctorRegistrySymbol]["DocumentType"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor FileList is not installed on the passed global object");
+ throw new Error("Internal error: constructor DocumentType is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -75768,7 +70591,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ Node._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -75779,8 +70604,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -75788,8 +70611,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -75797,8 +70620,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -75806,270 +70627,172 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class FileList {
+
+ if (globalObject.Node === undefined) {
+ throw new Error("Internal error: attempting to evaluate DocumentType before Node");
+ }
+ class DocumentType extends globalObject.Node {
constructor() {
throw new TypeError("Illegal constructor");
}
- item(index) {
+ before() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of FileList.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'item' on 'FileList': 1 argument required, but only " + arguments.length + " present."
- );
+ throw new TypeError("'before' called on an object that is not a valid instance of DocumentType.");
}
const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'FileList': parameter 1"
- });
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'before' on 'DocumentType': parameter " + (i + 1)
+ });
+ }
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].before(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get length() {
+ after() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of FileList.");
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(FileList.prototype, {
- item: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "FileList", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = FileList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FileList
- });
-};
-
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
+ throw new TypeError("'after' called on an object that is not a valid instance of DocumentType.");
}
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'after' on 'DocumentType': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].after(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
+ replaceWith() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'replaceWith' called on an object that is not a valid instance of DocumentType.");
}
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'replaceWith' on 'DocumentType': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
- if (!existingDesc.writable) {
- return false;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].replaceWith(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
+ remove() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'remove' called on an object that is not a valid instance of DocumentType.");
+ }
- if (utils.isArrayIndexPropName(P)) {
- return false;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].remove();
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- return Reflect.defineProperty(target, P, desc);
- },
+ get name() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get name' called on an object that is not a valid instance of DocumentType.");
+ }
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
+ return esValue[implSymbol]["name"];
}
- return Reflect.deleteProperty(target, P);
- },
-
- preventExtensions() {
- return false;
- }
-};
-
-const Impl = __nccwpck_require__(87378);
-
-
-/***/ }),
-
-/***/ 3281:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
+ get publicId() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get publicId' called on an object that is not a valid instance of DocumentType.");
+ }
-const BlobPropertyBag = __nccwpck_require__(72334);
+ return esValue[implSymbol]["publicId"];
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- BlobPropertyBag._convertInherit(obj, ret, { context });
+ get systemId() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "lastModified";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long long"](value, { context: context + " has member 'lastModified' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get systemId' called on an object that is not a valid instance of DocumentType.");
+ }
- ret[key] = value;
+ return esValue[implSymbol]["systemId"];
}
}
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ Object.defineProperties(DocumentType.prototype, {
+ before: { enumerable: true },
+ after: { enumerable: true },
+ replaceWith: { enumerable: true },
+ remove: { enumerable: true },
+ name: { enumerable: true },
+ publicId: { enumerable: true },
+ systemId: { enumerable: true },
+ [Symbol.toStringTag]: { value: "DocumentType", configurable: true },
+ [Symbol.unscopables]: {
+ value: { before: true, after: true, replaceWith: true, remove: true, __proto__: null },
+ configurable: true
+ }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = DocumentType;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: DocumentType
+ });
};
+const Impl = __nccwpck_require__(98560);
+
/***/ }),
-/***/ 82142:
+/***/ 4444:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -76078,13 +70801,15 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Blob = __nccwpck_require__(48350);
-const EventHandlerNonNull = __nccwpck_require__(23129);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const Attr = __nccwpck_require__(78717);
+const ShadowRootInit = __nccwpck_require__(83671);
+const Node = __nccwpck_require__(41209);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-const interfaceName = "FileReader";
+const interfaceName = "Element";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -76096,7 +70821,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'FileReader'.`);
+ throw new TypeError(`${context} is not of type 'Element'.`);
};
function makeWrapper(globalObject) {
@@ -76104,9 +70829,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["FileReader"];
+ const ctor = globalObject[ctorRegistrySymbol]["Element"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor FileReader is not installed on the passed global object");
+ throw new Error("Internal error: constructor Element is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -76123,7 +70848,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
+ Node._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -76142,7 +70867,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -76158,30 +70883,48 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.EventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate FileReader before EventTarget");
+ if (globalObject.Node === undefined) {
+ throw new Error("Internal error: attempting to evaluate Element before Node");
}
- class FileReader extends globalObject.EventTarget {
+ class Element extends globalObject.Node {
constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
+ throw new TypeError("Illegal constructor");
}
- readAsArrayBuffer(blob) {
+ hasAttributes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'readAsArrayBuffer' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'hasAttributes' called on an object that is not a valid instance of Element.");
+ }
+
+ return esValue[implSymbol].hasAttributes();
+ }
+
+ getAttributeNames() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getAttributeNames' called on an object that is not a valid instance of Element.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNames());
+ }
+
+ getAttribute(qualifiedName) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getAttribute' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'readAsArrayBuffer' on 'FileReader': 1 argument required, but only " +
+ "Failed to execute 'getAttribute' on 'Element': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -76189,23 +70932,23 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Blob.convert(curArg, {
- context: "Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1"
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getAttribute' on 'Element': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].readAsArrayBuffer(...args);
+ return esValue[implSymbol].getAttribute(...args);
}
- readAsBinaryString(blob) {
+ getAttributeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'readAsBinaryString' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'getAttributeNS' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'readAsBinaryString' on 'FileReader': 1 argument required, but only " +
+ "Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -76213,23 +70956,34 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Blob.convert(curArg, {
- context: "Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1"
- });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getAttributeNS' on 'Element': parameter 1"
+ });
+ }
args.push(curArg);
}
- return esValue[implSymbol].readAsBinaryString(...args);
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getAttributeNS' on 'Element': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].getAttributeNS(...args);
}
- readAsText(blob) {
+ setAttribute(qualifiedName, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'readAsText' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'setAttribute' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'readAsText' on 'FileReader': 1 argument required, but only " +
+ "Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -76237,30 +70991,35 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'readAsText' on 'FileReader': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setAttribute' on 'Element': parameter 1"
+ });
args.push(curArg);
}
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'readAsText' on 'FileReader': parameter 2"
- });
- }
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setAttribute' on 'Element': parameter 2"
+ });
args.push(curArg);
}
- return esValue[implSymbol].readAsText(...args);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].setAttribute(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- readAsDataURL(blob) {
+ setAttributeNS(namespace, qualifiedName, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'readAsDataURL' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'setAttributeNS' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 3) {
throw new TypeError(
- "Failed to execute 'readAsDataURL' on 'FileReader': 1 argument required, but only " +
+ "Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only " +
arguments.length +
" present."
);
@@ -76268,1892 +71027,1450 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'readAsDataURL' on 'FileReader': parameter 1" });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setAttributeNS' on 'Element': parameter 1"
+ });
+ }
args.push(curArg);
}
- return esValue[implSymbol].readAsDataURL(...args);
- }
-
- abort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'abort' called on an object that is not a valid instance of FileReader.");
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setAttributeNS' on 'Element': parameter 2"
+ });
+ args.push(curArg);
}
-
- return esValue[implSymbol].abort();
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get readyState' called on an object that is not a valid instance of FileReader.");
+ {
+ let curArg = arguments[2];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setAttributeNS' on 'Element': parameter 3"
+ });
+ args.push(curArg);
}
-
- return esValue[implSymbol]["readyState"];
- }
-
- get result() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get result' called on an object that is not a valid instance of FileReader.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].setAttributeNS(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["result"]);
}
- get error() {
+ removeAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get error' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'removeAttribute' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["error"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'removeAttribute' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeAttribute' on 'Element': parameter 1"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].removeAttribute(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get onloadstart() {
+ removeAttributeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onloadstart' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'removeAttributeNS' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 1"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 2"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].removeAttributeNS(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onloadstart(V) {
+ toggleAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadstart' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'toggleAttribute' called on an object that is not a valid instance of Element.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadstart' property on 'FileReader': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'toggleAttribute' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'toggleAttribute' on 'Element': parameter 1"
});
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'toggleAttribute' on 'Element': parameter 2"
+ });
+ }
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].toggleAttribute(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onloadstart"] = V;
}
- get onprogress() {
+ hasAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onprogress' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'hasAttribute' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'hasAttribute' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'hasAttribute' on 'Element': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].hasAttribute(...args);
}
- set onprogress(V) {
+ hasAttributeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onprogress' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'hasAttributeNS' called on an object that is not a valid instance of Element.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onprogress' property on 'FileReader': The provided value"
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 1"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 2"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onprogress"] = V;
+ return esValue[implSymbol].hasAttributeNS(...args);
}
- get onload() {
+ getAttributeNode(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onload' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'getAttributeNode' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getAttributeNode' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getAttributeNode' on 'Element': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNode(...args));
}
- set onload(V) {
+ getAttributeNodeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onload' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'getAttributeNodeNS' called on an object that is not a valid instance of Element.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onload' property on 'FileReader': The provided value"
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'getAttributeNodeNS' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 1"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 2"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onload"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNodeNS(...args));
}
- get onabort() {
+ setAttributeNode(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onabort' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'setAttributeNode' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setAttributeNode' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Attr.convert(curArg, { context: "Failed to execute 'setAttributeNode' on 'Element': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNode(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onabort(V) {
+ setAttributeNodeNS(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onabort' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'setAttributeNodeNS' called on an object that is not a valid instance of Element.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onabort' property on 'FileReader': The provided value"
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setAttributeNodeNS' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Attr.convert(curArg, { context: "Failed to execute 'setAttributeNodeNS' on 'Element': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNodeNS(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onabort"] = V;
}
- get onerror() {
+ removeAttributeNode(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onerror' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'removeAttributeNode' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'removeAttributeNode' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Attr.convert(curArg, { context: "Failed to execute 'removeAttributeNode' on 'Element': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].removeAttributeNode(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onerror(V) {
+ attachShadow(init) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onerror' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'attachShadow' called on an object that is not a valid instance of Element.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'FileReader': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'attachShadow' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = ShadowRootInit.convert(curArg, {
+ context: "Failed to execute 'attachShadow' on 'Element': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onerror"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].attachShadow(...args));
}
- get onloadend() {
+ closest(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onloadend' called on an object that is not a valid instance of FileReader.");
+ throw new TypeError("'closest' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'closest' on 'Element': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'closest' on 'Element': parameter 1" });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].closest(...args));
}
- set onloadend(V) {
+ matches(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadend' called on an object that is not a valid instance of FileReader.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadend' property on 'FileReader': The provided value"
- });
+ throw new TypeError("'matches' called on an object that is not a valid instance of Element.");
}
- esValue[implSymbol]["onloadend"] = V;
- }
- }
- Object.defineProperties(FileReader.prototype, {
- readAsArrayBuffer: { enumerable: true },
- readAsBinaryString: { enumerable: true },
- readAsText: { enumerable: true },
- readAsDataURL: { enumerable: true },
- abort: { enumerable: true },
- readyState: { enumerable: true },
- result: { enumerable: true },
- error: { enumerable: true },
- onloadstart: { enumerable: true },
- onprogress: { enumerable: true },
- onload: { enumerable: true },
- onabort: { enumerable: true },
- onerror: { enumerable: true },
- onloadend: { enumerable: true },
- [Symbol.toStringTag]: { value: "FileReader", configurable: true },
- EMPTY: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- DONE: { value: 2, enumerable: true }
- });
- Object.defineProperties(FileReader, {
- EMPTY: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- DONE: { value: 2, enumerable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = FileReader;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FileReader
- });
-};
-
-const Impl = __nccwpck_require__(75394);
-
-
-/***/ }),
-
-/***/ 66651:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-const FocusEventInit = __nccwpck_require__(89088);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "FocusEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'FocusEvent'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["FocusEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor FocusEvent is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.UIEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate FocusEvent before UIEvent");
- }
- class FocusEvent extends globalObject.UIEvent {
- constructor(type) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'FocusEvent': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'matches' on 'Element': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'FocusEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = FocusEventInit.convert(curArg, { context: "Failed to construct 'FocusEvent': parameter 2" });
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'matches' on 'Element': parameter 1" });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return esValue[implSymbol].matches(...args);
}
- get relatedTarget() {
+ webkitMatchesSelector(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get relatedTarget' called on an object that is not a valid instance of FocusEvent.");
+ throw new TypeError("'webkitMatchesSelector' called on an object that is not a valid instance of Element.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);
- }
- }
- Object.defineProperties(FocusEvent.prototype, {
- relatedTarget: { enumerable: true },
- [Symbol.toStringTag]: { value: "FocusEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = FocusEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FocusEvent
- });
-};
-
-const Impl = __nccwpck_require__(8703);
-
-
-/***/ }),
-
-/***/ 89088:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventTarget = __nccwpck_require__(71038);
-const UIEventInit = __nccwpck_require__(82015);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(obj, ret, { context });
-
- {
- const key = "relatedTarget";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = EventTarget.convert(value, { context: context + " has member 'relatedTarget' that" });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'webkitMatchesSelector' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
- ret[key] = value;
- } else {
- ret[key] = null;
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'webkitMatchesSelector' on 'Element': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].webkitMatchesSelector(...args);
}
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 75261:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLFormElement = __nccwpck_require__(37670);
-const Blob = __nccwpck_require__(48350);
-const Function = __nccwpck_require__(79936);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "FormData";
-
-const IteratorPrototype = Object.create(utils.IteratorPrototype, {
- next: {
- value: function next() {
- const internal = this && this[utils.iterInternalSymbol];
- if (!internal) {
- throw new TypeError("next() called on a value that is not an iterator prototype object");
+ getElementsByTagName(qualifiedName) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getElementsByTagName' called on an object that is not a valid instance of Element.");
}
- const { target, kind, index } = internal;
- const values = Array.from(target[implSymbol]);
- const len = values.length;
- if (index >= len) {
- return { value: undefined, done: true };
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getElementsByTagName' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- const pair = values[index];
- internal.index = index + 1;
- return utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind);
- },
- writable: true,
- enumerable: true,
- configurable: true
- },
- [Symbol.toStringTag]: {
- value: "FormData Iterator",
- configurable: true
- }
-});
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'FormData'.`);
-};
-
-exports.createDefaultIterator = (target, kind) => {
- const iterator = Object.create(IteratorPrototype);
- Object.defineProperty(iterator, utils.iterInternalSymbol, {
- value: { target, kind, index: 0 },
- configurable: true
- });
- return iterator;
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["FormData"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor FormData is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class FormData {
- constructor() {
const args = [];
{
let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = HTMLFormElement.convert(curArg, { context: "Failed to construct 'FormData': parameter 1" });
- }
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementsByTagName' on 'Element': parameter 1"
+ });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
}
- append(name, value) {
+ getElementsByTagNameNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'append' called on an object that is not a valid instance of FormData.");
+ throw new TypeError("'getElementsByTagNameNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'append' on 'FormData': 2 arguments required, but only " + arguments.length + " present."
+ "Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
- switch (arguments.length) {
- case 2:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (Blob.is(curArg)) {
- {
- let curArg = arguments[1];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'append' on 'FormData': parameter 2" });
- args.push(curArg);
- }
- } else {
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 2"
- });
- args.push(curArg);
- }
- }
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'append' on 'FormData': parameter 2" });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 3"
- });
- }
- args.push(curArg);
- }
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 1"
+ });
+ }
+ args.push(curArg);
}
- return esValue[implSymbol].append(...args);
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
}
- delete(name) {
+ getElementsByClassName(classNames) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'delete' called on an object that is not a valid instance of FormData.");
+ throw new TypeError("'getElementsByClassName' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'delete' on 'FormData': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'getElementsByClassName' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, { context: "Failed to execute 'delete' on 'FormData': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementsByClassName' on 'Element': parameter 1"
+ });
args.push(curArg);
}
- return esValue[implSymbol].delete(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
}
- get(name) {
+ insertAdjacentElement(where, element) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get' called on an object that is not a valid instance of FormData.");
+ throw new TypeError("'insertAdjacentElement' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'get' on 'FormData': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'insertAdjacentElement' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, { context: "Failed to execute 'get' on 'FormData': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 1"
+ });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].get(...args));
+ {
+ let curArg = arguments[1];
+ curArg = exports.convert(curArg, {
+ context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 2"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].insertAdjacentElement(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- getAll(name) {
+ insertAdjacentText(where, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getAll' called on an object that is not a valid instance of FormData.");
+ throw new TypeError("'insertAdjacentText' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'getAll' on 'FormData': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'insertAdjacentText' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, { context: "Failed to execute 'getAll' on 'FormData': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 1"
+ });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getAll(...args));
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].insertAdjacentText(...args);
}
- has(name) {
+ insertAdjacentHTML(position, text) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'has' called on an object that is not a valid instance of FormData.");
+ throw new TypeError("'insertAdjacentHTML' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'has' on 'FormData': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'insertAdjacentHTML' on 'Element': 2 arguments required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, { context: "Failed to execute 'has' on 'FormData': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 1"
+ });
args.push(curArg);
}
- return esValue[implSymbol].has(...args);
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 2"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].insertAdjacentHTML(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set(name, value) {
+ getClientRects() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set' called on an object that is not a valid instance of FormData.");
+ throw new TypeError("'getClientRects' called on an object that is not a valid instance of Element.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'set' on 'FormData': 2 arguments required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- switch (arguments.length) {
- case 2:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (Blob.is(curArg)) {
- {
- let curArg = arguments[1];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'set' on 'FormData': parameter 2" });
- args.push(curArg);
- }
- } else {
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 2"
- });
- args.push(curArg);
- }
- }
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'set' on 'FormData': parameter 2" });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 3"
- });
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].set(...args);
- }
-
- keys() {
- if (!exports.is(this)) {
- throw new TypeError("'keys' called on an object that is not a valid instance of FormData.");
- }
- return exports.createDefaultIterator(this, "key");
- }
-
- values() {
- if (!exports.is(this)) {
- throw new TypeError("'values' called on an object that is not a valid instance of FormData.");
- }
- return exports.createDefaultIterator(this, "value");
- }
-
- entries() {
- if (!exports.is(this)) {
- throw new TypeError("'entries' called on an object that is not a valid instance of FormData.");
- }
- return exports.createDefaultIterator(this, "key+value");
+ return utils.tryWrapperForImpl(esValue[implSymbol].getClientRects());
}
- forEach(callback) {
- if (!exports.is(this)) {
- throw new TypeError("'forEach' called on an object that is not a valid instance of FormData.");
- }
- if (arguments.length < 1) {
- throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
- }
- callback = Function.convert(callback, {
- context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
- });
- const thisArg = arguments[1];
- let pairs = Array.from(this[implSymbol]);
- let i = 0;
- while (i < pairs.length) {
- const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
- callback.call(thisArg, value, key, this);
- pairs = Array.from(this[implSymbol]);
- i++;
+ getBoundingClientRect() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getBoundingClientRect' called on an object that is not a valid instance of Element.");
}
- }
- }
- Object.defineProperties(FormData.prototype, {
- append: { enumerable: true },
- delete: { enumerable: true },
- get: { enumerable: true },
- getAll: { enumerable: true },
- has: { enumerable: true },
- set: { enumerable: true },
- keys: { enumerable: true },
- values: { enumerable: true },
- entries: { enumerable: true },
- forEach: { enumerable: true },
- [Symbol.toStringTag]: { value: "FormData", configurable: true },
- [Symbol.iterator]: { value: FormData.prototype.entries, configurable: true, writable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = FormData;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FormData
- });
-};
-
-const Impl = __nccwpck_require__(22731);
-
-
-/***/ }),
-
-/***/ 79936:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new TypeError(context + " is not a function");
- }
-
- function invokeTheCallbackFunction(...args) {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
- }
-
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- for (let i = 0; i < args.length; i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
- }
-
- callResult = Reflect.apply(value, thisArg, args);
-
- callResult = conversions["any"](callResult, { context: context });
-
- return callResult;
- }
-
- invokeTheCallbackFunction.construct = (...args) => {
- for (let i = 0; i < args.length; i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
- }
-
- let callResult = Reflect.construct(value, args);
-
- callResult = conversions["any"](callResult, { context: context });
-
- return callResult;
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 99981:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "composed";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'composed' that" });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 41448:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLAnchorElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLAnchorElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLAnchorElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLAnchorElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLAnchorElement before HTMLElement");
- }
- class HTMLAnchorElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.tryWrapperForImpl(esValue[implSymbol].getBoundingClientRect());
}
- get target() {
+ before() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'before' called on an object that is not a valid instance of Element.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'before' on 'Element': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
+ return esValue[implSymbol].before(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set target(V) {
+ after() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set target' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'after' called on an object that is not a valid instance of Element.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'after' on 'Element': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLAnchorElement': The provided value"
- });
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
+ return esValue[implSymbol].after(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get download() {
+ replaceWith() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get download' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'replaceWith' called on an object that is not a valid instance of Element.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'replaceWith' on 'Element': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "download");
- return value === null ? "" : value;
+ return esValue[implSymbol].replaceWith(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set download(V) {
+ remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set download' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'remove' called on an object that is not a valid instance of Element.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'download' property on 'HTMLAnchorElement': The provided value"
- });
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "download", V);
+ return esValue[implSymbol].remove();
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rel() {
+ prepend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'prepend' called on an object that is not a valid instance of Element.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'prepend' on 'Element': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "rel");
- return value === null ? "" : value;
+ return esValue[implSymbol].prepend(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set rel(V) {
+ append() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'append' called on an object that is not a valid instance of Element.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ if (Node.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'append' on 'Element': parameter " + (i + 1)
+ });
+ }
+ args.push(curArg);
}
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rel' property on 'HTMLAnchorElement': The provided value"
- });
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "rel", V);
+ return esValue[implSymbol].append(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get relList() {
+ querySelector(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'querySelector' called on an object that is not a valid instance of Element.");
}
- return utils.getSameObject(this, "relList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'querySelector' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'querySelector' on 'Element': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
}
- set relList(V) {
+ querySelectorAll(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of Element.");
}
- const Q = esValue["relList"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'relList' is not an object");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'querySelectorAll' on 'Element': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
- Reflect.set(Q, "value", V);
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'querySelectorAll' on 'Element': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
}
- get hreflang() {
+ get namespaceURI() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hreflang' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get namespaceURI' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "hreflang");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["namespaceURI"];
}
- set hreflang(V) {
+ get prefix() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hreflang' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get prefix' called on an object that is not a valid instance of Element.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'hreflang' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "hreflang", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["prefix"];
}
- get type() {
+ get localName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get localName' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["localName"];
}
- set type(V) {
+ get tagName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get tagName' called on an object that is not a valid instance of Element.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["tagName"];
}
- get text() {
+ get id() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get text' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get id' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["text"];
+ const value = esValue[implSymbol].getAttributeNS(null, "id");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set text(V) {
+ set id(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set text' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set id' called on an object that is not a valid instance of Element.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLAnchorElement': The provided value"
- });
+ V = conversions["DOMString"](V, { context: "Failed to set the 'id' property on 'Element': The provided value" });
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["text"] = V;
+ esValue[implSymbol].setAttributeNS(null, "id", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get coords() {
+ get className() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get coords' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get className' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "coords");
+ const value = esValue[implSymbol].getAttributeNS(null, "class");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set coords(V) {
+ set className(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set coords' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set className' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'coords' property on 'HTMLAnchorElement': The provided value"
+ context: "Failed to set the 'className' property on 'Element': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "coords", V);
+ esValue[implSymbol].setAttributeNS(null, "class", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get charset() {
+ get classList() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get classList' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charset");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "classList", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["classList"]);
+ });
}
- set charset(V) {
+ set classList(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set classList' called on an object that is not a valid instance of Element.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'charset' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const Q = esValue["classList"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'classList' is not an object");
}
+ Reflect.set(Q, "value", V);
}
- get name() {
+ get slot() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get slot' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "slot");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set slot(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set slot' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLAnchorElement': The provided value"
+ context: "Failed to set the 'slot' property on 'Element': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol].setAttributeNS(null, "slot", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rev() {
+ get attributes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rev' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get attributes' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rev");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "attributes", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["attributes"]);
+ });
}
- set rev(V) {
+ get shadowRoot() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set rev' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get shadowRoot' called on an object that is not a valid instance of Element.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rev' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rev", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
}
- get shape() {
+ get outerHTML() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get shape' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get outerHTML' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "shape");
- return value === null ? "" : value;
+ return esValue[implSymbol]["outerHTML"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set shape(V) {
+ set outerHTML(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set shape' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set outerHTML' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'shape' property on 'HTMLAnchorElement': The provided value"
+ context: "Failed to set the 'outerHTML' property on 'Element': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "shape", V);
+ esValue[implSymbol]["outerHTML"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get href() {
+ get scrollTop() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get scrollTop' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["scrollTop"];
}
- set href(V) {
+ set scrollTop(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set scrollTop' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLAnchorElement': The provided value"
+ V = conversions["unrestricted double"](V, {
+ context: "Failed to set the 'scrollTop' property on 'Element': The provided value"
});
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["href"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["scrollTop"] = V;
}
- toString() {
- const esValue = this;
+ get scrollLeft() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get scrollLeft' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["scrollLeft"];
}
- get origin() {
+ set scrollLeft(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get origin' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set scrollLeft' called on an object that is not a valid instance of Element.");
}
- return esValue[implSymbol]["origin"];
+ V = conversions["unrestricted double"](V, {
+ context: "Failed to set the 'scrollLeft' property on 'Element': The provided value"
+ });
+
+ esValue[implSymbol]["scrollLeft"] = V;
}
- get protocol() {
+ get scrollWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get protocol' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get scrollWidth' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["protocol"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["scrollWidth"];
}
- set protocol(V) {
+ get scrollHeight() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set protocol' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get scrollHeight' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'protocol' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["protocol"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["scrollHeight"];
}
- get username() {
+ get clientTop() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get username' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get clientTop' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["username"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["clientTop"];
}
- set username(V) {
+ get clientLeft() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set username' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get clientLeft' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'username' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["username"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["clientLeft"];
}
- get password() {
+ get clientWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get password' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get clientWidth' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["password"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["clientWidth"];
}
- set password(V) {
+ get clientHeight() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set password' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get clientHeight' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'password' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["password"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["clientHeight"];
}
- get host() {
+ get innerHTML() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get host' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get innerHTML' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["host"];
+ return esValue[implSymbol]["innerHTML"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set host(V) {
+ set innerHTML(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set host' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'set innerHTML' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'host' property on 'HTMLAnchorElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["host"] = V;
+ esValue[implSymbol]["innerHTML"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get hostname() {
+ get previousElementSibling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hostname' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError(
+ "'get previousElementSibling' called on an object that is not a valid instance of Element."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hostname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
}
- set hostname(V) {
+ get nextElementSibling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hostname' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get nextElementSibling' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hostname' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hostname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
}
- get port() {
+ get children() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get port' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get children' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["port"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "children", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
+ });
}
- set port(V) {
+ get firstElementChild() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set port' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get firstElementChild' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'port' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["port"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
}
- get pathname() {
+ get lastElementChild() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get pathname' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get lastElementChild' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["pathname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
}
- set pathname(V) {
+ get childElementCount() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set pathname' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get childElementCount' called on an object that is not a valid instance of Element.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'pathname' property on 'HTMLAnchorElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["pathname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["childElementCount"];
}
- get search() {
+ get assignedSlot() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get search' called on an object that is not a valid instance of HTMLAnchorElement.");
+ throw new TypeError("'get assignedSlot' called on an object that is not a valid instance of Element.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["search"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
+ }
+ }
+ Object.defineProperties(Element.prototype, {
+ hasAttributes: { enumerable: true },
+ getAttributeNames: { enumerable: true },
+ getAttribute: { enumerable: true },
+ getAttributeNS: { enumerable: true },
+ setAttribute: { enumerable: true },
+ setAttributeNS: { enumerable: true },
+ removeAttribute: { enumerable: true },
+ removeAttributeNS: { enumerable: true },
+ toggleAttribute: { enumerable: true },
+ hasAttribute: { enumerable: true },
+ hasAttributeNS: { enumerable: true },
+ getAttributeNode: { enumerable: true },
+ getAttributeNodeNS: { enumerable: true },
+ setAttributeNode: { enumerable: true },
+ setAttributeNodeNS: { enumerable: true },
+ removeAttributeNode: { enumerable: true },
+ attachShadow: { enumerable: true },
+ closest: { enumerable: true },
+ matches: { enumerable: true },
+ webkitMatchesSelector: { enumerable: true },
+ getElementsByTagName: { enumerable: true },
+ getElementsByTagNameNS: { enumerable: true },
+ getElementsByClassName: { enumerable: true },
+ insertAdjacentElement: { enumerable: true },
+ insertAdjacentText: { enumerable: true },
+ insertAdjacentHTML: { enumerable: true },
+ getClientRects: { enumerable: true },
+ getBoundingClientRect: { enumerable: true },
+ before: { enumerable: true },
+ after: { enumerable: true },
+ replaceWith: { enumerable: true },
+ remove: { enumerable: true },
+ prepend: { enumerable: true },
+ append: { enumerable: true },
+ querySelector: { enumerable: true },
+ querySelectorAll: { enumerable: true },
+ namespaceURI: { enumerable: true },
+ prefix: { enumerable: true },
+ localName: { enumerable: true },
+ tagName: { enumerable: true },
+ id: { enumerable: true },
+ className: { enumerable: true },
+ classList: { enumerable: true },
+ slot: { enumerable: true },
+ attributes: { enumerable: true },
+ shadowRoot: { enumerable: true },
+ outerHTML: { enumerable: true },
+ scrollTop: { enumerable: true },
+ scrollLeft: { enumerable: true },
+ scrollWidth: { enumerable: true },
+ scrollHeight: { enumerable: true },
+ clientTop: { enumerable: true },
+ clientLeft: { enumerable: true },
+ clientWidth: { enumerable: true },
+ clientHeight: { enumerable: true },
+ innerHTML: { enumerable: true },
+ previousElementSibling: { enumerable: true },
+ nextElementSibling: { enumerable: true },
+ children: { enumerable: true },
+ firstElementChild: { enumerable: true },
+ lastElementChild: { enumerable: true },
+ childElementCount: { enumerable: true },
+ assignedSlot: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Element", configurable: true },
+ [Symbol.unscopables]: {
+ value: {
+ slot: true,
+ before: true,
+ after: true,
+ replaceWith: true,
+ remove: true,
+ prepend: true,
+ append: true,
+ __proto__: null
+ },
+ configurable: true
}
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = Element;
- set search(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Element
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set search' called on an object that is not a valid instance of HTMLAnchorElement.");
- }
+const Impl = __nccwpck_require__(5121);
- V = conversions["USVString"](V, {
- context: "Failed to set the 'search' property on 'HTMLAnchorElement': The provided value"
- });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["search"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ }),
- get hash() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 41411:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'get hash' called on an object that is not a valid instance of HTMLAnchorElement.");
- }
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hash"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set hash(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'set hash' called on an object that is not a valid instance of HTMLAnchorElement.");
- }
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "is";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'is' that" });
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hash' property on 'HTMLAnchorElement': The provided value"
- });
+ ret[key] = value;
+ }
+ }
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hash"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 54882:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "extends";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'extends' that" });
+
+ ret[key] = value;
}
}
- Object.defineProperties(HTMLAnchorElement.prototype, {
- target: { enumerable: true },
- download: { enumerable: true },
- rel: { enumerable: true },
- relList: { enumerable: true },
- hreflang: { enumerable: true },
- type: { enumerable: true },
- text: { enumerable: true },
- coords: { enumerable: true },
- charset: { enumerable: true },
- name: { enumerable: true },
- rev: { enumerable: true },
- shape: { enumerable: true },
- href: { enumerable: true },
- toString: { enumerable: true },
- origin: { enumerable: true },
- protocol: { enumerable: true },
- username: { enumerable: true },
- password: { enumerable: true },
- host: { enumerable: true },
- hostname: { enumerable: true },
- port: { enumerable: true },
- pathname: { enumerable: true },
- search: { enumerable: true },
- hash: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLAnchorElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLAnchorElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLAnchorElement
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
-const Impl = __nccwpck_require__(10800);
+
+/***/ }),
+
+/***/ 52015:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+const enumerationValues = new Set(["transparent", "native"]);
+exports.enumerationValues = enumerationValues;
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ const string = `${value}`;
+ if (!enumerationValues.has(string)) {
+ throw new TypeError(`${context} '${string}' is not a valid enumeration value for EndingType`);
+ }
+ return string;
+};
/***/ }),
-/***/ 52446:
+/***/ 65153:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -78162,14 +72479,12 @@ const Impl = __nccwpck_require__(10800);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const ErrorEventInit = __nccwpck_require__(72886);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+const Event = __nccwpck_require__(35348);
-const interfaceName = "HTMLAreaElement";
+const interfaceName = "ErrorEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -78181,7 +72496,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLAreaElement'.`);
+ throw new TypeError(`${context} is not of type 'ErrorEvent'.`);
};
function makeWrapper(globalObject) {
@@ -78189,9 +72504,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLAreaElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["ErrorEvent"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLAreaElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor ErrorEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -78208,7 +72523,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
+ Event._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -78227,7 +72542,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -78243,664 +72558,599 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLAreaElement before HTMLElement");
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate ErrorEvent before Event");
}
- class HTMLAreaElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ class ErrorEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'ErrorEvent': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'ErrorEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = ErrorEventInit.convert(curArg, { context: "Failed to construct 'ErrorEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get alt() {
+ get message() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get message' called on an object that is not a valid instance of ErrorEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alt");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["message"];
}
- set alt(V) {
+ get filename() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get filename' called on an object that is not a valid instance of ErrorEvent.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'alt' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alt", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["filename"];
}
- get coords() {
+ get lineno() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get coords' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get lineno' called on an object that is not a valid instance of ErrorEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "coords");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["lineno"];
}
- set coords(V) {
+ get colno() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set coords' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get colno' called on an object that is not a valid instance of ErrorEvent.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'coords' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "coords", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["colno"];
}
- get shape() {
+ get error() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get shape' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get error' called on an object that is not a valid instance of ErrorEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "shape");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["error"];
}
+ }
+ Object.defineProperties(ErrorEvent.prototype, {
+ message: { enumerable: true },
+ filename: { enumerable: true },
+ lineno: { enumerable: true },
+ colno: { enumerable: true },
+ error: { enumerable: true },
+ [Symbol.toStringTag]: { value: "ErrorEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = ErrorEvent;
- set shape(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: ErrorEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set shape' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+const Impl = __nccwpck_require__(21385);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'shape' property on 'HTMLAreaElement': The provided value"
- });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "shape", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ }),
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 72886:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set target(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'set target' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+const EventInit = __nccwpck_require__(4895);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLAreaElement': The provided value"
- });
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ {
+ const key = "colno";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'colno' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
}
+ }
- get rel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ {
+ const key = "error";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["any"](value, { context: context + " has member 'error' that" });
- if (!exports.is(esValue)) {
- throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rel");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ {
+ const key = "filename";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["USVString"](value, { context: context + " has member 'filename' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = "";
}
+ }
- set rel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ {
+ const key = "lineno";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'lineno' that" });
- if (!exports.is(esValue)) {
- throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rel' property on 'HTMLAreaElement': The provided value"
- });
+ {
+ const key = "message";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'message' that" });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rel", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ ret[key] = value;
+ } else {
+ ret[key] = "";
}
+ }
+};
- get relList() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
- return utils.getSameObject(this, "relList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
- });
- }
- set relList(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+/***/ 35348:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- const Q = esValue["relList"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'relList' is not an object");
- }
- Reflect.set(Q, "value", V);
- }
+"use strict";
- get noHref() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get noHref' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "nohref");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const EventInit = __nccwpck_require__(4895);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- set noHref(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "Event";
- if (!exports.is(esValue)) {
- throw new TypeError("'set noHref' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Event'.`);
+};
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noHref' property on 'HTMLAreaElement': The provided value"
- });
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "nohref", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "nohref");
+ const ctor = globalObject[ctorRegistrySymbol]["Event"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Event is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ Object.defineProperties(
+ wrapper,
+ Object.getOwnPropertyDescriptors({
+ get isTrusted() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get isTrusted' called on an object that is not a valid instance of Event.");
}
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+
+ return esValue[implSymbol]["isTrusted"];
}
- }
+ })
+ );
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperties(wrapper, { isTrusted: { configurable: false } });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLAreaElement': The provided value"
- });
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["href"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- toString() {
- const esValue = this;
- if (!exports.is(esValue)) {
- throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAreaElement.");
- }
+const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'Event': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'Event': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = EventInit.convert(curArg, { context: "Failed to construct 'Event': parameter 2" });
+ args.push(curArg);
}
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get origin() {
+ composedPath() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get origin' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'composedPath' called on an object that is not a valid instance of Event.");
}
- return esValue[implSymbol]["origin"];
+ return utils.tryWrapperForImpl(esValue[implSymbol].composedPath());
}
- get protocol() {
+ stopPropagation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get protocol' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'stopPropagation' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["protocol"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].stopPropagation();
}
- set protocol(V) {
+ stopImmediatePropagation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set protocol' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'stopImmediatePropagation' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'protocol' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["protocol"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].stopImmediatePropagation();
}
- get username() {
+ preventDefault() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get username' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'preventDefault' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["username"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].preventDefault();
}
- set username(V) {
+ initEvent(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set username' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'initEvent' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'username' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["username"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'initEvent' on 'Event': 1 argument required, but only " + arguments.length + " present."
+ );
}
- }
-
- get password() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get password' called on an object that is not a valid instance of HTMLAreaElement.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'initEvent' on 'Event': parameter 1" });
+ args.push(curArg);
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["password"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, { context: "Failed to execute 'initEvent' on 'Event': parameter 2" });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, { context: "Failed to execute 'initEvent' on 'Event': parameter 3" });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].initEvent(...args);
}
- set password(V) {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set password' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'password' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["password"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["type"];
}
- get host() {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get host' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["host"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
}
- set host(V) {
+ get srcElement() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set host' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get srcElement' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'host' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["host"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["srcElement"]);
}
- get hostname() {
+ get currentTarget() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hostname' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get currentTarget' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hostname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["currentTarget"]);
}
- set hostname(V) {
+ get eventPhase() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hostname' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get eventPhase' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hostname' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hostname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["eventPhase"];
}
- get port() {
+ get cancelBubble() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get port' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get cancelBubble' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["port"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["cancelBubble"];
}
- set port(V) {
+ set cancelBubble(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set port' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'set cancelBubble' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'port' property on 'HTMLAreaElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'cancelBubble' property on 'Event': The provided value"
});
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["port"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["cancelBubble"] = V;
}
- get pathname() {
+ get bubbles() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get pathname' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get bubbles' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["pathname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["bubbles"];
}
- set pathname(V) {
+ get cancelable() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set pathname' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get cancelable' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'pathname' property on 'HTMLAreaElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["pathname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["cancelable"];
}
- get search() {
+ get returnValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get search' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get returnValue' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["search"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["returnValue"];
}
- set search(V) {
+ set returnValue(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set search' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'set returnValue' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'search' property on 'HTMLAreaElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'returnValue' property on 'Event': The provided value"
});
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["search"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["returnValue"] = V;
}
- get hash() {
+ get defaultPrevented() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hash' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get defaultPrevented' called on an object that is not a valid instance of Event.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hash"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["defaultPrevented"];
}
- set hash(V) {
+ get composed() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hash' called on an object that is not a valid instance of HTMLAreaElement.");
+ throw new TypeError("'get composed' called on an object that is not a valid instance of Event.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hash' property on 'HTMLAreaElement': The provided value"
- });
+ return esValue[implSymbol]["composed"];
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hash"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ get timeStamp() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get timeStamp' called on an object that is not a valid instance of Event.");
}
+
+ return esValue[implSymbol]["timeStamp"];
}
}
- Object.defineProperties(HTMLAreaElement.prototype, {
- alt: { enumerable: true },
- coords: { enumerable: true },
- shape: { enumerable: true },
+ Object.defineProperties(Event.prototype, {
+ composedPath: { enumerable: true },
+ stopPropagation: { enumerable: true },
+ stopImmediatePropagation: { enumerable: true },
+ preventDefault: { enumerable: true },
+ initEvent: { enumerable: true },
+ type: { enumerable: true },
target: { enumerable: true },
- rel: { enumerable: true },
- relList: { enumerable: true },
- noHref: { enumerable: true },
- href: { enumerable: true },
- toString: { enumerable: true },
- origin: { enumerable: true },
- protocol: { enumerable: true },
- username: { enumerable: true },
- password: { enumerable: true },
- host: { enumerable: true },
- hostname: { enumerable: true },
- port: { enumerable: true },
- pathname: { enumerable: true },
- search: { enumerable: true },
- hash: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLAreaElement", configurable: true }
+ srcElement: { enumerable: true },
+ currentTarget: { enumerable: true },
+ eventPhase: { enumerable: true },
+ cancelBubble: { enumerable: true },
+ bubbles: { enumerable: true },
+ cancelable: { enumerable: true },
+ returnValue: { enumerable: true },
+ defaultPrevented: { enumerable: true },
+ composed: { enumerable: true },
+ timeStamp: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Event", configurable: true },
+ NONE: { value: 0, enumerable: true },
+ CAPTURING_PHASE: { value: 1, enumerable: true },
+ AT_TARGET: { value: 2, enumerable: true },
+ BUBBLING_PHASE: { value: 3, enumerable: true }
+ });
+ Object.defineProperties(Event, {
+ NONE: { value: 0, enumerable: true },
+ CAPTURING_PHASE: { value: 1, enumerable: true },
+ AT_TARGET: { value: 2, enumerable: true },
+ BUBBLING_PHASE: { value: 3, enumerable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLAreaElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = Event;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLAreaElement
+ value: Event
});
};
-const Impl = __nccwpck_require__(54467);
+const Impl = __nccwpck_require__(61883);
/***/ }),
-/***/ 29972:
+/***/ 23129:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -78909,121 +73159,381 @@ const Impl = __nccwpck_require__(54467);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLMediaElement = __nccwpck_require__(61639);
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ function invokeTheCallbackFunction(event) {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
+ }
-const interfaceName = "HTMLAudioElement";
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLAudioElement'.`);
-};
+ if (typeof value === "function") {
+ event = utils.tryWrapperForImpl(event);
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ callResult = Reflect.apply(value, thisArg, [event]);
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLAudioElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLAudioElement is not installed on the passed global object");
- }
+ callResult = conversions["any"](callResult, { context: context });
- return Object.create(ctor.prototype);
-}
+ return callResult;
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ invokeTheCallbackFunction.construct = event => {
+ event = utils.tryWrapperForImpl(event);
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ let callResult = Reflect.construct(value, [event]);
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLMediaElement._internalSetup(wrapper, globalObject);
-};
+ callResult = conversions["any"](callResult, { context: context });
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ return callResult;
+ };
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ invokeTheCallbackFunction[utils.wrapperSymbol] = value;
+ invokeTheCallbackFunction.objectReference = value;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
+ return invokeTheCallbackFunction;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+/***/ }),
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+/***/ 4895:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-const exposed = new Set(["Window"]);
+"use strict";
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- if (globalObject.HTMLMediaElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLAudioElement before HTMLMediaElement");
- }
- class HTMLAudioElement extends globalObject.HTMLMediaElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "bubbles";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'bubbles' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
}
}
- Object.defineProperties(HTMLAudioElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLAudioElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+
+ {
+ const key = "cancelable";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'cancelable' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLAudioElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLAudioElement
- });
+ {
+ const key = "composed";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'composed' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
};
-const Impl = __nccwpck_require__(29163);
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
/***/ }),
-/***/ 11429:
+/***/ 10694:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ function callTheUserObjectsOperation(event) {
+ let thisArg = utils.tryWrapperForImpl(this);
+ let O = value;
+ let X = O;
+
+ if (typeof O !== "function") {
+ X = O["handleEvent"];
+ if (typeof X !== "function") {
+ throw new TypeError(`${context} does not correctly implement EventListener.`);
+ }
+ thisArg = O;
+ }
+
+ event = utils.tryWrapperForImpl(event);
+
+ let callResult = Reflect.apply(X, thisArg, [event]);
+ }
+
+ callTheUserObjectsOperation[utils.wrapperSymbol] = value;
+ callTheUserObjectsOperation.objectReference = value;
+
+ return callTheUserObjectsOperation;
+};
+
+exports.install = (globalObject, globalNames) => {};
+
+
+/***/ }),
+
+/***/ 25619:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "capture";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'capture' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 22409:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const UIEventInit = __nccwpck_require__(82015);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ UIEventInit._convertInherit(obj, ret, { context });
+
+ {
+ const key = "altKey";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'altKey' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "ctrlKey";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'ctrlKey' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "metaKey";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'metaKey' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierAltGraph";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierAltGraph' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierCapsLock";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierCapsLock' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierFn";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierFn' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierFnLock";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierFnLock' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierHyper";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierHyper' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierNumLock";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierNumLock' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierScrollLock";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierScrollLock' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierSuper";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierSuper' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierSymbol";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierSymbol' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "modifierSymbolLock";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'modifierSymbolLock' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "shiftKey";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'shiftKey' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 71038:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -79032,14 +73542,14 @@ const Impl = __nccwpck_require__(29163);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const EventListener = __nccwpck_require__(10694);
+const AddEventListenerOptions = __nccwpck_require__(34003);
+const EventListenerOptions = __nccwpck_require__(25619);
+const Event = __nccwpck_require__(35348);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLBRElement";
+const interfaceName = "EventTarget";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -79051,7 +73561,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLBRElement'.`);
+ throw new TypeError(`${context} is not of type 'EventTarget'.`);
};
function makeWrapper(globalObject) {
@@ -79059,9 +73569,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLBRElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["EventTarget"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLBRElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor EventTarget is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -79077,9 +73587,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -79097,7 +73605,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -79113,78 +73621,179 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLBRElement before HTMLElement");
- }
- class HTMLBRElement extends globalObject.HTMLElement {
+ class EventTarget {
constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- get clear() {
+ addEventListener(type, callback) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get clear' called on an object that is not a valid instance of HTMLBRElement.");
+ throw new TypeError("'addEventListener' called on an object that is not a valid instance of EventTarget.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "clear");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = EventListener.convert(curArg, {
+ context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 2"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = AddEventListenerOptions.convert(curArg, {
+ context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
+ });
+ } else if (utils.isObject(curArg)) {
+ curArg = AddEventListenerOptions.convert(curArg, {
+ context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3" + " dictionary"
+ });
+ } else if (typeof curArg === "boolean") {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
+ });
+ } else {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
+ });
+ }
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].addEventListener(...args);
}
- set clear(V) {
+ removeEventListener(type, callback) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set clear' called on an object that is not a valid instance of HTMLBRElement.");
+ throw new TypeError("'removeEventListener' called on an object that is not a valid instance of EventTarget.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'clear' property on 'HTMLBRElement': The provided value"
- });
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = EventListener.convert(curArg, {
+ context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 2"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = EventListenerOptions.convert(curArg, {
+ context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
+ });
+ } else if (utils.isObject(curArg)) {
+ curArg = EventListenerOptions.convert(curArg, {
+ context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3" + " dictionary"
+ });
+ } else if (typeof curArg === "boolean") {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
+ });
+ } else {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
+ });
+ }
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].removeEventListener(...args);
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "clear", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ dispatchEvent(event) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'dispatchEvent' called on an object that is not a valid instance of EventTarget.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'dispatchEvent' on 'EventTarget': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Event.convert(curArg, { context: "Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1" });
+ args.push(curArg);
}
+ return esValue[implSymbol].dispatchEvent(...args);
}
}
- Object.defineProperties(HTMLBRElement.prototype, {
- clear: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLBRElement", configurable: true }
+ Object.defineProperties(EventTarget.prototype, {
+ addEventListener: { enumerable: true },
+ removeEventListener: { enumerable: true },
+ dispatchEvent: { enumerable: true },
+ [Symbol.toStringTag]: { value: "EventTarget", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLBRElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = EventTarget;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLBRElement
+ value: EventTarget
});
};
-const Impl = __nccwpck_require__(79978);
+const Impl = __nccwpck_require__(18557);
/***/ }),
-/***/ 95978:
+/***/ 19995:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -79193,14 +73802,10 @@ const Impl = __nccwpck_require__(79978);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLBaseElement";
+const interfaceName = "External";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -79212,7 +73817,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLBaseElement'.`);
+ throw new TypeError(`${context} is not of type 'External'.`);
};
function makeWrapper(globalObject) {
@@ -79220,9 +73825,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLBaseElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["External"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLBaseElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor External is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -79238,9 +73843,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -79258,7 +73861,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -79280,107 +73883,54 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLBaseElement before HTMLElement");
- }
- class HTMLBaseElement extends globalObject.HTMLElement {
+ class External {
constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get href' called on an object that is not a valid instance of HTMLBaseElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set href' called on an object that is not a valid instance of HTMLBaseElement.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLBaseElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["href"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ throw new TypeError("Illegal constructor");
}
- get target() {
+ AddSearchProvider() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of HTMLBaseElement.");
+ throw new TypeError("'AddSearchProvider' called on an object that is not a valid instance of External.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].AddSearchProvider();
}
- set target(V) {
+ IsSearchProviderInstalled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set target' called on an object that is not a valid instance of HTMLBaseElement.");
+ throw new TypeError(
+ "'IsSearchProviderInstalled' called on an object that is not a valid instance of External."
+ );
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLBaseElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].IsSearchProviderInstalled();
}
}
- Object.defineProperties(HTMLBaseElement.prototype, {
- href: { enumerable: true },
- target: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLBaseElement", configurable: true }
+ Object.defineProperties(External.prototype, {
+ AddSearchProvider: { enumerable: true },
+ IsSearchProviderInstalled: { enumerable: true },
+ [Symbol.toStringTag]: { value: "External", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLBaseElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = External;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLBaseElement
+ value: External
});
};
-const Impl = __nccwpck_require__(53710);
+const Impl = __nccwpck_require__(87625);
/***/ }),
-/***/ 84868:
+/***/ 74022:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -79389,16 +73939,12 @@ const Impl = __nccwpck_require__(53710);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
+const Blob = __nccwpck_require__(48350);
+const FilePropertyBag = __nccwpck_require__(3281);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLBodyElement";
+const interfaceName = "File";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -79410,7 +73956,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLBodyElement'.`);
+ throw new TypeError(`${context} is not of type 'File'.`);
};
function makeWrapper(globalObject) {
@@ -79418,9 +73964,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLBodyElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["File"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLBodyElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor File is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -79437,7 +73983,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
+ Blob._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -79456,7 +74002,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -79472,731 +74018,454 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLBodyElement before HTMLElement");
+ if (globalObject.Blob === undefined) {
+ throw new Error("Internal error: attempting to evaluate File before Blob");
}
- class HTMLBodyElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get text' called on an object that is not a valid instance of HTMLBodyElement.");
+ class File extends globalObject.Blob {
+ constructor(fileBits, fileName) {
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to construct 'File': 2 arguments required, but only " + arguments.length + " present."
+ );
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "text");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (!utils.isObject(curArg)) {
+ throw new TypeError("Failed to construct 'File': parameter 1" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = curArg;
+ for (let nextItem of tmp) {
+ if (Blob.is(nextItem)) {
+ nextItem = utils.implForWrapper(nextItem);
+ } else if (utils.isArrayBuffer(nextItem)) {
+ } else if (ArrayBuffer.isView(nextItem)) {
+ } else {
+ nextItem = conversions["USVString"](nextItem, {
+ context: "Failed to construct 'File': parameter 1" + "'s element"
+ });
+ }
+ V.push(nextItem);
+ }
+ curArg = V;
+ }
+ args.push(curArg);
}
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set text' called on an object that is not a valid instance of HTMLBodyElement.");
+ {
+ let curArg = arguments[1];
+ curArg = conversions["USVString"](curArg, { context: "Failed to construct 'File': parameter 2" });
+ args.push(curArg);
}
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLBodyElement': The provided value",
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "text", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[2];
+ curArg = FilePropertyBag.convert(curArg, { context: "Failed to construct 'File': parameter 3" });
+ args.push(curArg);
}
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get link() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get link' called on an object that is not a valid instance of HTMLBodyElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of File.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "link");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["name"];
}
- set link(V) {
+ get lastModified() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set link' called on an object that is not a valid instance of HTMLBodyElement.");
+ throw new TypeError("'get lastModified' called on an object that is not a valid instance of File.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'link' property on 'HTMLBodyElement': The provided value",
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "link", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["lastModified"];
}
+ }
+ Object.defineProperties(File.prototype, {
+ name: { enumerable: true },
+ lastModified: { enumerable: true },
+ [Symbol.toStringTag]: { value: "File", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = File;
- get vLink() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get vLink' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: File
+ });
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "vlink");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const Impl = __nccwpck_require__(66294);
- set vLink(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set vLink' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+/***/ }),
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vLink' property on 'HTMLBodyElement': The provided value",
- treatNullAsEmptyString: true
- });
+/***/ 51414:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "vlink", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+"use strict";
- get aLink() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get aLink' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alink");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- set aLink(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "FileList";
- if (!exports.is(esValue)) {
- throw new TypeError("'set aLink' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'FileList'.`);
+};
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'aLink' property on 'HTMLBodyElement': The provided value",
- treatNullAsEmptyString: true
- });
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alink", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ const ctor = globalObject[ctorRegistrySymbol]["FileList"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor FileList is not installed on the passed global object");
+ }
- get bgColor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Object.create(ctor.prototype);
+}
- if (!exports.is(esValue)) {
- throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- set bgColor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._internalSetup = (wrapper, globalObject) => {};
- if (!exports.is(esValue)) {
- throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLBodyElement': The provided value",
- treatNullAsEmptyString: true
- });
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ wrapper = new Proxy(wrapper, proxyHandler);
- get background() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get background' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "background");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- set background(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper = new Proxy(wrapper, proxyHandler);
- if (!exports.is(esValue)) {
- throw new TypeError("'set background' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'background' property on 'HTMLBodyElement': The provided value"
- });
+const exposed = new Set(["Window", "Worker"]);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "background", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class FileList {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- get onafterprint() {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onafterprint' called on an object that is not a valid instance of HTMLBodyElement.");
+ throw new TypeError("'item' called on an object that is not a valid instance of FileList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
- }
-
- set onafterprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onafterprint' called on an object that is not a valid instance of HTMLBodyElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'item' on 'FileList': 1 argument required, but only " + arguments.length + " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onafterprint' property on 'HTMLBodyElement': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'FileList': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onafterprint"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
}
- get onbeforeprint() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of FileList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
+ return esValue[implSymbol]["length"];
}
+ }
+ Object.defineProperties(FileList.prototype, {
+ item: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "FileList", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = FileList;
- set onbeforeprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: FileList
+ });
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeprint' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeprint"] = V;
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
}
-
- get onbeforeunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
- );
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
+ return Reflect.get(target, P, receiver);
}
-
- set onbeforeunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeunload' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeunload"] = V;
+ if (!desc.get && !desc.set) {
+ return desc.value;
}
-
- get onhashchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onhashchange' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
}
+ return Reflect.apply(getter, receiver, []);
+ },
- set onhashchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onhashchange' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onhashchange' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onhashchange"] = V;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
}
-
- get onlanguagechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
}
-
- set onlanguagechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onlanguagechange' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onlanguagechange"] = V;
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
}
+ return false;
+ },
- get onmessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmessage' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+ ownKeys(target) {
+ const keys = new Set();
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
}
- set onmessage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmessage' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessage' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ },
- get onmessageerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
}
+ let ignoreNamedProps = false;
- set onmessageerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessageerror' property on 'HTMLBodyElement': The provided value"
- });
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
- esValue[implSymbol]["onmessageerror"] = V;
+ ignoreNamedProps = true;
}
- get onoffline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onoffline' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
}
-
- set onoffline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onoffline' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onoffline' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onoffline"] = V;
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
}
+ let ownDesc;
- get ononline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ononline' called on an object that is not a valid instance of HTMLBodyElement.");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
}
- set ononline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ononline' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ononline' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["ononline"] = V;
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
}
-
- get onpagehide() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onpagehide' called on an object that is not a valid instance of HTMLBodyElement.");
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- set onpagehide(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpagehide' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpagehide' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onpagehide"] = V;
+ if (!ownDesc.writable) {
+ return false;
}
-
- get onpageshow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onpageshow' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
+ if (!utils.isObject(receiver)) {
+ return false;
}
-
- set onpageshow(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpageshow' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpageshow' property on 'HTMLBodyElement': The provided value"
- });
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
}
- esValue[implSymbol]["onpageshow"] = V;
- }
-
- get onpopstate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onpopstate' called on an object that is not a valid instance of HTMLBodyElement.");
+ if (!existingDesc.writable) {
+ return false;
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- set onpopstate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpopstate' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpopstate' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onpopstate"] = V;
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
}
- get onrejectionhandled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
}
- set onrejectionhandled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
+ return Reflect.defineProperty(target, P, desc);
+ },
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onrejectionhandled' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onrejectionhandled"] = V;
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
}
- get onstorage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onstorage' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
}
- set onstorage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onstorage' called on an object that is not a valid instance of HTMLBodyElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onstorage' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onstorage"] = V;
- }
+ return Reflect.deleteProperty(target, P);
+ },
- get onunhandledrejection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ preventExtensions() {
+ return false;
+ }
+};
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
+const Impl = __nccwpck_require__(87378);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
- }
- set onunhandledrejection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
+/***/ 3281:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onunhandledrejection' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onunhandledrejection"] = V;
- }
+"use strict";
- get onunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onunload' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
- }
+const BlobPropertyBag = __nccwpck_require__(72334);
- set onunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ BlobPropertyBag._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError("'set onunload' called on an object that is not a valid instance of HTMLBodyElement.");
- }
+ {
+ const key = "lastModified";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["long long"](value, { context: context + " has member 'lastModified' that" });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onunload' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onunload"] = V;
+ ret[key] = value;
}
}
- Object.defineProperties(HTMLBodyElement.prototype, {
- text: { enumerable: true },
- link: { enumerable: true },
- vLink: { enumerable: true },
- aLink: { enumerable: true },
- bgColor: { enumerable: true },
- background: { enumerable: true },
- onafterprint: { enumerable: true },
- onbeforeprint: { enumerable: true },
- onbeforeunload: { enumerable: true },
- onhashchange: { enumerable: true },
- onlanguagechange: { enumerable: true },
- onmessage: { enumerable: true },
- onmessageerror: { enumerable: true },
- onoffline: { enumerable: true },
- ononline: { enumerable: true },
- onpagehide: { enumerable: true },
- onpageshow: { enumerable: true },
- onpopstate: { enumerable: true },
- onrejectionhandled: { enumerable: true },
- onstorage: { enumerable: true },
- onunhandledrejection: { enumerable: true },
- onunload: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLBodyElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLBodyElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLBodyElement
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
-const Impl = __nccwpck_require__(32574);
-
/***/ }),
-/***/ 87392:
+/***/ 82142:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -80205,14 +74474,13 @@ const Impl = __nccwpck_require__(32574);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const Blob = __nccwpck_require__(48350);
+const EventHandlerNonNull = __nccwpck_require__(23129);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+const EventTarget = __nccwpck_require__(71038);
-const interfaceName = "HTMLButtonElement";
+const interfaceName = "FileReader";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -80224,7 +74492,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLButtonElement'.`);
+ throw new TypeError(`${context} is not of type 'FileReader'.`);
};
function makeWrapper(globalObject) {
@@ -80232,9 +74500,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLButtonElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["FileReader"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLButtonElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor FileReader is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -80251,7 +74519,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
+ EventTarget._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -80270,7 +74538,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -80286,50 +74554,54 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLButtonElement before HTMLElement");
+ if (globalObject.EventTarget === undefined) {
+ throw new Error("Internal error: attempting to evaluate FileReader before EventTarget");
}
- class HTMLButtonElement extends globalObject.HTMLElement {
+ class FileReader extends globalObject.EventTarget {
constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- checkValidity() {
+ readAsArrayBuffer(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'readAsArrayBuffer' called on an object that is not a valid instance of FileReader.");
}
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLButtonElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'readAsArrayBuffer' on 'FileReader': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- return esValue[implSymbol].reportValidity();
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Blob.convert(curArg, {
+ context: "Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].readAsArrayBuffer(...args);
}
- setCustomValidity(error) {
+ readAsBinaryString(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLButtonElement."
- );
+ throw new TypeError("'readAsBinaryString' called on an object that is not a valid instance of FileReader.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLButtonElement': 1 argument required, but only " +
+ "Failed to execute 'readAsBinaryString' on 'FileReader': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -80337,361 +74609,311 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLButtonElement': parameter 1"
+ curArg = Blob.convert(curArg, {
+ context: "Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].setCustomValidity(...args);
+ return esValue[implSymbol].readAsBinaryString(...args);
}
- get autofocus() {
+ readAsText(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'readAsText' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'readAsText' on 'FileReader': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
- }
-
- set autofocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLButtonElement.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Blob.convert(curArg, { context: "Failed to execute 'readAsText' on 'FileReader': parameter 1" });
+ args.push(curArg);
}
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'readAsText' on 'FileReader': parameter 2"
+ });
}
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ args.push(curArg);
}
+ return esValue[implSymbol].readAsText(...args);
}
- get disabled() {
+ readAsDataURL(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'readAsDataURL' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'readAsDataURL' on 'FileReader': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Blob.convert(curArg, { context: "Failed to execute 'readAsDataURL' on 'FileReader': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].readAsDataURL(...args);
}
- set disabled(V) {
+ abort() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'abort' called on an object that is not a valid instance of FileReader.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].abort();
}
- get form() {
+ get readyState() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'get readyState' called on an object that is not a valid instance of FileReader.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ return esValue[implSymbol]["readyState"];
}
- get formNoValidate() {
+ get result() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
- );
+ throw new TypeError("'get result' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "formnovalidate");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["result"]);
}
- set formNoValidate(V) {
+ get error() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
- );
+ throw new TypeError("'get error' called on an object that is not a valid instance of FileReader.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'formNoValidate' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "formnovalidate", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "formnovalidate");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["error"]);
}
- get formTarget() {
+ get onloadstart() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get formTarget' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'get onloadstart' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "formtarget");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
}
- set formTarget(V) {
+ set onloadstart(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set formTarget' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'set onloadstart' called on an object that is not a valid instance of FileReader.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'formTarget' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "formtarget", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadstart' property on 'FileReader': The provided value"
+ });
}
+ esValue[implSymbol]["onloadstart"] = V;
}
- get name() {
+ get onprogress() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'get onprogress' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
}
- set name(V) {
+ set onprogress(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'set onprogress' called on an object that is not a valid instance of FileReader.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onprogress' property on 'FileReader': The provided value"
+ });
}
+ esValue[implSymbol]["onprogress"] = V;
}
- get type() {
+ get onload() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'get onload' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["type"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
}
- set type(V) {
+ set onload(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'set onload' called on an object that is not a valid instance of FileReader.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["type"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onload' property on 'FileReader': The provided value"
+ });
}
+ esValue[implSymbol]["onload"] = V;
}
- get value() {
+ get onabort() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'get onabort' called on an object that is not a valid instance of FileReader.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
}
- set value(V) {
+ set onabort(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'set onabort' called on an object that is not a valid instance of FileReader.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLButtonElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onabort' property on 'FileReader': The provided value"
+ });
}
+ esValue[implSymbol]["onabort"] = V;
}
- get willValidate() {
+ get onerror() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLButtonElement."
- );
+ throw new TypeError("'get onerror' called on an object that is not a valid instance of FileReader.");
}
- return esValue[implSymbol]["willValidate"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
}
- get validity() {
+ set onerror(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'set onerror' called on an object that is not a valid instance of FileReader.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onerror' property on 'FileReader': The provided value"
+ });
+ }
+ esValue[implSymbol]["onerror"] = V;
}
- get validationMessage() {
+ get onloadend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLButtonElement."
- );
+ throw new TypeError("'get onloadend' called on an object that is not a valid instance of FileReader.");
}
- return esValue[implSymbol]["validationMessage"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
}
- get labels() {
+ set onloadend(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLButtonElement.");
+ throw new TypeError("'set onloadend' called on an object that is not a valid instance of FileReader.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadend' property on 'FileReader': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadend"] = V;
}
}
- Object.defineProperties(HTMLButtonElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- autofocus: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- formNoValidate: { enumerable: true },
- formTarget: { enumerable: true },
- name: { enumerable: true },
- type: { enumerable: true },
- value: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLButtonElement", configurable: true }
+ Object.defineProperties(FileReader.prototype, {
+ readAsArrayBuffer: { enumerable: true },
+ readAsBinaryString: { enumerable: true },
+ readAsText: { enumerable: true },
+ readAsDataURL: { enumerable: true },
+ abort: { enumerable: true },
+ readyState: { enumerable: true },
+ result: { enumerable: true },
+ error: { enumerable: true },
+ onloadstart: { enumerable: true },
+ onprogress: { enumerable: true },
+ onload: { enumerable: true },
+ onabort: { enumerable: true },
+ onerror: { enumerable: true },
+ onloadend: { enumerable: true },
+ [Symbol.toStringTag]: { value: "FileReader", configurable: true },
+ EMPTY: { value: 0, enumerable: true },
+ LOADING: { value: 1, enumerable: true },
+ DONE: { value: 2, enumerable: true }
+ });
+ Object.defineProperties(FileReader, {
+ EMPTY: { value: 0, enumerable: true },
+ LOADING: { value: 1, enumerable: true },
+ DONE: { value: 2, enumerable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLButtonElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = FileReader;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLButtonElement
+ value: FileReader
});
};
-const Impl = __nccwpck_require__(5009);
+const Impl = __nccwpck_require__(75394);
/***/ }),
-/***/ 15063:
+/***/ 66651:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -80700,15 +74922,12 @@ const Impl = __nccwpck_require__(5009);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const BlobCallback = __nccwpck_require__(45775);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const FocusEventInit = __nccwpck_require__(89088);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+const UIEvent = __nccwpck_require__(58078);
-const interfaceName = "HTMLCanvasElement";
+const interfaceName = "FocusEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -80720,7 +74939,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLCanvasElement'.`);
+ throw new TypeError(`${context} is not of type 'FocusEvent'.`);
};
function makeWrapper(globalObject) {
@@ -80728,9 +74947,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLCanvasElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["FocusEvent"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLCanvasElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor FocusEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -80747,7 +74966,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
+ UIEvent._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -80766,7 +74985,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -80789,208 +75008,106 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLCanvasElement before HTMLElement");
+ if (globalObject.UIEvent === undefined) {
+ throw new Error("Internal error: attempting to evaluate FocusEvent before UIEvent");
}
- class HTMLCanvasElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- getContext(contextId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getContext' called on an object that is not a valid instance of HTMLCanvasElement.");
- }
-
+ class FocusEvent extends globalObject.UIEvent {
+ constructor(type) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to construct 'FocusEvent': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getContext' on 'HTMLCanvasElement': parameter 1"
- });
- args.push(curArg);
- }
- for (let i = 1; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'getContext' on 'HTMLCanvasElement': parameter " + (i + 1)
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getContext(...args));
- }
-
- toDataURL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'toDataURL' called on an object that is not a valid instance of HTMLCanvasElement.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toDataURL' on 'HTMLCanvasElement': parameter 1"
- });
- }
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'FocusEvent': parameter 1" });
args.push(curArg);
}
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'toDataURL' on 'HTMLCanvasElement': parameter 2"
- });
- }
+ curArg = FocusEventInit.convert(curArg, { context: "Failed to construct 'FocusEvent': parameter 2" });
args.push(curArg);
}
- return esValue[implSymbol].toDataURL(...args);
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- toBlob(callback) {
+ get relatedTarget() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toBlob' called on an object that is not a valid instance of HTMLCanvasElement.");
+ throw new TypeError("'get relatedTarget' called on an object that is not a valid instance of FocusEvent.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'toBlob' on 'HTMLCanvasElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = BlobCallback.convert(curArg, {
- context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 2"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 3"
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].toBlob(...args);
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLCanvasElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["width"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);
}
+ }
+ Object.defineProperties(FocusEvent.prototype, {
+ relatedTarget: { enumerable: true },
+ [Symbol.toStringTag]: { value: "FocusEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = FocusEvent;
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: FocusEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLCanvasElement.");
- }
+const Impl = __nccwpck_require__(8703);
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'width' property on 'HTMLCanvasElement': The provided value"
- });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["width"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ }),
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 89088:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLCanvasElement.");
- }
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["height"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLCanvasElement.");
- }
+const EventTarget = __nccwpck_require__(71038);
+const UIEventInit = __nccwpck_require__(82015);
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'height' property on 'HTMLCanvasElement': The provided value"
- });
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ UIEventInit._convertInherit(obj, ret, { context });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["height"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ const key = "relatedTarget";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = EventTarget.convert(value, { context: context + " has member 'relatedTarget' that" });
}
+ ret[key] = value;
+ } else {
+ ret[key] = null;
}
}
- Object.defineProperties(HTMLCanvasElement.prototype, {
- getContext: { enumerable: true },
- toDataURL: { enumerable: true },
- toBlob: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLCanvasElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLCanvasElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLCanvasElement
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
-const Impl = __nccwpck_require__(95083);
-
/***/ }),
-/***/ 49672:
+/***/ 75261:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -80999,10 +75116,42 @@ const Impl = __nccwpck_require__(95083);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const HTMLFormElement = __nccwpck_require__(37670);
+const Blob = __nccwpck_require__(48350);
+const Function = __nccwpck_require__(79936);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "HTMLCollection";
+const interfaceName = "FormData";
+
+const IteratorPrototype = Object.create(utils.IteratorPrototype, {
+ next: {
+ value: function next() {
+ const internal = this && this[utils.iterInternalSymbol];
+ if (!internal) {
+ throw new TypeError("next() called on a value that is not an iterator prototype object");
+ }
+
+ const { target, kind, index } = internal;
+ const values = Array.from(target[implSymbol]);
+ const len = values.length;
+ if (index >= len) {
+ return { value: undefined, done: true };
+ }
+
+ const pair = values[index];
+ internal.index = index + 1;
+ return utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind);
+ },
+ writable: true,
+ enumerable: true,
+ configurable: true
+ },
+ [Symbol.toStringTag]: {
+ value: "FormData Iterator",
+ configurable: true
+ }
+});
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -81014,7 +75163,16 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLCollection'.`);
+ throw new TypeError(`${context} is not of type 'FormData'.`);
+};
+
+exports.createDefaultIterator = (target, kind) => {
+ const iterator = Object.create(IteratorPrototype);
+ Object.defineProperty(iterator, utils.iterInternalSymbol, {
+ value: { target, kind, index: 0 },
+ configurable: true
+ });
+ return iterator;
};
function makeWrapper(globalObject) {
@@ -81022,9 +75180,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLCollection"];
+ const ctor = globalObject[ctorRegistrySymbol]["FormData"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLCollection is not installed on the passed global object");
+ throw new Error("Internal error: constructor FormData is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -81051,8 +75209,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -81060,8 +75216,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -81069,8 +75225,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -81078,285 +75232,401 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class HTMLCollection {
+ class FormData {
constructor() {
- throw new TypeError("Illegal constructor");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = HTMLFormElement.convert(curArg, { context: "Failed to construct 'FormData': parameter 1" });
+ }
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- item(index) {
+ append(name, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of HTMLCollection.");
+ throw new TypeError("'append' called on an object that is not a valid instance of FormData.");
+ }
+
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'append' on 'FormData': 2 arguments required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ switch (arguments.length) {
+ case 2:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'append' on 'FormData': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (Blob.is(curArg)) {
+ {
+ let curArg = arguments[1];
+ curArg = Blob.convert(curArg, { context: "Failed to execute 'append' on 'FormData': parameter 2" });
+ args.push(curArg);
+ }
+ } else {
+ {
+ let curArg = arguments[1];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'append' on 'FormData': parameter 2"
+ });
+ args.push(curArg);
+ }
+ }
+ }
+ break;
+ default:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'append' on 'FormData': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = Blob.convert(curArg, { context: "Failed to execute 'append' on 'FormData': parameter 2" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'append' on 'FormData': parameter 3"
+ });
+ }
+ args.push(curArg);
+ }
+ }
+ return esValue[implSymbol].append(...args);
+ }
+
+ delete(name) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'delete' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'item' on 'HTMLCollection': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'delete' on 'FormData': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'HTMLCollection': parameter 1"
- });
+ curArg = conversions["USVString"](curArg, { context: "Failed to execute 'delete' on 'FormData': parameter 1" });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
+ return esValue[implSymbol].delete(...args);
}
- namedItem(name) {
+ get(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'namedItem' called on an object that is not a valid instance of HTMLCollection.");
+ throw new TypeError("'get' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'namedItem' on 'HTMLCollection': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'get' on 'FormData': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'HTMLCollection': parameter 1"
- });
+ curArg = conversions["USVString"](curArg, { context: "Failed to execute 'get' on 'FormData': parameter 1" });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].get(...args));
}
- get length() {
+ getAll(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getAll' called on an object that is not a valid instance of FormData.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getAll' on 'FormData': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, { context: "Failed to execute 'getAll' on 'FormData': parameter 1" });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAll(...args));
+ }
+ has(name) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of HTMLCollection.");
+ throw new TypeError("'has' called on an object that is not a valid instance of FormData.");
}
- return esValue[implSymbol]["length"];
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'has' on 'FormData': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, { context: "Failed to execute 'has' on 'FormData': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].has(...args);
+ }
+
+ set(name, value) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set' called on an object that is not a valid instance of FormData.");
+ }
+
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'set' on 'FormData': 2 arguments required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ switch (arguments.length) {
+ case 2:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'set' on 'FormData': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (Blob.is(curArg)) {
+ {
+ let curArg = arguments[1];
+ curArg = Blob.convert(curArg, { context: "Failed to execute 'set' on 'FormData': parameter 2" });
+ args.push(curArg);
+ }
+ } else {
+ {
+ let curArg = arguments[1];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'set' on 'FormData': parameter 2"
+ });
+ args.push(curArg);
+ }
+ }
+ }
+ break;
+ default:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'set' on 'FormData': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = Blob.convert(curArg, { context: "Failed to execute 'set' on 'FormData': parameter 2" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'set' on 'FormData': parameter 3"
+ });
+ }
+ args.push(curArg);
+ }
+ }
+ return esValue[implSymbol].set(...args);
+ }
+
+ keys() {
+ if (!exports.is(this)) {
+ throw new TypeError("'keys' called on an object that is not a valid instance of FormData.");
+ }
+ return exports.createDefaultIterator(this, "key");
+ }
+
+ values() {
+ if (!exports.is(this)) {
+ throw new TypeError("'values' called on an object that is not a valid instance of FormData.");
+ }
+ return exports.createDefaultIterator(this, "value");
+ }
+
+ entries() {
+ if (!exports.is(this)) {
+ throw new TypeError("'entries' called on an object that is not a valid instance of FormData.");
+ }
+ return exports.createDefaultIterator(this, "key+value");
+ }
+
+ forEach(callback) {
+ if (!exports.is(this)) {
+ throw new TypeError("'forEach' called on an object that is not a valid instance of FormData.");
+ }
+ if (arguments.length < 1) {
+ throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
+ }
+ callback = Function.convert(callback, {
+ context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
+ });
+ const thisArg = arguments[1];
+ let pairs = Array.from(this[implSymbol]);
+ let i = 0;
+ while (i < pairs.length) {
+ const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
+ callback.call(thisArg, value, key, this);
+ pairs = Array.from(this[implSymbol]);
+ i++;
+ }
}
}
- Object.defineProperties(HTMLCollection.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLCollection", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ Object.defineProperties(FormData.prototype, {
+ append: { enumerable: true },
+ delete: { enumerable: true },
+ get: { enumerable: true },
+ getAll: { enumerable: true },
+ has: { enumerable: true },
+ set: { enumerable: true },
+ keys: { enumerable: true },
+ values: { enumerable: true },
+ entries: { enumerable: true },
+ forEach: { enumerable: true },
+ [Symbol.toStringTag]: { value: "FormData", configurable: true },
+ [Symbol.iterator]: { value: FormData.prototype.entries, configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLCollection;
+ globalObject[ctorRegistrySymbol][interfaceName] = FormData;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLCollection
+ value: FormData
});
};
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
+const Impl = __nccwpck_require__(22731);
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
- ownKeys(target) {
- const keys = new Set();
+/***/ }),
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+/***/ 79936:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
+"use strict";
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (typeof value !== "function") {
+ throw new TypeError(context + " is not a function");
+ }
+
+ function invokeTheCallbackFunction(...args) {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
- const namedValue = target[implSymbol].namedItem(P);
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: false,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
+ for (let i = 0; i < args.length; i++) {
+ args[i] = utils.tryWrapperForImpl(args[i]);
}
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
+ callResult = Reflect.apply(value, thisArg, args);
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- }
- let ownDesc;
+ callResult = conversions["any"](callResult, { context: context });
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
+ return callResult;
+ }
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
+ invokeTheCallbackFunction.construct = (...args) => {
+ for (let i = 0; i < args.length; i++) {
+ args[i] = utils.tryWrapperForImpl(args[i]);
}
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
+ let callResult = Reflect.construct(value, args);
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].namedItem(P) !== null);
- if (!creating) {
- return false;
- }
- }
- return Reflect.defineProperty(target, P, desc);
- },
+ callResult = conversions["any"](callResult, { context: context });
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+ return callResult;
+ };
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
+ invokeTheCallbackFunction[utils.wrapperSymbol] = value;
+ invokeTheCallbackFunction.objectReference = value;
- if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
- return false;
- }
+ return invokeTheCallbackFunction;
+};
- return Reflect.deleteProperty(target, P);
- },
- preventExtensions() {
- return false;
+/***/ }),
+
+/***/ 99981:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "composed";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'composed' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
}
};
-const Impl = __nccwpck_require__(93009);
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
/***/ }),
-/***/ 91646:
+/***/ 41448:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -81365,14 +75635,14 @@ const Impl = __nccwpck_require__(93009);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLDListElement";
+const interfaceName = "HTMLAnchorElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -81384,7 +75654,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLDListElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLAnchorElement'.`);
};
function makeWrapper(globalObject) {
@@ -81392,9 +75662,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDListElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLAnchorElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDListElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLAnchorElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -81430,7 +75700,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -81454,1023 +75724,832 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDListElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLAnchorElement before HTMLElement");
}
- class HTMLDListElement extends globalObject.HTMLElement {
+ class HTMLAnchorElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get compact() {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLDListElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
+ const value = esValue[implSymbol].getAttributeNS(null, "target");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set compact(V) {
+ set target(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLDListElement.");
+ throw new TypeError("'set target' called on an object that is not a valid instance of HTMLAnchorElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLDListElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'target' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
+ esValue[implSymbol].setAttributeNS(null, "target", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLDListElement.prototype, {
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDListElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDListElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDListElement
- });
-};
+ get download() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(59084);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get download' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "download");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ }),
+ set download(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 77558:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set download' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-"use strict";
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'download' property on 'HTMLAnchorElement': The provided value"
+ });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "download", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get rel() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-const interfaceName = "HTMLDataElement";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "rel");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLDataElement'.`);
-};
+ set rel(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDataElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDataElement is not installed on the passed global object");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'rel' property on 'HTMLAnchorElement': The provided value"
+ });
- return Object.create(ctor.prototype);
-}
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "rel", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ get relList() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ return utils.getSameObject(this, "relList", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
+ });
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ set relList(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ const Q = esValue["relList"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'relList' is not an object");
+ }
+ Reflect.set(Q, "value", V);
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ get hreflang() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get hreflang' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "hreflang");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const exposed = new Set(["Window"]);
+ set hreflang(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set hreflang' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDataElement before HTMLElement");
- }
- class HTMLDataElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'hreflang' property on 'HTMLAnchorElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "hreflang", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get value() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLDataElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLDataElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLDataElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLDataElement.prototype, {
- value: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDataElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDataElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDataElement
- });
-};
+ get text() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(3680);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get text' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["text"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ }),
+ set text(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 98633:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set text' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-"use strict";
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'text' property on 'HTMLAnchorElement': The provided value"
+ });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["text"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get coords() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get coords' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-const interfaceName = "HTMLDataListElement";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "coords");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLDataListElement'.`);
-};
+ set coords(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set coords' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDataListElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDataListElement is not installed on the passed global object");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'coords' property on 'HTMLAnchorElement': The provided value"
+ });
- return Object.create(ctor.prototype);
-}
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "coords", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
+ get charset() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDataListElement before HTMLElement");
- }
- class HTMLDataListElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "charset");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get options() {
+ set charset(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get options' called on an object that is not a valid instance of HTMLDataListElement.");
+ throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLAnchorElement.");
}
- return utils.getSameObject(this, "options", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["options"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'charset' property on 'HTMLAnchorElement': The provided value"
});
- }
- }
- Object.defineProperties(HTMLDataListElement.prototype, {
- options: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDataListElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDataListElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDataListElement
- });
-};
-
-const Impl = __nccwpck_require__(70153);
-
-
-/***/ }),
-
-/***/ 14958:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDetailsElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLDetailsElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDetailsElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDetailsElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDetailsElement before HTMLElement");
- }
- class HTMLDetailsElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "charset", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get open() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get open' called on an object that is not a valid instance of HTMLDetailsElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "open");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set open(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set open' called on an object that is not a valid instance of HTMLDetailsElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLAnchorElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'open' property on 'HTMLDetailsElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "open", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "open");
- }
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLDetailsElement.prototype, {
- open: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDetailsElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDetailsElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDetailsElement
- });
-};
+ get rev() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(72835);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get rev' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "rev");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ }),
+ set rev(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 94943:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set rev' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-"use strict";
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'rev' property on 'HTMLAnchorElement': The provided value"
+ });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "rev", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get shape() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get shape' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-const interfaceName = "HTMLDialogElement";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "shape");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLDialogElement'.`);
-};
+ set shape(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set shape' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDialogElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDialogElement is not installed on the passed global object");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'shape' property on 'HTMLAnchorElement': The provided value"
+ });
- return Object.create(ctor.prototype);
-}
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "shape", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ get href() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["href"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ set href(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'href' property on 'HTMLAnchorElement': The provided value"
+ });
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["href"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ toString() {
+ const esValue = this;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["href"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const exposed = new Set(["Window"]);
+ get origin() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get origin' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDialogElement before HTMLElement");
- }
- class HTMLDialogElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return esValue[implSymbol]["origin"];
}
- get open() {
+ get protocol() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get open' called on an object that is not a valid instance of HTMLDialogElement.");
+ throw new TypeError("'get protocol' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "open");
+ return esValue[implSymbol]["protocol"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set open(V) {
+ set protocol(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set open' called on an object that is not a valid instance of HTMLDialogElement.");
+ throw new TypeError("'set protocol' called on an object that is not a valid instance of HTMLAnchorElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'open' property on 'HTMLDialogElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'protocol' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "open", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "open");
- }
+ esValue[implSymbol]["protocol"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLDialogElement.prototype, {
- open: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDialogElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDialogElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDialogElement
- });
-};
-
-const Impl = __nccwpck_require__(88845);
-
-
-/***/ }),
-
-/***/ 32964:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+ get username() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get username' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["username"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ set username(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "HTMLDirectoryElement";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set username' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLDirectoryElement'.`);
-};
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'username' property on 'HTMLAnchorElement': The provided value"
+ });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["username"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDirectoryElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDirectoryElement is not installed on the passed global object");
- }
+ get password() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get password' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["password"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set password(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set password' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'password' property on 'HTMLAnchorElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["password"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get host() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get host' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["host"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set host(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set host' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'host' property on 'HTMLAnchorElement': The provided value"
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDirectoryElement before HTMLElement");
- }
- class HTMLDirectoryElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["host"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get compact() {
+ get hostname() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLDirectoryElement.");
+ throw new TypeError("'get hostname' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
+ return esValue[implSymbol]["hostname"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set compact(V) {
+ set hostname(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLDirectoryElement.");
+ throw new TypeError("'set hostname' called on an object that is not a valid instance of HTMLAnchorElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLDirectoryElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'hostname' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
+ esValue[implSymbol]["hostname"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLDirectoryElement.prototype, {
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDirectoryElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDirectoryElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDirectoryElement
- });
-};
-
-const Impl = __nccwpck_require__(44619);
-
-
-/***/ }),
-/***/ 89150:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+ get port() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get port' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["port"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ set port(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "HTMLDivElement";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set port' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLDivElement'.`);
-};
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'port' property on 'HTMLAnchorElement': The provided value"
+ });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["port"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLDivElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLDivElement is not installed on the passed global object");
- }
+ get pathname() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get pathname' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["pathname"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set pathname(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set pathname' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'pathname' property on 'HTMLAnchorElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["pathname"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get search() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get search' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["search"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set search(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set search' called on an object that is not a valid instance of HTMLAnchorElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'search' property on 'HTMLAnchorElement': The provided value"
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLDivElement before HTMLElement");
- }
- class HTMLDivElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["search"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get align() {
+ get hash() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLDivElement.");
+ throw new TypeError("'get hash' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ return esValue[implSymbol]["hash"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set hash(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLDivElement.");
+ throw new TypeError("'set hash' called on an object that is not a valid instance of HTMLAnchorElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLDivElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'hash' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol]["hash"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLDivElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDivElement", configurable: true }
+ Object.defineProperties(HTMLAnchorElement.prototype, {
+ target: { enumerable: true },
+ download: { enumerable: true },
+ rel: { enumerable: true },
+ relList: { enumerable: true },
+ hreflang: { enumerable: true },
+ type: { enumerable: true },
+ text: { enumerable: true },
+ coords: { enumerable: true },
+ charset: { enumerable: true },
+ name: { enumerable: true },
+ rev: { enumerable: true },
+ shape: { enumerable: true },
+ href: { enumerable: true },
+ toString: { enumerable: true },
+ origin: { enumerable: true },
+ protocol: { enumerable: true },
+ username: { enumerable: true },
+ password: { enumerable: true },
+ host: { enumerable: true },
+ hostname: { enumerable: true },
+ port: { enumerable: true },
+ pathname: { enumerable: true },
+ search: { enumerable: true },
+ hash: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLAnchorElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLDivElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLAnchorElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLDivElement
+ value: HTMLAnchorElement
});
};
-const Impl = __nccwpck_require__(80810);
+const Impl = __nccwpck_require__(10800);
/***/ }),
-/***/ 8932:
+/***/ 52446:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -82479,16 +76558,14 @@ const Impl = __nccwpck_require__(80810);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Element = __nccwpck_require__(4444);
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLElement";
+const interfaceName = "HTMLAreaElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -82500,7 +76577,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLAreaElement'.`);
};
function makeWrapper(globalObject) {
@@ -82508,9 +76585,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLAreaElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLAreaElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -82527,7 +76604,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- Element._internalSetup(wrapper, globalObject);
+ HTMLElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -82546,7 +76623,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -82569,2185 +76646,2448 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.Element === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLElement before Element");
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLAreaElement before HTMLElement");
}
- class HTMLElement extends globalObject.Element {
+ class HTMLAreaElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- click() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'click' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return esValue[implSymbol].click();
- }
-
- focus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'focus' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return esValue[implSymbol].focus();
- }
-
- blur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'blur' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return esValue[implSymbol].blur();
- }
-
- get title() {
+ get alt() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get title' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "title");
+ const value = esValue[implSymbol].getAttributeNS(null, "alt");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set title(V) {
+ set alt(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set title' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'title' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'alt' property on 'HTMLAreaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "title", V);
+ esValue[implSymbol].setAttributeNS(null, "alt", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get lang() {
+ get coords() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get lang' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get coords' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "lang");
+ const value = esValue[implSymbol].getAttributeNS(null, "coords");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set lang(V) {
+ set coords(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set lang' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set coords' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'lang' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'coords' property on 'HTMLAreaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "lang", V);
+ esValue[implSymbol].setAttributeNS(null, "coords", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get translate() {
+ get shape() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get translate' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get shape' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["translate"];
+ const value = esValue[implSymbol].getAttributeNS(null, "shape");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set translate(V) {
+ set shape(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set translate' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set shape' called on an object that is not a valid instance of HTMLAreaElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'translate' property on 'HTMLElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'shape' property on 'HTMLAreaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["translate"] = V;
+ esValue[implSymbol].setAttributeNS(null, "shape", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get dir() {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get dir' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["dir"];
+ const value = esValue[implSymbol].getAttributeNS(null, "target");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set dir(V) {
+ set target(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set dir' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set target' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'dir' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'target' property on 'HTMLAreaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["dir"] = V;
+ esValue[implSymbol].setAttributeNS(null, "target", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get hidden() {
+ get rel() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hidden' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "hidden");
+ const value = esValue[implSymbol].getAttributeNS(null, "rel");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set hidden(V) {
+ set rel(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hidden' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLAreaElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'hidden' property on 'HTMLElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'rel' property on 'HTMLAreaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "hidden", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "hidden");
- }
+ esValue[implSymbol].setAttributeNS(null, "rel", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get accessKey() {
+ get relList() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get accessKey' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLAreaElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "accesskey");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "relList", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
+ });
}
- set accessKey(V) {
+ set relList(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set accessKey' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLAreaElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'accessKey' property on 'HTMLElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "accesskey", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const Q = esValue["relList"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'relList' is not an object");
}
+ Reflect.set(Q, "value", V);
}
- get draggable() {
+ get noHref() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get draggable' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get noHref' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["draggable"];
+ return esValue[implSymbol].hasAttributeNS(null, "nohref");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set draggable(V) {
+ set noHref(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set draggable' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set noHref' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["boolean"](V, {
- context: "Failed to set the 'draggable' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'noHref' property on 'HTMLAreaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["draggable"] = V;
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "nohref", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "nohref");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get offsetParent() {
+ get href() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get offsetParent' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["offsetParent"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["href"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get offsetTop() {
+ set href(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get offsetTop' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return esValue[implSymbol]["offsetTop"];
- }
-
- get offsetLeft() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'href' property on 'HTMLAreaElement': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get offsetLeft' called on an object that is not a valid instance of HTMLElement.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["href"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return esValue[implSymbol]["offsetLeft"];
}
- get offsetWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
+ toString() {
+ const esValue = this;
if (!exports.is(esValue)) {
- throw new TypeError("'get offsetWidth' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return esValue[implSymbol]["offsetWidth"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["href"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get offsetHeight() {
+ get origin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get offsetHeight' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get origin' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return esValue[implSymbol]["offsetHeight"];
+ return esValue[implSymbol]["origin"];
}
- get style() {
+ get protocol() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get style' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get protocol' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.getSameObject(this, "style", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["protocol"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set style(V) {
+ set protocol(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set style' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set protocol' called on an object that is not a valid instance of HTMLAreaElement.");
}
- const Q = esValue["style"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'style' is not an object");
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'protocol' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["protocol"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- Reflect.set(Q, "cssText", V);
}
- get onabort() {
+ get username() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onabort' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get username' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["username"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onabort(V) {
+ set username(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onabort' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set username' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onabort' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'username' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["username"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onabort"] = V;
}
- get onauxclick() {
+ get password() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onauxclick' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get password' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["password"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onauxclick(V) {
+ set password(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onauxclick' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set password' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onauxclick' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'password' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["password"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onauxclick"] = V;
}
- get onblur() {
+ get host() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onblur' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get host' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["host"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onblur(V) {
+ set host(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onblur' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set host' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onblur' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'host' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["host"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onblur"] = V;
}
- get oncancel() {
+ get hostname() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get oncancel' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get hostname' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["hostname"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set oncancel(V) {
+ set hostname(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set oncancel' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set hostname' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncancel' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'hostname' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["hostname"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["oncancel"] = V;
}
- get oncanplay() {
+ get port() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get oncanplay' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get port' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["port"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set oncanplay(V) {
+ set port(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set oncanplay' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set port' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncanplay' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'port' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["port"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["oncanplay"] = V;
}
- get oncanplaythrough() {
+ get pathname() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get oncanplaythrough' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get pathname' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["pathname"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set oncanplaythrough(V) {
+ set pathname(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set oncanplaythrough' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set pathname' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncanplaythrough' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'pathname' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["pathname"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["oncanplaythrough"] = V;
}
- get onchange() {
+ get search() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onchange' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get search' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["search"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onchange(V) {
+ set search(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onchange' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set search' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onchange' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'search' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["search"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onchange"] = V;
}
- get onclick() {
+ get hash() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onclick' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get hash' called on an object that is not a valid instance of HTMLAreaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["hash"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onclick(V) {
+ set hash(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onclick' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set hash' called on an object that is not a valid instance of HTMLAreaElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclick' property on 'HTMLElement': The provided value"
- });
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'hash' property on 'HTMLAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["hash"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onclick"] = V;
}
+ }
+ Object.defineProperties(HTMLAreaElement.prototype, {
+ alt: { enumerable: true },
+ coords: { enumerable: true },
+ shape: { enumerable: true },
+ target: { enumerable: true },
+ rel: { enumerable: true },
+ relList: { enumerable: true },
+ noHref: { enumerable: true },
+ href: { enumerable: true },
+ toString: { enumerable: true },
+ origin: { enumerable: true },
+ protocol: { enumerable: true },
+ username: { enumerable: true },
+ password: { enumerable: true },
+ host: { enumerable: true },
+ hostname: { enumerable: true },
+ port: { enumerable: true },
+ pathname: { enumerable: true },
+ search: { enumerable: true },
+ hash: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLAreaElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLAreaElement;
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onclose' called on an object that is not a valid instance of HTMLElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLAreaElement
+ });
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
+const Impl = __nccwpck_require__(54467);
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onclose' called on an object that is not a valid instance of HTMLElement.");
- }
+/***/ }),
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclose' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
+/***/ 29972:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncontextmenu' called on an object that is not a valid instance of HTMLElement.");
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- set oncontextmenu(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLMediaElement = __nccwpck_require__(61639);
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncontextmenu' called on an object that is not a valid instance of HTMLElement.");
- }
+const interfaceName = "HTMLAudioElement";
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncontextmenu' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLAudioElement'.`);
+};
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncuechange' called on an object that is not a valid instance of HTMLElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLAudioElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLAudioElement is not installed on the passed global object");
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
+ return Object.create(ctor.prototype);
+}
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncuechange' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncuechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncuechange"] = V;
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLMediaElement._internalSetup(wrapper, globalObject);
+};
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondblclick' called on an object that is not a valid instance of HTMLElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondblclick' called on an object that is not a valid instance of HTMLElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondblclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const exposed = new Set(["Window"]);
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondrag' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
+ if (globalObject.HTMLMediaElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLAudioElement before HTMLMediaElement");
+ }
+ class HTMLAudioElement extends globalObject.HTMLMediaElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
+ }
+ Object.defineProperties(HTMLAudioElement.prototype, {
+ [Symbol.toStringTag]: { value: "HTMLAudioElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLAudioElement;
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondrag' called on an object that is not a valid instance of HTMLElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLAudioElement
+ });
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondrag' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrag"] = V;
- }
+const Impl = __nccwpck_require__(29163);
- get ondragend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragend' called on an object that is not a valid instance of HTMLElement.");
- }
+/***/ }),
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
- }
+/***/ 11429:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragend' called on an object that is not a valid instance of HTMLElement.");
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragenter' called on an object that is not a valid instance of HTMLElement.");
- }
+const interfaceName = "HTMLBRElement";
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLBRElement'.`);
+};
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragenter' called on an object that is not a valid instance of HTMLElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLBRElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLBRElement is not installed on the passed global object");
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragenter' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
+ return Object.create(ctor.prototype);
+}
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragleave' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragleave' called on an object that is not a valid instance of HTMLElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragleave' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragleave"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragover' called on an object that is not a valid instance of HTMLElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- set ondragover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const exposed = new Set(["Window"]);
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragover' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragover' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragover"] = V;
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLBRElement before HTMLElement");
+ }
+ class HTMLBRElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get ondragstart() {
+ get clear() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ondragstart' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get clear' called on an object that is not a valid instance of HTMLBRElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "clear");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set ondragstart(V) {
+ set clear(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set ondragstart' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set clear' called on an object that is not a valid instance of HTMLBRElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragstart' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'clear' property on 'HTMLBRElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "clear", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["ondragstart"] = V;
}
+ }
+ Object.defineProperties(HTMLBRElement.prototype, {
+ clear: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLBRElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLBRElement;
- get ondrop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondrop' called on an object that is not a valid instance of HTMLElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLBRElement
+ });
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
- }
+const Impl = __nccwpck_require__(79978);
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondrop' called on an object that is not a valid instance of HTMLElement.");
- }
+/***/ }),
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondrop' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
+/***/ 95978:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondurationchange' called on an object that is not a valid instance of HTMLElement.");
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondurationchange' called on an object that is not a valid instance of HTMLElement.");
- }
+const interfaceName = "HTMLBaseElement";
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondurationchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLBaseElement'.`);
+};
- get onemptied() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onemptied' called on an object that is not a valid instance of HTMLElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLBaseElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLBaseElement is not installed on the passed global object");
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
- }
+ return Object.create(ctor.prototype);
+}
- set onemptied(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onemptied' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onemptied' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- get onended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onended' called on an object that is not a valid instance of HTMLElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'set onended' called on an object that is not a valid instance of HTMLElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onended' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const exposed = new Set(["Window"]);
- if (!exports.is(esValue)) {
- throw new TypeError("'get onerror' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLBaseElement before HTMLElement");
+ }
+ class HTMLBaseElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- set onerror(V) {
+ get href() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onerror' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get href' called on an object that is not a valid instance of HTMLBaseElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["href"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onerror"] = V;
}
- get onfocus() {
+ set href(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onfocus' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set href' called on an object that is not a valid instance of HTMLBaseElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'href' property on 'HTMLBaseElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["href"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onfocus(V) {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onfocus' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of HTMLBaseElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onfocus' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "target");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onfocus"] = V;
}
- get oninput() {
+ set target(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get oninput' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set target' called on an object that is not a valid instance of HTMLBaseElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
- }
-
- set oninput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set oninput' called on an object that is not a valid instance of HTMLElement.");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'target' property on 'HTMLBaseElement': The provided value"
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oninput' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "target", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["oninput"] = V;
}
+ }
+ Object.defineProperties(HTMLBaseElement.prototype, {
+ href: { enumerable: true },
+ target: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLBaseElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLBaseElement;
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLBaseElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get oninvalid' called on an object that is not a valid instance of HTMLElement.");
- }
+const Impl = __nccwpck_require__(53710);
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'set oninvalid' called on an object that is not a valid instance of HTMLElement.");
- }
+/***/ 84868:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oninvalid' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oninvalid"] = V;
- }
+"use strict";
- get onkeydown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onkeydown' called on an object that is not a valid instance of HTMLElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
- }
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const EventHandlerNonNull = __nccwpck_require__(23129);
+const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- set onkeydown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "HTMLBodyElement";
- if (!exports.is(esValue)) {
- throw new TypeError("'set onkeydown' called on an object that is not a valid instance of HTMLElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLBodyElement'.`);
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeydown' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeydown"] = V;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLBodyElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLBodyElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLBodyElement before HTMLElement");
+ }
+ class HTMLBodyElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get onkeypress() {
+ get text() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeypress' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get text' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "text");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onkeypress(V) {
+ set text(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onkeypress' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set text' called on an object that is not a valid instance of HTMLBodyElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeypress' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'text' property on 'HTMLBodyElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "text", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onkeypress"] = V;
}
- get onkeyup() {
+ get link() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeyup' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get link' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "link");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onkeyup(V) {
+ set link(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onkeyup' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set link' called on an object that is not a valid instance of HTMLBodyElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeyup' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'link' property on 'HTMLBodyElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "link", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onkeyup"] = V;
}
- get onload() {
+ get vLink() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onload' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get vLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "vlink");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onload(V) {
+ set vLink(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onload' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set vLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onload' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'vLink' property on 'HTMLBodyElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "vlink", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onload"] = V;
}
- get onloadeddata() {
+ get aLink() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onloadeddata' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get aLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "alink");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onloadeddata(V) {
+ set aLink(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadeddata' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set aLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadeddata' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'aLink' property on 'HTMLBodyElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "alink", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onloadeddata"] = V;
}
- get onloadedmetadata() {
+ get bgColor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onloadedmetadata' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onloadedmetadata(V) {
+ set bgColor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadedmetadata' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLBodyElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadedmetadata' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'bgColor' property on 'HTMLBodyElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onloadedmetadata"] = V;
}
- get onloadend() {
+ get background() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onloadend' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get background' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "background");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onloadend(V) {
+ set background(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadend' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set background' called on an object that is not a valid instance of HTMLBodyElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadend' property on 'HTMLElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'background' property on 'HTMLBodyElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "background", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onloadend"] = V;
}
- get onloadstart() {
+ get onafterprint() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onloadstart' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onafterprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
}
- set onloadstart(V) {
+ set onafterprint(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onloadstart' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onafterprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadstart' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onafterprint' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onloadstart"] = V;
+ esValue[implSymbol]["onafterprint"] = V;
}
- get onmousedown() {
+ get onbeforeprint() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmousedown' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
}
- set onmousedown(V) {
+ set onbeforeprint(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmousedown' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmousedown' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onbeforeprint' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmousedown"] = V;
+ esValue[implSymbol]["onbeforeprint"] = V;
}
- get onmouseenter() {
+ get onbeforeunload() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- return;
+ throw new TypeError(
+ "'get onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
}
- set onmouseenter(V) {
+ set onbeforeunload(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- return;
+ throw new TypeError(
+ "'set onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
if (!utils.isObject(V)) {
V = null;
} else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseenter' property on 'HTMLElement': The provided value"
+ V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onbeforeunload' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmouseenter"] = V;
+ esValue[implSymbol]["onbeforeunload"] = V;
}
- get onmouseleave() {
+ get onhashchange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- return;
+ throw new TypeError("'get onhashchange' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
}
- set onmouseleave(V) {
+ set onhashchange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- return;
+ throw new TypeError("'set onhashchange' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseleave' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onhashchange' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmouseleave"] = V;
+ esValue[implSymbol]["onhashchange"] = V;
}
- get onmousemove() {
+ get onlanguagechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmousemove' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
}
- set onmousemove(V) {
+ set onlanguagechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmousemove' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'set onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmousemove' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onlanguagechange' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmousemove"] = V;
+ esValue[implSymbol]["onlanguagechange"] = V;
}
- get onmouseout() {
+ get onmessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseout' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onmessage' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
}
- set onmouseout(V) {
+ set onmessage(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseout' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onmessage' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseout' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onmessage' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmouseout"] = V;
+ esValue[implSymbol]["onmessage"] = V;
}
- get onmouseover() {
+ get onmessageerror() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseover' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
}
- set onmouseover(V) {
+ set onmessageerror(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseover' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'set onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseover' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onmessageerror' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmouseover"] = V;
+ esValue[implSymbol]["onmessageerror"] = V;
}
- get onmouseup() {
+ get onoffline() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseup' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onoffline' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
}
- set onmouseup(V) {
+ set onoffline(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseup' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onoffline' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseup' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onoffline' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onmouseup"] = V;
+ esValue[implSymbol]["onoffline"] = V;
}
- get onwheel() {
+ get ononline() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onwheel' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get ononline' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
}
- set onwheel(V) {
+ set ononline(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onwheel' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set ononline' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onwheel' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'ononline' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onwheel"] = V;
+ esValue[implSymbol]["ononline"] = V;
}
- get onpause() {
+ get onpagehide() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onpause' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onpagehide' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
}
- set onpause(V) {
+ set onpagehide(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onpause' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onpagehide' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpause' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onpagehide' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onpause"] = V;
+ esValue[implSymbol]["onpagehide"] = V;
}
- get onplay() {
+ get onpageshow() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onplay' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onpageshow' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
}
- set onplay(V) {
+ set onpageshow(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onplay' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onpageshow' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onplay' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onpageshow' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onplay"] = V;
+ esValue[implSymbol]["onpageshow"] = V;
}
- get onplaying() {
+ get onpopstate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onplaying' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onpopstate' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
}
- set onplaying(V) {
+ set onpopstate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onplaying' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onpopstate' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onplaying' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onpopstate' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onplaying"] = V;
+ esValue[implSymbol]["onpopstate"] = V;
}
- get onprogress() {
+ get onrejectionhandled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onprogress' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
}
- set onprogress(V) {
+ set onrejectionhandled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onprogress' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'set onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onprogress' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onrejectionhandled' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onprogress"] = V;
+ esValue[implSymbol]["onrejectionhandled"] = V;
}
- get onratechange() {
+ get onstorage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onratechange' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onstorage' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
}
- set onratechange(V) {
+ set onstorage(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onratechange' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onstorage' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onratechange' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onstorage' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onratechange"] = V;
+ esValue[implSymbol]["onstorage"] = V;
}
- get onreset() {
+ get onunhandledrejection() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onreset' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
}
- set onreset(V) {
+ set onunhandledrejection(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onreset' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'set onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
+ );
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onreset' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onunhandledrejection' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onreset"] = V;
+ esValue[implSymbol]["onunhandledrejection"] = V;
}
- get onresize() {
+ get onunload() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onresize' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get onunload' called on an object that is not a valid instance of HTMLBodyElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
}
- set onresize(V) {
+ set onunload(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onresize' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set onunload' called on an object that is not a valid instance of HTMLBodyElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onresize' property on 'HTMLElement': The provided value"
+ context: "Failed to set the 'onunload' property on 'HTMLBodyElement': The provided value"
});
}
- esValue[implSymbol]["onresize"] = V;
+ esValue[implSymbol]["onunload"] = V;
}
+ }
+ Object.defineProperties(HTMLBodyElement.prototype, {
+ text: { enumerable: true },
+ link: { enumerable: true },
+ vLink: { enumerable: true },
+ aLink: { enumerable: true },
+ bgColor: { enumerable: true },
+ background: { enumerable: true },
+ onafterprint: { enumerable: true },
+ onbeforeprint: { enumerable: true },
+ onbeforeunload: { enumerable: true },
+ onhashchange: { enumerable: true },
+ onlanguagechange: { enumerable: true },
+ onmessage: { enumerable: true },
+ onmessageerror: { enumerable: true },
+ onoffline: { enumerable: true },
+ ononline: { enumerable: true },
+ onpagehide: { enumerable: true },
+ onpageshow: { enumerable: true },
+ onpopstate: { enumerable: true },
+ onrejectionhandled: { enumerable: true },
+ onstorage: { enumerable: true },
+ onunhandledrejection: { enumerable: true },
+ onunload: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLBodyElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLBodyElement;
- get onscroll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLBodyElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onscroll' called on an object that is not a valid instance of HTMLElement.");
- }
+const Impl = __nccwpck_require__(32574);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
+
+/***/ }),
+
+/***/ 87392:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLButtonElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLButtonElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLButtonElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLButtonElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLButtonElement before HTMLElement");
+ }
+ class HTMLButtonElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- set onscroll(V) {
+ checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onscroll' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLButtonElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onscroll' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onscroll"] = V;
+ return esValue[implSymbol].checkValidity();
}
- get onsecuritypolicyviolation() {
+ reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
- );
+ throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
+ return esValue[implSymbol].reportValidity();
}
- set onsecuritypolicyviolation(V) {
+ setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
throw new TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLButtonElement."
);
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'HTMLElement': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setCustomValidity' on 'HTMLButtonElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setCustomValidity' on 'HTMLButtonElement': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
+ return esValue[implSymbol].setCustomValidity(...args);
}
- get onseeked() {
+ get autofocus() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onseeked' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "autofocus");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onseeked(V) {
+ set autofocus(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onseeked' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLButtonElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onseeked' property on 'HTMLElement': The provided value"
- });
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'autofocus' property on 'HTMLButtonElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "autofocus", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "autofocus");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onseeked"] = V;
}
- get onseeking() {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onseeking' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onseeking(V) {
+ set disabled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onseeking' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLButtonElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onseeking' property on 'HTMLElement': The provided value"
- });
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLButtonElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onseeking"] = V;
}
- get onselect() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onselect' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
}
- set onselect(V) {
+ get formNoValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onselect' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
+ );
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onselect' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "formnovalidate");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onselect"] = V;
}
- get onstalled() {
+ set formNoValidate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onstalled' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'set formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'formNoValidate' property on 'HTMLButtonElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "formnovalidate", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "formnovalidate");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onstalled(V) {
+ get formTarget() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onstalled' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get formTarget' called on an object that is not a valid instance of HTMLButtonElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onstalled' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "formtarget");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onstalled"] = V;
}
- get onsubmit() {
+ set formTarget(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onsubmit' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set formTarget' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'formTarget' property on 'HTMLButtonElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "formtarget", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onsubmit(V) {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onsubmit' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLButtonElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsubmit' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onsubmit"] = V;
}
- get onsuspend() {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onsuspend' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLButtonElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "name", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onsuspend(V) {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onsuspend' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLButtonElement.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsuspend' property on 'HTMLElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["type"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onsuspend"] = V;
}
- get ontimeupdate() {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ontimeupdate' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLButtonElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'type' property on 'HTMLButtonElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["type"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set ontimeupdate(V) {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set ontimeupdate' called on an object that is not a valid instance of HTMLElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontimeupdate' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontimeupdate"] = V;
- }
-
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ontoggle' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
- }
-
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ontoggle' called on an object that is not a valid instance of HTMLElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontoggle' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
- }
-
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onvolumechange' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
- }
-
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onvolumechange' called on an object that is not a valid instance of HTMLElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onvolumechange' property on 'HTMLElement': The provided value"
- });
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLButtonElement.");
}
- esValue[implSymbol]["onvolumechange"] = V;
- }
-
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onwaiting' called on an object that is not a valid instance of HTMLElement.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "value");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
}
- set onwaiting(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onwaiting' called on an object that is not a valid instance of HTMLElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onwaiting' property on 'HTMLElement': The provided value"
- });
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLButtonElement.");
}
- esValue[implSymbol]["onwaiting"] = V;
- }
- get dataset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'value' property on 'HTMLButtonElement': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get dataset' called on an object that is not a valid instance of HTMLElement.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "value", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.getSameObject(this, "dataset", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
- });
}
- get nonce() {
+ get willValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get nonce' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get willValidate' called on an object that is not a valid instance of HTMLButtonElement."
+ );
}
- const value = esValue[implSymbol].getAttributeNS(null, "nonce");
- return value === null ? "" : value;
+ return esValue[implSymbol]["willValidate"];
}
- set nonce(V) {
+ get validity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set nonce' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLButtonElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nonce' property on 'HTMLElement': The provided value"
- });
-
- esValue[implSymbol].setAttributeNS(null, "nonce", V);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
}
- get tabIndex() {
+ get validationMessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get tabIndex' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError(
+ "'get validationMessage' called on an object that is not a valid instance of HTMLButtonElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["tabIndex"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["validationMessage"];
}
- set tabIndex(V) {
+ get labels() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set tabIndex' called on an object that is not a valid instance of HTMLElement.");
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLButtonElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'tabIndex' property on 'HTMLElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tabIndex"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
}
}
- Object.defineProperties(HTMLElement.prototype, {
- click: { enumerable: true },
- focus: { enumerable: true },
- blur: { enumerable: true },
- title: { enumerable: true },
- lang: { enumerable: true },
- translate: { enumerable: true },
- dir: { enumerable: true },
- hidden: { enumerable: true },
- accessKey: { enumerable: true },
- draggable: { enumerable: true },
- offsetParent: { enumerable: true },
- offsetTop: { enumerable: true },
- offsetLeft: { enumerable: true },
- offsetWidth: { enumerable: true },
- offsetHeight: { enumerable: true },
- style: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncuechange: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadend: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onwheel: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- dataset: { enumerable: true },
- nonce: { enumerable: true },
- tabIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLElement", configurable: true }
+ Object.defineProperties(HTMLButtonElement.prototype, {
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ autofocus: { enumerable: true },
+ disabled: { enumerable: true },
+ form: { enumerable: true },
+ formNoValidate: { enumerable: true },
+ formTarget: { enumerable: true },
+ name: { enumerable: true },
+ type: { enumerable: true },
+ value: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
+ labels: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLButtonElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLButtonElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLElement
+ value: HTMLButtonElement
});
};
-const Impl = __nccwpck_require__(74792);
+const Impl = __nccwpck_require__(5009);
/***/ }),
-/***/ 69311:
+/***/ 15063:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -84756,16 +79096,15 @@ const Impl = __nccwpck_require__(74792);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const BlobCallback = __nccwpck_require__(45775);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLEmbedElement";
+const interfaceName = "HTMLCanvasElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -84777,7 +79116,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLEmbedElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLCanvasElement'.`);
};
function makeWrapper(globalObject) {
@@ -84785,9 +79124,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLEmbedElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLCanvasElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLEmbedElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLCanvasElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -84823,7 +79162,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -84847,260 +79186,207 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLEmbedElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLCanvasElement before HTMLElement");
}
- class HTMLEmbedElement extends globalObject.HTMLElement {
+ class HTMLCanvasElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get src() {
+ getContext(contextId) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLEmbedElement.");
+ throw new TypeError("'getContext' called on an object that is not a valid instance of HTMLCanvasElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLEmbedElement.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLEmbedElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLEmbedElement.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getContext' on 'HTMLCanvasElement': parameter 1"
+ });
+ args.push(curArg);
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ for (let i = 1; i < arguments.length; i++) {
+ let curArg = arguments[i];
+ curArg = conversions["any"](curArg, {
+ context: "Failed to execute 'getContext' on 'HTMLCanvasElement': parameter " + (i + 1)
+ });
+ args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].getContext(...args));
}
- set type(V) {
+ toDataURL() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLEmbedElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLEmbedElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'toDataURL' called on an object that is not a valid instance of HTMLCanvasElement.");
}
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLEmbedElement.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'toDataURL' on 'HTMLCanvasElement': parameter 1"
+ });
+ }
+ args.push(curArg);
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["any"](curArg, {
+ context: "Failed to execute 'toDataURL' on 'HTMLCanvasElement': parameter 2"
+ });
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].toDataURL(...args);
}
- set width(V) {
+ toBlob(callback) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLEmbedElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLEmbedElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'toBlob' called on an object that is not a valid instance of HTMLCanvasElement.");
}
- }
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLEmbedElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'toBlob' on 'HTMLCanvasElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = BlobCallback.convert(curArg, {
+ context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 1"
+ });
+ args.push(curArg);
}
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLEmbedElement.");
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 2"
+ });
+ }
+ args.push(curArg);
}
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLEmbedElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["any"](curArg, {
+ context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 3"
+ });
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].toBlob(...args);
}
- get align() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLEmbedElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLCanvasElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ return esValue[implSymbol]["width"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLEmbedElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLCanvasElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLEmbedElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'width' property on 'HTMLCanvasElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol]["width"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get name() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLEmbedElement.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLCanvasElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
+ return esValue[implSymbol]["height"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set height(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLEmbedElement.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLCanvasElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLEmbedElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'height' property on 'HTMLCanvasElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol]["height"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLEmbedElement.prototype, {
- src: { enumerable: true },
- type: { enumerable: true },
+ Object.defineProperties(HTMLCanvasElement.prototype, {
+ getContext: { enumerable: true },
+ toDataURL: { enumerable: true },
+ toBlob: { enumerable: true },
width: { enumerable: true },
height: { enumerable: true },
- align: { enumerable: true },
- name: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLEmbedElement", configurable: true }
+ [Symbol.toStringTag]: { value: "HTMLCanvasElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLEmbedElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLCanvasElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLEmbedElement
+ value: HTMLCanvasElement
});
};
-const Impl = __nccwpck_require__(19666);
+const Impl = __nccwpck_require__(95083);
/***/ }),
-/***/ 37530:
+/***/ 49672:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -85109,14 +79395,10 @@ const Impl = __nccwpck_require__(19666);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLFieldSetElement";
+const interfaceName = "HTMLCollection";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -85128,7 +79410,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLFieldSetElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLCollection'.`);
};
function makeWrapper(globalObject) {
@@ -85136,9 +79418,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLFieldSetElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLCollection"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLFieldSetElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLCollection is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -85154,9 +79436,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -85167,6 +79447,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -85174,8 +79456,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -85183,6 +79465,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -85196,46 +79480,44 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLFieldSetElement before HTMLElement");
- }
- class HTMLFieldSetElement extends globalObject.HTMLElement {
+ class HTMLCollection {
constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ throw new TypeError("Illegal constructor");
}
- checkValidity() {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLFieldSetElement.");
+ throw new TypeError("'item' called on an object that is not a valid instance of HTMLCollection.");
}
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
+ if (arguments.length < 1) {
throw new TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
+ "Failed to execute 'item' on 'HTMLCollection': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
-
- return esValue[implSymbol].reportValidity();
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'HTMLCollection': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
}
- setCustomValidity(error) {
+ namedItem(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
+ throw new TypeError("'namedItem' called on an object that is not a valid instance of HTMLCollection.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': 1 argument required, but only " +
+ "Failed to execute 'namedItem' on 'HTMLCollection': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -85244,186 +79526,233 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': parameter 1"
+ context: "Failed to execute 'namedItem' on 'HTMLCollection': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].setCustomValidity(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
}
- get disabled() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLFieldSetElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of HTMLCollection.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["length"];
}
+ }
+ Object.defineProperties(HTMLCollection.prototype, {
+ item: { enumerable: true },
+ namedItem: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLCollection", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLCollection;
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLFieldSetElement.");
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLFieldSetElement': The provided value"
- });
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLCollection
+ });
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
+ return Reflect.get(target, P, receiver);
}
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ },
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLFieldSetElement.");
- }
+ ownKeys(target) {
+ const keys = new Set();
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
}
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFieldSetElement.");
+ for (const key of target[implSymbol][utils.supportedPropertyNames]) {
+ if (!(key in target)) {
+ keys.add(`${key}`);
}
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ },
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFieldSetElement.");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
+ ignoreNamedProps = true;
+ }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLFieldSetElement': The provided value"
- });
+ const namedValue = target[implSymbol].namedItem(P);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
+ return {
+ writable: false,
+ enumerable: false,
+ configurable: true,
+ value: utils.tryWrapperForImpl(namedValue)
+ };
}
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLFieldSetElement.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- return esValue[implSymbol]["type"];
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
}
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ }
+ let ownDesc;
- get elements() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get elements' called on an object that is not a valid instance of HTMLFieldSetElement.");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
-
- return utils.getSameObject(this, "elements", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["elements"]);
- });
}
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
-
- return esValue[implSymbol]["willValidate"];
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
+ }
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
+ }
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLFieldSetElement.");
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
+ }
+ if (!utils.hasOwn(target, P)) {
+ const creating = !(target[implSymbol].namedItem(P) !== null);
+ if (!creating) {
+ return false;
}
-
- return utils.getSameObject(this, "validity", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- });
}
+ return Reflect.defineProperty(target, P, desc);
+ },
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
+ }
- return esValue[implSymbol]["validationMessage"];
+ if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
+ return false;
}
- }
- Object.defineProperties(HTMLFieldSetElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- name: { enumerable: true },
- type: { enumerable: true },
- elements: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFieldSetElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLFieldSetElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFieldSetElement
- });
+ return Reflect.deleteProperty(target, P);
+ },
+
+ preventExtensions() {
+ return false;
+ }
};
-const Impl = __nccwpck_require__(97711);
+const Impl = __nccwpck_require__(93009);
/***/ }),
-/***/ 91275:
+/***/ 91646:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -85432,14 +79761,14 @@ const Impl = __nccwpck_require__(97711);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLFontElement";
+const interfaceName = "HTMLDListElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -85451,7 +79780,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLFontElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLDListElement'.`);
};
function makeWrapper(globalObject) {
@@ -85459,9 +79788,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLFontElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDListElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLFontElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLDListElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -85497,7 +79826,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -85521,143 +79850,73 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLFontElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLDListElement before HTMLElement");
}
- class HTMLFontElement extends globalObject.HTMLElement {
+ class HTMLDListElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get color() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get color' called on an object that is not a valid instance of HTMLFontElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "color");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set color(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set color' called on an object that is not a valid instance of HTMLFontElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'color' property on 'HTMLFontElement': The provided value",
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "color", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get face() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get face' called on an object that is not a valid instance of HTMLFontElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "face");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set face(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set face' called on an object that is not a valid instance of HTMLFontElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'face' property on 'HTMLFontElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "face", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get size() {
+ get compact() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get size' called on an object that is not a valid instance of HTMLFontElement.");
+ throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLDListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "size");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "compact");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set size(V) {
+ set compact(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set size' called on an object that is not a valid instance of HTMLFontElement.");
+ throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLDListElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'size' property on 'HTMLFontElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'compact' property on 'HTMLDListElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "size", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "compact", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "compact");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLFontElement.prototype, {
- color: { enumerable: true },
- face: { enumerable: true },
- size: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFontElement", configurable: true }
+ Object.defineProperties(HTMLDListElement.prototype, {
+ compact: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDListElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLFontElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDListElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLFontElement
+ value: HTMLDListElement
});
};
-const Impl = __nccwpck_require__(13695);
+const Impl = __nccwpck_require__(59084);
/***/ }),
-/***/ 37670:
+/***/ 77558:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -85666,14 +79925,14 @@ const Impl = __nccwpck_require__(13695);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const HTMLElement = __nccwpck_require__(8932);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLFormElement";
+const interfaceName = "HTMLDataElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -85685,7 +79944,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLFormElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLDataElement'.`);
};
function makeWrapper(globalObject) {
@@ -85693,9 +79952,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLFormElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDataElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLFormElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLDataElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -85731,7 +79990,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -85755,374 +80014,370 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLFormElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLDataElement before HTMLElement");
}
- class HTMLFormElement extends globalObject.HTMLElement {
+ class HTMLDataElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- submit() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'submit' called on an object that is not a valid instance of HTMLFormElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLDataElement.");
}
- return esValue[implSymbol].submit();
- }
-
- requestSubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'requestSubmit' called on an object that is not a valid instance of HTMLFormElement.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = HTMLElement.convert(curArg, {
- context: "Failed to execute 'requestSubmit' on 'HTMLFormElement': parameter 1"
- });
- }
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "value");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].requestSubmit(...args);
}
- reset() {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'reset' called on an object that is not a valid instance of HTMLFormElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLDataElement.");
}
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'value' property on 'HTMLDataElement': The provided value"
+ });
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].reset();
+ esValue[implSymbol].setAttributeNS(null, "value", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLDataElement.prototype, {
+ value: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDataElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDataElement;
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLFormElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLDataElement
+ });
+};
- return esValue[implSymbol].checkValidity();
- }
+const Impl = __nccwpck_require__(3680);
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLFormElement.");
- }
- return esValue[implSymbol].reportValidity();
- }
+/***/ }),
- get acceptCharset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 98633:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'get acceptCharset' called on an object that is not a valid instance of HTMLFormElement.");
- }
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "accept-charset");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set acceptCharset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'set acceptCharset' called on an object that is not a valid instance of HTMLFormElement.");
- }
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'acceptCharset' property on 'HTMLFormElement': The provided value"
- });
+const interfaceName = "HTMLDataListElement";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "accept-charset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLDataListElement'.`);
+};
- get action() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get action' called on an object that is not a valid instance of HTMLFormElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDataListElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLDataListElement is not installed on the passed global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["action"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ return Object.create(ctor.prototype);
+}
- set action(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set action' called on an object that is not a valid instance of HTMLFormElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- V = conversions["USVString"](V, {
- context: "Failed to set the 'action' property on 'HTMLFormElement': The provided value"
- });
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["action"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- get enctype() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get enctype' called on an object that is not a valid instance of HTMLFormElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["enctype"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- set enctype(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set enctype' called on an object that is not a valid instance of HTMLFormElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'enctype' property on 'HTMLFormElement': The provided value"
- });
+const exposed = new Set(["Window"]);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["enctype"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLDataListElement before HTMLElement");
+ }
+ class HTMLDataListElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get method() {
+ get options() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get method' called on an object that is not a valid instance of HTMLFormElement.");
+ throw new TypeError("'get options' called on an object that is not a valid instance of HTMLDataListElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["method"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "options", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["options"]);
+ });
}
+ }
+ Object.defineProperties(HTMLDataListElement.prototype, {
+ options: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDataListElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDataListElement;
- set method(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLDataListElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set method' called on an object that is not a valid instance of HTMLFormElement.");
- }
+const Impl = __nccwpck_require__(70153);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'method' property on 'HTMLFormElement': The provided value"
- });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["method"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ }),
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ 14958:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFormElement.");
- }
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFormElement.");
- }
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLFormElement': The provided value"
- });
+const interfaceName = "HTMLDetailsElement";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLDetailsElement'.`);
+};
- get noValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get noValidate' called on an object that is not a valid instance of HTMLFormElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDetailsElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLDetailsElement is not installed on the passed global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "novalidate");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ return Object.create(ctor.prototype);
+}
- set noValidate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set noValidate' called on an object that is not a valid instance of HTMLFormElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noValidate' property on 'HTMLFormElement': The provided value"
- });
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "novalidate", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "novalidate");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLDetailsElement before HTMLElement");
+ }
+ class HTMLDetailsElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get target() {
+ get open() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of HTMLFormElement.");
+ throw new TypeError("'get open' called on an object that is not a valid instance of HTMLDetailsElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "open");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set target(V) {
+ set open(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set target' called on an object that is not a valid instance of HTMLFormElement.");
+ throw new TypeError("'set open' called on an object that is not a valid instance of HTMLDetailsElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLFormElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'open' property on 'HTMLDetailsElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "open", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "open");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
-
- get elements() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get elements' called on an object that is not a valid instance of HTMLFormElement.");
- }
-
- return utils.getSameObject(this, "elements", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["elements"]);
- });
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of HTMLFormElement.");
- }
-
- return esValue[implSymbol]["length"];
- }
}
- Object.defineProperties(HTMLFormElement.prototype, {
- submit: { enumerable: true },
- requestSubmit: { enumerable: true },
- reset: { enumerable: true },
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- acceptCharset: { enumerable: true },
- action: { enumerable: true },
- enctype: { enumerable: true },
- method: { enumerable: true },
- name: { enumerable: true },
- noValidate: { enumerable: true },
- target: { enumerable: true },
- elements: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFormElement", configurable: true }
+ Object.defineProperties(HTMLDetailsElement.prototype, {
+ open: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDetailsElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLFormElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDetailsElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLFormElement
+ value: HTMLDetailsElement
});
};
-const Impl = __nccwpck_require__(43073);
+const Impl = __nccwpck_require__(72835);
/***/ }),
-/***/ 95659:
+/***/ 94943:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -86131,16 +80386,14 @@ const Impl = __nccwpck_require__(43073);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLFrameElement";
+const interfaceName = "HTMLDialogElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -86152,7 +80405,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLFrameElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLDialogElement'.`);
};
function makeWrapper(globalObject) {
@@ -86160,9 +80413,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLFrameElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDialogElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLFrameElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLDialogElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -86198,7 +80451,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -86222,373 +80475,398 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLFrameElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLDialogElement before HTMLElement");
}
- class HTMLFrameElement extends globalObject.HTMLElement {
+ class HTMLDialogElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get name() {
+ get open() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFrameElement.");
+ throw new TypeError("'get open' called on an object that is not a valid instance of HTMLDialogElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "open");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set open(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFrameElement.");
+ throw new TypeError("'set open' called on an object that is not a valid instance of HTMLDialogElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLFrameElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'open' property on 'HTMLDialogElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "open", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "open");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLDialogElement.prototype, {
+ open: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDialogElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDialogElement;
- get scrolling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get scrolling' called on an object that is not a valid instance of HTMLFrameElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "scrolling");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLDialogElement
+ });
+};
- set scrolling(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const Impl = __nccwpck_require__(88845);
- if (!exports.is(esValue)) {
- throw new TypeError("'set scrolling' called on an object that is not a valid instance of HTMLFrameElement.");
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'scrolling' property on 'HTMLFrameElement': The provided value"
- });
+/***/ }),
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "scrolling", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ 32964:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLFrameElement.");
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+const interfaceName = "HTMLDirectoryElement";
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLFrameElement': The provided value"
- });
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLDirectoryElement'.`);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- get frameBorder() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDirectoryElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLDirectoryElement is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get frameBorder' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+ return Object.create(ctor.prototype);
+}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "frameborder");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- set frameBorder(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set frameBorder' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'frameBorder' property on 'HTMLFrameElement': The provided value"
- });
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "frameborder", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- get longDesc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- set longDesc(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+const exposed = new Set(["Window"]);
- V = conversions["USVString"](V, {
- context: "Failed to set the 'longDesc' property on 'HTMLFrameElement': The provided value"
- });
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "longdesc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLDirectoryElement before HTMLElement");
+ }
+ class HTMLDirectoryElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get noResize() {
+ get compact() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get noResize' called on an object that is not a valid instance of HTMLFrameElement.");
+ throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLDirectoryElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "noresize");
+ return esValue[implSymbol].hasAttributeNS(null, "compact");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set noResize(V) {
+ set compact(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set noResize' called on an object that is not a valid instance of HTMLFrameElement.");
+ throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLDirectoryElement.");
}
V = conversions["boolean"](V, {
- context: "Failed to set the 'noResize' property on 'HTMLFrameElement': The provided value"
+ context: "Failed to set the 'compact' property on 'HTMLDirectoryElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
if (V) {
- esValue[implSymbol].setAttributeNS(null, "noresize", "");
+ esValue[implSymbol].setAttributeNS(null, "compact", "");
} else {
- esValue[implSymbol].removeAttributeNS(null, "noresize");
+ esValue[implSymbol].removeAttributeNS(null, "compact");
}
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLDirectoryElement.prototype, {
+ compact: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDirectoryElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDirectoryElement;
- get contentDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLDirectoryElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get contentDocument' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
+const Impl = __nccwpck_require__(44619);
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
- }
- get contentWindow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get contentWindow' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
+/***/ 89150:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
- }
+"use strict";
- get marginHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get marginHeight' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginheight");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- set marginHeight(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "HTMLDivElement";
- if (!exports.is(esValue)) {
- throw new TypeError("'set marginHeight' called on an object that is not a valid instance of HTMLFrameElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLDivElement'.`);
+};
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginHeight' property on 'HTMLFrameElement': The provided value",
- treatNullAsEmptyString: true
- });
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginheight", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLDivElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLDivElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLDivElement before HTMLElement");
+ }
+ class HTMLDivElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get marginWidth() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get marginWidth' called on an object that is not a valid instance of HTMLFrameElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLDivElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginwidth");
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set marginWidth(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set marginWidth' called on an object that is not a valid instance of HTMLFrameElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLDivElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginWidth' property on 'HTMLFrameElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'align' property on 'HTMLDivElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "marginwidth", V);
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLFrameElement.prototype, {
- name: { enumerable: true },
- scrolling: { enumerable: true },
- src: { enumerable: true },
- frameBorder: { enumerable: true },
- longDesc: { enumerable: true },
- noResize: { enumerable: true },
- contentDocument: { enumerable: true },
- contentWindow: { enumerable: true },
- marginHeight: { enumerable: true },
- marginWidth: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFrameElement", configurable: true }
+ Object.defineProperties(HTMLDivElement.prototype, {
+ align: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLDivElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLFrameElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLDivElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLFrameElement
+ value: HTMLDivElement
});
};
-const Impl = __nccwpck_require__(16634);
+const Impl = __nccwpck_require__(80810);
/***/ }),
-/***/ 336:
+/***/ 8932:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -86597,16 +80875,16 @@ const Impl = __nccwpck_require__(16634);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
+const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+const Element = __nccwpck_require__(4444);
-const interfaceName = "HTMLFrameSetElement";
+const interfaceName = "HTMLElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -86618,7 +80896,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLFrameSetElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLElement'.`);
};
function makeWrapper(globalObject) {
@@ -86626,9 +80904,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLFrameSetElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLFrameSetElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -86645,7 +80923,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
+ Element._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -86664,7 +80942,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -86687,2504 +80965,2301 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLFrameSetElement before HTMLElement");
+ if (globalObject.Element === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLElement before Element");
}
- class HTMLFrameSetElement extends globalObject.HTMLElement {
+ class HTMLElement extends globalObject.Element {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get cols() {
+ click() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'click' called on an object that is not a valid instance of HTMLElement.");
+ }
+ return esValue[implSymbol].click();
+ }
+
+ focus() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cols' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'focus' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return esValue[implSymbol].focus();
+ }
+
+ blur() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'blur' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return esValue[implSymbol].blur();
+ }
+
+ get title() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get title' called on an object that is not a valid instance of HTMLElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "cols");
+ const value = esValue[implSymbol].getAttributeNS(null, "title");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set cols(V) {
+ set title(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cols' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set title' called on an object that is not a valid instance of HTMLElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'cols' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'title' property on 'HTMLElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "cols", V);
+ esValue[implSymbol].setAttributeNS(null, "title", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rows() {
+ get lang() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'get lang' called on an object that is not a valid instance of HTMLElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "rows");
+ const value = esValue[implSymbol].getAttributeNS(null, "lang");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set rows(V) {
+ set lang(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set rows' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set lang' called on an object that is not a valid instance of HTMLElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'rows' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'lang' property on 'HTMLElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "rows", V);
+ esValue[implSymbol].setAttributeNS(null, "lang", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get onafterprint() {
+ get translate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get translate' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["translate"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onafterprint(V) {
+ set translate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set translate' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'translate' property on 'HTMLElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["translate"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get dir() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get dir' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["dir"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set dir(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set dir' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'dir' property on 'HTMLElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["dir"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get hidden() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get hidden' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "hidden");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set hidden(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set hidden' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'hidden' property on 'HTMLElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "hidden", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "hidden");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get accessKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get accessKey' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "accesskey");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set accessKey(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set accessKey' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'accessKey' property on 'HTMLElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "accesskey", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get draggable() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get draggable' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["draggable"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set draggable(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set draggable' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'draggable' property on 'HTMLElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["draggable"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get offsetParent() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get offsetParent' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["offsetParent"]);
+ }
+
+ get offsetTop() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get offsetTop' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return esValue[implSymbol]["offsetTop"];
+ }
+
+ get offsetLeft() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get offsetLeft' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return esValue[implSymbol]["offsetLeft"];
+ }
+
+ get offsetWidth() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get offsetWidth' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return esValue[implSymbol]["offsetWidth"];
+ }
+
+ get offsetHeight() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get offsetHeight' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return esValue[implSymbol]["offsetHeight"];
+ }
+
+ get style() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get style' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return utils.getSameObject(this, "style", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
+ });
+ }
+
+ set style(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set style' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ const Q = esValue["style"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'style' is not an object");
+ }
+ Reflect.set(Q, "cssText", V);
+ }
+
+ get onabort() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onabort' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
+ }
+
+ set onabort(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onabort' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onafterprint' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'onabort' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onafterprint"] = V;
+ esValue[implSymbol]["onabort"] = V;
}
- get onbeforeprint() {
+ get onauxclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get onauxclick' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
}
- set onbeforeprint(V) {
+ set onauxclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set onauxclick' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeprint' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'onauxclick' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onbeforeprint"] = V;
+ esValue[implSymbol]["onauxclick"] = V;
}
- get onbeforeunload() {
+ get onblur() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get onblur' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
}
- set onbeforeunload(V) {
+ set onblur(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set onblur' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeunload' property on 'HTMLFrameSetElement': The provided value"
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onblur' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onbeforeunload"] = V;
+ esValue[implSymbol]["onblur"] = V;
}
- get onhashchange() {
+ get oncancel() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get oncancel' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
}
- set onhashchange(V) {
+ set oncancel(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set oncancel' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onhashchange' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'oncancel' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onhashchange"] = V;
+ esValue[implSymbol]["oncancel"] = V;
}
- get onlanguagechange() {
+ get oncanplay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get oncanplay' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
}
- set onlanguagechange(V) {
+ set oncanplay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set oncanplay' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onlanguagechange' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'oncanplay' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onlanguagechange"] = V;
+ esValue[implSymbol]["oncanplay"] = V;
}
- get onmessage() {
+ get oncanplaythrough() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmessage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'get oncanplaythrough' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
}
- set onmessage(V) {
+ set oncanplaythrough(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmessage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set oncanplaythrough' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessage' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'oncanplaythrough' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onmessage"] = V;
+ esValue[implSymbol]["oncanplaythrough"] = V;
}
- get onmessageerror() {
+ get onchange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get onchange' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
}
- set onmessageerror(V) {
+ set onchange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set onchange' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessageerror' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'onchange' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onmessageerror"] = V;
+ esValue[implSymbol]["onchange"] = V;
}
- get onoffline() {
+ get onclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onoffline' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'get onclick' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
}
- set onoffline(V) {
+ set onclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onoffline' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set onclick' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onoffline' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'onclick' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onoffline"] = V;
+ esValue[implSymbol]["onclick"] = V;
}
- get ononline() {
+ get onclose() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ononline' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'get onclose' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
}
- set ononline(V) {
+ set onclose(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set ononline' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set onclose' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ononline' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'onclose' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["ononline"] = V;
+ esValue[implSymbol]["onclose"] = V;
}
- get onpagehide() {
+ get oncontextmenu() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get oncontextmenu' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
}
- set onpagehide(V) {
+ set oncontextmenu(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set oncontextmenu' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpagehide' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'oncontextmenu' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onpagehide"] = V;
+ esValue[implSymbol]["oncontextmenu"] = V;
}
- get onpageshow() {
+ get oncuechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get oncuechange' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
}
- set onpageshow(V) {
+ set oncuechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set oncuechange' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpageshow' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'oncuechange' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onpageshow"] = V;
+ esValue[implSymbol]["oncuechange"] = V;
}
- get onpopstate() {
+ get ondblclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get ondblclick' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
}
- set onpopstate(V) {
+ set ondblclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set ondblclick' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpopstate' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'ondblclick' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onpopstate"] = V;
+ esValue[implSymbol]["ondblclick"] = V;
}
- get onrejectionhandled() {
+ get ondrag() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get ondrag' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
}
- set onrejectionhandled(V) {
+ set ondrag(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set ondrag' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onrejectionhandled' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'ondrag' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onrejectionhandled"] = V;
+ esValue[implSymbol]["ondrag"] = V;
}
- get onstorage() {
+ get ondragend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onstorage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'get ondragend' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
}
- set onstorage(V) {
+ set ondragend(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onstorage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set ondragend' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onstorage' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'ondragend' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onstorage"] = V;
+ esValue[implSymbol]["ondragend"] = V;
}
- get onunhandledrejection() {
+ get ondragenter() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'get ondragenter' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
}
- set onunhandledrejection(V) {
+ set ondragenter(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
+ throw new TypeError("'set ondragenter' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onunhandledrejection' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'ondragenter' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onunhandledrejection"] = V;
+ esValue[implSymbol]["ondragenter"] = V;
}
- get onunload() {
+ get ondragleave() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onunload' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'get ondragleave' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
}
- set onunload(V) {
+ set ondragleave(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onunload' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ throw new TypeError("'set ondragleave' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onunload' property on 'HTMLFrameSetElement': The provided value"
+ context: "Failed to set the 'ondragleave' property on 'HTMLElement': The provided value"
});
}
- esValue[implSymbol]["onunload"] = V;
+ esValue[implSymbol]["ondragleave"] = V;
}
- }
- Object.defineProperties(HTMLFrameSetElement.prototype, {
- cols: { enumerable: true },
- rows: { enumerable: true },
- onafterprint: { enumerable: true },
- onbeforeprint: { enumerable: true },
- onbeforeunload: { enumerable: true },
- onhashchange: { enumerable: true },
- onlanguagechange: { enumerable: true },
- onmessage: { enumerable: true },
- onmessageerror: { enumerable: true },
- onoffline: { enumerable: true },
- ononline: { enumerable: true },
- onpagehide: { enumerable: true },
- onpageshow: { enumerable: true },
- onpopstate: { enumerable: true },
- onrejectionhandled: { enumerable: true },
- onstorage: { enumerable: true },
- onunhandledrejection: { enumerable: true },
- onunload: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFrameSetElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLFrameSetElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFrameSetElement
- });
-};
+ get ondragover() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(13449);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragover' called on an object that is not a valid instance of HTMLElement.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
+ }
-/***/ }),
+ set ondragover(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 18121:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragover' called on an object that is not a valid instance of HTMLElement.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragover' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragover"] = V;
+ }
+ get ondragstart() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragstart' called on an object that is not a valid instance of HTMLElement.");
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
+ }
-const interfaceName = "HTMLHRElement";
+ set ondragstart(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLHRElement'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragstart' called on an object that is not a valid instance of HTMLElement.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragstart' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragstart"] = V;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLHRElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLHRElement is not installed on the passed global object");
- }
+ get ondrop() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondrop' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set ondrop(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondrop' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondrop' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondrop"] = V;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ get ondurationchange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondurationchange' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ set ondurationchange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondurationchange' called on an object that is not a valid instance of HTMLElement.");
+ }
-const exposed = new Set(["Window"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondurationchange' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondurationchange"] = V;
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ get onemptied() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLHRElement before HTMLElement");
- }
- class HTMLHRElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onemptied' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
}
- get align() {
+ set onemptied(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'set onemptied' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onemptied' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onemptied"] = V;
}
- set align(V) {
+ get onended() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'get onended' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLHRElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
}
- get color() {
+ set onended(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get color' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'set onended' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "color");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onended' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onended"] = V;
}
- set color(V) {
+ get onerror() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set color' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'get onerror' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'color' property on 'HTMLHRElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "color", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
}
- get noShade() {
+ set onerror(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get noShade' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'set onerror' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "noshade");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnErrorEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onerror' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onerror"] = V;
}
- set noShade(V) {
+ get onfocus() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set noShade' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'get onfocus' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noShade' property on 'HTMLHRElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "noshade", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "noshade");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
}
- get size() {
+ set onfocus(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get size' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'set onfocus' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "size");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onfocus' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onfocus"] = V;
}
- set size(V) {
+ get oninput() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set size' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'get oninput' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'size' property on 'HTMLHRElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "size", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
}
- get width() {
+ set oninput(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'set oninput' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oninput' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["oninput"] = V;
}
- set width(V) {
+ get oninvalid() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLHRElement.");
+ throw new TypeError("'get oninvalid' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLHRElement': The provided value"
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ set oninvalid(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oninvalid' called on an object that is not a valid instance of HTMLElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oninvalid' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["oninvalid"] = V;
}
- }
- Object.defineProperties(HTMLHRElement.prototype, {
- align: { enumerable: true },
- color: { enumerable: true },
- noShade: { enumerable: true },
- size: { enumerable: true },
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLHRElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLHRElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHRElement
- });
-};
+ get onkeydown() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(96676);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onkeydown' called on an object that is not a valid instance of HTMLElement.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
+ }
-/***/ }),
+ set onkeydown(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 46196:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onkeydown' called on an object that is not a valid instance of HTMLElement.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeydown' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeydown"] = V;
+ }
+ get onkeypress() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onkeypress' called on an object that is not a valid instance of HTMLElement.");
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
+ }
-const interfaceName = "HTMLHeadElement";
+ set onkeypress(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLHeadElement'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onkeypress' called on an object that is not a valid instance of HTMLElement.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeypress' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeypress"] = V;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLHeadElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLHeadElement is not installed on the passed global object");
- }
+ get onkeyup() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onkeyup' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set onkeyup(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onkeyup' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLHeadElement before HTMLElement");
- }
- class HTMLHeadElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeyup' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeyup"] = V;
}
- }
- Object.defineProperties(HTMLHeadElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLHeadElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLHeadElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHeadElement
- });
-};
-
-const Impl = __nccwpck_require__(25475);
-
-
-/***/ }),
-
-/***/ 92272:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLHeadingElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLHeadingElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLHeadingElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLHeadingElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
+ get onload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onload' called on an object that is not a valid instance of HTMLElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLHeadingElement before HTMLElement");
- }
- class HTMLHeadingElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
}
- get align() {
+ set onload(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLHeadingElement.");
+ throw new TypeError("'set onload' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onload' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onload"] = V;
}
- set align(V) {
+ get onloadeddata() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLHeadingElement.");
+ throw new TypeError("'get onloadeddata' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLHeadingElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
}
- }
- Object.defineProperties(HTMLHeadingElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLHeadingElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLHeadingElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHeadingElement
- });
-};
-
-const Impl = __nccwpck_require__(82223);
+ set onloadeddata(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
-
-/***/ 2146:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLHtmlElement";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadeddata' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLHtmlElement'.`);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadeddata' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadeddata"] = V;
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ get onloadedmetadata() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ctor = globalObject[ctorRegistrySymbol]["HTMLHtmlElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLHtmlElement is not installed on the passed global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadedmetadata' called on an object that is not a valid instance of HTMLElement.");
+ }
- return Object.create(ctor.prototype);
-}
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ set onloadedmetadata(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadedmetadata' called on an object that is not a valid instance of HTMLElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadedmetadata' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadedmetadata"] = V;
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ get onloadend() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadend' called on an object that is not a valid instance of HTMLElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ set onloadend(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadend' called on an object that is not a valid instance of HTMLElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadend' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadend"] = V;
+ }
-const exposed = new Set(["Window"]);
+ get onloadstart() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadstart' called on an object that is not a valid instance of HTMLElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLHtmlElement before HTMLElement");
- }
- class HTMLHtmlElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
}
- get version() {
+ set onloadstart(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get version' called on an object that is not a valid instance of HTMLHtmlElement.");
+ throw new TypeError("'set onloadstart' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "version");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadstart' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onloadstart"] = V;
}
- set version(V) {
+ get onmousedown() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set version' called on an object that is not a valid instance of HTMLHtmlElement.");
+ throw new TypeError("'get onmousedown' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'version' property on 'HTMLHtmlElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "version", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
}
- }
- Object.defineProperties(HTMLHtmlElement.prototype, {
- version: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLHtmlElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLHtmlElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHtmlElement
- });
-};
-
-const Impl = __nccwpck_require__(64679);
+ set onmousedown(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmousedown' called on an object that is not a valid instance of HTMLElement.");
+ }
-/***/ 46873:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmousedown' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmousedown"] = V;
+ }
-"use strict";
+ get onmouseenter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ return;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ set onmouseenter(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "HTMLIFrameElement";
+ if (!exports.is(esValue)) {
+ return;
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLIFrameElement'.`);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseenter' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseenter"] = V;
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ get onmouseleave() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ctor = globalObject[ctorRegistrySymbol]["HTMLIFrameElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLIFrameElement is not installed on the passed global object");
- }
+ if (!exports.is(esValue)) {
+ return;
+ }
- return Object.create(ctor.prototype);
-}
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ set onmouseleave(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ return;
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseleave' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseleave"] = V;
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ get onmousemove() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmousemove' called on an object that is not a valid instance of HTMLElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ set onmousemove(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmousemove' called on an object that is not a valid instance of HTMLElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmousemove' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmousemove"] = V;
+ }
-const exposed = new Set(["Window"]);
+ get onmouseout() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseout' called on an object that is not a valid instance of HTMLElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLIFrameElement before HTMLElement");
- }
- class HTMLIFrameElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
}
- getSVGDocument() {
+ set onmouseout(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'getSVGDocument' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onmouseout' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getSVGDocument());
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseout' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseout"] = V;
}
- get src() {
+ get onmouseover() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onmouseover' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
}
- set src(V) {
+ set onmouseover(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onmouseover' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseover' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onmouseover"] = V;
}
- get srcdoc() {
+ get onmouseup() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get srcdoc' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onmouseup' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "srcdoc");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
}
- set srcdoc(V) {
+ set onmouseup(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set srcdoc' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onmouseup' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'srcdoc' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "srcdoc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseup' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onmouseup"] = V;
}
- get name() {
+ get onwheel() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onwheel' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
}
- set name(V) {
+ set onwheel(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onwheel' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onwheel' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onwheel"] = V;
}
- get allowFullscreen() {
+ get onpause() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
- );
+ throw new TypeError("'get onpause' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "allowfullscreen");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
}
- set allowFullscreen(V) {
+ set onpause(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
- );
+ throw new TypeError("'set onpause' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'allowFullscreen' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "allowfullscreen", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "allowfullscreen");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpause' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onpause"] = V;
}
- get width() {
+ get onplay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onplay' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
}
- set width(V) {
+ set onplay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onplay' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onplay' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onplay"] = V;
}
- get height() {
+ get onplaying() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onplaying' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
}
- set height(V) {
+ set onplaying(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onplaying' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onplaying' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onplaying"] = V;
}
- get contentDocument() {
+ get onprogress() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get contentDocument' called on an object that is not a valid instance of HTMLIFrameElement."
- );
+ throw new TypeError("'get onprogress' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
}
- get contentWindow() {
+ set onprogress(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get contentWindow' called on an object that is not a valid instance of HTMLIFrameElement."
- );
+ throw new TypeError("'set onprogress' called on an object that is not a valid instance of HTMLElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onprogress' property on 'HTMLElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onprogress"] = V;
}
- get align() {
+ get onratechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onratechange' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
}
- set align(V) {
+ set onratechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onratechange' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onratechange' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onratechange"] = V;
}
- get scrolling() {
+ get onreset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scrolling' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onreset' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "scrolling");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
}
- set scrolling(V) {
+ set onreset(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set scrolling' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onreset' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'scrolling' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "scrolling", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onreset' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onreset"] = V;
}
- get frameBorder() {
+ get onresize() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get frameBorder' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onresize' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "frameborder");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
}
- set frameBorder(V) {
+ set onresize(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set frameBorder' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onresize' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'frameBorder' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "frameborder", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onresize' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onresize"] = V;
}
- get longDesc() {
+ get onscroll() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onscroll' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
}
- set longDesc(V) {
+ set onscroll(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onscroll' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'longDesc' property on 'HTMLIFrameElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "longdesc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onscroll' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onscroll"] = V;
}
- get marginHeight() {
+ get onsecuritypolicyviolation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
+ "'get onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginheight");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
}
- set marginHeight(V) {
+ set onsecuritypolicyviolation(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
+ "'set onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
);
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginHeight' property on 'HTMLIFrameElement': The provided value",
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginheight", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsecuritypolicyviolation' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onsecuritypolicyviolation"] = V;
}
- get marginWidth() {
+ get onseeked() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get marginWidth' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'get onseeked' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginwidth");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
}
- set marginWidth(V) {
+ set onseeked(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set marginWidth' called on an object that is not a valid instance of HTMLIFrameElement.");
+ throw new TypeError("'set onseeked' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginWidth' property on 'HTMLIFrameElement': The provided value",
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginwidth", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onseeked' property on 'HTMLElement': The provided value"
+ });
}
- }
- }
- Object.defineProperties(HTMLIFrameElement.prototype, {
- getSVGDocument: { enumerable: true },
- src: { enumerable: true },
- srcdoc: { enumerable: true },
- name: { enumerable: true },
- allowFullscreen: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- contentDocument: { enumerable: true },
- contentWindow: { enumerable: true },
- align: { enumerable: true },
- scrolling: { enumerable: true },
- frameBorder: { enumerable: true },
- longDesc: { enumerable: true },
- marginHeight: { enumerable: true },
- marginWidth: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLIFrameElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLIFrameElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLIFrameElement
- });
-};
-
-const Impl = __nccwpck_require__(10168);
-
-
-/***/ }),
-
-/***/ 69785:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const parseNonNegativeInteger_helpers_strings = __nccwpck_require__(4764).parseNonNegativeInteger;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLImageElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLImageElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLImageElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLImageElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLImageElement before HTMLElement");
- }
- class HTMLImageElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ esValue[implSymbol]["onseeked"] = V;
}
- get alt() {
+ get onseeking() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onseeking' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alt");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
}
- set alt(V) {
+ set onseeking(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onseeking' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'alt' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alt", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onseeking' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onseeking"] = V;
}
- get src() {
+ get onselect() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onselect' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
}
- set src(V) {
+ set onselect(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onselect' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onselect' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onselect"] = V;
}
- get srcset() {
+ get onstalled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get srcset' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onstalled' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "srcset");
- return value === null ? "" : conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
}
- set srcset(V) {
+ set onstalled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set srcset' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onstalled' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'srcset' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "srcset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onstalled' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onstalled"] = V;
}
- get sizes() {
+ get onsubmit() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get sizes' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onsubmit' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "sizes");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
}
- set sizes(V) {
+ set onsubmit(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set sizes' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onsubmit' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'sizes' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "sizes", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsubmit' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onsubmit"] = V;
}
- get crossOrigin() {
+ get onsuspend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onsuspend' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
}
- set crossOrigin(V) {
+ set onsuspend(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onsuspend' called on an object that is not a valid instance of HTMLElement.");
}
- if (V === null || V === undefined) {
+ if (!utils.isObject(V)) {
V = null;
} else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLImageElement': The provided value"
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsuspend' property on 'HTMLElement': The provided value"
});
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["onsuspend"] = V;
}
- get useMap() {
+ get ontimeupdate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get ontimeupdate' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "usemap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
}
- set useMap(V) {
+ set ontimeupdate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set ontimeupdate' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'useMap' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "usemap", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ontimeupdate' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["ontimeupdate"] = V;
}
- get isMap() {
+ get ontoggle() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get isMap' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get ontoggle' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "ismap");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
}
- set isMap(V) {
+ set ontoggle(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set isMap' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set ontoggle' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'isMap' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "ismap", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "ismap");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ontoggle' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["ontoggle"] = V;
}
- get width() {
+ get onvolumechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onvolumechange' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["width"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
}
- set width(V) {
+ set onvolumechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onvolumechange' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'width' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["width"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onvolumechange' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onvolumechange"] = V;
}
- get height() {
+ get onwaiting() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get onwaiting' called on an object that is not a valid instance of HTMLElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["height"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
}
- set height(V) {
+ set onwaiting(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set onwaiting' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'height' property on 'HTMLImageElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["height"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onwaiting' property on 'HTMLElement': The provided value"
+ });
}
+ esValue[implSymbol]["onwaiting"] = V;
}
- get naturalWidth() {
+ get dataset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get naturalWidth' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get dataset' called on an object that is not a valid instance of HTMLElement.");
}
- return esValue[implSymbol]["naturalWidth"];
+ return utils.getSameObject(this, "dataset", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
+ });
}
- get naturalHeight() {
+ get nonce() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get naturalHeight' called on an object that is not a valid instance of HTMLImageElement."
- );
+ throw new TypeError("'get nonce' called on an object that is not a valid instance of HTMLElement.");
}
- return esValue[implSymbol]["naturalHeight"];
+ const value = esValue[implSymbol].getAttributeNS(null, "nonce");
+ return value === null ? "" : value;
}
- get complete() {
+ set nonce(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get complete' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set nonce' called on an object that is not a valid instance of HTMLElement.");
}
- return esValue[implSymbol]["complete"];
- }
-
- get currentSrc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get currentSrc' called on an object that is not a valid instance of HTMLImageElement.");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'nonce' property on 'HTMLElement': The provided value"
+ });
- return esValue[implSymbol]["currentSrc"];
+ esValue[implSymbol].setAttributeNS(null, "nonce", V);
}
- get name() {
+ get tabIndex() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get tabIndex' called on an object that is not a valid instance of HTMLElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
+ return esValue[implSymbol]["tabIndex"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set tabIndex(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set tabIndex' called on an object that is not a valid instance of HTMLElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLImageElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'tabIndex' property on 'HTMLElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol]["tabIndex"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLElement.prototype, {
+ click: { enumerable: true },
+ focus: { enumerable: true },
+ blur: { enumerable: true },
+ title: { enumerable: true },
+ lang: { enumerable: true },
+ translate: { enumerable: true },
+ dir: { enumerable: true },
+ hidden: { enumerable: true },
+ accessKey: { enumerable: true },
+ draggable: { enumerable: true },
+ offsetParent: { enumerable: true },
+ offsetTop: { enumerable: true },
+ offsetLeft: { enumerable: true },
+ offsetWidth: { enumerable: true },
+ offsetHeight: { enumerable: true },
+ style: { enumerable: true },
+ onabort: { enumerable: true },
+ onauxclick: { enumerable: true },
+ onblur: { enumerable: true },
+ oncancel: { enumerable: true },
+ oncanplay: { enumerable: true },
+ oncanplaythrough: { enumerable: true },
+ onchange: { enumerable: true },
+ onclick: { enumerable: true },
+ onclose: { enumerable: true },
+ oncontextmenu: { enumerable: true },
+ oncuechange: { enumerable: true },
+ ondblclick: { enumerable: true },
+ ondrag: { enumerable: true },
+ ondragend: { enumerable: true },
+ ondragenter: { enumerable: true },
+ ondragleave: { enumerable: true },
+ ondragover: { enumerable: true },
+ ondragstart: { enumerable: true },
+ ondrop: { enumerable: true },
+ ondurationchange: { enumerable: true },
+ onemptied: { enumerable: true },
+ onended: { enumerable: true },
+ onerror: { enumerable: true },
+ onfocus: { enumerable: true },
+ oninput: { enumerable: true },
+ oninvalid: { enumerable: true },
+ onkeydown: { enumerable: true },
+ onkeypress: { enumerable: true },
+ onkeyup: { enumerable: true },
+ onload: { enumerable: true },
+ onloadeddata: { enumerable: true },
+ onloadedmetadata: { enumerable: true },
+ onloadend: { enumerable: true },
+ onloadstart: { enumerable: true },
+ onmousedown: { enumerable: true },
+ onmouseenter: { enumerable: true },
+ onmouseleave: { enumerable: true },
+ onmousemove: { enumerable: true },
+ onmouseout: { enumerable: true },
+ onmouseover: { enumerable: true },
+ onmouseup: { enumerable: true },
+ onwheel: { enumerable: true },
+ onpause: { enumerable: true },
+ onplay: { enumerable: true },
+ onplaying: { enumerable: true },
+ onprogress: { enumerable: true },
+ onratechange: { enumerable: true },
+ onreset: { enumerable: true },
+ onresize: { enumerable: true },
+ onscroll: { enumerable: true },
+ onsecuritypolicyviolation: { enumerable: true },
+ onseeked: { enumerable: true },
+ onseeking: { enumerable: true },
+ onselect: { enumerable: true },
+ onstalled: { enumerable: true },
+ onsubmit: { enumerable: true },
+ onsuspend: { enumerable: true },
+ ontimeupdate: { enumerable: true },
+ ontoggle: { enumerable: true },
+ onvolumechange: { enumerable: true },
+ onwaiting: { enumerable: true },
+ dataset: { enumerable: true },
+ nonce: { enumerable: true },
+ tabIndex: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLElement
+ });
+};
+
+const Impl = __nccwpck_require__(74792);
+
+
+/***/ }),
+
+/***/ 69311:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLEmbedElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLEmbedElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLEmbedElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLEmbedElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLEmbedElement before HTMLElement");
+ }
+ class HTMLEmbedElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
- get lowsrc() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get lowsrc' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "lowsrc");
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
if (value === null) {
return "";
}
@@ -89201,262 +83276,227 @@ exports.install = (globalObject, globalNames) => {
}
}
- set lowsrc(V) {
+ set src(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set lowsrc' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["USVString"](V, {
- context: "Failed to set the 'lowsrc' property on 'HTMLImageElement': The provided value"
+ context: "Failed to set the 'src' property on 'HTMLEmbedElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "lowsrc", V);
+ esValue[implSymbol].setAttributeNS(null, "src", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get align() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLImageElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLEmbedElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get hspace() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "hspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set hspace(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLEmbedElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'hspace' property on 'HTMLImageElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'width' property on 'HTMLEmbedElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
+ esValue[implSymbol].setAttributeNS(null, "width", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get vspace() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "vspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "height");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set vspace(V) {
+ set height(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLEmbedElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'vspace' property on 'HTMLImageElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'height' property on 'HTMLEmbedElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
+ esValue[implSymbol].setAttributeNS(null, "height", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get longDesc() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set longDesc(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLEmbedElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'longDesc' property on 'HTMLImageElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLEmbedElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "longdesc", V);
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get border() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get border' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "border");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set border(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set border' called on an object that is not a valid instance of HTMLImageElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'border' property on 'HTMLImageElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'name' property on 'HTMLEmbedElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "border", V);
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLImageElement.prototype, {
- alt: { enumerable: true },
+ Object.defineProperties(HTMLEmbedElement.prototype, {
src: { enumerable: true },
- srcset: { enumerable: true },
- sizes: { enumerable: true },
- crossOrigin: { enumerable: true },
- useMap: { enumerable: true },
- isMap: { enumerable: true },
+ type: { enumerable: true },
width: { enumerable: true },
height: { enumerable: true },
- naturalWidth: { enumerable: true },
- naturalHeight: { enumerable: true },
- complete: { enumerable: true },
- currentSrc: { enumerable: true },
- name: { enumerable: true },
- lowsrc: { enumerable: true },
align: { enumerable: true },
- hspace: { enumerable: true },
- vspace: { enumerable: true },
- longDesc: { enumerable: true },
- border: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLImageElement", configurable: true }
+ name: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLEmbedElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLImageElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLEmbedElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLImageElement
+ value: HTMLEmbedElement
});
};
-const Impl = __nccwpck_require__(99033);
+const Impl = __nccwpck_require__(19666);
/***/ }),
-/***/ 95472:
+/***/ 37530:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -89465,18 +83505,14 @@ const Impl = __nccwpck_require__(99033);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const SelectionMode = __nccwpck_require__(12458);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const FileList = __nccwpck_require__(51414);
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLInputElement";
+const interfaceName = "HTMLFieldSetElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -89488,7 +83524,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLInputElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLFieldSetElement'.`);
};
function makeWrapper(globalObject) {
@@ -89496,9 +83532,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLInputElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLFieldSetElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLInputElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLFieldSetElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -89534,7 +83570,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -89558,57 +83594,17 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLInputElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLFieldSetElement before HTMLElement");
}
- class HTMLInputElement extends globalObject.HTMLElement {
+ class HTMLFieldSetElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- stepUp() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'stepUp' called on an object that is not a valid instance of HTMLInputElement.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'stepUp' on 'HTMLInputElement': parameter 1"
- });
- } else {
- curArg = 1;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].stepUp(...args);
- }
-
- stepDown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'stepDown' called on an object that is not a valid instance of HTMLInputElement.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'stepDown' on 'HTMLInputElement': parameter 1"
- });
- } else {
- curArg = 1;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].stepDown(...args);
- }
-
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
return esValue[implSymbol].checkValidity();
@@ -89617,7 +83613,9 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'reportValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
+ );
}
return esValue[implSymbol].reportValidity();
@@ -89627,13 +83625,13 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLInputElement."
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
);
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only " +
+ "Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -89642,1023 +83640,1151 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLInputElement': parameter 1"
+ context: "Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': parameter 1"
});
args.push(curArg);
}
return esValue[implSymbol].setCustomValidity(...args);
}
- select() {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'select' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
- return esValue[implSymbol].select();
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- setRangeText(replacement) {
+ set disabled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'setRangeText' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setRangeText' on 'HTMLInputElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- switch (arguments.length) {
- case 1:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1"
- });
- args.push(curArg);
- }
- break;
- case 2:
- throw new TypeError(
- "Failed to execute 'setRangeText' on 'HTMLInputElement': only " + arguments.length + " arguments present."
- );
- break;
- case 3:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3"
- });
- args.push(curArg);
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = SelectionMode.convert(curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 4"
- });
- } else {
- curArg = "preserve";
- }
- args.push(curArg);
- }
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLFieldSetElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].setRangeText(...args);
}
- setSelectionRange(start, end) {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setSelectionRange' called on an object that is not a valid instance of HTMLInputElement."
- );
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'setSelectionRange' on 'HTMLInputElement': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 3"
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].setSelectionRange(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
}
- get accept() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get accept' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "accept");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set accept(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set accept' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'accept' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'name' property on 'HTMLFieldSetElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "accept", V);
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get alt() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alt");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["type"];
}
- set alt(V) {
+ get elements() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get elements' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'alt' property on 'HTMLInputElement': The provided value"
+ return utils.getSameObject(this, "elements", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["elements"]);
});
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alt", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
}
- get autocomplete() {
+ get willValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get autocomplete' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get willValidate' called on an object that is not a valid instance of HTMLFieldSetElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "autocomplete");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["willValidate"];
}
- set autocomplete(V) {
+ get validity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set autocomplete' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'autocomplete' property on 'HTMLInputElement': The provided value"
+ return utils.getSameObject(this, "validity", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
});
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "autocomplete", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
}
- get autofocus() {
+ get validationMessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get validationMessage' called on an object that is not a valid instance of HTMLFieldSetElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["validationMessage"];
}
+ }
+ Object.defineProperties(HTMLFieldSetElement.prototype, {
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ disabled: { enumerable: true },
+ form: { enumerable: true },
+ name: { enumerable: true },
+ type: { enumerable: true },
+ elements: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLFieldSetElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLFieldSetElement;
- set autofocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLFieldSetElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLInputElement.");
- }
+const Impl = __nccwpck_require__(97711);
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLInputElement': The provided value"
- });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+/***/ }),
+
+/***/ 91275:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLFontElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLFontElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLFontElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLFontElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLFontElement before HTMLElement");
+ }
+ class HTMLFontElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get defaultChecked() {
+ get color() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
- );
+ throw new TypeError("'get color' called on an object that is not a valid instance of HTMLFontElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "checked");
+ const value = esValue[implSymbol].getAttributeNS(null, "color");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set defaultChecked(V) {
+ set color(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
- );
+ throw new TypeError("'set color' called on an object that is not a valid instance of HTMLFontElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'defaultChecked' property on 'HTMLInputElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'color' property on 'HTMLFontElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "checked", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "checked");
- }
+ esValue[implSymbol].setAttributeNS(null, "color", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get checked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get checked' called on an object that is not a valid instance of HTMLInputElement.");
- }
-
- return esValue[implSymbol]["checked"];
- }
-
- set checked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set checked' called on an object that is not a valid instance of HTMLInputElement.");
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'checked' property on 'HTMLInputElement': The provided value"
- });
-
- esValue[implSymbol]["checked"] = V;
- }
-
- get dirName() {
+ get face() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get dirName' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get face' called on an object that is not a valid instance of HTMLFontElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "dirname");
+ const value = esValue[implSymbol].getAttributeNS(null, "face");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set dirName(V) {
+ set face(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set dirName' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set face' called on an object that is not a valid instance of HTMLFontElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'dirName' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'face' property on 'HTMLFontElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "dirname", V);
+ esValue[implSymbol].setAttributeNS(null, "face", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get disabled() {
+ get size() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get size' called on an object that is not a valid instance of HTMLFontElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ const value = esValue[implSymbol].getAttributeNS(null, "size");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set disabled(V) {
+ set size(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set size' called on an object that is not a valid instance of HTMLFontElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLInputElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'size' property on 'HTMLFontElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
+ esValue[implSymbol].setAttributeNS(null, "size", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLFontElement.prototype, {
+ color: { enumerable: true },
+ face: { enumerable: true },
+ size: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLFontElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLFontElement;
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLFontElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLInputElement.");
- }
+const Impl = __nccwpck_require__(13695);
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
- get files() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get files' called on an object that is not a valid instance of HTMLInputElement.");
- }
+/***/ 37670:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["files"]);
- }
+"use strict";
- set files(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set files' called on an object that is not a valid instance of HTMLInputElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = FileList.convert(V, {
- context: "Failed to set the 'files' property on 'HTMLInputElement': The provided value"
- });
- }
- esValue[implSymbol]["files"] = V;
- }
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const HTMLElement = __nccwpck_require__(8932);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- get formNoValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "HTMLFormElement";
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLFormElement'.`);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "formnovalidate");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLFormElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLFormElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLFormElement before HTMLElement");
+ }
+ class HTMLFormElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- set formNoValidate(V) {
+ submit() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
- );
+ throw new TypeError("'submit' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'formNoValidate' property on 'HTMLInputElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "formnovalidate", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "formnovalidate");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].submit();
}
- get formTarget() {
+ requestSubmit() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get formTarget' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'requestSubmit' called on an object that is not a valid instance of HTMLFormElement.");
}
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "formtarget");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = HTMLElement.convert(curArg, {
+ context: "Failed to execute 'requestSubmit' on 'HTMLFormElement': parameter 1"
+ });
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].requestSubmit(...args);
}
- set formTarget(V) {
+ reset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set formTarget' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'reset' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'formTarget' property on 'HTMLInputElement': The provided value"
- });
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "formtarget", V);
+ return esValue[implSymbol].reset();
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get indeterminate() {
+ checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get indeterminate' called on an object that is not a valid instance of HTMLInputElement."
- );
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLFormElement.");
}
- return esValue[implSymbol]["indeterminate"];
+ return esValue[implSymbol].checkValidity();
}
- set indeterminate(V) {
+ reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set indeterminate' called on an object that is not a valid instance of HTMLInputElement."
- );
+ throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'indeterminate' property on 'HTMLInputElement': The provided value"
- });
-
- esValue[implSymbol]["indeterminate"] = V;
+ return esValue[implSymbol].reportValidity();
}
- get inputMode() {
+ get acceptCharset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get inputMode' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get acceptCharset' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "inputmode");
+ const value = esValue[implSymbol].getAttributeNS(null, "accept-charset");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set inputMode(V) {
+ set acceptCharset(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set inputMode' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set acceptCharset' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'inputMode' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'acceptCharset' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "inputmode", V);
+ esValue[implSymbol].setAttributeNS(null, "accept-charset", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get list() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get list' called on an object that is not a valid instance of HTMLInputElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["list"]);
- }
-
- get max() {
+ get action() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get max' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get action' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "max");
- return value === null ? "" : value;
+ return esValue[implSymbol]["action"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set max(V) {
+ set action(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set max' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set action' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'max' property on 'HTMLInputElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'action' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "max", V);
+ esValue[implSymbol]["action"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get maxLength() {
+ get enctype() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get maxLength' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get enctype' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["maxLength"];
+ return esValue[implSymbol]["enctype"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set maxLength(V) {
+ set enctype(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set maxLength' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set enctype' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'enctype' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["maxLength"] = V;
+ esValue[implSymbol]["enctype"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get min() {
+ get method() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get min' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get method' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "min");
- return value === null ? "" : value;
+ return esValue[implSymbol]["method"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set min(V) {
+ set method(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set min' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set method' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'min' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'method' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "min", V);
+ esValue[implSymbol]["method"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get minLength() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get minLength' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["minLength"];
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set minLength(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set minLength' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'minLength' property on 'HTMLInputElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["minLength"] = V;
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get multiple() {
+ get noValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get multiple' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get noValidate' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "multiple");
+ return esValue[implSymbol].hasAttributeNS(null, "novalidate");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set multiple(V) {
+ set noValidate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set multiple' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set noValidate' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["boolean"](V, {
- context: "Failed to set the 'multiple' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'noValidate' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
if (V) {
- esValue[implSymbol].setAttributeNS(null, "multiple", "");
+ esValue[implSymbol].setAttributeNS(null, "novalidate", "");
} else {
- esValue[implSymbol].removeAttributeNS(null, "multiple");
+ esValue[implSymbol].removeAttributeNS(null, "novalidate");
}
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get name() {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "target");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set target(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set target' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'target' property on 'HTMLFormElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol].setAttributeNS(null, "target", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get pattern() {
+ get elements() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get pattern' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get elements' called on an object that is not a valid instance of HTMLFormElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "pattern");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "elements", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["elements"]);
+ });
}
- set pattern(V) {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set pattern' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of HTMLFormElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'pattern' property on 'HTMLInputElement': The provided value"
- });
+ return esValue[implSymbol]["length"];
+ }
+ }
+ Object.defineProperties(HTMLFormElement.prototype, {
+ submit: { enumerable: true },
+ requestSubmit: { enumerable: true },
+ reset: { enumerable: true },
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ acceptCharset: { enumerable: true },
+ action: { enumerable: true },
+ enctype: { enumerable: true },
+ method: { enumerable: true },
+ name: { enumerable: true },
+ noValidate: { enumerable: true },
+ target: { enumerable: true },
+ elements: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLFormElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLFormElement;
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "pattern", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLFormElement
+ });
+};
+
+const Impl = __nccwpck_require__(43073);
+
+
+/***/ }),
+
+/***/ 95659:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLFrameElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLFrameElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLFrameElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLFrameElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLFrameElement before HTMLElement");
+ }
+ class HTMLFrameElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get placeholder() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get placeholder' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "placeholder");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set placeholder(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set placeholder' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'placeholder' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'name' property on 'HTMLFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "placeholder", V);
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get readOnly() {
+ get scrolling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get readOnly' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get scrolling' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "readonly");
+ const value = esValue[implSymbol].getAttributeNS(null, "scrolling");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set readOnly(V) {
+ set scrolling(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set readOnly' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set scrolling' called on an object that is not a valid instance of HTMLFrameElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'readOnly' property on 'HTMLInputElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'scrolling' property on 'HTMLFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "readonly", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "readonly");
- }
+ esValue[implSymbol].setAttributeNS(null, "scrolling", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get required() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get required' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "required");
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set required(V) {
+ set src(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set required' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLFrameElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'required' property on 'HTMLInputElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "required", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "required");
- }
+ esValue[implSymbol].setAttributeNS(null, "src", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get size() {
+ get frameBorder() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get size' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get frameBorder' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["size"];
+ const value = esValue[implSymbol].getAttributeNS(null, "frameborder");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set size(V) {
+ set frameBorder(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set size' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set frameBorder' called on an object that is not a valid instance of HTMLFrameElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'size' property on 'HTMLInputElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'frameBorder' property on 'HTMLFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["size"] = V;
+ esValue[implSymbol].setAttributeNS(null, "frameborder", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get src() {
+ get longDesc() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
+ const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
if (value === null) {
return "";
}
@@ -90675,491 +84801,881 @@ exports.install = (globalObject, globalNames) => {
}
}
- set src(V) {
+ set longDesc(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'longDesc' property on 'HTMLFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
+ esValue[implSymbol].setAttributeNS(null, "longdesc", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get step() {
+ get noResize() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get step' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get noResize' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "step");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "noresize");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set step(V) {
+ set noResize(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set step' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set noResize' called on an object that is not a valid instance of HTMLFrameElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'step' property on 'HTMLInputElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'noResize' property on 'HTMLFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "step", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "noresize", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "noresize");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get contentDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get contentDocument' called on an object that is not a valid instance of HTMLFrameElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["type"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
}
- set type(V) {
+ get contentWindow() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get contentWindow' called on an object that is not a valid instance of HTMLFrameElement."
+ );
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLInputElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["type"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
}
- get defaultValue() {
+ get marginHeight() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get defaultValue' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get marginHeight' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
+ const value = esValue[implSymbol].getAttributeNS(null, "marginheight");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set defaultValue(V) {
+ set marginHeight(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set defaultValue' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set marginHeight' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'defaultValue' property on 'HTMLInputElement': The provided value"
+ context: "Failed to set the 'marginHeight' property on 'HTMLFrameElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
+ esValue[implSymbol].setAttributeNS(null, "marginheight", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get value() {
+ get marginWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get marginWidth' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["value"];
+ const value = esValue[implSymbol].getAttributeNS(null, "marginwidth");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set marginWidth(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set marginWidth' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLInputElement': The provided value",
+ context: "Failed to set the 'marginWidth' property on 'HTMLFrameElement': The provided value",
treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["value"] = V;
+ esValue[implSymbol].setAttributeNS(null, "marginwidth", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLFrameElement.prototype, {
+ name: { enumerable: true },
+ scrolling: { enumerable: true },
+ src: { enumerable: true },
+ frameBorder: { enumerable: true },
+ longDesc: { enumerable: true },
+ noResize: { enumerable: true },
+ contentDocument: { enumerable: true },
+ contentWindow: { enumerable: true },
+ marginHeight: { enumerable: true },
+ marginWidth: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLFrameElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLFrameElement;
- get valueAsDate() {
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLFrameElement
+ });
+};
+
+const Impl = __nccwpck_require__(16634);
+
+
+/***/ }),
+
+/***/ 336:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const EventHandlerNonNull = __nccwpck_require__(23129);
+const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLFrameSetElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLFrameSetElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLFrameSetElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLFrameSetElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLFrameSetElement before HTMLElement");
+ }
+ class HTMLFrameSetElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+
+ get cols() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get valueAsDate' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get cols' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
- return esValue[implSymbol]["valueAsDate"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "cols");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set valueAsDate(V) {
+ set cols(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set valueAsDate' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set cols' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
- if (V === null || V === undefined) {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'cols' property on 'HTMLFrameSetElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "cols", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get rows() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "rows");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set rows(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set rows' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'rows' property on 'HTMLFrameSetElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "rows", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get onafterprint() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
+ }
+
+ set onafterprint(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ if (!utils.isObject(V)) {
V = null;
} else {
- V = conversions["object"](V, {
- context: "Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value"
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onafterprint' property on 'HTMLFrameSetElement': The provided value"
});
}
- esValue[implSymbol]["valueAsDate"] = V;
+ esValue[implSymbol]["onafterprint"] = V;
}
- get valueAsNumber() {
+ get onbeforeprint() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
+ "'get onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- return esValue[implSymbol]["valueAsNumber"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
}
- set valueAsNumber(V) {
+ set onbeforeprint(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
+ "'set onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The provided value"
- });
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onbeforeprint' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onbeforeprint"] = V;
+ }
- esValue[implSymbol]["valueAsNumber"] = V;
+ get onbeforeunload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
}
- get willValidate() {
+ set onbeforeunload(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get willValidate' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'set onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
}
- return esValue[implSymbol]["willValidate"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onbeforeunload' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onbeforeunload"] = V;
}
- get validity() {
+ get onhashchange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
}
- get validationMessage() {
+ set onhashchange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLInputElement."
+ "'set onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- return esValue[implSymbol]["validationMessage"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onhashchange' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onhashchange"] = V;
}
- get labels() {
+ get onlanguagechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
}
- get selectionStart() {
+ set onlanguagechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get selectionStart' called on an object that is not a valid instance of HTMLInputElement."
+ "'set onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- return esValue[implSymbol]["selectionStart"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onlanguagechange' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onlanguagechange"] = V;
}
- set selectionStart(V) {
+ get onmessage() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmessage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
+ }
+
+ set onmessage(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmessage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmessage' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmessage"] = V;
+ }
+
+ get onmessageerror() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set selectionStart' called on an object that is not a valid instance of HTMLInputElement."
+ "'get onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- if (V === null || V === undefined) {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
+ }
+
+ set onmessageerror(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ if (!utils.isObject(V)) {
V = null;
} else {
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionStart' property on 'HTMLInputElement': The provided value"
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmessageerror' property on 'HTMLFrameSetElement': The provided value"
});
}
- esValue[implSymbol]["selectionStart"] = V;
+ esValue[implSymbol]["onmessageerror"] = V;
}
- get selectionEnd() {
+ get onoffline() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get selectionEnd' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get onoffline' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
- return esValue[implSymbol]["selectionEnd"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
}
- set selectionEnd(V) {
+ set onoffline(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set selectionEnd' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'set onoffline' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
- if (V === null || V === undefined) {
+ if (!utils.isObject(V)) {
V = null;
} else {
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionEnd' property on 'HTMLInputElement': The provided value"
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onoffline' property on 'HTMLFrameSetElement': The provided value"
});
}
- esValue[implSymbol]["selectionEnd"] = V;
+ esValue[implSymbol]["onoffline"] = V;
}
- get selectionDirection() {
+ get ononline() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ononline' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
+ }
+
+ set ononline(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ononline' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ononline' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ononline"] = V;
+ }
+
+ get onpagehide() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
+ "'get onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- return esValue[implSymbol]["selectionDirection"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
}
- set selectionDirection(V) {
+ set onpagehide(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
+ "'set onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
- if (V === null || V === undefined) {
+ if (!utils.isObject(V)) {
V = null;
} else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'selectionDirection' property on 'HTMLInputElement': The provided value"
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpagehide' property on 'HTMLFrameSetElement': The provided value"
});
}
- esValue[implSymbol]["selectionDirection"] = V;
+ esValue[implSymbol]["onpagehide"] = V;
}
- get align() {
+ get onpageshow() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
+ }
+
+ set onpageshow(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpageshow' property on 'HTMLFrameSetElement': The provided value"
+ });
}
+ esValue[implSymbol]["onpageshow"] = V;
}
- set align(V) {
+ get onpopstate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLInputElement': The provided value"
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ set onpopstate(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpopstate' property on 'HTMLFrameSetElement': The provided value"
+ });
}
+ esValue[implSymbol]["onpopstate"] = V;
}
- get useMap() {
+ get onrejectionhandled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError(
+ "'get onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "usemap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
+ }
+
+ set onrejectionhandled(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onrejectionhandled' property on 'HTMLFrameSetElement': The provided value"
+ });
}
+ esValue[implSymbol]["onrejectionhandled"] = V;
}
- set useMap(V) {
+ get onstorage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLInputElement.");
+ throw new TypeError("'get onstorage' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'useMap' property on 'HTMLInputElement': The provided value"
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "usemap", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ set onstorage(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onstorage' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onstorage' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onstorage"] = V;
+ }
+
+ get onunhandledrejection() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
+ }
+
+ set onunhandledrejection(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
+ );
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onunhandledrejection' property on 'HTMLFrameSetElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onunhandledrejection"] = V;
+ }
+
+ get onunload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onunload' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
+ }
+
+ set onunload(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onunload' called on an object that is not a valid instance of HTMLFrameSetElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onunload' property on 'HTMLFrameSetElement': The provided value"
+ });
}
+ esValue[implSymbol]["onunload"] = V;
}
}
- Object.defineProperties(HTMLInputElement.prototype, {
- stepUp: { enumerable: true },
- stepDown: { enumerable: true },
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- select: { enumerable: true },
- setRangeText: { enumerable: true },
- setSelectionRange: { enumerable: true },
- accept: { enumerable: true },
- alt: { enumerable: true },
- autocomplete: { enumerable: true },
- autofocus: { enumerable: true },
- defaultChecked: { enumerable: true },
- checked: { enumerable: true },
- dirName: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- files: { enumerable: true },
- formNoValidate: { enumerable: true },
- formTarget: { enumerable: true },
- indeterminate: { enumerable: true },
- inputMode: { enumerable: true },
- list: { enumerable: true },
- max: { enumerable: true },
- maxLength: { enumerable: true },
- min: { enumerable: true },
- minLength: { enumerable: true },
- multiple: { enumerable: true },
- name: { enumerable: true },
- pattern: { enumerable: true },
- placeholder: { enumerable: true },
- readOnly: { enumerable: true },
- required: { enumerable: true },
- size: { enumerable: true },
- src: { enumerable: true },
- step: { enumerable: true },
- type: { enumerable: true },
- defaultValue: { enumerable: true },
- value: { enumerable: true },
- valueAsDate: { enumerable: true },
- valueAsNumber: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- selectionStart: { enumerable: true },
- selectionEnd: { enumerable: true },
- selectionDirection: { enumerable: true },
- align: { enumerable: true },
- useMap: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLInputElement", configurable: true }
+ Object.defineProperties(HTMLFrameSetElement.prototype, {
+ cols: { enumerable: true },
+ rows: { enumerable: true },
+ onafterprint: { enumerable: true },
+ onbeforeprint: { enumerable: true },
+ onbeforeunload: { enumerable: true },
+ onhashchange: { enumerable: true },
+ onlanguagechange: { enumerable: true },
+ onmessage: { enumerable: true },
+ onmessageerror: { enumerable: true },
+ onoffline: { enumerable: true },
+ ononline: { enumerable: true },
+ onpagehide: { enumerable: true },
+ onpageshow: { enumerable: true },
+ onpopstate: { enumerable: true },
+ onrejectionhandled: { enumerable: true },
+ onstorage: { enumerable: true },
+ onunhandledrejection: { enumerable: true },
+ onunload: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLFrameSetElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLInputElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLFrameSetElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLInputElement
+ value: HTMLFrameSetElement
});
};
-const Impl = __nccwpck_require__(9673);
+const Impl = __nccwpck_require__(13449);
/***/ }),
-/***/ 46621:
+/***/ 18121:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -91168,15 +85684,14 @@ const Impl = __nccwpck_require__(9673);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseInteger_helpers_strings = __nccwpck_require__(4764).parseInteger;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLLIElement";
+const interfaceName = "HTMLHRElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -91188,7 +85703,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLLIElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLHRElement'.`);
};
function makeWrapper(globalObject) {
@@ -91196,9 +85711,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLLIElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLHRElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLLIElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLHRElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -91234,7 +85749,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -91258,110 +85773,217 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLLIElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLHRElement before HTMLElement");
}
- class HTMLLIElement extends globalObject.HTMLElement {
+ class HTMLHRElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get value() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLLIElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "value");
- if (value === null) {
- return 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set align(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLHRElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLHRElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "align", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get color() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get color' called on an object that is not a valid instance of HTMLHRElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "color");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set color(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set color' called on an object that is not a valid instance of HTMLHRElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'color' property on 'HTMLHRElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "color", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get noShade() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get noShade' called on an object that is not a valid instance of HTMLHRElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "noshade");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set noShade(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set noShade' called on an object that is not a valid instance of HTMLHRElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'noShade' property on 'HTMLHRElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "noshade", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "noshade");
}
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ get size() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLLIElement.");
+ throw new TypeError("'get size' called on an object that is not a valid instance of HTMLHRElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'value' property on 'HTMLLIElement': The provided value"
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "size");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set size(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set size' called on an object that is not a valid instance of HTMLHRElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'size' property on 'HTMLHRElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "value", String(V));
+ esValue[implSymbol].setAttributeNS(null, "size", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLLIElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set type(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLLIElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLHRElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLLIElement': The provided value"
+ context: "Failed to set the 'width' property on 'HTMLHRElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
+ esValue[implSymbol].setAttributeNS(null, "width", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLLIElement.prototype, {
- value: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLIElement", configurable: true }
+ Object.defineProperties(HTMLHRElement.prototype, {
+ align: { enumerable: true },
+ color: { enumerable: true },
+ noShade: { enumerable: true },
+ size: { enumerable: true },
+ width: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLHRElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLLIElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLHRElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLLIElement
+ value: HTMLHRElement
});
};
-const Impl = __nccwpck_require__(22153);
+const Impl = __nccwpck_require__(96676);
/***/ }),
-/***/ 53321:
+/***/ 46196:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -91370,14 +85992,12 @@ const Impl = __nccwpck_require__(22153);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLLabelElement";
+const interfaceName = "HTMLHeadElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -91389,7 +86009,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLLabelElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLHeadElement'.`);
};
function makeWrapper(globalObject) {
@@ -91397,9 +86017,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLLabelElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLHeadElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLLabelElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLHeadElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -91435,7 +86055,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -91459,92 +86079,34 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLLabelElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLHeadElement before HTMLElement");
}
- class HTMLLabelElement extends globalObject.HTMLElement {
+ class HTMLHeadElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLLabelElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get htmlFor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLLabelElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "for");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set htmlFor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLLabelElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'htmlFor' property on 'HTMLLabelElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "for", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get control() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get control' called on an object that is not a valid instance of HTMLLabelElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["control"]);
- }
}
- Object.defineProperties(HTMLLabelElement.prototype, {
- form: { enumerable: true },
- htmlFor: { enumerable: true },
- control: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLabelElement", configurable: true }
+ Object.defineProperties(HTMLHeadElement.prototype, {
+ [Symbol.toStringTag]: { value: "HTMLHeadElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLLabelElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLHeadElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLLabelElement
+ value: HTMLHeadElement
});
};
-const Impl = __nccwpck_require__(82353);
+const Impl = __nccwpck_require__(25475);
/***/ }),
-/***/ 66649:
+/***/ 92272:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -91553,14 +86115,14 @@ const Impl = __nccwpck_require__(82353);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLLegendElement";
+const interfaceName = "HTMLHeadingElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -91572,7 +86134,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLLegendElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLHeadingElement'.`);
};
function makeWrapper(globalObject) {
@@ -91580,9 +86142,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLLegendElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLHeadingElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLLegendElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLHeadingElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -91618,7 +86180,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -91642,28 +86204,18 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLLegendElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLHeadingElement before HTMLElement");
}
- class HTMLLegendElement extends globalObject.HTMLElement {
+ class HTMLHeadingElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLLegendElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLLegendElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLHeadingElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -91679,11 +86231,11 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLLegendElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLHeadingElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLLegendElement': The provided value"
+ context: "Failed to set the 'align' property on 'HTMLHeadingElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -91694,29 +86246,28 @@ exports.install = (globalObject, globalNames) => {
}
}
}
- Object.defineProperties(HTMLLegendElement.prototype, {
- form: { enumerable: true },
+ Object.defineProperties(HTMLHeadingElement.prototype, {
align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLegendElement", configurable: true }
+ [Symbol.toStringTag]: { value: "HTMLHeadingElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLLegendElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLHeadingElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLLegendElement
+ value: HTMLHeadingElement
});
};
-const Impl = __nccwpck_require__(21287);
+const Impl = __nccwpck_require__(82223);
/***/ }),
-/***/ 14914:
+/***/ 2146:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -91725,16 +86276,14 @@ const Impl = __nccwpck_require__(21287);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLLinkElement";
+const interfaceName = "HTMLHtmlElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -91746,7 +86295,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLLinkElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLHtmlElement'.`);
};
function makeWrapper(globalObject) {
@@ -91754,9 +86303,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLLinkElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLHtmlElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLLinkElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLHtmlElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -91792,7 +86341,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -91816,410 +86365,698 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLLinkElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLHtmlElement before HTMLElement");
}
- class HTMLLinkElement extends globalObject.HTMLElement {
+ class HTMLHtmlElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get href() {
+ get version() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get href' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get version' called on an object that is not a valid instance of HTMLHtmlElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "href");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ const value = esValue[implSymbol].getAttributeNS(null, "version");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set href(V) {
+ set version(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set href' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set version' called on an object that is not a valid instance of HTMLHtmlElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'version' property on 'HTMLHtmlElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "version", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ }
+ Object.defineProperties(HTMLHtmlElement.prototype, {
+ version: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLHtmlElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLHtmlElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLHtmlElement
+ });
+};
+
+const Impl = __nccwpck_require__(64679);
+
+
+/***/ }),
+
+/***/ 46873:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLIFrameElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLIFrameElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLIFrameElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLIFrameElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLIFrameElement before HTMLElement");
+ }
+ class HTMLIFrameElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+
+ getSVGDocument() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getSVGDocument' called on an object that is not a valid instance of HTMLIFrameElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].getSVGDocument());
+ }
+
+ get src() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLIFrameElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set src(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'src' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "href", V);
+ esValue[implSymbol].setAttributeNS(null, "src", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get crossOrigin() {
+ get srcdoc() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get srcdoc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
+ const value = esValue[implSymbol].getAttributeNS(null, "srcdoc");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set crossOrigin(V) {
+ set srcdoc(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set srcdoc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLLinkElement': The provided value"
- });
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'srcdoc' property on 'HTMLIFrameElement': The provided value"
+ });
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
+ esValue[implSymbol].setAttributeNS(null, "srcdoc", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rel() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "rel");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set rel(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'rel' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'name' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "rel", V);
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get relList() {
+ get allowFullscreen() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError(
+ "'get allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
+ );
}
- return utils.getSameObject(this, "relList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "allowfullscreen");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set relList(V) {
+ set allowFullscreen(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError(
+ "'set allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
+ );
}
- const Q = esValue["relList"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'relList' is not an object");
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'allowFullscreen' property on 'HTMLIFrameElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "allowfullscreen", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "allowfullscreen");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- Reflect.set(Q, "value", V);
}
- get media() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get media' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "media");
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set media(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set media' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'media' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'width' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "media", V);
+ esValue[implSymbol].setAttributeNS(null, "width", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get hreflang() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hreflang' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "hreflang");
+ const value = esValue[implSymbol].getAttributeNS(null, "height");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set hreflang(V) {
+ set height(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hreflang' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'hreflang' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'height' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "hreflang", V);
+ esValue[implSymbol].setAttributeNS(null, "height", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get contentDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError(
+ "'get contentDocument' called on an object that is not a valid instance of HTMLIFrameElement."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
+ }
+
+ get contentWindow() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get contentWindow' called on an object that is not a valid instance of HTMLIFrameElement."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
+ }
+
+ get align() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set type(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'align' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get charset() {
+ get scrolling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get scrolling' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "charset");
+ const value = esValue[implSymbol].getAttributeNS(null, "scrolling");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set charset(V) {
+ set scrolling(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set scrolling' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'charset' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'scrolling' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "charset", V);
+ esValue[implSymbol].setAttributeNS(null, "scrolling", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rev() {
+ get frameBorder() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rev' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get frameBorder' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "rev");
+ const value = esValue[implSymbol].getAttributeNS(null, "frameborder");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set rev(V) {
+ set frameBorder(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set rev' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'set frameBorder' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'rev' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'frameBorder' property on 'HTMLIFrameElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "rev", V);
+ esValue[implSymbol].setAttributeNS(null, "frameborder", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get target() {
+ get longDesc() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
+ const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set longDesc(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLIFrameElement.");
+ }
+
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'longDesc' property on 'HTMLIFrameElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "longdesc", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get marginHeight() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
+ );
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "marginheight");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set target(V) {
+ set marginHeight(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set target' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError(
+ "'set marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
+ );
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLLinkElement': The provided value"
+ context: "Failed to set the 'marginHeight' property on 'HTMLIFrameElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
+ esValue[implSymbol].setAttributeNS(null, "marginheight", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get sheet() {
+ get marginWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get sheet' called on an object that is not a valid instance of HTMLLinkElement.");
+ throw new TypeError("'get marginWidth' called on an object that is not a valid instance of HTMLIFrameElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "marginwidth");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set marginWidth(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set marginWidth' called on an object that is not a valid instance of HTMLIFrameElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'marginWidth' property on 'HTMLIFrameElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "marginwidth", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(HTMLLinkElement.prototype, {
- href: { enumerable: true },
- crossOrigin: { enumerable: true },
- rel: { enumerable: true },
- relList: { enumerable: true },
- media: { enumerable: true },
- hreflang: { enumerable: true },
- type: { enumerable: true },
- charset: { enumerable: true },
- rev: { enumerable: true },
- target: { enumerable: true },
- sheet: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLinkElement", configurable: true }
+ Object.defineProperties(HTMLIFrameElement.prototype, {
+ getSVGDocument: { enumerable: true },
+ src: { enumerable: true },
+ srcdoc: { enumerable: true },
+ name: { enumerable: true },
+ allowFullscreen: { enumerable: true },
+ width: { enumerable: true },
+ height: { enumerable: true },
+ contentDocument: { enumerable: true },
+ contentWindow: { enumerable: true },
+ align: { enumerable: true },
+ scrolling: { enumerable: true },
+ frameBorder: { enumerable: true },
+ longDesc: { enumerable: true },
+ marginHeight: { enumerable: true },
+ marginWidth: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLIFrameElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLLinkElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLIFrameElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLLinkElement
+ value: HTMLIFrameElement
});
};
-const Impl = __nccwpck_require__(23206);
+const Impl = __nccwpck_require__(10168);
/***/ }),
-/***/ 38553:
+/***/ 69785:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -92228,14 +87065,17 @@ const Impl = __nccwpck_require__(23206);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLMapElement";
+const interfaceName = "HTMLImageElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -92247,7 +87087,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLMapElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLImageElement'.`);
};
function makeWrapper(globalObject) {
@@ -92255,9 +87095,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLMapElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLImageElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLMapElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLImageElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -92293,7 +87133,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -92317,288 +87157,304 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLMapElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLImageElement before HTMLElement");
}
- class HTMLMapElement extends globalObject.HTMLElement {
+ class HTMLImageElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get name() {
+ get alt() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLMapElement.");
+ throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "alt");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set alt(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLMapElement.");
+ throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLMapElement': The provided value"
+ context: "Failed to set the 'alt' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol].setAttributeNS(null, "alt", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get areas() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get areas' called on an object that is not a valid instance of HTMLMapElement.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLImageElement.");
}
- return utils.getSameObject(this, "areas", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["areas"]);
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(HTMLMapElement.prototype, {
- name: { enumerable: true },
- areas: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMapElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLMapElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMapElement
- });
-};
-const Impl = __nccwpck_require__(18340);
+ set src(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-/***/ }),
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLImageElement': The provided value"
+ });
-/***/ 7617:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "src", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-"use strict";
+ get srcset() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get srcset' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "srcset");
+ return value === null ? "" : conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseNonNegativeInteger_helpers_strings = __nccwpck_require__(4764).parseNonNegativeInteger;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ set srcset(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "HTMLMarqueeElement";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set srcset' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLMarqueeElement'.`);
-};
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'srcset' property on 'HTMLImageElement': The provided value"
+ });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "srcset", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLMarqueeElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLMarqueeElement is not installed on the passed global object");
- }
+ get sizes() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get sizes' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "sizes");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set sizes(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set sizes' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'sizes' property on 'HTMLImageElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "sizes", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get crossOrigin() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLImageElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set crossOrigin(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'crossOrigin' property on 'HTMLImageElement': The provided value"
+ });
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLMarqueeElement before HTMLElement");
- }
- class HTMLMarqueeElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get behavior() {
+ get useMap() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get behavior' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "behavior");
+ const value = esValue[implSymbol].getAttributeNS(null, "usemap");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set behavior(V) {
+ set useMap(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set behavior' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'behavior' property on 'HTMLMarqueeElement': The provided value"
+ context: "Failed to set the 'useMap' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "behavior", V);
+ esValue[implSymbol].setAttributeNS(null, "usemap", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get bgColor() {
+ get isMap() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get isMap' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "ismap");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set bgColor(V) {
+ set isMap(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set isMap' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'isMap' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "ismap", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "ismap");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get direction() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get direction' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "direction");
- return value === null ? "" : value;
+ return esValue[implSymbol]["width"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set direction(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set direction' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'direction' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'width' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "direction", V);
+ esValue[implSymbol]["width"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
@@ -92608,13 +87464,12 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
+ return esValue[implSymbol]["height"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
@@ -92624,182 +87479,213 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'height' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
+ esValue[implSymbol]["height"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get hspace() {
+ get naturalWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get naturalWidth' called on an object that is not a valid instance of HTMLImageElement.");
+ }
+
+ return esValue[implSymbol]["naturalWidth"];
+ }
+
+ get naturalHeight() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get naturalHeight' called on an object that is not a valid instance of HTMLImageElement."
+ );
+ }
+
+ return esValue[implSymbol]["naturalHeight"];
+ }
+
+ get complete() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get complete' called on an object that is not a valid instance of HTMLImageElement.");
+ }
+
+ return esValue[implSymbol]["complete"];
+ }
+
+ get currentSrc() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get currentSrc' called on an object that is not a valid instance of HTMLImageElement.");
+ }
+
+ return esValue[implSymbol]["currentSrc"];
+ }
+
+ get name() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "hspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set hspace(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'hspace' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get scrollAmount() {
+ get lowsrc() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
+ throw new TypeError("'get lowsrc' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "scrollamount");
+ const value = esValue[implSymbol].getAttributeNS(null, "lowsrc");
if (value === null) {
- return 0;
+ return "";
}
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set scrollAmount(V) {
+ set lowsrc(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
+ throw new TypeError("'set lowsrc' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'scrollAmount' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'lowsrc' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "scrollamount", String(n));
+ esValue[implSymbol].setAttributeNS(null, "lowsrc", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get scrollDelay() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "scrolldelay");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set scrollDelay(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'scrollDelay' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "scrolldelay", String(n));
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get trueSpeed() {
+ get hspace() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "truespeed");
+ let value = esValue[implSymbol].getAttributeNS(null, "hspace");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set trueSpeed(V) {
+ set hspace(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'trueSpeed' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'hspace' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "truespeed", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "truespeed");
- }
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
@@ -92809,7 +87695,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -92829,11 +87715,11 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["unsigned long"](V, {
- context: "Failed to set the 'vspace' property on 'HTMLMarqueeElement': The provided value"
+ context: "Failed to set the 'vspace' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -92845,90 +87731,148 @@ exports.install = (globalObject, globalNames) => {
}
}
- get width() {
+ get longDesc() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
+ const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set width(V) {
+ set longDesc(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLImageElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLMarqueeElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'longDesc' property on 'HTMLImageElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
+ esValue[implSymbol].setAttributeNS(null, "longdesc", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLMarqueeElement.prototype, {
- behavior: { enumerable: true },
- bgColor: { enumerable: true },
- direction: { enumerable: true },
- height: { enumerable: true },
- hspace: { enumerable: true },
- scrollAmount: { enumerable: true },
- scrollDelay: { enumerable: true },
- trueSpeed: { enumerable: true },
- vspace: { enumerable: true },
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMarqueeElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLMarqueeElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMarqueeElement
- });
-};
-const Impl = __nccwpck_require__(61238);
-
-
-/***/ }),
+ get border() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 61639:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get border' called on an object that is not a valid instance of HTMLImageElement.");
+ }
-"use strict";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "border");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set border(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set border' called on an object that is not a valid instance of HTMLImageElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'border' property on 'HTMLImageElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "border", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ }
+ Object.defineProperties(HTMLImageElement.prototype, {
+ alt: { enumerable: true },
+ src: { enumerable: true },
+ srcset: { enumerable: true },
+ sizes: { enumerable: true },
+ crossOrigin: { enumerable: true },
+ useMap: { enumerable: true },
+ isMap: { enumerable: true },
+ width: { enumerable: true },
+ height: { enumerable: true },
+ naturalWidth: { enumerable: true },
+ naturalHeight: { enumerable: true },
+ complete: { enumerable: true },
+ currentSrc: { enumerable: true },
+ name: { enumerable: true },
+ lowsrc: { enumerable: true },
+ align: { enumerable: true },
+ hspace: { enumerable: true },
+ vspace: { enumerable: true },
+ longDesc: { enumerable: true },
+ border: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLImageElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLImageElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLImageElement
+ });
+};
+
+const Impl = __nccwpck_require__(99033);
+
+
+/***/ }),
+
+/***/ 95472:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const TextTrackKind = __nccwpck_require__(57191);
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const SelectionMode = __nccwpck_require__(12458);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const FileList = __nccwpck_require__(51414);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLMediaElement";
+const interfaceName = "HTMLInputElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -92940,7 +87884,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLMediaElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLInputElement'.`);
};
function makeWrapper(globalObject) {
@@ -92948,9 +87892,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLMediaElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLInputElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLMediaElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLInputElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -92986,7 +87930,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -93010,31 +87954,82 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLMediaElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLInputElement before HTMLElement");
}
- class HTMLMediaElement extends globalObject.HTMLElement {
+ class HTMLInputElement extends globalObject.HTMLElement {
constructor() {
- throw new TypeError("Illegal constructor");
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- load() {
+ stepUp() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'load' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'stepUp' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'stepUp' on 'HTMLInputElement': parameter 1"
+ });
+ } else {
+ curArg = 1;
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].stepUp(...args);
+ }
- return esValue[implSymbol].load();
+ stepDown() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'stepDown' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'stepDown' on 'HTMLInputElement': parameter 1"
+ });
+ } else {
+ curArg = 1;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].stepDown(...args);
}
- canPlayType(type) {
+ checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'canPlayType' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+
+ return esValue[implSymbol].checkValidity();
+ }
+
+ reportValidity() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+
+ return esValue[implSymbol].reportValidity();
+ }
+
+ setCustomValidity(error) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'canPlayType' on 'HTMLMediaElement': 1 argument required, but only " +
+ "Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -93043,44 +88038,122 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'canPlayType' on 'HTMLMediaElement': parameter 1"
+ context: "Failed to execute 'setCustomValidity' on 'HTMLInputElement': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].canPlayType(...args));
+ return esValue[implSymbol].setCustomValidity(...args);
}
- play() {
- try {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'play' called on an object that is not a valid instance of HTMLMediaElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].play());
- } catch (e) {
- return Promise.reject(e);
+ select() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'select' called on an object that is not a valid instance of HTMLInputElement.");
}
+
+ return esValue[implSymbol].select();
}
- pause() {
+ setRangeText(replacement) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'pause' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'setRangeText' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol].pause();
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setRangeText' on 'HTMLInputElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ switch (arguments.length) {
+ case 1:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ break;
+ case 2:
+ throw new TypeError(
+ "Failed to execute 'setRangeText' on 'HTMLInputElement': only " + arguments.length + " arguments present."
+ );
+ break;
+ case 3:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3"
+ });
+ args.push(curArg);
+ }
+ break;
+ default:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ curArg = SelectionMode.convert(curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 4"
+ });
+ } else {
+ curArg = "preserve";
+ }
+ args.push(curArg);
+ }
+ }
+ return esValue[implSymbol].setRangeText(...args);
}
- addTextTrack(kind) {
+ setSelectionRange(start, end) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'addTextTrack' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError(
+ "'setSelectionRange' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only " +
+ "Failed to execute 'setSelectionRange' on 'HTMLInputElement': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -93088,1417 +88161,1401 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = TextTrackKind.convert(curArg, {
- context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 1"
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 1"
});
args.push(curArg);
}
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 2"
- });
- } else {
- curArg = "";
- }
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 2"
+ });
args.push(curArg);
}
{
let curArg = arguments[2];
if (curArg !== undefined) {
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 3"
+ context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 3"
});
- } else {
- curArg = "";
}
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].addTextTrack(...args));
+ return esValue[implSymbol].setSelectionRange(...args);
}
- get src() {
+ get accept() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get accept' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ const value = esValue[implSymbol].getAttributeNS(null, "accept");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set src(V) {
+ set accept(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set accept' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLMediaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'accept' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
+ esValue[implSymbol].setAttributeNS(null, "accept", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get currentSrc() {
+ get alt() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get currentSrc' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["currentSrc"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "alt");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get crossOrigin() {
+ set alt(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLInputElement.");
}
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'alt' property on 'HTMLInputElement': The provided value"
+ });
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
+ esValue[implSymbol].setAttributeNS(null, "alt", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get autocomplete() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get autocomplete' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "autocomplete");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set crossOrigin(V) {
+ set autocomplete(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set autocomplete' called on an object that is not a valid instance of HTMLInputElement.");
}
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLMediaElement': The provided value"
- });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'autocomplete' property on 'HTMLInputElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "autocomplete", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get autofocus() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
+ return esValue[implSymbol].hasAttributeNS(null, "autofocus");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get networkState() {
+ set autofocus(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get networkState' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["networkState"];
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'autofocus' property on 'HTMLInputElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "autofocus", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "autofocus");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get preload() {
+ get defaultChecked() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get preload' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError(
+ "'get defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "preload");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "checked");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set preload(V) {
+ set defaultChecked(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set preload' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError(
+ "'set defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'preload' property on 'HTMLMediaElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'defaultChecked' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "preload", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "checked", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "checked");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get buffered() {
+ get checked() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get buffered' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get checked' called on an object that is not a valid instance of HTMLInputElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["buffered"]);
+ return esValue[implSymbol]["checked"];
}
- get readyState() {
+ set checked(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get readyState' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set checked' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["readyState"];
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'checked' property on 'HTMLInputElement': The provided value"
+ });
+
+ esValue[implSymbol]["checked"] = V;
}
- get seeking() {
+ get dirName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get seeking' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get dirName' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["seeking"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "dirname");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get currentTime() {
+ set dirName(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get currentTime' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set dirName' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["currentTime"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'dirName' property on 'HTMLInputElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "dirname", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set currentTime(V) {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set currentTime' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided value"
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set disabled(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLInputElement': The provided value"
});
- esValue[implSymbol]["currentTime"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get duration() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get duration' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["duration"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
}
- get paused() {
+ get files() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get paused' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get files' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["paused"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["files"]);
}
- get defaultPlaybackRate() {
+ set files(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
- );
+ throw new TypeError("'set files' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["defaultPlaybackRate"];
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = FileList.convert(V, {
+ context: "Failed to set the 'files' property on 'HTMLInputElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["files"] = V;
}
- set defaultPlaybackRate(V) {
+ get formNoValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
+ "'get formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
);
}
- V = conversions["double"](V, {
- context: "Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided value"
- });
-
- esValue[implSymbol]["defaultPlaybackRate"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "formnovalidate");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get playbackRate() {
+ set formNoValidate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get playbackRate' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError(
+ "'set formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- return esValue[implSymbol]["playbackRate"];
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'formNoValidate' property on 'HTMLInputElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "formnovalidate", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "formnovalidate");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set playbackRate(V) {
+ get formTarget() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set playbackRate' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get formTarget' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided value"
- });
-
- esValue[implSymbol]["playbackRate"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "formtarget");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get played() {
+ set formTarget(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get played' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set formTarget' called on an object that is not a valid instance of HTMLInputElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["played"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'formTarget' property on 'HTMLInputElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "formtarget", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get seekable() {
+ get indeterminate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get seekable' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError(
+ "'get indeterminate' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["seekable"]);
+ return esValue[implSymbol]["indeterminate"];
}
- get ended() {
+ set indeterminate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ended' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError(
+ "'set indeterminate' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- return esValue[implSymbol]["ended"];
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'indeterminate' property on 'HTMLInputElement': The provided value"
+ });
+
+ esValue[implSymbol]["indeterminate"] = V;
}
- get autoplay() {
+ get inputMode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get autoplay' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get inputMode' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "autoplay");
+ const value = esValue[implSymbol].getAttributeNS(null, "inputmode");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set autoplay(V) {
+ set inputMode(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set autoplay' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set inputMode' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autoplay' property on 'HTMLMediaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'inputMode' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autoplay", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autoplay");
- }
+ esValue[implSymbol].setAttributeNS(null, "inputmode", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get loop() {
+ get list() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get loop' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get list' called on an object that is not a valid instance of HTMLInputElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["list"]);
+ }
+
+ get max() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get max' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "loop");
+ const value = esValue[implSymbol].getAttributeNS(null, "max");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set loop(V) {
+ set max(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set loop' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set max' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'loop' property on 'HTMLMediaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'max' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "loop", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "loop");
- }
+ esValue[implSymbol].setAttributeNS(null, "max", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get controls() {
+ get maxLength() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get controls' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get maxLength' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "controls");
+ return esValue[implSymbol]["maxLength"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set controls(V) {
+ set maxLength(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set controls' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set maxLength' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'controls' property on 'HTMLMediaElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "controls", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "controls");
- }
+ esValue[implSymbol]["maxLength"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get volume() {
+ get min() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get volume' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get min' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["volume"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "min");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set volume(V) {
+ set min(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set volume' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set min' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'volume' property on 'HTMLMediaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'min' property on 'HTMLInputElement': The provided value"
});
- esValue[implSymbol]["volume"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "min", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get muted() {
+ get minLength() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get muted' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get minLength' called on an object that is not a valid instance of HTMLInputElement.");
}
- return esValue[implSymbol]["muted"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["minLength"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set muted(V) {
+ set minLength(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set muted' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set minLength' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'muted' property on 'HTMLMediaElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'minLength' property on 'HTMLInputElement': The provided value"
});
- esValue[implSymbol]["muted"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["minLength"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get defaultMuted() {
+ get multiple() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get defaultMuted' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get multiple' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "muted");
+ return esValue[implSymbol].hasAttributeNS(null, "multiple");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set defaultMuted(V) {
+ set multiple(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set defaultMuted' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set multiple' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
- context: "Failed to set the 'defaultMuted' property on 'HTMLMediaElement': The provided value"
+ context: "Failed to set the 'multiple' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
if (V) {
- esValue[implSymbol].setAttributeNS(null, "muted", "");
+ esValue[implSymbol].setAttributeNS(null, "multiple", "");
} else {
- esValue[implSymbol].removeAttributeNS(null, "muted");
+ esValue[implSymbol].removeAttributeNS(null, "multiple");
}
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get audioTracks() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get audioTracks' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLInputElement.");
}
- return utils.getSameObject(this, "audioTracks", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["audioTracks"]);
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get videoTracks() {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get videoTracks' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLInputElement.");
}
- return utils.getSameObject(this, "videoTracks", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["videoTracks"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLInputElement': The provided value"
});
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "name", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get textTracks() {
+ get pattern() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get textTracks' called on an object that is not a valid instance of HTMLMediaElement.");
+ throw new TypeError("'get pattern' called on an object that is not a valid instance of HTMLInputElement.");
}
- return utils.getSameObject(this, "textTracks", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["textTracks"]);
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "pattern");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(HTMLMediaElement.prototype, {
- load: { enumerable: true },
- canPlayType: { enumerable: true },
- play: { enumerable: true },
- pause: { enumerable: true },
- addTextTrack: { enumerable: true },
- src: { enumerable: true },
- currentSrc: { enumerable: true },
- crossOrigin: { enumerable: true },
- networkState: { enumerable: true },
- preload: { enumerable: true },
- buffered: { enumerable: true },
- readyState: { enumerable: true },
- seeking: { enumerable: true },
- currentTime: { enumerable: true },
- duration: { enumerable: true },
- paused: { enumerable: true },
- defaultPlaybackRate: { enumerable: true },
- playbackRate: { enumerable: true },
- played: { enumerable: true },
- seekable: { enumerable: true },
- ended: { enumerable: true },
- autoplay: { enumerable: true },
- loop: { enumerable: true },
- controls: { enumerable: true },
- volume: { enumerable: true },
- muted: { enumerable: true },
- defaultMuted: { enumerable: true },
- audioTracks: { enumerable: true },
- videoTracks: { enumerable: true },
- textTracks: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMediaElement", configurable: true },
- NETWORK_EMPTY: { value: 0, enumerable: true },
- NETWORK_IDLE: { value: 1, enumerable: true },
- NETWORK_LOADING: { value: 2, enumerable: true },
- NETWORK_NO_SOURCE: { value: 3, enumerable: true },
- HAVE_NOTHING: { value: 0, enumerable: true },
- HAVE_METADATA: { value: 1, enumerable: true },
- HAVE_CURRENT_DATA: { value: 2, enumerable: true },
- HAVE_FUTURE_DATA: { value: 3, enumerable: true },
- HAVE_ENOUGH_DATA: { value: 4, enumerable: true }
- });
- Object.defineProperties(HTMLMediaElement, {
- NETWORK_EMPTY: { value: 0, enumerable: true },
- NETWORK_IDLE: { value: 1, enumerable: true },
- NETWORK_LOADING: { value: 2, enumerable: true },
- NETWORK_NO_SOURCE: { value: 3, enumerable: true },
- HAVE_NOTHING: { value: 0, enumerable: true },
- HAVE_METADATA: { value: 1, enumerable: true },
- HAVE_CURRENT_DATA: { value: 2, enumerable: true },
- HAVE_FUTURE_DATA: { value: 3, enumerable: true },
- HAVE_ENOUGH_DATA: { value: 4, enumerable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLMediaElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMediaElement
- });
-};
-
-const Impl = __nccwpck_require__(78090);
-
-
-/***/ }),
-
-/***/ 89976:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMenuElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLMenuElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLMenuElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLMenuElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set pattern(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set pattern' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'pattern' property on 'HTMLInputElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "pattern", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get placeholder() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get placeholder' called on an object that is not a valid instance of HTMLInputElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "placeholder");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set placeholder(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set placeholder' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'placeholder' property on 'HTMLInputElement': The provided value"
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLMenuElement before HTMLElement");
- }
- class HTMLMenuElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "placeholder", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get compact() {
+ get readOnly() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLMenuElement.");
+ throw new TypeError("'get readOnly' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
+ return esValue[implSymbol].hasAttributeNS(null, "readonly");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set compact(V) {
+ set readOnly(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLMenuElement.");
+ throw new TypeError("'set readOnly' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLMenuElement': The provided value"
+ context: "Failed to set the 'readOnly' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
+ esValue[implSymbol].setAttributeNS(null, "readonly", "");
} else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
+ esValue[implSymbol].removeAttributeNS(null, "readonly");
}
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLMenuElement.prototype, {
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMenuElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLMenuElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMenuElement
- });
-};
-
-const Impl = __nccwpck_require__(91149);
-
-
-/***/ }),
-/***/ 28277:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
+ get required() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get required' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "required");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ set required(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "HTMLMetaElement";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set required' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLMetaElement'.`);
-};
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'required' property on 'HTMLInputElement': The provided value"
+ });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "required", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "required");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLMetaElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLMetaElement is not installed on the passed global object");
- }
+ get size() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get size' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["size"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set size(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set size' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'size' property on 'HTMLInputElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["size"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get src() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLInputElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set src(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLInputElement': The provided value"
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLMetaElement before HTMLElement");
- }
- class HTMLMetaElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "src", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get name() {
+ get step() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'get step' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "step");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set step(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'set step' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLMetaElement': The provided value"
+ context: "Failed to set the 'step' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol].setAttributeNS(null, "step", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get httpEquiv() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get httpEquiv' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "http-equiv");
- return value === null ? "" : value;
+ return esValue[implSymbol]["type"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set httpEquiv(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set httpEquiv' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'httpEquiv' property on 'HTMLMetaElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "http-equiv", V);
+ esValue[implSymbol]["type"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get content() {
+ get defaultValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get content' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'get defaultValue' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "content");
+ const value = esValue[implSymbol].getAttributeNS(null, "value");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set content(V) {
+ set defaultValue(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set content' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'set defaultValue' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'content' property on 'HTMLMetaElement': The provided value"
+ context: "Failed to set the 'defaultValue' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "content", V);
+ esValue[implSymbol].setAttributeNS(null, "value", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get scheme() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scheme' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "scheme");
- return value === null ? "" : value;
+ return esValue[implSymbol]["value"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set scheme(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set scheme' called on an object that is not a valid instance of HTMLMetaElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'scheme' property on 'HTMLMetaElement': The provided value"
+ context: "Failed to set the 'value' property on 'HTMLInputElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "scheme", V);
+ esValue[implSymbol]["value"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLMetaElement.prototype, {
- name: { enumerable: true },
- httpEquiv: { enumerable: true },
- content: { enumerable: true },
- scheme: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMetaElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLMetaElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMetaElement
- });
-};
-
-const Impl = __nccwpck_require__(40776);
-
-
-/***/ }),
-
-/***/ 63302:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get valueAsDate() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get valueAsDate' called on an object that is not a valid instance of HTMLInputElement.");
+ }
-const interfaceName = "HTMLMeterElement";
+ return esValue[implSymbol]["valueAsDate"];
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLMeterElement'.`);
-};
+ set valueAsDate(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set valueAsDate' called on an object that is not a valid instance of HTMLInputElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLMeterElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLMeterElement is not installed on the passed global object");
- }
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["object"](V, {
+ context: "Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["valueAsDate"] = V;
+ }
- return Object.create(ctor.prototype);
-}
+ get valueAsNumber() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
+ );
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ return esValue[implSymbol]["valueAsNumber"];
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ set valueAsNumber(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
+ );
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ V = conversions["unrestricted double"](V, {
+ context: "Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The provided value"
+ });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ esValue[implSymbol]["valueAsNumber"] = V;
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ get willValidate() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get willValidate' called on an object that is not a valid instance of HTMLInputElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ return esValue[implSymbol]["willValidate"];
+ }
-const exposed = new Set(["Window"]);
+ get validity() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLInputElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLMeterElement before HTMLElement");
- }
- class HTMLMeterElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
}
- get value() {
+ get validationMessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError(
+ "'get validationMessage' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["validationMessage"];
}
- set value(V) {
+ get labels() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'value' property on 'HTMLMeterElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
}
- get min() {
+ get selectionStart() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get min' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError(
+ "'get selectionStart' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["min"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["selectionStart"];
}
- set min(V) {
+ set selectionStart(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set min' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError(
+ "'set selectionStart' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- V = conversions["double"](V, {
- context: "Failed to set the 'min' property on 'HTMLMeterElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["min"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'selectionStart' property on 'HTMLInputElement': The provided value"
+ });
}
+ esValue[implSymbol]["selectionStart"] = V;
}
- get max() {
+ get selectionEnd() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get max' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'get selectionEnd' called on an object that is not a valid instance of HTMLInputElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["max"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["selectionEnd"];
}
- set max(V) {
+ set selectionEnd(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set max' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'set selectionEnd' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'max' property on 'HTMLMeterElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["max"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'selectionEnd' property on 'HTMLInputElement': The provided value"
+ });
}
+ esValue[implSymbol]["selectionEnd"] = V;
}
- get low() {
+ get selectionDirection() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get low' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError(
+ "'get selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["low"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["selectionDirection"];
}
- set low(V) {
+ set selectionDirection(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set low' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError(
+ "'set selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
+ );
}
- V = conversions["double"](V, {
- context: "Failed to set the 'low' property on 'HTMLMeterElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["low"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'selectionDirection' property on 'HTMLInputElement': The provided value"
+ });
}
+ esValue[implSymbol]["selectionDirection"] = V;
}
- get high() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get high' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["high"];
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set high(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set high' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'high' property on 'HTMLMeterElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["high"] = V;
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get optimum() {
+ get useMap() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get optimum' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["optimum"];
+ const value = esValue[implSymbol].getAttributeNS(null, "usemap");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set optimum(V) {
+ set useMap(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set optimum' called on an object that is not a valid instance of HTMLMeterElement.");
+ throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLInputElement.");
}
- V = conversions["double"](V, {
- context: "Failed to set the 'optimum' property on 'HTMLMeterElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'useMap' property on 'HTMLInputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["optimum"] = V;
+ esValue[implSymbol].setAttributeNS(null, "usemap", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLMeterElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
}
- Object.defineProperties(HTMLMeterElement.prototype, {
- value: { enumerable: true },
- min: { enumerable: true },
+ Object.defineProperties(HTMLInputElement.prototype, {
+ stepUp: { enumerable: true },
+ stepDown: { enumerable: true },
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ select: { enumerable: true },
+ setRangeText: { enumerable: true },
+ setSelectionRange: { enumerable: true },
+ accept: { enumerable: true },
+ alt: { enumerable: true },
+ autocomplete: { enumerable: true },
+ autofocus: { enumerable: true },
+ defaultChecked: { enumerable: true },
+ checked: { enumerable: true },
+ dirName: { enumerable: true },
+ disabled: { enumerable: true },
+ form: { enumerable: true },
+ files: { enumerable: true },
+ formNoValidate: { enumerable: true },
+ formTarget: { enumerable: true },
+ indeterminate: { enumerable: true },
+ inputMode: { enumerable: true },
+ list: { enumerable: true },
max: { enumerable: true },
- low: { enumerable: true },
- high: { enumerable: true },
- optimum: { enumerable: true },
+ maxLength: { enumerable: true },
+ min: { enumerable: true },
+ minLength: { enumerable: true },
+ multiple: { enumerable: true },
+ name: { enumerable: true },
+ pattern: { enumerable: true },
+ placeholder: { enumerable: true },
+ readOnly: { enumerable: true },
+ required: { enumerable: true },
+ size: { enumerable: true },
+ src: { enumerable: true },
+ step: { enumerable: true },
+ type: { enumerable: true },
+ defaultValue: { enumerable: true },
+ value: { enumerable: true },
+ valueAsDate: { enumerable: true },
+ valueAsNumber: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMeterElement", configurable: true }
+ selectionStart: { enumerable: true },
+ selectionEnd: { enumerable: true },
+ selectionDirection: { enumerable: true },
+ align: { enumerable: true },
+ useMap: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLInputElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLMeterElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLInputElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLMeterElement
+ value: HTMLInputElement
});
};
-const Impl = __nccwpck_require__(80737);
+const Impl = __nccwpck_require__(9673);
/***/ }),
-/***/ 34615:
+/***/ 46621:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -94507,16 +89564,15 @@ const Impl = __nccwpck_require__(80737);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseInteger_helpers_strings = (__nccwpck_require__(4764).parseInteger);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLModElement";
+const interfaceName = "HTMLLIElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -94528,7 +89584,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLModElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLLIElement'.`);
};
function makeWrapper(globalObject) {
@@ -94536,9 +89592,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLModElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLLIElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLModElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLLIElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -94574,7 +89630,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -94598,116 +89654,110 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLModElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLLIElement before HTMLElement");
}
- class HTMLModElement extends globalObject.HTMLElement {
+ class HTMLLIElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get cite() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cite' called on an object that is not a valid instance of HTMLModElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLLIElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "cite");
+ let value = esValue[implSymbol].getAttributeNS(null, "value");
if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
+ return 0;
}
- return conversions.USVString(value);
+ value = parseInteger_helpers_strings(value);
+ return value !== null && conversions.long(value) === value ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set cite(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cite' called on an object that is not a valid instance of HTMLModElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLLIElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'cite' property on 'HTMLModElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'value' property on 'HTMLLIElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "cite", V);
+ esValue[implSymbol].setAttributeNS(null, "value", String(V));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get dateTime() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get dateTime' called on an object that is not a valid instance of HTMLModElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLLIElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "datetime");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set dateTime(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set dateTime' called on an object that is not a valid instance of HTMLModElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLLIElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'dateTime' property on 'HTMLModElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLLIElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "datetime", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLModElement.prototype, {
- cite: { enumerable: true },
- dateTime: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLModElement", configurable: true }
+ Object.defineProperties(HTMLLIElement.prototype, {
+ value: { enumerable: true },
+ type: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLLIElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLModElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLLIElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLModElement
+ value: HTMLLIElement
});
};
-const Impl = __nccwpck_require__(36105);
+const Impl = __nccwpck_require__(22153);
/***/ }),
-/***/ 15739:
+/***/ 53321:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -94716,14 +89766,14 @@ const Impl = __nccwpck_require__(36105);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLOListElement";
+const interfaceName = "HTMLLabelElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -94735,7 +89785,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLOListElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLLabelElement'.`);
};
function makeWrapper(globalObject) {
@@ -94743,9 +89793,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLOListElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLLabelElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLOListElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLLabelElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -94781,7 +89831,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -94805,183 +89855,264 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLOListElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLLabelElement before HTMLElement");
}
- class HTMLOListElement extends globalObject.HTMLElement {
+ class HTMLLabelElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get reversed() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get reversed' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLLabelElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "reversed");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
}
- set reversed(V) {
+ get htmlFor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set reversed' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLLabelElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'reversed' property on 'HTMLOListElement': The provided value"
- });
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "reversed", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "reversed");
- }
+ const value = esValue[implSymbol].getAttributeNS(null, "for");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get start() {
+ set htmlFor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get start' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLLabelElement.");
}
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'htmlFor' property on 'HTMLLabelElement': The provided value"
+ });
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["start"];
+ esValue[implSymbol].setAttributeNS(null, "for", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set start(V) {
+ get control() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set start' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'get control' called on an object that is not a valid instance of HTMLLabelElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'start' property on 'HTMLOListElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["start"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["control"]);
}
+ }
+ Object.defineProperties(HTMLLabelElement.prototype, {
+ form: { enumerable: true },
+ htmlFor: { enumerable: true },
+ control: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLLabelElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLLabelElement;
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLLabelElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLOListElement.");
- }
+const Impl = __nccwpck_require__(82353);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+
+/***/ }),
+
+/***/ 66649:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLLegendElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLLegendElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLLegendElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLLegendElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLLegendElement before HTMLElement");
+ }
+ class HTMLLegendElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- set type(V) {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLLegendElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLOListElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
}
- get compact() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLLegendElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set compact(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLOListElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLLegendElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLOListElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLLegendElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLOListElement.prototype, {
- reversed: { enumerable: true },
- start: { enumerable: true },
- type: { enumerable: true },
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOListElement", configurable: true }
+ Object.defineProperties(HTMLLegendElement.prototype, {
+ form: { enumerable: true },
+ align: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLLegendElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLOListElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLLegendElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLOListElement
+ value: HTMLLegendElement
});
};
-const Impl = __nccwpck_require__(94999);
+const Impl = __nccwpck_require__(21287);
/***/ }),
-/***/ 62055:
+/***/ 14914:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -94990,17 +90121,16 @@ const Impl = __nccwpck_require__(94999);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseNonNegativeInteger_helpers_strings = __nccwpck_require__(4764).parseNonNegativeInteger;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLObjectElement";
+const interfaceName = "HTMLLinkElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -95012,7 +90142,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLObjectElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLLinkElement'.`);
};
function makeWrapper(globalObject) {
@@ -95020,9 +90150,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLObjectElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLLinkElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLObjectElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLLinkElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -95058,7 +90188,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -95082,752 +90212,410 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLObjectElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLLinkElement before HTMLElement");
}
- class HTMLObjectElement extends globalObject.HTMLElement {
+ class HTMLLinkElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- checkValidity() {
+ get href() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get href' called on an object that is not a valid instance of HTMLLinkElement.");
}
- return esValue[implSymbol].checkValidity();
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "href");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- reportValidity() {
+ set href(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set href' called on an object that is not a valid instance of HTMLLinkElement.");
}
- return esValue[implSymbol].reportValidity();
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'href' property on 'HTMLLinkElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "href", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- setCustomValidity(error) {
+ get crossOrigin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLObjectElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLObjectElement': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get data' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "data");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set data(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set data' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'data' property on 'HTMLObjectElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "data", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLObjectElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLObjectElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get useMap() {
+ set crossOrigin(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "usemap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLLinkElement.");
}
- }
-
- set useMap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLObjectElement.");
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'crossOrigin' property on 'HTMLLinkElement': The provided value"
+ });
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'useMap' property on 'HTMLObjectElement': The provided value"
- });
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "usemap", V);
+ esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get width() {
+ get rel() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
+ const value = esValue[implSymbol].getAttributeNS(null, "rel");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set width(V) {
+ set rel(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'rel' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
+ esValue[implSymbol].setAttributeNS(null, "rel", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set height(V) {
+ get relList() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLLinkElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLObjectElement': The provided value"
+ return utils.getSameObject(this, "relList", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
});
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get contentDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get contentDocument' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
}
- get validity() {
+ set relList(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLLinkElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLObjectElement."
- );
+ const Q = esValue["relList"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'relList' is not an object");
}
-
- return esValue[implSymbol]["validationMessage"];
+ Reflect.set(Q, "value", V);
}
- get align() {
+ get media() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get media' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
+ const value = esValue[implSymbol].getAttributeNS(null, "media");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set media(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set media' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'media' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol].setAttributeNS(null, "media", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get archive() {
+ get hreflang() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get archive' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get hreflang' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "archive");
+ const value = esValue[implSymbol].getAttributeNS(null, "hreflang");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set archive(V) {
+ set hreflang(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set archive' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set hreflang' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'archive' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'hreflang' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "archive", V);
+ esValue[implSymbol].setAttributeNS(null, "hreflang", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get code() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get code' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "code");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set code(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set code' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'code' property on 'HTMLObjectElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "code", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get declare() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get declare' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "declare");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set declare(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set declare' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'declare' property on 'HTMLObjectElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "declare", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "declare");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "hspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'hspace' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get standby() {
+ get charset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get standby' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "standby");
+ const value = esValue[implSymbol].getAttributeNS(null, "charset");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set standby(V) {
+ set charset(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set standby' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'standby' property on 'HTMLObjectElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "standby", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "vspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'vspace' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'charset' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
+ esValue[implSymbol].setAttributeNS(null, "charset", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get codeBase() {
+ get rev() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get codeBase' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get rev' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "codebase");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ const value = esValue[implSymbol].getAttributeNS(null, "rev");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set codeBase(V) {
+ set rev(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set codeBase' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set rev' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'codeBase' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'rev' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "codebase", V);
+ esValue[implSymbol].setAttributeNS(null, "rev", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get codeType() {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get codeType' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "codetype");
+ const value = esValue[implSymbol].getAttributeNS(null, "target");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set codeType(V) {
+ set target(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set codeType' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'set target' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'codeType' property on 'HTMLObjectElement': The provided value"
+ context: "Failed to set the 'target' property on 'HTMLLinkElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "codetype", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get border() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get border' called on an object that is not a valid instance of HTMLObjectElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "border");
- return value === null ? "" : value;
+ esValue[implSymbol].setAttributeNS(null, "target", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set border(V) {
+ get sheet() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set border' called on an object that is not a valid instance of HTMLObjectElement.");
+ throw new TypeError("'get sheet' called on an object that is not a valid instance of HTMLLinkElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'border' property on 'HTMLObjectElement': The provided value",
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "border", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);
}
}
- Object.defineProperties(HTMLObjectElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- data: { enumerable: true },
+ Object.defineProperties(HTMLLinkElement.prototype, {
+ href: { enumerable: true },
+ crossOrigin: { enumerable: true },
+ rel: { enumerable: true },
+ relList: { enumerable: true },
+ media: { enumerable: true },
+ hreflang: { enumerable: true },
type: { enumerable: true },
- name: { enumerable: true },
- useMap: { enumerable: true },
- form: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- contentDocument: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- align: { enumerable: true },
- archive: { enumerable: true },
- code: { enumerable: true },
- declare: { enumerable: true },
- hspace: { enumerable: true },
- standby: { enumerable: true },
- vspace: { enumerable: true },
- codeBase: { enumerable: true },
- codeType: { enumerable: true },
- border: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLObjectElement", configurable: true }
+ charset: { enumerable: true },
+ rev: { enumerable: true },
+ target: { enumerable: true },
+ sheet: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLLinkElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLObjectElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLLinkElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLObjectElement
+ value: HTMLLinkElement
});
};
-const Impl = __nccwpck_require__(71860);
+const Impl = __nccwpck_require__(23206);
/***/ }),
-/***/ 52880:
+/***/ 38553:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -95836,14 +90624,14 @@ const Impl = __nccwpck_require__(71860);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLOptGroupElement";
+const interfaceName = "HTMLMapElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -95855,7 +90643,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLOptGroupElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLMapElement'.`);
};
function makeWrapper(globalObject) {
@@ -95863,9 +90651,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLOptGroupElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLMapElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLOptGroupElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLMapElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -95901,7 +90689,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -95925,109 +90713,83 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLOptGroupElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLMapElement before HTMLElement");
}
- class HTMLOptGroupElement extends globalObject.HTMLElement {
+ class HTMLMapElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get disabled() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLOptGroupElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLMapElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set disabled(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLOptGroupElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLMapElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLOptGroupElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLMapElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get label() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get label' called on an object that is not a valid instance of HTMLOptGroupElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "label");
- return value === null ? "" : value;
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set label(V) {
+ get areas() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set label' called on an object that is not a valid instance of HTMLOptGroupElement.");
+ throw new TypeError("'get areas' called on an object that is not a valid instance of HTMLMapElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'label' property on 'HTMLOptGroupElement': The provided value"
+ return utils.getSameObject(this, "areas", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["areas"]);
});
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "label", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
}
}
- Object.defineProperties(HTMLOptGroupElement.prototype, {
- disabled: { enumerable: true },
- label: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOptGroupElement", configurable: true }
+ Object.defineProperties(HTMLMapElement.prototype, {
+ name: { enumerable: true },
+ areas: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLMapElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLOptGroupElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLMapElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLOptGroupElement
+ value: HTMLMapElement
});
};
-const Impl = __nccwpck_require__(93030);
+const Impl = __nccwpck_require__(18340);
/***/ }),
-/***/ 26617:
+/***/ 7617:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -96036,14 +90798,15 @@ const Impl = __nccwpck_require__(93030);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLOptionElement";
+const interfaceName = "HTMLMarqueeElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -96055,7 +90818,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLOptionElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLMarqueeElement'.`);
};
function makeWrapper(globalObject) {
@@ -96063,9 +90826,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLOptionElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLMarqueeElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLOptionElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLMarqueeElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -96101,7 +90864,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -96125,268 +90888,425 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLOptionElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLMarqueeElement before HTMLElement");
}
- class HTMLOptionElement extends globalObject.HTMLElement {
+ class HTMLMarqueeElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get disabled() {
+ get behavior() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'get behavior' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ const value = esValue[implSymbol].getAttributeNS(null, "behavior");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set disabled(V) {
+ set behavior(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'set behavior' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLOptionElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'behavior' property on 'HTMLMarqueeElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
+ esValue[implSymbol].setAttributeNS(null, "behavior", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get form() {
+ get bgColor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get label() {
+ set bgColor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get label' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'bgColor' property on 'HTMLMarqueeElement': The provided value"
+ });
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["label"];
+ esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set label(V) {
+ get direction() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set label' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'get direction' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "direction");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set direction(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set direction' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'label' property on 'HTMLOptionElement': The provided value"
+ context: "Failed to set the 'direction' property on 'HTMLMarqueeElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["label"] = V;
+ esValue[implSymbol].setAttributeNS(null, "direction", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get defaultSelected() {
+ get height() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "height");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set height(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'height' property on 'HTMLMarqueeElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "height", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get hspace() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "hspace");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set hspace(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ }
+
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'hspace' property on 'HTMLMarqueeElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get scrollAmount() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
+ "'get scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "selected");
+ let value = esValue[implSymbol].getAttributeNS(null, "scrollamount");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set defaultSelected(V) {
+ set scrollAmount(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
+ "'set scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
);
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'defaultSelected' property on 'HTMLOptionElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'scrollAmount' property on 'HTMLMarqueeElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "selected", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "selected");
- }
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "scrollamount", String(n));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get selected() {
+ get scrollDelay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get selected' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError(
+ "'get scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
+ );
}
- return esValue[implSymbol]["selected"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "scrolldelay");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set selected(V) {
+ set scrollDelay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set selected' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError(
+ "'set scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
+ );
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'selected' property on 'HTMLOptionElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'scrollDelay' property on 'HTMLMarqueeElement': The provided value"
});
- esValue[implSymbol]["selected"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "scrolldelay", String(n));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get value() {
+ get trueSpeed() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'get trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["value"];
+ return esValue[implSymbol].hasAttributeNS(null, "truespeed");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set trueSpeed(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'set trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLOptionElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'trueSpeed' property on 'HTMLMarqueeElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["value"] = V;
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "truespeed", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "truespeed");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get text() {
+ get vspace() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get text' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["text"];
+ let value = esValue[implSymbol].getAttributeNS(null, "vspace");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set text(V) {
+ set vspace(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set text' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLOptionElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'vspace' property on 'HTMLMarqueeElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["text"] = V;
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get index() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get index' called on an object that is not a valid instance of HTMLOptionElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
- return esValue[implSymbol]["index"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set width(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLMarqueeElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'width' property on 'HTMLMarqueeElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "width", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(HTMLOptionElement.prototype, {
- disabled: { enumerable: true },
- form: { enumerable: true },
- label: { enumerable: true },
- defaultSelected: { enumerable: true },
- selected: { enumerable: true },
- value: { enumerable: true },
- text: { enumerable: true },
- index: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOptionElement", configurable: true }
+ Object.defineProperties(HTMLMarqueeElement.prototype, {
+ behavior: { enumerable: true },
+ bgColor: { enumerable: true },
+ direction: { enumerable: true },
+ height: { enumerable: true },
+ hspace: { enumerable: true },
+ scrollAmount: { enumerable: true },
+ scrollDelay: { enumerable: true },
+ trueSpeed: { enumerable: true },
+ vspace: { enumerable: true },
+ width: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLMarqueeElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLOptionElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLMarqueeElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLOptionElement
+ value: HTMLMarqueeElement
});
};
-const Impl = __nccwpck_require__(72401);
+const Impl = __nccwpck_require__(61238);
/***/ }),
-/***/ 58383:
+/***/ 61639:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -96395,16 +91315,16 @@ const Impl = __nccwpck_require__(72401);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLOptionElement = __nccwpck_require__(26617);
-const HTMLOptGroupElement = __nccwpck_require__(52880);
-const HTMLElement = __nccwpck_require__(8932);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const TextTrackKind = __nccwpck_require__(57191);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLCollection = __nccwpck_require__(49672);
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLOptionsCollection";
+const interfaceName = "HTMLMediaElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -96416,7 +91336,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLOptionsCollection'.`);
+ throw new TypeError(`${context} is not of type 'HTMLMediaElement'.`);
};
function makeWrapper(globalObject) {
@@ -96424,23 +91344,14 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLOptionsCollection"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLMediaElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLOptionsCollection is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLMediaElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
}
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
exports.create = (globalObject, constructorArgs, privateData) => {
const wrapper = makeWrapper(globalObject);
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
@@ -96452,7 +91363,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLCollection._internalSetup(wrapper, globalObject);
+ HTMLElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -96464,8 +91375,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = makeProxy(wrapper, globalObject);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -96473,8 +91382,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -96482,8 +91391,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = makeProxy(wrapper, globalObject);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -96498,23 +91405,32 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.HTMLCollection === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLOptionsCollection before HTMLCollection");
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLMediaElement before HTMLElement");
}
- class HTMLOptionsCollection extends globalObject.HTMLCollection {
+ class HTMLMediaElement extends globalObject.HTMLElement {
constructor() {
throw new TypeError("Illegal constructor");
}
- add(element) {
+ load() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'add' called on an object that is not a valid instance of HTMLOptionsCollection.");
+ throw new TypeError("'load' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
+
+ return esValue[implSymbol].load();
+ }
+
+ canPlayType(type) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'canPlayType' called on an object that is not a valid instance of HTMLMediaElement.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'add' on 'HTMLOptionsCollection': 1 argument required, but only " +
+ "Failed to execute 'canPlayType' on 'HTMLMediaElement': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -96522,55 +91438,45 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- if (HTMLOptionElement.is(curArg) || HTMLOptGroupElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- throw new TypeError(
- "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 1" + " is not of any supported type."
- );
- }
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'canPlayType' on 'HTMLMediaElement': parameter 1"
+ });
args.push(curArg);
}
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- if (HTMLElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else if (typeof curArg === "number") {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 2"
- });
- } else {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 2"
- });
- }
- }
- } else {
- curArg = null;
+ return utils.tryWrapperForImpl(esValue[implSymbol].canPlayType(...args));
+ }
+
+ play() {
+ try {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'play' called on an object that is not a valid instance of HTMLMediaElement.");
}
- args.push(curArg);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].play());
+ } catch (e) {
+ return Promise.reject(e);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].add(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+
+ pause() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'pause' called on an object that is not a valid instance of HTMLMediaElement.");
}
+
+ return esValue[implSymbol].pause();
}
- remove(index) {
+ addTextTrack(kind) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'remove' called on an object that is not a valid instance of HTMLOptionsCollection.");
+ throw new TypeError("'addTextTrack' called on an object that is not a valid instance of HTMLMediaElement.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'remove' on 'HTMLOptionsCollection': 1 argument required, but only " +
+ "Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -96578,735 +91484,638 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'remove' on 'HTMLOptionsCollection': parameter 1"
+ curArg = TextTrackKind.convert(curArg, {
+ context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 1"
});
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 2"
+ });
+ } else {
+ curArg = "";
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 3"
+ });
+ } else {
+ curArg = "";
+ }
+ args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].addTextTrack(...args));
}
- get length() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of HTMLOptionsCollection.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["length"];
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set length(V) {
+ set src(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set length' called on an object that is not a valid instance of HTMLOptionsCollection.");
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLMediaElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'length' property on 'HTMLOptionsCollection': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLMediaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["length"] = V;
+ esValue[implSymbol].setAttributeNS(null, "src", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get selectedIndex() {
+ get currentSrc() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
+ throw new TypeError("'get currentSrc' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return esValue[implSymbol]["selectedIndex"];
+ return esValue[implSymbol]["currentSrc"];
}
- set selectedIndex(V) {
+ get crossOrigin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
+ throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLMediaElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'selectedIndex' property on 'HTMLOptionsCollection': The provided value"
- });
-
- esValue[implSymbol]["selectedIndex"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(HTMLOptionsCollection.prototype, {
- add: { enumerable: true },
- remove: { enumerable: true },
- length: { enumerable: true },
- selectedIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOptionsCollection", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLOptionsCollection;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLOptionsCollection
- });
-};
+ set crossOrigin(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'crossOrigin' property on 'HTMLMediaElement': The provided value"
+ });
}
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+ get networkState() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get networkState' called on an object that is not a valid instance of HTMLMediaElement.");
}
- }
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
+ return esValue[implSymbol]["networkState"];
}
- return [...keys];
- }
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
+ get preload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get preload' called on an object that is not a valid instance of HTMLMediaElement.");
}
- ignoreNamedProps = true;
- }
-
- const namedValue = target[implSymbol].namedItem(P);
-
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "preload");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- let indexedValue = V;
+ set preload(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLOptionsCollection': The provided value"
- });
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set preload' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'preload' property on 'HTMLMediaElement': The provided value"
+ });
- return true;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "preload", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- let ownDesc;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
+ get buffered() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get buffered' called on an object that is not a valid instance of HTMLMediaElement.");
}
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["buffered"]);
}
- const globalObject = this._globalObject;
+ get readyState() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (utils.isArrayIndexPropName(P)) {
- if (desc.get || desc.set) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get readyState' called on an object that is not a valid instance of HTMLMediaElement.");
}
- const index = P >>> 0;
- let indexedValue = desc.value;
-
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLOptionsCollection': The provided value"
- });
- }
+ return esValue[implSymbol]["readyState"];
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ get seeking() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return true;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].namedItem(P) !== null);
- if (!creating) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get seeking' called on an object that is not a valid instance of HTMLMediaElement.");
}
- }
- return Reflect.defineProperty(target, P, desc);
- }
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
+ return esValue[implSymbol]["seeking"];
}
- const globalObject = this._globalObject;
+ get currentTime() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get currentTime' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
- if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
- return false;
+ return esValue[implSymbol]["currentTime"];
}
- return Reflect.deleteProperty(target, P);
- }
+ set currentTime(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- preventExtensions() {
- return false;
- }
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set currentTime' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
-const Impl = __nccwpck_require__(35);
+ V = conversions["double"](V, {
+ context: "Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided value"
+ });
+ esValue[implSymbol]["currentTime"] = V;
+ }
-/***/ }),
+ get duration() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 49514:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get duration' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
-"use strict";
+ return esValue[implSymbol]["duration"];
+ }
+ get paused() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get paused' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ return esValue[implSymbol]["paused"];
+ }
-const interfaceName = "HTMLOutputElement";
+ get defaultPlaybackRate() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLOutputElement'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
+ );
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ return esValue[implSymbol]["defaultPlaybackRate"];
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLOutputElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLOutputElement is not installed on the passed global object");
- }
+ set defaultPlaybackRate(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
+ );
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ V = conversions["double"](V, {
+ context: "Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided value"
+ });
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ esValue[implSymbol]["defaultPlaybackRate"] = V;
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ get playbackRate() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get playbackRate' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ return esValue[implSymbol]["playbackRate"];
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ set playbackRate(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set playbackRate' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ V = conversions["double"](V, {
+ context: "Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided value"
+ });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ esValue[implSymbol]["playbackRate"] = V;
+ }
-const exposed = new Set(["Window"]);
+ get played() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get played' called on an object that is not a valid instance of HTMLMediaElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLOutputElement before HTMLElement");
- }
- class HTMLOutputElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["played"]);
}
- checkValidity() {
+ get seekable() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get seekable' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return esValue[implSymbol].checkValidity();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["seekable"]);
}
- reportValidity() {
+ get ended() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get ended' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return esValue[implSymbol].reportValidity();
+ return esValue[implSymbol]["ended"];
}
- setCustomValidity(error) {
+ get autoplay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLOutputElement."
- );
+ throw new TypeError("'get autoplay' called on an object that is not a valid instance of HTMLMediaElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLOutputElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLOutputElement': parameter 1"
- });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "autoplay");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].setCustomValidity(...args);
}
- get htmlFor() {
+ set autoplay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'set autoplay' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return utils.getSameObject(this, "htmlFor", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["htmlFor"]);
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'autoplay' property on 'HTMLMediaElement': The provided value"
});
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "autoplay", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "autoplay");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set htmlFor(V) {
+ get loop() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get loop' called on an object that is not a valid instance of HTMLMediaElement.");
}
- const Q = esValue["htmlFor"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'htmlFor' is not an object");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "loop");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- Reflect.set(Q, "value", V);
}
- get form() {
+ set loop(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'set loop' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'loop' property on 'HTMLMediaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "loop", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "loop");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get name() {
+ get controls() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get controls' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "controls");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set controls(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'set controls' called on an object that is not a valid instance of HTMLMediaElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLOutputElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'controls' property on 'HTMLMediaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "controls", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "controls");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get volume() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get volume' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return esValue[implSymbol]["type"];
+ return esValue[implSymbol]["volume"];
}
- get defaultValue() {
+ set volume(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
- );
+ throw new TypeError("'set volume' called on an object that is not a valid instance of HTMLMediaElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["defaultValue"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ V = conversions["double"](V, {
+ context: "Failed to set the 'volume' property on 'HTMLMediaElement': The provided value"
+ });
+
+ esValue[implSymbol]["volume"] = V;
+ }
+
+ get muted() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get muted' called on an object that is not a valid instance of HTMLMediaElement.");
}
+
+ return esValue[implSymbol]["muted"];
}
- set defaultValue(V) {
+ set muted(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
- );
+ throw new TypeError("'set muted' called on an object that is not a valid instance of HTMLMediaElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'defaultValue' property on 'HTMLOutputElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'muted' property on 'HTMLMediaElement': The provided value"
});
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["defaultValue"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["muted"] = V;
}
- get value() {
+ get defaultMuted() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get defaultMuted' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["value"];
+ return esValue[implSymbol].hasAttributeNS(null, "muted");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set defaultMuted(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'set defaultMuted' called on an object that is not a valid instance of HTMLMediaElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLOutputElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'defaultMuted' property on 'HTMLMediaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["value"] = V;
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "muted", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "muted");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
+ get audioTracks() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get audioTracks' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
+ return utils.getSameObject(this, "audioTracks", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["audioTracks"]);
+ });
}
- get validationMessage() {
+ get videoTracks() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLOutputElement."
- );
+ throw new TypeError("'get videoTracks' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return esValue[implSymbol]["validationMessage"];
+ return utils.getSameObject(this, "videoTracks", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["videoTracks"]);
+ });
}
- get labels() {
+ get textTracks() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLOutputElement.");
+ throw new TypeError("'get textTracks' called on an object that is not a valid instance of HTMLMediaElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
+ return utils.getSameObject(this, "textTracks", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["textTracks"]);
+ });
}
}
- Object.defineProperties(HTMLOutputElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- htmlFor: { enumerable: true },
- form: { enumerable: true },
- name: { enumerable: true },
- type: { enumerable: true },
- defaultValue: { enumerable: true },
- value: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOutputElement", configurable: true }
+ Object.defineProperties(HTMLMediaElement.prototype, {
+ load: { enumerable: true },
+ canPlayType: { enumerable: true },
+ play: { enumerable: true },
+ pause: { enumerable: true },
+ addTextTrack: { enumerable: true },
+ src: { enumerable: true },
+ currentSrc: { enumerable: true },
+ crossOrigin: { enumerable: true },
+ networkState: { enumerable: true },
+ preload: { enumerable: true },
+ buffered: { enumerable: true },
+ readyState: { enumerable: true },
+ seeking: { enumerable: true },
+ currentTime: { enumerable: true },
+ duration: { enumerable: true },
+ paused: { enumerable: true },
+ defaultPlaybackRate: { enumerable: true },
+ playbackRate: { enumerable: true },
+ played: { enumerable: true },
+ seekable: { enumerable: true },
+ ended: { enumerable: true },
+ autoplay: { enumerable: true },
+ loop: { enumerable: true },
+ controls: { enumerable: true },
+ volume: { enumerable: true },
+ muted: { enumerable: true },
+ defaultMuted: { enumerable: true },
+ audioTracks: { enumerable: true },
+ videoTracks: { enumerable: true },
+ textTracks: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLMediaElement", configurable: true },
+ NETWORK_EMPTY: { value: 0, enumerable: true },
+ NETWORK_IDLE: { value: 1, enumerable: true },
+ NETWORK_LOADING: { value: 2, enumerable: true },
+ NETWORK_NO_SOURCE: { value: 3, enumerable: true },
+ HAVE_NOTHING: { value: 0, enumerable: true },
+ HAVE_METADATA: { value: 1, enumerable: true },
+ HAVE_CURRENT_DATA: { value: 2, enumerable: true },
+ HAVE_FUTURE_DATA: { value: 3, enumerable: true },
+ HAVE_ENOUGH_DATA: { value: 4, enumerable: true }
+ });
+ Object.defineProperties(HTMLMediaElement, {
+ NETWORK_EMPTY: { value: 0, enumerable: true },
+ NETWORK_IDLE: { value: 1, enumerable: true },
+ NETWORK_LOADING: { value: 2, enumerable: true },
+ NETWORK_NO_SOURCE: { value: 3, enumerable: true },
+ HAVE_NOTHING: { value: 0, enumerable: true },
+ HAVE_METADATA: { value: 1, enumerable: true },
+ HAVE_CURRENT_DATA: { value: 2, enumerable: true },
+ HAVE_FUTURE_DATA: { value: 3, enumerable: true },
+ HAVE_ENOUGH_DATA: { value: 4, enumerable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLOutputElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLMediaElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLOutputElement
+ value: HTMLMediaElement
});
};
-const Impl = __nccwpck_require__(38297);
+const Impl = __nccwpck_require__(78090);
/***/ }),
-/***/ 78759:
+/***/ 89976:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -97315,14 +92124,14 @@ const Impl = __nccwpck_require__(38297);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLParagraphElement";
+const interfaceName = "HTMLMenuElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -97334,7 +92143,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLParagraphElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLMenuElement'.`);
};
function makeWrapper(globalObject) {
@@ -97342,9 +92151,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLParagraphElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLMenuElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLParagraphElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLMenuElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -97380,7 +92189,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -97404,70 +92213,73 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLParagraphElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLMenuElement before HTMLElement");
}
- class HTMLParagraphElement extends globalObject.HTMLElement {
+ class HTMLMenuElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get align() {
+ get compact() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLParagraphElement.");
+ throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLMenuElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "compact");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set compact(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLParagraphElement.");
+ throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLMenuElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLParagraphElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'compact' property on 'HTMLMenuElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "compact", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "compact");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLParagraphElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLParagraphElement", configurable: true }
+ Object.defineProperties(HTMLMenuElement.prototype, {
+ compact: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLMenuElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLParagraphElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLMenuElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLParagraphElement
+ value: HTMLMenuElement
});
};
-const Impl = __nccwpck_require__(78556);
+const Impl = __nccwpck_require__(91149);
/***/ }),
-/***/ 58213:
+/***/ 28277:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -97476,14 +92288,14 @@ const Impl = __nccwpck_require__(78556);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLParamElement";
+const interfaceName = "HTMLMetaElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -97495,7 +92307,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLParamElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLMetaElement'.`);
};
function makeWrapper(globalObject) {
@@ -97503,9 +92315,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLParamElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLMetaElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLParamElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLMetaElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -97541,7 +92353,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -97565,9 +92377,9 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLParamElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLMetaElement before HTMLElement");
}
- class HTMLParamElement extends globalObject.HTMLElement {
+ class HTMLMetaElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
@@ -97576,7 +92388,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -97592,11 +92404,11 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLParamElement': The provided value"
+ context: "Failed to set the 'name' property on 'HTMLMetaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -97607,136 +92419,136 @@ exports.install = (globalObject, globalNames) => {
}
}
- get value() {
+ get httpEquiv() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'get httpEquiv' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
+ const value = esValue[implSymbol].getAttributeNS(null, "http-equiv");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set httpEquiv(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'set httpEquiv' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLParamElement': The provided value"
+ context: "Failed to set the 'httpEquiv' property on 'HTMLMetaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
+ esValue[implSymbol].setAttributeNS(null, "http-equiv", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get content() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'get content' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
+ const value = esValue[implSymbol].getAttributeNS(null, "content");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set type(V) {
+ set content(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'set content' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLParamElement': The provided value"
+ context: "Failed to set the 'content' property on 'HTMLMetaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
+ esValue[implSymbol].setAttributeNS(null, "content", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get valueType() {
+ get scheme() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get valueType' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'get scheme' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "valuetype");
+ const value = esValue[implSymbol].getAttributeNS(null, "scheme");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set valueType(V) {
+ set scheme(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set valueType' called on an object that is not a valid instance of HTMLParamElement.");
+ throw new TypeError("'set scheme' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'valueType' property on 'HTMLParamElement': The provided value"
+ context: "Failed to set the 'scheme' property on 'HTMLMetaElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "valuetype", V);
+ esValue[implSymbol].setAttributeNS(null, "scheme", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLParamElement.prototype, {
+ Object.defineProperties(HTMLMetaElement.prototype, {
name: { enumerable: true },
- value: { enumerable: true },
- type: { enumerable: true },
- valueType: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLParamElement", configurable: true }
+ httpEquiv: { enumerable: true },
+ content: { enumerable: true },
+ scheme: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLMetaElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLParamElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLMetaElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLParamElement
+ value: HTMLMetaElement
});
};
-const Impl = __nccwpck_require__(80198);
+const Impl = __nccwpck_require__(40776);
/***/ }),
-/***/ 65049:
+/***/ 63302:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -97745,12 +92557,14 @@ const Impl = __nccwpck_require__(80198);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLPictureElement";
+const interfaceName = "HTMLMeterElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -97762,7 +92576,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLPictureElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLMeterElement'.`);
};
function makeWrapper(globalObject) {
@@ -97770,9 +92584,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLPictureElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLMeterElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLPictureElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLMeterElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -97808,7 +92622,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -97832,417 +92646,255 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLPictureElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLMeterElement before HTMLElement");
}
- class HTMLPictureElement extends globalObject.HTMLElement {
+ class HTMLMeterElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- }
- Object.defineProperties(HTMLPictureElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLPictureElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLPictureElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLPictureElement
- });
-};
+ get value() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(10611);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLMeterElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["value"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ }),
+ set value(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 75574:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseInteger_helpers_strings = __nccwpck_require__(4764).parseInteger;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLPreElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLPreElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLPreElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLPreElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLMeterElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["double"](V, {
+ context: "Failed to set the 'value' property on 'HTMLMeterElement': The provided value"
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLPreElement before HTMLElement");
- }
- class HTMLPreElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["value"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get width() {
+ get min() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLPreElement.");
+ throw new TypeError("'get min' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "width");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
+ return esValue[implSymbol]["min"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set width(V) {
+ set min(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLPreElement.");
+ throw new TypeError("'set min' called on an object that is not a valid instance of HTMLMeterElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'width' property on 'HTMLPreElement': The provided value"
+ V = conversions["double"](V, {
+ context: "Failed to set the 'min' property on 'HTMLMeterElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "width", String(V));
+ esValue[implSymbol]["min"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLPreElement.prototype, {
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLPreElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLPreElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLPreElement
- });
-};
-
-const Impl = __nccwpck_require__(34233);
-
-
-/***/ }),
-
-/***/ 90536:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLProgressElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLProgressElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLProgressElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLProgressElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get max() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get max' called on an object that is not a valid instance of HTMLMeterElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["max"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set max(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set max' called on an object that is not a valid instance of HTMLMeterElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["double"](V, {
+ context: "Failed to set the 'max' property on 'HTMLMeterElement': The provided value"
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLProgressElement before HTMLElement");
- }
- class HTMLProgressElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["max"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get value() {
+ get low() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLProgressElement.");
+ throw new TypeError("'get low' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["value"];
+ return esValue[implSymbol]["low"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set low(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLProgressElement.");
+ throw new TypeError("'set low' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
- context: "Failed to set the 'value' property on 'HTMLProgressElement': The provided value"
+ context: "Failed to set the 'low' property on 'HTMLMeterElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["value"] = V;
+ esValue[implSymbol]["low"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get max() {
+ get high() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get max' called on an object that is not a valid instance of HTMLProgressElement.");
+ throw new TypeError("'get high' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["max"];
+ return esValue[implSymbol]["high"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set max(V) {
+ set high(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set max' called on an object that is not a valid instance of HTMLProgressElement.");
+ throw new TypeError("'set high' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
- context: "Failed to set the 'max' property on 'HTMLProgressElement': The provided value"
+ context: "Failed to set the 'high' property on 'HTMLMeterElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["max"] = V;
+ esValue[implSymbol]["high"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get position() {
+ get optimum() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get position' called on an object that is not a valid instance of HTMLProgressElement.");
+ throw new TypeError("'get optimum' called on an object that is not a valid instance of HTMLMeterElement.");
}
- return esValue[implSymbol]["position"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["optimum"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set optimum(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set optimum' called on an object that is not a valid instance of HTMLMeterElement.");
+ }
+
+ V = conversions["double"](V, {
+ context: "Failed to set the 'optimum' property on 'HTMLMeterElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["optimum"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
get labels() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLProgressElement.");
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLMeterElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
}
}
- Object.defineProperties(HTMLProgressElement.prototype, {
+ Object.defineProperties(HTMLMeterElement.prototype, {
value: { enumerable: true },
+ min: { enumerable: true },
max: { enumerable: true },
- position: { enumerable: true },
+ low: { enumerable: true },
+ high: { enumerable: true },
+ optimum: { enumerable: true },
labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLProgressElement", configurable: true }
+ [Symbol.toStringTag]: { value: "HTMLMeterElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLProgressElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLMeterElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLProgressElement
+ value: HTMLMeterElement
});
};
-const Impl = __nccwpck_require__(90842);
+const Impl = __nccwpck_require__(80737);
/***/ }),
-/***/ 4544:
+/***/ 34615:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -98251,16 +92903,16 @@ const Impl = __nccwpck_require__(90842);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLQuoteElement";
+const interfaceName = "HTMLModElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -98272,7 +92924,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLQuoteElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLModElement'.`);
};
function makeWrapper(globalObject) {
@@ -98280,9 +92932,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLQuoteElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLModElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLQuoteElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLModElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -98318,7 +92970,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -98342,9 +92994,9 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLQuoteElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLModElement before HTMLElement");
}
- class HTMLQuoteElement extends globalObject.HTMLElement {
+ class HTMLModElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
@@ -98353,7 +93005,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cite' called on an object that is not a valid instance of HTMLQuoteElement.");
+ throw new TypeError("'get cite' called on an object that is not a valid instance of HTMLModElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -98379,11 +93031,11 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cite' called on an object that is not a valid instance of HTMLQuoteElement.");
+ throw new TypeError("'set cite' called on an object that is not a valid instance of HTMLModElement.");
}
V = conversions["USVString"](V, {
- context: "Failed to set the 'cite' property on 'HTMLQuoteElement': The provided value"
+ context: "Failed to set the 'cite' property on 'HTMLModElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -98393,29 +93045,65 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+
+ get dateTime() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get dateTime' called on an object that is not a valid instance of HTMLModElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "datetime");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set dateTime(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set dateTime' called on an object that is not a valid instance of HTMLModElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'dateTime' property on 'HTMLModElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "datetime", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
}
- Object.defineProperties(HTMLQuoteElement.prototype, {
+ Object.defineProperties(HTMLModElement.prototype, {
cite: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLQuoteElement", configurable: true }
+ dateTime: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLModElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLQuoteElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLModElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLQuoteElement
+ value: HTMLModElement
});
};
-const Impl = __nccwpck_require__(70359);
+const Impl = __nccwpck_require__(36105);
/***/ }),
-/***/ 47755:
+/***/ 15739:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -98424,16 +93112,14 @@ const Impl = __nccwpck_require__(70359);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLScriptElement";
+const interfaceName = "HTMLOListElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -98445,7 +93131,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLScriptElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLOListElement'.`);
};
function makeWrapper(globalObject) {
@@ -98453,9 +93139,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLScriptElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLOListElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLScriptElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLOListElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -98491,7 +93177,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -98515,338 +93201,183 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLScriptElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLOListElement before HTMLElement");
}
- class HTMLScriptElement extends globalObject.HTMLElement {
+ class HTMLOListElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLScriptElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLScriptElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get defer() {
+ get reversed() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get defer' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'get reversed' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "defer");
+ return esValue[implSymbol].hasAttributeNS(null, "reversed");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set defer(V) {
+ set reversed(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set defer' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'set reversed' called on an object that is not a valid instance of HTMLOListElement.");
}
V = conversions["boolean"](V, {
- context: "Failed to set the 'defer' property on 'HTMLScriptElement': The provided value"
+ context: "Failed to set the 'reversed' property on 'HTMLOListElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
if (V) {
- esValue[implSymbol].setAttributeNS(null, "defer", "");
+ esValue[implSymbol].setAttributeNS(null, "reversed", "");
} else {
- esValue[implSymbol].removeAttributeNS(null, "defer");
+ esValue[implSymbol].removeAttributeNS(null, "reversed");
}
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get crossOrigin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set crossOrigin(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLScriptElement': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get text' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["text"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set text' called on an object that is not a valid instance of HTMLScriptElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLScriptElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["text"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get charset() {
+ get start() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'get start' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "charset");
- return value === null ? "" : value;
+ return esValue[implSymbol]["start"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set charset(V) {
+ set start(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'set start' called on an object that is not a valid instance of HTMLOListElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'charset' property on 'HTMLScriptElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'start' property on 'HTMLOListElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "charset", V);
+ esValue[implSymbol]["start"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get event() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get event' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "event");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set event(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set event' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLOListElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'event' property on 'HTMLScriptElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLOListElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "event", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get htmlFor() {
+ get compact() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "for");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "compact");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set htmlFor(V) {
+ set compact(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLScriptElement.");
+ throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLOListElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'htmlFor' property on 'HTMLScriptElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'compact' property on 'HTMLOListElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "for", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "compact", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "compact");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLScriptElement.prototype, {
- src: { enumerable: true },
+ Object.defineProperties(HTMLOListElement.prototype, {
+ reversed: { enumerable: true },
+ start: { enumerable: true },
type: { enumerable: true },
- defer: { enumerable: true },
- crossOrigin: { enumerable: true },
- text: { enumerable: true },
- charset: { enumerable: true },
- event: { enumerable: true },
- htmlFor: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLScriptElement", configurable: true }
+ compact: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLOListElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLScriptElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLOListElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLScriptElement
+ value: HTMLOListElement
});
};
-const Impl = __nccwpck_require__(63602);
+const Impl = __nccwpck_require__(94999);
/***/ }),
-/***/ 46346:
+/***/ 62055:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -98855,17 +93386,17 @@ const Impl = __nccwpck_require__(63602);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const HTMLOptionElement = __nccwpck_require__(26617);
-const HTMLOptGroupElement = __nccwpck_require__(52880);
-const HTMLElement = __nccwpck_require__(8932);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseNonNegativeInteger_helpers_strings = __nccwpck_require__(4764).parseNonNegativeInteger;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLSelectElement";
+const interfaceName = "HTMLObjectElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -98877,7 +93408,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLSelectElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLObjectElement'.`);
};
function makeWrapper(globalObject) {
@@ -98885,23 +93416,14 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLSelectElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLObjectElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLSelectElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLObjectElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
}
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
exports.create = (globalObject, constructorArgs, privateData) => {
const wrapper = makeWrapper(globalObject);
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
@@ -98925,8 +93447,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = makeProxy(wrapper, globalObject);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -98934,8 +93454,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -98943,8 +93463,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = makeProxy(wrapper, globalObject);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -98960,146 +93478,17 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLSelectElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLObjectElement before HTMLElement");
}
- class HTMLSelectElement extends globalObject.HTMLElement {
+ class HTMLObjectElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of HTMLSelectElement.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'item' on 'HTMLSelectElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'HTMLSelectElement': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'namedItem' called on an object that is not a valid instance of HTMLSelectElement.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'namedItem' on 'HTMLSelectElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'HTMLSelectElement': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
- }
-
- add(element) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'add' called on an object that is not a valid instance of HTMLSelectElement.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (HTMLOptionElement.is(curArg) || HTMLOptGroupElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- throw new TypeError(
- "Failed to execute 'add' on 'HTMLSelectElement': parameter 1" + " is not of any supported type."
- );
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- if (HTMLElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else if (typeof curArg === "number") {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLSelectElement': parameter 2"
- });
- } else {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLSelectElement': parameter 2"
- });
- }
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].add(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'remove' called on an object that is not a valid instance of HTMLSelectElement.");
- }
- const args = [];
- switch (arguments.length) {
- case 0:
- break;
- default: {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'remove' on 'HTMLSelectElement': parameter 1"
- });
- args.push(curArg);
- }
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLObjectElement.");
}
return esValue[implSymbol].checkValidity();
@@ -99108,7 +93497,7 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLObjectElement.");
}
return esValue[implSymbol].reportValidity();
@@ -99118,13 +93507,13 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLSelectElement."
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLObjectElement."
);
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLSelectElement': 1 argument required, but only " +
+ "Failed to execute 'setCustomValidity' on 'HTMLObjectElement': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -99133,685 +93522,708 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLSelectElement': parameter 1"
+ context: "Failed to execute 'setCustomValidity' on 'HTMLObjectElement': parameter 1"
});
args.push(curArg);
}
return esValue[implSymbol].setCustomValidity(...args);
}
- get autofocus() {
+ get data() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get data' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
+ const value = esValue[implSymbol].getAttributeNS(null, "data");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set autofocus(V) {
+ set data(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set data' called on an object that is not a valid instance of HTMLObjectElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLSelectElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'data' property on 'HTMLObjectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
+ esValue[implSymbol].setAttributeNS(null, "data", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get disabled() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set disabled(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLObjectElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLSelectElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'type' property on 'HTMLObjectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLSelectElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get multiple() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get multiple' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "multiple");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set multiple(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set multiple' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLObjectElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'multiple' property on 'HTMLSelectElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLObjectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "multiple", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "multiple");
- }
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get name() {
+ get useMap() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "usemap");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set useMap(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLSelectElement': The provided value"
+ context: "Failed to set the 'useMap' property on 'HTMLObjectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol].setAttributeNS(null, "usemap", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get required() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get required' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ }
+
+ get width() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "required");
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set required(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set required' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLObjectElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'required' property on 'HTMLSelectElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'width' property on 'HTMLObjectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "required", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "required");
- }
+ esValue[implSymbol].setAttributeNS(null, "width", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get size() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get size' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "size");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "height");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set size(V) {
+ set height(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set size' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLObjectElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'size' property on 'HTMLSelectElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'height' property on 'HTMLObjectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "size", String(n));
+ esValue[implSymbol].setAttributeNS(null, "height", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get contentDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError(
+ "'get contentDocument' called on an object that is not a valid instance of HTMLObjectElement."
+ );
}
- return esValue[implSymbol]["type"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
}
- get options() {
+ get willValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get options' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError(
+ "'get willValidate' called on an object that is not a valid instance of HTMLObjectElement."
+ );
}
- return utils.getSameObject(this, "options", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["options"]);
- });
+ return esValue[implSymbol]["willValidate"];
}
- get length() {
+ get validity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLObjectElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["length"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
}
- set length(V) {
+ get validationMessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set length' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError(
+ "'get validationMessage' called on an object that is not a valid instance of HTMLObjectElement."
+ );
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'length' property on 'HTMLSelectElement': The provided value"
- });
+ return esValue[implSymbol]["validationMessage"];
+ }
+
+ get align() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["length"] = V;
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get selectedOptions() {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get selectedOptions' called on an object that is not a valid instance of HTMLSelectElement."
- );
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return utils.getSameObject(this, "selectedOptions", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["selectedOptions"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLObjectElement': The provided value"
});
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "align", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get selectedIndex() {
+ get archive() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get selectedIndex' called on an object that is not a valid instance of HTMLSelectElement."
- );
+ throw new TypeError("'get archive' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return esValue[implSymbol]["selectedIndex"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "archive");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set selectedIndex(V) {
+ set archive(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set selectedIndex' called on an object that is not a valid instance of HTMLSelectElement."
- );
+ throw new TypeError("'set archive' called on an object that is not a valid instance of HTMLObjectElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'selectedIndex' property on 'HTMLSelectElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'archive' property on 'HTMLObjectElement': The provided value"
});
- esValue[implSymbol]["selectedIndex"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "archive", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get value() {
+ get code() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'get code' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return esValue[implSymbol]["value"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "code");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set value(V) {
+ set code(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set code' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLSelectElement': The provided value"
+ context: "Failed to set the 'code' property on 'HTMLObjectElement': The provided value"
});
- esValue[implSymbol]["value"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "code", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get willValidate() {
+ get declare() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLSelectElement."
- );
+ throw new TypeError("'get declare' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return esValue[implSymbol]["willValidate"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "declare");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get validity() {
+ set declare(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set declare' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'declare' property on 'HTMLObjectElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "declare", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "declare");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get validationMessage() {
+ get hspace() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLSelectElement."
- );
+ throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return esValue[implSymbol]["validationMessage"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "hspace");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get labels() {
+ set hspace(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLSelectElement.");
+ throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLObjectElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'hspace' property on 'HTMLObjectElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(HTMLSelectElement.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- add: { enumerable: true },
- remove: { enumerable: true },
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- autofocus: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- multiple: { enumerable: true },
- name: { enumerable: true },
- required: { enumerable: true },
- size: { enumerable: true },
- type: { enumerable: true },
- options: { enumerable: true },
- length: { enumerable: true },
- selectedOptions: { enumerable: true },
- selectedIndex: { enumerable: true },
- value: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLSelectElement", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLSelectElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLSelectElement
- });
-};
+ get standby() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get standby' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "standby");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
}
- return Reflect.apply(getter, receiver, []);
- }
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
+ set standby(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ownKeys(target) {
- const keys = new Set();
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set standby' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'standby' property on 'HTMLObjectElement': The provided value"
+ });
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "standby", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- return [...keys];
- }
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
+ get vspace() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "vspace");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- ignoreNamedProps = true;
}
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
+ set vspace(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
+
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'vspace' property on 'HTMLObjectElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- let indexedValue = V;
+ get codeBase() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLSelectElement': The provided value"
- });
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get codeBase' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "codebase");
+ if (value === null) {
+ return "";
}
-
- return true;
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- let ownDesc;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
+ set codeBase(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set codeBase' called on an object that is not a valid instance of HTMLObjectElement.");
}
- }
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'codeBase' property on 'HTMLObjectElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "codebase", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
}
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
+
+ get codeType() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get codeType' called on an object that is not a valid instance of HTMLObjectElement.");
}
- if (!existingDesc.writable) {
- return false;
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "codetype");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
+ set codeType(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const globalObject = this._globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set codeType' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
- if (utils.isArrayIndexPropName(P)) {
- if (desc.get || desc.set) {
- return false;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'codeType' property on 'HTMLObjectElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "codetype", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
+ }
- const index = P >>> 0;
- let indexedValue = desc.value;
+ get border() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLSelectElement': The provided value"
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get border' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
+ const value = esValue[implSymbol].getAttributeNS(null, "border");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return true;
}
- return Reflect.defineProperty(target, P, desc);
- }
+ set border(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set border' called on an object that is not a valid instance of HTMLObjectElement.");
+ }
- const globalObject = this._globalObject;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'border' property on 'HTMLObjectElement': The provided value",
+ treatNullAsEmptyString: true
+ });
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "border", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
-
- return Reflect.deleteProperty(target, P);
}
-
- preventExtensions() {
- return false;
+ Object.defineProperties(HTMLObjectElement.prototype, {
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ data: { enumerable: true },
+ type: { enumerable: true },
+ name: { enumerable: true },
+ useMap: { enumerable: true },
+ form: { enumerable: true },
+ width: { enumerable: true },
+ height: { enumerable: true },
+ contentDocument: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
+ align: { enumerable: true },
+ archive: { enumerable: true },
+ code: { enumerable: true },
+ declare: { enumerable: true },
+ hspace: { enumerable: true },
+ standby: { enumerable: true },
+ vspace: { enumerable: true },
+ codeBase: { enumerable: true },
+ codeType: { enumerable: true },
+ border: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLObjectElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
-}
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLObjectElement;
-const Impl = __nccwpck_require__(80867);
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLObjectElement
+ });
+};
+
+const Impl = __nccwpck_require__(71860);
/***/ }),
-/***/ 44962:
+/***/ 52880:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -99820,15 +94232,14 @@ const Impl = __nccwpck_require__(80867);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const AssignedNodesOptions = __nccwpck_require__(28411);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLSlotElement";
+const interfaceName = "HTMLOptGroupElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -99840,7 +94251,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLSlotElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLOptGroupElement'.`);
};
function makeWrapper(globalObject) {
@@ -99848,9 +94259,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLSlotElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLOptGroupElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLSlotElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLOptGroupElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -99886,7 +94297,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -99910,104 +94321,109 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLSlotElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLOptGroupElement before HTMLElement");
}
- class HTMLSlotElement extends globalObject.HTMLElement {
+ class HTMLOptGroupElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- assignedNodes() {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'assignedNodes' called on an object that is not a valid instance of HTMLSlotElement.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = AssignedNodesOptions.convert(curArg, {
- context: "Failed to execute 'assignedNodes' on 'HTMLSlotElement': parameter 1"
- });
- args.push(curArg);
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].assignedNodes(...args));
}
- assignedElements() {
+ set disabled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'assignedElements' called on an object that is not a valid instance of HTMLSlotElement.");
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = AssignedNodesOptions.convert(curArg, {
- context: "Failed to execute 'assignedElements' on 'HTMLSlotElement': parameter 1"
- });
- args.push(curArg);
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLOptGroupElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].assignedElements(...args));
}
- get name() {
+ get label() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLSlotElement.");
+ throw new TypeError("'get label' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
+ const value = esValue[implSymbol].getAttributeNS(null, "label");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set label(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLSlotElement.");
+ throw new TypeError("'set label' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLSlotElement': The provided value"
+ context: "Failed to set the 'label' property on 'HTMLOptGroupElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol].setAttributeNS(null, "label", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLSlotElement.prototype, {
- assignedNodes: { enumerable: true },
- assignedElements: { enumerable: true },
- name: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLSlotElement", configurable: true }
+ Object.defineProperties(HTMLOptGroupElement.prototype, {
+ disabled: { enumerable: true },
+ label: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLOptGroupElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLSlotElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLOptGroupElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLSlotElement
+ value: HTMLOptGroupElement
});
};
-const Impl = __nccwpck_require__(46269);
+const Impl = __nccwpck_require__(93030);
/***/ }),
-/***/ 16995:
+/***/ 26617:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100016,16 +94432,14 @@ const Impl = __nccwpck_require__(46269);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLSourceElement";
+const interfaceName = "HTMLOptionElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -100037,7 +94451,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLSourceElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLOptionElement'.`);
};
function makeWrapper(globalObject) {
@@ -100045,9 +94459,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLSourceElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLOptionElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLSourceElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLOptionElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -100083,7 +94497,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -100107,347 +94521,268 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLSourceElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLOptionElement before HTMLElement");
}
- class HTMLSourceElement extends globalObject.HTMLElement {
+ class HTMLOptionElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get src() {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set src(V) {
+ set disabled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLOptionElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLSourceElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLOptionElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLOptionElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ }
+
+ get label() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get label' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
+ return esValue[implSymbol]["label"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set type(V) {
+ set label(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'set label' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLSourceElement': The provided value"
+ context: "Failed to set the 'label' property on 'HTMLOptionElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
+ esValue[implSymbol]["label"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get srcset() {
+ get defaultSelected() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get srcset' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError(
+ "'get defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
+ );
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "srcset");
- return value === null ? "" : conversions.USVString(value);
+ return esValue[implSymbol].hasAttributeNS(null, "selected");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set srcset(V) {
+ set defaultSelected(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set srcset' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError(
+ "'set defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
+ );
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'srcset' property on 'HTMLSourceElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'defaultSelected' property on 'HTMLOptionElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "srcset", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "selected", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "selected");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get sizes() {
+ get selected() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get sizes' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'get selected' called on an object that is not a valid instance of HTMLOptionElement.");
+ }
+
+ return esValue[implSymbol]["selected"];
+ }
+
+ set selected(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set selected' called on an object that is not a valid instance of HTMLOptionElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'selected' property on 'HTMLOptionElement': The provided value"
+ });
+
+ esValue[implSymbol]["selected"] = V;
+ }
+
+ get value() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "sizes");
- return value === null ? "" : value;
+ return esValue[implSymbol]["value"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set sizes(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set sizes' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'sizes' property on 'HTMLSourceElement': The provided value"
+ context: "Failed to set the 'value' property on 'HTMLOptionElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "sizes", V);
+ esValue[implSymbol]["value"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get media() {
+ get text() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get media' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'get text' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "media");
- return value === null ? "" : value;
+ return esValue[implSymbol]["text"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set media(V) {
+ set text(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set media' called on an object that is not a valid instance of HTMLSourceElement.");
+ throw new TypeError("'set text' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'media' property on 'HTMLSourceElement': The provided value"
+ context: "Failed to set the 'text' property on 'HTMLOptionElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "media", V);
+ esValue[implSymbol]["text"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLSourceElement.prototype, {
- src: { enumerable: true },
- type: { enumerable: true },
- srcset: { enumerable: true },
- sizes: { enumerable: true },
- media: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLSourceElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLSourceElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLSourceElement
- });
-};
-
-const Impl = __nccwpck_require__(76604);
-
-
-/***/ }),
-
-/***/ 42549:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLSpanElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLSpanElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLSpanElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLSpanElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-const exposed = new Set(["Window"]);
+ get index() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get index' called on an object that is not a valid instance of HTMLOptionElement.");
+ }
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLSpanElement before HTMLElement");
- }
- class HTMLSpanElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return esValue[implSymbol]["index"];
}
}
- Object.defineProperties(HTMLSpanElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLSpanElement", configurable: true }
+ Object.defineProperties(HTMLOptionElement.prototype, {
+ disabled: { enumerable: true },
+ form: { enumerable: true },
+ label: { enumerable: true },
+ defaultSelected: { enumerable: true },
+ selected: { enumerable: true },
+ value: { enumerable: true },
+ text: { enumerable: true },
+ index: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLOptionElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLSpanElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLOptionElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLSpanElement
+ value: HTMLOptionElement
});
};
-const Impl = __nccwpck_require__(97825);
+const Impl = __nccwpck_require__(72401);
/***/ }),
-/***/ 19570:
+/***/ 58383:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100456,14 +94791,16 @@ const Impl = __nccwpck_require__(97825);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLOptionElement = __nccwpck_require__(26617);
+const HTMLOptGroupElement = __nccwpck_require__(52880);
+const HTMLElement = __nccwpck_require__(8932);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+const HTMLCollection = __nccwpck_require__(49672);
-const interfaceName = "HTMLStyleElement";
+const interfaceName = "HTMLOptionsCollection";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -100475,7 +94812,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLStyleElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLOptionsCollection'.`);
};
function makeWrapper(globalObject) {
@@ -100483,14 +94820,23 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLStyleElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLOptionsCollection"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLStyleElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLOptionsCollection is not installed on the passed global object");
}
return Object.create(ctor.prototype);
}
+function makeProxy(wrapper, globalObject) {
+ let proxyHandler = proxyHandlerCache.get(globalObject);
+ if (proxyHandler === undefined) {
+ proxyHandler = new ProxyHandler(globalObject);
+ proxyHandlerCache.set(globalObject, proxyHandler);
+ }
+ return new Proxy(wrapper, proxyHandler);
+}
+
exports.create = (globalObject, constructorArgs, privateData) => {
const wrapper = makeWrapper(globalObject);
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
@@ -100502,7 +94848,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
+ HTMLCollection._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -100514,6 +94860,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = makeProxy(wrapper, globalObject);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -100521,8 +94869,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -100530,6 +94878,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = makeProxy(wrapper, globalObject);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -100544,279 +94894,436 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLStyleElement before HTMLElement");
+ if (globalObject.HTMLCollection === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLOptionsCollection before HTMLCollection");
}
- class HTMLStyleElement extends globalObject.HTMLElement {
+ class HTMLOptionsCollection extends globalObject.HTMLCollection {
constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ throw new TypeError("Illegal constructor");
}
- get media() {
+ add(element) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get media' called on an object that is not a valid instance of HTMLStyleElement.");
+ throw new TypeError("'add' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'add' on 'HTMLOptionsCollection': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (HTMLOptionElement.is(curArg) || HTMLOptGroupElement.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ throw new TypeError(
+ "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 1" + " is not of any supported type."
+ );
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ if (HTMLElement.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else if (typeof curArg === "number") {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 2"
+ });
+ } else {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 2"
+ });
+ }
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "media");
- return value === null ? "" : value;
+ return esValue[implSymbol].add(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set media(V) {
+ remove(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set media' called on an object that is not a valid instance of HTMLStyleElement.");
+ throw new TypeError("'remove' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'media' property on 'HTMLStyleElement': The provided value"
- });
-
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'remove' on 'HTMLOptionsCollection': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'remove' on 'HTMLOptionsCollection': parameter 1"
+ });
+ args.push(curArg);
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "media", V);
+ return esValue[implSymbol].remove(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLStyleElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
+ return esValue[implSymbol]["length"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set type(V) {
+ set length(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLStyleElement.");
+ throw new TypeError("'set length' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLStyleElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'length' property on 'HTMLOptionsCollection': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
+ esValue[implSymbol]["length"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get sheet() {
+ get selectedIndex() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get sheet' called on an object that is not a valid instance of HTMLStyleElement.");
+ throw new TypeError(
+ "'get selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);
+ return esValue[implSymbol]["selectedIndex"];
+ }
+
+ set selectedIndex(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
+ );
+ }
+
+ V = conversions["long"](V, {
+ context: "Failed to set the 'selectedIndex' property on 'HTMLOptionsCollection': The provided value"
+ });
+
+ esValue[implSymbol]["selectedIndex"] = V;
}
}
- Object.defineProperties(HTMLStyleElement.prototype, {
- media: { enumerable: true },
- type: { enumerable: true },
- sheet: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLStyleElement", configurable: true }
+ Object.defineProperties(HTMLOptionsCollection.prototype, {
+ add: { enumerable: true },
+ remove: { enumerable: true },
+ length: { enumerable: true },
+ selectedIndex: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLOptionsCollection", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLStyleElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLOptionsCollection;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLStyleElement
+ value: HTMLOptionsCollection
});
};
-const Impl = __nccwpck_require__(97572);
-
-
-/***/ }),
-
-/***/ 11672:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+const proxyHandlerCache = new WeakMap();
+class ProxyHandler {
+ constructor(globalObject) {
+ this._globalObject = globalObject;
+ }
-"use strict";
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
+ }
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ }
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ ownKeys(target) {
+ const keys = new Set();
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
-const interfaceName = "HTMLTableCaptionElement";
+ for (const key of target[implSymbol][utils.supportedPropertyNames]) {
+ if (!(key in target)) {
+ keys.add(`${key}`);
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
+ }
+ return [...keys];
}
- throw new TypeError(`${context} is not of type 'HTMLTableCaptionElement'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTableCaptionElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTableCaptionElement is not installed on the passed global object");
- }
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ ignoreNamedProps = true;
+ }
- return Object.create(ctor.prototype);
-}
+ const namedValue = target[implSymbol].namedItem(P);
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(namedValue)
+ };
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
+ }
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ const globalObject = this._globalObject;
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ let indexedValue = V;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (indexedValue === null || indexedValue === undefined) {
+ indexedValue = null;
+ } else {
+ indexedValue = HTMLOptionElement.convert(indexedValue, {
+ context: "Failed to set the " + index + " property on 'HTMLOptionsCollection': The provided value"
+ });
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const creating = !(target[implSymbol].item(index) !== null);
+ if (creating) {
+ target[implSymbol][utils.indexedSetNew](index, indexedValue);
+ } else {
+ target[implSymbol][utils.indexedSetExisting](index, indexedValue);
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ return true;
+ }
+ }
+ let ownDesc;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
+ }
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
+ }
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
+ }
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
+ }
+ return Reflect.defineProperty(receiver, P, valueDesc);
}
- return wrapper[implSymbol];
-};
-const exposed = new Set(["Window"]);
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ const globalObject = this._globalObject;
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTableCaptionElement before HTMLElement");
- }
- class HTMLTableCaptionElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
+ if (utils.isArrayIndexPropName(P)) {
+ if (desc.get || desc.set) {
+ return false;
+ }
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const index = P >>> 0;
+ let indexedValue = desc.value;
- if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableCaptionElement.");
+ if (indexedValue === null || indexedValue === undefined) {
+ indexedValue = null;
+ } else {
+ indexedValue = HTMLOptionElement.convert(indexedValue, {
+ context: "Failed to set the " + index + " property on 'HTMLOptionsCollection': The provided value"
+ });
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ const creating = !(target[implSymbol].item(index) !== null);
+ if (creating) {
+ target[implSymbol][utils.indexedSetNew](index, indexedValue);
+ } else {
+ target[implSymbol][utils.indexedSetExisting](index, indexedValue);
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
+
+ return true;
+ }
+ if (!utils.hasOwn(target, P)) {
+ const creating = !(target[implSymbol].namedItem(P) !== null);
+ if (!creating) {
+ return false;
+ }
}
+ return Reflect.defineProperty(target, P, desc);
+ }
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableCaptionElement.");
- }
+ const globalObject = this._globalObject;
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableCaptionElement': The provided value"
- });
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
+ return false;
}
+
+ return Reflect.deleteProperty(target, P);
}
- Object.defineProperties(HTMLTableCaptionElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableCaptionElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableCaptionElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableCaptionElement
- });
-};
+ preventExtensions() {
+ return false;
+ }
+}
-const Impl = __nccwpck_require__(68219);
+const Impl = __nccwpck_require__(35);
/***/ }),
-/***/ 48587:
+/***/ 49514:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -100825,14 +95332,14 @@ const Impl = __nccwpck_require__(68219);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTableCellElement";
+const interfaceName = "HTMLOutputElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -100844,7 +95351,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTableCellElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLOutputElement'.`);
};
function makeWrapper(globalObject) {
@@ -100852,9 +95359,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTableCellElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLOutputElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTableCellElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLOutputElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -100890,7 +95397,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -100914,552 +95421,449 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTableCellElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLOutputElement before HTMLElement");
}
- class HTMLTableCellElement extends globalObject.HTMLElement {
+ class HTMLOutputElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get colSpan() {
+ checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get colSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLOutputElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["colSpan"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].checkValidity();
}
- set colSpan(V) {
+ reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set colSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLOutputElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'colSpan' property on 'HTMLTableCellElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["colSpan"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol].reportValidity();
}
- get rowSpan() {
+ setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get rowSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["rowSpan"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ throw new TypeError(
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLOutputElement."
+ );
}
- }
-
- set rowSpan(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set rowSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setCustomValidity' on 'HTMLOutputElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'rowSpan' property on 'HTMLTableCellElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["rowSpan"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setCustomValidity' on 'HTMLOutputElement': parameter 1"
+ });
+ args.push(curArg);
}
+ return esValue[implSymbol].setCustomValidity(...args);
}
- get headers() {
+ get htmlFor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get headers' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLOutputElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "headers");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.getSameObject(this, "htmlFor", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["htmlFor"]);
+ });
}
- set headers(V) {
+ set htmlFor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set headers' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLOutputElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'headers' property on 'HTMLTableCellElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "headers", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ const Q = esValue["htmlFor"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'htmlFor' is not an object");
}
+ Reflect.set(Q, "value", V);
}
- get cellIndex() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get cellIndex' called on an object that is not a valid instance of HTMLTableCellElement."
- );
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLOutputElement.");
}
- return esValue[implSymbol]["cellIndex"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
}
- get scope() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get scope' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLOutputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["scope"];
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set scope(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set scope' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLOutputElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'scope' property on 'HTMLTableCellElement': The provided value"
+ context: "Failed to set the 'name' property on 'HTMLOutputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["scope"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get abbr() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get abbr' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "abbr");
- return value === null ? "" : value;
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set abbr(V) {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set abbr' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLOutputElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'abbr' property on 'HTMLTableCellElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "abbr", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["type"];
}
- get align() {
+ get defaultValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError(
+ "'get defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
+ );
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ return esValue[implSymbol]["defaultValue"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set defaultValue(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError(
+ "'set defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
+ );
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableCellElement': The provided value"
+ context: "Failed to set the 'defaultValue' property on 'HTMLOutputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol]["defaultValue"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get axis() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get axis' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLOutputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "axis");
- return value === null ? "" : value;
+ return esValue[implSymbol]["value"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set axis(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set axis' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLOutputElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'axis' property on 'HTMLTableCellElement': The provided value"
+ context: "Failed to set the 'value' property on 'HTMLOutputElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "axis", V);
+ esValue[implSymbol]["value"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get height() {
+ get willValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError(
+ "'get willValidate' called on an object that is not a valid instance of HTMLOutputElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["willValidate"];
}
- set height(V) {
+ get validity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLOutputElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLTableCellElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
}
- get width() {
+ get validationMessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError(
+ "'get validationMessage' called on an object that is not a valid instance of HTMLOutputElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["validationMessage"];
}
- set width(V) {
+ get labels() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLOutputElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLTableCellElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
}
+ }
+ Object.defineProperties(HTMLOutputElement.prototype, {
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ htmlFor: { enumerable: true },
+ form: { enumerable: true },
+ name: { enumerable: true },
+ type: { enumerable: true },
+ defaultValue: { enumerable: true },
+ value: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
+ labels: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLOutputElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLOutputElement;
- get ch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLOutputElement
+ });
+};
- set ch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const Impl = __nccwpck_require__(38297);
- if (!exports.is(esValue)) {
- throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableCellElement': The provided value"
- });
+/***/ }),
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+/***/ 78759:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get chOff() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- set chOff(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- if (!exports.is(esValue)) {
- throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
+const interfaceName = "HTMLParagraphElement";
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableCellElement': The provided value"
- });
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLParagraphElement'.`);
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- get noWrap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLParagraphElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLParagraphElement is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get noWrap' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
+ return Object.create(ctor.prototype);
+}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "nowrap");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- set noWrap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set noWrap' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noWrap' property on 'HTMLTableCellElement': The provided value"
- });
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "nowrap", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "nowrap");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- get vAlign() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get vAlign' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- set vAlign(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set vAlign' called on an object that is not a valid instance of HTMLTableCellElement.");
- }
+const exposed = new Set(["Window"]);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableCellElement': The provided value"
- });
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLParagraphElement before HTMLElement");
+ }
+ class HTMLParagraphElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get bgColor() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLParagraphElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set bgColor(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLTableCellElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLParagraphElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLTableCellElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'align' property on 'HTMLParagraphElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLTableCellElement.prototype, {
- colSpan: { enumerable: true },
- rowSpan: { enumerable: true },
- headers: { enumerable: true },
- cellIndex: { enumerable: true },
- scope: { enumerable: true },
- abbr: { enumerable: true },
+ Object.defineProperties(HTMLParagraphElement.prototype, {
align: { enumerable: true },
- axis: { enumerable: true },
- height: { enumerable: true },
- width: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- noWrap: { enumerable: true },
- vAlign: { enumerable: true },
- bgColor: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableCellElement", configurable: true }
+ [Symbol.toStringTag]: { value: "HTMLParagraphElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableCellElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLParagraphElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTableCellElement
+ value: HTMLParagraphElement
});
};
-const Impl = __nccwpck_require__(6604);
+const Impl = __nccwpck_require__(78556);
/***/ }),
-/***/ 30388:
+/***/ 58213:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101468,15 +95872,14 @@ const Impl = __nccwpck_require__(6604);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseNonNegativeInteger_helpers_strings = __nccwpck_require__(4764).parseNonNegativeInteger;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTableColElement";
+const interfaceName = "HTMLParamElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -101488,7 +95891,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTableColElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLParamElement'.`);
};
function makeWrapper(globalObject) {
@@ -101496,9 +95899,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTableColElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLParamElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTableColElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLParamElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -101534,7 +95937,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -101558,204 +95961,421 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTableColElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLParamElement before HTMLElement");
}
- class HTMLTableColElement extends globalObject.HTMLElement {
+ class HTMLParamElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get span() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get span' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "span");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set span(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set span' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLParamElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'span' property on 'HTMLTableColElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLParamElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "span", String(n));
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get align() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
+ const value = esValue[implSymbol].getAttributeNS(null, "value");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableColElement': The provided value"
+ context: "Failed to set the 'value' property on 'HTMLParamElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol].setAttributeNS(null, "value", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get ch() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set ch(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableColElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLParamElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get chOff() {
+ get valueType() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'get valueType' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
+ const value = esValue[implSymbol].getAttributeNS(null, "valuetype");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set chOff(V) {
+ set valueType(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'set valueType' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableColElement': The provided value"
+ context: "Failed to set the 'valueType' property on 'HTMLParamElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
+ esValue[implSymbol].setAttributeNS(null, "valuetype", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLParamElement.prototype, {
+ name: { enumerable: true },
+ value: { enumerable: true },
+ type: { enumerable: true },
+ valueType: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLParamElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLParamElement;
- get vAlign() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get vAlign' called on an object that is not a valid instance of HTMLTableColElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLParamElement
+ });
+};
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+const Impl = __nccwpck_require__(80198);
+
+
+/***/ }),
+
+/***/ 65049:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLPictureElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLPictureElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLPictureElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLPictureElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLPictureElement before HTMLElement");
+ }
+ class HTMLPictureElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
+ }
+ Object.defineProperties(HTMLPictureElement.prototype, {
+ [Symbol.toStringTag]: { value: "HTMLPictureElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLPictureElement;
- set vAlign(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLPictureElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set vAlign' called on an object that is not a valid instance of HTMLTableColElement.");
- }
+const Impl = __nccwpck_require__(10611);
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableColElement': The provided value"
- });
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+/***/ }),
+
+/***/ 75574:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseInteger_helpers_strings = (__nccwpck_require__(4764).parseInteger);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLPreElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLPreElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLPreElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLPreElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLPreElement before HTMLElement");
+ }
+ class HTMLPreElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLPreElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
+ let value = esValue[implSymbol].getAttributeNS(null, "width");
+ if (value === null) {
+ return 0;
+ }
+ value = parseInteger_helpers_strings(value);
+ return value !== null && conversions.long(value) === value ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
@@ -101765,48 +96385,43 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLTableColElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLPreElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLTableColElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'width' property on 'HTMLPreElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
+ esValue[implSymbol].setAttributeNS(null, "width", String(V));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLTableColElement.prototype, {
- span: { enumerable: true },
- align: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- vAlign: { enumerable: true },
+ Object.defineProperties(HTMLPreElement.prototype, {
width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableColElement", configurable: true }
+ [Symbol.toStringTag]: { value: "HTMLPreElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableColElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLPreElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTableColElement
+ value: HTMLPreElement
});
};
-const Impl = __nccwpck_require__(66146);
+const Impl = __nccwpck_require__(34233);
/***/ }),
-/***/ 45197:
+/***/ 90536:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -101815,16 +96430,14 @@ const Impl = __nccwpck_require__(66146);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const HTMLTableCaptionElement = __nccwpck_require__(11672);
-const HTMLTableSectionElement = __nccwpck_require__(99167);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTableElement";
+const interfaceName = "HTMLProgressElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -101836,7 +96449,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTableElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLProgressElement'.`);
};
function makeWrapper(globalObject) {
@@ -101844,9 +96457,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTableElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLProgressElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTableElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLProgressElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -101882,7 +96495,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -101906,640 +96519,730 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTableElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLProgressElement before HTMLElement");
}
- class HTMLTableElement extends globalObject.HTMLElement {
+ class HTMLProgressElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- createCaption() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createCaption' called on an object that is not a valid instance of HTMLTableElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createCaption());
- }
- deleteCaption() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'deleteCaption' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLProgressElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].deleteCaption();
+ return esValue[implSymbol]["value"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- createTHead() {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createTHead' called on an object that is not a valid instance of HTMLTableElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createTHead());
- }
- deleteTHead() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'deleteTHead' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLProgressElement.");
}
+ V = conversions["double"](V, {
+ context: "Failed to set the 'value' property on 'HTMLProgressElement': The provided value"
+ });
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].deleteTHead();
+ esValue[implSymbol]["value"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- createTFoot() {
+ get max() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createTFoot' called on an object that is not a valid instance of HTMLTableElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createTFoot());
- }
- deleteTFoot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'deleteTFoot' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get max' called on an object that is not a valid instance of HTMLProgressElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].deleteTFoot();
+ return esValue[implSymbol]["max"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- createTBody() {
+ set max(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'createTBody' called on an object that is not a valid instance of HTMLTableElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createTBody());
- }
- insertRow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'insertRow' called on an object that is not a valid instance of HTMLTableElement.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'insertRow' on 'HTMLTableElement': parameter 1"
- });
- } else {
- curArg = -1;
- }
- args.push(curArg);
+ throw new TypeError("'set max' called on an object that is not a valid instance of HTMLProgressElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].insertRow(...args));
- }
- deleteRow(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'deleteRow' called on an object that is not a valid instance of HTMLTableElement.");
- }
+ V = conversions["double"](V, {
+ context: "Failed to set the 'max' property on 'HTMLProgressElement': The provided value"
+ });
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'deleteRow' on 'HTMLTableElement': parameter 1"
- });
- args.push(curArg);
- }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].deleteRow(...args);
+ esValue[implSymbol]["max"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get caption() {
+ get position() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get caption' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get position' called on an object that is not a valid instance of HTMLProgressElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["caption"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["position"];
}
- set caption(V) {
+ get labels() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set caption' called on an object that is not a valid instance of HTMLTableElement.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLTableCaptionElement.convert(V, {
- context: "Failed to set the 'caption' property on 'HTMLTableElement': The provided value"
- });
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLProgressElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["caption"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
}
+ }
+ Object.defineProperties(HTMLProgressElement.prototype, {
+ value: { enumerable: true },
+ max: { enumerable: true },
+ position: { enumerable: true },
+ labels: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLProgressElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLProgressElement;
- get tHead() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLProgressElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get tHead' called on an object that is not a valid instance of HTMLTableElement.");
- }
+const Impl = __nccwpck_require__(90842);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["tHead"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- set tHead(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'set tHead' called on an object that is not a valid instance of HTMLTableElement.");
- }
+/***/ 4544:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLTableSectionElement.convert(V, {
- context: "Failed to set the 'tHead' property on 'HTMLTableElement': The provided value"
- });
- }
+"use strict";
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tHead"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- get tFoot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!exports.is(esValue)) {
- throw new TypeError("'get tFoot' called on an object that is not a valid instance of HTMLTableElement.");
- }
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["tFoot"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+const interfaceName = "HTMLQuoteElement";
- set tFoot(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLQuoteElement'.`);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set tFoot' called on an object that is not a valid instance of HTMLTableElement.");
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLTableSectionElement.convert(V, {
- context: "Failed to set the 'tFoot' property on 'HTMLTableElement': The provided value"
- });
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLQuoteElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLQuoteElement is not installed on the passed global object");
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tFoot"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
+ return Object.create(ctor.prototype);
+}
- get tBodies() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get tBodies' called on an object that is not a valid instance of HTMLTableElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- return utils.getSameObject(this, "tBodies", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["tBodies"]);
- });
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- get rows() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLTableElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- return utils.getSameObject(this, "rows", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["rows"]);
- });
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLQuoteElement before HTMLElement");
+ }
+ class HTMLQuoteElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get align() {
+ get cite() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get cite' called on an object that is not a valid instance of HTMLQuoteElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ const value = esValue[implSymbol].getAttributeNS(null, "cite");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set cite(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set cite' called on an object that is not a valid instance of HTMLQuoteElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'cite' property on 'HTMLQuoteElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol].setAttributeNS(null, "cite", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLQuoteElement.prototype, {
+ cite: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLQuoteElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLQuoteElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLQuoteElement
+ });
+};
+
+const Impl = __nccwpck_require__(70359);
+
+
+/***/ }),
+
+/***/ 47755:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLScriptElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLScriptElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLScriptElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLScriptElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLScriptElement before HTMLElement");
+ }
+ class HTMLScriptElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
- get border() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get border' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "border");
- return value === null ? "" : value;
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set border(V) {
+ set src(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set border' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLScriptElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'border' property on 'HTMLTableElement': The provided value"
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "border", V);
+ esValue[implSymbol].setAttributeNS(null, "src", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get frame() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get frame' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "frame");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set frame(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set frame' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'frame' property on 'HTMLTableElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "frame", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rules() {
+ get defer() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rules' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get defer' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "rules");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "defer");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set rules(V) {
+ set defer(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set rules' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set defer' called on an object that is not a valid instance of HTMLScriptElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rules' property on 'HTMLTableElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'defer' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "rules", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "defer", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "defer");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get summary() {
+ get crossOrigin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get summary' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "summary");
+ const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set summary(V) {
+ set crossOrigin(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set summary' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLScriptElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'summary' property on 'HTMLTableElement': The provided value"
- });
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'crossOrigin' property on 'HTMLScriptElement': The provided value"
+ });
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "summary", V);
+ esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get width() {
+ get text() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get text' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
+ return esValue[implSymbol]["text"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set width(V) {
+ set text(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set text' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLTableElement': The provided value"
+ context: "Failed to set the 'text' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
+ esValue[implSymbol]["text"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get bgColor() {
+ get charset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ const value = esValue[implSymbol].getAttributeNS(null, "charset");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set bgColor(V) {
+ set charset(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLTableElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'charset' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ esValue[implSymbol].setAttributeNS(null, "charset", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get cellPadding() {
+ get event() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cellPadding' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get event' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "cellpadding");
+ const value = esValue[implSymbol].getAttributeNS(null, "event");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set cellPadding(V) {
+ set event(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cellPadding' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set event' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'cellPadding' property on 'HTMLTableElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'event' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "cellpadding", V);
+ esValue[implSymbol].setAttributeNS(null, "event", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get cellSpacing() {
+ get htmlFor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cellSpacing' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "cellspacing");
+ const value = esValue[implSymbol].getAttributeNS(null, "for");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set cellSpacing(V) {
+ set htmlFor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cellSpacing' called on an object that is not a valid instance of HTMLTableElement.");
+ throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'cellSpacing' property on 'HTMLTableElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'htmlFor' property on 'HTMLScriptElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "cellspacing", V);
+ esValue[implSymbol].setAttributeNS(null, "for", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLTableElement.prototype, {
- createCaption: { enumerable: true },
- deleteCaption: { enumerable: true },
- createTHead: { enumerable: true },
- deleteTHead: { enumerable: true },
- createTFoot: { enumerable: true },
- deleteTFoot: { enumerable: true },
- createTBody: { enumerable: true },
- insertRow: { enumerable: true },
- deleteRow: { enumerable: true },
- caption: { enumerable: true },
- tHead: { enumerable: true },
- tFoot: { enumerable: true },
- tBodies: { enumerable: true },
- rows: { enumerable: true },
- align: { enumerable: true },
- border: { enumerable: true },
- frame: { enumerable: true },
- rules: { enumerable: true },
- summary: { enumerable: true },
- width: { enumerable: true },
- bgColor: { enumerable: true },
- cellPadding: { enumerable: true },
- cellSpacing: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableElement", configurable: true }
+ Object.defineProperties(HTMLScriptElement.prototype, {
+ src: { enumerable: true },
+ type: { enumerable: true },
+ defer: { enumerable: true },
+ crossOrigin: { enumerable: true },
+ text: { enumerable: true },
+ charset: { enumerable: true },
+ event: { enumerable: true },
+ htmlFor: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLScriptElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLScriptElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTableElement
+ value: HTMLScriptElement
});
};
-const Impl = __nccwpck_require__(36975);
+const Impl = __nccwpck_require__(63602);
/***/ }),
-/***/ 86057:
+/***/ 46346:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -102548,14 +97251,17 @@ const Impl = __nccwpck_require__(36975);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const HTMLOptionElement = __nccwpck_require__(26617);
+const HTMLOptGroupElement = __nccwpck_require__(52880);
+const HTMLElement = __nccwpck_require__(8932);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTableRowElement";
+const interfaceName = "HTMLSelectElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -102567,7 +97273,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTableRowElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLSelectElement'.`);
};
function makeWrapper(globalObject) {
@@ -102575,14 +97281,23 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTableRowElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLSelectElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTableRowElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLSelectElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
}
+function makeProxy(wrapper, globalObject) {
+ let proxyHandler = proxyHandlerCache.get(globalObject);
+ if (proxyHandler === undefined) {
+ proxyHandler = new ProxyHandler(globalObject);
+ proxyHandlerCache.set(globalObject, proxyHandler);
+ }
+ return new Proxy(wrapper, proxyHandler);
+}
+
exports.create = (globalObject, constructorArgs, privateData) => {
const wrapper = makeWrapper(globalObject);
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
@@ -102606,6 +97321,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = makeProxy(wrapper, globalObject);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -102613,8 +97330,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -102622,6 +97339,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = makeProxy(wrapper, globalObject);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -102637,42 +97356,46 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTableRowElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLSelectElement before HTMLElement");
}
- class HTMLTableRowElement extends globalObject.HTMLElement {
+ class HTMLSelectElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- insertCell() {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'insertCell' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'item' called on an object that is not a valid instance of HTMLSelectElement.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'item' on 'HTMLSelectElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
const args = [];
{
let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'insertCell' on 'HTMLTableRowElement': parameter 1"
- });
- } else {
- curArg = -1;
- }
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'HTMLSelectElement': parameter 1"
+ });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].insertCell(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
}
- deleteCell(index) {
+ namedItem(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'deleteCell' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'namedItem' called on an object that is not a valid instance of HTMLSelectElement.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only " +
+ "Failed to execute 'namedItem' on 'HTMLSelectElement': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -102680,597 +97403,811 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'deleteCell' on 'HTMLTableRowElement': parameter 1"
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'namedItem' on 'HTMLSelectElement': parameter 1"
});
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteCell(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
}
- get rowIndex() {
+ add(element) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get rowIndex' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'add' called on an object that is not a valid instance of HTMLSelectElement.");
}
- return esValue[implSymbol]["rowIndex"];
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (HTMLOptionElement.is(curArg) || HTMLOptGroupElement.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else {
+ throw new TypeError(
+ "Failed to execute 'add' on 'HTMLSelectElement': parameter 1" + " is not of any supported type."
+ );
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ if (HTMLElement.is(curArg)) {
+ curArg = utils.implForWrapper(curArg);
+ } else if (typeof curArg === "number") {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'add' on 'HTMLSelectElement': parameter 2"
+ });
+ } else {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'add' on 'HTMLSelectElement': parameter 2"
+ });
+ }
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].add(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get sectionRowIndex() {
+ remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'remove' called on an object that is not a valid instance of HTMLSelectElement.");
+ }
+ const args = [];
+ switch (arguments.length) {
+ case 0:
+ break;
+ default: {
+ let curArg = arguments[0];
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'remove' on 'HTMLSelectElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].remove(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ checkValidity() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get sectionRowIndex' called on an object that is not a valid instance of HTMLTableRowElement."
- );
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLSelectElement.");
}
- return esValue[implSymbol]["sectionRowIndex"];
+ return esValue[implSymbol].checkValidity();
}
- get cells() {
+ reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLSelectElement.");
+ }
+
+ return esValue[implSymbol].reportValidity();
+ }
+ setCustomValidity(error) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cells' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError(
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLSelectElement."
+ );
}
- return utils.getSameObject(this, "cells", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["cells"]);
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setCustomValidity' on 'HTMLSelectElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setCustomValidity' on 'HTMLSelectElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].setCustomValidity(...args);
}
- get align() {
+ get autofocus() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLSelectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "autofocus");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set autofocus(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLSelectElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableRowElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'autofocus' property on 'HTMLSelectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "autofocus", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "autofocus");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get ch() {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLSelectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set ch(V) {
+ set disabled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLSelectElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableRowElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLSelectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get chOff() {
+ get form() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLSelectElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ }
+
+ get multiple() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get multiple' called on an object that is not a valid instance of HTMLSelectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "multiple");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set chOff(V) {
+ set multiple(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'set multiple' called on an object that is not a valid instance of HTMLSelectElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableRowElement': The provided value"
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'multiple' property on 'HTMLSelectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "multiple", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "multiple");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get vAlign() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get vAlign' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLSelectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set vAlign(V) {
+ set name(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set vAlign' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLSelectElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableRowElement': The provided value"
+ context: "Failed to set the 'name' property on 'HTMLSelectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
+ esValue[implSymbol].setAttributeNS(null, "name", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get bgColor() {
+ get required() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'get required' called on an object that is not a valid instance of HTMLSelectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
+ return esValue[implSymbol].hasAttributeNS(null, "required");
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set bgColor(V) {
+ set required(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLTableRowElement.");
+ throw new TypeError("'set required' called on an object that is not a valid instance of HTMLSelectElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLTableRowElement': The provided value",
- treatNullAsEmptyString: true
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'required' property on 'HTMLSelectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "required", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "required");
+ }
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLTableRowElement.prototype, {
- insertCell: { enumerable: true },
- deleteCell: { enumerable: true },
- rowIndex: { enumerable: true },
- sectionRowIndex: { enumerable: true },
- cells: { enumerable: true },
- align: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- vAlign: { enumerable: true },
- bgColor: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableRowElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableRowElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableRowElement
- });
-};
-
-const Impl = __nccwpck_require__(76062);
-
-
-/***/ }),
-
-/***/ 99167:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableSectionElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLTableSectionElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTableSectionElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTableSectionElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTableSectionElement before HTMLElement");
- }
- class HTMLTableSectionElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
- insertRow() {
+ get size() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'insertRow' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'get size' called on an object that is not a valid instance of HTMLSelectElement.");
}
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'insertRow' on 'HTMLTableSectionElement': parameter 1"
- });
- } else {
- curArg = -1;
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "size");
+ if (value === null) {
+ return 0;
}
- args.push(curArg);
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].insertRow(...args));
}
- deleteRow(index) {
+ set size(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'deleteRow' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'set size' called on an object that is not a valid instance of HTMLSelectElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'deleteRow' on 'HTMLTableSectionElement': parameter 1"
- });
- args.push(curArg);
- }
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'size' property on 'HTMLSelectElement': The provided value"
+ });
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].deleteRow(...args);
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "size", String(n));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rows() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLSelectElement.");
}
- return utils.getSameObject(this, "rows", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["rows"]);
+ return esValue[implSymbol]["type"];
+ }
+
+ get options() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get options' called on an object that is not a valid instance of HTMLSelectElement.");
+ }
+
+ return utils.getSameObject(this, "options", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["options"]);
});
}
- get align() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of HTMLSelectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
+ return esValue[implSymbol]["length"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set align(V) {
+ set length(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'set length' called on an object that is not a valid instance of HTMLSelectElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableSectionElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'length' property on 'HTMLSelectElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
+ esValue[implSymbol]["length"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get ch() {
+ get selectedOptions() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError(
+ "'get selectedOptions' called on an object that is not a valid instance of HTMLSelectElement."
+ );
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return utils.getSameObject(this, "selectedOptions", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["selectedOptions"]);
+ });
+ }
+
+ get selectedIndex() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get selectedIndex' called on an object that is not a valid instance of HTMLSelectElement."
+ );
}
+
+ return esValue[implSymbol]["selectedIndex"];
}
- set ch(V) {
+ set selectedIndex(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError(
+ "'set selectedIndex' called on an object that is not a valid instance of HTMLSelectElement."
+ );
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableSectionElement': The provided value"
+ V = conversions["long"](V, {
+ context: "Failed to set the 'selectedIndex' property on 'HTMLSelectElement': The provided value"
});
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["selectedIndex"] = V;
}
- get chOff() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLSelectElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["value"];
}
- set chOff(V) {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLSelectElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableSectionElement': The provided value"
+ context: "Failed to set the 'value' property on 'HTMLSelectElement': The provided value"
});
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ esValue[implSymbol]["value"] = V;
}
- get vAlign() {
+ get willValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get vAlign' called on an object that is not a valid instance of HTMLTableSectionElement."
+ "'get willValidate' called on an object that is not a valid instance of HTMLSelectElement."
);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ return esValue[implSymbol]["willValidate"];
+ }
+
+ get validity() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLSelectElement.");
}
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
}
- set vAlign(V) {
+ get validationMessage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'set vAlign' called on an object that is not a valid instance of HTMLTableSectionElement."
+ "'get validationMessage' called on an object that is not a valid instance of HTMLSelectElement."
);
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableSectionElement': The provided value"
- });
+ return esValue[implSymbol]["validationMessage"];
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ get labels() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLSelectElement.");
}
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
}
}
- Object.defineProperties(HTMLTableSectionElement.prototype, {
- insertRow: { enumerable: true },
- deleteRow: { enumerable: true },
- rows: { enumerable: true },
- align: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- vAlign: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableSectionElement", configurable: true }
+ Object.defineProperties(HTMLSelectElement.prototype, {
+ item: { enumerable: true },
+ namedItem: { enumerable: true },
+ add: { enumerable: true },
+ remove: { enumerable: true },
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ autofocus: { enumerable: true },
+ disabled: { enumerable: true },
+ form: { enumerable: true },
+ multiple: { enumerable: true },
+ name: { enumerable: true },
+ required: { enumerable: true },
+ size: { enumerable: true },
+ type: { enumerable: true },
+ options: { enumerable: true },
+ length: { enumerable: true },
+ selectedOptions: { enumerable: true },
+ selectedIndex: { enumerable: true },
+ value: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
+ labels: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLSelectElement", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableSectionElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLSelectElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTableSectionElement
+ value: HTMLSelectElement
});
};
-const Impl = __nccwpck_require__(3803);
+const proxyHandlerCache = new WeakMap();
+class ProxyHandler {
+ constructor(globalObject) {
+ this._globalObject = globalObject;
+ }
+
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
+ }
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ }
+
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ }
+
+ ownKeys(target) {
+ const keys = new Set();
+
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
+
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
+ }
+ return [...keys];
+ }
+
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
+
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ ignoreNamedProps = true;
+ }
+
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
+ }
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ const globalObject = this._globalObject;
+
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ let indexedValue = V;
+
+ if (indexedValue === null || indexedValue === undefined) {
+ indexedValue = null;
+ } else {
+ indexedValue = HTMLOptionElement.convert(indexedValue, {
+ context: "Failed to set the " + index + " property on 'HTMLSelectElement': The provided value"
+ });
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const creating = !(target[implSymbol].item(index) !== null);
+ if (creating) {
+ target[implSymbol][utils.indexedSetNew](index, indexedValue);
+ } else {
+ target[implSymbol][utils.indexedSetExisting](index, indexedValue);
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+
+ return true;
+ }
+ }
+ let ownDesc;
+
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ }
+
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
+ }
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
+ }
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
+ }
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
+ }
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ }
+
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
+
+ const globalObject = this._globalObject;
+
+ if (utils.isArrayIndexPropName(P)) {
+ if (desc.get || desc.set) {
+ return false;
+ }
+
+ const index = P >>> 0;
+ let indexedValue = desc.value;
+
+ if (indexedValue === null || indexedValue === undefined) {
+ indexedValue = null;
+ } else {
+ indexedValue = HTMLOptionElement.convert(indexedValue, {
+ context: "Failed to set the " + index + " property on 'HTMLSelectElement': The provided value"
+ });
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const creating = !(target[implSymbol].item(index) !== null);
+ if (creating) {
+ target[implSymbol][utils.indexedSetNew](index, indexedValue);
+ } else {
+ target[implSymbol][utils.indexedSetExisting](index, indexedValue);
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+
+ return true;
+ }
+
+ return Reflect.defineProperty(target, P, desc);
+ }
+
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
+
+ const globalObject = this._globalObject;
+
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
+ }
+
+ return Reflect.deleteProperty(target, P);
+ }
+
+ preventExtensions() {
+ return false;
+ }
+}
+
+const Impl = __nccwpck_require__(80867);
/***/ }),
-/***/ 17164:
+/***/ 44962:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -103279,12 +98216,15 @@ const Impl = __nccwpck_require__(3803);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const AssignedNodesOptions = __nccwpck_require__(28411);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTemplateElement";
+const interfaceName = "HTMLSlotElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -103296,7 +98236,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTemplateElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLSlotElement'.`);
};
function makeWrapper(globalObject) {
@@ -103304,9 +98244,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTemplateElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLSlotElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTemplateElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLSlotElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -103342,7 +98282,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -103366,45 +98306,104 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTemplateElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLSlotElement before HTMLElement");
}
- class HTMLTemplateElement extends globalObject.HTMLElement {
+ class HTMLSlotElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get content() {
+ assignedNodes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'assignedNodes' called on an object that is not a valid instance of HTMLSlotElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = AssignedNodesOptions.convert(curArg, {
+ context: "Failed to execute 'assignedNodes' on 'HTMLSlotElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].assignedNodes(...args));
+ }
+ assignedElements() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get content' called on an object that is not a valid instance of HTMLTemplateElement.");
+ throw new TypeError("'assignedElements' called on an object that is not a valid instance of HTMLSlotElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = AssignedNodesOptions.convert(curArg, {
+ context: "Failed to execute 'assignedElements' on 'HTMLSlotElement': parameter 1"
+ });
+ args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].assignedElements(...args));
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["content"]);
+ get name() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLSlotElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set name(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLSlotElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLSlotElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "name", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(HTMLTemplateElement.prototype, {
- content: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTemplateElement", configurable: true }
+ Object.defineProperties(HTMLSlotElement.prototype, {
+ assignedNodes: { enumerable: true },
+ assignedElements: { enumerable: true },
+ name: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLSlotElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTemplateElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLSlotElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTemplateElement
+ value: HTMLSlotElement
});
};
-const Impl = __nccwpck_require__(58610);
+const Impl = __nccwpck_require__(46269);
/***/ }),
-/***/ 84134:
+/***/ 16995:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -103413,16 +98412,16 @@ const Impl = __nccwpck_require__(58610);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const SelectionMode = __nccwpck_require__(12458);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseInteger_helpers_strings = __nccwpck_require__(4764).parseInteger;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTextAreaElement";
+const interfaceName = "HTMLSourceElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -103434,7 +98433,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTextAreaElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLSourceElement'.`);
};
function makeWrapper(globalObject) {
@@ -103442,9 +98441,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTextAreaElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLSourceElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTextAreaElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLSourceElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -103480,7 +98479,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -103504,1003 +98503,1359 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTextAreaElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLSourceElement before HTMLElement");
}
- class HTMLTextAreaElement extends globalObject.HTMLElement {
+ class HTMLSourceElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- checkValidity() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLSourceElement.");
}
- return esValue[implSymbol].checkValidity();
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- reportValidity() {
+ set src(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLSourceElement.");
}
- return esValue[implSymbol].reportValidity();
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLSourceElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "src", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- setCustomValidity(error) {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLSourceElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': parameter 1"
- });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].setCustomValidity(...args);
}
- select() {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'select' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLSourceElement.");
}
- return esValue[implSymbol].select();
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'type' property on 'HTMLSourceElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "type", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- setRangeText(replacement) {
+ get srcset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'setRangeText' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get srcset' called on an object that is not a valid instance of HTMLSourceElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "srcset");
+ return value === null ? "" : conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- const args = [];
- switch (arguments.length) {
- case 1:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1"
- });
- args.push(curArg);
- }
- break;
- case 2:
- throw new TypeError(
- "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': only " +
- arguments.length +
- " arguments present."
- );
- break;
- case 3:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3"
- });
- args.push(curArg);
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = SelectionMode.convert(curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 4"
- });
- } else {
- curArg = "preserve";
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].setRangeText(...args);
}
- setSelectionRange(start, end) {
+ set srcset(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError(
- "'setSelectionRange' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set srcset' called on an object that is not a valid instance of HTMLSourceElement.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 3"
- });
- }
- args.push(curArg);
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'srcset' property on 'HTMLSourceElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "srcset", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].setSelectionRange(...args);
}
- get autocomplete() {
+ get sizes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'get sizes' called on an object that is not a valid instance of HTMLSourceElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "autocomplete");
+ const value = esValue[implSymbol].getAttributeNS(null, "sizes");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set autocomplete(V) {
+ set sizes(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set sizes' called on an object that is not a valid instance of HTMLSourceElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'autocomplete' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'sizes' property on 'HTMLSourceElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "autocomplete", V);
+ esValue[implSymbol].setAttributeNS(null, "sizes", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get autofocus() {
+ get media() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get media' called on an object that is not a valid instance of HTMLSourceElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
+ const value = esValue[implSymbol].getAttributeNS(null, "media");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set autofocus(V) {
+ set media(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set media' called on an object that is not a valid instance of HTMLSourceElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'media' property on 'HTMLSourceElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
+ esValue[implSymbol].setAttributeNS(null, "media", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLSourceElement.prototype, {
+ src: { enumerable: true },
+ type: { enumerable: true },
+ srcset: { enumerable: true },
+ sizes: { enumerable: true },
+ media: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLSourceElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLSourceElement;
- get cols() {
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLSourceElement
+ });
+};
+
+const Impl = __nccwpck_require__(76604);
+
+
+/***/ }),
+
+/***/ 42549:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLSpanElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLSpanElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLSpanElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLSpanElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLSpanElement before HTMLElement");
+ }
+ class HTMLSpanElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+ }
+ Object.defineProperties(HTMLSpanElement.prototype, {
+ [Symbol.toStringTag]: { value: "HTMLSpanElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLSpanElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLSpanElement
+ });
+};
+
+const Impl = __nccwpck_require__(97825);
+
+
+/***/ }),
+
+/***/ 19570:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLStyleElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLStyleElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLStyleElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLStyleElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLStyleElement before HTMLElement");
+ }
+ class HTMLStyleElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+
+ get media() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get cols' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get media' called on an object that is not a valid instance of HTMLStyleElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["cols"];
+ const value = esValue[implSymbol].getAttributeNS(null, "media");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set cols(V) {
+ set media(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set cols' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set media' called on an object that is not a valid instance of HTMLStyleElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'cols' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'media' property on 'HTMLStyleElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["cols"] = V;
+ esValue[implSymbol].setAttributeNS(null, "media", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get dirName() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get dirName' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLStyleElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "dirname");
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set dirName(V) {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set dirName' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLStyleElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'dirName' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'type' property on 'HTMLStyleElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "dirname", V);
+ esValue[implSymbol].setAttributeNS(null, "type", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get disabled() {
+ get sheet() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get sheet' called on an object that is not a valid instance of HTMLStyleElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);
+ }
+ }
+ Object.defineProperties(HTMLStyleElement.prototype, {
+ media: { enumerable: true },
+ type: { enumerable: true },
+ sheet: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLStyleElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLStyleElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLStyleElement
+ });
+};
+
+const Impl = __nccwpck_require__(97572);
+
+
+/***/ }),
+
+/***/ 11672:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLTableCaptionElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLTableCaptionElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTableCaptionElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLTableCaptionElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTableCaptionElement before HTMLElement");
+ }
+ class HTMLTableCaptionElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+
+ get align() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableCaptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set disabled(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableCaptionElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLTableCaptionElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
+ }
+ Object.defineProperties(HTMLTableCaptionElement.prototype, {
+ align: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTableCaptionElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableCaptionElement;
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLTableCaptionElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get form' called on an object that is not a valid instance of HTMLTextAreaElement.");
- }
+const Impl = __nccwpck_require__(68219);
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+
+/***/ }),
+
+/***/ 48587:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
+
+const interfaceName = "HTMLTableCellElement";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLTableCellElement'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTableCellElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLTableCellElement is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTableCellElement before HTMLElement");
+ }
+ class HTMLTableCellElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get inputMode() {
+ get colSpan() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get inputMode' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get colSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "inputmode");
- return value === null ? "" : value;
+ return esValue[implSymbol]["colSpan"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set inputMode(V) {
+ set colSpan(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set inputMode' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set colSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'inputMode' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'colSpan' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "inputmode", V);
+ esValue[implSymbol]["colSpan"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get maxLength() {
+ get rowSpan() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get maxLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get rowSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "maxlength");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
+ return esValue[implSymbol]["rowSpan"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set maxLength(V) {
+ set rowSpan(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set maxLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set rowSpan' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'maxLength' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'rowSpan' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "maxlength", String(V));
+ esValue[implSymbol]["rowSpan"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get minLength() {
+ get headers() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get minLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get headers' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "minlength");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "headers");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set minLength(V) {
+ set headers(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set minLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set headers' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- V = conversions["long"](V, {
- context: "Failed to set the 'minLength' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'headers' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "minlength", String(V));
+ esValue[implSymbol].setAttributeNS(null, "headers", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get name() {
+ get cellIndex() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError(
+ "'get cellIndex' called on an object that is not a valid instance of HTMLTableCellElement."
+ );
+ }
+
+ return esValue[implSymbol]["cellIndex"];
+ }
+
+ get scope() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get scope' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
+ return esValue[implSymbol]["scope"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set name(V) {
+ set scope(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set name' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set scope' called on an object that is not a valid instance of HTMLTableCellElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'scope' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
+ esValue[implSymbol]["scope"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get placeholder() {
+ get abbr() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'get abbr' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "placeholder");
+ const value = esValue[implSymbol].getAttributeNS(null, "abbr");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set placeholder(V) {
+ set abbr(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set abbr' called on an object that is not a valid instance of HTMLTableCellElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'placeholder' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'abbr' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "placeholder", V);
+ esValue[implSymbol].setAttributeNS(null, "abbr", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get readOnly() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get readOnly' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "readonly");
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set readOnly(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set readOnly' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'readOnly' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "readonly", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "readonly");
- }
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get required() {
+ get axis() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get required' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get axis' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "required");
+ const value = esValue[implSymbol].getAttributeNS(null, "axis");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set required(V) {
+ set axis(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set required' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set axis' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'required' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'axis' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "required", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "required");
- }
+ esValue[implSymbol].setAttributeNS(null, "axis", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get rows() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["rows"];
+ const value = esValue[implSymbol].getAttributeNS(null, "height");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set rows(V) {
+ set height(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set rows' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'rows' property on 'HTMLTextAreaElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'height' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["rows"] = V;
+ esValue[implSymbol].setAttributeNS(null, "height", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get wrap() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get wrap' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "wrap");
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set wrap(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set wrap' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLTableCellElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'wrap' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'width' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "wrap", V);
+ esValue[implSymbol].setAttributeNS(null, "width", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLTextAreaElement.");
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get defaultValue() {
+ get ch() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["defaultValue"];
+ const value = esValue[implSymbol].getAttributeNS(null, "char");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set defaultValue(V) {
+ set ch(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableCellElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'defaultValue' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'ch' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["defaultValue"] = V;
+ esValue[implSymbol].setAttributeNS(null, "char", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get value() {
+ get chOff() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableCellElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["value"];
+ const value = esValue[implSymbol].getAttributeNS(null, "charoff");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set value(V) {
+ set chOff(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableCellElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLTextAreaElement': The provided value",
- treatNullAsEmptyString: true
+ context: "Failed to set the 'chOff' property on 'HTMLTableCellElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["value"] = V;
+ esValue[implSymbol].setAttributeNS(null, "charoff", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get textLength() {
+ get noWrap() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get textLength' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'get noWrap' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- return esValue[implSymbol]["textLength"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "nowrap");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get willValidate() {
+ set noWrap(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set noWrap' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- return esValue[implSymbol]["willValidate"];
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'noWrap' property on 'HTMLTableCellElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "nowrap", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "nowrap");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get validity() {
+ get vAlign() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get vAlign' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "valign");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get validationMessage() {
+ set vAlign(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set vAlign' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- return esValue[implSymbol]["validationMessage"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'vAlign' property on 'HTMLTableCellElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "valign", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get labels() {
+ get bgColor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLTableCellElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get selectionStart() {
+ set bgColor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["selectionStart"];
- }
-
- set selectionStart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionStart' property on 'HTMLTextAreaElement': The provided value"
- });
-
- esValue[implSymbol]["selectionStart"] = V;
- }
-
- get selectionEnd() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["selectionEnd"];
- }
-
- set selectionEnd(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionEnd' property on 'HTMLTextAreaElement': The provided value"
- });
-
- esValue[implSymbol]["selectionEnd"] = V;
- }
-
- get selectionDirection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["selectionDirection"];
- }
-
- set selectionDirection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
+ throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLTableCellElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'selectionDirection' property on 'HTMLTextAreaElement': The provided value"
+ context: "Failed to set the 'bgColor' property on 'HTMLTableCellElement': The provided value",
+ treatNullAsEmptyString: true
});
- esValue[implSymbol]["selectionDirection"] = V;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(HTMLTextAreaElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- select: { enumerable: true },
- setRangeText: { enumerable: true },
- setSelectionRange: { enumerable: true },
- autocomplete: { enumerable: true },
- autofocus: { enumerable: true },
- cols: { enumerable: true },
- dirName: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- inputMode: { enumerable: true },
- maxLength: { enumerable: true },
- minLength: { enumerable: true },
- name: { enumerable: true },
- placeholder: { enumerable: true },
- readOnly: { enumerable: true },
- required: { enumerable: true },
- rows: { enumerable: true },
- wrap: { enumerable: true },
- type: { enumerable: true },
- defaultValue: { enumerable: true },
- value: { enumerable: true },
- textLength: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- selectionStart: { enumerable: true },
- selectionEnd: { enumerable: true },
- selectionDirection: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTextAreaElement", configurable: true }
+ Object.defineProperties(HTMLTableCellElement.prototype, {
+ colSpan: { enumerable: true },
+ rowSpan: { enumerable: true },
+ headers: { enumerable: true },
+ cellIndex: { enumerable: true },
+ scope: { enumerable: true },
+ abbr: { enumerable: true },
+ align: { enumerable: true },
+ axis: { enumerable: true },
+ height: { enumerable: true },
+ width: { enumerable: true },
+ ch: { enumerable: true },
+ chOff: { enumerable: true },
+ noWrap: { enumerable: true },
+ vAlign: { enumerable: true },
+ bgColor: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTableCellElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTextAreaElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableCellElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTextAreaElement
+ value: HTMLTableCellElement
});
};
-const Impl = __nccwpck_require__(44239);
+const Impl = __nccwpck_require__(6604);
/***/ }),
-/***/ 55515:
+/***/ 30388:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -104509,14 +99864,15 @@ const Impl = __nccwpck_require__(44239);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTimeElement";
+const interfaceName = "HTMLTableColElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -104528,7 +99884,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTimeElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTableColElement'.`);
};
function makeWrapper(globalObject) {
@@ -104536,9 +99892,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTimeElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTableColElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTimeElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTableColElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -104574,7 +99930,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -104598,230 +99954,255 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTimeElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLTableColElement before HTMLElement");
}
- class HTMLTimeElement extends globalObject.HTMLElement {
+ class HTMLTableColElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get dateTime() {
+ get span() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get dateTime' called on an object that is not a valid instance of HTMLTimeElement.");
+ throw new TypeError("'get span' called on an object that is not a valid instance of HTMLTableColElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "datetime");
- return value === null ? "" : value;
+ let value = esValue[implSymbol].getAttributeNS(null, "span");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set dateTime(V) {
+ set span(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set dateTime' called on an object that is not a valid instance of HTMLTimeElement.");
+ throw new TypeError("'set span' called on an object that is not a valid instance of HTMLTableColElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dateTime' property on 'HTMLTimeElement': The provided value"
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'span' property on 'HTMLTableColElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "datetime", V);
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "span", String(n));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- }
- Object.defineProperties(HTMLTimeElement.prototype, {
- dateTime: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTimeElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTimeElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTimeElement
- });
-};
+ get align() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(82051);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ }),
+ set align(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 18864:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
-"use strict";
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLTableColElement': The provided value"
+ });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "align", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get ch() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
-const interfaceName = "HTMLTitleElement";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "char");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLTitleElement'.`);
-};
+ set ch(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTitleElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTitleElement is not installed on the passed global object");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'ch' property on 'HTMLTableColElement': The provided value"
+ });
- return Object.create(ctor.prototype);
-}
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "char", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ get chOff() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "charoff");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ set chOff(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'chOff' property on 'HTMLTableColElement': The provided value"
+ });
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "charoff", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ get vAlign() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get vAlign' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
-const exposed = new Set(["Window"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "valign");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ set vAlign(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTitleElement before HTMLElement");
- }
- class HTMLTitleElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set vAlign' called on an object that is not a valid instance of HTMLTableColElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'vAlign' property on 'HTMLTableColElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "valign", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get text() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get text' called on an object that is not a valid instance of HTMLTitleElement.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLTableColElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol]["text"];
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set text(V) {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set text' called on an object that is not a valid instance of HTMLTitleElement.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLTableColElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLTitleElement': The provided value"
+ context: "Failed to set the 'width' property on 'HTMLTableColElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol]["text"] = V;
+ esValue[implSymbol].setAttributeNS(null, "width", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLTitleElement.prototype, {
- text: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTitleElement", configurable: true }
+ Object.defineProperties(HTMLTableColElement.prototype, {
+ span: { enumerable: true },
+ align: { enumerable: true },
+ ch: { enumerable: true },
+ chOff: { enumerable: true },
+ vAlign: { enumerable: true },
+ width: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTableColElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTitleElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableColElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLTitleElement
+ value: HTMLTableColElement
});
};
-const Impl = __nccwpck_require__(73410);
+const Impl = __nccwpck_require__(66146);
/***/ }),
-/***/ 10978:
+/***/ 45197:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -104830,16 +100211,16 @@ const Impl = __nccwpck_require__(73410);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const HTMLTableCaptionElement = __nccwpck_require__(11672);
+const HTMLTableSectionElement = __nccwpck_require__(99167);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLTrackElement";
+const interfaceName = "HTMLTableElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -104851,7 +100232,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLTrackElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTableElement'.`);
};
function makeWrapper(globalObject) {
@@ -104859,9 +100240,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLTrackElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTableElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLTrackElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTableElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -104897,7 +100278,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -104921,448 +100302,640 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLTrackElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLTableElement before HTMLElement");
}
- class HTMLTrackElement extends globalObject.HTMLElement {
+ class HTMLTableElement extends globalObject.HTMLElement {
constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get kind() {
+ createCaption() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'createCaption' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].createCaption());
+ }
+
+ deleteCaption() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get kind' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'deleteCaption' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "kind");
- return value === null ? "" : value;
+ return esValue[implSymbol].deleteCaption();
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set kind(V) {
+ createTHead() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set kind' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'createTHead' called on an object that is not a valid instance of HTMLTableElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'kind' property on 'HTMLTrackElement': The provided value"
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol].createTHead());
+ }
+
+ deleteTHead() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'deleteTHead' called on an object that is not a valid instance of HTMLTableElement.");
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "kind", V);
+ return esValue[implSymbol].deleteTHead();
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get src() {
+ createTFoot() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'createTFoot' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].createTFoot());
+ }
+ deleteTFoot() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get src' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'deleteTFoot' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
+ return esValue[implSymbol].deleteTFoot();
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ createTBody() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'createTBody' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].createTBody());
+ }
+
+ insertRow() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'insertRow' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'insertRow' on 'HTMLTableElement': parameter 1"
+ });
+ } else {
+ curArg = -1;
}
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].insertRow(...args));
+ }
+
+ deleteRow(index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'deleteRow' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'deleteRow' on 'HTMLTableElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].deleteRow(...args);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set src(V) {
+ get caption() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set src' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'get caption' called on an object that is not a valid instance of HTMLTableElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLTrackElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["caption"]);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set caption(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set caption' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = HTMLTableCaptionElement.convert(V, {
+ context: "Failed to set the 'caption' property on 'HTMLTableElement': The provided value"
+ });
+ }
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
+ esValue[implSymbol]["caption"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get srclang() {
+ get tHead() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get srclang' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'get tHead' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "srclang");
+ return utils.tryWrapperForImpl(esValue[implSymbol]["tHead"]);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set tHead(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set tHead' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = HTMLTableSectionElement.convert(V, {
+ context: "Failed to set the 'tHead' property on 'HTMLTableElement': The provided value"
+ });
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["tHead"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get tFoot() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get tFoot' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["tFoot"]);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set tFoot(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set tFoot' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = HTMLTableSectionElement.convert(V, {
+ context: "Failed to set the 'tFoot' property on 'HTMLTableElement': The provided value"
+ });
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["tFoot"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get tBodies() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get tBodies' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ return utils.getSameObject(this, "tBodies", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["tBodies"]);
+ });
+ }
+
+ get rows() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ return utils.getSameObject(this, "rows", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["rows"]);
+ });
+ }
+
+ get align() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set srclang(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set srclang' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'srclang' property on 'HTMLTrackElement': The provided value"
+ context: "Failed to set the 'align' property on 'HTMLTableElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "srclang", V);
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get label() {
+ get border() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get label' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'get border' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "label");
+ const value = esValue[implSymbol].getAttributeNS(null, "border");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set label(V) {
+ set border(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set label' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'set border' called on an object that is not a valid instance of HTMLTableElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'label' property on 'HTMLTrackElement': The provided value"
+ context: "Failed to set the 'border' property on 'HTMLTableElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "label", V);
+ esValue[implSymbol].setAttributeNS(null, "border", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get default() {
+ get frame() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get default' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'get frame' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "default");
+ const value = esValue[implSymbol].getAttributeNS(null, "frame");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set default(V) {
+ set frame(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set default' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'set frame' called on an object that is not a valid instance of HTMLTableElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'default' property on 'HTMLTrackElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'frame' property on 'HTMLTableElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "default", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "default");
- }
+ esValue[implSymbol].setAttributeNS(null, "frame", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get readyState() {
+ get rules() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get readyState' called on an object that is not a valid instance of HTMLTrackElement.");
+ throw new TypeError("'get rules' called on an object that is not a valid instance of HTMLTableElement.");
}
- return esValue[implSymbol]["readyState"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "rules");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(HTMLTrackElement.prototype, {
- kind: { enumerable: true },
- src: { enumerable: true },
- srclang: { enumerable: true },
- label: { enumerable: true },
- default: { enumerable: true },
- readyState: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTrackElement", configurable: true },
- NONE: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- LOADED: { value: 2, enumerable: true },
- ERROR: { value: 3, enumerable: true }
- });
- Object.defineProperties(HTMLTrackElement, {
- NONE: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- LOADED: { value: 2, enumerable: true },
- ERROR: { value: 3, enumerable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLTrackElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTrackElement
- });
-};
-const Impl = __nccwpck_require__(35893);
+ set rules(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set rules' called on an object that is not a valid instance of HTMLTableElement.");
+ }
-/***/ }),
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'rules' property on 'HTMLTableElement': The provided value"
+ });
-/***/ 33030:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "rules", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-"use strict";
+ get summary() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get summary' called on an object that is not a valid instance of HTMLTableElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "summary");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
+ set summary(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "HTMLUListElement";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set summary' called on an object that is not a valid instance of HTMLTableElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLUListElement'.`);
-};
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'summary' property on 'HTMLTableElement': The provided value"
+ });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "summary", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- const ctor = globalObject[ctorRegistrySymbol]["HTMLUListElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLUListElement is not installed on the passed global object");
- }
+ get width() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLTableElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "width");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set width(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLTableElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'width' property on 'HTMLTableElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "width", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get bgColor() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLTableElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set bgColor(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLTableElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'bgColor' property on 'HTMLTableElement': The provided value",
+ treatNullAsEmptyString: true
+ });
- if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLUListElement before HTMLElement");
- }
- class HTMLUListElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get compact() {
+ get cellPadding() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLUListElement.");
+ throw new TypeError("'get cellPadding' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
+ const value = esValue[implSymbol].getAttributeNS(null, "cellpadding");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set compact(V) {
+ set cellPadding(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLUListElement.");
+ throw new TypeError("'set cellPadding' called on an object that is not a valid instance of HTMLTableElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLUListElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'cellPadding' property on 'HTMLTableElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
+ esValue[implSymbol].setAttributeNS(null, "cellpadding", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get type() {
+ get cellSpacing() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of HTMLUListElement.");
+ throw new TypeError("'get cellSpacing' called on an object that is not a valid instance of HTMLTableElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
+ const value = esValue[implSymbol].getAttributeNS(null, "cellspacing");
return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set type(V) {
+ set cellSpacing(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set type' called on an object that is not a valid instance of HTMLUListElement.");
+ throw new TypeError("'set cellSpacing' called on an object that is not a valid instance of HTMLTableElement.");
}
V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLUListElement': The provided value"
+ context: "Failed to set the 'cellSpacing' property on 'HTMLTableElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
+ esValue[implSymbol].setAttributeNS(null, "cellspacing", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLUListElement.prototype, {
- compact: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLUListElement", configurable: true }
+ Object.defineProperties(HTMLTableElement.prototype, {
+ createCaption: { enumerable: true },
+ deleteCaption: { enumerable: true },
+ createTHead: { enumerable: true },
+ deleteTHead: { enumerable: true },
+ createTFoot: { enumerable: true },
+ deleteTFoot: { enumerable: true },
+ createTBody: { enumerable: true },
+ insertRow: { enumerable: true },
+ deleteRow: { enumerable: true },
+ caption: { enumerable: true },
+ tHead: { enumerable: true },
+ tFoot: { enumerable: true },
+ tBodies: { enumerable: true },
+ rows: { enumerable: true },
+ align: { enumerable: true },
+ border: { enumerable: true },
+ frame: { enumerable: true },
+ rules: { enumerable: true },
+ summary: { enumerable: true },
+ width: { enumerable: true },
+ bgColor: { enumerable: true },
+ cellPadding: { enumerable: true },
+ cellSpacing: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTableElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLUListElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLUListElement
+ value: HTMLTableElement
});
};
-const Impl = __nccwpck_require__(64392);
+const Impl = __nccwpck_require__(36975);
/***/ }),
-/***/ 30065:
+/***/ 86057:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -105371,11 +100944,14 @@ const Impl = __nccwpck_require__(64392);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HTMLUnknownElement";
+const interfaceName = "HTMLTableRowElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -105387,7 +100963,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HTMLUnknownElement'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTableRowElement'.`);
};
function makeWrapper(globalObject) {
@@ -105395,9 +100971,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HTMLUnknownElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTableRowElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLUnknownElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTableRowElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -105433,7 +101009,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -105457,351 +101033,303 @@ exports.install = (globalObject, globalNames) => {
}
if (globalObject.HTMLElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLUnknownElement before HTMLElement");
+ throw new Error("Internal error: attempting to evaluate HTMLTableRowElement before HTMLElement");
}
- class HTMLUnknownElement extends globalObject.HTMLElement {
+ class HTMLTableRowElement extends globalObject.HTMLElement {
constructor() {
- throw new TypeError("Illegal constructor");
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- }
- Object.defineProperties(HTMLUnknownElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLUnknownElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLUnknownElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLUnknownElement
- });
-};
-
-const Impl = __nccwpck_require__(96001);
-
-
-/***/ }),
-
-/***/ 50494:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = __nccwpck_require__(33302).HTMLConstructor;
-const parseNonNegativeInteger_helpers_strings = __nccwpck_require__(4764).parseNonNegativeInteger;
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const parseURLToResultingURLRecord_helpers_document_base_url = __nccwpck_require__(20613).parseURLToResultingURLRecord;
-const serializeURLwhatwg_url = __nccwpck_require__(66365).serializeURL;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLMediaElement = __nccwpck_require__(61639);
-
-const interfaceName = "HTMLVideoElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'HTMLVideoElement'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["HTMLVideoElement"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor HTMLVideoElement is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ insertCell() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'insertCell' called on an object that is not a valid instance of HTMLTableRowElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'insertCell' on 'HTMLTableRowElement': parameter 1"
+ });
+ } else {
+ curArg = -1;
+ }
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].insertCell(...args));
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ deleteCell(index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'deleteCell' called on an object that is not a valid instance of HTMLTableRowElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLMediaElement._internalSetup(wrapper, globalObject);
-};
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'deleteCell' on 'HTMLTableRowElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].deleteCell(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ get rowIndex() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get rowIndex' called on an object that is not a valid instance of HTMLTableRowElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ return esValue[implSymbol]["rowIndex"];
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ get sectionRowIndex() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get sectionRowIndex' called on an object that is not a valid instance of HTMLTableRowElement."
+ );
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ return esValue[implSymbol]["sectionRowIndex"];
+ }
-const exposed = new Set(["Window"]);
+ get cells() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get cells' called on an object that is not a valid instance of HTMLTableRowElement.");
+ }
- if (globalObject.HTMLMediaElement === undefined) {
- throw new Error("Internal error: attempting to evaluate HTMLVideoElement before HTMLMediaElement");
- }
- class HTMLVideoElement extends globalObject.HTMLMediaElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ return utils.getSameObject(this, "cells", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["cells"]);
+ });
}
- get width() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableRowElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "width");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set width(V) {
+ set align(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set width' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableRowElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'width' property on 'HTMLVideoElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLTableRowElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "width", String(n));
+ esValue[implSymbol].setAttributeNS(null, "align", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get height() {
+ get ch() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableRowElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- let value = esValue[implSymbol].getAttributeNS(null, "height");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ const value = esValue[implSymbol].getAttributeNS(null, "char");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set height(V) {
+ set ch(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set height' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableRowElement.");
}
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'height' property on 'HTMLVideoElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'ch' property on 'HTMLTableRowElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "height", String(n));
+ esValue[implSymbol].setAttributeNS(null, "char", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get videoWidth() {
+ get chOff() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get videoWidth' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableRowElement.");
}
- return esValue[implSymbol]["videoWidth"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "charoff");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get videoHeight() {
+ set chOff(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get videoHeight' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableRowElement.");
}
- return esValue[implSymbol]["videoHeight"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'chOff' property on 'HTMLTableRowElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "charoff", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get poster() {
+ get vAlign() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get poster' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'get vAlign' called on an object that is not a valid instance of HTMLTableRowElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- const value = esValue[implSymbol].getAttributeNS(null, "poster");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
+ const value = esValue[implSymbol].getAttributeNS(null, "valign");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set poster(V) {
+ set vAlign(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set poster' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'set vAlign' called on an object that is not a valid instance of HTMLTableRowElement.");
}
- V = conversions["USVString"](V, {
- context: "Failed to set the 'poster' property on 'HTMLVideoElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'vAlign' property on 'HTMLTableRowElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- esValue[implSymbol].setAttributeNS(null, "poster", V);
+ esValue[implSymbol].setAttributeNS(null, "valign", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get playsInline() {
+ get bgColor() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get playsInline' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLTableRowElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].hasAttributeNS(null, "playsinline");
+ const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
+ return value === null ? "" : value;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- set playsInline(V) {
+ set bgColor(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set playsInline' called on an object that is not a valid instance of HTMLVideoElement.");
+ throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLTableRowElement.");
}
- V = conversions["boolean"](V, {
- context: "Failed to set the 'playsInline' property on 'HTMLVideoElement': The provided value"
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'bgColor' property on 'HTMLTableRowElement': The provided value",
+ treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "playsinline", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "playsinline");
- }
+ esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
}
- Object.defineProperties(HTMLVideoElement.prototype, {
- width: { enumerable: true },
- height: { enumerable: true },
- videoWidth: { enumerable: true },
- videoHeight: { enumerable: true },
- poster: { enumerable: true },
- playsInline: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLVideoElement", configurable: true }
+ Object.defineProperties(HTMLTableRowElement.prototype, {
+ insertCell: { enumerable: true },
+ deleteCell: { enumerable: true },
+ rowIndex: { enumerable: true },
+ sectionRowIndex: { enumerable: true },
+ cells: { enumerable: true },
+ align: { enumerable: true },
+ ch: { enumerable: true },
+ chOff: { enumerable: true },
+ vAlign: { enumerable: true },
+ bgColor: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTableRowElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = HTMLVideoElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableRowElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: HTMLVideoElement
+ value: HTMLTableRowElement
});
};
-const Impl = __nccwpck_require__(5714);
+const Impl = __nccwpck_require__(76062);
/***/ }),
-/***/ 65874:
+/***/ 99167:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -105810,12 +101338,14 @@ const Impl = __nccwpck_require__(5714);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const HashChangeEventInit = __nccwpck_require__(72491);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "HashChangeEvent";
+const interfaceName = "HTMLTableSectionElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -105827,7 +101357,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'HashChangeEvent'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTableSectionElement'.`);
};
function makeWrapper(globalObject) {
@@ -105835,9 +101365,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["HashChangeEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTableSectionElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor HashChangeEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTableSectionElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -105854,7 +101384,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
+ HTMLElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -105873,7 +101403,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -105896,125 +101426,247 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate HashChangeEvent before Event");
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTableSectionElement before HTMLElement");
}
- class HashChangeEvent extends globalObject.Event {
- constructor(type) {
+ class HTMLTableSectionElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+
+ insertRow() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'insertRow' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'insertRow' on 'HTMLTableSectionElement': parameter 1"
+ });
+ } else {
+ curArg = -1;
+ }
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].insertRow(...args));
+ }
+
+ deleteRow(index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'deleteRow' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
+
if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'HashChangeEvent': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'HashChangeEvent': parameter 1" });
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'deleteRow' on 'HTMLTableSectionElement': parameter 1"
+ });
args.push(curArg);
}
- {
- let curArg = arguments[1];
- curArg = HashChangeEventInit.convert(curArg, { context: "Failed to construct 'HashChangeEvent': parameter 2" });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].deleteRow(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get oldURL() {
+ get rows() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get oldURL' called on an object that is not a valid instance of HashChangeEvent.");
+ throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLTableSectionElement.");
}
- return esValue[implSymbol]["oldURL"];
+ return utils.getSameObject(this, "rows", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["rows"]);
+ });
}
- get newURL() {
+ get align() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get newURL' called on an object that is not a valid instance of HashChangeEvent.");
+ throw new TypeError("'get align' called on an object that is not a valid instance of HTMLTableSectionElement.");
}
- return esValue[implSymbol]["newURL"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "align");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(HashChangeEvent.prototype, {
- oldURL: { enumerable: true },
- newURL: { enumerable: true },
- [Symbol.toStringTag]: { value: "HashChangeEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = HashChangeEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HashChangeEvent
- });
-};
+ set align(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(93234);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set align' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'align' property on 'HTMLTableSectionElement': The provided value"
+ });
-/***/ }),
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "align", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ 72491:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ get ch() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ch' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "char");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ set ch(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const EventInit = __nccwpck_require__(4895);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ch' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'ch' property on 'HTMLTableSectionElement': The provided value"
+ });
- {
- const key = "newURL";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'newURL' that" });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "char", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- ret[key] = value;
- } else {
- ret[key] = "";
+ get chOff() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get chOff' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "charoff");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- {
- const key = "oldURL";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'oldURL' that" });
+ set chOff(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = "";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set chOff' called on an object that is not a valid instance of HTMLTableSectionElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'chOff' property on 'HTMLTableSectionElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "charoff", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ get vAlign() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get vAlign' called on an object that is not a valid instance of HTMLTableSectionElement."
+ );
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "valign");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set vAlign(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set vAlign' called on an object that is not a valid instance of HTMLTableSectionElement."
+ );
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'vAlign' property on 'HTMLTableSectionElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "valign", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ }
+ Object.defineProperties(HTMLTableSectionElement.prototype, {
+ insertRow: { enumerable: true },
+ deleteRow: { enumerable: true },
+ rows: { enumerable: true },
+ align: { enumerable: true },
+ ch: { enumerable: true },
+ chOff: { enumerable: true },
+ vAlign: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTableSectionElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTableSectionElement;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLTableSectionElement
+ });
};
+const Impl = __nccwpck_require__(3803);
+
/***/ }),
-/***/ 24704:
+/***/ 17164:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -106023,40 +101675,12 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Function = __nccwpck_require__(79936);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "Headers";
-
-const IteratorPrototype = Object.create(utils.IteratorPrototype, {
- next: {
- value: function next() {
- const internal = this && this[utils.iterInternalSymbol];
- if (!internal) {
- throw new TypeError("next() called on a value that is not an iterator prototype object");
- }
-
- const { target, kind, index } = internal;
- const values = Array.from(target[implSymbol]);
- const len = values.length;
- if (index >= len) {
- return { value: undefined, done: true };
- }
-
- const pair = values[index];
- internal.index = index + 1;
- return utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind);
- },
- writable: true,
- enumerable: true,
- configurable: true
- },
- [Symbol.toStringTag]: {
- value: "Headers Iterator",
- configurable: true
- }
-});
+const interfaceName = "HTMLTemplateElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -106068,16 +101692,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Headers'.`);
-};
-
-exports.createDefaultIterator = (target, kind) => {
- const iterator = Object.create(IteratorPrototype);
- Object.defineProperty(iterator, utils.iterInternalSymbol, {
- value: { target, kind, index: 0 },
- configurable: true
- });
- return iterator;
+ throw new TypeError(`${context} is not of type 'HTMLTemplateElement'.`);
};
function makeWrapper(globalObject) {
@@ -106085,9 +101700,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Headers"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTemplateElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Headers is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTemplateElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -106103,7 +101718,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -106121,7 +101738,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -106137,271 +101754,53 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class Headers {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- if (utils.isObject(curArg)) {
- if (curArg[Symbol.iterator] !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new TypeError(
- "Failed to construct 'Headers': parameter 1" + " sequence" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- if (!utils.isObject(nextItem)) {
- throw new TypeError(
- "Failed to construct 'Headers': parameter 1" +
- " sequence" +
- "'s element" +
- " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = nextItem;
- for (let nextItem of tmp) {
- nextItem = conversions["ByteString"](nextItem, {
- context:
- "Failed to construct 'Headers': parameter 1" + " sequence" + "'s element" + "'s element"
- });
-
- V.push(nextItem);
- }
- nextItem = V;
- }
-
- V.push(nextItem);
- }
- curArg = V;
- }
- } else {
- if (!utils.isObject(curArg)) {
- throw new TypeError("Failed to construct 'Headers': parameter 1" + " record" + " is not an object.");
- } else {
- const result = Object.create(null);
- for (const key of Reflect.ownKeys(curArg)) {
- const desc = Object.getOwnPropertyDescriptor(curArg, key);
- if (desc && desc.enumerable) {
- let typedKey = key;
-
- typedKey = conversions["ByteString"](typedKey, {
- context: "Failed to construct 'Headers': parameter 1" + " record" + "'s key"
- });
-
- let typedValue = curArg[key];
-
- typedValue = conversions["ByteString"](typedValue, {
- context: "Failed to construct 'Headers': parameter 1" + " record" + "'s value"
- });
-
- result[typedKey] = typedValue;
- }
- }
- curArg = result;
- }
- }
- } else {
- throw new TypeError("Failed to construct 'Headers': parameter 1" + " is not of any supported type.");
- }
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- append(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'append' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'append' on 'Headers': 2 arguments required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'append' on 'Headers': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'append' on 'Headers': parameter 2" });
- args.push(curArg);
- }
- return esValue[implSymbol].append(...args);
- }
-
- delete(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'delete' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'delete' on 'Headers': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'delete' on 'Headers': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].delete(...args);
- }
-
- get(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get' called on an object that is not a valid instance of Headers.");
- }
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'get' on 'Headers': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'get' on 'Headers': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].get(...args);
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTemplateElement before HTMLElement");
+ }
+ class HTMLTemplateElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- has(name) {
+ get content() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'has' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'has' on 'Headers': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'has' on 'Headers': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].has(...args);
- }
- set(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'set' on 'Headers': 2 arguments required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'set' on 'Headers': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'set' on 'Headers': parameter 2" });
- args.push(curArg);
- }
- return esValue[implSymbol].set(...args);
- }
-
- keys() {
- if (!exports.is(this)) {
- throw new TypeError("'keys' called on an object that is not a valid instance of Headers.");
- }
- return exports.createDefaultIterator(this, "key");
- }
-
- values() {
- if (!exports.is(this)) {
- throw new TypeError("'values' called on an object that is not a valid instance of Headers.");
- }
- return exports.createDefaultIterator(this, "value");
- }
-
- entries() {
- if (!exports.is(this)) {
- throw new TypeError("'entries' called on an object that is not a valid instance of Headers.");
+ throw new TypeError("'get content' called on an object that is not a valid instance of HTMLTemplateElement.");
}
- return exports.createDefaultIterator(this, "key+value");
- }
- forEach(callback) {
- if (!exports.is(this)) {
- throw new TypeError("'forEach' called on an object that is not a valid instance of Headers.");
- }
- if (arguments.length < 1) {
- throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
- }
- callback = Function.convert(callback, {
- context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
- });
- const thisArg = arguments[1];
- let pairs = Array.from(this[implSymbol]);
- let i = 0;
- while (i < pairs.length) {
- const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
- callback.call(thisArg, value, key, this);
- pairs = Array.from(this[implSymbol]);
- i++;
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["content"]);
}
}
- Object.defineProperties(Headers.prototype, {
- append: { enumerable: true },
- delete: { enumerable: true },
- get: { enumerable: true },
- has: { enumerable: true },
- set: { enumerable: true },
- keys: { enumerable: true },
- values: { enumerable: true },
- entries: { enumerable: true },
- forEach: { enumerable: true },
- [Symbol.toStringTag]: { value: "Headers", configurable: true },
- [Symbol.iterator]: { value: Headers.prototype.entries, configurable: true, writable: true }
+ Object.defineProperties(HTMLTemplateElement.prototype, {
+ content: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTemplateElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Headers;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTemplateElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Headers
+ value: HTMLTemplateElement
});
};
-const Impl = __nccwpck_require__(15643);
+const Impl = __nccwpck_require__(58610);
/***/ }),
-/***/ 49928:
+/***/ 84134:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -106410,10 +101809,16 @@ const Impl = __nccwpck_require__(15643);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const SelectionMode = __nccwpck_require__(12458);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseInteger_helpers_strings = (__nccwpck_require__(4764).parseInteger);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "History";
+const interfaceName = "HTMLTextAreaElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -106425,7 +101830,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'History'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTextAreaElement'.`);
};
function makeWrapper(globalObject) {
@@ -106433,9 +101838,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["History"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTextAreaElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor History is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTextAreaElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -106451,7 +101856,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -106469,7 +101876,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -106491,953 +101898,1005 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class History {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
- go() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'go' called on an object that is not a valid instance of History.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, { context: "Failed to execute 'go' on 'History': parameter 1" });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].go(...args);
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTextAreaElement before HTMLElement");
+ }
+ class HTMLTextAreaElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- back() {
+ checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'back' called on an object that is not a valid instance of History.");
+ throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol].back();
+ return esValue[implSymbol].checkValidity();
}
- forward() {
+ reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'forward' called on an object that is not a valid instance of History.");
+ throw new TypeError(
+ "'reportValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol].forward();
+ return esValue[implSymbol].reportValidity();
}
- pushState(data, title) {
+ setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'pushState' called on an object that is not a valid instance of History.");
+ throw new TypeError(
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'pushState' on 'History': 2 arguments required, but only " + arguments.length + " present."
+ "Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["any"](curArg, { context: "Failed to execute 'pushState' on 'History': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'pushState' on 'History': parameter 2"
+ context: "Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': parameter 1"
});
args.push(curArg);
}
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'pushState' on 'History': parameter 3"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
+ return esValue[implSymbol].setCustomValidity(...args);
+ }
+
+ select() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'select' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol].pushState(...args);
+
+ return esValue[implSymbol].select();
}
- replaceState(data, title) {
+ setRangeText(replacement) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'replaceState' called on an object that is not a valid instance of History.");
+ throw new TypeError("'setRangeText' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'replaceState' on 'History': 2 arguments required, but only " +
+ "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': 1 argument required, but only " +
arguments.length +
" present."
);
}
const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["any"](curArg, { context: "Failed to execute 'replaceState' on 'History': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceState' on 'History': parameter 2"
+ switch (arguments.length) {
+ case 1:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ break;
+ case 2:
+ throw new TypeError(
+ "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': only " +
+ arguments.length +
+ " arguments present."
+ );
+ break;
+ case 3:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3"
+ });
+ args.push(curArg);
+ }
+ break;
+ default:
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ curArg = SelectionMode.convert(curArg, {
+ context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 4"
+ });
+ } else {
+ curArg = "preserve";
+ }
+ args.push(curArg);
+ }
+ }
+ return esValue[implSymbol].setRangeText(...args);
+ }
+
+ setSelectionRange(start, end) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'setSelectionRange' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
+
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 2"
});
args.push(curArg);
}
{
let curArg = arguments[2];
if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'replaceState' on 'History': parameter 3"
- });
- }
- } else {
- curArg = null;
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 3"
+ });
}
args.push(curArg);
}
- return esValue[implSymbol].replaceState(...args);
+ return esValue[implSymbol].setSelectionRange(...args);
}
- get length() {
+ get autocomplete() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of History.");
+ throw new TypeError(
+ "'get autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol]["length"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "autocomplete");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get state() {
+ set autocomplete(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get state' called on an object that is not a valid instance of History.");
+ throw new TypeError(
+ "'set autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol]["state"];
- }
- }
- Object.defineProperties(History.prototype, {
- go: { enumerable: true },
- back: { enumerable: true },
- forward: { enumerable: true },
- pushState: { enumerable: true },
- replaceState: { enumerable: true },
- length: { enumerable: true },
- state: { enumerable: true },
- [Symbol.toStringTag]: { value: "History", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = History;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: History
- });
-};
-
-const Impl = __nccwpck_require__(99101);
-
-
-/***/ }),
-
-/***/ 74569:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const InputEventInit = __nccwpck_require__(75799);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "InputEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'InputEvent'.`);
-};
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'autocomplete' property on 'HTMLTextAreaElement': The provided value"
+ });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "autocomplete", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- const ctor = globalObject[ctorRegistrySymbol]["InputEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor InputEvent is not installed on the passed global object");
- }
+ get autofocus() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "autofocus");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set autofocus(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'autofocus' property on 'HTMLTextAreaElement': The provided value"
+ });
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "autofocus", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "autofocus");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get cols() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get cols' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["cols"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set cols(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set cols' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'cols' property on 'HTMLTextAreaElement': The provided value"
+ });
- if (globalObject.UIEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate InputEvent before UIEvent");
- }
- class InputEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'InputEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'InputEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = InputEventInit.convert(curArg, { context: "Failed to construct 'InputEvent': parameter 2" });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["cols"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get data() {
+ get dirName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get data' called on an object that is not a valid instance of InputEvent.");
+ throw new TypeError("'get dirName' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["data"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "dirname");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get isComposing() {
+ set dirName(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get isComposing' called on an object that is not a valid instance of InputEvent.");
+ throw new TypeError("'set dirName' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["isComposing"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'dirName' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "dirname", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get inputType() {
+ get disabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get inputType' called on an object that is not a valid instance of InputEvent.");
+ throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["inputType"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "disabled");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(InputEvent.prototype, {
- data: { enumerable: true },
- isComposing: { enumerable: true },
- inputType: { enumerable: true },
- [Symbol.toStringTag]: { value: "InputEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = InputEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: InputEvent
- });
-};
-
-const Impl = __nccwpck_require__(58056);
+ set disabled(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-/***/ }),
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'disabled' property on 'HTMLTextAreaElement': The provided value"
+ });
-/***/ 75799:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "disabled", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "disabled");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-"use strict";
+ get form() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get form' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
+ }
-const UIEventInit = __nccwpck_require__(82015);
+ get inputMode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(obj, ret, { context });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get inputMode' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
- {
- const key = "data";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = conversions["DOMString"](value, { context: context + " has member 'data' that" });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "inputmode");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- ret[key] = value;
- } else {
- ret[key] = null;
}
- }
- {
- const key = "inputType";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'inputType' that" });
+ set inputMode(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set inputMode' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
- {
- const key = "isComposing";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'isComposing' that" });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'inputMode' property on 'HTMLTextAreaElement': The provided value"
+ });
- ret[key] = value;
- } else {
- ret[key] = false;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "inputmode", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ get maxLength() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
-
-/***/ 10929:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get maxLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-"use strict";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "maxlength");
+ if (value === null) {
+ return 0;
+ }
+ value = parseInteger_helpers_strings(value);
+ return value !== null && conversions.long(value) === value ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ set maxLength(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set maxLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-const KeyboardEventInit = __nccwpck_require__(72711);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
+ V = conversions["long"](V, {
+ context: "Failed to set the 'maxLength' property on 'HTMLTextAreaElement': The provided value"
+ });
-const interfaceName = "KeyboardEvent";
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "maxlength", String(V));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'KeyboardEvent'.`);
-};
+ get minLength() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get minLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["KeyboardEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor KeyboardEvent is not installed on the passed global object");
- }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "minlength");
+ if (value === null) {
+ return 0;
+ }
+ value = parseInteger_helpers_strings(value);
+ return value !== null && conversions.long(value) === value ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
- return Object.create(ctor.prototype);
-}
+ set minLength(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set minLength' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ V = conversions["long"](V, {
+ context: "Failed to set the 'minLength' property on 'HTMLTextAreaElement': The provided value"
+ });
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "minlength", String(V));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ get name() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get name' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "name");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ set name(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set name' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'name' property on 'HTMLTextAreaElement': The provided value"
+ });
-const exposed = new Set(["Window"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "name", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ get placeholder() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (globalObject.UIEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate KeyboardEvent before UIEvent");
- }
- class KeyboardEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
+ if (!exports.is(esValue)) {
throw new TypeError(
- "Failed to construct 'KeyboardEvent': 1 argument required, but only " + arguments.length + " present."
+ "'get placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
);
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'KeyboardEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = KeyboardEventInit.convert(curArg, { context: "Failed to construct 'KeyboardEvent': parameter 2" });
- args.push(curArg);
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "placeholder");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- getModifierState(keyArg) {
+ set placeholder(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getModifierState' called on an object that is not a valid instance of KeyboardEvent.");
- }
- if (arguments.length < 1) {
+ if (!exports.is(esValue)) {
throw new TypeError(
- "Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only " +
- arguments.length +
- " present."
+ "'set placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
);
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getModifierState' on 'KeyboardEvent': parameter 1"
- });
- args.push(curArg);
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'placeholder' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "placeholder", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].getModifierState(...args);
}
- initKeyboardEvent(typeArg) {
+ get readOnly() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'initKeyboardEvent' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'get readOnly' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "readonly");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
+ }
+
+ set readOnly(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set readOnly' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'readOnly' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "readonly", "");
} else {
- curArg = null;
+ esValue[implSymbol].removeAttributeNS(null, "readonly");
}
- args.push(curArg);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 5"
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
+ }
+
+ get required() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get required' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 6"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "required");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 7"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
+ }
+
+ set required(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set required' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 8"
- });
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'required' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "required", "");
} else {
- curArg = false;
+ esValue[implSymbol].removeAttributeNS(null, "required");
}
- args.push(curArg);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- {
- let curArg = arguments[8];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 9"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
+ }
+
+ get rows() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- {
- let curArg = arguments[9];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 10"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["rows"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].initKeyboardEvent(...args);
}
- get key() {
+ set rows(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get key' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'set rows' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["key"];
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'rows' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["rows"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get code() {
+ get wrap() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get code' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'get wrap' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["code"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "wrap");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get location() {
+ set wrap(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get location' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'set wrap' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["location"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'wrap' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "wrap", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get ctrlKey() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ctrlKey' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["ctrlKey"];
+ return esValue[implSymbol]["type"];
}
- get shiftKey() {
+ get defaultValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get shiftKey' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError(
+ "'get defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol]["shiftKey"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["defaultValue"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get altKey() {
+ set defaultValue(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get altKey' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError(
+ "'set defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol]["altKey"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'defaultValue' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["defaultValue"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get metaKey() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get metaKey' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["metaKey"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["value"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get repeat() {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get repeat' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["repeat"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'value' property on 'HTMLTextAreaElement': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["value"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get isComposing() {
+ get textLength() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get isComposing' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError(
+ "'get textLength' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol]["isComposing"];
+ return esValue[implSymbol]["textLength"];
}
- get charCode() {
+ get willValidate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get charCode' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError(
+ "'get willValidate' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
}
- return esValue[implSymbol]["charCode"];
+ return esValue[implSymbol]["willValidate"];
}
- get keyCode() {
+ get validity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get keyCode' called on an object that is not a valid instance of KeyboardEvent.");
+ throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLTextAreaElement.");
}
- return esValue[implSymbol]["keyCode"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
}
- }
- Object.defineProperties(KeyboardEvent.prototype, {
- getModifierState: { enumerable: true },
- initKeyboardEvent: { enumerable: true },
- key: { enumerable: true },
- code: { enumerable: true },
- location: { enumerable: true },
- ctrlKey: { enumerable: true },
- shiftKey: { enumerable: true },
- altKey: { enumerable: true },
- metaKey: { enumerable: true },
- repeat: { enumerable: true },
- isComposing: { enumerable: true },
- charCode: { enumerable: true },
- keyCode: { enumerable: true },
- [Symbol.toStringTag]: { value: "KeyboardEvent", configurable: true },
- DOM_KEY_LOCATION_STANDARD: { value: 0x00, enumerable: true },
- DOM_KEY_LOCATION_LEFT: { value: 0x01, enumerable: true },
- DOM_KEY_LOCATION_RIGHT: { value: 0x02, enumerable: true },
- DOM_KEY_LOCATION_NUMPAD: { value: 0x03, enumerable: true }
- });
- Object.defineProperties(KeyboardEvent, {
- DOM_KEY_LOCATION_STANDARD: { value: 0x00, enumerable: true },
- DOM_KEY_LOCATION_LEFT: { value: 0x01, enumerable: true },
- DOM_KEY_LOCATION_RIGHT: { value: 0x02, enumerable: true },
- DOM_KEY_LOCATION_NUMPAD: { value: 0x03, enumerable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = KeyboardEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: KeyboardEvent
- });
-};
+ get validationMessage() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(44410);
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get validationMessage' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
+ return esValue[implSymbol]["validationMessage"];
+ }
-/***/ }),
+ get labels() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 72711:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLTextAreaElement.");
+ }
-"use strict";
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
+ }
+ get selectionStart() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
-const EventModifierInit = __nccwpck_require__(22409);
+ return esValue[implSymbol]["selectionStart"];
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventModifierInit._convertInherit(obj, ret, { context });
+ set selectionStart(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "charCode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'charCode' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
- ret[key] = value;
- } else {
- ret[key] = 0;
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'selectionStart' property on 'HTMLTextAreaElement': The provided value"
+ });
+
+ esValue[implSymbol]["selectionStart"] = V;
}
- }
- {
- const key = "code";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'code' that" });
+ get selectionEnd() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = "";
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
+
+ return esValue[implSymbol]["selectionEnd"];
}
- }
- {
- const key = "isComposing";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'isComposing' that" });
+ set selectionEnd(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
- {
- const key = "key";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'key' that" });
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'selectionEnd' property on 'HTMLTextAreaElement': The provided value"
+ });
- ret[key] = value;
- } else {
- ret[key] = "";
+ esValue[implSymbol]["selectionEnd"] = V;
}
- }
- {
- const key = "keyCode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'keyCode' that" });
+ get selectionDirection() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = 0;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
+
+ return esValue[implSymbol]["selectionDirection"];
}
- }
- {
- const key = "location";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'location' that" });
+ set selectionDirection(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
+ );
+ }
- {
- const key = "repeat";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'repeat' that" });
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'selectionDirection' property on 'HTMLTextAreaElement': The provided value"
+ });
- ret[key] = value;
- } else {
- ret[key] = false;
+ esValue[implSymbol]["selectionDirection"] = V;
}
}
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ Object.defineProperties(HTMLTextAreaElement.prototype, {
+ checkValidity: { enumerable: true },
+ reportValidity: { enumerable: true },
+ setCustomValidity: { enumerable: true },
+ select: { enumerable: true },
+ setRangeText: { enumerable: true },
+ setSelectionRange: { enumerable: true },
+ autocomplete: { enumerable: true },
+ autofocus: { enumerable: true },
+ cols: { enumerable: true },
+ dirName: { enumerable: true },
+ disabled: { enumerable: true },
+ form: { enumerable: true },
+ inputMode: { enumerable: true },
+ maxLength: { enumerable: true },
+ minLength: { enumerable: true },
+ name: { enumerable: true },
+ placeholder: { enumerable: true },
+ readOnly: { enumerable: true },
+ required: { enumerable: true },
+ rows: { enumerable: true },
+ wrap: { enumerable: true },
+ type: { enumerable: true },
+ defaultValue: { enumerable: true },
+ value: { enumerable: true },
+ textLength: { enumerable: true },
+ willValidate: { enumerable: true },
+ validity: { enumerable: true },
+ validationMessage: { enumerable: true },
+ labels: { enumerable: true },
+ selectionStart: { enumerable: true },
+ selectionEnd: { enumerable: true },
+ selectionDirection: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTextAreaElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTextAreaElement;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLTextAreaElement
+ });
};
+const Impl = __nccwpck_require__(44239);
+
/***/ }),
-/***/ 98744:
+/***/ 55515:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -107446,10 +102905,14 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "Location";
+const interfaceName = "HTMLTimeElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -107461,7 +102924,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Location'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTimeElement'.`);
};
function makeWrapper(globalObject) {
@@ -107469,9 +102932,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Location"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTimeElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Location is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTimeElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -107488,270 +102951,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- Object.defineProperties(
- wrapper,
- Object.getOwnPropertyDescriptors({
- assign(url) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'assign' called on an object that is not a valid instance of Location.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'assign' on 'Location': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'assign' on 'Location': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].assign(...args);
- },
- replace(url) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'replace' called on an object that is not a valid instance of Location.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'replace' on 'Location': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'replace' on 'Location': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].replace(...args);
- },
- reload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'reload' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol].reload();
- },
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get href' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["href"];
- },
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set href' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["href"] = V;
- },
- toString() {
- const esValue = this;
- if (!exports.is(esValue)) {
- throw new TypeError("'toString' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["href"];
- },
- get origin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get origin' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["origin"];
- },
- get protocol() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get protocol' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["protocol"];
- },
- set protocol(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set protocol' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'protocol' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["protocol"] = V;
- },
- get host() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get host' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["host"];
- },
- set host(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set host' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'host' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["host"] = V;
- },
- get hostname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get hostname' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["hostname"];
- },
- set hostname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set hostname' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hostname' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["hostname"] = V;
- },
- get port() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get port' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["port"];
- },
- set port(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set port' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'port' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["port"] = V;
- },
- get pathname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get pathname' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["pathname"];
- },
- set pathname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set pathname' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'pathname' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["pathname"] = V;
- },
- get search() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get search' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["search"];
- },
- set search(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set search' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'search' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["search"] = V;
- },
- get hash() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get hash' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["hash"];
- },
- set hash(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set hash' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hash' property on 'Location': The provided value"
- });
-
- esValue[implSymbol]["hash"] = V;
- }
- })
- );
-
- Object.defineProperties(wrapper, {
- assign: { configurable: false, writable: false },
- replace: { configurable: false, writable: false },
- reload: { configurable: false, writable: false },
- href: { configurable: false },
- toString: { configurable: false, writable: false },
- origin: { configurable: false },
- protocol: { configurable: false },
- host: { configurable: false },
- hostname: { configurable: false },
- port: { configurable: false },
- pathname: { configurable: false },
- search: { configurable: false },
- hash: { configurable: false }
- });
+ HTMLElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -107770,7 +102970,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -107792,30 +102992,72 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class Location {
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTimeElement before HTMLElement");
+ }
+ class HTMLTimeElement extends globalObject.HTMLElement {
constructor() {
- throw new TypeError("Illegal constructor");
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
+ }
+
+ get dateTime() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get dateTime' called on an object that is not a valid instance of HTMLTimeElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "datetime");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set dateTime(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set dateTime' called on an object that is not a valid instance of HTMLTimeElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'dateTime' property on 'HTMLTimeElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "datetime", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(Location.prototype, { [Symbol.toStringTag]: { value: "Location", configurable: true } });
+ Object.defineProperties(HTMLTimeElement.prototype, {
+ dateTime: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTimeElement", configurable: true }
+ });
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Location;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTimeElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Location
+ value: HTMLTimeElement
});
};
-const Impl = __nccwpck_require__(45513);
+const Impl = __nccwpck_require__(82051);
/***/ }),
-/***/ 31371:
+/***/ 18864:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -107824,12 +103066,14 @@ const Impl = __nccwpck_require__(45513);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const MessageEventInit = __nccwpck_require__(75669);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "MessageEvent";
+const interfaceName = "HTMLTitleElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -107841,7 +103085,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'MessageEvent'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTitleElement'.`);
};
function makeWrapper(globalObject) {
@@ -107849,9 +103093,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["MessageEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTitleElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor MessageEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTitleElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -107868,7 +103112,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
+ HTMLElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -107887,7 +103131,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -107903,330 +103147,77 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate MessageEvent before Event");
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTitleElement before HTMLElement");
}
- class MessageEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'MessageEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'MessageEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = MessageEventInit.convert(curArg, { context: "Failed to construct 'MessageEvent': parameter 2" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- initMessageEvent(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'initMessageEvent' called on an object that is not a valid instance of MessageEvent.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initMessageEvent' on 'MessageEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 4"
- });
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 5"
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 6"
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new TypeError(
- "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 8" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- curArg = V;
- }
- } else {
- curArg = [];
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initMessageEvent(...args);
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get data' called on an object that is not a valid instance of MessageEvent.");
- }
-
- return esValue[implSymbol]["data"];
+ class HTMLTitleElement extends globalObject.HTMLElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get origin() {
+ get text() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get origin' called on an object that is not a valid instance of MessageEvent.");
+ throw new TypeError("'get text' called on an object that is not a valid instance of HTMLTitleElement.");
}
- return esValue[implSymbol]["origin"];
- }
-
- get lastEventId() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get lastEventId' called on an object that is not a valid instance of MessageEvent.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["text"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return esValue[implSymbol]["lastEventId"];
}
- get source() {
+ set text(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get source' called on an object that is not a valid instance of MessageEvent.");
+ throw new TypeError("'set text' called on an object that is not a valid instance of HTMLTitleElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["source"]);
- }
-
- get ports() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'text' property on 'HTMLTitleElement': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get ports' called on an object that is not a valid instance of MessageEvent.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["text"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ports"]);
}
}
- Object.defineProperties(MessageEvent.prototype, {
- initMessageEvent: { enumerable: true },
- data: { enumerable: true },
- origin: { enumerable: true },
- lastEventId: { enumerable: true },
- source: { enumerable: true },
- ports: { enumerable: true },
- [Symbol.toStringTag]: { value: "MessageEvent", configurable: true }
+ Object.defineProperties(HTMLTitleElement.prototype, {
+ text: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTitleElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = MessageEvent;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTitleElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: MessageEvent
+ value: HTMLTitleElement
});
};
-const Impl = __nccwpck_require__(62673);
-
-
-/***/ }),
-
-/***/ 75669:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
-
- {
- const key = "data";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'data' that" });
-
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "lastEventId";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'lastEventId' that" });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "origin";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'origin' that" });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "ports";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new TypeError(context + " has member 'ports' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- value = V;
- }
-
- ret[key] = value;
- } else {
- ret[key] = [];
- }
- }
-
- {
- const key = "source";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = utils.tryImplForWrapper(value);
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+const Impl = __nccwpck_require__(73410);
/***/ }),
-/***/ 83612:
+/***/ 10978:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -108235,10 +103226,16 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "MimeType";
+const interfaceName = "HTMLTrackElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -108250,7 +103247,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'MimeType'.`);
+ throw new TypeError(`${context} is not of type 'HTMLTrackElement'.`);
};
function makeWrapper(globalObject) {
@@ -108258,9 +103255,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["MimeType"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLTrackElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor MimeType is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLTrackElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -108276,7 +103273,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -108294,7 +103293,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -108316,77 +103315,251 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class MimeType {
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLTrackElement before HTMLElement");
+ }
+ class HTMLTrackElement extends globalObject.HTMLElement {
constructor() {
- throw new TypeError("Illegal constructor");
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- get type() {
+ get kind() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of MimeType.");
+ throw new TypeError("'get kind' called on an object that is not a valid instance of HTMLTrackElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["type"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "kind");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get description() {
+ set kind(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get description' called on an object that is not a valid instance of MimeType.");
+ throw new TypeError("'set kind' called on an object that is not a valid instance of HTMLTrackElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["description"]);
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'kind' property on 'HTMLTrackElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "kind", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get suffixes() {
+ get src() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get suffixes' called on an object that is not a valid instance of MimeType.");
+ throw new TypeError("'get src' called on an object that is not a valid instance of HTMLTrackElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["suffixes"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "src");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get enabledPlugin() {
+ set src(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get enabledPlugin' called on an object that is not a valid instance of MimeType.");
+ throw new TypeError("'set src' called on an object that is not a valid instance of HTMLTrackElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["enabledPlugin"]);
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'src' property on 'HTMLTrackElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "src", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- }
- Object.defineProperties(MimeType.prototype, {
- type: { enumerable: true },
- description: { enumerable: true },
- suffixes: { enumerable: true },
- enabledPlugin: { enumerable: true },
- [Symbol.toStringTag]: { value: "MimeType", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = MimeType;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MimeType
- });
-};
+ get srclang() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(76572);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get srclang' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "srclang");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
-/***/ }),
+ set srclang(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 15023:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set srclang' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'srclang' property on 'HTMLTrackElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "srclang", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get label() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get label' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "label");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set label(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set label' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'label' property on 'HTMLTrackElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "label", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get default() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get default' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "default");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set default(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set default' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'default' property on 'HTMLTrackElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "default", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "default");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ get readyState() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get readyState' called on an object that is not a valid instance of HTMLTrackElement.");
+ }
+
+ return esValue[implSymbol]["readyState"];
+ }
+ }
+ Object.defineProperties(HTMLTrackElement.prototype, {
+ kind: { enumerable: true },
+ src: { enumerable: true },
+ srclang: { enumerable: true },
+ label: { enumerable: true },
+ default: { enumerable: true },
+ readyState: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLTrackElement", configurable: true },
+ NONE: { value: 0, enumerable: true },
+ LOADING: { value: 1, enumerable: true },
+ LOADED: { value: 2, enumerable: true },
+ ERROR: { value: 3, enumerable: true }
+ });
+ Object.defineProperties(HTMLTrackElement, {
+ NONE: { value: 0, enumerable: true },
+ LOADING: { value: 1, enumerable: true },
+ LOADED: { value: 2, enumerable: true },
+ ERROR: { value: 3, enumerable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLTrackElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLTrackElement
+ });
+};
+
+const Impl = __nccwpck_require__(35893);
+
+
+/***/ }),
+
+/***/ 33030:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -108394,10 +103567,14 @@ const Impl = __nccwpck_require__(76572);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
-const interfaceName = "MimeTypeArray";
+const interfaceName = "HTMLUListElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -108409,7 +103586,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'MimeTypeArray'.`);
+ throw new TypeError(`${context} is not of type 'HTMLUListElement'.`);
};
function makeWrapper(globalObject) {
@@ -108417,9 +103594,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["MimeTypeArray"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLUListElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor MimeTypeArray is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLUListElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -108435,7 +103612,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -108446,8 +103625,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -108455,8 +103632,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -108464,8 +103641,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -108479,251 +103654,233 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class MimeTypeArray {
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLUListElement before HTMLElement");
+ }
+ class HTMLUListElement extends globalObject.HTMLElement {
constructor() {
- throw new TypeError("Illegal constructor");
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- item(index) {
+ get compact() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of MimeTypeArray.");
+ throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLUListElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'item' on 'MimeTypeArray': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'MimeTypeArray': parameter 1"
- });
- args.push(curArg);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "compact");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].item(...args);
}
- namedItem(name) {
+ set compact(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'namedItem' called on an object that is not a valid instance of MimeTypeArray.");
+ throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLUListElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'namedItem' on 'MimeTypeArray': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'compact' property on 'HTMLUListElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "compact", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "compact");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'MimeTypeArray': parameter 1"
- });
- args.push(curArg);
+ }
+
+ get type() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get type' called on an object that is not a valid instance of HTMLUListElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "type");
+ return value === null ? "" : value;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].namedItem(...args);
}
- get length() {
+ set type(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of MimeTypeArray.");
+ throw new TypeError("'set type' called on an object that is not a valid instance of HTMLUListElement.");
}
- return esValue[implSymbol]["length"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'type' property on 'HTMLUListElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "type", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(MimeTypeArray.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "MimeTypeArray", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ Object.defineProperties(HTMLUListElement.prototype, {
+ compact: { enumerable: true },
+ type: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLUListElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = MimeTypeArray;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLUListElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: MimeTypeArray
+ value: HTMLUListElement
});
};
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
+const Impl = __nccwpck_require__(64392);
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
- ownKeys(target) {
- const keys = new Set();
+/***/ }),
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+/***/ 30065:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
+"use strict";
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const HTMLElement = __nccwpck_require__(8932);
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- }
- let ownDesc;
+const interfaceName = "HTMLUnknownElement";
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'HTMLUnknownElement'.`);
+};
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLUnknownElement"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HTMLUnknownElement is not installed on the passed global object");
+ }
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
+ return Object.create(ctor.prototype);
+}
- return Reflect.defineProperty(target, P, desc);
- },
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ HTMLElement._internalSetup(wrapper, globalObject);
+};
- return Reflect.deleteProperty(target, P);
- },
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- preventExtensions() {
- return false;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
+ return wrapper;
};
-const Impl = __nccwpck_require__(77006);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.HTMLElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLUnknownElement before HTMLElement");
+ }
+ class HTMLUnknownElement extends globalObject.HTMLElement {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+ }
+ Object.defineProperties(HTMLUnknownElement.prototype, {
+ [Symbol.toStringTag]: { value: "HTMLUnknownElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLUnknownElement;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HTMLUnknownElement
+ });
+};
+
+const Impl = __nccwpck_require__(96001);
/***/ }),
-/***/ 35364:
+/***/ 50494:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -108732,13 +103889,17 @@ const Impl = __nccwpck_require__(77006);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const MouseEventInit = __nccwpck_require__(88445);
-const EventTarget = __nccwpck_require__(71038);
+const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
+const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
+const parseURLToResultingURLRecord_helpers_document_base_url = (__nccwpck_require__(20613).parseURLToResultingURLRecord);
+const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
+const HTMLMediaElement = __nccwpck_require__(61639);
-const interfaceName = "MouseEvent";
+const interfaceName = "HTMLVideoElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -108750,7 +103911,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'MouseEvent'.`);
+ throw new TypeError(`${context} is not of type 'HTMLVideoElement'.`);
};
function makeWrapper(globalObject) {
@@ -108758,9 +103919,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["MouseEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["HTMLVideoElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor MouseEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor HTMLVideoElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -108777,7 +103938,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
+ HTMLMediaElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -108796,7 +103957,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -108819,382 +103980,224 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.UIEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate MouseEvent before UIEvent");
+ if (globalObject.HTMLMediaElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate HTMLVideoElement before HTMLMediaElement");
}
- class MouseEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'MouseEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'MouseEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = MouseEventInit.convert(curArg, { context: "Failed to construct 'MouseEvent': parameter 2" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ class HTMLVideoElement extends globalObject.HTMLMediaElement {
+ constructor() {
+ return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
}
- getModifierState(keyArg) {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getModifierState' called on an object that is not a valid instance of MouseEvent.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getModifierState' on 'MouseEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getModifierState' on 'MouseEvent': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getModifierState(...args);
- }
- initMouseEvent(typeArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'initMouseEvent' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of HTMLVideoElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initMouseEvent' on 'MouseEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 5"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 6"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 7"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 8"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[8];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 9"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[9];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 10"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[10];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 11"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[11];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 12"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[12];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[13];
- if (curArg !== undefined) {
- curArg = conversions["short"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[14];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = EventTarget.convert(curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
- });
- }
- } else {
- curArg = null;
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "width");
+ if (value === null) {
+ return 0;
}
- args.push(curArg);
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- return esValue[implSymbol].initMouseEvent(...args);
}
- get screenX() {
+ set width(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get screenX' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'set width' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["screenX"];
- }
-
- get screenY() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'width' property on 'HTMLVideoElement': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get screenY' called on an object that is not a valid instance of MouseEvent.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "width", String(n));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return esValue[implSymbol]["screenY"];
}
- get clientX() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get clientX' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["clientX"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ let value = esValue[implSymbol].getAttributeNS(null, "height");
+ if (value === null) {
+ return 0;
+ }
+ value = parseNonNegativeInteger_helpers_strings(value);
+ return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get clientY() {
+ set height(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get clientY' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'set height' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["clientY"];
- }
-
- get ctrlKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["unsigned long"](V, {
+ context: "Failed to set the 'height' property on 'HTMLVideoElement': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get ctrlKey' called on an object that is not a valid instance of MouseEvent.");
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const n = V <= 2147483647 ? V : 0;
+ esValue[implSymbol].setAttributeNS(null, "height", String(n));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return esValue[implSymbol]["ctrlKey"];
}
- get shiftKey() {
+ get videoWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get shiftKey' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'get videoWidth' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["shiftKey"];
+ return esValue[implSymbol]["videoWidth"];
}
- get altKey() {
+ get videoHeight() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get altKey' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'get videoHeight' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["altKey"];
+ return esValue[implSymbol]["videoHeight"];
}
- get metaKey() {
+ get poster() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get metaKey' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'get poster' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["metaKey"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ const value = esValue[implSymbol].getAttributeNS(null, "poster");
+ if (value === null) {
+ return "";
+ }
+ const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
+ value,
+ esValue[implSymbol]._ownerDocument
+ );
+ if (urlRecord !== null) {
+ return serializeURLwhatwg_url(urlRecord);
+ }
+ return conversions.USVString(value);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get button() {
+ set poster(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get button' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'set poster' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["button"];
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'poster' property on 'HTMLVideoElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol].setAttributeNS(null, "poster", V);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get buttons() {
+ get playsInline() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get buttons' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'get playsInline' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return esValue[implSymbol]["buttons"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].hasAttributeNS(null, "playsinline");
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get relatedTarget() {
+ set playsInline(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get relatedTarget' called on an object that is not a valid instance of MouseEvent.");
+ throw new TypeError("'set playsInline' called on an object that is not a valid instance of HTMLVideoElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);
+ V = conversions["boolean"](V, {
+ context: "Failed to set the 'playsInline' property on 'HTMLVideoElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ if (V) {
+ esValue[implSymbol].setAttributeNS(null, "playsinline", "");
+ } else {
+ esValue[implSymbol].removeAttributeNS(null, "playsinline");
+ }
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(MouseEvent.prototype, {
- getModifierState: { enumerable: true },
- initMouseEvent: { enumerable: true },
- screenX: { enumerable: true },
- screenY: { enumerable: true },
- clientX: { enumerable: true },
- clientY: { enumerable: true },
- ctrlKey: { enumerable: true },
- shiftKey: { enumerable: true },
- altKey: { enumerable: true },
- metaKey: { enumerable: true },
- button: { enumerable: true },
- buttons: { enumerable: true },
- relatedTarget: { enumerable: true },
- [Symbol.toStringTag]: { value: "MouseEvent", configurable: true }
+ Object.defineProperties(HTMLVideoElement.prototype, {
+ width: { enumerable: true },
+ height: { enumerable: true },
+ videoWidth: { enumerable: true },
+ videoHeight: { enumerable: true },
+ poster: { enumerable: true },
+ playsInline: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HTMLVideoElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = MouseEvent;
+ globalObject[ctorRegistrySymbol][interfaceName] = HTMLVideoElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: MouseEvent
+ value: HTMLVideoElement
});
};
-const Impl = __nccwpck_require__(91684);
+const Impl = __nccwpck_require__(5714);
/***/ }),
-/***/ 88445:
+/***/ 65874:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -109203,114 +104206,159 @@ const Impl = __nccwpck_require__(91684);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const EventTarget = __nccwpck_require__(71038);
-const EventModifierInit = __nccwpck_require__(22409);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventModifierInit._convertInherit(obj, ret, { context });
+const HashChangeEventInit = __nccwpck_require__(72491);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Event = __nccwpck_require__(35348);
- {
- const key = "button";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["short"](value, { context: context + " has member 'button' that" });
+const interfaceName = "HashChangeEvent";
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
}
+ throw new TypeError(`${context} is not of type 'HashChangeEvent'.`);
+};
- {
- const key = "buttons";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned short"](value, { context: context + " has member 'buttons' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
}
- {
- const key = "clientX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'clientX' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
+ const ctor = globalObject[ctorRegistrySymbol]["HashChangeEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor HashChangeEvent is not installed on the passed global object");
}
- {
- const key = "clientY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'clientY' that" });
+ return Object.create(ctor.prototype);
+}
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- {
- const key = "relatedTarget";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = EventTarget.convert(value, { context: context + " has member 'relatedTarget' that" });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- {
- const key = "screenX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'screenX' that" });
+exports._internalSetup = (wrapper, globalObject) => {
+ Event._internalSetup(wrapper, globalObject);
+};
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
+ return wrapper;
+};
- {
- const key = "screenY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'screenY' that" });
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
+ return wrapper[implSymbol];
};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
}
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate HashChangeEvent before Event");
+ }
+ class HashChangeEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'HashChangeEvent': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'HashChangeEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = HashChangeEventInit.convert(curArg, { context: "Failed to construct 'HashChangeEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ }
+
+ get oldURL() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oldURL' called on an object that is not a valid instance of HashChangeEvent.");
+ }
+
+ return esValue[implSymbol]["oldURL"];
+ }
+
+ get newURL() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get newURL' called on an object that is not a valid instance of HashChangeEvent.");
+ }
+
+ return esValue[implSymbol]["newURL"];
+ }
+ }
+ Object.defineProperties(HashChangeEvent.prototype, {
+ oldURL: { enumerable: true },
+ newURL: { enumerable: true },
+ [Symbol.toStringTag]: { value: "HashChangeEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = HashChangeEvent;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: HashChangeEvent
+ });
};
+const Impl = __nccwpck_require__(93234);
+
/***/ }),
-/***/ 27319:
+/***/ 72491:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -109319,44 +104367,50 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new TypeError(context + " is not a function");
- }
-
- function invokeTheCallbackFunction(mutations, observer) {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
- }
-
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
+const EventInit = __nccwpck_require__(4895);
- mutations = utils.tryWrapperForImpl(mutations);
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- observer = utils.tryWrapperForImpl(observer);
+ {
+ const key = "newURL";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["USVString"](value, { context: context + " has member 'newURL' that" });
- callResult = Reflect.apply(value, thisArg, [mutations, observer]);
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
}
- invokeTheCallbackFunction.construct = (mutations, observer) => {
- mutations = utils.tryWrapperForImpl(mutations);
-
- observer = utils.tryWrapperForImpl(observer);
+ {
+ const key = "oldURL";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["USVString"](value, { context: context + " has member 'oldURL' that" });
- let callResult = Reflect.construct(value, [mutations, observer]);
- };
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
+ }
+};
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- return invokeTheCallbackFunction;
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
/***/ }),
-/***/ 41260:
+/***/ 24704:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -109365,13 +104419,40 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const MutationCallback = __nccwpck_require__(27319);
-const Node = __nccwpck_require__(41209);
-const MutationObserverInit = __nccwpck_require__(3901);
+const Function = __nccwpck_require__(79936);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "MutationObserver";
+const interfaceName = "Headers";
+
+const IteratorPrototype = Object.create(utils.IteratorPrototype, {
+ next: {
+ value: function next() {
+ const internal = this && this[utils.iterInternalSymbol];
+ if (!internal) {
+ throw new TypeError("next() called on a value that is not an iterator prototype object");
+ }
+
+ const { target, kind, index } = internal;
+ const values = Array.from(target[implSymbol]);
+ const len = values.length;
+ if (index >= len) {
+ return { value: undefined, done: true };
+ }
+
+ const pair = values[index];
+ internal.index = index + 1;
+ return utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind);
+ },
+ writable: true,
+ enumerable: true,
+ configurable: true
+ },
+ [Symbol.toStringTag]: {
+ value: "Headers Iterator",
+ configurable: true
+ }
+});
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -109383,7 +104464,16 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'MutationObserver'.`);
+ throw new TypeError(`${context} is not of type 'Headers'.`);
+};
+
+exports.createDefaultIterator = (target, kind) => {
+ const iterator = Object.create(IteratorPrototype);
+ Object.defineProperty(iterator, utils.iterInternalSymbol, {
+ value: { target, kind, index: 0 },
+ configurable: true
+ });
+ return iterator;
};
function makeWrapper(globalObject) {
@@ -109391,9 +104481,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["MutationObserver"];
+ const ctor = globalObject[ctorRegistrySymbol]["Headers"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor MutationObserver is not installed on the passed global object");
+ throw new Error("Internal error: constructor Headers is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -109427,7 +104517,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -109443,99 +104533,271 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class MutationObserver {
- constructor(callback) {
- if (arguments.length < 1) {
+ class Headers {
+ constructor() {
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ if (utils.isObject(curArg)) {
+ if (curArg[Symbol.iterator] !== undefined) {
+ if (!utils.isObject(curArg)) {
+ throw new TypeError(
+ "Failed to construct 'Headers': parameter 1" + " sequence" + " is not an iterable object."
+ );
+ } else {
+ const V = [];
+ const tmp = curArg;
+ for (let nextItem of tmp) {
+ if (!utils.isObject(nextItem)) {
+ throw new TypeError(
+ "Failed to construct 'Headers': parameter 1" +
+ " sequence" +
+ "'s element" +
+ " is not an iterable object."
+ );
+ } else {
+ const V = [];
+ const tmp = nextItem;
+ for (let nextItem of tmp) {
+ nextItem = conversions["ByteString"](nextItem, {
+ context:
+ "Failed to construct 'Headers': parameter 1" + " sequence" + "'s element" + "'s element"
+ });
+
+ V.push(nextItem);
+ }
+ nextItem = V;
+ }
+
+ V.push(nextItem);
+ }
+ curArg = V;
+ }
+ } else {
+ if (!utils.isObject(curArg)) {
+ throw new TypeError("Failed to construct 'Headers': parameter 1" + " record" + " is not an object.");
+ } else {
+ const result = Object.create(null);
+ for (const key of Reflect.ownKeys(curArg)) {
+ const desc = Object.getOwnPropertyDescriptor(curArg, key);
+ if (desc && desc.enumerable) {
+ let typedKey = key;
+
+ typedKey = conversions["ByteString"](typedKey, {
+ context: "Failed to construct 'Headers': parameter 1" + " record" + "'s key"
+ });
+
+ let typedValue = curArg[key];
+
+ typedValue = conversions["ByteString"](typedValue, {
+ context: "Failed to construct 'Headers': parameter 1" + " record" + "'s value"
+ });
+
+ result[typedKey] = typedValue;
+ }
+ }
+ curArg = result;
+ }
+ }
+ } else {
+ throw new TypeError("Failed to construct 'Headers': parameter 1" + " is not of any supported type.");
+ }
+ }
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ }
+
+ append(name, value) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'append' called on an object that is not a valid instance of Headers.");
+ }
+
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to construct 'MutationObserver': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'append' on 'Headers': 2 arguments required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = MutationCallback.convert(curArg, { context: "Failed to construct 'MutationObserver': parameter 1" });
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'append' on 'Headers': parameter 1" });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ {
+ let curArg = arguments[1];
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'append' on 'Headers': parameter 2" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].append(...args);
}
- observe(target) {
+ delete(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'observe' called on an object that is not a valid instance of MutationObserver.");
+ throw new TypeError("'delete' called on an object that is not a valid instance of Headers.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'observe' on 'MutationObserver': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'delete' on 'Headers': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'observe' on 'MutationObserver': parameter 1" });
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'delete' on 'Headers': parameter 1" });
args.push(curArg);
}
+ return esValue[implSymbol].delete(...args);
+ }
+
+ get(name) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get' called on an object that is not a valid instance of Headers.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'get' on 'Headers': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[1];
- curArg = MutationObserverInit.convert(curArg, {
- context: "Failed to execute 'observe' on 'MutationObserver': parameter 2"
- });
+ let curArg = arguments[0];
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'get' on 'Headers': parameter 1" });
args.push(curArg);
}
- return esValue[implSymbol].observe(...args);
+ return esValue[implSymbol].get(...args);
}
- disconnect() {
+ has(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'disconnect' called on an object that is not a valid instance of MutationObserver.");
+ throw new TypeError("'has' called on an object that is not a valid instance of Headers.");
}
- return esValue[implSymbol].disconnect();
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'has' on 'Headers': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'has' on 'Headers': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].has(...args);
}
- takeRecords() {
+ set(name, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'takeRecords' called on an object that is not a valid instance of MutationObserver.");
+ throw new TypeError("'set' called on an object that is not a valid instance of Headers.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].takeRecords());
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'set' on 'Headers': 2 arguments required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'set' on 'Headers': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["ByteString"](curArg, { context: "Failed to execute 'set' on 'Headers': parameter 2" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].set(...args);
+ }
+
+ keys() {
+ if (!exports.is(this)) {
+ throw new TypeError("'keys' called on an object that is not a valid instance of Headers.");
+ }
+ return exports.createDefaultIterator(this, "key");
+ }
+
+ values() {
+ if (!exports.is(this)) {
+ throw new TypeError("'values' called on an object that is not a valid instance of Headers.");
+ }
+ return exports.createDefaultIterator(this, "value");
+ }
+
+ entries() {
+ if (!exports.is(this)) {
+ throw new TypeError("'entries' called on an object that is not a valid instance of Headers.");
+ }
+ return exports.createDefaultIterator(this, "key+value");
+ }
+
+ forEach(callback) {
+ if (!exports.is(this)) {
+ throw new TypeError("'forEach' called on an object that is not a valid instance of Headers.");
+ }
+ if (arguments.length < 1) {
+ throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
+ }
+ callback = Function.convert(callback, {
+ context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
+ });
+ const thisArg = arguments[1];
+ let pairs = Array.from(this[implSymbol]);
+ let i = 0;
+ while (i < pairs.length) {
+ const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
+ callback.call(thisArg, value, key, this);
+ pairs = Array.from(this[implSymbol]);
+ i++;
+ }
}
}
- Object.defineProperties(MutationObserver.prototype, {
- observe: { enumerable: true },
- disconnect: { enumerable: true },
- takeRecords: { enumerable: true },
- [Symbol.toStringTag]: { value: "MutationObserver", configurable: true }
+ Object.defineProperties(Headers.prototype, {
+ append: { enumerable: true },
+ delete: { enumerable: true },
+ get: { enumerable: true },
+ has: { enumerable: true },
+ set: { enumerable: true },
+ keys: { enumerable: true },
+ values: { enumerable: true },
+ entries: { enumerable: true },
+ forEach: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Headers", configurable: true },
+ [Symbol.iterator]: { value: Headers.prototype.entries, configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = MutationObserver;
+ globalObject[ctorRegistrySymbol][interfaceName] = Headers;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: MutationObserver
+ value: Headers
});
};
-const Impl = __nccwpck_require__(53464);
+const Impl = __nccwpck_require__(15643);
/***/ }),
-/***/ 3901:
+/***/ 49928:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -109544,109 +104806,262 @@ const Impl = __nccwpck_require__(53464);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "attributeFilter";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new TypeError(context + " has member 'attributeFilter' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = conversions["DOMString"](nextItem, {
- context: context + " has member 'attributeFilter' that" + "'s element"
- });
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- V.push(nextItem);
+const interfaceName = "History";
+
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'History'.`);
+};
+
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["History"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor History is not installed on the passed global object");
+ }
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class History {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+
+ go() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'go' called on an object that is not a valid instance of History.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, { context: "Failed to execute 'go' on 'History': parameter 1" });
+ } else {
+ curArg = 0;
}
- value = V;
+ args.push(curArg);
}
-
- ret[key] = value;
+ return esValue[implSymbol].go(...args);
}
- }
- {
- const key = "attributeOldValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'attributeOldValue' that" });
+ back() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'back' called on an object that is not a valid instance of History.");
+ }
- ret[key] = value;
+ return esValue[implSymbol].back();
}
- }
- {
- const key = "attributes";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'attributes' that" });
+ forward() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'forward' called on an object that is not a valid instance of History.");
+ }
- ret[key] = value;
+ return esValue[implSymbol].forward();
}
- }
- {
- const key = "characterData";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'characterData' that" });
+ pushState(data, title) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'pushState' called on an object that is not a valid instance of History.");
+ }
- ret[key] = value;
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'pushState' on 'History': 2 arguments required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["any"](curArg, { context: "Failed to execute 'pushState' on 'History': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'pushState' on 'History': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'pushState' on 'History': parameter 3"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].pushState(...args);
}
- }
- {
- const key = "characterDataOldValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'characterDataOldValue' that" });
+ replaceState(data, title) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'replaceState' called on an object that is not a valid instance of History.");
+ }
- ret[key] = value;
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'replaceState' on 'History': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["any"](curArg, { context: "Failed to execute 'replaceState' on 'History': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'replaceState' on 'History': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'replaceState' on 'History': parameter 3"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].replaceState(...args);
}
- }
- {
- const key = "childList";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'childList' that" });
+ get length() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get length' called on an object that is not a valid instance of History.");
+ }
+
+ return esValue[implSymbol]["length"];
}
- }
- {
- const key = "subtree";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'subtree' that" });
+ get state() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get state' called on an object that is not a valid instance of History.");
+ }
+
+ return esValue[implSymbol]["state"];
}
}
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ Object.defineProperties(History.prototype, {
+ go: { enumerable: true },
+ back: { enumerable: true },
+ forward: { enumerable: true },
+ pushState: { enumerable: true },
+ replaceState: { enumerable: true },
+ length: { enumerable: true },
+ state: { enumerable: true },
+ [Symbol.toStringTag]: { value: "History", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = History;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: History
+ });
};
+const Impl = __nccwpck_require__(99101);
+
/***/ }),
-/***/ 34198:
+/***/ 74569:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -109655,10 +105070,12 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const InputEventInit = __nccwpck_require__(75799);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const UIEvent = __nccwpck_require__(58078);
-const interfaceName = "MutationRecord";
+const interfaceName = "InputEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -109670,7 +105087,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'MutationRecord'.`);
+ throw new TypeError(`${context} is not of type 'InputEvent'.`);
};
function makeWrapper(globalObject) {
@@ -109678,9 +105095,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["MutationRecord"];
+ const ctor = globalObject[ctorRegistrySymbol]["InputEvent"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor MutationRecord is not installed on the passed global object");
+ throw new Error("Internal error: constructor InputEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -109696,7 +105113,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ UIEvent._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -109714,7 +105133,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -109736,141 +105155,152 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class MutationRecord {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of MutationRecord.");
+ if (globalObject.UIEvent === undefined) {
+ throw new Error("Internal error: attempting to evaluate InputEvent before UIEvent");
+ }
+ class InputEvent extends globalObject.UIEvent {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'InputEvent': 1 argument required, but only " + arguments.length + " present."
+ );
}
-
- return esValue[implSymbol]["type"];
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'InputEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = InputEventInit.convert(curArg, { context: "Failed to construct 'InputEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get target() {
+ get data() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of MutationRecord.");
+ throw new TypeError("'get data' called on an object that is not a valid instance of InputEvent.");
}
- return utils.getSameObject(this, "target", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
- });
+ return esValue[implSymbol]["data"];
}
- get addedNodes() {
+ get isComposing() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get addedNodes' called on an object that is not a valid instance of MutationRecord.");
+ throw new TypeError("'get isComposing' called on an object that is not a valid instance of InputEvent.");
}
- return utils.getSameObject(this, "addedNodes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["addedNodes"]);
- });
+ return esValue[implSymbol]["isComposing"];
}
- get removedNodes() {
+ get inputType() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get removedNodes' called on an object that is not a valid instance of MutationRecord.");
+ throw new TypeError("'get inputType' called on an object that is not a valid instance of InputEvent.");
}
- return utils.getSameObject(this, "removedNodes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["removedNodes"]);
- });
+ return esValue[implSymbol]["inputType"];
}
+ }
+ Object.defineProperties(InputEvent.prototype, {
+ data: { enumerable: true },
+ isComposing: { enumerable: true },
+ inputType: { enumerable: true },
+ [Symbol.toStringTag]: { value: "InputEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = InputEvent;
- get previousSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: InputEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get previousSibling' called on an object that is not a valid instance of MutationRecord."
- );
- }
+const Impl = __nccwpck_require__(58056);
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousSibling"]);
- }
- get nextSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get nextSibling' called on an object that is not a valid instance of MutationRecord.");
- }
+/***/ 75799:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextSibling"]);
- }
+"use strict";
- get attributeName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get attributeName' called on an object that is not a valid instance of MutationRecord.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return esValue[implSymbol]["attributeName"];
- }
+const UIEventInit = __nccwpck_require__(82015);
- get attributeNamespace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ UIEventInit._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get attributeNamespace' called on an object that is not a valid instance of MutationRecord."
- );
+ {
+ const key = "data";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = conversions["DOMString"](value, { context: context + " has member 'data' that" });
}
-
- return esValue[implSymbol]["attributeNamespace"];
+ ret[key] = value;
+ } else {
+ ret[key] = null;
}
+ }
- get oldValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ {
+ const key = "inputType";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'inputType' that" });
- if (!exports.is(esValue)) {
- throw new TypeError("'get oldValue' called on an object that is not a valid instance of MutationRecord.");
- }
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
+ }
- return esValue[implSymbol]["oldValue"];
+ {
+ const key = "isComposing";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'isComposing' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
}
}
- Object.defineProperties(MutationRecord.prototype, {
- type: { enumerable: true },
- target: { enumerable: true },
- addedNodes: { enumerable: true },
- removedNodes: { enumerable: true },
- previousSibling: { enumerable: true },
- nextSibling: { enumerable: true },
- attributeName: { enumerable: true },
- attributeNamespace: { enumerable: true },
- oldValue: { enumerable: true },
- [Symbol.toStringTag]: { value: "MutationRecord", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- globalObject[ctorRegistrySymbol][interfaceName] = MutationRecord;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MutationRecord
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
-const Impl = __nccwpck_require__(87203);
-
/***/ }),
-/***/ 90212:
+/***/ 10929:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -109879,13 +105309,12 @@ const Impl = __nccwpck_require__(87203);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Attr = __nccwpck_require__(78717);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const KeyboardEventInit = __nccwpck_require__(72711);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const UIEvent = __nccwpck_require__(58078);
-const interfaceName = "NamedNodeMap";
+const interfaceName = "KeyboardEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -109897,7 +105326,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'NamedNodeMap'.`);
+ throw new TypeError(`${context} is not of type 'KeyboardEvent'.`);
};
function makeWrapper(globalObject) {
@@ -109905,9 +105334,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["NamedNodeMap"];
+ const ctor = globalObject[ctorRegistrySymbol]["KeyboardEvent"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor NamedNodeMap is not installed on the passed global object");
+ throw new Error("Internal error: constructor KeyboardEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -109923,7 +105352,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ UIEvent._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -109934,8 +105365,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -109943,8 +105372,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -109952,8 +105381,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -109967,42 +105394,40 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class NamedNodeMap {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of NamedNodeMap.");
- }
+ if (globalObject.UIEvent === undefined) {
+ throw new Error("Internal error: attempting to evaluate KeyboardEvent before UIEvent");
+ }
+ class KeyboardEvent extends globalObject.UIEvent {
+ constructor(type) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'item' on 'NamedNodeMap': 1 argument required, but only " + arguments.length + " present."
+ "Failed to construct 'KeyboardEvent': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'NamedNodeMap': parameter 1"
- });
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'KeyboardEvent': parameter 1" });
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
+ {
+ let curArg = arguments[1];
+ curArg = KeyboardEventInit.convert(curArg, { context: "Failed to construct 'KeyboardEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- getNamedItem(qualifiedName) {
+ getModifierState(keyArg) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getNamedItem' called on an object that is not a valid instance of NamedNodeMap.");
+ throw new TypeError("'getModifierState' called on an object that is not a valid instance of KeyboardEvent.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getNamedItem' on 'NamedNodeMap': 1 argument required, but only " +
+ "Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -110011,22 +105436,22 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getNamedItem' on 'NamedNodeMap': parameter 1"
+ context: "Failed to execute 'getModifierState' on 'KeyboardEvent': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getNamedItem(...args));
+ return esValue[implSymbol].getModifierState(...args);
}
- getNamedItemNS(namespace, localName) {
+ initKeyboardEvent(typeArg) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getNamedItemNS' called on an object that is not a valid instance of NamedNodeMap.");
+ throw new TypeError("'initKeyboardEvent' called on an object that is not a valid instance of KeyboardEvent.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': 2 arguments required, but only " +
+ "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -110034,373 +105459,381 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': parameter 1"
- });
- }
- args.push(curArg);
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 1"
+ });
+ args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': parameter 2"
- });
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getNamedItemNS(...args));
- }
-
- setNamedItem(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'setNamedItem' called on an object that is not a valid instance of NamedNodeMap.");
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 3"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setNamedItem' on 'NamedNodeMap': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = utils.tryImplForWrapper(curArg);
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
- const args = [];
{
- let curArg = arguments[0];
- curArg = Attr.convert(curArg, { context: "Failed to execute 'setNamedItem' on 'NamedNodeMap': parameter 1" });
+ let curArg = arguments[4];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 5"
+ });
+ } else {
+ curArg = "";
+ }
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setNamedItem(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[5];
+ if (curArg !== undefined) {
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 6"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
}
- }
-
- setNamedItemNS(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'setNamedItemNS' called on an object that is not a valid instance of NamedNodeMap.");
+ {
+ let curArg = arguments[6];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 7"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setNamedItemNS' on 'NamedNodeMap': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ {
+ let curArg = arguments[7];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 8"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
- const args = [];
{
- let curArg = arguments[0];
- curArg = Attr.convert(curArg, { context: "Failed to execute 'setNamedItemNS' on 'NamedNodeMap': parameter 1" });
+ let curArg = arguments[8];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 9"
+ });
+ } else {
+ curArg = false;
+ }
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setNamedItemNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ {
+ let curArg = arguments[9];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 10"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
+ return esValue[implSymbol].initKeyboardEvent(...args);
}
- removeNamedItem(qualifiedName) {
+ get key() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'removeNamedItem' called on an object that is not a valid instance of NamedNodeMap.");
+ throw new TypeError("'get key' called on an object that is not a valid instance of KeyboardEvent.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'removeNamedItem' on 'NamedNodeMap': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ return esValue[implSymbol]["key"];
+ }
+
+ get code() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get code' called on an object that is not a valid instance of KeyboardEvent.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeNamedItem' on 'NamedNodeMap': parameter 1"
- });
- args.push(curArg);
+
+ return esValue[implSymbol]["code"];
+ }
+
+ get location() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get location' called on an object that is not a valid instance of KeyboardEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeNamedItem(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+
+ return esValue[implSymbol]["location"];
+ }
+
+ get ctrlKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ctrlKey' called on an object that is not a valid instance of KeyboardEvent.");
}
+
+ return esValue[implSymbol]["ctrlKey"];
}
- removeNamedItemNS(namespace, localName) {
+ get shiftKey() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'removeNamedItemNS' called on an object that is not a valid instance of NamedNodeMap.");
+ throw new TypeError("'get shiftKey' called on an object that is not a valid instance of KeyboardEvent.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
+ return esValue[implSymbol]["shiftKey"];
+ }
+
+ get altKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get altKey' called on an object that is not a valid instance of KeyboardEvent.");
}
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': parameter 1"
- });
- }
- args.push(curArg);
+
+ return esValue[implSymbol]["altKey"];
+ }
+
+ get metaKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get metaKey' called on an object that is not a valid instance of KeyboardEvent.");
}
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': parameter 2"
- });
- args.push(curArg);
+
+ return esValue[implSymbol]["metaKey"];
+ }
+
+ get repeat() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get repeat' called on an object that is not a valid instance of KeyboardEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeNamedItemNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+
+ return esValue[implSymbol]["repeat"];
+ }
+
+ get isComposing() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get isComposing' called on an object that is not a valid instance of KeyboardEvent.");
+ }
+
+ return esValue[implSymbol]["isComposing"];
+ }
+
+ get charCode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get charCode' called on an object that is not a valid instance of KeyboardEvent.");
}
+
+ return esValue[implSymbol]["charCode"];
}
- get length() {
+ get keyCode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of NamedNodeMap.");
+ throw new TypeError("'get keyCode' called on an object that is not a valid instance of KeyboardEvent.");
}
- return esValue[implSymbol]["length"];
+ return esValue[implSymbol]["keyCode"];
}
}
- Object.defineProperties(NamedNodeMap.prototype, {
- item: { enumerable: true },
- getNamedItem: { enumerable: true },
- getNamedItemNS: { enumerable: true },
- setNamedItem: { enumerable: true },
- setNamedItemNS: { enumerable: true },
- removeNamedItem: { enumerable: true },
- removeNamedItemNS: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "NamedNodeMap", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ Object.defineProperties(KeyboardEvent.prototype, {
+ getModifierState: { enumerable: true },
+ initKeyboardEvent: { enumerable: true },
+ key: { enumerable: true },
+ code: { enumerable: true },
+ location: { enumerable: true },
+ ctrlKey: { enumerable: true },
+ shiftKey: { enumerable: true },
+ altKey: { enumerable: true },
+ metaKey: { enumerable: true },
+ repeat: { enumerable: true },
+ isComposing: { enumerable: true },
+ charCode: { enumerable: true },
+ keyCode: { enumerable: true },
+ [Symbol.toStringTag]: { value: "KeyboardEvent", configurable: true },
+ DOM_KEY_LOCATION_STANDARD: { value: 0x00, enumerable: true },
+ DOM_KEY_LOCATION_LEFT: { value: 0x01, enumerable: true },
+ DOM_KEY_LOCATION_RIGHT: { value: 0x02, enumerable: true },
+ DOM_KEY_LOCATION_NUMPAD: { value: 0x03, enumerable: true }
+ });
+ Object.defineProperties(KeyboardEvent, {
+ DOM_KEY_LOCATION_STANDARD: { value: 0x00, enumerable: true },
+ DOM_KEY_LOCATION_LEFT: { value: 0x01, enumerable: true },
+ DOM_KEY_LOCATION_RIGHT: { value: 0x02, enumerable: true },
+ DOM_KEY_LOCATION_NUMPAD: { value: 0x03, enumerable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = NamedNodeMap;
+ globalObject[ctorRegistrySymbol][interfaceName] = KeyboardEvent;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: NamedNodeMap
+ value: KeyboardEvent
});
};
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
+const Impl = __nccwpck_require__(44410);
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
- ownKeys(target) {
- const keys = new Set();
+/***/ }),
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+/***/ 72711:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
+"use strict";
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
+const EventModifierInit = __nccwpck_require__(22409);
- const namedValue = target[implSymbol].getNamedItem(P);
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventModifierInit._convertInherit(obj, ret, { context });
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: false,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
+ {
+ const key = "charCode";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'charCode' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
}
+ }
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
+ {
+ const key = "code";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'code' that" });
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ ret[key] = value;
+ } else {
+ ret[key] = "";
}
- let ownDesc;
+ }
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
+ {
+ const key = "isComposing";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'isComposing' that" });
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
+ ret[key] = value;
} else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
+ ret[key] = false;
}
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
+ }
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
+ {
+ const key = "key";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'key' that" });
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].getNamedItem(P) !== null);
- if (!creating) {
- return false;
- }
+ ret[key] = value;
+ } else {
+ ret[key] = "";
}
- return Reflect.defineProperty(target, P, desc);
- },
+ }
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+ {
+ const key = "keyCode";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'keyCode' that" });
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
}
+ }
- if (target[implSymbol].getNamedItem(P) !== null && !(P in target)) {
- return false;
+ {
+ const key = "location";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'location' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
}
+ }
- return Reflect.deleteProperty(target, P);
- },
+ {
+ const key = "repeat";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'repeat' that" });
- preventExtensions() {
- return false;
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
}
};
-const Impl = __nccwpck_require__(28698);
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
/***/ }),
-/***/ 96340:
+/***/ 98744:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -110412,7 +105845,7 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "Navigator";
+const interfaceName = "Location";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -110424,7 +105857,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Navigator'.`);
+ throw new TypeError(`${context} is not of type 'Location'.`);
};
function makeWrapper(globalObject) {
@@ -110432,9 +105865,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Navigator"];
+ const ctor = globalObject[ctorRegistrySymbol]["Location"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Navigator is not installed on the passed global object");
+ throw new Error("Internal error: constructor Location is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -110450,262 +105883,335 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+exports._internalSetup = (wrapper, globalObject) => {
+ Object.defineProperties(
+ wrapper,
+ Object.getOwnPropertyDescriptors({
+ assign(url) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'assign' called on an object that is not a valid instance of Location.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'assign' on 'Location': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'assign' on 'Location': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].assign(...args);
+ },
+ replace(url) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'replace' called on an object that is not a valid instance of Location.");
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'replace' on 'Location': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'replace' on 'Location': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].replace(...args);
+ },
+ reload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'reload' called on an object that is not a valid instance of Location.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ return esValue[implSymbol].reload();
+ },
+ get href() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get href' called on an object that is not a valid instance of Location.");
+ }
-const exposed = new Set(["Window"]);
+ return esValue[implSymbol]["href"];
+ },
+ set href(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class Navigator {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set href' called on an object that is not a valid instance of Location.");
+ }
- javaEnabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'javaEnabled' called on an object that is not a valid instance of Navigator.");
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'href' property on 'Location': The provided value"
+ });
- return esValue[implSymbol].javaEnabled();
- }
+ esValue[implSymbol]["href"] = V;
+ },
+ toString() {
+ const esValue = this;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'toString' called on an object that is not a valid instance of Location.");
+ }
- get appCodeName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return esValue[implSymbol]["href"];
+ },
+ get origin() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get appCodeName' called on an object that is not a valid instance of Navigator.");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get origin' called on an object that is not a valid instance of Location.");
+ }
- return esValue[implSymbol]["appCodeName"];
- }
+ return esValue[implSymbol]["origin"];
+ },
+ get protocol() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- get appName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get protocol' called on an object that is not a valid instance of Location.");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get appName' called on an object that is not a valid instance of Navigator.");
- }
+ return esValue[implSymbol]["protocol"];
+ },
+ set protocol(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return esValue[implSymbol]["appName"];
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set protocol' called on an object that is not a valid instance of Location.");
+ }
- get appVersion() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'protocol' property on 'Location': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get appVersion' called on an object that is not a valid instance of Navigator.");
- }
+ esValue[implSymbol]["protocol"] = V;
+ },
+ get host() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return esValue[implSymbol]["appVersion"];
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get host' called on an object that is not a valid instance of Location.");
+ }
- get platform() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return esValue[implSymbol]["host"];
+ },
+ set host(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get platform' called on an object that is not a valid instance of Navigator.");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set host' called on an object that is not a valid instance of Location.");
+ }
- return esValue[implSymbol]["platform"];
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'host' property on 'Location': The provided value"
+ });
- get product() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ esValue[implSymbol]["host"] = V;
+ },
+ get hostname() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get product' called on an object that is not a valid instance of Navigator.");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get hostname' called on an object that is not a valid instance of Location.");
+ }
- return esValue[implSymbol]["product"];
- }
+ return esValue[implSymbol]["hostname"];
+ },
+ set hostname(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- get productSub() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set hostname' called on an object that is not a valid instance of Location.");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get productSub' called on an object that is not a valid instance of Navigator.");
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'hostname' property on 'Location': The provided value"
+ });
- return esValue[implSymbol]["productSub"];
- }
+ esValue[implSymbol]["hostname"] = V;
+ },
+ get port() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- get userAgent() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get port' called on an object that is not a valid instance of Location.");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get userAgent' called on an object that is not a valid instance of Navigator.");
- }
+ return esValue[implSymbol]["port"];
+ },
+ set port(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return esValue[implSymbol]["userAgent"];
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set port' called on an object that is not a valid instance of Location.");
+ }
- get vendor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'port' property on 'Location': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get vendor' called on an object that is not a valid instance of Navigator.");
- }
+ esValue[implSymbol]["port"] = V;
+ },
+ get pathname() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return esValue[implSymbol]["vendor"];
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get pathname' called on an object that is not a valid instance of Location.");
+ }
- get vendorSub() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return esValue[implSymbol]["pathname"];
+ },
+ set pathname(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get vendorSub' called on an object that is not a valid instance of Navigator.");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set pathname' called on an object that is not a valid instance of Location.");
+ }
- return esValue[implSymbol]["vendorSub"];
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'pathname' property on 'Location': The provided value"
+ });
- get language() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ esValue[implSymbol]["pathname"] = V;
+ },
+ get search() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get language' called on an object that is not a valid instance of Navigator.");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get search' called on an object that is not a valid instance of Location.");
+ }
- return esValue[implSymbol]["language"];
- }
+ return esValue[implSymbol]["search"];
+ },
+ set search(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- get languages() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set search' called on an object that is not a valid instance of Location.");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get languages' called on an object that is not a valid instance of Navigator.");
- }
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'search' property on 'Location': The provided value"
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["languages"]);
- }
+ esValue[implSymbol]["search"] = V;
+ },
+ get hash() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- get onLine() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get hash' called on an object that is not a valid instance of Location.");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get onLine' called on an object that is not a valid instance of Navigator.");
- }
+ return esValue[implSymbol]["hash"];
+ },
+ set hash(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return esValue[implSymbol]["onLine"];
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set hash' called on an object that is not a valid instance of Location.");
+ }
- get cookieEnabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ V = conversions["USVString"](V, {
+ context: "Failed to set the 'hash' property on 'Location': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get cookieEnabled' called on an object that is not a valid instance of Navigator.");
+ esValue[implSymbol]["hash"] = V;
}
+ })
+ );
- return esValue[implSymbol]["cookieEnabled"];
- }
-
- get plugins() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperties(wrapper, {
+ assign: { configurable: false, writable: false },
+ replace: { configurable: false, writable: false },
+ reload: { configurable: false, writable: false },
+ href: { configurable: false },
+ toString: { configurable: false, writable: false },
+ origin: { configurable: false },
+ protocol: { configurable: false },
+ host: { configurable: false },
+ hostname: { configurable: false },
+ port: { configurable: false },
+ pathname: { configurable: false },
+ search: { configurable: false },
+ hash: { configurable: false }
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get plugins' called on an object that is not a valid instance of Navigator.");
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- return utils.getSameObject(this, "plugins", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["plugins"]);
- });
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- get mimeTypes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get mimeTypes' called on an object that is not a valid instance of Navigator.");
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- return utils.getSameObject(this, "mimeTypes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["mimeTypes"]);
- });
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- get hardwareConcurrency() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get hardwareConcurrency' called on an object that is not a valid instance of Navigator.");
- }
+const exposed = new Set(["Window"]);
- return esValue[implSymbol]["hardwareConcurrency"];
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class Location {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
}
- Object.defineProperties(Navigator.prototype, {
- javaEnabled: { enumerable: true },
- appCodeName: { enumerable: true },
- appName: { enumerable: true },
- appVersion: { enumerable: true },
- platform: { enumerable: true },
- product: { enumerable: true },
- productSub: { enumerable: true },
- userAgent: { enumerable: true },
- vendor: { enumerable: true },
- vendorSub: { enumerable: true },
- language: { enumerable: true },
- languages: { enumerable: true },
- onLine: { enumerable: true },
- cookieEnabled: { enumerable: true },
- plugins: { enumerable: true },
- mimeTypes: { enumerable: true },
- hardwareConcurrency: { enumerable: true },
- [Symbol.toStringTag]: { value: "Navigator", configurable: true }
- });
+ Object.defineProperties(Location.prototype, { [Symbol.toStringTag]: { value: "Location", configurable: true } });
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Navigator;
+ globalObject[ctorRegistrySymbol][interfaceName] = Location;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Navigator
+ value: Location
});
};
-const Impl = __nccwpck_require__(48925);
+const Impl = __nccwpck_require__(45513);
/***/ }),
-/***/ 41209:
+/***/ 31371:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -110714,14 +106220,12 @@ const Impl = __nccwpck_require__(48925);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const GetRootNodeOptions = __nccwpck_require__(99981);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
+const MessageEventInit = __nccwpck_require__(75669);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
+const Event = __nccwpck_require__(35348);
-const interfaceName = "Node";
+const interfaceName = "MessageEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -110733,7 +106237,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Node'.`);
+ throw new TypeError(`${context} is not of type 'MessageEvent'.`);
};
function makeWrapper(globalObject) {
@@ -110741,9 +106245,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Node"];
+ const ctor = globalObject[ctorRegistrySymbol]["MessageEvent"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Node is not installed on the passed global object");
+ throw new Error("Internal error: constructor MessageEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -110760,7 +106264,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
+ Event._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -110779,7 +106283,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -110795,140 +106299,46 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.EventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate Node before EventTarget");
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate MessageEvent before Event");
}
- class Node extends globalObject.EventTarget {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- getRootNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getRootNode' called on an object that is not a valid instance of Node.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = GetRootNodeOptions.convert(curArg, {
- context: "Failed to execute 'getRootNode' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getRootNode(...args));
- }
-
- hasChildNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'hasChildNodes' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol].hasChildNodes();
- }
-
- normalize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'normalize' called on an object that is not a valid instance of Node.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].normalize();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- cloneNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'cloneNode' called on an object that is not a valid instance of Node.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, { context: "Failed to execute 'cloneNode' on 'Node': parameter 1" });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].cloneNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- isEqualNode(otherNode) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'isEqualNode' called on an object that is not a valid instance of Node.");
- }
-
+ class MessageEvent extends globalObject.Event {
+ constructor(type) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'isEqualNode' on 'Node': 1 argument required, but only " + arguments.length + " present."
+ "Failed to construct 'MessageEvent': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = exports.convert(curArg, { context: "Failed to execute 'isEqualNode' on 'Node': parameter 1" });
- }
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'MessageEvent': parameter 1" });
args.push(curArg);
}
- return esValue[implSymbol].isEqualNode(...args);
- }
-
- isSameNode(otherNode) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'isSameNode' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'isSameNode' on 'Node': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = exports.convert(curArg, { context: "Failed to execute 'isSameNode' on 'Node': parameter 1" });
- }
+ let curArg = arguments[1];
+ curArg = MessageEventInit.convert(curArg, { context: "Failed to construct 'MessageEvent': parameter 2" });
args.push(curArg);
}
- return esValue[implSymbol].isSameNode(...args);
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- compareDocumentPosition(other) {
+ initMessageEvent(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'compareDocumentPosition' called on an object that is not a valid instance of Node.");
+ throw new TypeError("'initMessageEvent' called on an object that is not a valid instance of MessageEvent.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'compareDocumentPosition' on 'Node': 1 argument required, but only " +
+ "Failed to execute 'initMessageEvent' on 'MessageEvent': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -110936,520 +106346,181 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = exports.convert(curArg, {
- context: "Failed to execute 'compareDocumentPosition' on 'Node': parameter 1"
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].compareDocumentPosition(...args);
- }
-
- contains(other) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'contains' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'contains' on 'Node': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 2"
+ });
} else {
- curArg = exports.convert(curArg, { context: "Failed to execute 'contains' on 'Node': parameter 1" });
+ curArg = false;
}
args.push(curArg);
}
- return esValue[implSymbol].contains(...args);
- }
-
- lookupPrefix(namespace) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'lookupPrefix' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'lookupPrefix' on 'Node': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'lookupPrefix' on 'Node': parameter 1"
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 3"
});
+ } else {
+ curArg = false;
}
args.push(curArg);
}
- return esValue[implSymbol].lookupPrefix(...args);
- }
-
- lookupNamespaceURI(prefix) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'lookupNamespaceURI' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'lookupNamespaceURI' on 'Node': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'lookupNamespaceURI' on 'Node': parameter 1"
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ curArg = conversions["any"](curArg, {
+ context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 4"
});
+ } else {
+ curArg = null;
}
args.push(curArg);
}
- return esValue[implSymbol].lookupNamespaceURI(...args);
- }
-
- isDefaultNamespace(namespace) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'isDefaultNamespace' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'isDefaultNamespace' on 'Node': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'isDefaultNamespace' on 'Node': parameter 1"
+ let curArg = arguments[4];
+ if (curArg !== undefined) {
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 5"
});
+ } else {
+ curArg = "";
}
args.push(curArg);
}
- return esValue[implSymbol].isDefaultNamespace(...args);
- }
-
- insertBefore(node, child) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'insertBefore' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(curArg, { context: "Failed to execute 'insertBefore' on 'Node': parameter 1" });
- args.push(curArg);
- }
{
- let curArg = arguments[1];
- if (curArg === null || curArg === undefined) {
- curArg = null;
+ let curArg = arguments[5];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 6"
+ });
} else {
- curArg = exports.convert(curArg, { context: "Failed to execute 'insertBefore' on 'Node': parameter 2" });
+ curArg = "";
}
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].insertBefore(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- appendChild(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'appendChild' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'appendChild' on 'Node': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(curArg, { context: "Failed to execute 'appendChild' on 'Node': parameter 1" });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].appendChild(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceChild(node, child) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'replaceChild' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only " + arguments.length + " present."
- );
- }
- const args = [];
{
- let curArg = arguments[0];
- curArg = exports.convert(curArg, { context: "Failed to execute 'replaceChild' on 'Node': parameter 1" });
+ let curArg = arguments[6];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = utils.tryImplForWrapper(curArg);
+ }
+ } else {
+ curArg = null;
+ }
args.push(curArg);
}
{
- let curArg = arguments[1];
- curArg = exports.convert(curArg, { context: "Failed to execute 'replaceChild' on 'Node': parameter 2" });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].replaceChild(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeChild(child) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'removeChild' called on an object that is not a valid instance of Node.");
- }
+ let curArg = arguments[7];
+ if (curArg !== undefined) {
+ if (!utils.isObject(curArg)) {
+ throw new TypeError(
+ "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 8" + " is not an iterable object."
+ );
+ } else {
+ const V = [];
+ const tmp = curArg;
+ for (let nextItem of tmp) {
+ nextItem = utils.tryImplForWrapper(nextItem);
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'removeChild' on 'Node': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(curArg, { context: "Failed to execute 'removeChild' on 'Node': parameter 1" });
+ V.push(nextItem);
+ }
+ curArg = V;
+ }
+ } else {
+ curArg = [];
+ }
args.push(curArg);
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeChild(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get nodeType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get nodeType' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["nodeType"];
- }
-
- get nodeName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get nodeName' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["nodeName"];
- }
-
- get baseURI() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get baseURI' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["baseURI"];
- }
-
- get isConnected() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get isConnected' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["isConnected"];
- }
-
- get ownerDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ownerDocument' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ownerDocument"]);
- }
-
- get parentNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get parentNode' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["parentNode"]);
- }
-
- get parentElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get parentElement' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["parentElement"]);
- }
-
- get childNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get childNodes' called on an object that is not a valid instance of Node.");
- }
-
- return utils.getSameObject(this, "childNodes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["childNodes"]);
- });
- }
-
- get firstChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get firstChild' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstChild"]);
- }
-
- get lastChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get lastChild' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastChild"]);
- }
-
- get previousSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get previousSibling' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousSibling"]);
+ return esValue[implSymbol].initMessageEvent(...args);
}
- get nextSibling() {
+ get data() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get nextSibling' called on an object that is not a valid instance of Node.");
+ throw new TypeError("'get data' called on an object that is not a valid instance of MessageEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextSibling"]);
+ return esValue[implSymbol]["data"];
}
- get nodeValue() {
+ get origin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get nodeValue' called on an object that is not a valid instance of Node.");
+ throw new TypeError("'get origin' called on an object that is not a valid instance of MessageEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["nodeValue"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["origin"];
}
- set nodeValue(V) {
+ get lastEventId() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set nodeValue' called on an object that is not a valid instance of Node.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nodeValue' property on 'Node': The provided value"
- });
+ throw new TypeError("'get lastEventId' called on an object that is not a valid instance of MessageEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["nodeValue"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["lastEventId"];
}
- get textContent() {
+ get source() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get textContent' called on an object that is not a valid instance of Node.");
+ throw new TypeError("'get source' called on an object that is not a valid instance of MessageEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["textContent"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["source"]);
}
- set textContent(V) {
+ get ports() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set textContent' called on an object that is not a valid instance of Node.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'textContent' property on 'Node': The provided value"
- });
+ throw new TypeError("'get ports' called on an object that is not a valid instance of MessageEvent.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["textContent"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ports"]);
}
}
- Object.defineProperties(Node.prototype, {
- getRootNode: { enumerable: true },
- hasChildNodes: { enumerable: true },
- normalize: { enumerable: true },
- cloneNode: { enumerable: true },
- isEqualNode: { enumerable: true },
- isSameNode: { enumerable: true },
- compareDocumentPosition: { enumerable: true },
- contains: { enumerable: true },
- lookupPrefix: { enumerable: true },
- lookupNamespaceURI: { enumerable: true },
- isDefaultNamespace: { enumerable: true },
- insertBefore: { enumerable: true },
- appendChild: { enumerable: true },
- replaceChild: { enumerable: true },
- removeChild: { enumerable: true },
- nodeType: { enumerable: true },
- nodeName: { enumerable: true },
- baseURI: { enumerable: true },
- isConnected: { enumerable: true },
- ownerDocument: { enumerable: true },
- parentNode: { enumerable: true },
- parentElement: { enumerable: true },
- childNodes: { enumerable: true },
- firstChild: { enumerable: true },
- lastChild: { enumerable: true },
- previousSibling: { enumerable: true },
- nextSibling: { enumerable: true },
- nodeValue: { enumerable: true },
- textContent: { enumerable: true },
- [Symbol.toStringTag]: { value: "Node", configurable: true },
- ELEMENT_NODE: { value: 1, enumerable: true },
- ATTRIBUTE_NODE: { value: 2, enumerable: true },
- TEXT_NODE: { value: 3, enumerable: true },
- CDATA_SECTION_NODE: { value: 4, enumerable: true },
- ENTITY_REFERENCE_NODE: { value: 5, enumerable: true },
- ENTITY_NODE: { value: 6, enumerable: true },
- PROCESSING_INSTRUCTION_NODE: { value: 7, enumerable: true },
- COMMENT_NODE: { value: 8, enumerable: true },
- DOCUMENT_NODE: { value: 9, enumerable: true },
- DOCUMENT_TYPE_NODE: { value: 10, enumerable: true },
- DOCUMENT_FRAGMENT_NODE: { value: 11, enumerable: true },
- NOTATION_NODE: { value: 12, enumerable: true },
- DOCUMENT_POSITION_DISCONNECTED: { value: 0x01, enumerable: true },
- DOCUMENT_POSITION_PRECEDING: { value: 0x02, enumerable: true },
- DOCUMENT_POSITION_FOLLOWING: { value: 0x04, enumerable: true },
- DOCUMENT_POSITION_CONTAINS: { value: 0x08, enumerable: true },
- DOCUMENT_POSITION_CONTAINED_BY: { value: 0x10, enumerable: true },
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: { value: 0x20, enumerable: true }
- });
- Object.defineProperties(Node, {
- ELEMENT_NODE: { value: 1, enumerable: true },
- ATTRIBUTE_NODE: { value: 2, enumerable: true },
- TEXT_NODE: { value: 3, enumerable: true },
- CDATA_SECTION_NODE: { value: 4, enumerable: true },
- ENTITY_REFERENCE_NODE: { value: 5, enumerable: true },
- ENTITY_NODE: { value: 6, enumerable: true },
- PROCESSING_INSTRUCTION_NODE: { value: 7, enumerable: true },
- COMMENT_NODE: { value: 8, enumerable: true },
- DOCUMENT_NODE: { value: 9, enumerable: true },
- DOCUMENT_TYPE_NODE: { value: 10, enumerable: true },
- DOCUMENT_FRAGMENT_NODE: { value: 11, enumerable: true },
- NOTATION_NODE: { value: 12, enumerable: true },
- DOCUMENT_POSITION_DISCONNECTED: { value: 0x01, enumerable: true },
- DOCUMENT_POSITION_PRECEDING: { value: 0x02, enumerable: true },
- DOCUMENT_POSITION_FOLLOWING: { value: 0x04, enumerable: true },
- DOCUMENT_POSITION_CONTAINS: { value: 0x08, enumerable: true },
- DOCUMENT_POSITION_CONTAINED_BY: { value: 0x10, enumerable: true },
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: { value: 0x20, enumerable: true }
+ Object.defineProperties(MessageEvent.prototype, {
+ initMessageEvent: { enumerable: true },
+ data: { enumerable: true },
+ origin: { enumerable: true },
+ lastEventId: { enumerable: true },
+ source: { enumerable: true },
+ ports: { enumerable: true },
+ [Symbol.toStringTag]: { value: "MessageEvent", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Node;
+ globalObject[ctorRegistrySymbol][interfaceName] = MessageEvent;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Node
+ value: MessageEvent
});
};
-const Impl = __nccwpck_require__(53563);
+const Impl = __nccwpck_require__(62673);
/***/ }),
-/***/ 39151:
+/***/ 75669:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -111458,80 +106529,100 @@ const Impl = __nccwpck_require__(53563);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- if (!utils.isObject(value)) {
- throw new TypeError(`${context} is not an object.`);
- }
+const EventInit = __nccwpck_require__(4895);
- function callTheUserObjectsOperation(node) {
- let thisArg = utils.tryWrapperForImpl(this);
- let O = value;
- let X = O;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- if (typeof O !== "function") {
- X = O["acceptNode"];
- if (typeof X !== "function") {
- throw new TypeError(`${context} does not correctly implement NodeFilter.`);
- }
- thisArg = O;
+ {
+ const key = "data";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["any"](value, { context: context + " has member 'data' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = null;
}
+ }
- node = utils.tryWrapperForImpl(node);
+ {
+ const key = "lastEventId";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["DOMString"](value, { context: context + " has member 'lastEventId' that" });
- let callResult = Reflect.apply(X, thisArg, [node]);
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
+ }
- callResult = conversions["unsigned short"](callResult, { context: context });
+ {
+ const key = "origin";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["USVString"](value, { context: context + " has member 'origin' that" });
- return callResult;
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
}
- callTheUserObjectsOperation[utils.wrapperSymbol] = value;
- callTheUserObjectsOperation.objectReference = value;
-
- return callTheUserObjectsOperation;
-};
+ {
+ const key = "ports";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(context + " has member 'ports' that" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = value;
+ for (let nextItem of tmp) {
+ nextItem = utils.tryImplForWrapper(nextItem);
-const exposed = new Set(["Window"]);
+ V.push(nextItem);
+ }
+ value = V;
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
+ ret[key] = value;
+ } else {
+ ret[key] = [];
+ }
}
- const NodeFilter = () => {
- throw new TypeError("Illegal invocation");
- };
+ {
+ const key = "source";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = utils.tryImplForWrapper(value);
+ }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
+ }
+};
- Object.defineProperties(NodeFilter, {
- FILTER_ACCEPT: { value: 1, enumerable: true },
- FILTER_REJECT: { value: 2, enumerable: true },
- FILTER_SKIP: { value: 3, enumerable: true },
- SHOW_ALL: { value: 0xffffffff, enumerable: true },
- SHOW_ELEMENT: { value: 0x1, enumerable: true },
- SHOW_ATTRIBUTE: { value: 0x2, enumerable: true },
- SHOW_TEXT: { value: 0x4, enumerable: true },
- SHOW_CDATA_SECTION: { value: 0x8, enumerable: true },
- SHOW_ENTITY_REFERENCE: { value: 0x10, enumerable: true },
- SHOW_ENTITY: { value: 0x20, enumerable: true },
- SHOW_PROCESSING_INSTRUCTION: { value: 0x40, enumerable: true },
- SHOW_COMMENT: { value: 0x80, enumerable: true },
- SHOW_DOCUMENT: { value: 0x100, enumerable: true },
- SHOW_DOCUMENT_TYPE: { value: 0x200, enumerable: true },
- SHOW_DOCUMENT_FRAGMENT: { value: 0x400, enumerable: true },
- SHOW_NOTATION: { value: 0x800, enumerable: true }
- });
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- Object.defineProperty(globalObject, "NodeFilter", {
- configurable: true,
- writable: true,
- value: NodeFilter
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
/***/ }),
-/***/ 83882:
+/***/ 83612:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -111543,7 +106634,7 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "NodeIterator";
+const interfaceName = "MimeType";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -111555,7 +106646,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'NodeIterator'.`);
+ throw new TypeError(`${context} is not of type 'MimeType'.`);
};
function makeWrapper(globalObject) {
@@ -111563,9 +106654,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["NodeIterator"];
+ const ctor = globalObject[ctorRegistrySymbol]["MimeType"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor NodeIterator is not installed on the passed global object");
+ throw new Error("Internal error: constructor MimeType is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -111599,7 +106690,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -111621,121 +106712,76 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class NodeIterator {
+ class MimeType {
constructor() {
throw new TypeError("Illegal constructor");
}
- nextNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'nextNode' called on an object that is not a valid instance of NodeIterator.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].nextNode());
- }
-
- previousNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'previousNode' called on an object that is not a valid instance of NodeIterator.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].previousNode());
- }
-
- detach() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'detach' called on an object that is not a valid instance of NodeIterator.");
- }
-
- return esValue[implSymbol].detach();
- }
-
- get root() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get root' called on an object that is not a valid instance of NodeIterator.");
- }
-
- return utils.getSameObject(this, "root", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["root"]);
- });
- }
-
- get referenceNode() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get referenceNode' called on an object that is not a valid instance of NodeIterator.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of MimeType.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["referenceNode"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["type"]);
}
- get pointerBeforeReferenceNode() {
+ get description() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get pointerBeforeReferenceNode' called on an object that is not a valid instance of NodeIterator."
- );
+ throw new TypeError("'get description' called on an object that is not a valid instance of MimeType.");
}
- return esValue[implSymbol]["pointerBeforeReferenceNode"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["description"]);
}
- get whatToShow() {
+ get suffixes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get whatToShow' called on an object that is not a valid instance of NodeIterator.");
+ throw new TypeError("'get suffixes' called on an object that is not a valid instance of MimeType.");
}
- return esValue[implSymbol]["whatToShow"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["suffixes"]);
}
- get filter() {
+ get enabledPlugin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get filter' called on an object that is not a valid instance of NodeIterator.");
+ throw new TypeError("'get enabledPlugin' called on an object that is not a valid instance of MimeType.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["filter"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["enabledPlugin"]);
}
}
- Object.defineProperties(NodeIterator.prototype, {
- nextNode: { enumerable: true },
- previousNode: { enumerable: true },
- detach: { enumerable: true },
- root: { enumerable: true },
- referenceNode: { enumerable: true },
- pointerBeforeReferenceNode: { enumerable: true },
- whatToShow: { enumerable: true },
- filter: { enumerable: true },
- [Symbol.toStringTag]: { value: "NodeIterator", configurable: true }
+ Object.defineProperties(MimeType.prototype, {
+ type: { enumerable: true },
+ description: { enumerable: true },
+ suffixes: { enumerable: true },
+ enabledPlugin: { enumerable: true },
+ [Symbol.toStringTag]: { value: "MimeType", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = NodeIterator;
+ globalObject[ctorRegistrySymbol][interfaceName] = MimeType;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: NodeIterator
+ value: MimeType
});
};
-const Impl = __nccwpck_require__(65483);
+const Impl = __nccwpck_require__(76572);
/***/ }),
-/***/ 65427:
+/***/ 15023:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -111747,7 +106793,7 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "NodeList";
+const interfaceName = "MimeTypeArray";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -111759,7 +106805,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'NodeList'.`);
+ throw new TypeError(`${context} is not of type 'MimeTypeArray'.`);
};
function makeWrapper(globalObject) {
@@ -111767,9 +106813,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["NodeList"];
+ const ctor = globalObject[ctorRegistrySymbol]["MimeTypeArray"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor NodeList is not installed on the passed global object");
+ throw new Error("Internal error: constructor MimeTypeArray is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -111805,7 +106851,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -111829,7 +106875,7 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class NodeList {
+ class MimeTypeArray {
constructor() {
throw new TypeError("Illegal constructor");
}
@@ -111837,54 +106883,75 @@ exports.install = (globalObject, globalNames) => {
item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of NodeList.");
+ throw new TypeError("'item' called on an object that is not a valid instance of MimeTypeArray.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'item' on 'NodeList': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'item' on 'MimeTypeArray': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'NodeList': parameter 1"
+ context: "Failed to execute 'item' on 'MimeTypeArray': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
+ return esValue[implSymbol].item(...args);
+ }
+
+ namedItem(name) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'namedItem' called on an object that is not a valid instance of MimeTypeArray.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'namedItem' on 'MimeTypeArray': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'namedItem' on 'MimeTypeArray': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].namedItem(...args);
}
get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of NodeList.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of MimeTypeArray.");
}
return esValue[implSymbol]["length"];
}
}
- Object.defineProperties(NodeList.prototype, {
+ Object.defineProperties(MimeTypeArray.prototype, {
item: { enumerable: true },
+ namedItem: { enumerable: true },
length: { enumerable: true },
- [Symbol.toStringTag]: { value: "NodeList", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true },
- keys: { value: Array.prototype.keys, configurable: true, enumerable: true, writable: true },
- values: { value: Array.prototype[Symbol.iterator], configurable: true, enumerable: true, writable: true },
- entries: { value: Array.prototype.entries, configurable: true, enumerable: true, writable: true },
- forEach: { value: Array.prototype.forEach, configurable: true, enumerable: true, writable: true }
+ [Symbol.toStringTag]: { value: "MimeTypeArray", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = NodeList;
+ globalObject[ctorRegistrySymbol][interfaceName] = MimeTypeArray;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: NodeList
+ value: MimeTypeArray
});
};
@@ -112047,12 +107114,12 @@ const proxyHandler = {
}
};
-const Impl = __nccwpck_require__(8165);
+const Impl = __nccwpck_require__(77006);
/***/ }),
-/***/ 64546:
+/***/ 35364:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -112061,108 +107128,619 @@ const Impl = __nccwpck_require__(8165);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-exports.convert = (value, { context = "The provided value" } = {}) => {
- function invokeTheCallbackFunction(event) {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
- }
-
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- if (typeof value === "function") {
- event = utils.tryWrapperForImpl(event);
+const MouseEventInit = __nccwpck_require__(88445);
+const EventTarget = __nccwpck_require__(71038);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const UIEvent = __nccwpck_require__(58078);
- callResult = Reflect.apply(value, thisArg, [event]);
- }
+const interfaceName = "MouseEvent";
- if (callResult === null || callResult === undefined) {
- callResult = null;
- } else {
- callResult = conversions["DOMString"](callResult, { context: context });
- }
- return callResult;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
}
+ throw new TypeError(`${context} is not of type 'MouseEvent'.`);
+};
- invokeTheCallbackFunction.construct = event => {
- event = utils.tryWrapperForImpl(event);
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- let callResult = Reflect.construct(value, [event]);
+ const ctor = globalObject[ctorRegistrySymbol]["MouseEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor MouseEvent is not installed on the passed global object");
+ }
- if (callResult === null || callResult === undefined) {
- callResult = null;
- } else {
- callResult = conversions["DOMString"](callResult, { context: context });
- }
- return callResult;
- };
+ return Object.create(ctor.prototype);
+}
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- return invokeTheCallbackFunction;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
};
+exports._internalSetup = (wrapper, globalObject) => {
+ UIEvent._internalSetup(wrapper, globalObject);
+};
-/***/ }),
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
-/***/ 87517:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
-"use strict";
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
-exports.convert = (value, { context = "The provided value" } = {}) => {
- function invokeTheCallbackFunction(...args) {
- if (new.target !== undefined) {
- throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
+const exposed = new Set(["Window"]);
- if (typeof value === "function") {
- for (let i = 0; i < Math.min(args.length, 5); i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.UIEvent === undefined) {
+ throw new Error("Internal error: attempting to evaluate MouseEvent before UIEvent");
+ }
+ class MouseEvent extends globalObject.UIEvent {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'MouseEvent': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'MouseEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = MouseEventInit.convert(curArg, { context: "Failed to construct 'MouseEvent': parameter 2" });
+ args.push(curArg);
}
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ }
- if (args.length < 1) {
- for (let i = args.length; i < 1; i++) {
- args[i] = undefined;
+ getModifierState(keyArg) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getModifierState' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getModifierState' on 'MouseEvent': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getModifierState' on 'MouseEvent': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].getModifierState(...args);
+ }
+
+ initMouseEvent(typeArg) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'initMouseEvent' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'initMouseEvent' on 'MouseEvent': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 2"
+ });
+ } else {
+ curArg = false;
}
- } else if (args.length > 5) {
- args.length = 5;
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 3"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = utils.tryImplForWrapper(curArg);
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[4];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 5"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[5];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 6"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[6];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 7"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[7];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 8"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[8];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 9"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[9];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 10"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[10];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 11"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[11];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 12"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[12];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[13];
+ if (curArg !== undefined) {
+ curArg = conversions["short"](curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[14];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = EventTarget.convert(curArg, {
+ context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].initMouseEvent(...args);
+ }
+
+ get screenX() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get screenX' called on an object that is not a valid instance of MouseEvent.");
}
- callResult = Reflect.apply(value, thisArg, args);
+ return esValue[implSymbol]["screenX"];
}
- callResult = conversions["any"](callResult, { context: context });
+ get screenY() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return callResult;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get screenY' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["screenY"];
+ }
+
+ get clientX() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get clientX' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["clientX"];
+ }
+
+ get clientY() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get clientY' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["clientY"];
+ }
+
+ get ctrlKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ctrlKey' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["ctrlKey"];
+ }
+
+ get shiftKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get shiftKey' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["shiftKey"];
+ }
+
+ get altKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get altKey' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["altKey"];
+ }
+
+ get metaKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get metaKey' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["metaKey"];
+ }
+
+ get button() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get button' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["button"];
+ }
+
+ get buttons() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get buttons' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return esValue[implSymbol]["buttons"];
+ }
+
+ get relatedTarget() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get relatedTarget' called on an object that is not a valid instance of MouseEvent.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);
+ }
+ }
+ Object.defineProperties(MouseEvent.prototype, {
+ getModifierState: { enumerable: true },
+ initMouseEvent: { enumerable: true },
+ screenX: { enumerable: true },
+ screenY: { enumerable: true },
+ clientX: { enumerable: true },
+ clientY: { enumerable: true },
+ ctrlKey: { enumerable: true },
+ shiftKey: { enumerable: true },
+ altKey: { enumerable: true },
+ metaKey: { enumerable: true },
+ button: { enumerable: true },
+ buttons: { enumerable: true },
+ relatedTarget: { enumerable: true },
+ [Symbol.toStringTag]: { value: "MouseEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = MouseEvent;
- invokeTheCallbackFunction.construct = (...args) => {
- for (let i = 0; i < Math.min(args.length, 5); i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: MouseEvent
+ });
+};
+
+const Impl = __nccwpck_require__(91684);
+
+
+/***/ }),
+
+/***/ 88445:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const EventTarget = __nccwpck_require__(71038);
+const EventModifierInit = __nccwpck_require__(22409);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventModifierInit._convertInherit(obj, ret, { context });
+
+ {
+ const key = "button";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["short"](value, { context: context + " has member 'button' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
}
+ }
- if (args.length < 1) {
- for (let i = args.length; i < 1; i++) {
- args[i] = undefined;
+ {
+ const key = "buttons";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned short"](value, { context: context + " has member 'buttons' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
+
+ {
+ const key = "clientX";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["long"](value, { context: context + " has member 'clientX' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
+
+ {
+ const key = "clientY";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["long"](value, { context: context + " has member 'clientY' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
+
+ {
+ const key = "relatedTarget";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = EventTarget.convert(value, { context: context + " has member 'relatedTarget' that" });
}
- } else if (args.length > 5) {
- args.length = 5;
+ ret[key] = value;
+ } else {
+ ret[key] = null;
}
+ }
- let callResult = Reflect.construct(value, args);
+ {
+ const key = "screenX";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["long"](value, { context: context + " has member 'screenX' that" });
- callResult = conversions["any"](callResult, { context: context });
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
- return callResult;
+ {
+ const key = "screenY";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["long"](value, { context: context + " has member 'screenY' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 27319:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (typeof value !== "function") {
+ throw new TypeError(context + " is not a function");
+ }
+
+ function invokeTheCallbackFunction(mutations, observer) {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
+ }
+
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
+
+ mutations = utils.tryWrapperForImpl(mutations);
+
+ observer = utils.tryWrapperForImpl(observer);
+
+ callResult = Reflect.apply(value, thisArg, [mutations, observer]);
+ }
+
+ invokeTheCallbackFunction.construct = (mutations, observer) => {
+ mutations = utils.tryWrapperForImpl(mutations);
+
+ observer = utils.tryWrapperForImpl(observer);
+
+ let callResult = Reflect.construct(value, [mutations, observer]);
};
invokeTheCallbackFunction[utils.wrapperSymbol] = value;
@@ -112174,7 +107752,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
/***/ }),
-/***/ 32941:
+/***/ 41260:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -112183,12 +107761,13 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const PageTransitionEventInit = __nccwpck_require__(21782);
+const MutationCallback = __nccwpck_require__(27319);
+const Node = __nccwpck_require__(41209);
+const MutationObserverInit = __nccwpck_require__(3901);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-const interfaceName = "PageTransitionEvent";
+const interfaceName = "MutationObserver";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -112200,7 +107779,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'PageTransitionEvent'.`);
+ throw new TypeError(`${context} is not of type 'MutationObserver'.`);
};
function makeWrapper(globalObject) {
@@ -112208,9 +107787,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["PageTransitionEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["MutationObserver"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor PageTransitionEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor MutationObserver is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -112226,9 +107805,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -112246,7 +107823,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -112268,67 +107845,93 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
+ class MutationObserver {
+ constructor(callback) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'MutationObserver': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = MutationCallback.convert(curArg, { context: "Failed to construct 'MutationObserver': parameter 1" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ }
+
+ observe(target) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'observe' called on an object that is not a valid instance of MutationObserver.");
+ }
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate PageTransitionEvent before Event");
- }
- class PageTransitionEvent extends globalObject.Event {
- constructor(type) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'PageTransitionEvent': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'observe' on 'MutationObserver': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'PageTransitionEvent': parameter 1"
- });
+ curArg = Node.convert(curArg, { context: "Failed to execute 'observe' on 'MutationObserver': parameter 1" });
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = PageTransitionEventInit.convert(curArg, {
- context: "Failed to construct 'PageTransitionEvent': parameter 2"
+ curArg = MutationObserverInit.convert(curArg, {
+ context: "Failed to execute 'observe' on 'MutationObserver': parameter 2"
});
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return esValue[implSymbol].observe(...args);
}
- get persisted() {
+ disconnect() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'disconnect' called on an object that is not a valid instance of MutationObserver.");
+ }
+ return esValue[implSymbol].disconnect();
+ }
+
+ takeRecords() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get persisted' called on an object that is not a valid instance of PageTransitionEvent.");
+ throw new TypeError("'takeRecords' called on an object that is not a valid instance of MutationObserver.");
}
- return esValue[implSymbol]["persisted"];
+ return utils.tryWrapperForImpl(esValue[implSymbol].takeRecords());
}
}
- Object.defineProperties(PageTransitionEvent.prototype, {
- persisted: { enumerable: true },
- [Symbol.toStringTag]: { value: "PageTransitionEvent", configurable: true }
+ Object.defineProperties(MutationObserver.prototype, {
+ observe: { enumerable: true },
+ disconnect: { enumerable: true },
+ takeRecords: { enumerable: true },
+ [Symbol.toStringTag]: { value: "MutationObserver", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = PageTransitionEvent;
+ globalObject[ctorRegistrySymbol][interfaceName] = MutationObserver;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: PageTransitionEvent
+ value: MutationObserver
});
};
-const Impl = __nccwpck_require__(50265);
+const Impl = __nccwpck_require__(53464);
/***/ }),
-/***/ 21782:
+/***/ 3901:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -112337,16 +107940,87 @@ const Impl = __nccwpck_require__(50265);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const EventInit = __nccwpck_require__(4895);
-
exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+ {
+ const key = "attributeFilter";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(context + " has member 'attributeFilter' that" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = value;
+ for (let nextItem of tmp) {
+ nextItem = conversions["DOMString"](nextItem, {
+ context: context + " has member 'attributeFilter' that" + "'s element"
+ });
+
+ V.push(nextItem);
+ }
+ value = V;
+ }
+
+ ret[key] = value;
+ }
+ }
{
- const key = "persisted";
+ const key = "attributeOldValue";
let value = obj === undefined || obj === null ? undefined : obj[key];
if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'persisted' that" });
+ value = conversions["boolean"](value, { context: context + " has member 'attributeOldValue' that" });
+
+ ret[key] = value;
+ }
+ }
+
+ {
+ const key = "attributes";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'attributes' that" });
+
+ ret[key] = value;
+ }
+ }
+
+ {
+ const key = "characterData";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'characterData' that" });
+
+ ret[key] = value;
+ }
+ }
+
+ {
+ const key = "characterDataOldValue";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'characterDataOldValue' that" });
+
+ ret[key] = value;
+ }
+ }
+
+ {
+ const key = "childList";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'childList' that" });
+
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
+ }
+
+ {
+ const key = "subtree";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'subtree' that" });
ret[key] = value;
} else {
@@ -112368,7 +108042,7 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
/***/ }),
-/***/ 19264:
+/***/ 34198:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -112379,9 +108053,8 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-const interfaceName = "Performance";
+const interfaceName = "MutationRecord";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -112393,7 +108066,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Performance'.`);
+ throw new TypeError(`${context} is not of type 'MutationRecord'.`);
};
function makeWrapper(globalObject) {
@@ -112401,9 +108074,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Performance"];
+ const ctor = globalObject[ctorRegistrySymbol]["MutationRecord"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Performance is not installed on the passed global object");
+ throw new Error("Internal error: constructor MutationRecord is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -112419,9 +108092,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -112439,7 +108110,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -112455,73 +108126,147 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.EventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate Performance before EventTarget");
- }
- class Performance extends globalObject.EventTarget {
+ class MutationRecord {
constructor() {
throw new TypeError("Illegal constructor");
}
- now() {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'now' called on an object that is not a valid instance of Performance.");
+ throw new TypeError("'get type' called on an object that is not a valid instance of MutationRecord.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].now());
+ return esValue[implSymbol]["type"];
}
- toJSON() {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toJSON' called on an object that is not a valid instance of Performance.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of MutationRecord.");
}
- return esValue[implSymbol].toJSON();
+ return utils.getSameObject(this, "target", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
+ });
}
- get timeOrigin() {
+ get addedNodes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get timeOrigin' called on an object that is not a valid instance of Performance.");
+ throw new TypeError("'get addedNodes' called on an object that is not a valid instance of MutationRecord.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["timeOrigin"]);
+ return utils.getSameObject(this, "addedNodes", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["addedNodes"]);
+ });
+ }
+
+ get removedNodes() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get removedNodes' called on an object that is not a valid instance of MutationRecord.");
+ }
+
+ return utils.getSameObject(this, "removedNodes", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["removedNodes"]);
+ });
+ }
+
+ get previousSibling() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get previousSibling' called on an object that is not a valid instance of MutationRecord."
+ );
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["previousSibling"]);
+ }
+
+ get nextSibling() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get nextSibling' called on an object that is not a valid instance of MutationRecord.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["nextSibling"]);
+ }
+
+ get attributeName() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get attributeName' called on an object that is not a valid instance of MutationRecord.");
+ }
+
+ return esValue[implSymbol]["attributeName"];
+ }
+
+ get attributeNamespace() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get attributeNamespace' called on an object that is not a valid instance of MutationRecord."
+ );
+ }
+
+ return esValue[implSymbol]["attributeNamespace"];
+ }
+
+ get oldValue() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oldValue' called on an object that is not a valid instance of MutationRecord.");
+ }
+
+ return esValue[implSymbol]["oldValue"];
}
}
- Object.defineProperties(Performance.prototype, {
- now: { enumerable: true },
- toJSON: { enumerable: true },
- timeOrigin: { enumerable: true },
- [Symbol.toStringTag]: { value: "Performance", configurable: true }
+ Object.defineProperties(MutationRecord.prototype, {
+ type: { enumerable: true },
+ target: { enumerable: true },
+ addedNodes: { enumerable: true },
+ removedNodes: { enumerable: true },
+ previousSibling: { enumerable: true },
+ nextSibling: { enumerable: true },
+ attributeName: { enumerable: true },
+ attributeNamespace: { enumerable: true },
+ oldValue: { enumerable: true },
+ [Symbol.toStringTag]: { value: "MutationRecord", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Performance;
+ globalObject[ctorRegistrySymbol][interfaceName] = MutationRecord;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Performance
+ value: MutationRecord
});
};
-const Impl = __nccwpck_require__(91248);
+const Impl = __nccwpck_require__(87203);
/***/ }),
-/***/ 79870:
+/***/ 90212:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -112530,10 +108275,13 @@ const Impl = __nccwpck_require__(91248);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const Attr = __nccwpck_require__(78717);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "Plugin";
+const interfaceName = "NamedNodeMap";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -112545,7 +108293,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Plugin'.`);
+ throw new TypeError(`${context} is not of type 'NamedNodeMap'.`);
};
function makeWrapper(globalObject) {
@@ -112553,9 +108301,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Plugin"];
+ const ctor = globalObject[ctorRegistrySymbol]["NamedNodeMap"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Plugin is not installed on the passed global object");
+ throw new Error("Internal error: constructor NamedNodeMap is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -112591,7 +108339,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -112615,7 +108363,7 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class Plugin {
+ class NamedNodeMap {
constructor() {
throw new TypeError("Illegal constructor");
}
@@ -112623,104 +108371,238 @@ exports.install = (globalObject, globalNames) => {
item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of Plugin.");
+ throw new TypeError("'item' called on an object that is not a valid instance of NamedNodeMap.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'item' on 'Plugin': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'item' on 'NamedNodeMap': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, { context: "Failed to execute 'item' on 'Plugin': parameter 1" });
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'NamedNodeMap': parameter 1"
+ });
args.push(curArg);
}
return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
}
- namedItem(name) {
+ getNamedItem(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'namedItem' called on an object that is not a valid instance of Plugin.");
+ throw new TypeError("'getNamedItem' called on an object that is not a valid instance of NamedNodeMap.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'namedItem' on 'Plugin': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'getNamedItem' on 'NamedNodeMap': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'Plugin': parameter 1"
+ context: "Failed to execute 'getNamedItem' on 'NamedNodeMap': parameter 1"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
+ return utils.tryWrapperForImpl(esValue[implSymbol].getNamedItem(...args));
}
- get name() {
+ getNamedItemNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get name' called on an object that is not a valid instance of Plugin.");
+ throw new TypeError("'getNamedItemNS' called on an object that is not a valid instance of NamedNodeMap.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["name"]);
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': parameter 1"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].getNamedItemNS(...args));
}
- get description() {
+ setNamedItem(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'setNamedItem' called on an object that is not a valid instance of NamedNodeMap.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setNamedItem' on 'NamedNodeMap': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Attr.convert(curArg, { context: "Failed to execute 'setNamedItem' on 'NamedNodeMap': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].setNamedItem(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ setNamedItemNS(attr) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get description' called on an object that is not a valid instance of Plugin.");
+ throw new TypeError("'setNamedItemNS' called on an object that is not a valid instance of NamedNodeMap.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["description"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setNamedItemNS' on 'NamedNodeMap': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Attr.convert(curArg, { context: "Failed to execute 'setNamedItemNS' on 'NamedNodeMap': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].setNamedItemNS(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get filename() {
+ removeNamedItem(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'removeNamedItem' called on an object that is not a valid instance of NamedNodeMap.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'removeNamedItem' on 'NamedNodeMap': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeNamedItem' on 'NamedNodeMap': parameter 1"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].removeNamedItem(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ removeNamedItemNS(namespace, localName) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get filename' called on an object that is not a valid instance of Plugin.");
+ throw new TypeError("'removeNamedItemNS' called on an object that is not a valid instance of NamedNodeMap.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["filename"]);
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': parameter 1"
+ });
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': parameter 2"
+ });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].removeNamedItemNS(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of Plugin.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of NamedNodeMap.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["length"]);
+ return esValue[implSymbol]["length"];
}
}
- Object.defineProperties(Plugin.prototype, {
+ Object.defineProperties(NamedNodeMap.prototype, {
item: { enumerable: true },
- namedItem: { enumerable: true },
- name: { enumerable: true },
- description: { enumerable: true },
- filename: { enumerable: true },
+ getNamedItem: { enumerable: true },
+ getNamedItemNS: { enumerable: true },
+ setNamedItem: { enumerable: true },
+ setNamedItemNS: { enumerable: true },
+ removeNamedItem: { enumerable: true },
+ removeNamedItemNS: { enumerable: true },
length: { enumerable: true },
- [Symbol.toStringTag]: { value: "Plugin", configurable: true },
+ [Symbol.toStringTag]: { value: "NamedNodeMap", configurable: true },
[Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Plugin;
+ globalObject[ctorRegistrySymbol][interfaceName] = NamedNodeMap;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Plugin
+ value: NamedNodeMap
});
};
@@ -112769,6 +108651,12 @@ const proxyHandler = {
keys.add(`${key}`);
}
+ for (const key of target[implSymbol][utils.supportedPropertyNames]) {
+ if (!(key in target)) {
+ keys.add(`${key}`);
+ }
+ }
+
for (const key of Reflect.ownKeys(target)) {
keys.add(key);
}
@@ -112783,9 +108671,8 @@ const proxyHandler = {
if (utils.isArrayIndexPropName(P)) {
const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].item(index);
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
return {
writable: false,
enumerable: true,
@@ -112796,6 +108683,17 @@ const proxyHandler = {
ignoreNamedProps = true;
}
+ const namedValue = target[implSymbol].getNamedItem(P);
+
+ if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
+ return {
+ writable: false,
+ enumerable: false,
+ configurable: true,
+ value: utils.tryWrapperForImpl(namedValue)
+ };
+ }
+
return Reflect.getOwnPropertyDescriptor(target, P);
},
@@ -112811,9 +108709,8 @@ const proxyHandler = {
if (utils.isArrayIndexPropName(P)) {
const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].item(index);
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
ownDesc = {
writable: false,
enumerable: true,
@@ -112863,7 +108760,12 @@ const proxyHandler = {
if (utils.isArrayIndexPropName(P)) {
return false;
}
-
+ if (!utils.hasOwn(target, P)) {
+ const creating = !(target[implSymbol].getNamedItem(P) !== null);
+ if (!creating) {
+ return false;
+ }
+ }
return Reflect.defineProperty(target, P, desc);
},
@@ -112874,7 +108776,11 @@ const proxyHandler = {
if (utils.isArrayIndexPropName(P)) {
const index = P >>> 0;
- return !target[implSymbol][utils.supportsPropertyIndex](index);
+ return !(target[implSymbol].item(index) !== null);
+ }
+
+ if (target[implSymbol].getNamedItem(P) !== null && !(P in target)) {
+ return false;
}
return Reflect.deleteProperty(target, P);
@@ -112885,12 +108791,12 @@ const proxyHandler = {
}
};
-const Impl = __nccwpck_require__(49869);
+const Impl = __nccwpck_require__(28698);
/***/ }),
-/***/ 9432:
+/***/ 96340:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -112902,7 +108808,7 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "PluginArray";
+const interfaceName = "Navigator";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -112914,7 +108820,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'PluginArray'.`);
+ throw new TypeError(`${context} is not of type 'Navigator'.`);
};
function makeWrapper(globalObject) {
@@ -112922,9 +108828,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["PluginArray"];
+ const ctor = globalObject[ctorRegistrySymbol]["Navigator"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor PluginArray is not installed on the passed global object");
+ throw new Error("Internal error: constructor Navigator is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -112951,8 +108857,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -112960,8 +108864,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -112969,8 +108873,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -112984,451 +108886,222 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class PluginArray {
+ class Navigator {
constructor() {
throw new TypeError("Illegal constructor");
}
- refresh() {
+ javaEnabled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'refresh' called on an object that is not a valid instance of PluginArray.");
+ throw new TypeError("'javaEnabled' called on an object that is not a valid instance of Navigator.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].refresh());
+ return esValue[implSymbol].javaEnabled();
}
- item(index) {
+ get appCodeName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of PluginArray.");
+ throw new TypeError("'get appCodeName' called on an object that is not a valid instance of Navigator.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'item' on 'PluginArray': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'PluginArray': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].item(...args);
+ return esValue[implSymbol]["appCodeName"];
}
- namedItem(name) {
+ get appName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'namedItem' called on an object that is not a valid instance of PluginArray.");
+ throw new TypeError("'get appName' called on an object that is not a valid instance of Navigator.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'namedItem' on 'PluginArray': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'PluginArray': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].namedItem(...args);
+ return esValue[implSymbol]["appName"];
}
- get length() {
+ get appVersion() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of PluginArray.");
+ throw new TypeError("'get appVersion' called on an object that is not a valid instance of Navigator.");
}
- return esValue[implSymbol]["length"];
+ return esValue[implSymbol]["appVersion"];
}
- }
- Object.defineProperties(PluginArray.prototype, {
- refresh: { enumerable: true },
- item: { enumerable: true },
- namedItem: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "PluginArray", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = PluginArray;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: PluginArray
- });
-};
+ get platform() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get platform' called on an object that is not a valid instance of Navigator.");
}
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
+ return esValue[implSymbol]["platform"];
}
- return false;
- },
- ownKeys(target) {
- const keys = new Set();
+ get product() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get product' called on an object that is not a valid instance of Navigator.");
+ }
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
+ return esValue[implSymbol]["product"];
}
- return [...keys];
- },
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
+ get productSub() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get productSub' called on an object that is not a valid instance of Navigator.");
}
- ignoreNamedProps = true;
- }
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ return esValue[implSymbol]["productSub"];
}
- let ownDesc;
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
+ get userAgent() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get userAgent' called on an object that is not a valid instance of Navigator.");
}
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
- if (utils.isArrayIndexPropName(P)) {
- return false;
+ return esValue[implSymbol]["userAgent"];
}
- return Reflect.defineProperty(target, P, desc);
- },
+ get vendor() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get vendor' called on an object that is not a valid instance of Navigator.");
+ }
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
+ return esValue[implSymbol]["vendor"];
}
- return Reflect.deleteProperty(target, P);
- },
-
- preventExtensions() {
- return false;
- }
-};
-
-const Impl = __nccwpck_require__(28482);
-
-
-/***/ }),
-
-/***/ 57448:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
+ get vendorSub() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get vendorSub' called on an object that is not a valid instance of Navigator.");
+ }
-const PopStateEventInit = __nccwpck_require__(18089);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+ return esValue[implSymbol]["vendorSub"];
+ }
-const interfaceName = "PopStateEvent";
+ get language() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'PopStateEvent'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get language' called on an object that is not a valid instance of Navigator.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ return esValue[implSymbol]["language"];
+ }
- const ctor = globalObject[ctorRegistrySymbol]["PopStateEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor PopStateEvent is not installed on the passed global object");
- }
+ get languages() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get languages' called on an object that is not a valid instance of Navigator.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["languages"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ get onLine() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onLine' called on an object that is not a valid instance of Navigator.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ return esValue[implSymbol]["onLine"];
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ get cookieEnabled() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get cookieEnabled' called on an object that is not a valid instance of Navigator.");
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ return esValue[implSymbol]["cookieEnabled"];
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ get plugins() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get plugins' called on an object that is not a valid instance of Navigator.");
+ }
-const exposed = new Set(["Window"]);
+ return utils.getSameObject(this, "plugins", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["plugins"]);
+ });
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ get mimeTypes() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate PopStateEvent before Event");
- }
- class PopStateEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'PopStateEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'PopStateEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = PopStateEventInit.convert(curArg, { context: "Failed to construct 'PopStateEvent': parameter 2" });
- args.push(curArg);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get mimeTypes' called on an object that is not a valid instance of Navigator.");
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+
+ return utils.getSameObject(this, "mimeTypes", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["mimeTypes"]);
+ });
}
- get state() {
+ get hardwareConcurrency() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get state' called on an object that is not a valid instance of PopStateEvent.");
+ throw new TypeError("'get hardwareConcurrency' called on an object that is not a valid instance of Navigator.");
}
- return esValue[implSymbol]["state"];
+ return esValue[implSymbol]["hardwareConcurrency"];
}
}
- Object.defineProperties(PopStateEvent.prototype, {
- state: { enumerable: true },
- [Symbol.toStringTag]: { value: "PopStateEvent", configurable: true }
+ Object.defineProperties(Navigator.prototype, {
+ javaEnabled: { enumerable: true },
+ appCodeName: { enumerable: true },
+ appName: { enumerable: true },
+ appVersion: { enumerable: true },
+ platform: { enumerable: true },
+ product: { enumerable: true },
+ productSub: { enumerable: true },
+ userAgent: { enumerable: true },
+ vendor: { enumerable: true },
+ vendorSub: { enumerable: true },
+ language: { enumerable: true },
+ languages: { enumerable: true },
+ onLine: { enumerable: true },
+ cookieEnabled: { enumerable: true },
+ plugins: { enumerable: true },
+ mimeTypes: { enumerable: true },
+ hardwareConcurrency: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Navigator", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = PopStateEvent;
+ globalObject[ctorRegistrySymbol][interfaceName] = Navigator;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: PopStateEvent
+ value: Navigator
});
};
-const Impl = __nccwpck_require__(46633);
-
-
-/***/ }),
-
-/***/ 18089:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
-
- {
- const key = "state";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'state' that" });
-
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+const Impl = __nccwpck_require__(48925);
/***/ }),
-/***/ 75221:
+/***/ 41209:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -113437,11 +109110,14 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const GetRootNodeOptions = __nccwpck_require__(99981);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const CharacterData = __nccwpck_require__(30948);
+const EventTarget = __nccwpck_require__(71038);
-const interfaceName = "ProcessingInstruction";
+const interfaceName = "Node";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -113453,7 +109129,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'ProcessingInstruction'.`);
+ throw new TypeError(`${context} is not of type 'Node'.`);
};
function makeWrapper(globalObject) {
@@ -113461,9 +109137,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["ProcessingInstruction"];
+ const ctor = globalObject[ctorRegistrySymbol]["Node"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor ProcessingInstruction is not installed on the passed global object");
+ throw new Error("Internal error: constructor Node is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -113480,7 +109156,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- CharacterData._internalSetup(wrapper, globalObject);
+ EventTarget._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -113499,7 +109175,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -113522,451 +109198,133 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.CharacterData === undefined) {
- throw new Error("Internal error: attempting to evaluate ProcessingInstruction before CharacterData");
+ if (globalObject.EventTarget === undefined) {
+ throw new Error("Internal error: attempting to evaluate Node before EventTarget");
}
- class ProcessingInstruction extends globalObject.CharacterData {
+ class Node extends globalObject.EventTarget {
constructor() {
throw new TypeError("Illegal constructor");
}
- get target() {
+ getRootNode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get target' called on an object that is not a valid instance of ProcessingInstruction.");
- }
-
- return esValue[implSymbol]["target"];
- }
- }
- Object.defineProperties(ProcessingInstruction.prototype, {
- target: { enumerable: true },
- [Symbol.toStringTag]: { value: "ProcessingInstruction", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = ProcessingInstruction;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ProcessingInstruction
- });
-};
-
-const Impl = __nccwpck_require__(71952);
-
-
-/***/ }),
-
-/***/ 34426:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ProgressEventInit = __nccwpck_require__(24624);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "ProgressEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'ProgressEvent'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["ProgressEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor ProgressEvent is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate ProgressEvent before Event");
- }
- class ProgressEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'ProgressEvent': 1 argument required, but only " + arguments.length + " present."
- );
+ throw new TypeError("'getRootNode' called on an object that is not a valid instance of Node.");
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'ProgressEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = ProgressEventInit.convert(curArg, { context: "Failed to construct 'ProgressEvent': parameter 2" });
+ curArg = GetRootNodeOptions.convert(curArg, {
+ context: "Failed to execute 'getRootNode' on 'Node': parameter 1"
+ });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].getRootNode(...args));
}
- get lengthComputable() {
+ hasChildNodes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get lengthComputable' called on an object that is not a valid instance of ProgressEvent."
- );
+ throw new TypeError("'hasChildNodes' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol]["lengthComputable"];
+ return esValue[implSymbol].hasChildNodes();
}
- get loaded() {
+ normalize() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get loaded' called on an object that is not a valid instance of ProgressEvent.");
+ throw new TypeError("'normalize' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol]["loaded"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].normalize();
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get total() {
+ cloneNode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get total' called on an object that is not a valid instance of ProgressEvent.");
+ throw new TypeError("'cloneNode' called on an object that is not a valid instance of Node.");
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, { context: "Failed to execute 'cloneNode' on 'Node': parameter 1" });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].cloneNode(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
-
- return esValue[implSymbol]["total"];
- }
- }
- Object.defineProperties(ProgressEvent.prototype, {
- lengthComputable: { enumerable: true },
- loaded: { enumerable: true },
- total: { enumerable: true },
- [Symbol.toStringTag]: { value: "ProgressEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = ProgressEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ProgressEvent
- });
-};
-
-const Impl = __nccwpck_require__(38424);
-
-
-/***/ }),
-
-/***/ 24624:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
-
- {
- const key = "lengthComputable";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'lengthComputable' that" });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "loaded";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long long"](value, { context: context + " has member 'loaded' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "total";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long long"](value, { context: context + " has member 'total' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 38522:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const AbstractRange = __nccwpck_require__(10083);
-
-const interfaceName = "Range";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Range'.`);
-};
-
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
-
- const ctor = globalObject[ctorRegistrySymbol]["Range"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Range is not installed on the passed global object");
- }
-
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- AbstractRange._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.AbstractRange === undefined) {
- throw new Error("Internal error: attempting to evaluate Range before AbstractRange");
- }
- class Range extends globalObject.AbstractRange {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- setStart(node, offset) {
+ isEqualNode(otherNode) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setStart' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'isEqualNode' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setStart' on 'Range': 2 arguments required, but only " + arguments.length + " present."
+ "Failed to execute 'isEqualNode' on 'Node': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setStart' on 'Range': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setStart' on 'Range': parameter 2"
- });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = exports.convert(curArg, { context: "Failed to execute 'isEqualNode' on 'Node': parameter 1" });
+ }
args.push(curArg);
}
- return esValue[implSymbol].setStart(...args);
+ return esValue[implSymbol].isEqualNode(...args);
}
- setEnd(node, offset) {
+ isSameNode(otherNode) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setEnd' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'isSameNode' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setEnd' on 'Range': 2 arguments required, but only " + arguments.length + " present."
+ "Failed to execute 'isSameNode' on 'Node': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setEnd' on 'Range': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setEnd' on 'Range': parameter 2"
- });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = exports.convert(curArg, { context: "Failed to execute 'isSameNode' on 'Node': parameter 1" });
+ }
args.push(curArg);
}
- return esValue[implSymbol].setEnd(...args);
+ return esValue[implSymbol].isSameNode(...args);
}
- setStartBefore(node) {
+ compareDocumentPosition(other) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setStartBefore' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'compareDocumentPosition' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setStartBefore' on 'Range': 1 argument required, but only " +
+ "Failed to execute 'compareDocumentPosition' on 'Node': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -113974,121 +109332,101 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setStartBefore' on 'Range': parameter 1" });
+ curArg = exports.convert(curArg, {
+ context: "Failed to execute 'compareDocumentPosition' on 'Node': parameter 1"
+ });
args.push(curArg);
}
- return esValue[implSymbol].setStartBefore(...args);
+ return esValue[implSymbol].compareDocumentPosition(...args);
}
- setStartAfter(node) {
+ contains(other) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setStartAfter' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'contains' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setStartAfter' on 'Range': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'contains' on 'Node': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setStartAfter' on 'Range': parameter 1" });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = exports.convert(curArg, { context: "Failed to execute 'contains' on 'Node': parameter 1" });
+ }
args.push(curArg);
}
- return esValue[implSymbol].setStartAfter(...args);
+ return esValue[implSymbol].contains(...args);
}
- setEndBefore(node) {
+ lookupPrefix(namespace) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setEndBefore' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'lookupPrefix' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'setEndBefore' on 'Range': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'lookupPrefix' on 'Node': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setEndBefore' on 'Range': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].setEndBefore(...args);
- }
-
- setEndAfter(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'setEndAfter' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setEndAfter' on 'Range': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setEndAfter' on 'Range': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].setEndAfter(...args);
- }
-
- collapse() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'collapse' called on an object that is not a valid instance of Range.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, { context: "Failed to execute 'collapse' on 'Range': parameter 1" });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
} else {
- curArg = false;
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'lookupPrefix' on 'Node': parameter 1"
+ });
}
args.push(curArg);
}
- return esValue[implSymbol].collapse(...args);
+ return esValue[implSymbol].lookupPrefix(...args);
}
- selectNode(node) {
+ lookupNamespaceURI(prefix) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'selectNode' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'lookupNamespaceURI' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'selectNode' on 'Range': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'lookupNamespaceURI' on 'Node': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'selectNode' on 'Range': parameter 1" });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'lookupNamespaceURI' on 'Node': parameter 1"
+ });
+ }
args.push(curArg);
}
- return esValue[implSymbol].selectNode(...args);
+ return esValue[implSymbol].lookupNamespaceURI(...args);
}
- selectNodeContents(node) {
+ isDefaultNamespace(namespace) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'selectNodeContents' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'isDefaultNamespace' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'selectNodeContents' on 'Range': 1 argument required, but only " +
+ "Failed to execute 'isDefaultNamespace' on 'Node': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -114096,337 +109434,500 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'selectNodeContents' on 'Range': parameter 1" });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'isDefaultNamespace' on 'Node': parameter 1"
+ });
+ }
args.push(curArg);
}
- return esValue[implSymbol].selectNodeContents(...args);
+ return esValue[implSymbol].isDefaultNamespace(...args);
}
- compareBoundaryPoints(how, sourceRange) {
+ insertBefore(node, child) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'compareBoundaryPoints' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'insertBefore' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'compareBoundaryPoints' on 'Range': 2 arguments required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["unsigned short"](curArg, {
- context: "Failed to execute 'compareBoundaryPoints' on 'Range': parameter 1"
- });
+ curArg = exports.convert(curArg, { context: "Failed to execute 'insertBefore' on 'Node': parameter 1" });
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = exports.convert(curArg, {
- context: "Failed to execute 'compareBoundaryPoints' on 'Range': parameter 2"
- });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = exports.convert(curArg, { context: "Failed to execute 'insertBefore' on 'Node': parameter 2" });
+ }
args.push(curArg);
}
- return esValue[implSymbol].compareBoundaryPoints(...args);
- }
-
- deleteContents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'deleteContents' called on an object that is not a valid instance of Range.");
- }
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].deleteContents();
+ return utils.tryWrapperForImpl(esValue[implSymbol].insertBefore(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- extractContents() {
+ appendChild(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'extractContents' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'appendChild' called on an object that is not a valid instance of Node.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].extractContents());
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'appendChild' on 'Node': 1 argument required, but only " + arguments.length + " present."
+ );
}
- }
-
- cloneContents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'cloneContents' called on an object that is not a valid instance of Range.");
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = exports.convert(curArg, { context: "Failed to execute 'appendChild' on 'Node': parameter 1" });
+ args.push(curArg);
}
-
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return utils.tryWrapperForImpl(esValue[implSymbol].cloneContents());
+ return utils.tryWrapperForImpl(esValue[implSymbol].appendChild(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- insertNode(node) {
+ replaceChild(node, child) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'insertNode' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'replaceChild' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'insertNode' on 'Range': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'insertNode' on 'Range': parameter 1" });
+ curArg = exports.convert(curArg, { context: "Failed to execute 'replaceChild' on 'Node': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = exports.convert(curArg, { context: "Failed to execute 'replaceChild' on 'Node': parameter 2" });
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].insertNode(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].replaceChild(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- surroundContents(newParent) {
+ removeChild(child) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'surroundContents' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'removeChild' called on an object that is not a valid instance of Node.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'surroundContents' on 'Range': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'removeChild' on 'Node': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'surroundContents' on 'Range': parameter 1" });
+ curArg = exports.convert(curArg, { context: "Failed to execute 'removeChild' on 'Node': parameter 1" });
args.push(curArg);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return esValue[implSymbol].surroundContents(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].removeChild(...args));
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- cloneRange() {
+ get nodeType() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'cloneRange' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get nodeType' called on an object that is not a valid instance of Node.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].cloneRange());
+ return esValue[implSymbol]["nodeType"];
}
- detach() {
+ get nodeName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'detach' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get nodeName' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol].detach();
+ return esValue[implSymbol]["nodeName"];
}
- isPointInRange(node, offset) {
+ get baseURI() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'isPointInRange' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get baseURI' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'isPointInRange' on 'Range': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'isPointInRange' on 'Range': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'isPointInRange' on 'Range': parameter 2"
- });
- args.push(curArg);
+ return esValue[implSymbol]["baseURI"];
+ }
+
+ get isConnected() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get isConnected' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol].isPointInRange(...args);
+
+ return esValue[implSymbol]["isConnected"];
}
- comparePoint(node, offset) {
+ get ownerDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'comparePoint' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get ownerDocument' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'comparePoint' on 'Range': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ownerDocument"]);
+ }
+
+ get parentNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get parentNode' called on an object that is not a valid instance of Node.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'comparePoint' on 'Range': parameter 1" });
- args.push(curArg);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["parentNode"]);
+ }
+
+ get parentElement() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get parentElement' called on an object that is not a valid instance of Node.");
}
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'comparePoint' on 'Range': parameter 2"
- });
- args.push(curArg);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["parentElement"]);
+ }
+
+ get childNodes() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get childNodes' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol].comparePoint(...args);
+
+ return utils.getSameObject(this, "childNodes", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["childNodes"]);
+ });
}
- intersectsNode(node) {
+ get firstChild() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'intersectsNode' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get firstChild' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'intersectsNode' on 'Range': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ return utils.tryWrapperForImpl(esValue[implSymbol]["firstChild"]);
+ }
+
+ get lastChild() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get lastChild' called on an object that is not a valid instance of Node.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'intersectsNode' on 'Range': parameter 1" });
- args.push(curArg);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["lastChild"]);
+ }
+
+ get previousSibling() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get previousSibling' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol].intersectsNode(...args);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["previousSibling"]);
}
- toString() {
+ get nextSibling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toString' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get nextSibling' called on an object that is not a valid instance of Node.");
}
- return esValue[implSymbol].toString();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["nextSibling"]);
}
- createContextualFragment(fragment) {
+ get nodeValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'createContextualFragment' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get nodeValue' called on an object that is not a valid instance of Node.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'createContextualFragment' on 'Range': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["nodeValue"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createContextualFragment' on 'Range': parameter 1"
+ }
+
+ set nodeValue(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set nodeValue' called on an object that is not a valid instance of Node.");
+ }
+
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'nodeValue' property on 'Node': The provided value"
});
- args.push(curArg);
}
+
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
- return utils.tryWrapperForImpl(esValue[implSymbol].createContextualFragment(...args));
+ esValue[implSymbol]["nodeValue"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
- get commonAncestorContainer() {
+ get textContent() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get commonAncestorContainer' called on an object that is not a valid instance of Range.");
+ throw new TypeError("'get textContent' called on an object that is not a valid instance of Node.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["commonAncestorContainer"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["textContent"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set textContent(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set textContent' called on an object that is not a valid instance of Node.");
+ }
+
+ if (V === null || V === undefined) {
+ V = null;
+ } else {
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'textContent' property on 'Node': The provided value"
+ });
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["textContent"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
}
- Object.defineProperties(Range.prototype, {
- setStart: { enumerable: true },
- setEnd: { enumerable: true },
- setStartBefore: { enumerable: true },
- setStartAfter: { enumerable: true },
- setEndBefore: { enumerable: true },
- setEndAfter: { enumerable: true },
- collapse: { enumerable: true },
- selectNode: { enumerable: true },
- selectNodeContents: { enumerable: true },
- compareBoundaryPoints: { enumerable: true },
- deleteContents: { enumerable: true },
- extractContents: { enumerable: true },
- cloneContents: { enumerable: true },
- insertNode: { enumerable: true },
- surroundContents: { enumerable: true },
- cloneRange: { enumerable: true },
- detach: { enumerable: true },
- isPointInRange: { enumerable: true },
- comparePoint: { enumerable: true },
- intersectsNode: { enumerable: true },
- toString: { enumerable: true },
- createContextualFragment: { enumerable: true },
- commonAncestorContainer: { enumerable: true },
- [Symbol.toStringTag]: { value: "Range", configurable: true },
- START_TO_START: { value: 0, enumerable: true },
- START_TO_END: { value: 1, enumerable: true },
- END_TO_END: { value: 2, enumerable: true },
- END_TO_START: { value: 3, enumerable: true }
+ Object.defineProperties(Node.prototype, {
+ getRootNode: { enumerable: true },
+ hasChildNodes: { enumerable: true },
+ normalize: { enumerable: true },
+ cloneNode: { enumerable: true },
+ isEqualNode: { enumerable: true },
+ isSameNode: { enumerable: true },
+ compareDocumentPosition: { enumerable: true },
+ contains: { enumerable: true },
+ lookupPrefix: { enumerable: true },
+ lookupNamespaceURI: { enumerable: true },
+ isDefaultNamespace: { enumerable: true },
+ insertBefore: { enumerable: true },
+ appendChild: { enumerable: true },
+ replaceChild: { enumerable: true },
+ removeChild: { enumerable: true },
+ nodeType: { enumerable: true },
+ nodeName: { enumerable: true },
+ baseURI: { enumerable: true },
+ isConnected: { enumerable: true },
+ ownerDocument: { enumerable: true },
+ parentNode: { enumerable: true },
+ parentElement: { enumerable: true },
+ childNodes: { enumerable: true },
+ firstChild: { enumerable: true },
+ lastChild: { enumerable: true },
+ previousSibling: { enumerable: true },
+ nextSibling: { enumerable: true },
+ nodeValue: { enumerable: true },
+ textContent: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Node", configurable: true },
+ ELEMENT_NODE: { value: 1, enumerable: true },
+ ATTRIBUTE_NODE: { value: 2, enumerable: true },
+ TEXT_NODE: { value: 3, enumerable: true },
+ CDATA_SECTION_NODE: { value: 4, enumerable: true },
+ ENTITY_REFERENCE_NODE: { value: 5, enumerable: true },
+ ENTITY_NODE: { value: 6, enumerable: true },
+ PROCESSING_INSTRUCTION_NODE: { value: 7, enumerable: true },
+ COMMENT_NODE: { value: 8, enumerable: true },
+ DOCUMENT_NODE: { value: 9, enumerable: true },
+ DOCUMENT_TYPE_NODE: { value: 10, enumerable: true },
+ DOCUMENT_FRAGMENT_NODE: { value: 11, enumerable: true },
+ NOTATION_NODE: { value: 12, enumerable: true },
+ DOCUMENT_POSITION_DISCONNECTED: { value: 0x01, enumerable: true },
+ DOCUMENT_POSITION_PRECEDING: { value: 0x02, enumerable: true },
+ DOCUMENT_POSITION_FOLLOWING: { value: 0x04, enumerable: true },
+ DOCUMENT_POSITION_CONTAINS: { value: 0x08, enumerable: true },
+ DOCUMENT_POSITION_CONTAINED_BY: { value: 0x10, enumerable: true },
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: { value: 0x20, enumerable: true }
});
- Object.defineProperties(Range, {
- START_TO_START: { value: 0, enumerable: true },
- START_TO_END: { value: 1, enumerable: true },
- END_TO_END: { value: 2, enumerable: true },
- END_TO_START: { value: 3, enumerable: true }
+ Object.defineProperties(Node, {
+ ELEMENT_NODE: { value: 1, enumerable: true },
+ ATTRIBUTE_NODE: { value: 2, enumerable: true },
+ TEXT_NODE: { value: 3, enumerable: true },
+ CDATA_SECTION_NODE: { value: 4, enumerable: true },
+ ENTITY_REFERENCE_NODE: { value: 5, enumerable: true },
+ ENTITY_NODE: { value: 6, enumerable: true },
+ PROCESSING_INSTRUCTION_NODE: { value: 7, enumerable: true },
+ COMMENT_NODE: { value: 8, enumerable: true },
+ DOCUMENT_NODE: { value: 9, enumerable: true },
+ DOCUMENT_TYPE_NODE: { value: 10, enumerable: true },
+ DOCUMENT_FRAGMENT_NODE: { value: 11, enumerable: true },
+ NOTATION_NODE: { value: 12, enumerable: true },
+ DOCUMENT_POSITION_DISCONNECTED: { value: 0x01, enumerable: true },
+ DOCUMENT_POSITION_PRECEDING: { value: 0x02, enumerable: true },
+ DOCUMENT_POSITION_FOLLOWING: { value: 0x04, enumerable: true },
+ DOCUMENT_POSITION_CONTAINS: { value: 0x08, enumerable: true },
+ DOCUMENT_POSITION_CONTAINED_BY: { value: 0x10, enumerable: true },
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: { value: 0x20, enumerable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Range;
+ globalObject[ctorRegistrySymbol][interfaceName] = Node;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Range
+ value: Node
});
};
-const Impl = __nccwpck_require__(67156);
+const Impl = __nccwpck_require__(53563);
/***/ }),
-/***/ 69927:
+/***/ 39151:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ function callTheUserObjectsOperation(node) {
+ let thisArg = utils.tryWrapperForImpl(this);
+ let O = value;
+ let X = O;
+
+ if (typeof O !== "function") {
+ X = O["acceptNode"];
+ if (typeof X !== "function") {
+ throw new TypeError(`${context} does not correctly implement NodeFilter.`);
+ }
+ thisArg = O;
+ }
+
+ node = utils.tryWrapperForImpl(node);
+
+ let callResult = Reflect.apply(X, thisArg, [node]);
+
+ callResult = conversions["unsigned short"](callResult, { context: context });
+
+ return callResult;
+ }
+
+ callTheUserObjectsOperation[utils.wrapperSymbol] = value;
+ callTheUserObjectsOperation.objectReference = value;
+
+ return callTheUserObjectsOperation;
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ const NodeFilter = () => {
+ throw new TypeError("Illegal invocation");
+ };
+
+ Object.defineProperties(NodeFilter, {
+ FILTER_ACCEPT: { value: 1, enumerable: true },
+ FILTER_REJECT: { value: 2, enumerable: true },
+ FILTER_SKIP: { value: 3, enumerable: true },
+ SHOW_ALL: { value: 0xffffffff, enumerable: true },
+ SHOW_ELEMENT: { value: 0x1, enumerable: true },
+ SHOW_ATTRIBUTE: { value: 0x2, enumerable: true },
+ SHOW_TEXT: { value: 0x4, enumerable: true },
+ SHOW_CDATA_SECTION: { value: 0x8, enumerable: true },
+ SHOW_ENTITY_REFERENCE: { value: 0x10, enumerable: true },
+ SHOW_ENTITY: { value: 0x20, enumerable: true },
+ SHOW_PROCESSING_INSTRUCTION: { value: 0x40, enumerable: true },
+ SHOW_COMMENT: { value: 0x80, enumerable: true },
+ SHOW_DOCUMENT: { value: 0x100, enumerable: true },
+ SHOW_DOCUMENT_TYPE: { value: 0x200, enumerable: true },
+ SHOW_DOCUMENT_FRAGMENT: { value: 0x400, enumerable: true },
+ SHOW_NOTATION: { value: 0x800, enumerable: true }
+ });
+
+ Object.defineProperty(globalObject, "NodeFilter", {
+ configurable: true,
+ writable: true,
+ value: NodeFilter
+ });
+};
+
+
+/***/ }),
+
+/***/ 83882:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -114438,7 +109939,7 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "SVGAnimatedString";
+const interfaceName = "NodeIterator";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -114450,7 +109951,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'SVGAnimatedString'.`);
+ throw new TypeError(`${context} is not of type 'NodeIterator'.`);
};
function makeWrapper(globalObject) {
@@ -114458,9 +109959,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["SVGAnimatedString"];
+ const ctor = globalObject[ctorRegistrySymbol]["NodeIterator"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGAnimatedString is not installed on the passed global object");
+ throw new Error("Internal error: constructor NodeIterator is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -114494,7 +109995,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -114516,68 +110017,121 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class SVGAnimatedString {
+ class NodeIterator {
constructor() {
throw new TypeError("Illegal constructor");
}
- get baseVal() {
+ nextNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'nextNode' called on an object that is not a valid instance of NodeIterator.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].nextNode());
+ }
+
+ previousNode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'previousNode' called on an object that is not a valid instance of NodeIterator.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].previousNode());
+ }
+ detach() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get baseVal' called on an object that is not a valid instance of SVGAnimatedString.");
+ throw new TypeError("'detach' called on an object that is not a valid instance of NodeIterator.");
}
- return esValue[implSymbol]["baseVal"];
+ return esValue[implSymbol].detach();
}
- set baseVal(V) {
+ get root() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set baseVal' called on an object that is not a valid instance of SVGAnimatedString.");
+ throw new TypeError("'get root' called on an object that is not a valid instance of NodeIterator.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'baseVal' property on 'SVGAnimatedString': The provided value"
+ return utils.getSameObject(this, "root", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["root"]);
});
+ }
- esValue[implSymbol]["baseVal"] = V;
+ get referenceNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get referenceNode' called on an object that is not a valid instance of NodeIterator.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["referenceNode"]);
}
- get animVal() {
+ get pointerBeforeReferenceNode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get animVal' called on an object that is not a valid instance of SVGAnimatedString.");
+ throw new TypeError(
+ "'get pointerBeforeReferenceNode' called on an object that is not a valid instance of NodeIterator."
+ );
}
- return esValue[implSymbol]["animVal"];
+ return esValue[implSymbol]["pointerBeforeReferenceNode"];
+ }
+
+ get whatToShow() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get whatToShow' called on an object that is not a valid instance of NodeIterator.");
+ }
+
+ return esValue[implSymbol]["whatToShow"];
+ }
+
+ get filter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get filter' called on an object that is not a valid instance of NodeIterator.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["filter"]);
}
}
- Object.defineProperties(SVGAnimatedString.prototype, {
- baseVal: { enumerable: true },
- animVal: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGAnimatedString", configurable: true }
+ Object.defineProperties(NodeIterator.prototype, {
+ nextNode: { enumerable: true },
+ previousNode: { enumerable: true },
+ detach: { enumerable: true },
+ root: { enumerable: true },
+ referenceNode: { enumerable: true },
+ pointerBeforeReferenceNode: { enumerable: true },
+ whatToShow: { enumerable: true },
+ filter: { enumerable: true },
+ [Symbol.toStringTag]: { value: "NodeIterator", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = SVGAnimatedString;
+ globalObject[ctorRegistrySymbol][interfaceName] = NodeIterator;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: SVGAnimatedString
+ value: NodeIterator
});
};
-const Impl = __nccwpck_require__(3710);
+const Impl = __nccwpck_require__(65483);
/***/ }),
-/***/ 98086:
+/***/ 65427:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -114586,15 +110140,10 @@ const Impl = __nccwpck_require__(3710);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Element = __nccwpck_require__(4444);
-const interfaceName = "SVGElement";
+const interfaceName = "NodeList";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -114606,7 +110155,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'SVGElement'.`);
+ throw new TypeError(`${context} is not of type 'NodeList'.`);
};
function makeWrapper(globalObject) {
@@ -114614,9 +110163,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["SVGElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["NodeList"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor NodeList is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -114632,9 +110181,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- Element._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -114645,6 +110192,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -114652,8 +110201,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -114661,6 +110210,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -114674,1904 +110225,1739 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.Element === undefined) {
- throw new Error("Internal error: attempting to evaluate SVGElement before Element");
- }
- class SVGElement extends globalObject.Element {
+ class NodeList {
constructor() {
throw new TypeError("Illegal constructor");
}
- focus() {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'focus' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'item' called on an object that is not a valid instance of NodeList.");
}
- return esValue[implSymbol].focus();
- }
-
- blur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'blur' called on an object that is not a valid instance of SVGElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'item' on 'NodeList': 1 argument required, but only " + arguments.length + " present."
+ );
}
-
- return esValue[implSymbol].blur();
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'NodeList': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
}
- get className() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get className' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of NodeList.");
}
- return utils.getSameObject(this, "className", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["className"]);
- });
+ return esValue[implSymbol]["length"];
}
+ }
+ Object.defineProperties(NodeList.prototype, {
+ item: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "NodeList", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true },
+ keys: { value: Array.prototype.keys, configurable: true, enumerable: true, writable: true },
+ values: { value: Array.prototype[Symbol.iterator], configurable: true, enumerable: true, writable: true },
+ entries: { value: Array.prototype.entries, configurable: true, enumerable: true, writable: true },
+ forEach: { value: Array.prototype.forEach, configurable: true, enumerable: true, writable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = NodeList;
- get ownerSVGElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: NodeList
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get ownerSVGElement' called on an object that is not a valid instance of SVGElement.");
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["ownerSVGElement"]);
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
}
+ return false;
+ },
- get viewportElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ ownKeys(target) {
+ const keys = new Set();
- if (!exports.is(esValue)) {
- throw new TypeError("'get viewportElement' called on an object that is not a valid instance of SVGElement.");
- }
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["viewportElement"]);
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ },
- get style() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'get style' called on an object that is not a valid instance of SVGElement.");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
-
- return utils.getSameObject(this, "style", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
- });
+ ignoreNamedProps = true;
}
- set style(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'set style' called on an object that is not a valid instance of SVGElement.");
- }
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
+ }
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ }
+ let ownDesc;
- const Q = esValue["style"];
- if (!utils.isObject(Q)) {
- throw new TypeError("Property 'style' is not an object");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
- Reflect.set(Q, "cssText", V);
}
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onabort' called on an object that is not a valid instance of SVGElement.");
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onabort' called on an object that is not a valid instance of SVGElement.");
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onabort' property on 'SVGElement': The provided value"
- });
+ if (!existingDesc.writable) {
+ return false;
}
- esValue[implSymbol]["onabort"] = V;
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- get onauxclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onauxclick' called on an object that is not a valid instance of SVGElement.");
- }
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
}
- set onauxclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.defineProperty(target, P, desc);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'set onauxclick' called on an object that is not a valid instance of SVGElement.");
- }
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onauxclick' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onauxclick"] = V;
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
}
- get onblur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.deleteProperty(target, P);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'get onblur' called on an object that is not a valid instance of SVGElement.");
- }
+ preventExtensions() {
+ return false;
+ }
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
- }
+const Impl = __nccwpck_require__(8165);
- set onblur(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onblur' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ }),
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onblur' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onblur"] = V;
- }
+/***/ 64546:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- get oncancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncancel' called on an object that is not a valid instance of SVGElement.");
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ function invokeTheCallbackFunction(event) {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
- set oncancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncancel' called on an object that is not a valid instance of SVGElement.");
- }
+ if (typeof value === "function") {
+ event = utils.tryWrapperForImpl(event);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncancel' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncancel"] = V;
+ callResult = Reflect.apply(value, thisArg, [event]);
}
- get oncanplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncanplay' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
+ if (callResult === null || callResult === undefined) {
+ callResult = null;
+ } else {
+ callResult = conversions["DOMString"](callResult, { context: context });
}
+ return callResult;
+ }
- set oncanplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ invokeTheCallbackFunction.construct = event => {
+ event = utils.tryWrapperForImpl(event);
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncanplay' called on an object that is not a valid instance of SVGElement.");
- }
+ let callResult = Reflect.construct(value, [event]);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncanplay' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplay"] = V;
+ if (callResult === null || callResult === undefined) {
+ callResult = null;
+ } else {
+ callResult = conversions["DOMString"](callResult, { context: context });
}
+ return callResult;
+ };
- get oncanplaythrough() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ invokeTheCallbackFunction[utils.wrapperSymbol] = value;
+ invokeTheCallbackFunction.objectReference = value;
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncanplaythrough' called on an object that is not a valid instance of SVGElement.");
- }
+ return invokeTheCallbackFunction;
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
- }
- set oncanplaythrough(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncanplaythrough' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ 87517:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncanplaythrough' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplaythrough"] = V;
- }
+"use strict";
- get onchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onchange' called on an object that is not a valid instance of SVGElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ function invokeTheCallbackFunction(...args) {
+ if (new.target !== undefined) {
+ throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
- set onchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const thisArg = utils.tryWrapperForImpl(this);
+ let callResult;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onchange' called on an object that is not a valid instance of SVGElement.");
+ if (typeof value === "function") {
+ for (let i = 0; i < Math.min(args.length, 5); i++) {
+ args[i] = utils.tryWrapperForImpl(args[i]);
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onchange' property on 'SVGElement': The provided value"
- });
+ if (args.length < 1) {
+ for (let i = args.length; i < 1; i++) {
+ args[i] = undefined;
+ }
+ } else if (args.length > 5) {
+ args.length = 5;
}
- esValue[implSymbol]["onchange"] = V;
+
+ callResult = Reflect.apply(value, thisArg, args);
}
- get onclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ callResult = conversions["any"](callResult, { context: context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onclick' called on an object that is not a valid instance of SVGElement.");
- }
+ return callResult;
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
+ invokeTheCallbackFunction.construct = (...args) => {
+ for (let i = 0; i < Math.min(args.length, 5); i++) {
+ args[i] = utils.tryWrapperForImpl(args[i]);
}
- set onclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onclick' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclick' property on 'SVGElement': The provided value"
- });
+ if (args.length < 1) {
+ for (let i = args.length; i < 1; i++) {
+ args[i] = undefined;
}
- esValue[implSymbol]["onclick"] = V;
+ } else if (args.length > 5) {
+ args.length = 5;
}
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ let callResult = Reflect.construct(value, args);
- if (!exports.is(esValue)) {
- throw new TypeError("'get onclose' called on an object that is not a valid instance of SVGElement.");
- }
+ callResult = conversions["any"](callResult, { context: context });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
+ return callResult;
+ };
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ invokeTheCallbackFunction[utils.wrapperSymbol] = value;
+ invokeTheCallbackFunction.objectReference = value;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onclose' called on an object that is not a valid instance of SVGElement.");
- }
+ return invokeTheCallbackFunction;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclose' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncontextmenu' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ 32941:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
- }
+"use strict";
- set oncontextmenu(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncontextmenu' called on an object that is not a valid instance of SVGElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncontextmenu' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
+const PageTransitionEventInit = __nccwpck_require__(21782);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Event = __nccwpck_require__(35348);
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "PageTransitionEvent";
- if (!exports.is(esValue)) {
- throw new TypeError("'get oncuechange' called on an object that is not a valid instance of SVGElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'PageTransitionEvent'.`);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["PageTransitionEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor PageTransitionEvent is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set oncuechange' called on an object that is not a valid instance of SVGElement.");
- }
+ return Object.create(ctor.prototype);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oncuechange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncuechange"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondblclick' called on an object that is not a valid instance of SVGElement.");
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ Event._internalSetup(wrapper, globalObject);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondblclick' called on an object that is not a valid instance of SVGElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondblclick' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondrag' called on an object that is not a valid instance of SVGElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
- }
+const exposed = new Set(["Window"]);
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondrag' called on an object that is not a valid instance of SVGElement.");
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate PageTransitionEvent before Event");
+ }
+ class PageTransitionEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'PageTransitionEvent': 1 argument required, but only " + arguments.length + " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondrag' property on 'SVGElement': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to construct 'PageTransitionEvent': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["ondrag"] = V;
+ {
+ let curArg = arguments[1];
+ curArg = PageTransitionEventInit.convert(curArg, {
+ context: "Failed to construct 'PageTransitionEvent': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get ondragend() {
+ get persisted() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ondragend' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get persisted' called on an object that is not a valid instance of PageTransitionEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
+ return esValue[implSymbol]["persisted"];
}
+ }
+ Object.defineProperties(PageTransitionEvent.prototype, {
+ persisted: { enumerable: true },
+ [Symbol.toStringTag]: { value: "PageTransitionEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = PageTransitionEvent;
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: PageTransitionEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragend' called on an object that is not a valid instance of SVGElement.");
- }
+const Impl = __nccwpck_require__(50265);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragenter' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ 21782:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
+"use strict";
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragenter' called on an object that is not a valid instance of SVGElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragenter' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
+const EventInit = __nccwpck_require__(4895);
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragleave' called on an object that is not a valid instance of SVGElement.");
- }
+ {
+ const key = "persisted";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'persisted' that" });
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
+ ret[key] = value;
+ } else {
+ ret[key] = false;
}
+ }
+};
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragleave' called on an object that is not a valid instance of SVGElement.");
- }
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragleave' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragleave"] = V;
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragover' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ }),
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
- }
+/***/ 19264:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- set ondragover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragover' called on an object that is not a valid instance of SVGElement.");
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragover' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragover"] = V;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- get ondragstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const EventTarget = __nccwpck_require__(71038);
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondragstart' called on an object that is not a valid instance of SVGElement.");
- }
+const interfaceName = "Performance";
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Performance'.`);
+};
- set ondragstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondragstart' called on an object that is not a valid instance of SVGElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["Performance"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Performance is not installed on the passed global object");
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondragstart' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragstart"] = V;
- }
+ return Object.create(ctor.prototype);
+}
- get ondrop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondrop' called on an object that is not a valid instance of SVGElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ EventTarget._internalSetup(wrapper, globalObject);
+};
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondrop' called on an object that is not a valid instance of SVGElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondrop' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'get ondurationchange' called on an object that is not a valid instance of SVGElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const exposed = new Set(["Window", "Worker"]);
- if (!exports.is(esValue)) {
- throw new TypeError("'set ondurationchange' called on an object that is not a valid instance of SVGElement.");
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ondurationchange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
+ if (globalObject.EventTarget === undefined) {
+ throw new Error("Internal error: attempting to evaluate Performance before EventTarget");
+ }
+ class Performance extends globalObject.EventTarget {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- get onemptied() {
+ now() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onemptied' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'now' called on an object that is not a valid instance of Performance.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol].now());
}
- set onemptied(V) {
+ toJSON() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onemptied' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'toJSON' called on an object that is not a valid instance of Performance.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onemptied' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
+ return esValue[implSymbol].toJSON();
}
- get onended() {
+ get timeOrigin() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onended' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get timeOrigin' called on an object that is not a valid instance of Performance.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["timeOrigin"]);
}
+ }
+ Object.defineProperties(Performance.prototype, {
+ now: { enumerable: true },
+ toJSON: { enumerable: true },
+ timeOrigin: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Performance", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = Performance;
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Performance
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onended' called on an object that is not a valid instance of SVGElement.");
- }
+const Impl = __nccwpck_require__(91248);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onended' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get onerror' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ 79870:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
+"use strict";
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onerror' called on an object that is not a valid instance of SVGElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- get onfocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "Plugin";
- if (!exports.is(esValue)) {
- throw new TypeError("'get onfocus' called on an object that is not a valid instance of SVGElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Plugin'.`);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- set onfocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["Plugin"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Plugin is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onfocus' called on an object that is not a valid instance of SVGElement.");
- }
+ return Object.create(ctor.prototype);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onfocus' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onfocus"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get oninput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get oninput' called on an object that is not a valid instance of SVGElement.");
- }
+exports._internalSetup = (wrapper, globalObject) => {};
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set oninput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set oninput' called on an object that is not a valid instance of SVGElement.");
- }
+ wrapper = new Proxy(wrapper, proxyHandler);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oninput' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oninput"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'get oninvalid' called on an object that is not a valid instance of SVGElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
+ wrapper = new Proxy(wrapper, proxyHandler);
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set oninvalid' called on an object that is not a valid instance of SVGElement.");
- }
+const exposed = new Set(["Window"]);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'oninvalid' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oninvalid"] = V;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class Plugin {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- get onkeydown() {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeydown' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'item' called on an object that is not a valid instance of Plugin.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'item' on 'Plugin': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, { context: "Failed to execute 'item' on 'Plugin': parameter 1" });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
}
- set onkeydown(V) {
+ namedItem(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onkeydown' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'namedItem' called on an object that is not a valid instance of Plugin.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeydown' property on 'SVGElement': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'namedItem' on 'Plugin': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'namedItem' on 'Plugin': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onkeydown"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
}
- get onkeypress() {
+ get name() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeypress' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get name' called on an object that is not a valid instance of Plugin.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["name"]);
}
- set onkeypress(V) {
+ get description() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onkeypress' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get description' called on an object that is not a valid instance of Plugin.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeypress' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeypress"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["description"]);
}
- get onkeyup() {
+ get filename() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onkeyup' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get filename' called on an object that is not a valid instance of Plugin.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["filename"]);
}
- set onkeyup(V) {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onkeyup' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of Plugin.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onkeyup' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeyup"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["length"]);
}
+ }
+ Object.defineProperties(Plugin.prototype, {
+ item: { enumerable: true },
+ namedItem: { enumerable: true },
+ name: { enumerable: true },
+ description: { enumerable: true },
+ filename: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Plugin", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = Plugin;
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onload' called on an object that is not a valid instance of SVGElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Plugin
+ });
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
}
-
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onload' called on an object that is not a valid instance of SVGElement.");
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ },
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onload' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
}
+ return false;
+ },
- get onloadeddata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ ownKeys(target) {
+ const keys = new Set();
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadeddata' called on an object that is not a valid instance of SVGElement.");
- }
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ },
- set onloadeddata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadeddata' called on an object that is not a valid instance of SVGElement.");
- }
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadeddata' property on 'SVGElement': The provided value"
- });
+ if (target[implSymbol][utils.supportsPropertyIndex](index)) {
+ const indexedValue = target[implSymbol].item(index);
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
- esValue[implSymbol]["onloadeddata"] = V;
+ ignoreNamedProps = true;
}
- get onloadedmetadata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadedmetadata' called on an object that is not a valid instance of SVGElement.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
+ }
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
}
+ let ownDesc;
- set onloadedmetadata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadedmetadata' called on an object that is not a valid instance of SVGElement.");
+ if (target[implSymbol][utils.supportsPropertyIndex](index)) {
+ const indexedValue = target[implSymbol].item(index);
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadedmetadata' property on 'SVGElement': The provided value"
- });
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
- esValue[implSymbol]["onloadedmetadata"] = V;
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- get onloadend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadend' called on an object that is not a valid instance of SVGElement.");
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- set onloadend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadend' called on an object that is not a valid instance of SVGElement.");
- }
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadend"] = V;
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
}
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.defineProperty(target, P, desc);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'get onloadstart' called on an object that is not a valid instance of SVGElement.");
- }
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !target[implSymbol][utils.supportsPropertyIndex](index);
}
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.deleteProperty(target, P);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'set onloadstart' called on an object that is not a valid instance of SVGElement.");
- }
+ preventExtensions() {
+ return false;
+ }
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadstart' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
+const Impl = __nccwpck_require__(49869);
- get onmousedown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmousedown' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ }),
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
- }
+/***/ 9432:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- set onmousedown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmousedown' called on an object that is not a valid instance of SVGElement.");
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmousedown' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousedown"] = V;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- get onmouseenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- if (!exports.is(esValue)) {
- return;
- }
+const interfaceName = "PluginArray";
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'PluginArray'.`);
+};
- set onmouseenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- return;
- }
+ const ctor = globalObject[ctorRegistrySymbol]["PluginArray"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor PluginArray is not installed on the passed global object");
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseenter' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseenter"] = V;
- }
+ return Object.create(ctor.prototype);
+}
- get onmouseleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- return;
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
- }
+exports._internalSetup = (wrapper, globalObject) => {};
- set onmouseleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- return;
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseleave' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseleave"] = V;
- }
+ wrapper = new Proxy(wrapper, proxyHandler);
- get onmousemove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onmousemove' called on an object that is not a valid instance of SVGElement.");
- }
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- set onmousemove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ wrapper = new Proxy(wrapper, proxyHandler);
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmousemove' called on an object that is not a valid instance of SVGElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmousemove' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousemove"] = V;
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class PluginArray {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- get onmouseout() {
+ refresh() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseout' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'refresh' called on an object that is not a valid instance of PluginArray.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol].refresh());
}
- set onmouseout(V) {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseout' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'item' called on an object that is not a valid instance of PluginArray.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseout' property on 'SVGElement': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'item' on 'PluginArray': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'PluginArray': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onmouseout"] = V;
+ return esValue[implSymbol].item(...args);
}
- get onmouseover() {
+ namedItem(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseover' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'namedItem' called on an object that is not a valid instance of PluginArray.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
- }
-
- set onmouseover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseover' called on an object that is not a valid instance of SVGElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'namedItem' on 'PluginArray': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseover' property on 'SVGElement': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'namedItem' on 'PluginArray': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onmouseover"] = V;
+ return esValue[implSymbol].namedItem(...args);
}
- get onmouseup() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmouseup' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of PluginArray.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
+ return esValue[implSymbol]["length"];
}
+ }
+ Object.defineProperties(PluginArray.prototype, {
+ refresh: { enumerable: true },
+ item: { enumerable: true },
+ namedItem: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "PluginArray", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = PluginArray;
- set onmouseup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onmouseup' called on an object that is not a valid instance of SVGElement.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: PluginArray
+ });
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmouseup' property on 'SVGElement': The provided value"
- });
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
- esValue[implSymbol]["onmouseup"] = V;
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
}
+ return Reflect.apply(getter, receiver, []);
+ },
- get onwheel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'get onwheel' called on an object that is not a valid instance of SVGElement.");
- }
+ ownKeys(target) {
+ const keys = new Set();
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
}
- set onwheel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
+ }
+ return [...keys];
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'set onwheel' called on an object that is not a valid instance of SVGElement.");
- }
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onwheel' property on 'SVGElement': The provided value"
- });
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
- esValue[implSymbol]["onwheel"] = V;
+ ignoreNamedProps = true;
}
- get onpause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onpause' called on an object that is not a valid instance of SVGElement.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
}
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ }
+ let ownDesc;
- set onpause(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpause' called on an object that is not a valid instance of SVGElement.");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
}
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpause' property on 'SVGElement': The provided value"
- });
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
- esValue[implSymbol]["onpause"] = V;
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- get onplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onplay' called on an object that is not a valid instance of SVGElement.");
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- set onplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onplay' called on an object that is not a valid instance of SVGElement.");
- }
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onplay' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onplay"] = V;
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
}
- get onplaying() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.defineProperty(target, P, desc);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'get onplaying' called on an object that is not a valid instance of SVGElement.");
- }
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
}
- set onplaying(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ return Reflect.deleteProperty(target, P);
+ },
- if (!exports.is(esValue)) {
- throw new TypeError("'set onplaying' called on an object that is not a valid instance of SVGElement.");
- }
+ preventExtensions() {
+ return false;
+ }
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onplaying' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onplaying"] = V;
- }
+const Impl = __nccwpck_require__(28482);
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get onprogress' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ }),
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
+/***/ 57448:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+"use strict";
- if (!exports.is(esValue)) {
- throw new TypeError("'set onprogress' called on an object that is not a valid instance of SVGElement.");
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onprogress' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- get onratechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const PopStateEventInit = __nccwpck_require__(18089);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Event = __nccwpck_require__(35348);
- if (!exports.is(esValue)) {
- throw new TypeError("'get onratechange' called on an object that is not a valid instance of SVGElement.");
- }
+const interfaceName = "PopStateEvent";
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'PopStateEvent'.`);
+};
- set onratechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onratechange' called on an object that is not a valid instance of SVGElement.");
- }
+ const ctor = globalObject[ctorRegistrySymbol]["PopStateEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor PopStateEvent is not installed on the passed global object");
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onratechange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onratechange"] = V;
- }
+ return Object.create(ctor.prototype);
+}
- get onreset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onreset' called on an object that is not a valid instance of SVGElement.");
- }
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ Event._internalSetup(wrapper, globalObject);
+};
- set onreset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onreset' called on an object that is not a valid instance of SVGElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onreset' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onreset"] = V;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- get onresize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- if (!exports.is(esValue)) {
- throw new TypeError("'get onresize' called on an object that is not a valid instance of SVGElement.");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- set onresize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const exposed = new Set(["Window"]);
- if (!exports.is(esValue)) {
- throw new TypeError("'set onresize' called on an object that is not a valid instance of SVGElement.");
- }
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onresize' property on 'SVGElement': The provided value"
- });
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate PopStateEvent before Event");
+ }
+ class PopStateEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'PopStateEvent': 1 argument required, but only " + arguments.length + " present."
+ );
}
- esValue[implSymbol]["onresize"] = V;
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'PopStateEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = PopStateEventInit.convert(curArg, { context: "Failed to construct 'PopStateEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get onscroll() {
+ get state() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onscroll' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get state' called on an object that is not a valid instance of PopStateEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
+ return esValue[implSymbol]["state"];
}
+ }
+ Object.defineProperties(PopStateEvent.prototype, {
+ state: { enumerable: true },
+ [Symbol.toStringTag]: { value: "PopStateEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = PopStateEvent;
- set onscroll(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: PopStateEvent
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'set onscroll' called on an object that is not a valid instance of SVGElement.");
- }
+const Impl = __nccwpck_require__(46633);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onscroll' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onscroll"] = V;
- }
- get onsecuritypolicyviolation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
- );
- }
+/***/ 18089:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
- }
+"use strict";
- set onsecuritypolicyviolation(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
- );
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
- }
+const EventInit = __nccwpck_require__(4895);
- get onseeked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onseeked' called on an object that is not a valid instance of SVGElement.");
- }
+ {
+ const key = "state";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["any"](value, { context: context + " has member 'state' that" });
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
+ ret[key] = value;
+ } else {
+ ret[key] = null;
}
+ }
+};
- set onseeked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onseeked' called on an object that is not a valid instance of SVGElement.");
- }
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onseeked' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeked"] = V;
- }
- get onseeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get onseeking' called on an object that is not a valid instance of SVGElement.");
- }
+/***/ 75221:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
- }
+"use strict";
- set onseeking(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'set onseeking' called on an object that is not a valid instance of SVGElement.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onseeking' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeking"] = V;
- }
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const CharacterData = __nccwpck_require__(30948);
- get onselect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "ProcessingInstruction";
- if (!exports.is(esValue)) {
- throw new TypeError("'get onselect' called on an object that is not a valid instance of SVGElement.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'ProcessingInstruction'.`);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- set onselect(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["ProcessingInstruction"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor ProcessingInstruction is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'set onselect' called on an object that is not a valid instance of SVGElement.");
- }
+ return Object.create(ctor.prototype);
+}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onselect' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onselect"] = V;
- }
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- get onstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get onstalled' called on an object that is not a valid instance of SVGElement.");
- }
+exports._internalSetup = (wrapper, globalObject) => {
+ CharacterData._internalSetup(wrapper, globalObject);
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- set onstalled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'set onstalled' called on an object that is not a valid instance of SVGElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onstalled' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onstalled"] = V;
- }
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- get onsubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get onsubmit' called on an object that is not a valid instance of SVGElement.");
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.CharacterData === undefined) {
+ throw new Error("Internal error: attempting to evaluate ProcessingInstruction before CharacterData");
+ }
+ class ProcessingInstruction extends globalObject.CharacterData {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- set onsubmit(V) {
+ get target() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onsubmit' called on an object that is not a valid instance of SVGElement.");
+ throw new TypeError("'get target' called on an object that is not a valid instance of ProcessingInstruction.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsubmit' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onsubmit"] = V;
- }
-
- get onsuspend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onsuspend' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
- }
-
- set onsuspend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onsuspend' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onsuspend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onsuspend"] = V;
- }
-
- get ontimeupdate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ontimeupdate' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
- }
-
- set ontimeupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ontimeupdate' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontimeupdate' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontimeupdate"] = V;
- }
-
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get ontoggle' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
- }
-
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ontoggle' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontoggle' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
- }
-
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onvolumechange' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
- }
-
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onvolumechange' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onvolumechange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onvolumechange"] = V;
- }
-
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onwaiting' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
- }
-
- set onwaiting(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onwaiting' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onwaiting' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwaiting"] = V;
- }
-
- get dataset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get dataset' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.getSameObject(this, "dataset", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
- });
- }
-
- get nonce() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get nonce' called on an object that is not a valid instance of SVGElement.");
- }
-
- const value = esValue[implSymbol].getAttributeNS(null, "nonce");
- return value === null ? "" : value;
- }
-
- set nonce(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set nonce' called on an object that is not a valid instance of SVGElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nonce' property on 'SVGElement': The provided value"
- });
-
- esValue[implSymbol].setAttributeNS(null, "nonce", V);
- }
-
- get tabIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get tabIndex' called on an object that is not a valid instance of SVGElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["tabIndex"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set tabIndex(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set tabIndex' called on an object that is not a valid instance of SVGElement.");
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'tabIndex' property on 'SVGElement': The provided value"
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tabIndex"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
+ return esValue[implSymbol]["target"];
}
}
- Object.defineProperties(SVGElement.prototype, {
- focus: { enumerable: true },
- blur: { enumerable: true },
- className: { enumerable: true },
- ownerSVGElement: { enumerable: true },
- viewportElement: { enumerable: true },
- style: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncuechange: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadend: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onwheel: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- dataset: { enumerable: true },
- nonce: { enumerable: true },
- tabIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGElement", configurable: true }
+ Object.defineProperties(ProcessingInstruction.prototype, {
+ target: { enumerable: true },
+ [Symbol.toStringTag]: { value: "ProcessingInstruction", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = SVGElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = ProcessingInstruction;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: SVGElement
+ value: ProcessingInstruction
});
};
-const Impl = __nccwpck_require__(10064);
+const Impl = __nccwpck_require__(71952);
/***/ }),
-/***/ 18269:
+/***/ 34426:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -116580,11 +111966,12 @@ const Impl = __nccwpck_require__(10064);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const ProgressEventInit = __nccwpck_require__(24624);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const SVGElement = __nccwpck_require__(98086);
+const Event = __nccwpck_require__(35348);
-const interfaceName = "SVGGraphicsElement";
+const interfaceName = "ProgressEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -116596,7 +111983,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'SVGGraphicsElement'.`);
+ throw new TypeError(`${context} is not of type 'ProgressEvent'.`);
};
function makeWrapper(globalObject) {
@@ -116604,9 +111991,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["SVGGraphicsElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["ProgressEvent"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGGraphicsElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor ProgressEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -116623,7 +112010,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- SVGElement._internalSetup(wrapper, globalObject);
+ Event._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -116642,7 +112029,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -116658,72 +112045,93 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
+const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.SVGElement === undefined) {
- throw new Error("Internal error: attempting to evaluate SVGGraphicsElement before SVGElement");
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate ProgressEvent before Event");
}
- class SVGGraphicsElement extends globalObject.SVGElement {
- constructor() {
- throw new TypeError("Illegal constructor");
+ class ProgressEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'ProgressEvent': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'ProgressEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = ProgressEventInit.convert(curArg, { context: "Failed to construct 'ProgressEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get requiredExtensions() {
+ get lengthComputable() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError(
- "'get requiredExtensions' called on an object that is not a valid instance of SVGGraphicsElement."
+ "'get lengthComputable' called on an object that is not a valid instance of ProgressEvent."
);
}
- return utils.getSameObject(this, "requiredExtensions", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["requiredExtensions"]);
- });
+ return esValue[implSymbol]["lengthComputable"];
}
- get systemLanguage() {
+ get loaded() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get systemLanguage' called on an object that is not a valid instance of SVGGraphicsElement."
- );
+ throw new TypeError("'get loaded' called on an object that is not a valid instance of ProgressEvent.");
}
- return utils.getSameObject(this, "systemLanguage", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["systemLanguage"]);
- });
+ return esValue[implSymbol]["loaded"];
+ }
+
+ get total() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get total' called on an object that is not a valid instance of ProgressEvent.");
+ }
+
+ return esValue[implSymbol]["total"];
}
}
- Object.defineProperties(SVGGraphicsElement.prototype, {
- requiredExtensions: { enumerable: true },
- systemLanguage: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGGraphicsElement", configurable: true }
+ Object.defineProperties(ProgressEvent.prototype, {
+ lengthComputable: { enumerable: true },
+ loaded: { enumerable: true },
+ total: { enumerable: true },
+ [Symbol.toStringTag]: { value: "ProgressEvent", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = SVGGraphicsElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = ProgressEvent;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: SVGGraphicsElement
+ value: ProgressEvent
});
};
-const Impl = __nccwpck_require__(34638);
+const Impl = __nccwpck_require__(38424);
/***/ }),
-/***/ 23577:
+/***/ 24624:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -116732,136 +112140,62 @@ const Impl = __nccwpck_require__(34638);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "SVGNumber";
+const EventInit = __nccwpck_require__(4895);
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'SVGNumber'.`);
-};
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ {
+ const key = "lengthComputable";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["boolean"](value, { context: context + " has member 'lengthComputable' that" });
- const ctor = globalObject[ctorRegistrySymbol]["SVGNumber"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGNumber is not installed on the passed global object");
+ ret[key] = value;
+ } else {
+ ret[key] = false;
+ }
}
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ {
+ const key = "loaded";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long long"](value, { context: context + " has member 'loaded' that" });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
}
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ {
+ const key = "total";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long long"](value, { context: context + " has member 'total' that" });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
}
- return wrapper[implSymbol];
};
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class SVGNumber {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get value' called on an object that is not a valid instance of SVGNumber.");
- }
-
- return esValue[implSymbol]["value"];
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set value' called on an object that is not a valid instance of SVGNumber.");
- }
-
- V = conversions["float"](V, { context: "Failed to set the 'value' property on 'SVGNumber': The provided value" });
-
- esValue[implSymbol]["value"] = V;
- }
- }
- Object.defineProperties(SVGNumber.prototype, {
- value: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGNumber", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- globalObject[ctorRegistrySymbol][interfaceName] = SVGNumber;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGNumber
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
-const Impl = __nccwpck_require__(68401);
-
/***/ }),
-/***/ 58833:
+/***/ 38522:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -116870,13 +112204,14 @@ const Impl = __nccwpck_require__(68401);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
+const Node = __nccwpck_require__(41209);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const SVGGraphicsElement = __nccwpck_require__(18269);
+const AbstractRange = __nccwpck_require__(10083);
-const interfaceName = "SVGSVGElement";
+const interfaceName = "Range";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -116888,7 +112223,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'SVGSVGElement'.`);
+ throw new TypeError(`${context} is not of type 'Range'.`);
};
function makeWrapper(globalObject) {
@@ -116896,9 +112231,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["SVGSVGElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["Range"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGSVGElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor Range is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -116915,7 +112250,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- SVGGraphicsElement._internalSetup(wrapper, globalObject);
+ AbstractRange._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -116934,7 +112269,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -116957,56 +112292,77 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.SVGGraphicsElement === undefined) {
- throw new Error("Internal error: attempting to evaluate SVGSVGElement before SVGGraphicsElement");
+ if (globalObject.AbstractRange === undefined) {
+ throw new Error("Internal error: attempting to evaluate Range before AbstractRange");
}
- class SVGSVGElement extends globalObject.SVGGraphicsElement {
+ class Range extends globalObject.AbstractRange {
constructor() {
- throw new TypeError("Illegal constructor");
+ return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
}
- createSVGNumber() {
+ setStart(node, offset) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'createSVGNumber' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'setStart' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].createSVGNumber());
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'setStart' on 'Range': 2 arguments required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setStart' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setStart' on 'Range': parameter 2"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].setStart(...args);
}
- getElementById(elementId) {
+ setEnd(node, offset) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'getElementById' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'setEnd' called on an object that is not a valid instance of Range.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'getElementById' on 'SVGSVGElement': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'setEnd' on 'Range': 2 arguments required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementById' on 'SVGSVGElement': parameter 1"
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setEnd' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setEnd' on 'Range': parameter 2"
});
args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
+ return esValue[implSymbol].setEnd(...args);
}
- suspendRedraw(maxWaitMilliseconds) {
+ setStartBefore(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'suspendRedraw' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'setStartBefore' called on an object that is not a valid instance of Range.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'suspendRedraw' on 'SVGSVGElement': 1 argument required, but only " +
+ "Failed to execute 'setStartBefore' on 'Range': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -117014,23 +112370,21 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'suspendRedraw' on 'SVGSVGElement': parameter 1"
- });
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setStartBefore' on 'Range': parameter 1" });
args.push(curArg);
}
- return esValue[implSymbol].suspendRedraw(...args);
+ return esValue[implSymbol].setStartBefore(...args);
}
- unsuspendRedraw(suspendHandleID) {
+ setStartAfter(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'unsuspendRedraw' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'setStartAfter' called on an object that is not a valid instance of Range.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'unsuspendRedraw' on 'SVGSVGElement': 1 argument required, but only " +
+ "Failed to execute 'setStartAfter' on 'Range': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -117038,519 +112392,437 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'unsuspendRedraw' on 'SVGSVGElement': parameter 1"
- });
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setStartAfter' on 'Range': parameter 1" });
args.push(curArg);
}
- return esValue[implSymbol].unsuspendRedraw(...args);
+ return esValue[implSymbol].setStartAfter(...args);
}
- unsuspendRedrawAll() {
+ setEndBefore(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'unsuspendRedrawAll' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'setEndBefore' called on an object that is not a valid instance of Range.");
}
- return esValue[implSymbol].unsuspendRedrawAll();
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setEndBefore' on 'Range': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setEndBefore' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].setEndBefore(...args);
}
- forceRedraw() {
+ setEndAfter(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'forceRedraw' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'setEndAfter' called on an object that is not a valid instance of Range.");
}
- return esValue[implSymbol].forceRedraw();
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'setEndAfter' on 'Range': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setEndAfter' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].setEndAfter(...args);
}
- get onafterprint() {
+ collapse() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onafterprint' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'collapse' called on an object that is not a valid instance of Range.");
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, { context: "Failed to execute 'collapse' on 'Range': parameter 1" });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].collapse(...args);
}
- set onafterprint(V) {
+ selectNode(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onafterprint' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'selectNode' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onafterprint' property on 'SVGSVGElement': The provided value"
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'selectNode' on 'Range': 1 argument required, but only " + arguments.length + " present."
+ );
}
- esValue[implSymbol]["onafterprint"] = V;
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'selectNode' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].selectNode(...args);
}
- get onbeforeprint() {
+ selectNodeContents(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onbeforeprint' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'selectNodeContents' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'selectNodeContents' on 'Range': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'selectNodeContents' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].selectNodeContents(...args);
}
- set onbeforeprint(V) {
+ compareBoundaryPoints(how, sourceRange) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onbeforeprint' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'compareBoundaryPoints' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeprint' property on 'SVGSVGElement': The provided value"
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'compareBoundaryPoints' on 'Range': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned short"](curArg, {
+ context: "Failed to execute 'compareBoundaryPoints' on 'Range': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onbeforeprint"] = V;
- }
-
- get onbeforeunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onbeforeunload' called on an object that is not a valid instance of SVGSVGElement.");
+ {
+ let curArg = arguments[1];
+ curArg = exports.convert(curArg, {
+ context: "Failed to execute 'compareBoundaryPoints' on 'Range': parameter 2"
+ });
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
+ return esValue[implSymbol].compareBoundaryPoints(...args);
}
- set onbeforeunload(V) {
+ deleteContents() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onbeforeunload' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'deleteContents' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onbeforeunload' property on 'SVGSVGElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].deleteContents();
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onbeforeunload"] = V;
}
- get onhashchange() {
+ extractContents() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onhashchange' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'extractContents' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].extractContents());
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onhashchange(V) {
+ cloneContents() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onhashchange' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'cloneContents' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onhashchange' property on 'SVGSVGElement': The provided value"
- });
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].cloneContents());
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onhashchange"] = V;
}
- get onlanguagechange() {
+ insertNode(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onlanguagechange' called on an object that is not a valid instance of SVGSVGElement."
- );
+ throw new TypeError("'insertNode' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
- }
-
- set onlanguagechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
+ if (arguments.length < 1) {
throw new TypeError(
- "'set onlanguagechange' called on an object that is not a valid instance of SVGSVGElement."
+ "Failed to execute 'insertNode' on 'Range': 1 argument required, but only " + arguments.length + " present."
);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onlanguagechange' property on 'SVGSVGElement': The provided value"
- });
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'insertNode' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].insertNode(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onlanguagechange"] = V;
}
- get onmessage() {
+ surroundContents(newParent) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onmessage' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'surroundContents' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'surroundContents' on 'Range': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'surroundContents' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].surroundContents(...args);
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onmessage(V) {
+ cloneRange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onmessage' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'cloneRange' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessage' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol].cloneRange());
}
- get onmessageerror() {
+ detach() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onmessageerror' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'detach' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
+ return esValue[implSymbol].detach();
}
- set onmessageerror(V) {
+ isPointInRange(node, offset) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onmessageerror' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'isPointInRange' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessageerror' property on 'SVGSVGElement': The provided value"
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'isPointInRange' on 'Range': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'isPointInRange' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'isPointInRange' on 'Range': parameter 2"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onmessageerror"] = V;
+ return esValue[implSymbol].isPointInRange(...args);
}
- get onoffline() {
+ comparePoint(node, offset) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onoffline' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'comparePoint' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
- }
-
- set onoffline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onoffline' called on an object that is not a valid instance of SVGSVGElement.");
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'comparePoint' on 'Range': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onoffline' property on 'SVGSVGElement': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'comparePoint' on 'Range': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'comparePoint' on 'Range': parameter 2"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onoffline"] = V;
+ return esValue[implSymbol].comparePoint(...args);
}
- get ononline() {
+ intersectsNode(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get ononline' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'intersectsNode' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
- }
-
- set ononline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set ononline' called on an object that is not a valid instance of SVGSVGElement.");
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'intersectsNode' on 'Range': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ononline' property on 'SVGSVGElement': The provided value"
- });
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'intersectsNode' on 'Range': parameter 1" });
+ args.push(curArg);
}
- esValue[implSymbol]["ononline"] = V;
+ return esValue[implSymbol].intersectsNode(...args);
}
- get onpagehide() {
+ toString() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onpagehide' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'toString' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
+ return esValue[implSymbol].toString();
}
- set onpagehide(V) {
+ createContextualFragment(fragment) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onpagehide' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'createContextualFragment' called on an object that is not a valid instance of Range.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpagehide' property on 'SVGSVGElement': The provided value"
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'createContextualFragment' on 'Range': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'createContextualFragment' on 'Range': parameter 1"
});
+ args.push(curArg);
+ }
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return utils.tryWrapperForImpl(esValue[implSymbol].createContextualFragment(...args));
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
- esValue[implSymbol]["onpagehide"] = V;
}
- get onpageshow() {
+ get commonAncestorContainer() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onpageshow' called on an object that is not a valid instance of SVGSVGElement.");
+ throw new TypeError("'get commonAncestorContainer' called on an object that is not a valid instance of Range.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
- }
-
- set onpageshow(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpageshow' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpageshow' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpageshow"] = V;
- }
-
- get onpopstate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onpopstate' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
- }
-
- set onpopstate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onpopstate' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onpopstate' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpopstate"] = V;
- }
-
- get onrejectionhandled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onrejectionhandled' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
- }
-
- set onrejectionhandled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onrejectionhandled' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onrejectionhandled' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onrejectionhandled"] = V;
- }
-
- get onstorage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onstorage' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
- }
-
- set onstorage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onstorage' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onstorage' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onstorage"] = V;
- }
-
- get onunhandledrejection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onunhandledrejection' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
- }
-
- set onunhandledrejection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onunhandledrejection' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onunhandledrejection' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onunhandledrejection"] = V;
- }
-
- get onunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get onunload' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
- }
-
- set onunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set onunload' called on an object that is not a valid instance of SVGSVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onunload' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onunload"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["commonAncestorContainer"]);
}
}
- Object.defineProperties(SVGSVGElement.prototype, {
- createSVGNumber: { enumerable: true },
- getElementById: { enumerable: true },
- suspendRedraw: { enumerable: true },
- unsuspendRedraw: { enumerable: true },
- unsuspendRedrawAll: { enumerable: true },
- forceRedraw: { enumerable: true },
- onafterprint: { enumerable: true },
- onbeforeprint: { enumerable: true },
- onbeforeunload: { enumerable: true },
- onhashchange: { enumerable: true },
- onlanguagechange: { enumerable: true },
- onmessage: { enumerable: true },
- onmessageerror: { enumerable: true },
- onoffline: { enumerable: true },
- ononline: { enumerable: true },
- onpagehide: { enumerable: true },
- onpageshow: { enumerable: true },
- onpopstate: { enumerable: true },
- onrejectionhandled: { enumerable: true },
- onstorage: { enumerable: true },
- onunhandledrejection: { enumerable: true },
- onunload: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGSVGElement", configurable: true }
+ Object.defineProperties(Range.prototype, {
+ setStart: { enumerable: true },
+ setEnd: { enumerable: true },
+ setStartBefore: { enumerable: true },
+ setStartAfter: { enumerable: true },
+ setEndBefore: { enumerable: true },
+ setEndAfter: { enumerable: true },
+ collapse: { enumerable: true },
+ selectNode: { enumerable: true },
+ selectNodeContents: { enumerable: true },
+ compareBoundaryPoints: { enumerable: true },
+ deleteContents: { enumerable: true },
+ extractContents: { enumerable: true },
+ cloneContents: { enumerable: true },
+ insertNode: { enumerable: true },
+ surroundContents: { enumerable: true },
+ cloneRange: { enumerable: true },
+ detach: { enumerable: true },
+ isPointInRange: { enumerable: true },
+ comparePoint: { enumerable: true },
+ intersectsNode: { enumerable: true },
+ toString: { enumerable: true },
+ createContextualFragment: { enumerable: true },
+ commonAncestorContainer: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Range", configurable: true },
+ START_TO_START: { value: 0, enumerable: true },
+ START_TO_END: { value: 1, enumerable: true },
+ END_TO_END: { value: 2, enumerable: true },
+ END_TO_START: { value: 3, enumerable: true }
+ });
+ Object.defineProperties(Range, {
+ START_TO_START: { value: 0, enumerable: true },
+ START_TO_END: { value: 1, enumerable: true },
+ END_TO_END: { value: 2, enumerable: true },
+ END_TO_START: { value: 3, enumerable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = SVGSVGElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = Range;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: SVGSVGElement
+ value: Range
});
};
-const Impl = __nccwpck_require__(65765);
+const Impl = __nccwpck_require__(67156);
/***/ }),
-/***/ 19953:
+/***/ 69927:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -117562,7 +112834,7 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "SVGStringList";
+const interfaceName = "SVGAnimatedString";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -117574,7 +112846,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'SVGStringList'.`);
+ throw new TypeError(`${context} is not of type 'SVGAnimatedString'.`);
};
function makeWrapper(globalObject) {
@@ -117582,9 +112854,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["SVGStringList"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGAnimatedString"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGStringList is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGAnimatedString is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -117611,8 +112883,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -117620,8 +112890,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -117629,8 +112899,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -117644,425 +112912,68 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class SVGStringList {
+ class SVGAnimatedString {
constructor() {
throw new TypeError("Illegal constructor");
}
- clear() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'clear' called on an object that is not a valid instance of SVGStringList.");
- }
-
- return esValue[implSymbol].clear();
- }
-
- initialize(newItem) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'initialize' called on an object that is not a valid instance of SVGStringList.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initialize' on 'SVGStringList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initialize' on 'SVGStringList': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].initialize(...args);
- }
-
- getItem(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getItem' called on an object that is not a valid instance of SVGStringList.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getItem' on 'SVGStringList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'getItem' on 'SVGStringList': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getItem(...args);
- }
-
- insertItemBefore(newItem, index) {
+ get baseVal() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'insertItemBefore' called on an object that is not a valid instance of SVGStringList.");
- }
-
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertItemBefore' on 'SVGStringList': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'insertItemBefore' on 'SVGStringList': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].insertItemBefore(...args);
- }
- replaceItem(newItem, index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'replaceItem' called on an object that is not a valid instance of SVGStringList.");
+ throw new TypeError("'get baseVal' called on an object that is not a valid instance of SVGAnimatedString.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceItem' on 'SVGStringList': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'replaceItem' on 'SVGStringList': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].replaceItem(...args);
+ return esValue[implSymbol]["baseVal"];
}
- removeItem(index) {
+ set baseVal(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'removeItem' called on an object that is not a valid instance of SVGStringList.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'removeItem' on 'SVGStringList': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].removeItem(...args);
- }
- appendItem(newItem) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'appendItem' called on an object that is not a valid instance of SVGStringList.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'appendItem' on 'SVGStringList': parameter 1"
- });
- args.push(curArg);
+ throw new TypeError("'set baseVal' called on an object that is not a valid instance of SVGAnimatedString.");
}
- return esValue[implSymbol].appendItem(...args);
- }
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of SVGStringList.");
- }
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'baseVal' property on 'SVGAnimatedString': The provided value"
+ });
- return esValue[implSymbol]["length"];
+ esValue[implSymbol]["baseVal"] = V;
}
- get numberOfItems() {
+ get animVal() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get numberOfItems' called on an object that is not a valid instance of SVGStringList.");
+ throw new TypeError("'get animVal' called on an object that is not a valid instance of SVGAnimatedString.");
}
- return esValue[implSymbol]["numberOfItems"];
+ return esValue[implSymbol]["animVal"];
}
}
- Object.defineProperties(SVGStringList.prototype, {
- clear: { enumerable: true },
- initialize: { enumerable: true },
- getItem: { enumerable: true },
- insertItemBefore: { enumerable: true },
- replaceItem: { enumerable: true },
- removeItem: { enumerable: true },
- appendItem: { enumerable: true },
- length: { enumerable: true },
- numberOfItems: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGStringList", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ Object.defineProperties(SVGAnimatedString.prototype, {
+ baseVal: { enumerable: true },
+ animVal: { enumerable: true },
+ [Symbol.toStringTag]: { value: "SVGAnimatedString", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = SVGStringList;
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGAnimatedString;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: SVGStringList
+ value: SVGAnimatedString
});
};
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].getItem(index);
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- let indexedValue = V;
-
- indexedValue = conversions["DOMString"](indexedValue, {
- context: "Failed to set the " + index + " property on 'SVGStringList': The provided value"
- });
-
- const creating = !target[implSymbol][utils.supportsPropertyIndex](index);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
-
- return true;
- }
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].getItem(index);
- ownDesc = {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- if (utils.isArrayIndexPropName(P)) {
- if (desc.get || desc.set) {
- return false;
- }
-
- const index = P >>> 0;
- let indexedValue = desc.value;
-
- indexedValue = conversions["DOMString"](indexedValue, {
- context: "Failed to set the " + index + " property on 'SVGStringList': The provided value"
- });
-
- const creating = !target[implSymbol][utils.supportsPropertyIndex](index);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
-
- return true;
- }
-
- return Reflect.defineProperty(target, P, desc);
- },
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !target[implSymbol][utils.supportsPropertyIndex](index);
- }
-
- return Reflect.deleteProperty(target, P);
- },
-
- preventExtensions() {
- return false;
- }
-};
-
-const Impl = __nccwpck_require__(89904);
+const Impl = __nccwpck_require__(3710);
/***/ }),
-/***/ 15462:
+/***/ 98086:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -118071,11 +112982,15 @@ const Impl = __nccwpck_require__(89904);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const EventHandlerNonNull = __nccwpck_require__(23129);
+const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const SVGElement = __nccwpck_require__(98086);
+const Element = __nccwpck_require__(4444);
-const interfaceName = "SVGTitleElement";
+const interfaceName = "SVGElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -118087,7 +113002,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'SVGTitleElement'.`);
+ throw new TypeError(`${context} is not of type 'SVGElement'.`);
};
function makeWrapper(globalObject) {
@@ -118095,9 +113010,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["SVGTitleElement"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor SVGTitleElement is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -118114,7 +113029,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- SVGElement._internalSetup(wrapper, globalObject);
+ Element._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -118133,7 +113048,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -118156,2041 +113071,1903 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.SVGElement === undefined) {
- throw new Error("Internal error: attempting to evaluate SVGTitleElement before SVGElement");
+ if (globalObject.Element === undefined) {
+ throw new Error("Internal error: attempting to evaluate SVGElement before Element");
}
- class SVGTitleElement extends globalObject.SVGElement {
+ class SVGElement extends globalObject.Element {
constructor() {
throw new TypeError("Illegal constructor");
}
- }
- Object.defineProperties(SVGTitleElement.prototype, {
- [Symbol.toStringTag]: { value: "SVGTitleElement", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = SVGTitleElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGTitleElement
- });
-};
+ focus() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'focus' called on an object that is not a valid instance of SVGElement.");
+ }
-const Impl = __nccwpck_require__(3694);
+ return esValue[implSymbol].focus();
+ }
+ blur() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'blur' called on an object that is not a valid instance of SVGElement.");
+ }
-/***/ }),
+ return esValue[implSymbol].blur();
+ }
-/***/ 46164:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ get className() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get className' called on an object that is not a valid instance of SVGElement.");
+ }
+ return utils.getSameObject(this, "className", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["className"]);
+ });
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get ownerSVGElement() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ownerSVGElement' called on an object that is not a valid instance of SVGElement.");
+ }
-const interfaceName = "Screen";
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ownerSVGElement"]);
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Screen'.`);
-};
+ get viewportElement() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get viewportElement' called on an object that is not a valid instance of SVGElement.");
+ }
- const ctor = globalObject[ctorRegistrySymbol]["Screen"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Screen is not installed on the passed global object");
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["viewportElement"]);
+ }
- return Object.create(ctor.prototype);
-}
+ get style() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get style' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ return utils.getSameObject(this, "style", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
+ });
+ }
-exports._internalSetup = (wrapper, globalObject) => {};
+ set style(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set style' called on an object that is not a valid instance of SVGElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ const Q = esValue["style"];
+ if (!utils.isObject(Q)) {
+ throw new TypeError("Property 'style' is not an object");
+ }
+ Reflect.set(Q, "cssText", V);
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ get onabort() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onabort' called on an object that is not a valid instance of SVGElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set onabort(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onabort' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class Screen {
- constructor() {
- throw new TypeError("Illegal constructor");
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onabort' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onabort"] = V;
}
- get availWidth() {
+ get onauxclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get availWidth' called on an object that is not a valid instance of Screen.");
+ throw new TypeError("'get onauxclick' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["availWidth"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
}
- get availHeight() {
+ set onauxclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get availHeight' called on an object that is not a valid instance of Screen.");
+ throw new TypeError("'set onauxclick' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["availHeight"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onauxclick' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onauxclick"] = V;
}
- get width() {
+ get onblur() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get width' called on an object that is not a valid instance of Screen.");
+ throw new TypeError("'get onblur' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["width"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
}
- get height() {
+ set onblur(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get height' called on an object that is not a valid instance of Screen.");
+ throw new TypeError("'set onblur' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["height"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onblur' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onblur"] = V;
}
- get colorDepth() {
+ get oncancel() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get colorDepth' called on an object that is not a valid instance of Screen.");
+ throw new TypeError("'get oncancel' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["colorDepth"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
}
- get pixelDepth() {
+ set oncancel(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get pixelDepth' called on an object that is not a valid instance of Screen.");
+ throw new TypeError("'set oncancel' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["pixelDepth"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncancel' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncancel"] = V;
}
- }
- Object.defineProperties(Screen.prototype, {
- availWidth: { enumerable: true },
- availHeight: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- colorDepth: { enumerable: true },
- pixelDepth: { enumerable: true },
- [Symbol.toStringTag]: { value: "Screen", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = Screen;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Screen
- });
-};
+ get oncanplay() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(97772);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncanplay' called on an object that is not a valid instance of SVGElement.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
+ }
-/***/ }),
+ set oncanplay(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 69144:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oncanplay' called on an object that is not a valid instance of SVGElement.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncanplay' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncanplay"] = V;
+ }
+ get oncanplaythrough() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oncanplaythrough' called on an object that is not a valid instance of SVGElement.");
+ }
-const Range = __nccwpck_require__(38522);
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
+ }
-const interfaceName = "Selection";
+ set oncanplaythrough(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Selection'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oncanplaythrough' called on an object that is not a valid instance of SVGElement.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncanplaythrough' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncanplaythrough"] = V;
+ }
- const ctor = globalObject[ctorRegistrySymbol]["Selection"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Selection is not installed on the passed global object");
- }
+ get onchange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onchange' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ set onchange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onchange' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onchange' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onchange"] = V;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ get onclick() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onclick' called on an object that is not a valid instance of SVGElement.");
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set onclick(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onclick' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class Selection {
- constructor() {
- throw new TypeError("Illegal constructor");
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onclick' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onclick"] = V;
}
- getRangeAt(index) {
+ get onclose() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'getRangeAt' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get onclose' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getRangeAt' on 'Selection': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
+ }
+
+ set onclose(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onclose' called on an object that is not a valid instance of SVGElement.");
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'getRangeAt' on 'Selection': parameter 1"
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onclose' property on 'SVGElement': The provided value"
});
- args.push(curArg);
}
- return utils.tryWrapperForImpl(esValue[implSymbol].getRangeAt(...args));
+ esValue[implSymbol]["onclose"] = V;
}
- addRange(range) {
+ get oncontextmenu() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'addRange' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get oncontextmenu' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'addRange' on 'Selection': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Range.convert(curArg, { context: "Failed to execute 'addRange' on 'Selection': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].addRange(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
}
- removeRange(range) {
+ set oncontextmenu(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'removeRange' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set oncontextmenu' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'removeRange' on 'Selection': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Range.convert(curArg, { context: "Failed to execute 'removeRange' on 'Selection': parameter 1" });
- args.push(curArg);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncontextmenu' property on 'SVGElement': The provided value"
+ });
}
- return esValue[implSymbol].removeRange(...args);
+ esValue[implSymbol]["oncontextmenu"] = V;
}
- removeAllRanges() {
+ get oncuechange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'removeAllRanges' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get oncuechange' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].removeAllRanges();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
}
- empty() {
+ set oncuechange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'empty' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set oncuechange' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].empty();
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oncuechange' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["oncuechange"] = V;
}
- collapse(node) {
+ get ondblclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'collapse' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondblclick' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'collapse' on 'Selection': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = Node.convert(curArg, { context: "Failed to execute 'collapse' on 'Selection': parameter 1" });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'collapse' on 'Selection': parameter 2"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].collapse(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
}
- setPosition(node) {
+ set ondblclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'setPosition' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondblclick' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'setPosition' on 'Selection': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = Node.convert(curArg, { context: "Failed to execute 'setPosition' on 'Selection': parameter 1" });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setPosition' on 'Selection': parameter 2"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondblclick' property on 'SVGElement': The provided value"
+ });
}
- return esValue[implSymbol].setPosition(...args);
+ esValue[implSymbol]["ondblclick"] = V;
}
- collapseToStart() {
+ get ondrag() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'collapseToStart' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondrag' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].collapseToStart();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
}
- collapseToEnd() {
+ set ondrag(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'collapseToEnd' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondrag' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].collapseToEnd();
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondrag' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondrag"] = V;
}
- extend(node) {
+ get ondragend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'extend' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondragend' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'extend' on 'Selection': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'extend' on 'Selection': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'extend' on 'Selection': parameter 2"
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].extend(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
}
- setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset) {
+ set ondragend(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'setBaseAndExtent' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondragend' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 4) {
- throw new TypeError(
- "Failed to execute 'setBaseAndExtent' on 'Selection': 4 arguments required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 2"
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragend' property on 'SVGElement': The provided value"
});
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = Node.convert(curArg, { context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 3" });
- args.push(curArg);
}
- {
- let curArg = arguments[3];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 4"
- });
- args.push(curArg);
+ esValue[implSymbol]["ondragend"] = V;
+ }
+
+ get ondragenter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragenter' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].setBaseAndExtent(...args);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
}
- selectAllChildren(node) {
+ set ondragenter(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'selectAllChildren' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondragenter' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'selectAllChildren' on 'Selection': 1 argument required, but only " +
- arguments.length +
- " present."
- );
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragenter' property on 'SVGElement': The provided value"
+ });
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'selectAllChildren' on 'Selection': parameter 1" });
- args.push(curArg);
+ esValue[implSymbol]["ondragenter"] = V;
+ }
+
+ get ondragleave() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ondragleave' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].selectAllChildren(...args);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
}
- deleteFromDocument() {
+ set ondragleave(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'deleteFromDocument' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondragleave' called on an object that is not a valid instance of SVGElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteFromDocument();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragleave' property on 'SVGElement': The provided value"
+ });
}
+ esValue[implSymbol]["ondragleave"] = V;
}
- containsNode(node) {
+ get ondragover() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'containsNode' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondragover' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'containsNode' on 'Selection': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(curArg, { context: "Failed to execute 'containsNode' on 'Selection': parameter 1" });
- args.push(curArg);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
+ }
+
+ set ondragover(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ondragover' called on an object that is not a valid instance of SVGElement.");
}
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'containsNode' on 'Selection': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragover' property on 'SVGElement': The provided value"
+ });
}
- return esValue[implSymbol].containsNode(...args);
+ esValue[implSymbol]["ondragover"] = V;
}
- toString() {
+ get ondragstart() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'toString' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondragstart' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].toString();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
}
- get anchorNode() {
+ set ondragstart(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get anchorNode' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondragstart' called on an object that is not a valid instance of SVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["anchorNode"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondragstart' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondragstart"] = V;
}
- get anchorOffset() {
+ get ondrop() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get anchorOffset' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondrop' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["anchorOffset"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
}
- get focusNode() {
+ set ondrop(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get focusNode' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondrop' called on an object that is not a valid instance of SVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["focusNode"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondrop' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondrop"] = V;
}
- get focusOffset() {
+ get ondurationchange() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get focusOffset' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get ondurationchange' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["focusOffset"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
}
- get isCollapsed() {
+ set ondurationchange(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get isCollapsed' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set ondurationchange' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["isCollapsed"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ondurationchange' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ondurationchange"] = V;
}
- get rangeCount() {
+ get onemptied() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rangeCount' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'get onemptied' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["rangeCount"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
}
- get type() {
+ set onemptied(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get type' called on an object that is not a valid instance of Selection.");
+ throw new TypeError("'set onemptied' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["type"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onemptied' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onemptied"] = V;
}
- }
- Object.defineProperties(Selection.prototype, {
- getRangeAt: { enumerable: true },
- addRange: { enumerable: true },
- removeRange: { enumerable: true },
- removeAllRanges: { enumerable: true },
- empty: { enumerable: true },
- collapse: { enumerable: true },
- setPosition: { enumerable: true },
- collapseToStart: { enumerable: true },
- collapseToEnd: { enumerable: true },
- extend: { enumerable: true },
- setBaseAndExtent: { enumerable: true },
- selectAllChildren: { enumerable: true },
- deleteFromDocument: { enumerable: true },
- containsNode: { enumerable: true },
- toString: { enumerable: true },
- anchorNode: { enumerable: true },
- anchorOffset: { enumerable: true },
- focusNode: { enumerable: true },
- focusOffset: { enumerable: true },
- isCollapsed: { enumerable: true },
- rangeCount: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "Selection", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = Selection;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Selection
- });
-};
+ get onended() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(76803);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onended' called on an object that is not a valid instance of SVGElement.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
+ }
-/***/ }),
+ set onended(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 12458:
-/***/ ((__unused_webpack_module, exports) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onended' called on an object that is not a valid instance of SVGElement.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onended' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onended"] = V;
+ }
+ get onerror() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const enumerationValues = new Set(["select", "start", "end", "preserve"]);
-exports.enumerationValues = enumerationValues;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onerror' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for SelectionMode`);
- }
- return string;
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
+ }
+ set onerror(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onerror' called on an object that is not a valid instance of SVGElement.");
+ }
-/***/ 17290:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnErrorEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onerror' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onerror"] = V;
+ }
-"use strict";
+ get onfocus() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onfocus' called on an object that is not a valid instance of SVGElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
+ }
-const ceReactionsPreSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPreSteps;
-const ceReactionsPostSteps_helpers_custom_elements = __nccwpck_require__(25392).ceReactionsPostSteps;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const DocumentFragment = __nccwpck_require__(11490);
+ set onfocus(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "ShadowRoot";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onfocus' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'ShadowRoot'.`);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onfocus' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onfocus"] = V;
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ get oninput() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ctor = globalObject[ctorRegistrySymbol]["ShadowRoot"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor ShadowRoot is not installed on the passed global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oninput' called on an object that is not a valid instance of SVGElement.");
+ }
- return Object.create(ctor.prototype);
-}
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ set oninput(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oninput' called on an object that is not a valid instance of SVGElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- DocumentFragment._internalSetup(wrapper, globalObject);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oninput' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["oninput"] = V;
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ get oninvalid() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get oninvalid' called on an object that is not a valid instance of SVGElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ set oninvalid(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set oninvalid' called on an object that is not a valid instance of SVGElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'oninvalid' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["oninvalid"] = V;
+ }
-const exposed = new Set(["Window"]);
+ get onkeydown() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onkeydown' called on an object that is not a valid instance of SVGElement.");
+ }
- if (globalObject.DocumentFragment === undefined) {
- throw new Error("Internal error: attempting to evaluate ShadowRoot before DocumentFragment");
- }
- class ShadowRoot extends globalObject.DocumentFragment {
- constructor() {
- throw new TypeError("Illegal constructor");
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
}
- get mode() {
+ set onkeydown(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get mode' called on an object that is not a valid instance of ShadowRoot.");
+ throw new TypeError("'set onkeydown' called on an object that is not a valid instance of SVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["mode"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeydown' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onkeydown"] = V;
}
- get host() {
+ get onkeypress() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get host' called on an object that is not a valid instance of ShadowRoot.");
+ throw new TypeError("'get onkeypress' called on an object that is not a valid instance of SVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["host"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
}
- get innerHTML() {
+ set onkeypress(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get innerHTML' called on an object that is not a valid instance of ShadowRoot.");
+ throw new TypeError("'set onkeypress' called on an object that is not a valid instance of SVGElement.");
}
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["innerHTML"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeypress' property on 'SVGElement': The provided value"
+ });
}
+ esValue[implSymbol]["onkeypress"] = V;
}
- set innerHTML(V) {
+ get onkeyup() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set innerHTML' called on an object that is not a valid instance of ShadowRoot.");
+ throw new TypeError("'get onkeyup' called on an object that is not a valid instance of SVGElement.");
}
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'innerHTML' property on 'ShadowRoot': The provided value",
- treatNullAsEmptyString: true
- });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
+ }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["innerHTML"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ set onkeyup(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onkeyup' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onkeyup' property on 'SVGElement': The provided value"
+ });
}
+ esValue[implSymbol]["onkeyup"] = V;
}
- get activeElement() {
+ get onload() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get activeElement' called on an object that is not a valid instance of ShadowRoot.");
+ throw new TypeError("'get onload' called on an object that is not a valid instance of SVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["activeElement"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
}
- }
- Object.defineProperties(ShadowRoot.prototype, {
- mode: { enumerable: true },
- host: { enumerable: true },
- innerHTML: { enumerable: true },
- activeElement: { enumerable: true },
- [Symbol.toStringTag]: { value: "ShadowRoot", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = ShadowRoot;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ShadowRoot
- });
-};
+ set onload(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(82239);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onload' called on an object that is not a valid instance of SVGElement.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onload' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onload"] = V;
+ }
-/***/ }),
+ get onloadeddata() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 83671:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadeddata' called on an object that is not a valid instance of SVGElement.");
+ }
-"use strict";
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
+ }
+ set onloadeddata(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadeddata' called on an object that is not a valid instance of SVGElement.");
+ }
-const ShadowRootMode = __nccwpck_require__(56801);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadeddata' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadeddata"] = V;
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "mode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = ShadowRootMode.convert(value, { context: context + " has member 'mode' that" });
+ get onloadedmetadata() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- throw new TypeError("mode is required in 'ShadowRootInit'");
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadedmetadata' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ set onloadedmetadata(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadedmetadata' called on an object that is not a valid instance of SVGElement.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadedmetadata' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadedmetadata"] = V;
+ }
-/***/ }),
+ get onloadend() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 56801:
-/***/ ((__unused_webpack_module, exports) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadend' called on an object that is not a valid instance of SVGElement.");
+ }
-"use strict";
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ }
+ set onloadend(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const enumerationValues = new Set(["open", "closed"]);
-exports.enumerationValues = enumerationValues;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadend' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for ShadowRootMode`);
- }
- return string;
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadend' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadend"] = V;
+ }
+ get onloadstart() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onloadstart' called on an object that is not a valid instance of SVGElement.");
+ }
-/***/ 82721:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
+ }
-"use strict";
+ set onloadstart(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onloadstart' called on an object that is not a valid instance of SVGElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onloadstart' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onloadstart"] = V;
+ }
-const StaticRangeInit = __nccwpck_require__(71626);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const AbstractRange = __nccwpck_require__(10083);
+ get onmousedown() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "StaticRange";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmousedown' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'StaticRange'.`);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ set onmousedown(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ctor = globalObject[ctorRegistrySymbol]["StaticRange"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor StaticRange is not installed on the passed global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmousedown' called on an object that is not a valid instance of SVGElement.");
+ }
- return Object.create(ctor.prototype);
-}
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmousedown' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmousedown"] = V;
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ get onmouseenter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ return;
+ }
-exports._internalSetup = (wrapper, globalObject) => {
- AbstractRange._internalSetup(wrapper, globalObject);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ set onmouseenter(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.AbstractRange === undefined) {
- throw new Error("Internal error: attempting to evaluate StaticRange before AbstractRange");
- }
- class StaticRange extends globalObject.AbstractRange {
- constructor(init) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'StaticRange': 1 argument required, but only " + arguments.length + " present."
- );
+ if (!exports.is(esValue)) {
+ return;
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = StaticRangeInit.convert(curArg, { context: "Failed to construct 'StaticRange': parameter 1" });
- args.push(curArg);
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseenter' property on 'SVGElement': The provided value"
+ });
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ esValue[implSymbol]["onmouseenter"] = V;
}
- }
- Object.defineProperties(StaticRange.prototype, {
- [Symbol.toStringTag]: { value: "StaticRange", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = StaticRange;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: StaticRange
- });
-};
-
-const Impl = __nccwpck_require__(74007);
+ get onmouseleave() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
+ if (!exports.is(esValue)) {
+ return;
+ }
-/***/ 71626:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
+ }
-"use strict";
+ set onmouseleave(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ return;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseleave' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseleave"] = V;
+ }
-const Node = __nccwpck_require__(41209);
+ get onmousemove() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "endContainer";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = Node.convert(value, { context: context + " has member 'endContainer' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmousemove' called on an object that is not a valid instance of SVGElement.");
+ }
- ret[key] = value;
- } else {
- throw new TypeError("endContainer is required in 'StaticRangeInit'");
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
}
- }
-
- {
- const key = "endOffset";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'endOffset' that" });
- ret[key] = value;
- } else {
- throw new TypeError("endOffset is required in 'StaticRangeInit'");
- }
- }
+ set onmousemove(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "startContainer";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = Node.convert(value, { context: context + " has member 'startContainer' that" });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmousemove' called on an object that is not a valid instance of SVGElement.");
+ }
- ret[key] = value;
- } else {
- throw new TypeError("startContainer is required in 'StaticRangeInit'");
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmousemove' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmousemove"] = V;
}
- }
- {
- const key = "startOffset";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'startOffset' that" });
+ get onmouseout() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- throw new TypeError("startOffset is required in 'StaticRangeInit'");
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseout' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ set onmouseout(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmouseout' called on an object that is not a valid instance of SVGElement.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseout' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseout"] = V;
+ }
-/***/ }),
+ get onmouseover() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 76969:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseover' called on an object that is not a valid instance of SVGElement.");
+ }
-"use strict";
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
+ }
+ set onmouseover(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmouseover' called on an object that is not a valid instance of SVGElement.");
+ }
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseover' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseover"] = V;
+ }
-const interfaceName = "Storage";
+ get onmouseup() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'Storage'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmouseup' called on an object that is not a valid instance of SVGElement.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
+ }
- const ctor = globalObject[ctorRegistrySymbol]["Storage"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor Storage is not installed on the passed global object");
- }
+ set onmouseup(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmouseup' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmouseup' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmouseup"] = V;
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ get onwheel() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onwheel' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ set onwheel(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper = new Proxy(wrapper, proxyHandler);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onwheel' called on an object that is not a valid instance of SVGElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onwheel' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onwheel"] = V;
+ }
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+ get onpause() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onpause' called on an object that is not a valid instance of SVGElement.");
+ }
- wrapper = new Proxy(wrapper, proxyHandler);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ set onpause(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const exposed = new Set(["Window"]);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onpause' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class Storage {
- constructor() {
- throw new TypeError("Illegal constructor");
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpause' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onpause"] = V;
}
- key(index) {
+ get onplay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'key' called on an object that is not a valid instance of Storage.");
+ throw new TypeError("'get onplay' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'key' on 'Storage': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, { context: "Failed to execute 'key' on 'Storage': parameter 1" });
- args.push(curArg);
- }
- return esValue[implSymbol].key(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
}
- getItem(key) {
+ set onplay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'getItem' called on an object that is not a valid instance of Storage.");
+ throw new TypeError("'set onplay' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getItem' on 'Storage': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'getItem' on 'Storage': parameter 1" });
- args.push(curArg);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onplay' property on 'SVGElement': The provided value"
+ });
}
- return esValue[implSymbol].getItem(...args);
+ esValue[implSymbol]["onplay"] = V;
}
- setItem(key, value) {
+ get onplaying() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'setItem' called on an object that is not a valid instance of Storage.");
+ throw new TypeError("'get onplaying' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 2) {
- throw new TypeError(
- "Failed to execute 'setItem' on 'Storage': 2 arguments required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'setItem' on 'Storage': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'setItem' on 'Storage': parameter 2" });
- args.push(curArg);
- }
- return esValue[implSymbol].setItem(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
}
- removeItem(key) {
+ set onplaying(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'removeItem' called on an object that is not a valid instance of Storage.");
+ throw new TypeError("'set onplaying' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'removeItem' on 'Storage': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeItem' on 'Storage': parameter 1"
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onplaying' property on 'SVGElement': The provided value"
});
- args.push(curArg);
}
- return esValue[implSymbol].removeItem(...args);
+ esValue[implSymbol]["onplaying"] = V;
}
- clear() {
+ get onprogress() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'clear' called on an object that is not a valid instance of Storage.");
+ throw new TypeError("'get onprogress' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol].clear();
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
}
- get length() {
+ set onprogress(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of Storage.");
+ throw new TypeError("'set onprogress' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["length"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onprogress' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onprogress"] = V;
}
- }
- Object.defineProperties(Storage.prototype, {
- key: { enumerable: true },
- getItem: { enumerable: true },
- setItem: { enumerable: true },
- removeItem: { enumerable: true },
- clear: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "Storage", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = Storage;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Storage
- });
-};
+ get onratechange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onratechange' called on an object that is not a valid instance of SVGElement.");
}
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
}
- return false;
- },
- ownKeys(target) {
- const keys = new Set();
+ set onratechange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onratechange' called on an object that is not a valid instance of SVGElement.");
}
- }
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onratechange' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onratechange"] = V;
}
- return [...keys];
- },
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
+ get onreset() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const namedValue = target[implSymbol].getItem(P);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onreset' called on an object that is not a valid instance of SVGElement.");
+ }
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
}
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
+ set onreset(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- if (typeof P === "string") {
- let namedValue = V;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onreset' called on an object that is not a valid instance of SVGElement.");
+ }
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'Storage': The provided value"
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onreset' property on 'SVGElement': The provided value"
});
-
- target[implSymbol].setItem(P, namedValue);
-
- return true;
}
+ esValue[implSymbol]["onreset"] = V;
}
- let ownDesc;
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
+ get onresize() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
- if (!utils.hasOwn(target, P)) {
- if (desc.get || desc.set) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onresize' called on an object that is not a valid instance of SVGElement.");
}
- let namedValue = desc.value;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
+ }
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'Storage': The provided value"
- });
+ set onresize(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- target[implSymbol].setItem(P, namedValue);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onresize' called on an object that is not a valid instance of SVGElement.");
+ }
- return true;
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onresize' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onresize"] = V;
}
- return Reflect.defineProperty(target, P, desc);
- },
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
+ get onscroll() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (target[implSymbol].getItem(P) !== null && !(P in target)) {
- target[implSymbol].removeItem(P);
- return true;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onscroll' called on an object that is not a valid instance of SVGElement.");
+ }
- return Reflect.deleteProperty(target, P);
- },
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
+ }
- preventExtensions() {
- return false;
- }
-};
+ set onscroll(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(5570);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onscroll' called on an object that is not a valid instance of SVGElement.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onscroll' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onscroll"] = V;
+ }
-/***/ }),
+ get onsecuritypolicyviolation() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 85048:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
+ );
+ }
-"use strict";
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
+ }
+ set onsecuritypolicyviolation(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
+ );
+ }
-const StorageEventInit = __nccwpck_require__(68629);
-const Storage = __nccwpck_require__(76969);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsecuritypolicyviolation' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onsecuritypolicyviolation"] = V;
+ }
-const interfaceName = "StorageEvent";
+ get onseeked() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'StorageEvent'.`);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onseeked' called on an object that is not a valid instance of SVGElement.");
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
+ }
- const ctor = globalObject[ctorRegistrySymbol]["StorageEvent"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor StorageEvent is not installed on the passed global object");
- }
+ set onseeked(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- return Object.create(ctor.prototype);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onseeked' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onseeked' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onseeked"] = V;
+ }
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ get onseeking() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onseeking' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ set onseeking(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onseeking' called on an object that is not a valid instance of SVGElement.");
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onseeking' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onseeking"] = V;
+ }
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ get onselect() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onselect' called on an object that is not a valid instance of SVGElement.");
+ }
-const exposed = new Set(["Window"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
+ }
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
+ set onselect(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate StorageEvent before Event");
- }
- class StorageEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'StorageEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'StorageEvent': parameter 1" });
- args.push(curArg);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onselect' called on an object that is not a valid instance of SVGElement.");
}
- {
- let curArg = arguments[1];
- curArg = StorageEventInit.convert(curArg, { context: "Failed to construct 'StorageEvent': parameter 2" });
- args.push(curArg);
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onselect' property on 'SVGElement': The provided value"
+ });
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ esValue[implSymbol]["onselect"] = V;
}
- initStorageEvent(type) {
+ get onstalled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'initStorageEvent' called on an object that is not a valid instance of StorageEvent.");
+ throw new TypeError("'get onstalled' called on an object that is not a valid instance of SVGElement.");
}
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'initStorageEvent' on 'StorageEvent': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 4"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 5"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 6"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 7"
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = Storage.convert(curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 8"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initStorageEvent(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
}
- get key() {
+ set onstalled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get key' called on an object that is not a valid instance of StorageEvent.");
+ throw new TypeError("'set onstalled' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["key"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onstalled' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onstalled"] = V;
}
- get oldValue() {
+ get onsubmit() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get oldValue' called on an object that is not a valid instance of StorageEvent.");
+ throw new TypeError("'get onsubmit' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["oldValue"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
}
- get newValue() {
+ set onsubmit(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get newValue' called on an object that is not a valid instance of StorageEvent.");
+ throw new TypeError("'set onsubmit' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["newValue"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsubmit' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onsubmit"] = V;
}
- get url() {
+ get onsuspend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get url' called on an object that is not a valid instance of StorageEvent.");
+ throw new TypeError("'get onsuspend' called on an object that is not a valid instance of SVGElement.");
}
- return esValue[implSymbol]["url"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
}
- get storageArea() {
+ set onsuspend(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get storageArea' called on an object that is not a valid instance of StorageEvent.");
+ throw new TypeError("'set onsuspend' called on an object that is not a valid instance of SVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["storageArea"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onsuspend' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onsuspend"] = V;
}
- }
- Object.defineProperties(StorageEvent.prototype, {
- initStorageEvent: { enumerable: true },
- key: { enumerable: true },
- oldValue: { enumerable: true },
- newValue: { enumerable: true },
- url: { enumerable: true },
- storageArea: { enumerable: true },
- [Symbol.toStringTag]: { value: "StorageEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = StorageEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: StorageEvent
- });
-};
+ get ontimeupdate() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const Impl = __nccwpck_require__(85232);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ontimeupdate' called on an object that is not a valid instance of SVGElement.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
+ }
-/***/ }),
+ set ontimeupdate(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 68629:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ontimeupdate' called on an object that is not a valid instance of SVGElement.");
+ }
-"use strict";
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ontimeupdate' property on 'SVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ontimeupdate"] = V;
+ }
+ get ontoggle() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ontoggle' called on an object that is not a valid instance of SVGElement.");
+ }
-const Storage = __nccwpck_require__(76969);
-const EventInit = __nccwpck_require__(4895);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+ set ontoggle(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- {
- const key = "key";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ontoggle' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
} else {
- value = conversions["DOMString"](value, { context: context + " has member 'key' that" });
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ontoggle' property on 'SVGElement': The provided value"
+ });
}
- ret[key] = value;
- } else {
- ret[key] = null;
+ esValue[implSymbol]["ontoggle"] = V;
}
- }
- {
- const key = "newValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = conversions["DOMString"](value, { context: context + " has member 'newValue' that" });
+ get onvolumechange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onvolumechange' called on an object that is not a valid instance of SVGElement.");
}
- ret[key] = value;
- } else {
- ret[key] = null;
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
}
- }
- {
- const key = "oldValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
+ set onvolumechange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onvolumechange' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
} else {
- value = conversions["DOMString"](value, { context: context + " has member 'oldValue' that" });
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onvolumechange' property on 'SVGElement': The provided value"
+ });
}
- ret[key] = value;
- } else {
- ret[key] = null;
+ esValue[implSymbol]["onvolumechange"] = V;
}
- }
- {
- const key = "storageArea";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
+ get onwaiting() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onwaiting' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
+ }
+
+ set onwaiting(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onwaiting' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
} else {
- value = Storage.convert(value, { context: context + " has member 'storageArea' that" });
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onwaiting' property on 'SVGElement': The provided value"
+ });
}
- ret[key] = value;
- } else {
- ret[key] = null;
+ esValue[implSymbol]["onwaiting"] = V;
}
- }
- {
- const key = "url";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'url' that" });
+ get dataset() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- ret[key] = value;
- } else {
- ret[key] = "";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get dataset' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ return utils.getSameObject(this, "dataset", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
+ });
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
+ get nonce() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get nonce' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ const value = esValue[implSymbol].getAttributeNS(null, "nonce");
+ return value === null ? "" : value;
+ }
+
+ set nonce(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set nonce' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'nonce' property on 'SVGElement': The provided value"
+ });
+
+ esValue[implSymbol].setAttributeNS(null, "nonce", V);
+ }
+
+ get tabIndex() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get tabIndex' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["tabIndex"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+
+ set tabIndex(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set tabIndex' called on an object that is not a valid instance of SVGElement.");
+ }
+
+ V = conversions["long"](V, {
+ context: "Failed to set the 'tabIndex' property on 'SVGElement': The provided value"
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["tabIndex"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
+ }
+ }
+ Object.defineProperties(SVGElement.prototype, {
+ focus: { enumerable: true },
+ blur: { enumerable: true },
+ className: { enumerable: true },
+ ownerSVGElement: { enumerable: true },
+ viewportElement: { enumerable: true },
+ style: { enumerable: true },
+ onabort: { enumerable: true },
+ onauxclick: { enumerable: true },
+ onblur: { enumerable: true },
+ oncancel: { enumerable: true },
+ oncanplay: { enumerable: true },
+ oncanplaythrough: { enumerable: true },
+ onchange: { enumerable: true },
+ onclick: { enumerable: true },
+ onclose: { enumerable: true },
+ oncontextmenu: { enumerable: true },
+ oncuechange: { enumerable: true },
+ ondblclick: { enumerable: true },
+ ondrag: { enumerable: true },
+ ondragend: { enumerable: true },
+ ondragenter: { enumerable: true },
+ ondragleave: { enumerable: true },
+ ondragover: { enumerable: true },
+ ondragstart: { enumerable: true },
+ ondrop: { enumerable: true },
+ ondurationchange: { enumerable: true },
+ onemptied: { enumerable: true },
+ onended: { enumerable: true },
+ onerror: { enumerable: true },
+ onfocus: { enumerable: true },
+ oninput: { enumerable: true },
+ oninvalid: { enumerable: true },
+ onkeydown: { enumerable: true },
+ onkeypress: { enumerable: true },
+ onkeyup: { enumerable: true },
+ onload: { enumerable: true },
+ onloadeddata: { enumerable: true },
+ onloadedmetadata: { enumerable: true },
+ onloadend: { enumerable: true },
+ onloadstart: { enumerable: true },
+ onmousedown: { enumerable: true },
+ onmouseenter: { enumerable: true },
+ onmouseleave: { enumerable: true },
+ onmousemove: { enumerable: true },
+ onmouseout: { enumerable: true },
+ onmouseover: { enumerable: true },
+ onmouseup: { enumerable: true },
+ onwheel: { enumerable: true },
+ onpause: { enumerable: true },
+ onplay: { enumerable: true },
+ onplaying: { enumerable: true },
+ onprogress: { enumerable: true },
+ onratechange: { enumerable: true },
+ onreset: { enumerable: true },
+ onresize: { enumerable: true },
+ onscroll: { enumerable: true },
+ onsecuritypolicyviolation: { enumerable: true },
+ onseeked: { enumerable: true },
+ onseeking: { enumerable: true },
+ onselect: { enumerable: true },
+ onstalled: { enumerable: true },
+ onsubmit: { enumerable: true },
+ onsuspend: { enumerable: true },
+ ontimeupdate: { enumerable: true },
+ ontoggle: { enumerable: true },
+ onvolumechange: { enumerable: true },
+ onwaiting: { enumerable: true },
+ dataset: { enumerable: true },
+ nonce: { enumerable: true },
+ tabIndex: { enumerable: true },
+ [Symbol.toStringTag]: { value: "SVGElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGElement;
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: SVGElement
+ });
};
+const Impl = __nccwpck_require__(10064);
+
/***/ }),
-/***/ 5924:
+/***/ 18269:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -120201,8 +114978,9 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const SVGElement = __nccwpck_require__(98086);
-const interfaceName = "StyleSheetList";
+const interfaceName = "SVGGraphicsElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -120214,7 +114992,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'StyleSheetList'.`);
+ throw new TypeError(`${context} is not of type 'SVGGraphicsElement'.`);
};
function makeWrapper(globalObject) {
@@ -120222,9 +115000,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["StyleSheetList"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGGraphicsElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor StyleSheetList is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGGraphicsElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -120240,7 +115018,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ SVGElement._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -120251,8 +115031,6 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -120260,8 +115038,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- let wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -120269,8 +115047,6 @@ exports.new = globalObject => {
configurable: true
});
- wrapper = new Proxy(wrapper, proxyHandler);
-
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -120284,254 +115060,66 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class StyleSheetList {
+
+ if (globalObject.SVGElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate SVGGraphicsElement before SVGElement");
+ }
+ class SVGGraphicsElement extends globalObject.SVGElement {
constructor() {
throw new TypeError("Illegal constructor");
}
- item(index) {
+ get requiredExtensions() {
const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'item' called on an object that is not a valid instance of StyleSheetList.");
- }
- if (arguments.length < 1) {
+ if (!exports.is(esValue)) {
throw new TypeError(
- "Failed to execute 'item' on 'StyleSheetList': 1 argument required, but only " +
- arguments.length +
- " present."
+ "'get requiredExtensions' called on an object that is not a valid instance of SVGGraphicsElement."
);
}
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'StyleSheetList': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
+
+ return utils.getSameObject(this, "requiredExtensions", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["requiredExtensions"]);
+ });
}
- get length() {
+ get systemLanguage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get length' called on an object that is not a valid instance of StyleSheetList.");
+ throw new TypeError(
+ "'get systemLanguage' called on an object that is not a valid instance of SVGGraphicsElement."
+ );
}
- return esValue[implSymbol]["length"];
+ return utils.getSameObject(this, "systemLanguage", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["systemLanguage"]);
+ });
}
}
- Object.defineProperties(StyleSheetList.prototype, {
- item: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "StyleSheetList", configurable: true },
- [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
+ Object.defineProperties(SVGGraphicsElement.prototype, {
+ requiredExtensions: { enumerable: true },
+ systemLanguage: { enumerable: true },
+ [Symbol.toStringTag]: { value: "SVGGraphicsElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = StyleSheetList;
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGGraphicsElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: StyleSheetList
+ value: SVGGraphicsElement
});
};
-const proxyHandler = {
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- },
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- },
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- },
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- },
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- },
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- },
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- },
-
- preventExtensions() {
- return false;
- }
-};
-
-const Impl = __nccwpck_require__(63894);
-
-
-/***/ }),
-
-/***/ 10095:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set([
- "text/html",
- "text/xml",
- "application/xml",
- "application/xhtml+xml",
- "image/svg+xml"
-]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for SupportedType`);
- }
- return string;
-};
+const Impl = __nccwpck_require__(34638);
/***/ }),
-/***/ 49374:
+/***/ 23577:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -120542,9 +115130,8 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const CharacterData = __nccwpck_require__(30948);
-const interfaceName = "Text";
+const interfaceName = "SVGNumber";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -120556,7 +115143,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'Text'.`);
+ throw new TypeError(`${context} is not of type 'SVGNumber'.`);
};
function makeWrapper(globalObject) {
@@ -120564,9 +115151,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["Text"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGNumber"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor Text is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGNumber is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -120582,9 +115169,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- CharacterData._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -120602,7 +115187,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -120624,111 +115209,55 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.CharacterData === undefined) {
- throw new Error("Internal error: attempting to evaluate Text before CharacterData");
- }
- class Text extends globalObject.CharacterData {
+ class SVGNumber {
constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'Text': parameter 1" });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- splitText(offset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'splitText' called on an object that is not a valid instance of Text.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'splitText' on 'Text': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'splitText' on 'Text': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].splitText(...args));
+ throw new TypeError("Illegal constructor");
}
- get wholeText() {
+ get value() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get wholeText' called on an object that is not a valid instance of Text.");
+ throw new TypeError("'get value' called on an object that is not a valid instance of SVGNumber.");
}
- return esValue[implSymbol]["wholeText"];
+ return esValue[implSymbol]["value"];
}
- get assignedSlot() {
+ set value(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get assignedSlot' called on an object that is not a valid instance of Text.");
+ throw new TypeError("'set value' called on an object that is not a valid instance of SVGNumber.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
+ V = conversions["float"](V, { context: "Failed to set the 'value' property on 'SVGNumber': The provided value" });
+
+ esValue[implSymbol]["value"] = V;
}
}
- Object.defineProperties(Text.prototype, {
- splitText: { enumerable: true },
- wholeText: { enumerable: true },
- assignedSlot: { enumerable: true },
- [Symbol.toStringTag]: { value: "Text", configurable: true }
+ Object.defineProperties(SVGNumber.prototype, {
+ value: { enumerable: true },
+ [Symbol.toStringTag]: { value: "SVGNumber", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = Text;
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGNumber;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: Text
+ value: SVGNumber
});
};
-const Impl = __nccwpck_require__(58791);
-
-
-/***/ }),
-
-/***/ 57191:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["subtitles", "captions", "descriptions", "chapters", "metadata"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for TextTrackKind`);
- }
- return string;
-};
+const Impl = __nccwpck_require__(68401);
/***/ }),
-/***/ 83234:
+/***/ 58833:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -120737,12 +115266,13 @@ exports.convert = function convert(value, { context = "The provided value" } = {
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const TouchEventInit = __nccwpck_require__(36157);
+const EventHandlerNonNull = __nccwpck_require__(23129);
+const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
+const SVGGraphicsElement = __nccwpck_require__(18269);
-const interfaceName = "TouchEvent";
+const interfaceName = "SVGSVGElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -120754,7 +115284,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'TouchEvent'.`);
+ throw new TypeError(`${context} is not of type 'SVGSVGElement'.`);
};
function makeWrapper(globalObject) {
@@ -120762,9 +115292,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["TouchEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGSVGElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor TouchEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGSVGElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -120781,7 +115311,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
+ SVGGraphicsElement._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -120800,7 +115330,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -120823,469 +115353,600 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.UIEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate TouchEvent before UIEvent");
+ if (globalObject.SVGGraphicsElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate SVGSVGElement before SVGGraphicsElement");
}
- class TouchEvent extends globalObject.UIEvent {
- constructor(type) {
+ class SVGSVGElement extends globalObject.SVGGraphicsElement {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+
+ createSVGNumber() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'createSVGNumber' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].createSVGNumber());
+ }
+
+ getElementById(elementId) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getElementById' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+
if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'TouchEvent': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'getElementById' on 'SVGSVGElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'TouchEvent': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'getElementById' on 'SVGSVGElement': parameter 1"
+ });
args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
+ }
+
+ suspendRedraw(maxWaitMilliseconds) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'suspendRedraw' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'suspendRedraw' on 'SVGSVGElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[1];
- curArg = TouchEventInit.convert(curArg, { context: "Failed to construct 'TouchEvent': parameter 2" });
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'suspendRedraw' on 'SVGSVGElement': parameter 1"
+ });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return esValue[implSymbol].suspendRedraw(...args);
}
- get touches() {
+ unsuspendRedraw(suspendHandleID) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get touches' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'unsuspendRedraw' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["touches"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'unsuspendRedraw' on 'SVGSVGElement': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'unsuspendRedraw' on 'SVGSVGElement': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].unsuspendRedraw(...args);
}
- get targetTouches() {
+ unsuspendRedrawAll() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get targetTouches' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'unsuspendRedrawAll' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["targetTouches"]);
+ return esValue[implSymbol].unsuspendRedrawAll();
}
- get changedTouches() {
+ forceRedraw() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get changedTouches' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'forceRedraw' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["changedTouches"]);
+ return esValue[implSymbol].forceRedraw();
}
- get altKey() {
+ get onafterprint() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get altKey' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'get onafterprint' called on an object that is not a valid instance of SVGSVGElement.");
}
- return esValue[implSymbol]["altKey"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
}
- get metaKey() {
+ set onafterprint(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get metaKey' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'set onafterprint' called on an object that is not a valid instance of SVGSVGElement.");
}
- return esValue[implSymbol]["metaKey"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onafterprint' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onafterprint"] = V;
}
- get ctrlKey() {
+ get onbeforeprint() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get ctrlKey' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'get onbeforeprint' called on an object that is not a valid instance of SVGSVGElement.");
}
- return esValue[implSymbol]["ctrlKey"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
}
- get shiftKey() {
+ set onbeforeprint(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get shiftKey' called on an object that is not a valid instance of TouchEvent.");
+ throw new TypeError("'set onbeforeprint' called on an object that is not a valid instance of SVGSVGElement.");
}
- return esValue[implSymbol]["shiftKey"];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onbeforeprint' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onbeforeprint"] = V;
}
- }
- Object.defineProperties(TouchEvent.prototype, {
- touches: { enumerable: true },
- targetTouches: { enumerable: true },
- changedTouches: { enumerable: true },
- altKey: { enumerable: true },
- metaKey: { enumerable: true },
- ctrlKey: { enumerable: true },
- shiftKey: { enumerable: true },
- [Symbol.toStringTag]: { value: "TouchEvent", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = TouchEvent;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: TouchEvent
- });
-};
-
-const Impl = __nccwpck_require__(8409);
+ get onbeforeunload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onbeforeunload' called on an object that is not a valid instance of SVGSVGElement.");
+ }
-/***/ }),
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
+ }
-/***/ 36157:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ set onbeforeunload(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onbeforeunload' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onbeforeunload' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onbeforeunload"] = V;
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ get onhashchange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const EventModifierInit = __nccwpck_require__(22409);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onhashchange' called on an object that is not a valid instance of SVGSVGElement.");
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventModifierInit._convertInherit(obj, ret, { context });
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
+ }
- {
- const key = "changedTouches";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new TypeError(context + " has member 'changedTouches' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
+ set onhashchange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- V.push(nextItem);
- }
- value = V;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onhashchange' called on an object that is not a valid instance of SVGSVGElement.");
}
- ret[key] = value;
- } else {
- ret[key] = [];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onhashchange' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onhashchange"] = V;
}
- }
- {
- const key = "targetTouches";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new TypeError(context + " has member 'targetTouches' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
+ get onlanguagechange() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- V.push(nextItem);
- }
- value = V;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'get onlanguagechange' called on an object that is not a valid instance of SVGSVGElement."
+ );
}
- ret[key] = value;
- } else {
- ret[key] = [];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
}
- }
- {
- const key = "touches";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new TypeError(context + " has member 'touches' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
+ set onlanguagechange(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- V.push(nextItem);
- }
- value = V;
+ if (!exports.is(esValue)) {
+ throw new TypeError(
+ "'set onlanguagechange' called on an object that is not a valid instance of SVGSVGElement."
+ );
}
- ret[key] = value;
- } else {
- ret[key] = [];
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onlanguagechange' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onlanguagechange"] = V;
}
- }
-};
-
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
-};
+ get onmessage() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ }),
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmessage' called on an object that is not a valid instance of SVGSVGElement.");
+ }
-/***/ 69029:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
+ }
-"use strict";
+ set onmessage(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmessage' called on an object that is not a valid instance of SVGSVGElement.");
+ }
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmessage' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmessage"] = V;
+ }
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+ get onmessageerror() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-const interfaceName = "TreeWalker";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onmessageerror' called on an object that is not a valid instance of SVGSVGElement.");
+ }
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new TypeError(`${context} is not of type 'TreeWalker'.`);
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
+ }
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
- }
+ set onmessageerror(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const ctor = globalObject[ctorRegistrySymbol]["TreeWalker"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor TreeWalker is not installed on the passed global object");
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onmessageerror' called on an object that is not a valid instance of SVGSVGElement.");
+ }
- return Object.create(ctor.prototype);
-}
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onmessageerror' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onmessageerror"] = V;
+ }
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
+ get onoffline() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onoffline' called on an object that is not a valid instance of SVGSVGElement.");
+ }
-exports._internalSetup = (wrapper, globalObject) => {};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
+ }
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
+ set onoffline(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onoffline' called on an object that is not a valid instance of SVGSVGElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onoffline' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onoffline"] = V;
+ }
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+ get ononline() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ononline' called on an object that is not a valid instance of SVGSVGElement.");
+ }
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
+ }
-const exposed = new Set(["Window"]);
+ set ononline(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- class TreeWalker {
- constructor() {
- throw new TypeError("Illegal constructor");
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set ononline' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'ononline' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["ononline"] = V;
}
- parentNode() {
+ get onpagehide() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'parentNode' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'get onpagehide' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].parentNode());
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
}
- firstChild() {
+ set onpagehide(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'firstChild' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'set onpagehide' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].firstChild());
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpagehide' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onpagehide"] = V;
}
- lastChild() {
+ get onpageshow() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'lastChild' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'get onpageshow' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].lastChild());
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
}
- previousSibling() {
+ set onpageshow(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'previousSibling' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'set onpageshow' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].previousSibling());
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpageshow' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onpageshow"] = V;
}
- nextSibling() {
+ get onpopstate() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'nextSibling' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'get onpopstate' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].nextSibling());
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
}
- previousNode() {
+ set onpopstate(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'previousNode' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'set onpopstate' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol].previousNode());
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onpopstate' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onpopstate"] = V;
}
- nextNode() {
+ get onrejectionhandled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
+
if (!exports.is(esValue)) {
- throw new TypeError("'nextNode' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError(
+ "'get onrejectionhandled' called on an object that is not a valid instance of SVGSVGElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol].nextNode());
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
}
- get root() {
+ set onrejectionhandled(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get root' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError(
+ "'set onrejectionhandled' called on an object that is not a valid instance of SVGSVGElement."
+ );
}
- return utils.getSameObject(this, "root", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["root"]);
- });
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onrejectionhandled' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onrejectionhandled"] = V;
}
- get whatToShow() {
+ get onstorage() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get whatToShow' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'get onstorage' called on an object that is not a valid instance of SVGSVGElement.");
}
- return esValue[implSymbol]["whatToShow"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
}
- get filter() {
+ set onstorage(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get filter' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError("'set onstorage' called on an object that is not a valid instance of SVGSVGElement.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["filter"]);
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onstorage' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onstorage"] = V;
}
- get currentNode() {
+ get onunhandledrejection() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get currentNode' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError(
+ "'get onunhandledrejection' called on an object that is not a valid instance of SVGSVGElement."
+ );
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["currentNode"]);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
}
- set currentNode(V) {
+ set onunhandledrejection(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set currentNode' called on an object that is not a valid instance of TreeWalker.");
+ throw new TypeError(
+ "'set onunhandledrejection' called on an object that is not a valid instance of SVGSVGElement."
+ );
}
- V = Node.convert(V, { context: "Failed to set the 'currentNode' property on 'TreeWalker': The provided value" });
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onunhandledrejection' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onunhandledrejection"] = V;
+ }
- esValue[implSymbol]["currentNode"] = V;
+ get onunload() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get onunload' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
+ }
+
+ set onunload(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set onunload' called on an object that is not a valid instance of SVGSVGElement.");
+ }
+
+ if (!utils.isObject(V)) {
+ V = null;
+ } else {
+ V = EventHandlerNonNull.convert(V, {
+ context: "Failed to set the 'onunload' property on 'SVGSVGElement': The provided value"
+ });
+ }
+ esValue[implSymbol]["onunload"] = V;
}
}
- Object.defineProperties(TreeWalker.prototype, {
- parentNode: { enumerable: true },
- firstChild: { enumerable: true },
- lastChild: { enumerable: true },
- previousSibling: { enumerable: true },
- nextSibling: { enumerable: true },
- previousNode: { enumerable: true },
- nextNode: { enumerable: true },
- root: { enumerable: true },
- whatToShow: { enumerable: true },
- filter: { enumerable: true },
- currentNode: { enumerable: true },
- [Symbol.toStringTag]: { value: "TreeWalker", configurable: true }
+ Object.defineProperties(SVGSVGElement.prototype, {
+ createSVGNumber: { enumerable: true },
+ getElementById: { enumerable: true },
+ suspendRedraw: { enumerable: true },
+ unsuspendRedraw: { enumerable: true },
+ unsuspendRedrawAll: { enumerable: true },
+ forceRedraw: { enumerable: true },
+ onafterprint: { enumerable: true },
+ onbeforeprint: { enumerable: true },
+ onbeforeunload: { enumerable: true },
+ onhashchange: { enumerable: true },
+ onlanguagechange: { enumerable: true },
+ onmessage: { enumerable: true },
+ onmessageerror: { enumerable: true },
+ onoffline: { enumerable: true },
+ ononline: { enumerable: true },
+ onpagehide: { enumerable: true },
+ onpageshow: { enumerable: true },
+ onpopstate: { enumerable: true },
+ onrejectionhandled: { enumerable: true },
+ onstorage: { enumerable: true },
+ onunhandledrejection: { enumerable: true },
+ onunload: { enumerable: true },
+ [Symbol.toStringTag]: { value: "SVGSVGElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = TreeWalker;
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGSVGElement;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: TreeWalker
+ value: SVGSVGElement
});
};
-const Impl = __nccwpck_require__(73498);
+const Impl = __nccwpck_require__(65765);
/***/ }),
-/***/ 58078:
+/***/ 19953:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -121294,12 +115955,10 @@ const Impl = __nccwpck_require__(73498);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const UIEventInit = __nccwpck_require__(82015);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-const interfaceName = "UIEvent";
+const interfaceName = "SVGStringList";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -121311,7 +115970,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'UIEvent'.`);
+ throw new TypeError(`${context} is not of type 'SVGStringList'.`);
};
function makeWrapper(globalObject) {
@@ -121319,9 +115978,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["UIEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGStringList"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor UIEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGStringList is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -121337,9 +115996,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -121350,6 +116007,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -121357,8 +116016,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -121366,6 +116025,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -121379,40 +116040,77 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
+ class SVGStringList {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+
+ clear() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'clear' called on an object that is not a valid instance of SVGStringList.");
+ }
+
+ return esValue[implSymbol].clear();
+ }
+
+ initialize(newItem) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'initialize' called on an object that is not a valid instance of SVGStringList.");
+ }
- if (globalObject.Event === undefined) {
- throw new Error("Internal error: attempting to evaluate UIEvent before Event");
- }
- class UIEvent extends globalObject.Event {
- constructor(type) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'UIEvent': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'initialize' on 'SVGStringList': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'UIEvent': parameter 1" });
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initialize' on 'SVGStringList': parameter 1"
+ });
args.push(curArg);
}
+ return esValue[implSymbol].initialize(...args);
+ }
+
+ getItem(index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getItem' called on an object that is not a valid instance of SVGStringList.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getItem' on 'SVGStringList': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[1];
- curArg = UIEventInit.convert(curArg, { context: "Failed to construct 'UIEvent': parameter 2" });
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'getItem' on 'SVGStringList': parameter 1"
+ });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return esValue[implSymbol].getItem(...args);
}
- initUIEvent(typeArg) {
+ insertItemBefore(newItem, index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'initUIEvent' called on an object that is not a valid instance of UIEvent.");
+ throw new TypeError("'insertItemBefore' called on an object that is not a valid instance of SVGStringList.");
}
- if (arguments.length < 1) {
+ if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'initUIEvent' on 'UIEvent': 1 argument required, but only " +
+ "Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only " +
arguments.length +
" present."
);
@@ -121421,181 +116119,346 @@ exports.install = (globalObject, globalNames) => {
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 1"
+ context: "Failed to execute 'insertItemBefore' on 'SVGStringList': parameter 1"
});
args.push(curArg);
}
{
let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 2"
- });
- } else {
- curArg = false;
- }
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'insertItemBefore' on 'SVGStringList': parameter 2"
+ });
args.push(curArg);
}
+ return esValue[implSymbol].insertItemBefore(...args);
+ }
+
+ replaceItem(newItem, index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'replaceItem' called on an object that is not a valid instance of SVGStringList.");
+ }
+
+ if (arguments.length < 2) {
+ throw new TypeError(
+ "Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 3"
- });
- } else {
- curArg = false;
- }
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'replaceItem' on 'SVGStringList': parameter 1"
+ });
args.push(curArg);
}
{
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'replaceItem' on 'SVGStringList': parameter 2"
+ });
args.push(curArg);
}
+ return esValue[implSymbol].replaceItem(...args);
+ }
+
+ removeItem(index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'removeItem' called on an object that is not a valid instance of SVGStringList.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 5"
- });
- } else {
- curArg = 0;
- }
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'removeItem' on 'SVGStringList': parameter 1"
+ });
args.push(curArg);
}
- return esValue[implSymbol].initUIEvent(...args);
+ return esValue[implSymbol].removeItem(...args);
}
- get view() {
+ appendItem(newItem) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get view' called on an object that is not a valid instance of UIEvent.");
+ throw new TypeError("'appendItem' called on an object that is not a valid instance of SVGStringList.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["view"]);
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'appendItem' on 'SVGStringList': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].appendItem(...args);
}
- get detail() {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get detail' called on an object that is not a valid instance of UIEvent.");
+ throw new TypeError("'get length' called on an object that is not a valid instance of SVGStringList.");
}
- return esValue[implSymbol]["detail"];
+ return esValue[implSymbol]["length"];
}
- get which() {
+ get numberOfItems() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get which' called on an object that is not a valid instance of UIEvent.");
+ throw new TypeError("'get numberOfItems' called on an object that is not a valid instance of SVGStringList.");
}
- return esValue[implSymbol]["which"];
+ return esValue[implSymbol]["numberOfItems"];
}
}
- Object.defineProperties(UIEvent.prototype, {
- initUIEvent: { enumerable: true },
- view: { enumerable: true },
- detail: { enumerable: true },
- which: { enumerable: true },
- [Symbol.toStringTag]: { value: "UIEvent", configurable: true }
+ Object.defineProperties(SVGStringList.prototype, {
+ clear: { enumerable: true },
+ initialize: { enumerable: true },
+ getItem: { enumerable: true },
+ insertItemBefore: { enumerable: true },
+ replaceItem: { enumerable: true },
+ removeItem: { enumerable: true },
+ appendItem: { enumerable: true },
+ length: { enumerable: true },
+ numberOfItems: { enumerable: true },
+ [Symbol.toStringTag]: { value: "SVGStringList", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = UIEvent;
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGStringList;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: UIEvent
+ value: SVGStringList
});
};
-const Impl = __nccwpck_require__(55900);
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
+ }
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ },
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ },
-/***/ }),
+ ownKeys(target) {
+ const keys = new Set();
-/***/ 82015:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
-"use strict";
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
+ }
+ return [...keys];
+ },
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
-const EventInit = __nccwpck_require__(4895);
+ if (target[implSymbol][utils.supportsPropertyIndex](index)) {
+ const indexedValue = target[implSymbol].getItem(index);
+ return {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ ignoreNamedProps = true;
+ }
-exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(obj, ret, { context });
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- {
- const key = "detail";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'detail' that" });
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
+ }
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ let indexedValue = V;
- ret[key] = value;
+ indexedValue = conversions["DOMString"](indexedValue, {
+ context: "Failed to set the " + index + " property on 'SVGStringList': The provided value"
+ });
+
+ const creating = !target[implSymbol][utils.supportsPropertyIndex](index);
+ if (creating) {
+ target[implSymbol][utils.indexedSetNew](index, indexedValue);
+ } else {
+ target[implSymbol][utils.indexedSetExisting](index, indexedValue);
+ }
+
+ return true;
+ }
+ }
+ let ownDesc;
+
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+
+ if (target[implSymbol][utils.supportsPropertyIndex](index)) {
+ const indexedValue = target[implSymbol].getItem(index);
+ ownDesc = {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ }
+
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
+ }
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
+ }
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
+ }
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
} else {
- ret[key] = 0;
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
- }
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- {
- const key = "view";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
+
+ if (utils.isArrayIndexPropName(P)) {
+ if (desc.get || desc.set) {
+ return false;
+ }
+
+ const index = P >>> 0;
+ let indexedValue = desc.value;
+
+ indexedValue = conversions["DOMString"](indexedValue, {
+ context: "Failed to set the " + index + " property on 'SVGStringList': The provided value"
+ });
+
+ const creating = !target[implSymbol][utils.supportsPropertyIndex](index);
+ if (creating) {
+ target[implSymbol][utils.indexedSetNew](index, indexedValue);
} else {
- value = utils.tryImplForWrapper(value);
+ target[implSymbol][utils.indexedSetExisting](index, indexedValue);
}
- ret[key] = value;
- } else {
- ret[key] = null;
+
+ return true;
}
- }
- {
- const key = "which";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'which' that" });
+ return Reflect.defineProperty(target, P, desc);
+ },
- ret[key] = value;
- } else {
- ret[key] = 0;
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
}
- }
-};
-exports.convert = function convert(obj, { context = "The provided value" } = {}) {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new TypeError(`${context} is not an object.`);
- }
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !target[implSymbol][utils.supportsPropertyIndex](index);
+ }
- const ret = Object.create(null);
- exports._convertInherit(obj, ret, { context });
- return ret;
+ return Reflect.deleteProperty(target, P);
+ },
+
+ preventExtensions() {
+ return false;
+ }
};
+const Impl = __nccwpck_require__(89904);
+
/***/ }),
-/***/ 84979:
+/***/ 15462:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -121606,8 +116469,9 @@ const utils = __nccwpck_require__(34908);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const SVGElement = __nccwpck_require__(98086);
-const interfaceName = "ValidityState";
+const interfaceName = "SVGTitleElement";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -121619,7 +116483,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'ValidityState'.`);
+ throw new TypeError(`${context} is not of type 'SVGTitleElement'.`);
};
function makeWrapper(globalObject) {
@@ -121627,9 +116491,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["ValidityState"];
+ const ctor = globalObject[ctorRegistrySymbol]["SVGTitleElement"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor ValidityState is not installed on the passed global object");
+ throw new Error("Internal error: constructor SVGTitleElement is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -121645,7 +116509,9 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {};
+exports._internalSetup = (wrapper, globalObject) => {
+ SVGElement._internalSetup(wrapper, globalObject);
+};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -121663,7 +116529,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -121685,153 +116551,217 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class ValidityState {
+
+ if (globalObject.SVGElement === undefined) {
+ throw new Error("Internal error: attempting to evaluate SVGTitleElement before SVGElement");
+ }
+ class SVGTitleElement extends globalObject.SVGElement {
constructor() {
throw new TypeError("Illegal constructor");
}
+ }
+ Object.defineProperties(SVGTitleElement.prototype, {
+ [Symbol.toStringTag]: { value: "SVGTitleElement", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = SVGTitleElement;
- get valueMissing() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: SVGTitleElement
+ });
+};
- if (!exports.is(esValue)) {
- throw new TypeError("'get valueMissing' called on an object that is not a valid instance of ValidityState.");
- }
+const Impl = __nccwpck_require__(3694);
- return esValue[implSymbol]["valueMissing"];
- }
- get typeMismatch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+/***/ }),
- if (!exports.is(esValue)) {
- throw new TypeError("'get typeMismatch' called on an object that is not a valid instance of ValidityState.");
- }
+/***/ 46164:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- return esValue[implSymbol]["typeMismatch"];
- }
+"use strict";
- get patternMismatch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'get patternMismatch' called on an object that is not a valid instance of ValidityState.");
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- return esValue[implSymbol]["patternMismatch"];
- }
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- get tooLong() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+const interfaceName = "Screen";
- if (!exports.is(esValue)) {
- throw new TypeError("'get tooLong' called on an object that is not a valid instance of ValidityState.");
- }
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Screen'.`);
+};
- return esValue[implSymbol]["tooLong"];
- }
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- get tooShort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ const ctor = globalObject[ctorRegistrySymbol]["Screen"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Screen is not installed on the passed global object");
+ }
- if (!exports.is(esValue)) {
- throw new TypeError("'get tooShort' called on an object that is not a valid instance of ValidityState.");
- }
+ return Object.create(ctor.prototype);
+}
- return esValue[implSymbol]["tooShort"];
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
+
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
+
+exports._internalSetup = (wrapper, globalObject) => {};
+
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
+
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
+
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class Screen {
+ constructor() {
+ throw new TypeError("Illegal constructor");
}
- get rangeUnderflow() {
+ get availWidth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rangeUnderflow' called on an object that is not a valid instance of ValidityState.");
+ throw new TypeError("'get availWidth' called on an object that is not a valid instance of Screen.");
}
- return esValue[implSymbol]["rangeUnderflow"];
+ return esValue[implSymbol]["availWidth"];
}
- get rangeOverflow() {
+ get availHeight() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get rangeOverflow' called on an object that is not a valid instance of ValidityState.");
+ throw new TypeError("'get availHeight' called on an object that is not a valid instance of Screen.");
}
- return esValue[implSymbol]["rangeOverflow"];
+ return esValue[implSymbol]["availHeight"];
}
- get stepMismatch() {
+ get width() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get stepMismatch' called on an object that is not a valid instance of ValidityState.");
+ throw new TypeError("'get width' called on an object that is not a valid instance of Screen.");
}
- return esValue[implSymbol]["stepMismatch"];
+ return esValue[implSymbol]["width"];
}
- get badInput() {
+ get height() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get badInput' called on an object that is not a valid instance of ValidityState.");
+ throw new TypeError("'get height' called on an object that is not a valid instance of Screen.");
}
- return esValue[implSymbol]["badInput"];
+ return esValue[implSymbol]["height"];
}
- get customError() {
+ get colorDepth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get customError' called on an object that is not a valid instance of ValidityState.");
+ throw new TypeError("'get colorDepth' called on an object that is not a valid instance of Screen.");
}
- return esValue[implSymbol]["customError"];
+ return esValue[implSymbol]["colorDepth"];
}
- get valid() {
+ get pixelDepth() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get valid' called on an object that is not a valid instance of ValidityState.");
+ throw new TypeError("'get pixelDepth' called on an object that is not a valid instance of Screen.");
}
- return esValue[implSymbol]["valid"];
+ return esValue[implSymbol]["pixelDepth"];
}
}
- Object.defineProperties(ValidityState.prototype, {
- valueMissing: { enumerable: true },
- typeMismatch: { enumerable: true },
- patternMismatch: { enumerable: true },
- tooLong: { enumerable: true },
- tooShort: { enumerable: true },
- rangeUnderflow: { enumerable: true },
- rangeOverflow: { enumerable: true },
- stepMismatch: { enumerable: true },
- badInput: { enumerable: true },
- customError: { enumerable: true },
- valid: { enumerable: true },
- [Symbol.toStringTag]: { value: "ValidityState", configurable: true }
+ Object.defineProperties(Screen.prototype, {
+ availWidth: { enumerable: true },
+ availHeight: { enumerable: true },
+ width: { enumerable: true },
+ height: { enumerable: true },
+ colorDepth: { enumerable: true },
+ pixelDepth: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Screen", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = ValidityState;
+ globalObject[ctorRegistrySymbol][interfaceName] = Screen;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: ValidityState
+ value: Screen
});
};
-const Impl = __nccwpck_require__(82125);
+const Impl = __nccwpck_require__(97772);
/***/ }),
-/***/ 61870:
+/***/ 69144:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -121840,14 +116770,14 @@ const Impl = __nccwpck_require__(82125);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Blob = __nccwpck_require__(48350);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const BinaryType = __nccwpck_require__(55075);
+const Range = __nccwpck_require__(38522);
+const Node = __nccwpck_require__(41209);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-const interfaceName = "WebSocket";
+const interfaceName = "Selection";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -121859,7 +116789,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'WebSocket'.`);
+ throw new TypeError(`${context} is not of type 'Selection'.`);
};
function makeWrapper(globalObject) {
@@ -121867,9 +116797,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["WebSocket"];
+ const ctor = globalObject[ctorRegistrySymbol]["Selection"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor WebSocket is not installed on the passed global object");
+ throw new Error("Internal error: constructor Selection is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -121885,9 +116815,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -121905,7 +116833,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -121921,369 +116849,474 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "Worker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
+ class Selection {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+
+ getRangeAt(index) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'getRangeAt' called on an object that is not a valid instance of Selection.");
+ }
- if (globalObject.EventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate WebSocket before EventTarget");
- }
- class WebSocket extends globalObject.EventTarget {
- constructor(url) {
if (arguments.length < 1) {
throw new TypeError(
- "Failed to construct 'WebSocket': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'getRangeAt' on 'Selection': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, { context: "Failed to construct 'WebSocket': parameter 1" });
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'getRangeAt' on 'Selection': parameter 1"
+ });
args.push(curArg);
}
+ return utils.tryWrapperForImpl(esValue[implSymbol].getRangeAt(...args));
+ }
+
+ addRange(range) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'addRange' called on an object that is not a valid instance of Selection.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'addRange' on 'Selection': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
{
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (utils.isObject(curArg)) {
- if (curArg[Symbol.iterator] !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new TypeError(
- "Failed to construct 'WebSocket': parameter 2" + " sequence" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- nextItem = conversions["DOMString"](nextItem, {
- context: "Failed to construct 'WebSocket': parameter 2" + " sequence" + "'s element"
- });
+ let curArg = arguments[0];
+ curArg = Range.convert(curArg, { context: "Failed to execute 'addRange' on 'Selection': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].addRange(...args);
+ }
- V.push(nextItem);
- }
- curArg = V;
- }
- } else {
- }
- } else {
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'WebSocket': parameter 2" });
- }
- } else {
- curArg = [];
- }
+ removeRange(range) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'removeRange' called on an object that is not a valid instance of Selection.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'removeRange' on 'Selection': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Range.convert(curArg, { context: "Failed to execute 'removeRange' on 'Selection': parameter 1" });
args.push(curArg);
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ return esValue[implSymbol].removeRange(...args);
}
- close() {
+ removeAllRanges() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'close' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'removeAllRanges' called on an object that is not a valid instance of Selection.");
+ }
+
+ return esValue[implSymbol].removeAllRanges();
+ }
+
+ empty() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'empty' called on an object that is not a valid instance of Selection.");
+ }
+
+ return esValue[implSymbol].empty();
+ }
+
+ collapse(node) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'collapse' called on an object that is not a valid instance of Selection.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'collapse' on 'Selection': 1 argument required, but only " + arguments.length + " present."
+ );
}
const args = [];
{
let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["unsigned short"](curArg, {
- context: "Failed to execute 'close' on 'WebSocket': parameter 1",
- clamp: true
- });
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = Node.convert(curArg, { context: "Failed to execute 'collapse' on 'Selection': parameter 1" });
}
args.push(curArg);
}
{
let curArg = arguments[1];
if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'close' on 'WebSocket': parameter 2"
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'collapse' on 'Selection': parameter 2"
});
+ } else {
+ curArg = 0;
}
args.push(curArg);
}
- return esValue[implSymbol].close(...args);
+ return esValue[implSymbol].collapse(...args);
}
- send(data) {
+ setPosition(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'send' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'setPosition' called on an object that is not a valid instance of Selection.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'send' on 'WebSocket': 1 argument required, but only " + arguments.length + " present."
+ "Failed to execute 'setPosition' on 'Selection': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
const args = [];
{
let curArg = arguments[0];
- if (Blob.is(curArg)) {
- {
- let curArg = arguments[0];
- curArg = Blob.convert(curArg, { context: "Failed to execute 'send' on 'WebSocket': parameter 1" });
- args.push(curArg);
- }
- } else if (utils.isArrayBuffer(curArg)) {
- {
- let curArg = arguments[0];
- curArg = conversions["ArrayBuffer"](curArg, {
- context: "Failed to execute 'send' on 'WebSocket': parameter 1"
- });
- args.push(curArg);
- }
- } else if (ArrayBuffer.isView(curArg)) {
- {
- let curArg = arguments[0];
- if (ArrayBuffer.isView(curArg)) {
- } else {
- throw new TypeError(
- "Failed to execute 'send' on 'WebSocket': parameter 1" + " is not of any supported type."
- );
- }
- args.push(curArg);
- }
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
} else {
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'send' on 'WebSocket': parameter 1"
- });
- args.push(curArg);
- }
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setPosition' on 'Selection': parameter 1" });
}
+ args.push(curArg);
}
- return esValue[implSymbol].send(...args);
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setPosition' on 'Selection': parameter 2"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].setPosition(...args);
}
- get url() {
+ collapseToStart() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get url' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'collapseToStart' called on an object that is not a valid instance of Selection.");
}
- return esValue[implSymbol]["url"];
+ return esValue[implSymbol].collapseToStart();
}
- get readyState() {
+ collapseToEnd() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get readyState' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'collapseToEnd' called on an object that is not a valid instance of Selection.");
}
- return esValue[implSymbol]["readyState"];
+ return esValue[implSymbol].collapseToEnd();
}
- get bufferedAmount() {
+ extend(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get bufferedAmount' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'extend' called on an object that is not a valid instance of Selection.");
}
- return esValue[implSymbol]["bufferedAmount"];
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'extend' on 'Selection': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'extend' on 'Selection': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'extend' on 'Selection': parameter 2"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].extend(...args);
}
- get onopen() {
+ setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onopen' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'setBaseAndExtent' called on an object that is not a valid instance of Selection.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onopen"]);
+ if (arguments.length < 4) {
+ throw new TypeError(
+ "Failed to execute 'setBaseAndExtent' on 'Selection': 4 arguments required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 2"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 3" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[3];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 4"
+ });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].setBaseAndExtent(...args);
}
- set onopen(V) {
+ selectAllChildren(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onopen' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'selectAllChildren' called on an object that is not a valid instance of Selection.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onopen' property on 'WebSocket': The provided value"
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'selectAllChildren' on 'Selection': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
- esValue[implSymbol]["onopen"] = V;
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'selectAllChildren' on 'Selection': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].selectAllChildren(...args);
}
- get onerror() {
+ deleteFromDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onerror' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'deleteFromDocument' called on an object that is not a valid instance of Selection.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol].deleteFromDocument();
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- set onerror(V) {
+ containsNode(node) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'set onerror' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'containsNode' called on an object that is not a valid instance of Selection.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'WebSocket': The provided value"
- });
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'containsNode' on 'Selection': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
}
- esValue[implSymbol]["onerror"] = V;
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = Node.convert(curArg, { context: "Failed to execute 'containsNode' on 'Selection': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'containsNode' on 'Selection': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].containsNode(...args);
}
- get onclose() {
+ toString() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError("'get onclose' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'toString' called on an object that is not a valid instance of Selection.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
+ return esValue[implSymbol].toString();
}
- set onclose(V) {
+ get anchorNode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onclose' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'get anchorNode' called on an object that is not a valid instance of Selection.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onclose' property on 'WebSocket': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["anchorNode"]);
}
- get extensions() {
+ get anchorOffset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get extensions' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'get anchorOffset' called on an object that is not a valid instance of Selection.");
}
- return esValue[implSymbol]["extensions"];
+ return esValue[implSymbol]["anchorOffset"];
}
- get protocol() {
+ get focusNode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get protocol' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'get focusNode' called on an object that is not a valid instance of Selection.");
}
- return esValue[implSymbol]["protocol"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["focusNode"]);
}
- get onmessage() {
+ get focusOffset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get onmessage' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'get focusOffset' called on an object that is not a valid instance of Selection.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
+ return esValue[implSymbol]["focusOffset"];
}
- set onmessage(V) {
+ get isCollapsed() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set onmessage' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'get isCollapsed' called on an object that is not a valid instance of Selection.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onmessage' property on 'WebSocket': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
+ return esValue[implSymbol]["isCollapsed"];
}
- get binaryType() {
+ get rangeCount() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get binaryType' called on an object that is not a valid instance of WebSocket.");
+ throw new TypeError("'get rangeCount' called on an object that is not a valid instance of Selection.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["binaryType"]);
+ return esValue[implSymbol]["rangeCount"];
}
- set binaryType(V) {
+ get type() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'set binaryType' called on an object that is not a valid instance of WebSocket.");
- }
-
- V = `${V}`;
- if (!BinaryType.enumerationValues.has(V)) {
- return;
+ throw new TypeError("'get type' called on an object that is not a valid instance of Selection.");
}
- esValue[implSymbol]["binaryType"] = V;
+ return esValue[implSymbol]["type"];
}
}
- Object.defineProperties(WebSocket.prototype, {
- close: { enumerable: true },
- send: { enumerable: true },
- url: { enumerable: true },
- readyState: { enumerable: true },
- bufferedAmount: { enumerable: true },
- onopen: { enumerable: true },
- onerror: { enumerable: true },
- onclose: { enumerable: true },
- extensions: { enumerable: true },
- protocol: { enumerable: true },
- onmessage: { enumerable: true },
- binaryType: { enumerable: true },
- [Symbol.toStringTag]: { value: "WebSocket", configurable: true },
- CONNECTING: { value: 0, enumerable: true },
- OPEN: { value: 1, enumerable: true },
- CLOSING: { value: 2, enumerable: true },
- CLOSED: { value: 3, enumerable: true }
- });
- Object.defineProperties(WebSocket, {
- CONNECTING: { value: 0, enumerable: true },
- OPEN: { value: 1, enumerable: true },
- CLOSING: { value: 2, enumerable: true },
- CLOSED: { value: 3, enumerable: true }
+ Object.defineProperties(Selection.prototype, {
+ getRangeAt: { enumerable: true },
+ addRange: { enumerable: true },
+ removeRange: { enumerable: true },
+ removeAllRanges: { enumerable: true },
+ empty: { enumerable: true },
+ collapse: { enumerable: true },
+ setPosition: { enumerable: true },
+ collapseToStart: { enumerable: true },
+ collapseToEnd: { enumerable: true },
+ extend: { enumerable: true },
+ setBaseAndExtent: { enumerable: true },
+ selectAllChildren: { enumerable: true },
+ deleteFromDocument: { enumerable: true },
+ containsNode: { enumerable: true },
+ toString: { enumerable: true },
+ anchorNode: { enumerable: true },
+ anchorOffset: { enumerable: true },
+ focusNode: { enumerable: true },
+ focusOffset: { enumerable: true },
+ isCollapsed: { enumerable: true },
+ rangeCount: { enumerable: true },
+ type: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Selection", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = WebSocket;
+ globalObject[ctorRegistrySymbol][interfaceName] = Selection;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: WebSocket
+ value: Selection
});
};
-const Impl = __nccwpck_require__(13846);
+const Impl = __nccwpck_require__(76803);
/***/ }),
-/***/ 85064:
+/***/ 12458:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+const enumerationValues = new Set(["select", "start", "end", "preserve"]);
+exports.enumerationValues = enumerationValues;
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ const string = `${value}`;
+ if (!enumerationValues.has(string)) {
+ throw new TypeError(`${context} '${string}' is not a valid enumeration value for SelectionMode`);
+ }
+ return string;
+};
+
+
+/***/ }),
+
+/***/ 17290:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -122292,12 +117325,13 @@ const Impl = __nccwpck_require__(13846);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const WheelEventInit = __nccwpck_require__(35117);
+const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
+const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const MouseEvent = __nccwpck_require__(35364);
+const DocumentFragment = __nccwpck_require__(11490);
-const interfaceName = "WheelEvent";
+const interfaceName = "ShadowRoot";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -122309,7 +117343,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'WheelEvent'.`);
+ throw new TypeError(`${context} is not of type 'ShadowRoot'.`);
};
function makeWrapper(globalObject) {
@@ -122317,9 +117351,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["WheelEvent"];
+ const ctor = globalObject[ctorRegistrySymbol]["ShadowRoot"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor WheelEvent is not installed on the passed global object");
+ throw new Error("Internal error: constructor ShadowRoot is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -122336,7 +117370,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- MouseEvent._internalSetup(wrapper, globalObject);
+ DocumentFragment._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -122355,7 +117389,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -122378,103 +117412,104 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.MouseEvent === undefined) {
- throw new Error("Internal error: attempting to evaluate WheelEvent before MouseEvent");
+ if (globalObject.DocumentFragment === undefined) {
+ throw new Error("Internal error: attempting to evaluate ShadowRoot before DocumentFragment");
}
- class WheelEvent extends globalObject.MouseEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to construct 'WheelEvent': 1 argument required, but only " + arguments.length + " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'WheelEvent': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = WheelEventInit.convert(curArg, { context: "Failed to construct 'WheelEvent': parameter 2" });
- args.push(curArg);
+ class ShadowRoot extends globalObject.DocumentFragment {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
+
+ get mode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get mode' called on an object that is not a valid instance of ShadowRoot.");
}
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["mode"]);
}
- get deltaX() {
+ get host() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get deltaX' called on an object that is not a valid instance of WheelEvent.");
+ throw new TypeError("'get host' called on an object that is not a valid instance of ShadowRoot.");
}
- return esValue[implSymbol]["deltaX"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["host"]);
}
- get deltaY() {
+ get innerHTML() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get deltaY' called on an object that is not a valid instance of WheelEvent.");
+ throw new TypeError("'get innerHTML' called on an object that is not a valid instance of ShadowRoot.");
}
- return esValue[implSymbol]["deltaY"];
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ return esValue[implSymbol]["innerHTML"];
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get deltaZ() {
+ set innerHTML(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get deltaZ' called on an object that is not a valid instance of WheelEvent.");
+ throw new TypeError("'set innerHTML' called on an object that is not a valid instance of ShadowRoot.");
}
- return esValue[implSymbol]["deltaZ"];
+ V = conversions["DOMString"](V, {
+ context: "Failed to set the 'innerHTML' property on 'ShadowRoot': The provided value",
+ treatNullAsEmptyString: true
+ });
+
+ ceReactionsPreSteps_helpers_custom_elements(globalObject);
+ try {
+ esValue[implSymbol]["innerHTML"] = V;
+ } finally {
+ ceReactionsPostSteps_helpers_custom_elements(globalObject);
+ }
}
- get deltaMode() {
+ get activeElement() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'get deltaMode' called on an object that is not a valid instance of WheelEvent.");
+ throw new TypeError("'get activeElement' called on an object that is not a valid instance of ShadowRoot.");
}
- return esValue[implSymbol]["deltaMode"];
+ return utils.tryWrapperForImpl(esValue[implSymbol]["activeElement"]);
}
}
- Object.defineProperties(WheelEvent.prototype, {
- deltaX: { enumerable: true },
- deltaY: { enumerable: true },
- deltaZ: { enumerable: true },
- deltaMode: { enumerable: true },
- [Symbol.toStringTag]: { value: "WheelEvent", configurable: true },
- DOM_DELTA_PIXEL: { value: 0x00, enumerable: true },
- DOM_DELTA_LINE: { value: 0x01, enumerable: true },
- DOM_DELTA_PAGE: { value: 0x02, enumerable: true }
- });
- Object.defineProperties(WheelEvent, {
- DOM_DELTA_PIXEL: { value: 0x00, enumerable: true },
- DOM_DELTA_LINE: { value: 0x01, enumerable: true },
- DOM_DELTA_PAGE: { value: 0x02, enumerable: true }
+ Object.defineProperties(ShadowRoot.prototype, {
+ mode: { enumerable: true },
+ host: { enumerable: true },
+ innerHTML: { enumerable: true },
+ activeElement: { enumerable: true },
+ [Symbol.toStringTag]: { value: "ShadowRoot", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = WheelEvent;
+ globalObject[ctorRegistrySymbol][interfaceName] = ShadowRoot;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: WheelEvent
+ value: ShadowRoot
});
};
-const Impl = __nccwpck_require__(96117);
+const Impl = __nccwpck_require__(82239);
/***/ }),
-/***/ 35117:
+/***/ 83671:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -122483,56 +117518,18 @@ const Impl = __nccwpck_require__(96117);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const MouseEventInit = __nccwpck_require__(88445);
+const ShadowRootMode = __nccwpck_require__(56801);
exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
- MouseEventInit._convertInherit(obj, ret, { context });
-
- {
- const key = "deltaMode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, { context: context + " has member 'deltaMode' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "deltaX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'deltaX' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
- {
- const key = "deltaY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'deltaY' that" });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
{
- const key = "deltaZ";
+ const key = "mode";
let value = obj === undefined || obj === null ? undefined : obj[key];
if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'deltaZ' that" });
+ value = ShadowRootMode.convert(value, { context: context + " has member 'mode' that" });
ret[key] = value;
} else {
- ret[key] = 0.0;
+ throw new TypeError("mode is required in 'ShadowRootInit'");
}
}
};
@@ -122550,7 +117547,27 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
/***/ }),
-/***/ 79133:
+/***/ 56801:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+const enumerationValues = new Set(["open", "closed"]);
+exports.enumerationValues = enumerationValues;
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ const string = `${value}`;
+ if (!enumerationValues.has(string)) {
+ throw new TypeError(`${context} '${string}' is not a valid enumeration value for ShadowRootMode`);
+ }
+ return string;
+};
+
+
+/***/ }),
+
+/***/ 82721:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -122559,11 +117576,12 @@ exports.convert = function convert(obj, { context = "The provided value" } = {})
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
+const StaticRangeInit = __nccwpck_require__(71626);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Document = __nccwpck_require__(11795);
+const AbstractRange = __nccwpck_require__(10083);
-const interfaceName = "XMLDocument";
+const interfaceName = "StaticRange";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -122575,7 +117593,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'XMLDocument'.`);
+ throw new TypeError(`${context} is not of type 'StaticRange'.`);
};
function makeWrapper(globalObject) {
@@ -122583,9 +117601,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["XMLDocument"];
+ const ctor = globalObject[ctorRegistrySymbol]["StaticRange"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor XMLDocument is not installed on the passed global object");
+ throw new Error("Internal error: constructor StaticRange is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -122602,7 +117620,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- Document._internalSetup(wrapper, globalObject);
+ AbstractRange._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -122621,7 +117639,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -122644,35 +117662,120 @@ exports.install = (globalObject, globalNames) => {
return;
}
- if (globalObject.Document === undefined) {
- throw new Error("Internal error: attempting to evaluate XMLDocument before Document");
+ if (globalObject.AbstractRange === undefined) {
+ throw new Error("Internal error: attempting to evaluate StaticRange before AbstractRange");
}
- class XMLDocument extends globalObject.Document {
- constructor() {
- throw new TypeError("Illegal constructor");
+ class StaticRange extends globalObject.AbstractRange {
+ constructor(init) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'StaticRange': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = StaticRangeInit.convert(curArg, { context: "Failed to construct 'StaticRange': parameter 1" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
}
- Object.defineProperties(XMLDocument.prototype, {
- [Symbol.toStringTag]: { value: "XMLDocument", configurable: true }
+ Object.defineProperties(StaticRange.prototype, {
+ [Symbol.toStringTag]: { value: "StaticRange", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = XMLDocument;
+ globalObject[ctorRegistrySymbol][interfaceName] = StaticRange;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: XMLDocument
+ value: StaticRange
});
};
-const Impl = __nccwpck_require__(80803);
+const Impl = __nccwpck_require__(74007);
/***/ }),
-/***/ 25099:
+/***/ 71626:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
+
+const Node = __nccwpck_require__(41209);
+
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ {
+ const key = "endContainer";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = Node.convert(value, { context: context + " has member 'endContainer' that" });
+
+ ret[key] = value;
+ } else {
+ throw new TypeError("endContainer is required in 'StaticRangeInit'");
+ }
+ }
+
+ {
+ const key = "endOffset";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'endOffset' that" });
+
+ ret[key] = value;
+ } else {
+ throw new TypeError("endOffset is required in 'StaticRangeInit'");
+ }
+ }
+
+ {
+ const key = "startContainer";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = Node.convert(value, { context: context + " has member 'startContainer' that" });
+
+ ret[key] = value;
+ } else {
+ throw new TypeError("startContainer is required in 'StaticRangeInit'");
+ }
+ }
+
+ {
+ const key = "startOffset";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["unsigned long"](value, { context: context + " has member 'startOffset' that" });
+
+ ret[key] = value;
+ } else {
+ throw new TypeError("startOffset is required in 'StaticRangeInit'");
+ }
+ }
+};
+
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
+ }
+
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
+
+
+/***/ }),
+
+/***/ 76969:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -122681,16 +117784,10 @@ const Impl = __nccwpck_require__(80803);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Document = __nccwpck_require__(11795);
-const Blob = __nccwpck_require__(48350);
-const FormData = __nccwpck_require__(75261);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const XMLHttpRequestResponseType = __nccwpck_require__(68166);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const XMLHttpRequestEventTarget = __nccwpck_require__(75651);
-const interfaceName = "XMLHttpRequest";
+const interfaceName = "Storage";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -122702,7 +117799,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'XMLHttpRequest'.`);
+ throw new TypeError(`${context} is not of type 'Storage'.`);
};
function makeWrapper(globalObject) {
@@ -122710,9 +117807,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["XMLHttpRequest"];
+ const ctor = globalObject[ctorRegistrySymbol]["Storage"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor XMLHttpRequest is not installed on the passed global object");
+ throw new Error("Internal error: constructor Storage is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -122728,9 +117825,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
return utils.implForWrapper(wrapper);
};
-exports._internalSetup = (wrapper, globalObject) => {
- XMLHttpRequestEventTarget._internalSetup(wrapper, globalObject);
-};
+exports._internalSetup = (wrapper, globalObject) => {};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
@@ -122741,6 +117836,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -122748,8 +117845,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -122757,6 +117854,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -122764,540 +117863,316 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
-
- if (globalObject.XMLHttpRequestEventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate XMLHttpRequest before XMLHttpRequestEventTarget");
- }
- class XMLHttpRequest extends globalObject.XMLHttpRequestEventTarget {
+ class Storage {
constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
+ throw new TypeError("Illegal constructor");
}
- open(method, url) {
+ key(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'open' called on an object that is not a valid instance of XMLHttpRequest.");
+ throw new TypeError("'key' called on an object that is not a valid instance of Storage.");
}
- if (arguments.length < 2) {
+ if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'open' on 'XMLHttpRequest': 2 arguments required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'key' on 'Storage': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
- switch (arguments.length) {
- case 2:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2"
- });
- args.push(curArg);
- }
- break;
- case 3:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 3"
- });
- args.push(curArg);
- }
- break;
- case 4:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 3"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 4"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 3"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 4"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 5"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, { context: "Failed to execute 'key' on 'Storage': parameter 1" });
+ args.push(curArg);
}
- return esValue[implSymbol].open(...args);
+ return esValue[implSymbol].key(...args);
}
- setRequestHeader(name, value) {
+ getItem(key) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'setRequestHeader' called on an object that is not a valid instance of XMLHttpRequest.");
+ throw new TypeError("'getItem' called on an object that is not a valid instance of Storage.");
+ }
+
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'getItem' on 'Storage': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'getItem' on 'Storage': parameter 1" });
+ args.push(curArg);
+ }
+ return esValue[implSymbol].getItem(...args);
+ }
+
+ setItem(key, value) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'setItem' called on an object that is not a valid instance of Storage.");
}
if (arguments.length < 2) {
throw new TypeError(
- "Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 2 arguments required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'setItem' on 'Storage': 2 arguments required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'setRequestHeader' on 'XMLHttpRequest': parameter 1"
- });
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'setItem' on 'Storage': parameter 1" });
args.push(curArg);
}
{
let curArg = arguments[1];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'setRequestHeader' on 'XMLHttpRequest': parameter 2"
- });
+ curArg = conversions["DOMString"](curArg, { context: "Failed to execute 'setItem' on 'Storage': parameter 2" });
args.push(curArg);
}
- return esValue[implSymbol].setRequestHeader(...args);
+ return esValue[implSymbol].setItem(...args);
}
- send() {
+ removeItem(key) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'send' called on an object that is not a valid instance of XMLHttpRequest.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- if (Document.is(curArg) || Blob.is(curArg) || FormData.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else if (utils.isArrayBuffer(curArg)) {
- } else if (ArrayBuffer.isView(curArg)) {
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'send' on 'XMLHttpRequest': parameter 1"
- });
- }
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].send(...args);
- }
-
- abort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'abort' called on an object that is not a valid instance of XMLHttpRequest.");
- }
-
- return esValue[implSymbol].abort();
- }
-
- getResponseHeader(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'getResponseHeader' called on an object that is not a valid instance of XMLHttpRequest.");
- }
-
- if (arguments.length < 1) {
- throw new TypeError(
- "Failed to execute 'getResponseHeader' on 'XMLHttpRequest': 1 argument required, but only " +
- arguments.length +
- " present."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'getResponseHeader' on 'XMLHttpRequest': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getResponseHeader(...args);
- }
-
- getAllResponseHeaders() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'getAllResponseHeaders' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol].getAllResponseHeaders();
- }
-
- overrideMimeType(mime) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new TypeError("'overrideMimeType' called on an object that is not a valid instance of XMLHttpRequest.");
+ throw new TypeError("'removeItem' called on an object that is not a valid instance of Storage.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'overrideMimeType' on 'XMLHttpRequest': 1 argument required, but only " +
- arguments.length +
- " present."
+ "Failed to execute 'removeItem' on 'Storage': 1 argument required, but only " + arguments.length + " present."
);
}
const args = [];
{
let curArg = arguments[0];
curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'overrideMimeType' on 'XMLHttpRequest': parameter 1"
+ context: "Failed to execute 'removeItem' on 'Storage': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].overrideMimeType(...args);
+ return esValue[implSymbol].removeItem(...args);
}
- get onreadystatechange() {
+ clear() {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onreadystatechange' called on an object that is not a valid instance of XMLHttpRequest."
- );
+ throw new TypeError("'clear' called on an object that is not a valid instance of Storage.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreadystatechange"]);
+ return esValue[implSymbol].clear();
}
- set onreadystatechange(V) {
+ get length() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onreadystatechange' called on an object that is not a valid instance of XMLHttpRequest."
- );
+ throw new TypeError("'get length' called on an object that is not a valid instance of Storage.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onreadystatechange' property on 'XMLHttpRequest': The provided value"
- });
- }
- esValue[implSymbol]["onreadystatechange"] = V;
+ return esValue[implSymbol]["length"];
}
+ }
+ Object.defineProperties(Storage.prototype, {
+ key: { enumerable: true },
+ getItem: { enumerable: true },
+ setItem: { enumerable: true },
+ removeItem: { enumerable: true },
+ clear: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Storage", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = Storage;
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get readyState' called on an object that is not a valid instance of XMLHttpRequest.");
- }
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Storage
+ });
+};
- return esValue[implSymbol]["readyState"];
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
}
-
- get timeout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get timeout' called on an object that is not a valid instance of XMLHttpRequest.");
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
}
-
- return esValue[implSymbol]["timeout"];
+ return Reflect.get(target, P, receiver);
}
-
- set timeout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set timeout' called on an object that is not a valid instance of XMLHttpRequest.");
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'timeout' property on 'XMLHttpRequest': The provided value"
- });
-
- esValue[implSymbol]["timeout"] = V;
+ if (!desc.get && !desc.set) {
+ return desc.value;
}
-
- get withCredentials() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get withCredentials' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["withCredentials"];
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
}
+ return Reflect.apply(getter, receiver, []);
+ },
- set withCredentials(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set withCredentials' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'withCredentials' property on 'XMLHttpRequest': The provided value"
- });
-
- esValue[implSymbol]["withCredentials"] = V;
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
}
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ },
- get upload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ ownKeys(target) {
+ const keys = new Set();
- if (!exports.is(esValue)) {
- throw new TypeError("'get upload' called on an object that is not a valid instance of XMLHttpRequest.");
+ for (const key of target[implSymbol][utils.supportedPropertyNames]) {
+ if (!(key in target)) {
+ keys.add(`${key}`);
}
+ }
- return utils.getSameObject(this, "upload", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["upload"]);
- });
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
}
+ return [...keys];
+ },
- get responseURL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- if (!exports.is(esValue)) {
- throw new TypeError("'get responseURL' called on an object that is not a valid instance of XMLHttpRequest.");
- }
+ const namedValue = target[implSymbol].getItem(P);
- return esValue[implSymbol]["responseURL"];
+ if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
+ return {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(namedValue)
+ };
}
- get status() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get status' called on an object that is not a valid instance of XMLHttpRequest.");
- }
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
- return esValue[implSymbol]["status"];
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
}
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ if (typeof P === "string") {
+ let namedValue = V;
- get statusText() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ namedValue = conversions["DOMString"](namedValue, {
+ context: "Failed to set the '" + P + "' property on 'Storage': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get statusText' called on an object that is not a valid instance of XMLHttpRequest.");
- }
+ target[implSymbol].setItem(P, namedValue);
- return esValue[implSymbol]["statusText"];
+ return true;
+ }
}
+ let ownDesc;
- get responseType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get responseType' called on an object that is not a valid instance of XMLHttpRequest.");
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["responseType"]);
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
}
-
- set responseType(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'set responseType' called on an object that is not a valid instance of XMLHttpRequest.");
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
}
-
- V = `${V}`;
- if (!XMLHttpRequestResponseType.enumerationValues.has(V)) {
- return;
+ if (!existingDesc.writable) {
+ return false;
}
-
- esValue[implSymbol]["responseType"] = V;
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
}
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
- get response() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get response' called on an object that is not a valid instance of XMLHttpRequest.");
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
+ if (!utils.hasOwn(target, P)) {
+ if (desc.get || desc.set) {
+ return false;
}
- return esValue[implSymbol]["response"];
- }
+ let namedValue = desc.value;
- get responseText() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
+ namedValue = conversions["DOMString"](namedValue, {
+ context: "Failed to set the '" + P + "' property on 'Storage': The provided value"
+ });
- if (!exports.is(esValue)) {
- throw new TypeError("'get responseText' called on an object that is not a valid instance of XMLHttpRequest.");
- }
+ target[implSymbol].setItem(P, namedValue);
- return esValue[implSymbol]["responseText"];
+ return true;
}
+ return Reflect.defineProperty(target, P, desc);
+ },
- get responseXML() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError("'get responseXML' called on an object that is not a valid instance of XMLHttpRequest.");
- }
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
- return utils.tryWrapperForImpl(esValue[implSymbol]["responseXML"]);
+ if (target[implSymbol].getItem(P) !== null && !(P in target)) {
+ target[implSymbol].removeItem(P);
+ return true;
}
- }
- Object.defineProperties(XMLHttpRequest.prototype, {
- open: { enumerable: true },
- setRequestHeader: { enumerable: true },
- send: { enumerable: true },
- abort: { enumerable: true },
- getResponseHeader: { enumerable: true },
- getAllResponseHeaders: { enumerable: true },
- overrideMimeType: { enumerable: true },
- onreadystatechange: { enumerable: true },
- readyState: { enumerable: true },
- timeout: { enumerable: true },
- withCredentials: { enumerable: true },
- upload: { enumerable: true },
- responseURL: { enumerable: true },
- status: { enumerable: true },
- statusText: { enumerable: true },
- responseType: { enumerable: true },
- response: { enumerable: true },
- responseText: { enumerable: true },
- responseXML: { enumerable: true },
- [Symbol.toStringTag]: { value: "XMLHttpRequest", configurable: true },
- UNSENT: { value: 0, enumerable: true },
- OPENED: { value: 1, enumerable: true },
- HEADERS_RECEIVED: { value: 2, enumerable: true },
- LOADING: { value: 3, enumerable: true },
- DONE: { value: 4, enumerable: true }
- });
- Object.defineProperties(XMLHttpRequest, {
- UNSENT: { value: 0, enumerable: true },
- OPENED: { value: 1, enumerable: true },
- HEADERS_RECEIVED: { value: 2, enumerable: true },
- LOADING: { value: 3, enumerable: true },
- DONE: { value: 4, enumerable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
- }
- globalObject[ctorRegistrySymbol][interfaceName] = XMLHttpRequest;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLHttpRequest
- });
+ return Reflect.deleteProperty(target, P);
+ },
+
+ preventExtensions() {
+ return false;
+ }
};
-const Impl = __nccwpck_require__(9347);
+const Impl = __nccwpck_require__(5570);
/***/ }),
-/***/ 75651:
+/***/ 85048:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -123306,12 +118181,13 @@ const Impl = __nccwpck_require__(9347);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const EventHandlerNonNull = __nccwpck_require__(23129);
+const StorageEventInit = __nccwpck_require__(68629);
+const Storage = __nccwpck_require__(76969);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
+const Event = __nccwpck_require__(35348);
-const interfaceName = "XMLHttpRequestEventTarget";
+const interfaceName = "StorageEvent";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -123323,7 +118199,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'XMLHttpRequestEventTarget'.`);
+ throw new TypeError(`${context} is not of type 'StorageEvent'.`);
};
function makeWrapper(globalObject) {
@@ -123331,11 +118207,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["XMLHttpRequestEventTarget"];
+ const ctor = globalObject[ctorRegistrySymbol]["StorageEvent"];
if (ctor === undefined) {
- throw new Error(
- "Internal error: constructor XMLHttpRequestEventTarget is not installed on the passed global object"
- );
+ throw new Error("Internal error: constructor StorageEvent is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -123352,7 +118226,7 @@ exports.createImpl = (globalObject, constructorArgs, privateData) => {
};
exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
+ Event._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
@@ -123371,7 +118245,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
+exports["new"] = globalObject => {
const wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
@@ -123387,286 +118261,231 @@ exports.new = globalObject => {
return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
+const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- if (globalObject.EventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate XMLHttpRequestEventTarget before EventTarget");
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate StorageEvent before Event");
}
- class XMLHttpRequestEventTarget extends globalObject.EventTarget {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
-
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
+ class StorageEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
throw new TypeError(
- "'get onloadstart' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
+ "Failed to construct 'StorageEvent': 1 argument required, but only " + arguments.length + " present."
);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
-
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onloadstart' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'StorageEvent': parameter 1" });
+ args.push(curArg);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadstart' property on 'XMLHttpRequestEventTarget': The provided value"
- });
+ {
+ let curArg = arguments[1];
+ curArg = StorageEventInit.convert(curArg, { context: "Failed to construct 'StorageEvent': parameter 2" });
+ args.push(curArg);
}
- esValue[implSymbol]["onloadstart"] = V;
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- get onprogress() {
+ initStorageEvent(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
-
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onprogress' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ throw new TypeError("'initStorageEvent' called on an object that is not a valid instance of StorageEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
-
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
+ if (arguments.length < 1) {
throw new TypeError(
- "'set onprogress' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
+ "Failed to execute 'initStorageEvent' on 'StorageEvent': 1 argument required, but only " +
+ arguments.length +
+ " present."
);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onprogress' property on 'XMLHttpRequestEventTarget': The provided value"
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 1"
});
+ args.push(curArg);
}
- esValue[implSymbol]["onprogress"] = V;
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onabort' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onabort' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 3"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onabort' property on 'XMLHttpRequestEventTarget': The provided value"
- });
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 4"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
- esValue[implSymbol]["onabort"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onerror' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ {
+ let curArg = arguments[4];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 5"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onerror' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ {
+ let curArg = arguments[5];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 6"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onerror' property on 'XMLHttpRequestEventTarget': The provided value"
- });
+ {
+ let curArg = arguments[6];
+ if (curArg !== undefined) {
+ curArg = conversions["USVString"](curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 7"
+ });
+ } else {
+ curArg = "";
+ }
+ args.push(curArg);
}
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onload' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ {
+ let curArg = arguments[7];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = Storage.convert(curArg, {
+ context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 8"
+ });
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
}
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
+ return esValue[implSymbol].initStorageEvent(...args);
}
- set onload(V) {
+ get key() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onload' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ throw new TypeError("'get key' called on an object that is not a valid instance of StorageEvent.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onload' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
+ return esValue[implSymbol]["key"];
}
- get ontimeout() {
+ get oldValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get ontimeout' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ throw new TypeError("'get oldValue' called on an object that is not a valid instance of StorageEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeout"]);
+ return esValue[implSymbol]["oldValue"];
}
- set ontimeout(V) {
+ get newValue() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set ontimeout' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ throw new TypeError("'get newValue' called on an object that is not a valid instance of StorageEvent.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'ontimeout' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["ontimeout"] = V;
+ return esValue[implSymbol]["newValue"];
}
- get onloadend() {
+ get url() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'get onloadend' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ throw new TypeError("'get url' called on an object that is not a valid instance of StorageEvent.");
}
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
+ return esValue[implSymbol]["url"];
}
- set onloadend(V) {
+ get storageArea() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError(
- "'set onloadend' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
+ throw new TypeError("'get storageArea' called on an object that is not a valid instance of StorageEvent.");
}
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(V, {
- context: "Failed to set the 'onloadend' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onloadend"] = V;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["storageArea"]);
}
}
- Object.defineProperties(XMLHttpRequestEventTarget.prototype, {
- onloadstart: { enumerable: true },
- onprogress: { enumerable: true },
- onabort: { enumerable: true },
- onerror: { enumerable: true },
- onload: { enumerable: true },
- ontimeout: { enumerable: true },
- onloadend: { enumerable: true },
- [Symbol.toStringTag]: { value: "XMLHttpRequestEventTarget", configurable: true }
+ Object.defineProperties(StorageEvent.prototype, {
+ initStorageEvent: { enumerable: true },
+ key: { enumerable: true },
+ oldValue: { enumerable: true },
+ newValue: { enumerable: true },
+ url: { enumerable: true },
+ storageArea: { enumerable: true },
+ [Symbol.toStringTag]: { value: "StorageEvent", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = XMLHttpRequestEventTarget;
+ globalObject[ctorRegistrySymbol][interfaceName] = StorageEvent;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: XMLHttpRequestEventTarget
+ value: StorageEvent
});
};
-const Impl = __nccwpck_require__(99561);
-
-
-/***/ }),
-
-/***/ 68166:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["", "arraybuffer", "blob", "document", "json", "text"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = function convert(value, { context = "The provided value" } = {}) {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new TypeError(`${context} '${string}' is not a valid enumeration value for XMLHttpRequestResponseType`);
- }
- return string;
-};
+const Impl = __nccwpck_require__(85232);
/***/ }),
-/***/ 55482:
+/***/ 68629:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -123675,120 +118494,99 @@ exports.convert = function convert(value, { context = "The provided value" } = {
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const XMLHttpRequestEventTarget = __nccwpck_require__(75651);
+const Storage = __nccwpck_require__(76969);
+const EventInit = __nccwpck_require__(4895);
-const interfaceName = "XMLHttpRequestUpload";
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
+ {
+ const key = "key";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = conversions["DOMString"](value, { context: context + " has member 'key' that" });
+ }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
}
- throw new TypeError(`${context} is not of type 'XMLHttpRequestUpload'.`);
-};
-function makeWrapper(globalObject) {
- if (globalObject[ctorRegistrySymbol] === undefined) {
- throw new Error("Internal error: invalid global object");
+ {
+ const key = "newValue";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = conversions["DOMString"](value, { context: context + " has member 'newValue' that" });
+ }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
}
- const ctor = globalObject[ctorRegistrySymbol]["XMLHttpRequestUpload"];
- if (ctor === undefined) {
- throw new Error("Internal error: constructor XMLHttpRequestUpload is not installed on the passed global object");
+ {
+ const key = "oldValue";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = conversions["DOMString"](value, { context: context + " has member 'oldValue' that" });
+ }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
}
- return Object.create(ctor.prototype);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- XMLHttpRequestEventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ {
+ const key = "storageArea";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = Storage.convert(value, { context: context + " has member 'storageArea' that" });
+ }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
}
- return wrapper;
-};
-
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
+ {
+ const key = "url";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["USVString"](value, { context: context + " has member 'url' that" });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
+ ret[key] = value;
+ } else {
+ ret[key] = "";
+ }
}
- return wrapper[implSymbol];
};
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- if (globalObject.XMLHttpRequestEventTarget === undefined) {
- throw new Error("Internal error: attempting to evaluate XMLHttpRequestUpload before XMLHttpRequestEventTarget");
- }
- class XMLHttpRequestUpload extends globalObject.XMLHttpRequestEventTarget {
- constructor() {
- throw new TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(XMLHttpRequestUpload.prototype, {
- [Symbol.toStringTag]: { value: "XMLHttpRequestUpload", configurable: true }
- });
- if (globalObject[ctorRegistrySymbol] === undefined) {
- globalObject[ctorRegistrySymbol] = Object.create(null);
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- globalObject[ctorRegistrySymbol][interfaceName] = XMLHttpRequestUpload;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLHttpRequestUpload
- });
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
};
-const Impl = __nccwpck_require__(28354);
-
/***/ }),
-/***/ 85315:
+/***/ 5924:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -123797,11 +118595,10 @@ const Impl = __nccwpck_require__(28354);
const conversions = __nccwpck_require__(54886);
const utils = __nccwpck_require__(34908);
-const Node = __nccwpck_require__(41209);
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const interfaceName = "XMLSerializer";
+const interfaceName = "StyleSheetList";
exports.is = value => {
return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
@@ -123813,7 +118610,7 @@ exports.convert = (value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
- throw new TypeError(`${context} is not of type 'XMLSerializer'.`);
+ throw new TypeError(`${context} is not of type 'StyleSheetList'.`);
};
function makeWrapper(globalObject) {
@@ -123821,9 +118618,9 @@ function makeWrapper(globalObject) {
throw new Error("Internal error: invalid global object");
}
- const ctor = globalObject[ctorRegistrySymbol]["XMLSerializer"];
+ const ctor = globalObject[ctorRegistrySymbol]["StyleSheetList"];
if (ctor === undefined) {
- throw new Error("Internal error: constructor XMLSerializer is not installed on the passed global object");
+ throw new Error("Internal error: constructor StyleSheetList is not installed on the passed global object");
}
return Object.create(ctor.prototype);
@@ -123850,6 +118647,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -123857,8 +118656,8 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {})
return wrapper;
};
-exports.new = globalObject => {
- const wrapper = makeWrapper(globalObject);
+exports["new"] = globalObject => {
+ let wrapper = makeWrapper(globalObject);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
@@ -123866,6 +118665,8 @@ exports.new = globalObject => {
configurable: true
});
+ wrapper = new Proxy(wrapper, proxyHandler);
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
@@ -123879,20 +118680,20 @@ exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
- class XMLSerializer {
+ class StyleSheetList {
constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
+ throw new TypeError("Illegal constructor");
}
- serializeToString(root) {
+ item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
- throw new TypeError("'serializeToString' called on an object that is not a valid instance of XMLSerializer.");
+ throw new TypeError("'item' called on an object that is not a valid instance of StyleSheetList.");
}
if (arguments.length < 1) {
throw new TypeError(
- "Failed to execute 'serializeToString' on 'XMLSerializer': 1 argument required, but only " +
+ "Failed to execute 'item' on 'StyleSheetList': 1 argument required, but only " +
arguments.length +
" present."
);
@@ -123900,13416 +118701,13648 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
- curArg = Node.convert(curArg, {
- context: "Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1"
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'item' on 'StyleSheetList': parameter 1"
});
args.push(curArg);
}
- return esValue[implSymbol].serializeToString(...args);
+ return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
+ }
+
+ get length() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get length' called on an object that is not a valid instance of StyleSheetList.");
+ }
+
+ return esValue[implSymbol]["length"];
}
}
- Object.defineProperties(XMLSerializer.prototype, {
- serializeToString: { enumerable: true },
- [Symbol.toStringTag]: { value: "XMLSerializer", configurable: true }
+ Object.defineProperties(StyleSheetList.prototype, {
+ item: { enumerable: true },
+ length: { enumerable: true },
+ [Symbol.toStringTag]: { value: "StyleSheetList", configurable: true },
+ [Symbol.iterator]: { value: Array.prototype[Symbol.iterator], configurable: true, writable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
globalObject[ctorRegistrySymbol] = Object.create(null);
}
- globalObject[ctorRegistrySymbol][interfaceName] = XMLSerializer;
+ globalObject[ctorRegistrySymbol][interfaceName] = StyleSheetList;
Object.defineProperty(globalObject, interfaceName, {
configurable: true,
writable: true,
- value: XMLSerializer
+ value: StyleSheetList
});
};
-const Impl = __nccwpck_require__(347);
-
-
-/***/ }),
-
-/***/ 34908:
-/***/ ((module, exports) => {
-
-"use strict";
-
+const proxyHandler = {
+ get(target, P, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.get(target, P, receiver);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc === undefined) {
+ const parent = Object.getPrototypeOf(target);
+ if (parent === null) {
+ return undefined;
+ }
+ return Reflect.get(target, P, receiver);
+ }
+ if (!desc.get && !desc.set) {
+ return desc.value;
+ }
+ const getter = desc.get;
+ if (getter === undefined) {
+ return undefined;
+ }
+ return Reflect.apply(getter, receiver, []);
+ },
-// Returns "Type(value) is Object" in ES terminology.
-function isObject(value) {
- return typeof value === "object" && value !== null || typeof value === "function";
-}
+ has(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.has(target, P);
+ }
+ const desc = this.getOwnPropertyDescriptor(target, P);
+ if (desc !== undefined) {
+ return true;
+ }
+ const parent = Object.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.has(parent, P);
+ }
+ return false;
+ },
-const hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
+ ownKeys(target) {
+ const keys = new Set();
-const wrapperSymbol = Symbol("wrapper");
-const implSymbol = Symbol("impl");
-const sameObjectCaches = Symbol("SameObject caches");
-const ctorRegistrySymbol = Symbol.for("[webidl2js] constructor registry");
+ for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
+ keys.add(`${key}`);
+ }
-function getSameObject(wrapper, prop, creator) {
- if (!wrapper[sameObjectCaches]) {
- wrapper[sameObjectCaches] = Object.create(null);
- }
+ for (const key of Reflect.ownKeys(target)) {
+ keys.add(key);
+ }
+ return [...keys];
+ },
- if (prop in wrapper[sameObjectCaches]) {
- return wrapper[sameObjectCaches][prop];
- }
+ getOwnPropertyDescriptor(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ let ignoreNamedProps = false;
- wrapper[sameObjectCaches][prop] = creator();
- return wrapper[sameObjectCaches][prop];
-}
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ return {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ ignoreNamedProps = true;
+ }
-function wrapperForImpl(impl) {
- return impl ? impl[wrapperSymbol] : null;
-}
+ return Reflect.getOwnPropertyDescriptor(target, P);
+ },
-function implForWrapper(wrapper) {
- return wrapper ? wrapper[implSymbol] : null;
-}
+ set(target, P, V, receiver) {
+ if (typeof P === "symbol") {
+ return Reflect.set(target, P, V, receiver);
+ }
+ // The `receiver` argument refers to the Proxy exotic object or an object
+ // that inherits from it, whereas `target` refers to the Proxy target:
+ if (target[implSymbol][utils.wrapperSymbol] === receiver) {
+ }
+ let ownDesc;
-function tryWrapperForImpl(impl) {
- const wrapper = wrapperForImpl(impl);
- return wrapper ? wrapper : impl;
-}
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ const indexedValue = target[implSymbol].item(index);
+ if (indexedValue !== null) {
+ ownDesc = {
+ writable: false,
+ enumerable: true,
+ configurable: true,
+ value: utils.tryWrapperForImpl(indexedValue)
+ };
+ }
+ }
-function tryImplForWrapper(wrapper) {
- const impl = implForWrapper(wrapper);
- return impl ? impl : wrapper;
-}
+ if (ownDesc === undefined) {
+ ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
+ }
+ if (ownDesc === undefined) {
+ const parent = Reflect.getPrototypeOf(target);
+ if (parent !== null) {
+ return Reflect.set(parent, P, V, receiver);
+ }
+ ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
+ }
+ if (!ownDesc.writable) {
+ return false;
+ }
+ if (!utils.isObject(receiver)) {
+ return false;
+ }
+ const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
+ let valueDesc;
+ if (existingDesc !== undefined) {
+ if (existingDesc.get || existingDesc.set) {
+ return false;
+ }
+ if (!existingDesc.writable) {
+ return false;
+ }
+ valueDesc = { value: V };
+ } else {
+ valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
+ }
+ return Reflect.defineProperty(receiver, P, valueDesc);
+ },
-const iterInternalSymbol = Symbol("internal");
-const IteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));
-const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
+ defineProperty(target, P, desc) {
+ if (typeof P === "symbol") {
+ return Reflect.defineProperty(target, P, desc);
+ }
-function isArrayIndexPropName(P) {
- if (typeof P !== "string") {
- return false;
- }
- const i = P >>> 0;
- if (i === Math.pow(2, 32) - 1) {
- return false;
- }
- const s = `${i}`;
- if (P !== s) {
- return false;
- }
- return true;
-}
+ if (utils.isArrayIndexPropName(P)) {
+ return false;
+ }
-const byteLengthGetter =
- Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
-function isArrayBuffer(value) {
- try {
- byteLengthGetter.call(value);
- return true;
- } catch (e) {
- return false;
- }
-}
+ return Reflect.defineProperty(target, P, desc);
+ },
-function iteratorResult([key, value], kind) {
- let result;
- switch (kind) {
- case "key":
- result = key;
- break;
- case "value":
- result = value;
- break;
- case "key+value":
- result = [key, value];
- break;
- }
- return { value: result, done: false };
-}
+ deleteProperty(target, P) {
+ if (typeof P === "symbol") {
+ return Reflect.deleteProperty(target, P);
+ }
-const supportsPropertyIndex = Symbol("supports property index");
-const supportedPropertyIndices = Symbol("supported property indices");
-const supportsPropertyName = Symbol("supports property name");
-const supportedPropertyNames = Symbol("supported property names");
-const indexedGet = Symbol("indexed property get");
-const indexedSetNew = Symbol("indexed property set new");
-const indexedSetExisting = Symbol("indexed property set existing");
-const namedGet = Symbol("named property get");
-const namedSetNew = Symbol("named property set new");
-const namedSetExisting = Symbol("named property set existing");
-const namedDelete = Symbol("named property delete");
+ if (utils.isArrayIndexPropName(P)) {
+ const index = P >>> 0;
+ return !(target[implSymbol].item(index) !== null);
+ }
-const asyncIteratorNext = Symbol("async iterator get the next iteration result");
-const asyncIteratorReturn = Symbol("async iterator return steps");
-const asyncIteratorInit = Symbol("async iterator initialization steps");
-const asyncIteratorEOI = Symbol("async iterator end of iteration");
+ return Reflect.deleteProperty(target, P);
+ },
-module.exports = exports = {
- isObject,
- hasOwn,
- wrapperSymbol,
- implSymbol,
- getSameObject,
- ctorRegistrySymbol,
- wrapperForImpl,
- implForWrapper,
- tryWrapperForImpl,
- tryImplForWrapper,
- iterInternalSymbol,
- IteratorPrototype,
- AsyncIteratorPrototype,
- isArrayBuffer,
- isArrayIndexPropName,
- supportsPropertyIndex,
- supportedPropertyIndices,
- supportsPropertyName,
- supportedPropertyNames,
- indexedGet,
- indexedSetNew,
- indexedSetExisting,
- namedGet,
- namedSetNew,
- namedSetExisting,
- namedDelete,
- asyncIteratorNext,
- asyncIteratorReturn,
- asyncIteratorInit,
- asyncIteratorEOI,
- iteratorResult
+ preventExtensions() {
+ return false;
+ }
};
+const Impl = __nccwpck_require__(63894);
+
/***/ }),
-/***/ 69232:
+/***/ 10095:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
-// See https://github.com/jsdom/jsdom/pull/2743#issuecomment-562991955 for background.
-exports.copyToArrayBufferInNewRealm = (nodejsBuffer, newRealm) => {
- const newAB = new newRealm.ArrayBuffer(nodejsBuffer.byteLength);
- const view = new Uint8Array(newAB);
- view.set(nodejsBuffer);
- return newAB;
+const enumerationValues = new Set([
+ "text/html",
+ "text/xml",
+ "application/xml",
+ "application/xhtml+xml",
+ "image/svg+xml"
+]);
+exports.enumerationValues = enumerationValues;
+
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ const string = `${value}`;
+ if (!enumerationValues.has(string)) {
+ throw new TypeError(`${context} '${string}' is not a valid enumeration value for SupportedType`);
+ }
+ return string;
};
/***/ }),
-/***/ 98548:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 49374:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const DOMException = __nccwpck_require__(57617);
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
-const interfaces = __nccwpck_require__(71643);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const CharacterData = __nccwpck_require__(30948);
-const { implForWrapper } = __nccwpck_require__(34908);
+const interfaceName = "Text";
-const { HTML_NS, SVG_NS } = __nccwpck_require__(52635);
-const { domSymbolTree } = __nccwpck_require__(35633);
-const { validateAndExtract } = __nccwpck_require__(87130);
-const reportException = __nccwpck_require__(15612);
-const {
- isValidCustomElementName, upgradeElement, lookupCEDefinition, enqueueCEUpgradeReaction
-} = __nccwpck_require__(25392);
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'Text'.`);
+};
-const INTERFACE_TAG_MAPPING = {
- // https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom%3Aelement-interface
- // https://html.spec.whatwg.org/multipage/indices.html#elements-3
- [HTML_NS]: {
- HTMLElement: [
- "abbr", "address", "article", "aside", "b", "bdi", "bdo", "cite", "code", "dd", "dfn", "dt", "em", "figcaption",
- "figure", "footer", "header", "hgroup", "i", "kbd", "main", "mark", "nav", "noscript", "rp", "rt", "ruby", "s",
- "samp", "section", "small", "strong", "sub", "summary", "sup", "u", "var", "wbr"
- ],
- HTMLAnchorElement: ["a"],
- HTMLAreaElement: ["area"],
- HTMLAudioElement: ["audio"],
- HTMLBaseElement: ["base"],
- HTMLBodyElement: ["body"],
- HTMLBRElement: ["br"],
- HTMLButtonElement: ["button"],
- HTMLCanvasElement: ["canvas"],
- HTMLDataElement: ["data"],
- HTMLDataListElement: ["datalist"],
- HTMLDetailsElement: ["details"],
- HTMLDialogElement: ["dialog"],
- HTMLDirectoryElement: ["dir"],
- HTMLDivElement: ["div"],
- HTMLDListElement: ["dl"],
- HTMLEmbedElement: ["embed"],
- HTMLFieldSetElement: ["fieldset"],
- HTMLFontElement: ["font"],
- HTMLFormElement: ["form"],
- HTMLFrameElement: ["frame"],
- HTMLFrameSetElement: ["frameset"],
- HTMLHeadingElement: ["h1", "h2", "h3", "h4", "h5", "h6"],
- HTMLHeadElement: ["head"],
- HTMLHRElement: ["hr"],
- HTMLHtmlElement: ["html"],
- HTMLIFrameElement: ["iframe"],
- HTMLImageElement: ["img"],
- HTMLInputElement: ["input"],
- HTMLLabelElement: ["label"],
- HTMLLegendElement: ["legend"],
- HTMLLIElement: ["li"],
- HTMLLinkElement: ["link"],
- HTMLMapElement: ["map"],
- HTMLMarqueeElement: ["marquee"],
- HTMLMediaElement: [],
- HTMLMenuElement: ["menu"],
- HTMLMetaElement: ["meta"],
- HTMLMeterElement: ["meter"],
- HTMLModElement: ["del", "ins"],
- HTMLObjectElement: ["object"],
- HTMLOListElement: ["ol"],
- HTMLOptGroupElement: ["optgroup"],
- HTMLOptionElement: ["option"],
- HTMLOutputElement: ["output"],
- HTMLParagraphElement: ["p"],
- HTMLParamElement: ["param"],
- HTMLPictureElement: ["picture"],
- HTMLPreElement: ["listing", "pre", "xmp"],
- HTMLProgressElement: ["progress"],
- HTMLQuoteElement: ["blockquote", "q"],
- HTMLScriptElement: ["script"],
- HTMLSelectElement: ["select"],
- HTMLSlotElement: ["slot"],
- HTMLSourceElement: ["source"],
- HTMLSpanElement: ["span"],
- HTMLStyleElement: ["style"],
- HTMLTableCaptionElement: ["caption"],
- HTMLTableCellElement: ["th", "td"],
- HTMLTableColElement: ["col", "colgroup"],
- HTMLTableElement: ["table"],
- HTMLTimeElement: ["time"],
- HTMLTitleElement: ["title"],
- HTMLTableRowElement: ["tr"],
- HTMLTableSectionElement: ["thead", "tbody", "tfoot"],
- HTMLTemplateElement: ["template"],
- HTMLTextAreaElement: ["textarea"],
- HTMLTrackElement: ["track"],
- HTMLUListElement: ["ul"],
- HTMLUnknownElement: [],
- HTMLVideoElement: ["video"]
- },
- [SVG_NS]: {
- SVGElement: [],
- SVGGraphicsElement: [],
- SVGSVGElement: ["svg"],
- SVGTitleElement: ["title"]
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
+
+ const ctor = globalObject[ctorRegistrySymbol]["Text"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor Text is not installed on the passed global object");
}
+
+ return Object.create(ctor.prototype);
+}
+
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
};
-const TAG_INTERFACE_LOOKUP = {};
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
-for (const namespace of [HTML_NS, SVG_NS]) {
- TAG_INTERFACE_LOOKUP[namespace] = {};
+exports._internalSetup = (wrapper, globalObject) => {
+ CharacterData._internalSetup(wrapper, globalObject);
+};
- const interfaceNames = Object.keys(INTERFACE_TAG_MAPPING[namespace]);
- for (const interfaceName of interfaceNames) {
- const tagNames = INTERFACE_TAG_MAPPING[namespace][interfaceName];
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- for (const tagName of tagNames) {
- TAG_INTERFACE_LOOKUP[namespace][tagName] = interfaceName;
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
-}
+ return wrapper;
+};
-const UNKNOWN_HTML_ELEMENTS_NAMES = ["applet", "bgsound", "blink", "isindex", "keygen", "multicol", "nextid", "spacer"];
-const HTML_ELEMENTS_NAMES = [
- "acronym", "basefont", "big", "center", "nobr", "noembed", "noframes", "plaintext", "rb", "rtc",
- "strike", "tt"
-];
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
-// https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom:element-interface
-function getHTMLElementInterface(name) {
- if (UNKNOWN_HTML_ELEMENTS_NAMES.includes(name)) {
- return interfaces.getInterfaceWrapper("HTMLUnknownElement");
- }
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
- if (HTML_ELEMENTS_NAMES.includes(name)) {
- return interfaces.getInterfaceWrapper("HTMLElement");
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
+ return wrapper[implSymbol];
+};
- const specDefinedInterface = TAG_INTERFACE_LOOKUP[HTML_NS][name];
- if (specDefinedInterface !== undefined) {
- return interfaces.getInterfaceWrapper(specDefinedInterface);
+const exposed = new Set(["Window"]);
+
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
}
- if (isValidCustomElementName(name)) {
- return interfaces.getInterfaceWrapper("HTMLElement");
+ if (globalObject.CharacterData === undefined) {
+ throw new Error("Internal error: attempting to evaluate Text before CharacterData");
}
+ class Text extends globalObject.CharacterData {
+ constructor() {
+ const args = [];
+ {
+ let curArg = arguments[0];
+ if (curArg !== undefined) {
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'Text': parameter 1" });
+ } else {
+ curArg = "";
+ }
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ }
- return interfaces.getInterfaceWrapper("HTMLUnknownElement");
-}
+ splitText(offset) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'splitText' called on an object that is not a valid instance of Text.");
+ }
-// https://svgwg.org/svg2-draft/types.html#ElementsInTheSVGDOM
-function getSVGInterface(name) {
- const specDefinedInterface = TAG_INTERFACE_LOOKUP[SVG_NS][name];
- if (specDefinedInterface !== undefined) {
- return interfaces.getInterfaceWrapper(specDefinedInterface);
- }
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'splitText' on 'Text': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["unsigned long"](curArg, {
+ context: "Failed to execute 'splitText' on 'Text': parameter 1"
+ });
+ args.push(curArg);
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol].splitText(...args));
+ }
- return interfaces.getInterfaceWrapper("SVGElement");
-}
+ get wholeText() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-// Returns the list of valid tag names that can bo associated with a element given its namespace and name.
-function getValidTagNames(namespace, name) {
- if (INTERFACE_TAG_MAPPING[namespace] && INTERFACE_TAG_MAPPING[namespace][name]) {
- return INTERFACE_TAG_MAPPING[namespace][name];
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get wholeText' called on an object that is not a valid instance of Text.");
+ }
+
+ return esValue[implSymbol]["wholeText"];
+ }
+
+ get assignedSlot() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get assignedSlot' called on an object that is not a valid instance of Text.");
+ }
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
+ }
+ }
+ Object.defineProperties(Text.prototype, {
+ splitText: { enumerable: true },
+ wholeText: { enumerable: true },
+ assignedSlot: { enumerable: true },
+ [Symbol.toStringTag]: { value: "Text", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
+ globalObject[ctorRegistrySymbol][interfaceName] = Text;
- return [];
-}
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: Text
+ });
+};
-// https://dom.spec.whatwg.org/#concept-create-element
-function createElement(
- document,
- localName,
- namespace,
- prefix = null,
- isValue = null,
- synchronousCE = false
-) {
- let result = null;
+const Impl = __nccwpck_require__(58791);
- const { _globalObject } = document;
- const definition = lookupCEDefinition(document, namespace, localName, isValue);
- if (definition !== null && definition.name !== localName) {
- const elementInterface = getHTMLElementInterface(localName);
+/***/ }),
- result = elementInterface.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace: HTML_NS,
- prefix,
- ceState: "undefined",
- ceDefinition: null,
- isValue
- });
+/***/ 57191:
+/***/ ((__unused_webpack_module, exports) => {
- if (synchronousCE) {
- upgradeElement(definition, result);
- } else {
- enqueueCEUpgradeReaction(result, definition);
- }
- } else if (definition !== null) {
- if (synchronousCE) {
- try {
- const C = definition.constructor;
+"use strict";
- const resultWrapper = C.construct();
- result = implForWrapper(resultWrapper);
- if (!result._ceState || !result._ceDefinition || result._namespaceURI !== HTML_NS) {
- throw new TypeError("Internal error: Invalid custom element.");
- }
+const enumerationValues = new Set(["subtitles", "captions", "descriptions", "chapters", "metadata"]);
+exports.enumerationValues = enumerationValues;
- if (result._attributeList.length !== 0) {
- throw DOMException.create(_globalObject, ["Unexpected attributes.", "NotSupportedError"]);
- }
- if (domSymbolTree.hasChildren(result)) {
- throw DOMException.create(_globalObject, ["Unexpected child nodes.", "NotSupportedError"]);
- }
- if (domSymbolTree.parent(result)) {
- throw DOMException.create(_globalObject, ["Unexpected element parent.", "NotSupportedError"]);
- }
- if (result._ownerDocument !== document) {
- throw DOMException.create(_globalObject, ["Unexpected element owner document.", "NotSupportedError"]);
- }
- if (result._namespaceURI !== namespace) {
- throw DOMException.create(_globalObject, ["Unexpected element namespace URI.", "NotSupportedError"]);
- }
- if (result._localName !== localName) {
- throw DOMException.create(_globalObject, ["Unexpected element local name.", "NotSupportedError"]);
- }
+exports.convert = function convert(value, { context = "The provided value" } = {}) {
+ const string = `${value}`;
+ if (!enumerationValues.has(string)) {
+ throw new TypeError(`${context} '${string}' is not a valid enumeration value for TextTrackKind`);
+ }
+ return string;
+};
- result._prefix = prefix;
- result._isValue = isValue;
- } catch (error) {
- reportException(document._defaultView, error);
- const interfaceWrapper = interfaces.getInterfaceWrapper("HTMLUnknownElement");
- result = interfaceWrapper.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace: HTML_NS,
- prefix,
- ceState: "failed",
- ceDefinition: null,
- isValue: null
- });
- }
- } else {
- const interfaceWrapper = interfaces.getInterfaceWrapper("HTMLElement");
- result = interfaceWrapper.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace: HTML_NS,
- prefix,
- ceState: "undefined",
- ceDefinition: null,
- isValue: null
- });
+/***/ }),
- enqueueCEUpgradeReaction(result, definition);
- }
- } else {
- let elementInterface;
+/***/ 83234:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- switch (namespace) {
- case HTML_NS:
- elementInterface = getHTMLElementInterface(localName);
- break;
+"use strict";
- case SVG_NS:
- elementInterface = getSVGInterface(localName);
- break;
- default:
- elementInterface = interfaces.getInterfaceWrapper("Element");
- break;
- }
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- result = elementInterface.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace,
- prefix,
- ceState: "uncustomized",
- ceDefinition: null,
- isValue
- });
+const TouchEventInit = __nccwpck_require__(36157);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const UIEvent = __nccwpck_require__(58078);
- if (namespace === HTML_NS && (isValidCustomElementName(localName) || isValue !== null)) {
- result._ceState = "undefined";
- }
- }
+const interfaceName = "TouchEvent";
- return result;
-}
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
+ }
+ throw new TypeError(`${context} is not of type 'TouchEvent'.`);
+};
-// https://dom.spec.whatwg.org/#internal-createelementns-steps
-function internalCreateElementNSSteps(document, namespace, qualifiedName, options) {
- const extracted = validateAndExtract(document._globalObject, namespace, qualifiedName);
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- let isValue = null;
- if (options && options.is !== undefined) {
- isValue = options.is;
+ const ctor = globalObject[ctorRegistrySymbol]["TouchEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor TouchEvent is not installed on the passed global object");
}
- return createElement(
- document,
- extracted.localName,
- extracted.namespace,
- extracted.prefix,
- isValue,
- true
- );
+ return Object.create(ctor.prototype);
}
-module.exports = {
- createElement,
- internalCreateElementNSSteps,
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- getValidTagNames,
- getHTMLElementInterface
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
};
+exports._internalSetup = (wrapper, globalObject) => {
+ UIEvent._internalSetup(wrapper, globalObject);
+};
-/***/ }),
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
-/***/ 50238:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
-"use strict";
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
-const idlUtils = __nccwpck_require__(34908);
-const ErrorEvent = __nccwpck_require__(65153);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const reportException = __nccwpck_require__(15612);
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
-exports.appendHandler = (el, eventName) => {
- // tryImplForWrapper() is currently required due to use in Window.js
- idlUtils.tryImplForWrapper(el).addEventListener(eventName, event => {
- // https://html.spec.whatwg.org/#the-event-handler-processing-algorithm
- const callback = exports.getCurrentEventHandlerValue(el, eventName);
- if (callback === null) {
- return;
- }
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper[implSymbol];
+};
- const specialError = ErrorEvent.isImpl(event) && event.type === "error" &&
- event.currentTarget.constructor.name === "Window";
+const exposed = new Set(["Window"]);
- let returnValue = null;
- // https://heycam.github.io/webidl/#es-invoking-callback-functions
- if (typeof callback === "function") {
- if (specialError) {
- returnValue = callback.call(
- event.currentTarget,
- event.message,
- event.filename,
- event.lineno,
- event.colno,
- event.error
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+
+ if (globalObject.UIEvent === undefined) {
+ throw new Error("Internal error: attempting to evaluate TouchEvent before UIEvent");
+ }
+ class TouchEvent extends globalObject.UIEvent {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'TouchEvent': 1 argument required, but only " + arguments.length + " present."
);
- } else {
- returnValue = callback.call(event.currentTarget, event);
}
- }
-
- // TODO: we don't implement BeforeUnloadEvent so we can't brand-check here
- if (event.type === "beforeunload") {
- if (returnValue !== null) {
- event._canceledFlag = true;
- if (event.returnValue === "") {
- event.returnValue = returnValue;
- }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'TouchEvent': parameter 1" });
+ args.push(curArg);
}
- } else if (specialError) {
- if (returnValue === true) {
- event._canceledFlag = true;
+ {
+ let curArg = arguments[1];
+ curArg = TouchEventInit.convert(curArg, { context: "Failed to construct 'TouchEvent': parameter 2" });
+ args.push(curArg);
}
- } else if (returnValue === false) {
- event._canceledFlag = true;
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
}
- });
-};
-// "Simple" in this case means "no content attributes involved"
-exports.setupForSimpleEventAccessors = (prototype, events) => {
- prototype._getEventHandlerFor = function (event) {
- return this._eventHandlers ? this._eventHandlers[event] : undefined;
- };
+ get touches() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- prototype._setEventHandlerFor = function (event, handler) {
- if (!this._registeredHandlers) {
- this._registeredHandlers = new Set();
- this._eventHandlers = Object.create(null);
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get touches' called on an object that is not a valid instance of TouchEvent.");
+ }
- if (!this._registeredHandlers.has(event) && handler !== null) {
- this._registeredHandlers.add(event);
- exports.appendHandler(this, event);
+ return utils.tryWrapperForImpl(esValue[implSymbol]["touches"]);
}
- this._eventHandlers[event] = handler;
- };
- for (const event of events) {
- exports.createEventAccessor(prototype, event);
- }
-};
+ get targetTouches() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-// https://html.spec.whatwg.org/multipage/webappapis.html#getting-the-current-value-of-the-event-handler
-exports.getCurrentEventHandlerValue = (target, event) => {
- const value = target._getEventHandlerFor(event);
- if (!value) {
- return null;
- }
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get targetTouches' called on an object that is not a valid instance of TouchEvent.");
+ }
- if (value.body !== undefined) {
- let element, document, fn;
- if (target.constructor.name === "Window") {
- element = null;
- document = idlUtils.implForWrapper(target.document);
- } else {
- element = target;
- document = element.ownerDocument;
+ return utils.tryWrapperForImpl(esValue[implSymbol]["targetTouches"]);
}
- const { body } = value;
- const formOwner = element !== null && element.form ? element.form : null;
- const window = target.constructor.name === "Window" && target._document ? target : document.defaultView;
+ get changedTouches() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- try {
- // eslint-disable-next-line no-new-func
- Function(body); // properly error out on syntax errors
- // Note: this won't execute body; that would require `Function(body)()`.
- } catch (e) {
- if (window) {
- reportException(window, e);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get changedTouches' called on an object that is not a valid instance of TouchEvent.");
}
- target._setEventHandlerFor(event, null);
- return null;
+
+ return utils.tryWrapperForImpl(esValue[implSymbol]["changedTouches"]);
}
- // Note: the with (window) { } is not necessary in Node, but is necessary in a browserified environment.
+ get altKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- const createFunction = document.defaultView.Function;
- if (event === "error" && element === null) {
- const sourceURL = document ? `\n//# sourceURL=${document.URL}` : "";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get altKey' called on an object that is not a valid instance of TouchEvent.");
+ }
- fn = createFunction(`\
-with (arguments[0]) { return function onerror(event, source, lineno, colno, error) {
-${body}
-}; }${sourceURL}`)(window);
+ return esValue[implSymbol]["altKey"];
+ }
- fn = OnErrorEventHandlerNonNull.convert(fn);
- } else {
- const calls = [];
- if (element !== null) {
- calls.push(idlUtils.wrapperForImpl(document));
- }
+ get metaKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (formOwner !== null) {
- calls.push(idlUtils.wrapperForImpl(formOwner));
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get metaKey' called on an object that is not a valid instance of TouchEvent.");
}
- if (element !== null) {
- calls.push(idlUtils.wrapperForImpl(element));
- }
+ return esValue[implSymbol]["metaKey"];
+ }
- let wrapperBody = `\
-with (arguments[0]) { return function on${event}(event) {
-${body}
-}; }`;
+ get ctrlKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- // eslint-disable-next-line no-unused-vars
- for (const call of calls) {
- wrapperBody = `\
-with (arguments[0]) { return function () {
-${wrapperBody}
-}; }`;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get ctrlKey' called on an object that is not a valid instance of TouchEvent.");
}
- if (document) {
- wrapperBody += `\n//# sourceURL=${document.URL}`;
- }
+ return esValue[implSymbol]["ctrlKey"];
+ }
- fn = createFunction(wrapperBody)(window);
- for (const call of calls) {
- fn = fn(call);
- }
+ get shiftKey() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- if (event === "beforeunload") {
- fn = OnBeforeUnloadEventHandlerNonNull.convert(fn);
- } else {
- fn = EventHandlerNonNull.convert(fn);
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get shiftKey' called on an object that is not a valid instance of TouchEvent.");
}
- }
- target._setEventHandlerFor(event, fn);
+ return esValue[implSymbol]["shiftKey"];
+ }
}
+ Object.defineProperties(TouchEvent.prototype, {
+ touches: { enumerable: true },
+ targetTouches: { enumerable: true },
+ changedTouches: { enumerable: true },
+ altKey: { enumerable: true },
+ metaKey: { enumerable: true },
+ ctrlKey: { enumerable: true },
+ shiftKey: { enumerable: true },
+ [Symbol.toStringTag]: { value: "TouchEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
+ }
+ globalObject[ctorRegistrySymbol][interfaceName] = TouchEvent;
- return target._getEventHandlerFor(event);
-};
-
-// https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-idl-attributes
-// TODO: Consider replacing this with `[ReflectEvent]`
-exports.createEventAccessor = (obj, event) => {
- Object.defineProperty(obj, "on" + event, {
+ Object.defineProperty(globalObject, interfaceName, {
configurable: true,
- enumerable: true,
- get() {
- return exports.getCurrentEventHandlerValue(this, event);
- },
- set(val) {
- this._setEventHandlerFor(event, val);
- }
+ writable: true,
+ value: TouchEvent
});
};
+const Impl = __nccwpck_require__(8409);
+
/***/ }),
-/***/ 25392:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+/***/ 36157:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const DOMException = __nccwpck_require__(57617);
-const isPotentialCustomElementName = __nccwpck_require__(42469);
-
-const NODE_TYPE = __nccwpck_require__(10656);
-const { HTML_NS } = __nccwpck_require__(52635);
-const { shadowIncludingRoot } = __nccwpck_require__(36893);
-const reportException = __nccwpck_require__(15612);
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
-const { implForWrapper, wrapperForImpl } = __nccwpck_require__(34908);
+const EventModifierInit = __nccwpck_require__(22409);
-// https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions-stack
-class CEReactionsStack {
- constructor() {
- this._stack = [];
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventModifierInit._convertInherit(obj, ret, { context });
- // https://html.spec.whatwg.org/multipage/custom-elements.html#backup-element-queue
- this.backupElementQueue = [];
+ {
+ const key = "changedTouches";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(context + " has member 'changedTouches' that" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = value;
+ for (let nextItem of tmp) {
+ nextItem = utils.tryImplForWrapper(nextItem);
- // https://html.spec.whatwg.org/multipage/custom-elements.html#processing-the-backup-element-queue
- this.processingBackupElementQueue = false;
- }
+ V.push(nextItem);
+ }
+ value = V;
+ }
- push(elementQueue) {
- this._stack.push(elementQueue);
+ ret[key] = value;
+ } else {
+ ret[key] = [];
+ }
}
- pop() {
- return this._stack.pop();
- }
+ {
+ const key = "targetTouches";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(context + " has member 'targetTouches' that" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = value;
+ for (let nextItem of tmp) {
+ nextItem = utils.tryImplForWrapper(nextItem);
- get currentElementQueue() {
- const { _stack } = this;
- return _stack[_stack.length - 1];
- }
+ V.push(nextItem);
+ }
+ value = V;
+ }
- isEmpty() {
- return this._stack.length === 0;
+ ret[key] = value;
+ } else {
+ ret[key] = [];
+ }
}
-}
-// In theory separate cross-origin Windows created by separate JSDOM instances could have separate stacks. But, we would
-// need to implement the whole agent architecture. Which is kind of questionable given that we don't run our Windows in
-// their own separate threads, which is what agents are meant to represent.
-const customElementReactionsStack = new CEReactionsStack();
+ {
+ const key = "touches";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (!utils.isObject(value)) {
+ throw new TypeError(context + " has member 'touches' that" + " is not an iterable object.");
+ } else {
+ const V = [];
+ const tmp = value;
+ for (let nextItem of tmp) {
+ nextItem = utils.tryImplForWrapper(nextItem);
-// https://html.spec.whatwg.org/multipage/custom-elements.html#cereactions
-function ceReactionsPreSteps() {
- customElementReactionsStack.push([]);
-}
-function ceReactionsPostSteps() {
- const queue = customElementReactionsStack.pop();
- invokeCEReactions(queue);
-}
+ V.push(nextItem);
+ }
+ value = V;
+ }
-const RESTRICTED_CUSTOM_ELEMENT_NAME = new Set([
- "annotation-xml",
- "color-profile",
- "font-face",
- "font-face-src",
- "font-face-uri",
- "font-face-format",
- "font-face-name",
- "missing-glyph"
-]);
+ ret[key] = value;
+ } else {
+ ret[key] = [];
+ }
+ }
+};
-// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
-function isValidCustomElementName(name) {
- if (RESTRICTED_CUSTOM_ELEMENT_NAME.has(name)) {
- return false;
+exports.convert = function convert(obj, { context = "The provided value" } = {}) {
+ if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
+ throw new TypeError(`${context} is not an object.`);
}
- return isPotentialCustomElementName(name);
-}
+ const ret = Object.create(null);
+ exports._convertInherit(obj, ret, { context });
+ return ret;
+};
-// https://html.spec.whatwg.org/multipage/custom-elements.html#concept-upgrade-an-element
-function upgradeElement(definition, element) {
- if (element._ceState !== "undefined" || element._ceState === "uncustomized") {
- return;
- }
- element._ceDefinition = definition;
- element._ceState = "failed";
+/***/ }),
- for (const attribute of element._attributeList) {
- const { _localName, _namespace, _value } = attribute;
- enqueueCECallbackReaction(element, "attributeChangedCallback", [_localName, null, _value, _namespace]);
- }
+/***/ 69029:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
- if (shadowIncludingRoot(element).nodeType === NODE_TYPE.DOCUMENT_NODE) {
- enqueueCECallbackReaction(element, "connectedCallback", []);
- }
+"use strict";
- definition.constructionStack.push(element);
- const { constructionStack, constructor: C } = definition;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- let constructionError;
- try {
- if (definition.disableShadow === true && element._shadowRoot !== null) {
- throw DOMException.create(element._globalObject, [
- "Can't upgrade a custom element with a shadow root if shadow is disabled",
- "NotSupportedError"
- ]);
- }
+const Node = __nccwpck_require__(41209);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- const constructionResult = C.construct();
- const constructionResultImpl = implForWrapper(constructionResult);
+const interfaceName = "TreeWalker";
- if (constructionResultImpl !== element) {
- throw new TypeError("Invalid custom element constructor return value");
- }
- } catch (error) {
- constructionError = error;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
}
+ throw new TypeError(`${context} is not of type 'TreeWalker'.`);
+};
- constructionStack.pop();
-
- if (constructionError !== undefined) {
- element._ceDefinition = null;
- element._ceReactionQueue = [];
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
+ }
- throw constructionError;
+ const ctor = globalObject[ctorRegistrySymbol]["TreeWalker"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor TreeWalker is not installed on the passed global object");
}
- element._ceState = "custom";
+ return Object.create(ctor.prototype);
}
-// https://html.spec.whatwg.org/#concept-try-upgrade
-function tryUpgradeElement(element) {
- const { _ownerDocument, _namespaceURI, _localName, _isValue } = element;
- const definition = lookupCEDefinition(_ownerDocument, _namespaceURI, _localName, _isValue);
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
- if (definition !== null) {
- enqueueCEUpgradeReaction(element, definition);
- }
-}
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
-// https://html.spec.whatwg.org/#look-up-a-custom-element-definition
-function lookupCEDefinition(document, namespace, localName, isValue) {
- const definition = null;
+exports._internalSetup = (wrapper, globalObject) => {};
- if (namespace !== HTML_NS) {
- return definition;
- }
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
- if (!document._defaultView) {
- return definition;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
+ return wrapper;
+};
- const registry = implForWrapper(document._globalObject.customElements);
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
- const definitionByName = registry._customElementDefinitions.find(def => {
- return def.name === def.localName && def.localName === localName;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
});
- if (definitionByName !== undefined) {
- return definitionByName;
- }
- const definitionByIs = registry._customElementDefinitions.find(def => {
- return def.name === isValue && def.localName === localName;
- });
- if (definitionByIs !== undefined) {
- return definitionByIs;
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
+ return wrapper[implSymbol];
+};
- return definition;
-}
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#invoke-custom-element-reactions
-function invokeCEReactions(elementQueue) {
- while (elementQueue.length > 0) {
- const element = elementQueue.shift();
+const exposed = new Set(["Window"]);
- const reactions = element._ceReactionQueue;
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
+ class TreeWalker {
+ constructor() {
+ throw new TypeError("Illegal constructor");
+ }
- try {
- while (reactions.length > 0) {
- const reaction = reactions.shift();
+ parentNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'parentNode' called on an object that is not a valid instance of TreeWalker.");
+ }
- switch (reaction.type) {
- case "upgrade":
- upgradeElement(reaction.definition, element);
- break;
+ return utils.tryWrapperForImpl(esValue[implSymbol].parentNode());
+ }
- case "callback":
- reaction.callback.apply(wrapperForImpl(element), reaction.args);
- break;
- }
+ firstChild() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'firstChild' called on an object that is not a valid instance of TreeWalker.");
}
- } catch (error) {
- reportException(element._globalObject, error);
+
+ return utils.tryWrapperForImpl(esValue[implSymbol].firstChild());
}
- }
-}
-// https://html.spec.whatwg.org/multipage/custom-elements.html#enqueue-an-element-on-the-appropriate-element-queue
-function enqueueElementOnAppropriateElementQueue(element) {
- if (customElementReactionsStack.isEmpty()) {
- customElementReactionsStack.backupElementQueue.push(element);
+ lastChild() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'lastChild' called on an object that is not a valid instance of TreeWalker.");
+ }
- if (customElementReactionsStack.processingBackupElementQueue) {
- return;
+ return utils.tryWrapperForImpl(esValue[implSymbol].lastChild());
}
- customElementReactionsStack.processingBackupElementQueue = true;
+ previousSibling() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'previousSibling' called on an object that is not a valid instance of TreeWalker.");
+ }
- Promise.resolve().then(() => {
- const elementQueue = customElementReactionsStack.backupElementQueue;
- invokeCEReactions(elementQueue);
+ return utils.tryWrapperForImpl(esValue[implSymbol].previousSibling());
+ }
- customElementReactionsStack.processingBackupElementQueue = false;
- });
- } else {
- customElementReactionsStack.currentElementQueue.push(element);
- }
-}
+ nextSibling() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'nextSibling' called on an object that is not a valid instance of TreeWalker.");
+ }
-// https://html.spec.whatwg.org/multipage/custom-elements.html#enqueue-a-custom-element-callback-reaction
-function enqueueCECallbackReaction(element, callbackName, args) {
- const { _ceDefinition: { lifecycleCallbacks, observedAttributes } } = element;
+ return utils.tryWrapperForImpl(esValue[implSymbol].nextSibling());
+ }
- const callback = lifecycleCallbacks[callbackName];
- if (callback === null) {
- return;
- }
+ previousNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'previousNode' called on an object that is not a valid instance of TreeWalker.");
+ }
- if (callbackName === "attributeChangedCallback") {
- const attributeName = args[0];
- if (!observedAttributes.includes(attributeName)) {
- return;
+ return utils.tryWrapperForImpl(esValue[implSymbol].previousNode());
}
- }
- element._ceReactionQueue.push({
- type: "callback",
- callback,
- args
- });
+ nextNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'nextNode' called on an object that is not a valid instance of TreeWalker.");
+ }
- enqueueElementOnAppropriateElementQueue(element);
-}
+ return utils.tryWrapperForImpl(esValue[implSymbol].nextNode());
+ }
-// https://html.spec.whatwg.org/#enqueue-a-custom-element-upgrade-reaction
-function enqueueCEUpgradeReaction(element, definition) {
- element._ceReactionQueue.push({
- type: "upgrade",
- definition
- });
+ get root() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- enqueueElementOnAppropriateElementQueue(element);
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get root' called on an object that is not a valid instance of TreeWalker.");
+ }
-module.exports = {
- customElementReactionsStack,
+ return utils.getSameObject(this, "root", () => {
+ return utils.tryWrapperForImpl(esValue[implSymbol]["root"]);
+ });
+ }
- ceReactionsPreSteps,
- ceReactionsPostSteps,
+ get whatToShow() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- isValidCustomElementName,
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get whatToShow' called on an object that is not a valid instance of TreeWalker.");
+ }
- upgradeElement,
- tryUpgradeElement,
+ return esValue[implSymbol]["whatToShow"];
+ }
- lookupCEDefinition,
- enqueueCEUpgradeReaction,
- enqueueCECallbackReaction,
- invokeCEReactions
-};
+ get filter() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get filter' called on an object that is not a valid instance of TreeWalker.");
+ }
-/***/ }),
+ return utils.tryWrapperForImpl(esValue[implSymbol]["filter"]);
+ }
-/***/ 34622:
-/***/ ((module) => {
+ get currentNode() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-"use strict";
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get currentNode' called on an object that is not a valid instance of TreeWalker.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["currentNode"]);
+ }
-function isLeapYear(year) {
- return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
-}
+ set currentNode(V) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#number-of-days-in-month-month-of-year-year
-const daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
-function numberOfDaysInMonthOfYear(month, year) {
- if (month === 2 && isLeapYear(year)) {
- return 29;
- }
- return daysInMonth[month - 1];
-}
+ if (!exports.is(esValue)) {
+ throw new TypeError("'set currentNode' called on an object that is not a valid instance of TreeWalker.");
+ }
-const monthRe = /^([0-9]{4,})-([0-9]{2})$/;
+ V = Node.convert(V, { context: "Failed to set the 'currentNode' property on 'TreeWalker': The provided value" });
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-month-string
-function parseMonthString(str) {
- const matches = monthRe.exec(str);
- if (!matches) {
- return null;
- }
- const year = Number(matches[1]);
- if (year <= 0) {
- return null;
+ esValue[implSymbol]["currentNode"] = V;
+ }
}
- const month = Number(matches[2]);
- if (month < 1 || month > 12) {
- return null;
+ Object.defineProperties(TreeWalker.prototype, {
+ parentNode: { enumerable: true },
+ firstChild: { enumerable: true },
+ lastChild: { enumerable: true },
+ previousSibling: { enumerable: true },
+ nextSibling: { enumerable: true },
+ previousNode: { enumerable: true },
+ nextNode: { enumerable: true },
+ root: { enumerable: true },
+ whatToShow: { enumerable: true },
+ filter: { enumerable: true },
+ currentNode: { enumerable: true },
+ [Symbol.toStringTag]: { value: "TreeWalker", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
- return { year, month };
-}
+ globalObject[ctorRegistrySymbol][interfaceName] = TreeWalker;
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-month-string
-function isValidMonthString(str) {
- return parseMonthString(str) !== null;
-}
-function serializeMonth({ year, month }) {
- const yearStr = `${year}`.padStart(4, "0");
- const monthStr = `${month}`.padStart(2, "0");
- return `${yearStr}-${monthStr}`;
-}
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: TreeWalker
+ });
+};
-const dateRe = /^([0-9]{4,})-([0-9]{2})-([0-9]{2})$/;
+const Impl = __nccwpck_require__(73498);
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-date-string
-function parseDateString(str) {
- const matches = dateRe.exec(str);
- if (!matches) {
- return null;
- }
- const year = Number(matches[1]);
- if (year <= 0) {
- return null;
- }
- const month = Number(matches[2]);
- if (month < 1 || month > 12) {
- return null;
- }
- const day = Number(matches[3]);
- if (day < 1 || day > numberOfDaysInMonthOfYear(month, year)) {
- return null;
- }
- return { year, month, day };
-}
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string
-function isValidDateString(str) {
- return parseDateString(str) !== null;
-}
-function serializeDate(date) {
- const dayStr = `${date.day}`.padStart(2, "0");
- return `${serializeMonth(date)}-${dayStr}`;
-}
+/***/ }),
-const yearlessDateRe = /^(?:--)?([0-9]{2})-([0-9]{2})$/;
+/***/ 58078:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-yearless-date-string
-function parseYearlessDateString(str) {
- const matches = yearlessDateRe.exec(str);
- if (!matches) {
- return null;
- }
- const month = Number(matches[1]);
- if (month < 1 || month > 12) {
- return null;
- }
- const day = Number(matches[2]);
- if (day < 1 || day > numberOfDaysInMonthOfYear(month, 4)) {
- return null;
- }
- return { month, day };
-}
+"use strict";
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-yearless-date-string
-function isValidYearlessDateString(str) {
- return parseYearlessDateString(str) !== null;
-}
-function serializeYearlessDate({ month, day }) {
- const monthStr = `${month}`.padStart(2, "0");
- const dayStr = `${day}`.padStart(2, "0");
- return `${monthStr}-${dayStr}`;
-}
-const timeRe = /^([0-9]{2}):([0-9]{2})(?::([0-9]{2}(?:\.([0-9]{1,3}))?))?$/;
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-time-string
-function parseTimeString(str) {
- const matches = timeRe.exec(str);
- if (!matches) {
- return null;
- }
- const hour = Number(matches[1]);
- if (hour < 0 || hour > 23) {
- return null;
- }
- const minute = Number(matches[2]);
- if (minute < 0 || minute > 59) {
- return null;
- }
- const second = matches[3] !== undefined ? Math.trunc(Number(matches[3])) : 0;
- if (second < 0 || second >= 60) {
- return null;
- }
- const millisecond = matches[4] !== undefined ? Number(matches[4]) : 0;
- return { hour, minute, second, millisecond };
-}
+const UIEventInit = __nccwpck_require__(82015);
+const implSymbol = utils.implSymbol;
+const ctorRegistrySymbol = utils.ctorRegistrySymbol;
+const Event = __nccwpck_require__(35348);
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-time-string
-function isValidTimeString(str) {
- return parseTimeString(str) !== null;
-}
+const interfaceName = "UIEvent";
-function serializeTime({ hour, minute, second, millisecond }) {
- const hourStr = `${hour}`.padStart(2, "0");
- const minuteStr = `${minute}`.padStart(2, "0");
- if (second === 0 && millisecond === 0) {
- return `${hourStr}:${minuteStr}`;
+exports.is = value => {
+ return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
+};
+exports.isImpl = value => {
+ return utils.isObject(value) && value instanceof Impl.implementation;
+};
+exports.convert = (value, { context = "The provided value" } = {}) => {
+ if (exports.is(value)) {
+ return utils.implForWrapper(value);
}
- const secondStr = `${second}`.padStart(2, "0");
- const millisecondStr = `${millisecond}`.padStart(3, "0");
- return `${hourStr}:${minuteStr}:${secondStr}.${millisecondStr}`;
-}
+ throw new TypeError(`${context} is not of type 'UIEvent'.`);
+};
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-local-date-and-time-string
-function parseLocalDateAndTimeString(str, normalized = false) {
- let separatorIdx = str.indexOf("T");
- if (separatorIdx < 0 && !normalized) {
- separatorIdx = str.indexOf(" ");
- }
- if (separatorIdx < 0) {
- return null;
- }
- const date = parseDateString(str.slice(0, separatorIdx));
- if (date === null) {
- return null;
+function makeWrapper(globalObject) {
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ throw new Error("Internal error: invalid global object");
}
- const time = parseTimeString(str.slice(separatorIdx + 1));
- if (time === null) {
- return null;
+
+ const ctor = globalObject[ctorRegistrySymbol]["UIEvent"];
+ if (ctor === undefined) {
+ throw new Error("Internal error: constructor UIEvent is not installed on the passed global object");
}
- return { date, time };
-}
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-local-date-and-time-string
-function isValidLocalDateAndTimeString(str) {
- return parseLocalDateAndTimeString(str) !== null;
+ return Object.create(ctor.prototype);
}
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-normalised-local-date-and-time-string
-function isValidNormalizedLocalDateAndTimeString(str) {
- return parseLocalDateAndTimeString(str, true) !== null;
-}
-function serializeNormalizedDateAndTime({ date, time }) {
- return `${serializeDate(date)}T${serializeTime(time)}`;
-}
+exports.create = (globalObject, constructorArgs, privateData) => {
+ const wrapper = makeWrapper(globalObject);
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
+};
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#week-number-of-the-last-day
-// https://stackoverflow.com/a/18538272/1937836
-function weekNumberOfLastDay(year) {
- const jan1 = new Date(year, 0);
- return jan1.getDay() === 4 || (isLeapYear(year) && jan1.getDay() === 3) ? 53 : 52;
-}
+exports.createImpl = (globalObject, constructorArgs, privateData) => {
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
+ return utils.implForWrapper(wrapper);
+};
-const weekRe = /^([0-9]{4,5})-W([0-9]{2})$/;
+exports._internalSetup = (wrapper, globalObject) => {
+ Event._internalSetup(wrapper, globalObject);
+};
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-week-string
-function parseWeekString(str) {
- const matches = weekRe.exec(str);
- if (!matches) {
- return null;
- }
- const year = Number(matches[1]);
- if (year <= 0) {
- return null;
- }
- const week = Number(matches[2]);
- if (week < 1 || week > weekNumberOfLastDay(year)) {
- return null;
- }
- return { year, week };
-}
+exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
+ privateData.wrapper = wrapper;
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-week-string
-function isValidWeekString(str) {
- return parseWeekString(str) !== null;
-}
-function serializeWeek({ year, week }) {
- const yearStr = `${year}`.padStart(4, "0");
- const weekStr = `${week}`.padStart(2, "0");
- return `${yearStr}-W${weekStr}`;
-}
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
+ configurable: true
+ });
-// https://stackoverflow.com/a/6117889
-function parseDateAsWeek(originalDate) {
- const dayInSeconds = 86400000;
- // Copy date so don't modify original
- const date = new Date(Date.UTC(originalDate.getUTCFullYear(), originalDate.getUTCMonth(), originalDate.getUTCDate()));
- // Set to nearest Thursday: current date + 4 - current day number
- // Make Sunday's day number 7
- date.setUTCDate(date.getUTCDate() + 4 - (date.getUTCDay() || 7));
- // Get first day of year
- const yearStart = new Date(Date.UTC(date.getUTCFullYear(), 0, 1));
- // Calculate full weeks to nearest Thursday
- const week = Math.ceil((((date - yearStart) / dayInSeconds) + 1) / 7);
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
+ }
+ return wrapper;
+};
- return { year: date.getUTCFullYear(), week };
-}
+exports["new"] = globalObject => {
+ const wrapper = makeWrapper(globalObject);
-function isDate(obj) {
- try {
- Date.prototype.valueOf.call(obj);
- return true;
- } catch {
- return false;
+ exports._internalSetup(wrapper, globalObject);
+ Object.defineProperty(wrapper, implSymbol, {
+ value: Object.create(Impl.implementation.prototype),
+ configurable: true
+ });
+
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
+ if (Impl.init) {
+ Impl.init(wrapper[implSymbol]);
}
-}
+ return wrapper[implSymbol];
+};
-module.exports = {
- isDate,
- numberOfDaysInMonthOfYear,
+const exposed = new Set(["Window"]);
- parseMonthString,
- isValidMonthString,
- serializeMonth,
+exports.install = (globalObject, globalNames) => {
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
+ return;
+ }
- parseDateString,
- isValidDateString,
- serializeDate,
+ if (globalObject.Event === undefined) {
+ throw new Error("Internal error: attempting to evaluate UIEvent before Event");
+ }
+ class UIEvent extends globalObject.Event {
+ constructor(type) {
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to construct 'UIEvent': 1 argument required, but only " + arguments.length + " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, { context: "Failed to construct 'UIEvent': parameter 1" });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ curArg = UIEventInit.convert(curArg, { context: "Failed to construct 'UIEvent': parameter 2" });
+ args.push(curArg);
+ }
+ return exports.setup(Object.create(new.target.prototype), globalObject, args);
+ }
- parseYearlessDateString,
- isValidYearlessDateString,
- serializeYearlessDate,
+ initUIEvent(typeArg) {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'initUIEvent' called on an object that is not a valid instance of UIEvent.");
+ }
- parseTimeString,
- isValidTimeString,
- serializeTime,
+ if (arguments.length < 1) {
+ throw new TypeError(
+ "Failed to execute 'initUIEvent' on 'UIEvent': 1 argument required, but only " +
+ arguments.length +
+ " present."
+ );
+ }
+ const args = [];
+ {
+ let curArg = arguments[0];
+ curArg = conversions["DOMString"](curArg, {
+ context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 1"
+ });
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[1];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 2"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[2];
+ if (curArg !== undefined) {
+ curArg = conversions["boolean"](curArg, {
+ context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 3"
+ });
+ } else {
+ curArg = false;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[3];
+ if (curArg !== undefined) {
+ if (curArg === null || curArg === undefined) {
+ curArg = null;
+ } else {
+ curArg = utils.tryImplForWrapper(curArg);
+ }
+ } else {
+ curArg = null;
+ }
+ args.push(curArg);
+ }
+ {
+ let curArg = arguments[4];
+ if (curArg !== undefined) {
+ curArg = conversions["long"](curArg, {
+ context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 5"
+ });
+ } else {
+ curArg = 0;
+ }
+ args.push(curArg);
+ }
+ return esValue[implSymbol].initUIEvent(...args);
+ }
- parseLocalDateAndTimeString,
- isValidLocalDateAndTimeString,
- isValidNormalizedLocalDateAndTimeString,
- serializeNormalizedDateAndTime,
+ get view() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
- parseDateAsWeek,
- weekNumberOfLastDay,
- parseWeekString,
- isValidWeekString,
- serializeWeek
-};
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get view' called on an object that is not a valid instance of UIEvent.");
+ }
+ return utils.tryWrapperForImpl(esValue[implSymbol]["view"]);
+ }
-/***/ }),
+ get detail() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-/***/ 827:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get detail' called on an object that is not a valid instance of UIEvent.");
+ }
-"use strict";
+ return esValue[implSymbol]["detail"];
+ }
-const { firstChildWithLocalName } = __nccwpck_require__(32604);
-const { HTML_NS } = __nccwpck_require__(52635);
+ get which() {
+ const esValue = this !== null && this !== undefined ? this : globalObject;
-// https://html.spec.whatwg.org/multipage/interactive-elements.html#summary-for-its-parent-details
-exports.isSummaryForParentDetails = summaryElement => {
- const parent = summaryElement.parentNode;
- if (parent === null) {
- return false;
+ if (!exports.is(esValue)) {
+ throw new TypeError("'get which' called on an object that is not a valid instance of UIEvent.");
+ }
+
+ return esValue[implSymbol]["which"];
+ }
}
- if (parent._localName !== "details" || parent._namespaceURI !== HTML_NS) {
- return false;
+ Object.defineProperties(UIEvent.prototype, {
+ initUIEvent: { enumerable: true },
+ view: { enumerable: true },
+ detail: { enumerable: true },
+ which: { enumerable: true },
+ [Symbol.toStringTag]: { value: "UIEvent", configurable: true }
+ });
+ if (globalObject[ctorRegistrySymbol] === undefined) {
+ globalObject[ctorRegistrySymbol] = Object.create(null);
}
- return firstChildWithLocalName(parent, "summary") === summaryElement;
+ globalObject[ctorRegistrySymbol][interfaceName] = UIEvent;
+
+ Object.defineProperty(globalObject, interfaceName, {
+ configurable: true,
+ writable: true,
+ value: UIEvent
+ });
};
+const Impl = __nccwpck_require__(55900);
+
/***/ }),
-/***/ 20613:
+/***/ 82015:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-const whatwgURL = __nccwpck_require__(66365);
-const { implForWrapper } = __nccwpck_require__(34908);
-exports.documentBaseURL = document => {
- // https://html.spec.whatwg.org/multipage/infrastructure.html#document-base-url
+const conversions = __nccwpck_require__(54886);
+const utils = __nccwpck_require__(34908);
- const firstBase = document.querySelector("base[href]");
- const fallbackBaseURL = exports.fallbackBaseURL(document);
+const EventInit = __nccwpck_require__(4895);
- if (firstBase === null) {
- return fallbackBaseURL;
- }
+exports._convertInherit = (obj, ret, { context = "The provided value" } = {}) => {
+ EventInit._convertInherit(obj, ret, { context });
- return frozenBaseURL(firstBase, fallbackBaseURL);
-};
+ {
+ const key = "detail";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ value = conversions["long"](value, { context: context + " has member 'detail' that" });
-exports.documentBaseURLSerialized = document => {
- return whatwgURL.serializeURL(exports.documentBaseURL(document));
-};
+ ret[key] = value;
+ } else {
+ ret[key] = 0;
+ }
+ }
-exports.fallbackBaseURL = document => {
- // https://html.spec.whatwg.org/multipage/infrastructure.html#fallback-base-url
+ {
+ const key = "view";
+ let value = obj === undefined || obj === null ? undefined : obj[key];
+ if (value !== undefined) {
+ if (value === null || value === undefined) {
+ value = null;
+ } else {
+ value = utils.tryImplForWrapper(value);
+ }
+ ret[key] = value;
+ } else {
+ ret[key] = null;
+ }
+ }
- // Unimplemented: