r)return-(n-2);var u=15&a;for(h=u+240;255===h;)u+=h=e[n++];var g=r-d;for(c=r+u+4;r=n)throw new Error("input too large");if(e.length>12){var u=t.compressBound(e.length);if(c>>16,v=r[y]-1;if(r[y]=i+1,v<0||i-v>>>16>0||(e[v+3]<<8|e[v+2])!=f||(e[v+1]<<8|e[v])!=m)i+=g++>>6;else{g=67;var C=i-d,w=i-v;v+=4;for(var b=i+=4;i=s){o[h++]=240+M;for(var E=C-s;E>254;E-=255)o[h++]=255;o[h++]=E}else o[h++]=(C<<4)+M;for(var k=0;k>8,b>=15){for(b-=15;b>=255;)b-=255,o[h++]=255;o[h++]=b}d=
i}}}if(0==d)return 0;if((C=e.length-d)>=s){o[h++]=240;for(var S=C-s;S>254;S-=255)o[h++]=255;o[h++]=S}else o[h++]=C<<4;for(i=d;in?0:e+e/255+16|0},t.compress=function(e,t,o,i){for(var n=new Array(65536),s=0;s<65536;s++)n[s]=0;return r(e,t,0,n,o||0,i||t.length)},t.compressHC=t.compress,t.compressDependent=r},897:(e,t,o)=>{e.exports=o(813)},813:(e,t,o)=>{var i=o(287).hp;t.ZM=407708164,t.Cw=i.alloc(4),t.Cw.writeUInt32LE(t.ZM,0,!1),
t.UW=0,t.B_=i.alloc(4),t.B_.writeUInt32LE(t.UW,0,!1),t.utils=o(150)},526:(e,t)=>{t.byteLength=function(e){var t=a(e),o=t[0],i=t[1];return 3*(o+i)/4-i},t.toByteArray=function(e){var t,o,s=a(e),r=s[0],l=s[1],h=new n(function(e,t,o){return 3*(t+o)/4-o}(0,r,l)),c=0,d=l>0?r-4:r;for(o=0;o>16&255,h[c++]=t>>8&255,h[c++]=255&t;2===l&&(t=i[e.charCodeAt(o)]<<2|i[e.charCodeAt(o+1)]>>4,h[c++]=255&t);
1===l&&(t=i[e.charCodeAt(o)]<<10|i[e.charCodeAt(o+1)]<<4|i[e.charCodeAt(o+2)]>>2,h[c++]=t>>8&255,h[c++]=255&t);return h},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],r=16383,a=0,h=i-n;ah?h:a+r));1===n?(t=e[i-1],s.push(o[t>>2]+o[t<<4&63]+"\x3d\x3d")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"\x3d"));return s.join("")};for(var o=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
r=0;r<64;++r)o[r]=s[r],i[s.charCodeAt(r)]=r;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("\x3d");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function l(e,t,i){for(var n,s,r=[],a=t;a>18&63]+o[s>>12&63]+o[s>>6&63]+o[63&s]);return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},788:(e,t,o)=>{var i=o(287).hp;var n=o(931);function s(e,t){return void 0===
t&&(t="utf8"),i.isBuffer(e)?a(e.toString("base64")):a(i.from(e,t).toString("base64"))}function r(e){return e=e.toString(),n.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function a(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var l=s;l.encode=s,l.decode=function(e,t){return void 0===t&&(t="utf8"),i.from(r(e),"base64").toString(t)},l.toBase64=r,l.fromBase64=a,l.toBuffer=function(e){return i.from(r(e),"base64")},t.default=l},931:(e,t,o)=>{var i=o(287).hp;Object.defineProperty(t,
"__esModule",{value:!0}),t.default=function(e){var t=e.length,o=t%4;if(!o)return e;var n=t,s=4-o,r=t+s,a=i.alloc(r);for(a.write(e);s--;)a.write("\x3d",n++);return a.toString()}},711:(e,t,o)=>{e.exports=o(788).default,e.exports.default=e.exports},287:(e,t,o)=>{var i=o(526),n=o(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;var r=2147483647;function a(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');
var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,o){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return h(e,t,o)}function h(e,t,o){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var o=0|m(e,t),i=a(o),n=i.write(e,t);n!==o&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(e,
Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return g(e,t,o);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return g(e,t,o);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');
var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return l.from(i,t,o);var n=function(e){if(l.isBuffer(e)){var t=0|p(e.length),o=a(t);return 0===o.length||e.copy(o,0,0,t),o}if(void 0!==e.length)return"number"!=typeof e.length||V(e.length)?a(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+
typeof e);}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"');}function d(e){return c(e),a(e<0?0:0|p(e))}function u(e){for(var t=e.length<0?0:0|p(e.length),o=a(t),i=0;i=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+
typeof e);var o=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===o)return 0;for(var n=!1;;)switch(t){case "ascii":case "latin1":case "binary":return o;case "utf8":case "utf-8":return H(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*o;case "hex":return o>>>1;case "base64":return U(e).length;default:if(n)return i?-1:H(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,o){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&
(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case "hex":return O(this,t,o);case "utf8":case "utf-8":return T(this,t,o);case "ascii":return L(this,t,o);case "latin1":case "binary":return A(this,t,o);case "base64":return S(this,t,o);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return R(this,t,o);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,o){var i=e[t];e[t]=e[o],e[o]=i}function v(e,t,o,
i,n){if(0===e.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),V(o=+o)&&(o=n?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(n)return-1;o=e.length-1}else if(o<0){if(!n)return-1;o=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:C(e,t,o,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):C(e,
[t],o,i,n);throw new TypeError("val must be string, number or Buffer");}function C(e,t,o,i,n){var s,r=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;r=2,a/=2,l/=2,o/=2}function h(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(n){var c=-1;for(s=o;sa&&(o=a-l),s=o;s>=0;s--){for(var d=
!0,u=0;un&&(i=n):i=n;var s=t.length;i>s/2&&(i=s/2);for(var r=0;r>8,n=o%256,s.push(n),s.push(i);return s}(t,e.length-o),e,o,i)}function S(e,t,o){return 0===t&&o===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,o))}function T(e,t,o){o=Math.min(e.length,o);for(var i=[],n=t;n239?4:h>223?3:h>191?2:1;if(n+d<=o)switch(d){case 1:h<128&&(c=h);break;case 2:128==(192&(s=e[n+1]))&&(l=(31&h)<<6|63&s)>127&&(c=l);break;case 3:s=e[n+1],
r=e[n+2],128==(192&s)&&128==(192&r)&&(l=(15&h)<<12|(63&s)<<6|63&r)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:s=e[n+1],r=e[n+2],a=e[n+3],128==(192&s)&&128==(192&r)&&128==(192&a)&&(l=(15&h)<<18|(63&s)<<12|(63&r)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var o="",i=0;for(;ii.length?l.from(s).copy(i,n):Uint8Array.prototype.set.call(i,s,n);else{if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,n)}n+=s.length}return i},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;to&&(e+=" ... "),"\x3cBuffer "+e+"\x3e"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,o,i,n){if(q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+
typeof e);if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||o>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=o)return 0;if(i>=n)return-1;if(t>=o)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(i>>>=0),r=(o>>>=0)-(t>>>=0),a=Math.min(s,r),h=this.slice(i,n),c=e.slice(t,o),d=0;d>>=0,isFinite(o)?(o>>>=0,void 0===i&&(i="utf8")):(i=o,o=void 0)}var n=this.length-t;if((void 0===o||o>n)&&(o=n),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");
i||(i="utf8");for(var s=!1;;)switch(i){case "hex":return w(this,e,t,o);case "utf8":case "utf-8":return b(this,e,t,o);case "ascii":case "latin1":case "binary":return M(this,e,t,o);case "base64":return E(this,e,t,o);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return k(this,e,t,o);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function L(e,
t,o){var i="";o=Math.min(e.length,o);for(var n=t;ni)&&(o=i);for(var n="",s=t;so)throw new RangeError("Trying to access beyond buffer length");}function B(e,t,o,i,n,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range");}function P(e,t,o,i,n,s){if(o+i>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range");}function x(e,t,o,i,s){return t=+t,o>>>=0,s||P(e,0,o,4),n.write(e,
t,o,i,23,4),o+4}function I(e,t,o,i,s){return t=+t,o>>>=0,s||P(e,0,o,8),n.write(e,t,o,i,52,8),o+8}l.prototype.slice=function(e,t){var o=this.length;(e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t>>=0,t>>>=0,o||_(e,t,this.length);for(var i=this[e],n=1,s=0;++s>>=0,t>>>=0,o||_(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=
l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,o){e>>>=0,t>>>=0,o||_(e,t,this.length);for(var i=this[e],n=1,s=0;++s=(n*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,o){e>>>=
0,t>>>=0,o||_(e,t,this.length);for(var i=t,n=1,s=this[e+--i];i>0&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);var o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},l.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},l.prototype.readInt32LE=
function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,
e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,o,i){(e=+e,t>>>=0,o>>>=0,i)||B(this,e,t,o,Math.pow(2,8*o)-1,0);var n=1,s=0;for(this[t]=255&e;++s>>=0,o>>>=0,i)||B(this,e,t,o,Math.pow(2,8*o)-1,0);var n=o-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&
255;return t+o},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,o){return e=
+e,t>>>=0,o||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,o,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*o-1);B(this,e,t,o,n-1,-n)}var s=0,r=1,a=0;for(this[t]=255&e;++s>>=0,!i){var n=Math.pow(2,8*o-1);B(this,e,t,o,n-1,-n)}var s=o-1,r=1,a=0;for(this[t+s]=255&e;--s>=0&&(r*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/r|0)-a&255;return t+o},l.prototype.writeInt8=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=
function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,o){return x(this,
e,t,!0,o)},l.prototype.writeFloatBE=function(e,t,o){return x(this,e,t,!1,o)},l.prototype.writeDoubleLE=function(e,t,o){return I(this,e,t,!0,o)},l.prototype.writeDoubleBE=function(e,t,o){return I(this,e,t,!1,o)},l.prototype.copy=function(e,t,o,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&o<57344){if(!n){if(o>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(r+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=o;continue}if(o<56320){(t-=3)>-1&&s.push(239,191,189),n=o;continue}o=65536+(n-55296<<10|o-56320)}else n&&
(t-=3)>-1&&s.push(239,191,189);if(n=null,o<128){if((t-=1)<0)break;s.push(o)}else if(o<2048){if((t-=2)<0)break;s.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;s.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return s}function U(e){return i.toByteArray(function(e){if((e=(e=e.split("\x3d")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="\x3d";return e}(e))}
function F(e,t,o,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+o]=e[n];return n}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}var W=function(){for(var e="0123456789abcdef",t=new Array(256),o=0;o<16;++o)for(var i=16*o,n=0;n<16;++n)t[i+n]=e[o]+e[n];return t}()},898:(e,t,o)=>{t.UINT32=o(741),t.UINT64=o(174)},741:function(e,t){var o;!function(){i(Math.pow(36,5)),i(Math.pow(16,7)),i(Math.pow(10,
9)),i(Math.pow(2,30)),i(36),i(16),i(10),i(2);function i(e,t){return this instanceof i?(this._low=0,this._high=0,this.remainder=null,void 0===t?s.call(this,e):"string"==typeof e?r.call(this,e,t):void n.call(this,e,t)):new i(e,t)}function n(e,t){return this._low=0|e,this._high=0|t,this}function s(e){return this._low=65535&e,this._high=e>>>16,this}function r(e,t){var o=parseInt(e,t||10);return this._low=65535&o,this._high=o>>>16,this}i.prototype.fromBits=n,i.prototype.fromNumber=s,i.prototype.fromString=
r,i.prototype.toNumber=function(){return 65536*this._high+this._low},i.prototype.toString=function(e){return this.toNumber().toString(e||10)},i.prototype.add=function(e){var t=this._low+e._low,o=t>>>16;return o+=this._high+e._high,this._low=65535&t,this._high=65535&o,this},i.prototype.subtract=function(e){return this.add(e.clone().negate())},i.prototype.multiply=function(e){var t,o,i=this._high,n=this._low,s=e._high,r=e._low;return t=(o=n*r)>>>16,t+=i*r,t&=65535,t+=n*s,this._low=65535&o,this._high=
65535&t,this},i.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new i(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new i(0),this._low=1,this._high=0,this;for(var t=e.clone(),o=-1;!this.lt(t);)t.shiftLeft(1,!0),o++;for(this.remainder=this.clone(),this._low=0,this._high=0;o>=0;o--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),
o>=16?this._high|=1<>>16)&65535,this},i.prototype.equals=i.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},i.prototype.greaterThan=i.prototype.gt=function(e){return this._high>e._high||!(this._highe._low},i.prototype.lessThan=i.prototype.lt=function(e){return this._highe._high)&&this._low<
e._low},i.prototype.or=function(e){return this._low|=e._low,this._high|=e._high,this},i.prototype.and=function(e){return this._low&=e._low,this._high&=e._high,this},i.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},i.prototype.xor=function(e){return this._low^=e._low,this._high^=e._high,this},i.prototype.shiftRight=i.prototype.shiftr=function(e){return e>16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=
this._low>>e|this._high<<16-e&65535,this._high>>=e),this},i.prototype.shiftLeft=i.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<>16-e,this._low=this._low<>>32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.rotateRight=
i.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.clone=function(){return new i(this._low,this._high)},void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},174:function(e,t){var o;!function(){var i={16:s(Math.pow(16,5)),10:s(Math.pow(10,5)),2:s(Math.pow(2,5))},n={16:s(16),10:s(10),2:s(2)};function s(e,t,o,i){return this instanceof s?(this.remainder=null,"string"==typeof e?l.call(this,e,t):void 0===t?
a.call(this,e):void r.apply(this,arguments)):new s(e,t,o,i)}function r(e,t,o,i){return void 0===o?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|o,this._a48=0|i,this)}function a(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function l(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var o=i[t]||new s(Math.pow(t,5)),n=0,r=e.length;n=0&&(o.div(t),i[r]=o.remainder.toNumber().toString(e),o.gt(t));r--);return i[r-1]=o.toNumber().toString(e),i.join("")},s.prototype.add=
function(e){var t=this._a00+e._a00,o=t>>>16,i=(o+=this._a16+e._a16)>>>16,n=(i+=this._a32+e._a32)>>>16;return n+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&o,this._a32=65535&i,this._a48=65535&n,this},s.prototype.subtract=function(e){return this.add(e.clone().negate())},s.prototype.multiply=function(e){var t=this._a00,o=this._a16,i=this._a32,n=this._a48,s=e._a00,r=e._a16,a=e._a32,l=t*s,h=l>>>16,c=(h+=t*r)>>>16;h&=65535,c+=(h+=o*s)>>>16;var d=(c+=t*a)>>>16;return c&=65535,d+=(c+=o*r)>>>16,c&=
65535,d+=(c+=i*s)>>>16,d+=t*e._a48,d&=65535,d+=o*a,d&=65535,d+=i*r,d&=65535,d+=n*s,this._a00=65535&l,this._a16=65535&h,this._a32=65535&c,this._a48=65535&d,this},s.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1==e._a00)return this.remainder=new s(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new s(0),this._a00=1,this._a16=0,this._a32=0,
this._a48=0,this;for(var t=e.clone(),o=-1;!this.lt(t);)t.shiftLeft(1,!0),o++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;o>=0;o--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),o>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=
65535&e,this._a48=~this._a48+(e>>>16)&65535,this},s.prototype.equals=s.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},s.prototype.greaterThan=s.prototype.gt=function(e){return this._a48>e._a48||!(this._a48e._a32||!(this._a32e._a16||!(this._a16e._a00))},s.prototype.lessThan=s.prototype.lt=function(e){return this._a48e._a48)&&(this._a32
e._a32)&&(this._a16e._a16)&&this._a00=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=
65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},s.prototype.shiftLeft=s.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<=32?(e-=32,this._a48=this._a16<>16-e,this._a32=this._a00<=16?(e-=16,this._a48=this._a32<>16-e,this._a32=65535&(this._a16<>16-e),this._a16=this._a00<>16-e,this._a32=65535&(this._a32<>16-e),this._a16=65535&(this._a16<>16-e),this._a00=this._a00<=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var o=this._a48<<16|this._a32,i=this._a16<<16|this._a00,n=o<>>32-e,s=i<>>32-e;return this._a00=
65535&s,this._a16=s>>>16,this._a32=65535&n,this._a48=n>>>16,this},s.prototype.rotateRight=s.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var o=this._a48<<16|this._a32,i=this._a16<<16|this._a00,n=o>>>e|i<<32-e,s=i>>>e|o<<32-e;return this._a00=65535&s,this._a16=s>>>16,this._a32=65535&n,this._a48=n>>>16,this},s.prototype.clone=function(){return new s(this._a00,this._a16,
this._a32,this._a48)},void 0===(o=function(){return s}.apply(t,[]))||(e.exports=o)}()},251:(e,t)=>{t.read=function(e,t,o,i,n){var s,r,a=8*n-i-1,l=(1<>1,c=-7,d=o?n-1:0,u=o?-1:1,g=e[t+d];for(d+=u,s=g&(1<<-c)-1,g>>=-c,c+=a;c>0;s=256*s+e[t+d],d+=u,c-=8);for(r=s&(1<<-c)-1,s>>=-c,c+=i;c>0;r=256*r+e[t+d],d+=u,c-=8);if(0===s)s=1-h;else{if(s===l)return r?NaN:1/0*(g?-1:1);r+=Math.pow(2,i),s-=h}return(g?-1:1)*r*Math.pow(2,s-i)},t.write=function(e,t,o,i,n,s){var r,a,l,h=8*s-n-1,c=(1<>1,u=
23===n?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:s-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,r=c):(r=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-r))<1&&(r--,l*=2),(t+=r+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(r++,l/=2),r+d>=c?(a=0,r=c):r+d>=1?(a=(t*l-1)*Math.pow(2,n),r+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),r=0));n>=8;e[o+g]=255&a,g+=p,a/=256,n-=8);for(r=r<0;e[o+g]=255&r,g+=p,r/=256,h-=8);e[o+g-p]|=128*m}},134:(e,t,o)=>{e.exports={h32:o(492),
h64:o(470)}},492:(e,t,o)=>{var i=o(287).hp,n=o(898).UINT32;n.prototype.xxh_update=function(e,t){var o,i,n=r._low,a=r._high;o=(i=e*n)>>>16,o+=t*n,o&=65535,o+=e*a;var l=this._low+(65535&i),h=l>>>16,c=(h+=this._high+(65535&o))<<16|65535&l;h=(c=c<<13|c>>>19)>>>16,o=(i=(l=65535&c)*(n=s._low))>>>16,o+=h*n,o&=65535,o+=l*(a=s._high),this._low=65535&i,this._high=65535&o};var s=n("2654435761"),r=n("2246822519"),a=n("3266489917"),l=n("668265263"),h=n("374761393");function c(){return 2==arguments.length?(new c(arguments[1])).update(arguments[0]).digest():
this instanceof c?void d.call(this,arguments[0]):new c(arguments[0])}function d(e){return this.seed=e instanceof n?e.clone():n(e),this.v1=this.seed.clone().add(s).add(r),this.v2=this.seed.clone().add(r),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}c.prototype.init=d,c.prototype.update=function(e){var t,o="string"==typeof e;o&&(e=function(e){for(var t=[],o=0,i=e.length;o>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(o++,n=65536+((1023&n)<<10|1023&e.charCodeAt(o)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)}(e),o=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var n=0,s=e.length,r=n+s;if(0==s)return this;if(this.total_len+=s,0==this.memsize&&(this.memory=o?"":t?new Uint8Array(16):new i(16)),this.memsize+s<16)return o?this.memory+=e:t?this.memory.set(e.subarray(0,
s),this.memsize):e.copy(this.memory,this.memsize,0,s),this.memsize+=s,this;if(this.memsize>0){o?this.memory+=e.slice(0,16-this.memsize):t?this.memory.set(e.subarray(0,16-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,16-this.memsize);var a=0;o?(this.v1.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v2.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+
3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v3.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v4.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2))):(this.v1.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v2.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+
2]),a+=4,this.v3.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v4.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2])),n+=16-this.memsize,this.memsize=0,o&&(this.memory="")}if(n<=r-16){var l=r-16;do o?(this.v1.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2)),n+=4,this.v2.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2)),n+=4,this.v3.xxh_update(e.charCodeAt(n+
1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2)),n+=4,this.v4.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2))):(this.v1.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2]),n+=4,this.v2.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2]),n+=4,this.v3.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2]),n+=4,this.v4.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2])),n+=4;while(n<=l)}return n=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(h)).add(u.fromNumber(this.total_len));c<=d-4;)i?u.fromBits(o.charCodeAt(c+1)<<8|o.charCodeAt(c),o.charCodeAt(c+3)<<8|o.charCodeAt(c+2)):u.fromBits(o[c+1]<<8|o[c],o[c+3]<<8|o[c+2]),e.add(u.multiply(a)).rotl(17).multiply(l),c+=4;for(;c<
d;)u.fromBits(i?o.charCodeAt(c++):o[c++],0),e.add(u.multiply(h)).rotl(11).multiply(s);return t=e.clone().shiftRight(15),e.xor(t).multiply(r),t=e.clone().shiftRight(13),e.xor(t).multiply(a),t=e.clone().shiftRight(16),e.xor(t),this.init(this.seed),e},e.exports=c},470:(e,t,o)=>{var i=o(287).hp,n=o(898).UINT64,s=n("11400714785074694791"),r=n("14029467366897019727"),a=n("1609587929392839161"),l=n("9650029242287828579"),h=n("2870177450012600261");function c(){return 2==arguments.length?(new c(arguments[1])).update(arguments[0]).digest():
this instanceof c?void d.call(this,arguments[0]):new c(arguments[0])}function d(e){return this.seed=e instanceof n?e.clone():n(e),this.v1=this.seed.clone().add(s).add(r),this.v2=this.seed.clone().add(r),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}c.prototype.init=d,c.prototype.update=function(e){var t,o="string"==typeof e;o&&(e=function(e){for(var t=[],o=0,i=e.length;o>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(o++,n=65536+((1023&n)<<10|1023&e.charCodeAt(o)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)}(e),o=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var a=0,l=e.length,h=a+l;if(0==l)return this;if(this.total_len+=l,0==this.memsize&&(this.memory=o?"":t?new Uint8Array(32):new i(32)),this.memsize+l<32)return o?this.memory+=e:t?this.memory.set(e.subarray(0,
l),this.memsize):e.copy(this.memory,this.memsize,0,l),this.memsize+=l,this;if(this.memsize>0){o?this.memory+=e.slice(0,32-this.memsize):t?this.memory.set(e.subarray(0,32-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,32-this.memsize);var c=0;if(o)u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),
this.v1.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v2.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+
4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v3.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v4.add(u.multiply(r)).rotl(31).multiply(s);else u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<
8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v1.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v2.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v3.add(u.multiply(r)).rotl(31).multiply(s),
c+=8,u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v4.add(u.multiply(r)).rotl(31).multiply(s);a+=32-this.memsize,this.memsize=0,o&&(this.memory="")}if(a<=h-32){var d=h-32;do{var u;if(o)u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v1.add(u.multiply(r)).rotl(31).multiply(s),
a+=8,u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v2.add(u.multiply(r)).rotl(31).multiply(s),a+=8,u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v3.add(u.multiply(r)).rotl(31).multiply(s),a+=8,u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+
2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v4.add(u.multiply(r)).rotl(31).multiply(s);else u=n(e[a+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v1.add(u.multiply(r)).rotl(31).multiply(s),u=n(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v2.add(u.multiply(r)).rotl(31).multiply(s),u=n(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v3.add(u.multiply(r)).rotl(31).multiply(s),
u=n(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v4.add(u.multiply(r)).rotl(31).multiply(s);a+=8}while(a<=d)}return a=32?((e=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),e.add(this.v3.clone().rotl(12)),
e.add(this.v4.clone().rotl(18)),e.xor(this.v1.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l),e.xor(this.v2.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l),e.xor(this.v3.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l),e.xor(this.v4.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l)):e=this.seed.clone().add(h),e.add(u.fromNumber(this.total_len));c<=d-8;)i?u.fromBits(o.charCodeAt(c+1)<<8|o.charCodeAt(c),o.charCodeAt(c+3)<<8|o.charCodeAt(c+2),o.charCodeAt(c+5)<<8|o.charCodeAt(c+
4),o.charCodeAt(c+7)<<8|o.charCodeAt(c+6)):u.fromBits(o[c+1]<<8|o[c],o[c+3]<<8|o[c+2],o[c+5]<<8|o[c+4],o[c+7]<<8|o[c+6]),u.multiply(r).rotl(31).multiply(s),e.xor(u).rotl(27).multiply(s).add(l),c+=8;for(c+4<=d&&(i?u.fromBits(o.charCodeAt(c+1)<<8|o.charCodeAt(c),o.charCodeAt(c+3)<<8|o.charCodeAt(c+2),0,0):u.fromBits(o[c+1]<<8|o[c],o[c+3]<<8|o[c+2],0,0),e.xor(u.multiply(s)).rotl(23).multiply(r).add(a),c+=4);c{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,
t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=o(514).utilities;Object.isExtensible(Object)&&!Object.prototype.hasOwnProperty("enswatch")&&Object.defineProperty(Object.prototype,"enswatch",e.watcher)})(),(()=>{const {utilities:e}=o(514),{GatewayInternal:t,Gateway:i}=o(588);if(document.elementFromPoint&&!e.isIE()){if(ensBrowserSupported=!0,"undefined"==typeof Bootstrapper&&
(Bootstrapper={}),Bootstrapper.gateway&&Bootstrapper.gateway.singleton)throw console.warn("Two or more gateways have attempted to initialize"),new Error("Detected two or more gateway cores attempting to intialize");Bootstrapper.gateway={singleton:!0},Bootstrapper.hasOwnProperty("privacy")&&"function"==typeof Bootstrapper.privacy.onBeforeInit&&Bootstrapper.privacy.onBeforeInit(ensClientConfig),"function"==typeof ensClientConfig.domReady&&(e.domReady=ensClientConfig.domReady),gateway=new i(ensClientConfig),
gateway.isInitialized?(Bootstrapper.gateway={templateManager:gateway.templateManager,environment:gateway.environment,environmentExists:gateway.environmentManager.environmentExists,getActiveEnvironment:gateway.environmentManager.getActiveEnvironment,getActiveLocale:gateway.environmentManager.getActiveLocale,getAvailableLocales:gateway.environmentManager.getAvailableLocales,getCookie:gateway.consentCookies.getCookie,getCookieTypes:gateway.consentCookies.getCookieTypes,getCookieDomain:gateway.consentCookies.getCookieDomain,
getCookieDomainPath:gateway.consentCookies.getCookieDomainPath,getVersion:gateway.getVersion,openBanner:gateway.openBanner,closeBanner:gateway.closeBanner,openModal:gateway.openModal,closeModal:gateway.closeModal,openGpcNotification:gateway.openGpcNotification,closeGpcNotification:gateway.closeGpcNotification,openDoNotSellModal:gateway.openDoNotSellModal,openRequestDataModal:gateway.openRequestDataModal,openDeleteDataModal:gateway.openDeleteDataModal,sendCCPAEvent:gateway.sendCCPAEvent,registerEnvironmentChangeCallback:gateway.environmentManager.registerEnvironmentChangeCallback,
registerConsentChangeCallback:gateway.registerConsentChangeCallback,getList:gateway.getList,isWhitelist:gateway.isWhitelist,resetEnvironment:gateway.resetEnvironment,saveTcf:gateway.consentCookies.saveTcf,setConsentStatus:gateway.banner.setConsentStatus,setConsentStatuses:gateway.banner.setConsentStatuses,setCookie:gateway.consentCookies.setCookie,setCookies:gateway.consentCookies.setCookies,setCookieDomain:gateway.consentCookies.setCookieDomain,setCookieDomainPath:gateway.consentCookies.setCookieDomainPath,
setCookieRetentionPeriod:gateway.consentCookies.setCookieRetentionPeriod,setEnvironment:gateway.environmentManager.setEnvironment,setOpenModal:gateway.setOpenModal,setOpenBanner:gateway.setOpenBanner,flushReports:gateway.flushReports,getInteractedTags:gateway.getInteractedTags,getConsentStatus:gateway.banner.getConsentStatus,getUserPreferences:gateway.getUserPreferences,getUserPreference:gateway.getUserPreference,updatePreferences:gateway.updatePreferences,allowTag:gateway.allowTag,blockTag:gateway.blockTag,
blockAllCategories:gateway.blockAllCategories,clearTags:gateway.clearTags,getCookieRetentionPeriod:gateway.getCookieRetentionPeriod,getHistory:gateway.getHistory,enableBotAndFraudProtectionReason:gateway.enableBotAndFraudProtectionReason,addCustomReportingEvent:gateway.addCustomReportingEvent,googleConsentManager:gateway.googleConsentManager,singleton:!0},Object.defineProperty(Bootstrapper.gateway,"environment",{get:function(){return gateway.environmentManager.getActiveEnvironment()}}),Bootstrapper.hasOwnProperty("privacy")&&
"function"==typeof Bootstrapper.privacy.onAfterInitInternal&&Bootstrapper.privacy.onAfterInitInternal(ensClientConfig),Bootstrapper.hasOwnProperty("privacy")&&"function"==typeof Bootstrapper.privacy.onAfterInit&&Bootstrapper.privacy.onAfterInit(ensClientConfig)):Bootstrapper.gateway={}}else ensBrowserSupported=!1;!ensBrowserSupported&&ensClientConfig.browserNotSupportedURL&&""!==ensClientConfig.browserNotSupportedURL&&(window.location=ensClientConfig.browserNotSupportedURL)})()})()},4250619,[4250958,
4234880,3887061],634378,[634377,645040,743678],24);Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions},3174916,[4234880],634379,[645040],24);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.privacy=Bootstrapper.privacy||{};Bootstrapper.privacy.onAfterInit=function(config){if(Bootstrapper.cookieJar&&Bootstrapper.cookieJar.OptanonConsent&&(Bootstrapper.portalChk==="matterhorn"||Bootstrapper.portalChk==="emea-disney"||Bootstrapper.portalChk==="accounts")){let allowList=Bootstrapper.gateway.getList();allowList=allowList[Bootstrapper.gateway.getCookieTypes()[0]];
let otcObj={};Bootstrapper.cookieJar.OptanonConsent.split("\x26").forEach(entry=>{let key=entry.split("\x3d")[0],val=entry.split("\x3d")[1];otcObj[key]=decodeURIComponent(val)});if(otcObj&&otcObj.groups===undefined)return;let consents={};otcObj.groups.split(",").forEach(entry=>{consents[entry.split(":")[0]]=entry.split(":")[1]});for(var listIndex=0;listIndex{const client=Bootstrapper.ensightenOptions.client;console.log("Testing: "+key+", "+value);if(key==="ALLOWED_URLS")window.localStorage.setItem(client+"_ENSIGHTEN_ALLOWED_URLS",JSON.stringify(value));else if(key==="BLOCKED_URLS")window.localStorage.setItem(client+"_ENSIGHTEN_BLOCKED_URLS",JSON.stringify(value));else{var cname=client.toUpperCase()+"_ENSIGHTEN_PRIVACY_"+key.replace(/ /g,"_");document.cookie=cname+"\x3d"+encodeURIComponent(value)}})}if(window.customData&&window.customData.privData){console.log("setting privData cookies: "+
JSON.stringify(window.customData.privData));Object.entries(window.customData.privData).forEach(([key,value])=>{document.cookie=key+"\x3d"+encodeURIComponent(value)})}Bootstrapper.cookieJar=Bootstrapper.cookieJar||{};document.cookie.split("; ").forEach(cookie=>{let key=cookie.split("\x3d")[0];val=cookie.split("\x3d").splice(1).join("\x3d");Bootstrapper.cookieJar[key]=val});Bootstrapper.updateCookiejar=function(){document.cookie.split("; ").forEach(cookie=>{let key=cookie.split("\x3d")[0];val=cookie.split("\x3d").splice(1).join("\x3d");
Bootstrapper.cookieJar[key]=val})};if(!!window.__dataLayer&&__dataLayer.site&&__dataLayer.site.cds&&typeof __dataLayer.site.cds==="number")__dataLayer.site.cds=__dataLayer.site.cds+"";else if(!!window.__dataLayer&&__dataLayer.site&&__dataLayer.site.cds&&typeof __dataLayer.site.cds==="boolean")__dataLayer.site.cds=__dataLayer.site.cds?"1":"0";Bootstrapper.privacyHelper=Bootstrapper.privacyHelper||{};var _dl=window.__dataLayer||{},privHelper=Bootstrapper.privacyHelper,site=_dl.site||{},dlCDS=site.cds||
false,do_logging=location.search.indexOf("ensLogging\x3d1")>-1,searchCDS=location.search.indexOf("cds\x3dtrue")>-1,elCDS=document.querySelector('[name\x3d"dprivacy.classification"]'),elCDSVal=elCDS?elCDS.content:null,realHost=window.location.hostname,ignoreHosts=["ngkidsubs.nationalgeographic.com","nglittlekidsubs.nationalgeographic.com"],hCDS=/kids/.test(location.hostname)&&ignoreHosts.indexOf(realHost)===-1,cdsVal=0,enableGPC=false,realUrl=window.location.href;if(dlCDS=="1"||dlCDS===true||dlCDS===
1||searchCDS||elCDSVal&&elCDSVal==="ff"||hCDS){cdsVal=1;if(!!window.__dataLayer&&__dataLayer.site)__dataLayer.site.cds=cdsVal+""}if(!!window.location&&location.hostname&&location.hostname.includes("espn")||site.site&&site.site.toLowerCase().includes("espn"))privHelper.isESPN="true";if(/cds_test=(true|false)/i.test(location.search)){cdsVal=/cds_test=true/i.test(location.search)?1:0;if(!!window.__dataLayer&&__dataLayer.site)__dataLayer.site.cds=cdsVal+""}document.cookie="s_ensCDS\x3d"+cdsVal+"; path\x3d/";
var countryCookie=Bootstrapper.cookieJar.country!==undefined&&typeof Bootstrapper.cookieJar.country==="string"&&Bootstrapper.cookieJar.country.length===2?Bootstrapper.cookieJar.country:"",regionCookie=Bootstrapper.cookieJar.region||"",onetrust_cookie=Bootstrapper.cookieJar.OptanonConsent||"",isGdprSite=Bootstrapper.portalChk=="emea-disney"||window.location.hostname.match(/(qa1|staging1|www|sdlc-(qa|staging|alpha|dev)-content-qa).fxnetworks.com|espn|theundefeated|andscape|partica.online|my.disney.com|secsports|natgeo|nationalgeographic|marvel|cdsglobal\.co\.uk|admin\.buysub\.com|ngmintlsubs\.subscription\.co\.uk/)!==
null,isEspnWebview=window.location.hostname.indexOf("espn")>-1&&window.location.href.match(/(\?|&|\/)(partial|modifier)(=|\/)/)!==null,isCinco=window.location.hostname.indexOf("games.espn")===0,isGPCNoAdsException=/(plus\.espn\.com)/i.test(location.hostname)||/marvel\.com.*?miretailervariant/i.test(location.href);privHelper.noAds=Number(site.nsl)===2||isGPCNoAdsException?"true":"false";privHelper.gdprCountries="ai|an|at|aw|be|bg|bl|bm|bq|ch|cw|cy|cz|de|dk|ee|es|fi|fk|fr|gb|gf|gl|gp|gr|gs|hr|hu|ie|io|is|it|ky|li|lt|lu|lv|mf|mq|ms|mt|nc|nl|no|pf|pl|pm|pn|pt|re|ro|se|sh|si|sj|sk|sx|tc|tf|uk|vg|wf|yt";
privHelper.isGdprCountry=(new RegExp(privHelper.gdprCountries,"i")).test(countryCookie);privHelper.noticeCountries="ad|ae|al|am|ao|ax|ba|bf|bh|bi|bj|bv|bw|cd|cf|cg|ci|cm|cs|cv|dj|dz|eg|eh|er|et|fo|fx|ga|gg|gh|gi|gm|gn|gq|gw|il|im|iq|je|jo|ke|km|kw|lb|lr|ls|ly|ma|mc|md|me|mg|mk|ml|mr|mu|mw|mz|na|ne|ng|nt|om|ps|qa|rs|rw|sa|sc|sl|sm|sn|so|ss|st|sz|td|tg|tn|tr|tz|ua|ug|va|xk|ye|yu|za|zm|zr|zw";privHelper.isNoticeCountry=(new RegExp(privHelper.noticeCountries,"i")).test(countryCookie);countryCookie=countryCookie.toLowerCase();
regionCookie=regionCookie.toLowerCase();var updateCookies=function(region){var dcf=1;var forced_consent_mode=null;forced_consent_mode=window.location.search.match(/consent_mode=([^&]+|w+$)/);try{if(parent.window.location.href.indexOf("consent_mode\x3d")>-1)forced_consent_mode=parent.window.location.search.match(/consent_mode=([^&]+|w+$)/)}catch(e){Bootstrapper.Logging?Bootstrapper.Logging.logMsg(e):console.log(e)}if(forced_consent_mode!==null&&forced_consent_mode.length>=2)forced_consent_mode=forced_consent_mode[1];
if(forced_consent_mode!==null)region=forced_consent_mode;if(region=="gdpr"){var prevDCFValue=typeof window.localStorage!=="undefined"&&window.localStorage!==null&&typeof localStorage.getItem==="function"?localStorage.getItem("_dcf"):null;if(prevDCFValue=="1")dcf=1;else dcf=0}document.cookie="_dcf\x3d"+dcf+"; path\x3d/";if(region==="ccpa")configureGPC();document.cookie="s_ensRegion\x3d"+region+"; path\x3d/";privHelper.consent_mode=region};var configureGPC=function(){if(location.search.indexOf("disableGPC\x3d1")>
-1)document.cookie="s_ensNSL\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/";else{var isGPC=0,otgOverride=0,gpcParts=decodeURIComponent(onetrust_cookie).split("\x26"),grps=false,gpcFromGroups;if(onetrust_cookie){gpcParts.forEach(function(pt){var cprt=pt.split("\x3d"),cpk=cprt[0],cpv=cprt[1];if(cpk==="groups"){grps=true;gpcFromGroups=!!(cpv.indexOf("C0002:1")>-1&&cpv.indexOf("C0004:1")>-1);isGPC=gpcFromGroups?0:1;otgOverride=gpcFromGroups?1:0;gpcFromGroups===false&&do_logging&&console.log("GPC LOGS: GPC Being Set Due to OT Cookie Not Having All Groups")}});
if(!grps){isGPC=1;do_logging&&console.log("GPC LOGS: GPC Being Turned On Due to no OT Groups")}}else do_logging&&console.log("GPC LOGS: OPT_IN due to no OT Cookie, must be first visit");if(!!window.navigator&&!!navigator.globalPrivacyControl&&!otgOverride){isGPC=1;do_logging&&console.log("GPC LOGS: GPC Being Set Due to Navigator")}document.cookie="s_ensNSL\x3d"+isGPC+"; path\x3d/";if(isGPC===1)document.cookie="_dcf\x3d0; path\x3d/";do_logging&&console.log(`GPC LOGS: GPC Set to value: ${isGPC}`)}};
if(isCinco||isEspnWebview){enableGPC=false;updateCookies("ccpa")}else if(countryCookie==="us")updateCookies("ccpa");else if(regionCookie&&"|ccpa|gdpr|notice|".indexOf(regionCookie)>-1)updateCookies(regionCookie);else if(isGdprSite)if(countryCookie)if(privHelper.isGdprCountry)updateCookies("gdpr");else{if(privHelper.isNoticeCountry)updateCookies("notice")}else{if(regionCookie==="emea")updateCookies("gdpr")}else updateCookies("unknown");if(Bootstrapper.updateCookiejar)Bootstrapper.updateCookiejar()},
4217706,[4234880],636661,[645040],24);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;var defineExtraParams=function(){var extraParams={},realHost=location.hostname,realPath=location.pathname,realURL=location.href;extraParams.cds=Bootstrapper.Cookies.get("s_ensCDS")=="1"?"y":"n";var countryCode=Bootstrapper.Cookies.get("country"),region=Bootstrapper.Cookies.get("region"),gpc=Bootstrapper.Cookies.get("s_ensNSL"),dfltVal="xx";extraParams.country=
countryCode||dfltVal;extraParams.region=region||dfltVal;extraParams.gpc=gpc||dfltVal;var excludeESPN=["download.espn.nl"];extraParams.shouldFire=excludeESPN.indexOf(realHost)>-1?"n":"y";var ngeoBase=/((wwwnatgeo(testing|staging)|checkout-(uat|testing))\.)cdsglobal\.co\.uk|nghistorysubs|nglittlekidsubs|ngkidsubs|films[\._]nationalgeographic[\._]com|stage-ngsingleissues/.test(realHost),ngeoDomSubs=(/ngmdomsubs/.test(realHost)||/admin\.buysub\.com/.test(realHost))&&realPath.indexOf("eCare_Login")>-1,
ngeoCDS=realHost.indexOf("ngmintlsubs")>-1&&/singleitem|renewal|activate|offers/ig.test(realPath)||realHost.indexOf("ngmintlsubs.subscription.co.uk")>-1,ngeoPlayerFrames=realURL.indexOf("nationalgeographic.com/players/web-player-bundle/next/embed/external.html")>-1&&window.self!==window.top;extraParams.nAsyncNgeo=ngeoBase||ngeoDomSubs||ngeoCDS||ngeoPlayerFrames?"y":"n";var dl=window.__dataLayer||{},site=dl.site||{},portal=site.portal||Bootstrapper.portalFallBack()||"none",siteRegion=site.region||
"",siteTlium=site.tealium||false,kpTlium=/20thcenturystudios[\._]asia|www[\._]disney[\._](sg|co.th|my|ph|id|com.au)|movies[\._]disney[\._](asia|sg)|disneylatino[\._]com|(movies|games|video)[\._]disney[\._](co[\._]th|ph|id|my|sg)|disney[\._]com[\._]br|www[\._]20thcenturystudiosla[\._]com|www[\._]20thcenturystudios[\._]com[\._]br|www[\._]star-(brasil|latam)[\._]com/.test(realHost);var eventStep="non-ecom";if(dl.ecommerce?.eventStep!==undefined)eventStep=dl.ecommerce.eventStep;extraParams.portal=portal;
extraParams.site=site.site||"";extraParams.siteRegion=siteRegion;extraParams.realHost=realHost;extraParams.kpTlium=siteTlium||kpTlium?"y":"n";extraParams.eventStep=eventStep;return extraParams};if(Bootstrapper)Bootstrapper.getExtraParams=function(){return defineExtraParams()}},4234880,[4250617],645040,[763742],24);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;window.tmsMigrations={"fitt":{"comscore":true,"nielsen":true,"vision":true,"chartbeat":true},"sCore":{"comscore":true,"nielsen":true,"vision":true,"chartbeat":true}}},3884638,[4234880,4053064,4250617],645555,[645040,683385,763742],24);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.SPAFramework=function(){var _private={},_public={},_registerRule=Bootstrapper.registerRule;_private.event_name="ensPV";_private.ruleIDOffset=0;_private.hasOverridenBindDepdendencies=false;_private.runOnceRules=[];_private.runOnceRuleIDs=[];_private.loadOnceConditions="4963484,4956281,4905163,4905162,4905161,4905159,4905158,4905157,4908197,4908198,4908202,4908201,4908200,4910697,4910633,4918966,4921832,4923256,4921695,4924093,4925141,4915229,4916895,4915231,4916897,4915230,4926739,4937247,4937246,4963026".split(",");
_public.onBeforePageChange=function(){};_public.onAfterPageChange=function(){if(Bootstrapper.manage_prevPageName)Bootstrapper.manage_prevPageName()};_private.init=function(){_private.overrideScriptFunctions();_private.overrideRegisterRule();_private.overrideEventAdds();_private.overrideDelegation();_private.delayServerComponent("")};_private.localGetExtraParams=function(){var extraParams=Bootstrapper.getExtraParams?Bootstrapper.getExtraParams():{};return extraParams};_private.throw_error=function(msg){Bootstrapper.reportException({fileName:document.currentScript?
document.currentScript.src:"",message:msg})};_private.scriptIsLoaded=function(currentScript,newScriptSrc){return currentScript.src===newScriptSrc&¤tScript.readyState&&/(loaded|complete)/.test(currentScript.readyState)?true:false};_private.scriptIsEnsightenFile=function(currentScript){return/(\/code\/.*\.js\?conditionId.*)|(\/serverComponent.php\?)/i.test(currentScript.src)?true:false};_private.scriptIsLoadOnceCondition=function(src){if(/\/code\/.*\.js\?conditionId\d=/.test(src)){var condition_ids=
src.split("?")[1].split("\x26").map(function(a){return a.split("\x3d")[1]}),non_load_once_condition_ids=[],response=false;for(var i=0;i0)_private.throw_error("SPA Framework: Ensighten code file has more Condition ID(s) that are not part of the Condition IDs to load once ("+non_load_once_condition_ids.join(",")+
")");return response}return false};_private.removeScripts=function(newScriptSrc){var reloadAllScriptsOnPageChange=_public.reloadAllScriptsOnPageChange||false,scriptTags=document.getElementsByTagName("script");for(var i=0;i
0&&document.currentScript&&_private.scriptIsLoadOnceCondition(document.currentScript.src)){_private.runOnceRules.push(args[0]);_private.runOnceRuleIDs.push(args[0].id)}args[0].id+=args[0].id===-1?0:_private.ruleIDOffset;_registerRule.apply(this,args)}};_private.overrideBindDepdendencies=function(){if(!_private.hasOverridenBindDepdendencies){var bindDepdenencyImmediate=Bootstrapper.bindDependencyImmediate,bindDependencyDOMParsed=Bootstrapper.bindDependencyDOMParsed,bindDependencyDOMLoaded=Bootstrapper.bindDependencyDOMLoaded,
bindDependencyOnGetServerComponent=Bootstrapper.bindDependencyOnGetServerComponent,bindDependencyPageSpecificCompletion=Bootstrapper.bindDependencyPageSpecificCompletion,isNotDataDefOrRunOnceRule=function(id){if(id===-1)return false;else if(~_private.runOnceRuleIDs.indexOf(id))return false;else if(_private.loadOnceConditions.length>0&&!!Bootstrapper.getRule(id))return false;return true},applyNewDependencyFunction=function(fn,args){var a=args;if(a[2]&&a[2].length>0)for(var i=0;i=0;i--){var currentEventFn=eventFunctions[i],index=currentEvent.indexOf(currentEventFn);if(index!==-1)eventFunctions.splice(index,1)}}Bootstrapper.ensEvent.list.async=[]}};_private.resetRules=function(){var ruleList=Bootstrapper.getRuleList();for(var i=0;i<_private.runOnceRules.length;i++)for(var j=0;j=0;i--){var currentDelegation=Bootstrapper.delegates[i],_this=Bootstrapper.Delegate(currentDelegation.target);
Bootstrapper.Delegate(currentDelegation.target).off.apply(_this,currentDelegation.args)}Bootstrapper.delegates=[]}};_public.triggerPageChange=function(){_public.onBeforePageChange();_private.resetRules();_private.eventsReset();_private.delegationReset();_private.removeOldServerComponent();Bootstrapper.executionState.conditionalRules=false;Bootstrapper.executionState.dataDefinitionComplete=false;_private.ruleIDOffset+=1E9;_private.overrideBindDepdendencies();Bootstrapper.getServerComponent(_private.localGetExtraParams());
_public.onAfterPageChange()};_public.waitForData=true;_public.init=_private.init;return _public}();Bootstrapper.SPAFramework.init()},4053064,683385,1102);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;let id=false;if(window.location.hostname.match(/espn(qa|sb)?\./)&&document.cookie.indexOf("country\x3dus")>-1)id="a9a1cb5df4050499c2afc338399f0708d6c68d7e2a17750d6eca9313f63844cd";else if(document.cookie.indexOf("country\x3dus")>-1&&(window.location.hostname.match(/goodmorningamerica.com/)||!!window.__dataLayer&&__dataLayer.site&&__dataLayer.site.site==="gma"))id=
"0b90f464007ee375f4e9cd06c3914e59274887f92e97c606a62fdf9e3a4728b5";else if(window.location.hostname.indexOf("andscape")>-1||!!window.__dataLayer&&__dataLayer.site&&__dataLayer.site.site==="andscape")id="5bcdda3455c2c1a05f36f9ee9c150938bbddd6445a8319ba1112b4610fd17dba?ver\x3d1.1.3";if(id!==false)Bootstrapper.insertScript("https://scripts.webcontentassessor.com/scripts/"+id)},3964126,[4234880,4053064,4250617],691188,[645040,683385,763742],24);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper=window.Bootstrapper||{};Bootstrapper.TrackQueue=function(){function TrackQueue(){this.queue=[]}TrackQueue.prototype.push=function(fn,context,data){if(typeof fn==="function")this.queue.push(function(){fn.call(context,data)})};TrackQueue.prototype.runAll=function(){while(this.queue.length>0){var queuedFn=this.queue.shift();if(typeof queuedFn==="function")queuedFn()}};
return TrackQueue}()},3874542,[4234880,4053064,4250617],736710,[645040,683385,763742],24);Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.privacy=Bootstrapper.privacy||{};Bootstrapper.privacy.templates={}},3887061,[4234880],743678,[645040],24);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.Cookies=function(){var _public={};var _private={};_private.get_root_domain=function(){var domain_split_reverse=window.location.hostname.split(".").reverse();var cookie_name="__cheq_tld_"+(new Date).getTime();var is_secure=window.location.protocol==="https:";var test_cookie=domain=>{document.cookie=cookie_name+"\x3d1;path\x3d/;domain\x3d"+domain+";SameSite\x3dLax"+
(is_secure?";Secure":"");var exists=document.cookie.split(/;\s*/).some(c=>c.startsWith(cookie_name+"\x3d"));document.cookie=cookie_name+"\x3d;expires\x3d"+(new Date(0)).toUTCString()+";Max-Age\x3d0;path\x3d/;domain\x3d"+domain+";SameSite\x3dLax"+(is_secure?"; Secure":"");return exists};for(var i=1;i<=domain_split_reverse.length;i++){var current_cookie_domain=domain_split_reverse.slice(0,i).reverse().join(".");if(test_cookie(current_cookie_domain))return current_cookie_domain}};_public.domain=""||
_private.get_root_domain();_public.path=""||"/";_public.get=function(name){for(var b=document.cookie.split(";"),d=0;d{document.cookie=cookie_name+"\x3d1;path\x3d/;domain\x3d"+domain+";SameSite\x3dLax"+(is_secure?";Secure":"");var exists=document.cookie.split(/;\s*/).some(c=>c.startsWith(cookie_name+"\x3d"));document.cookie=cookie_name+"\x3d;expires\x3d"+(new Date(0)).toUTCString()+
";Max-Age\x3d0;path\x3d/;domain\x3d"+domain+";SameSite\x3dLax"+(is_secure?"; Secure":"");return exists};for(var i=1;i<=domain_split_reverse.length;i++){var current_cookie_domain=domain_split_reverse.slice(0,i).reverse().join(".");if(test_cookie(current_cookie_domain))return current_cookie_domain}};_public.domain=""||_private.get_root_domain();_public.path=""||"/";_public.get=function(name){for(var b=document.cookie.split(";"),d=0;d-1;Bootstrapper.Logging=Bootstrapper.Logging||{};Bootstrapper.Logging.enabled=
globalLogging;Bootstrapper.Logging.logMsg=function(){if(!this.enabled||!window.console||typeof window.console.log!=="function")return;var parts=Array.prototype.slice.call(arguments);console.log.apply(null,parts)};Bootstrapper.Storage={};Bootstrapper.Storage.local={};Bootstrapper.Storage.session={};Bootstrapper.cleanCurrencyChars=function(input){return input.replace(/,|\$/g,"")};Bootstrapper.Adobe=Bootstrapper.Adobe||{};Bootstrapper.Adobe.assembleProducts=function(type,optData){if(!!window.dataLayer&&
!!window.__dataLayer.ecommerce||optData&&(optData.products||optData.order&&optData.order.products||optData.cart&&optData.cart.products)){var _dl=__dataLayer||{},_ec=_dl.ecommerce||optData;var prodArr=[];if(type==="order")prodArr=_ec.order.products;else if(type==="cart")prodArr=_ec.cart.products;else if(type==="event")if(optData&&optData.products)prodArr=optData.products;else if(optData&&optData.order&&optData.order.products)prodArr=optData.order.products;else{if(_dl.ecommerce.products)prodArr=_ec.products}else if(_dl.ecommerce.products)prodArr=
_ec.products;if(prodArr.length<1){Bootstrapper.Logging.logMsg("Could not locate a products array with items to build the products string from.");return""}else Bootstrapper.Logging.logMsg("Ecom type detected: "+type);var output="";for(var pIndex=0;pIndex1&&curProd.price){var tempPrice=Number(curProd.price.replace(/,|\$/g,""))*Number(curProd.quantity);output+=curProd.price?tempPrice+";":";"}else output+=curProd.price?curProd.price.replace(/,|\$/g,"")+";":";";output+=curProd.events?curProd.events+";":";";if(curProd.eVars&&typeof curProd.eVars==="object"){for(var key in curProd.eVars)output+=
key+"\x3d"+curProd.eVars[key]+"|";output=output.replace(/\|$/,"")}output=output.replace(/;{1,}$/,"");if(output.length>0&&!output.endsWith(",")&&pIndex{if(!logLevel||typeof logLevel!=="number")logLevel=1;const gw=window.gateway;if(!gw)console.log("Bootstrapper: Unable to Generate Privacy Output Due to: No Gateway on Page");const history=gw.history;if(!history)console.log("Bootstrapper: Unable to Generate Privacy Output Due to: No History From Gateway on Page");const shortEntries=new Map,fullEntries=new Map;const getAllEntries=function(hist){const completeList=hist.complete;if(!completeList||typeof completeList!==
"object")console.log("Bootstrapper: Unable to Generate Privacy Output Due to: Not Complete List in History");for(const id in completeList){const cur=completeList[id];if(cur.request){let req=cur.request||{},dest=req.destination||"";if(!dest)continue;const dom=new URL(dest),hn=dom.hostname||"";if(!hn)continue;let at=shortEntries.get(hn),ft=fullEntries.get(hn),status=req.status||"";if(at)if(at==="blocked")continue;else shortEntries.set(hn,status);else shortEntries.set(hn,status);if(ft)if(ft==="blocked")continue;
else{let curEntry=fullEntries.get(hn),ceEntries=curEntry.entries;ceEntries.push(dest);fullEntries.set(hn,{status,"entries":ceEntries})}else fullEntries.set(hn,{status,"entries":[dest]})}}};const prettyLogEntries=entries=>{for(const [k,v]of entries){let dom=k,{status,entries}=v;console.group(`Privacy Entry: ${dom}`);console.log(`Load Status: ${status}`);console.group("Entries Seen:");entries.forEach(entry=>{console.log(entry)});console.groupEnd();console.groupEnd()}};getAllEntries(history);switch(logLevel){case 1:console.log(shortEntries);
Bootstrapper.privacyEntriesOutput=shortEntries;break;case 2:console.log(fullEntries);Bootstrapper.privacyEntriesOutput=fullEntries;break;case 3:prettyLogEntries(fullEntries);Bootstrapper.privacyEntriesOutput=fullEntries;break;default:break}};window.unRewriteURL=window.unRewriteURL||function(uri){if("string"==typeof uri&&uri.indexOf("/_/")>-1){var parts=uri.split("/_/");if(parts.length>1){var uri=parts[0]+"?",params=parts[1],values=params.split("/"),amp="";if(values.length%2==1){var queryString=values.pop();
queryString=queryString.slice(queryString.indexOf("?")+1);var queryValues=[];queryString.replace(/([^=&]+)=([^&]*)/g,function(m,key,value){queryValues.push(key),queryValues.push(value)}),values=values.concat(queryValues)}if(values.length>0)for(i=0;i{const textAsBuffer=(new TextEncoder).encode(input);const hashBuffer=await window.crypto.subtle.digest("SHA-256",textAsBuffer);const hashArray=Array.from(new Uint8Array(hashBuffer));const hash=hashArray.map(item=>item.toString(16).padStart(2,"0")).join("");return hash};
Bootstrapper.getConsentVars=function(){var _consentVars={"swid":!!window.__dataLayer&&__dataLayer.visitor?__dataLayer.visitor.swid:"","anonymized":"","privacystate":"No Gateway/Privacy Data Found"};if(document.cookie.match(/OptanonAlertBoxClosed/i)===null&&(Bootstrapper.privacyHelper&&Bootstrapper.privacyHelper.consent_mode==="gdpr"))_consentVars.swid=_consentVars.anonymized="nochoice";else if(Bootstrapper.piNull)_consentVars.anonymized="true";else _consentVars.anonymized="false";if(Bootstrapper&&
Bootstrapper.gateway&&Bootstrapper.gateway.environment)_consentVars.privacystate=Bootstrapper.gateway.environment.name+":"+(Bootstrapper.Cookies.get("_dcf")==="0"?"OptOut":"OptIn");else if(Bootstrapper&&Bootstrapper.gateway&&Bootstrapper.gateway.environment===undefined)_consentVars.privacystate="GPC:OptIn";return _consentVars};function createUniqueId(){return Date.now()+"-"+Math.floor(Math.random()*1E13)}function hash(id,privateKey){const key=id.concat(privateKey);const length=key.length;let h1=[7,
11];let h2=[71,173];const c1=[2277735313,289559509];const c2=[1291169091,658871167];for(let i=0;i>>0).toString(16)).slice(-8)+("00000000"+(h1[1]>>>0).toString(16)).slice(-8)+("00000000"+(h2[0]>>>0).toString(16)).slice(-8)+("00000000"+(h2[1]>>>0).toString(16)).slice(-8)}
Bootstrapper.sendToS3=function(payload){const urls={dev:"https://dcf.fn-pzdev.com/v1/client",qa:"https://dcf.fn-pzqa.com/v1/client",prod:"https://dcf.fn-pz.com/v1/client"};const sessionId=createUniqueId();const auth=hash(sessionId,"vision");const eventName=payload.events!==undefined&&payload.events[0]&&payload.events[0].globaldata&&payload.events[0].globaldata.eventname!==undefined?payload.events[0].globaldata.eventname:"";return fetch(urls.qa,{method:"POST",credentials:"include",headers:{Accept:"application/json",
Authorization:auth,"Content-Type":"application/json","Session":sessionId,"App":!!window.__dataLayer&&__dataLayer.site?.portal?__dataLayer.site.portal:null,"Event-Count":payload.events.length,"Ens-print":createUniqueId(),"Event":eventName},body:JSON.stringify(payload)})};Bootstrapper.portalFallBack=function(){Bootstrapper.portalFB={"marvel":"marvel","frozenthemusical[._]co[._]uk|lionkingeducation[._]co[._]uk|disney-tickets.staging.fichub.com|disneytickets.qa.nliven.co|staging-disney.cinemapp.com|dmsp.flywheelstaging.com|frozeneducation.co.uk|fr.wiztopic-dev.com|dev.thewaltdisneycompany.eu":"emea-disney",
"20thcenturyfox.asia|20thcenturystudios.asia|20thcenturystudios.co.uk|20thcenturystudios.com|20thcenturystudios.com.au|20thcenturystudios.com.br|20thcenturystudios.jp|20thcenturystudios.jp.|20thcenturystudios.tw|20thcenturystudiosla.com|activities.disney.sg|aja.disney.com|aniversariomagico.disney.com.br|ar.disneyme.com|au.starwars.com|beautyandthebeastmusical.co.uk|bookears.disney.com.au|br.starwars.com|buddies.disney.com|cars.disney.com|characters.disney.com|characters.disney.in|cidadania.disney.com.br|citizenship.disney.com|competitions.disney.co.th|competitions.disney.co.uk|competitions.disney.id|competitions.disney.my|competitions.disney.ph|competitions.disney.sg|compromiso.disneylatino.com|contactus.disney.com.au|coop.disney.com|corporate.disney.fr|cumplemagico.disneylatino.com|dd.deluxe.disney.co.jp|ddn.disney.asia|deluxe.disney.co.jp|disney.bg|disney.co.il|disney.co.jp|disney.co.th|disney.co.uk|disney.co.za|disney.com.au|disney.com.br|disney.com.hk|disney.com.tw|^www.disney.com$|disney.cz|disney.de|disney.dk|disney.es|disney.fi|disney.fr|movies.disney.com|partners.disney.com|^disney.go.com$|disney.gr|disney.hu|disney.id|disney.in|disney.it|disney.my|disney.nl|disney.no|disney.ph|disney.pl|disney.pt|disney.ro|disney.ru|disney.se|disney.sg|disneychallenge.disney.com.br|disneychallenge.disneylatino.com|disneychannel.disney.in|disneyinternationalhd.com|disneyjunior.disney.com.au|disneyjunior.disney.in|disneylatino.com|disneymagicmoments.co.il|disneymagicmoments.co.uk|disneymagicmoments.co.za|disneymagicmoments.de|disneymagicmoments.es|disneymagicmoments.fr|disneymagicmoments.gen.tr|disneymagicmoments.gr|disneymagicmoments.it|disneymagicmoments.pl|disneymusic.disney.com|disneynow.go.com|disneyonstage.co.uk|disneypartners.disney.co.uk|disneypartners.disney.es|disneypartners.disney.nl|disneyplus.disney.co.jp|disneyplusoriginals.disney.com|disneytickets.co.uk|disneyturkiye.com.tr|disney.com.tr|disneyxd.disney.in|djjunior.disney.com.br|dlife.disney.co.jp|djjunior.disneylatino.com|dmedmedia.disney.com|dvcmember.disney.co.jp|dtcimedia.disney.com|eats.disney.com|en.disneymagicmomentsme.com|en.disneyme.com|en-hk.starwars.com|en-id.starwars.com|en-sg.starwars.com|en-th.starwars.com|en-vn.starwars.com|family.20thcenturystudios.com.au|fairies.disney.com|family.20thcenturystudios.com|films.disney.fr|food.disney.ru|fr.disney.be|frozen.disney.com|games.disney.co.th|games.disney.id|games.disney.in|games.disney.my|games.disney.ph|games.disney.sg|^go.com$|groupdisneytickets.disney.co.uk|id-id.starwars.com|help.disney.com|inspire.disney.com.au|jp.starwars.com|latino.starwars.com|launchpad.disney.com|liveshows.disney.com|marvel.disney.co.jp|mediaplus.disney.co.th|mediaplus.disney.id|mediaplus.disney.in|mediaplus.disney.my|mediaplus.disney.ph|mediaplus.disney.sg|max.makerstudios.com|mediakit.go.com|mickey.disney.com|movies.disney.asia|movies.disney.co.th|movies.disney.id|movies.disney.in|movies.disney.my|movies.disney.ph|movies.disney.sg|music.disney.com.au|muppets.disney.com|music.disney.com|mytoy.disney.ru|nature.disney.com|news.disney.com|newsroom.disney.fr|nl.disney.be|nl.disneypartners.disney.be|o11zenoar.disney.com.br|o11cenelaire.disneylatino.com|parks.disney.com|partenaires.disney.ca|peliculas.disney.es|pixar.disney.com.au|pirates.disney.com|playtest.disney.com|press.disney.co.uk|princess.disney.com|promo.disney.it|radio.disney.com|radiodisney.disney.com.br|radiodisney.disneylatino.com|roku.disneychannel.asia|se.starwars.com|sea.starwars.com|search.disney.co.th|search.disney.com.au|search.disney.id|search.disney.in|search.disney.my|search.disney.ph|search.disney.sg|secured.disney.co.jp|search.disney.com|shopdisney.fr|shows.disney.com|signup.disney.com.au|sites.disney.com|solutions.espn.com|sp-magazine.disney.co.jp|star-brasil.com|star-latam.com|starwars.disney.co.jp|starwarskids.com|theater.disney.co.jp|th-th.starwars.com|tl-ph.starwars.com|tickets.disney.co.uk|toystory.disney.com|tv.ar.disneyme.com|tv.disney.bg|tv.disney.co.th|tv.disney.co.il|tv.disney.co.uk|tv.disney.co.za|tv.disney.cz|tv.disney.de|tv.disney.dk|tv.disney.es|tv.disney.fr|tv.disney.id|tv.disney.in|tv.disney.hu|tv.disney.my|tv.disney.it|tv.disney.nl|tv.disney.no|tv.disney.ph|tv.disney.pl|tv.disney.pt|tv.disney.ro|tv.disney.se|tv.disney.sg|tv.disneyturkiye.com.tr|tv.en.disneyme.com|tv.fr.disney.be|tv.nl.disney.be|video.disney.co.th|video.disney.com|video.disney.id|video.disney.my|video.disney.ph|video.disney.sg|videos.disney.in|vi-vn.starwars.com|vod.dlife.disney.co.jp|waltdisneystudios.disney.co.jp|winniethepooh.disney.com|prensa.disney.es|www.avatar.com|www.disneytickets.de|www.thelionking.co.uk|en.thelionking.ch|www.thelionking.ch":"matterhorn",
"((national-?geographic(|brasil|la|lodges|partners)|nat-?geo((|maps|media|tv|fe(sb|qa)?))|ngeo|natgeomaps).(org|co|bg|it|cz|de|ee|es|fr|ge|grid.|jp|kz|lt|dk|fi|no|ru|se|ro|dk|no|fi|nl|pl|rs|sapo.|si))|(ng.hu|ng(thai|mservice|alarabiya|cjapan|ckorea|enespanol|mfarsi).com)|ngpdesk--uat.sandbox":"natgeo","(^|.)(?:(?:(fivethirtyeight|theundefeated|andscape)-(dev(elop)?|redesign).go-vip.net)|(?:(?:fivethirtyeight|andscape|theundefeated|6abc|abc11|abc13|abc30|abc7|abc7chicago|abc7news|abc7ny|ouramericaabc|abcotvs(?:sb|qa)?).com))$|abcnews(?:.go)?.com|goodmorningamerica.com|qa.538.io":"news",
"espn|secsports":"sports","(^|.)(ngtv|abc|fftv|freeform|fxtv|fxnetworks|watchdisney)(fe(sb|qa)?)?.com$":"tve"};for(var key in Bootstrapper.portalFB)if((new RegExp(key,"i")).test(location.hostname))if(Bootstrapper.portalFB[key]==="natgeo"&&location.pathname.indexOf("/tv")===0)return"tve";else return Bootstrapper.portalFB[key];return"none"};function postDLSetup(){if(!!window.__dataLayer&&__dataLayer.helpersEnabled||Bootstrapper.ensightenOptions.publishPath.includes("sst")===true){window.__dataLayer.subscribe=
function(eventName,callback){document.addEventListener("__dataLayer."+eventName,function(e){if(e&&e.detail)callback.apply(__dataLayer,e.detail)})};window.__dataLayer.publish=function(eventName){var args=Array.prototype.splice.apply(arguments,[1,arguments.length]),event=new CustomEvent("__dataLayer."+eventName,{detail:args||[]});document.dispatchEvent(event)};window.__dataLayer.trackPage=function(){window.__dataLayer.pageViewed=true;window.__dataLayer.publish("pageView")};window.__dataLayer.OneTrustDialog=
function(t){var n=window.OneTrust;n&&n.loaded&&(t.preventDefault(),n.ToggleInfoDisplay())}}if(__dataLayer.pageViewed&&typeof window.__dataLayer.site.portal!=="string")__dataLayer.site.portal=Bootstrapper.portalFallBack();else waitForSubscribe=setInterval(function(){if(__dataLayer.subscribe){clearInterval(waitForSubscribe);__dataLayer.subscribe("pageView",function(){if(typeof window.__dataLayer.site.portal!=="string")__dataLayer.site.portal=Bootstrapper.portalFallBack()})}},250)}if(!!window.__dataLayer&&
!!window.__dataLayer.site)postDLSetup();else waitForDL=setInterval(function(){if(!!window.__dataLayer&&!!window.__dataLayer.site){clearInterval(waitForDL);postDLSetup()}},250);Bootstrapper.manualValidation=function(){console.clear();document.getElementById("matterhorn-fitt")?_hdr("MATTERHORN/FITT\t\t\tyes"):_hdr("MATTERHORN/FITT\t\t\tno");_hdr("BOOTSTRAP");if(typeof Bootstrapper==="undefined")_err("\tbootstrap.js not found");else{_body("\tpub path:\t\t\t"+"https://"+Bootstrapper.ensightenOptions.nexus+
"/TWDC-DTCI/"+Bootstrapper.ensightenOptions.publishPath+"/Bootstrap.js");_hdr("COOKIES");if(Bootstrapper.Cookies.get("country")||Bootstrapper.Cookies.get("region")){Bootstrapper.Cookies.get("country")?_body("\tcountry:\t\t\t"+Bootstrapper.Cookies.get("country")):_body("\tcountry:\t\t\t"+"not found");Bootstrapper.Cookies.get("region")?_body("\tregion:\t\t\t\t"+Bootstrapper.Cookies.get("region")):_body("\tregion:\t\t\t\t"+"not found")}else{_err("\tcountry:\t\t\t"+"not found");_err("\tregion:\t\t\t\t"+
"not found")}Bootstrapper.Cookies.get("SWID")?_body("\tSWID:\t\t\t\t"+Bootstrapper.Cookies.get("SWID")):_warn("\tSWID:\t\t\t\t"+"not found");Bootstrapper.Cookies.get("usprivacy")?_body("\tusprivacy:\t\t\t\t"+Bootstrapper.Cookies.get("usprivacy")):_warn("\tusprivacy:\t\t\t\t"+"not found")}_hdr("DATALAYER");if(typeof __dataLayer==="undefined")_err("\tdataLayer not found");else{_shdr("root");__dataLayer.pageViewed?_body("\tpageViewed:\t\t\t"+__dataLayer.pageViewed):_warn("\tpageViewed:\t\t\t"+"not found");
__dataLayer.envName?_body("\tenvName:\t\t\t"+__dataLayer.envName):_warn("\tenvName:\t\t\t"+__dataLayer.envName);if(__dataLayer.site){_shdr("site");__dataLayer.site.site?_body("\tsite:\t\t\t\t"+__dataLayer.site.site):_err("\tsite:\t\t\t\t"+"not found");__dataLayer.site.portal?_body("\tportal:\t\t\t\t"+__dataLayer.site.portal):_err("\tportal:\t\t\t\t"+"not found");__dataLayer.site.otguid?_body("\totguid:\t\t\t\t"+__dataLayer.site.otguid):_warn("\totguid:\t\t\t\t"+"not found")}else _err("site");if(__dataLayer.page){_shdr("page");
__dataLayer.page.page?_body("\tpage:\t\t\t\t"+__dataLayer.page.page):_err("\tpage:\t\t\t\t"+"not found");__dataLayer.page.page_name?_body("\tpage_name:\t\t\t"+__dataLayer.page.page_name):_err("\tpage_name:\t\t\t\t"+"not found");__dataLayer.page.page_url?_body("\tpage_url:\t\t\t"+__dataLayer.page.page_url):_err("\tpage_url:\t\t\t\t"+"not found");__dataLayer.page.page_title?_body("\tpage_title:\t\t\t"+__dataLayer.page.page_title):_err("\tpage_title:\t\t\t"+"not found");__dataLayer.page.platform?_body("\tplatform:\t\t\t"+
__dataLayer.page.platform):_err("\tplatform:\t\t\t"+"not found")}else _shdr("page");if(typeof __dataLayer.visitor==="undefined")_err("visitor");else{_shdr("visitor");__dataLayer.visitor.swid?_body("\tswid:\t\t\t\t"+__dataLayer.visitor.swid):__dataLayer.visitor.swid==""?_warn("\tswid:\t\t\t\t"+"empty string (ok if no SWID cookie exists)"):_warn("\tswid:\t\t\t\t"+"not found (ok if no SWID cookie exists)")}if(typeof __dataLayer.pzn==="undefined")_err("pzn");else{_shdr("pzn");__dataLayer.pzn.login_status?
_body("\tlogin_status:\t\t\t"+__dataLayer.pzn.login_status):_warn("\tlogin_status:\t\t"+"not found")}}function _body(str){console.log(str)}function _hdr(str){console.log("%c\n"+str,"font-weight: bold")}function _shdr(str){console.log("%c"+str,"font-weight: bold; font-style: italic")}function _warn(str){console.log("%c"+str,"color: goldenrod;")}function _err(str){console.log("%c"+str,"font-weight: bold; color: red;")}function _ohdr(o,str){if(typeof o==="undefined")_err(str);else _shdr(str)}function _path(str){var retVal=
"boostrap.js not found";switch(str){case "/TWDC-DTCI/stage/serverComponent.php":retVal="/TWDC-DTCI/stage/bootstrap.js";break;case "/TWDC-DTCI/dev/serverComponent.php":retVal="/TWDC-DTCI/dev/bootstrap.js";break;case "/TWDC-DTCI/prod/serverComponent.php":retVal="/TWDC-DTCI/prod/bootstrap.js";break}return retVal}};if(location.search.indexOf("dcfValidation\x3dtrue")>-1){console.log("Awaiting pageload completion before running validation automatically");Bootstrapper.bindDOMLoaded(function(){Bootstrapper.manualValidation()})}Bootstrapper.newRepeat=
function(){let e=new Date,cval,sval,ct=e.getTime();e.setTime(ct+30*24*60*60*1E3);cval=Bootstrapper.Cookies.get("s_ensNR");if(cval===undefined||cval.length==0){Bootstrapper.Cookies.set("s_ensNR",ct+"-New",e);return"New"}sval=cval.split("-");if(ct-sval[0]<30*60*1E3&&sval[1]=="New"){Bootstrapper.Cookies.set("s_ensNR",ct+"-New",e);return"New"}else{Bootstrapper.Cookies.set("s_ensNR",ct+"-Repeat",e);return"Repeat"}};Bootstrapper.newRepeat();Bootstrapper.manage_prevPageName=function(){if(!!window.__dataLayer){let ppn=
Bootstrapper.Storage.session.getItem("dcf_prevPageName");if(ppn!==null&&__dataLayer.page&&ppn!==__dataLayer.page.page_name)__dataLayer.page.prevPageName=ppn;if(__dataLayer.page&&__dataLayer.page.page_name&&__dataLayer.page.page_name!==null)Bootstrapper.Storage.session.setItem("dcf_prevPageName",__dataLayer.page.page_name)}else{Bootstrapper.Logging.logMsg("Did not attempt to set prevPageName as dataLayer could not be detected. Clearing current prevPageName.");Bootstrapper.Storage.session.removeItem("dcf_prevPageName")}};
Bootstrapper.TrackQueue=function(){function TrackQueue(){this.queue=[]}TrackQueue.prototype.push=function(fn,context,data){if(typeof fn==="function")this.queue.push(function(){fn.call(context,data)})};TrackQueue.prototype.runAll=function(){while(this.queue.length>0){var queuedFn=this.queue.shift();if(typeof queuedFn==="function")queuedFn()}};return TrackQueue}();Bootstrapper._get=function(object,path,value){const pathArray=Array.isArray(path)?path:path.split(".").filter(key=>key);const pathArrayFlat=
pathArray.flatMap(part=>typeof part==="string"?part.split("."):part);return pathArrayFlat.reduce((obj,key)=>obj&&obj[key],object)||value};window["gtag_enable_tcf_support"]=true;Bootstrapper.manage_prevPageName();Bootstrapper.cookieJar=Bootstrapper.cookieJar||{};document.cookie.split("; ").forEach(cookie=>{let key=cookie.split("\x3d")[0];val=cookie.split("\x3d").splice(1).join("\x3d");Bootstrapper.cookieJar[key]=val});Bootstrapper.updateCookiejar=function(){document.cookie.split("; ").forEach(cookie=>
{let key=cookie.split("\x3d")[0];val=cookie.split("\x3d").splice(1).join("\x3d");Bootstrapper.cookieJar[key]=val})};Bootstrapper.getConsentState=function(){let toRet={};Bootstrapper.cookieJar=Bootstrapper.cookieJar||{};if(Bootstrapper.cookieJar.OptanonConsent){toRet.onetrust={};toRet.onetrust.cookie=decodeURIComponent(Bootstrapper.cookieJar.OptanonConsent);if(toRet.onetrust.cookie.includes("groups\x3d")){toRet.onetrust.groupsFlags={};let groupsArr=toRet.onetrust.cookie.match(/groups=.*?(&|$)/g)[0].replace(/groups=|&/g,
"").split(",");groupsArr.forEach(keyval=>{toRet.onetrust.groupsFlags[keyval.split(":")[0]]=parseFloat(keyval.split(":")[1])})}}if(Bootstrapper.gateway&&Bootstrapper.gateway.getConsentStatus&&Bootstrapper.gateway.environment){toRet.cheqEnforce={};toRet.cheqEnforce.categoryConsent=Bootstrapper.gateway.getConsentStatus();toRet.cheqEnforce.environmentData=JSON.parse(JSON.stringify(Bootstrapper.gateway.environment));toRet.cheqEnforce.optinObj=Bootstrapper.gateway.getList();let currentAllowRegex="";Object.keys(toRet.cheqEnforce.optinObj).forEach(listKey=>
{if(listKey==="CUSTOM_BLOCK")return;if(Bootstrapper.gateway.getCookieTypes().includes(listKey)&&Bootstrapper.gateway.getUserPreferences()[listKey]==="0")return;let listArr=toRet.cheqEnforce.optinObj[listKey];listArr.forEach(listEntry=>{currentAllowRegex+=listEntry.tag+"|"})});currentAllowRegex=currentAllowRegex.replace(/\|$/,"");toRet.cheqEnforce.currentAllowRegex=currentAllowRegex}return toRet};Bootstrapper.getThreatData=function(){const threats=Bootstrapper.context&&Bootstrapper.context.threats?
Bootstrapper.context.threats:[{id:0}];threatIDMap=threats.map(item=>{return item.id}).join(",");const threat_ids=threatIDMap;if(!threat_ids||threat_ids==="0")return"valid";else{const lookup_table={2:"Scrapers",3:"Automation Tools",6:"Excessive Rate Limit",7:"Disabled JavaScript",10:"Malicious Bots",11:"False Representation",13:"Data Centers",14:"VPN",15:"Proxy",16:"Disabled Cookies",17:"Click Hijacking",19:"Good Bot (known bot)",21:"Geo Exclusions",28:"Multi Suspicious Signals",29:"Automation Signal",
32:"Like Headless",33:"Location Spoofing",36:"User agent Spoofing"};return threat_ids.split(",").map(id=>{return lookup_table[id].toLowerCase()}).join(",")}};Bootstrapper.showPrivacyBlocked=function(){if(!!window.Bootstrapper&&!Bootstrapper.gateway)console.log("*****Bootstrapper is present but Bootstrapper.gateway was not found. Likely Privacy was not deployed to this page or broke during setup*****");else if(Bootstrapper.gateway&&window.gateway.isInitialized===false)console.log("*****Privacy Gateway is present but NOT initialized, this is typically because Require Environment is toggled on and an environment was not matched. Meaning this is an intentional state.*****");
else{console.log("*****Gateway History for Blocked statuses*****");var gatewayHistory=Bootstrapper.gateway.getHistory().complete;for(var entry in gatewayHistory)if(gatewayHistory[entry].request.status==="blocked")console.log(gatewayHistory[entry].request.destination+" | blocked"+" | reason:"+gatewayHistory[entry].request.reasons)}};if(Bootstrapper.ensightenOptions&&Bootstrapper.ensightenOptions.publishPath==="dev")Bootstrapper.bindDOMParsed(function(){Bootstrapper.showPrivacyBlocked()});Bootstrapper.reportException=
function(error){Bootstrapper.imageRequest("https://"+Bootstrapper.ensightenOptions.nexus+"/error/e.gif?msg\x3d"+encodeURIComponent(error.message||"")+"\x26lnn\x3d"+encodeURIComponent(error.lineNumber||error.line||-1)+"\x26fn\x3d"+encodeURIComponent(error.fileName||"")+"\x26cid\x3d"+Bootstrapper.ensightenOptions.clientId+"\x26client\x3d"+Bootstrapper.ensightenOptions.client+"\x26publishPath\x3d"+Bootstrapper.ensightenOptions.publishPath+"\x26rid\x3d"+encodeURIComponent(error.rid||Bootstrapper.currentRuleId||
-1)+"\x26did\x3d"+encodeURIComponent(error.did||Bootstrapper.currentDeploymentId||-1)+"\x26errorName\x3d"+encodeURIComponent(error.name||"")+"\x26stack\x3d"+encodeURIComponent(error.stack||"").substring(0,500))};Bootstrapper.buildAndSendS3=function(){try{window.__dataLayer=window.__dataLayer||{};Bootstrapper.updateCookiejar();let _consentVars=Bootstrapper.getConsentVars(),eventName=arguments!==undefined&&arguments.length>0?arguments[0]:"unknown",globalData={useragent:!!window.navigator?navigator.userAgent:
null,cookiejson:JSON.stringify(Bootstrapper.cookieJar),swid:__dataLayer.visitor?.swid?__dataLayer.visitor.swid:null,site:__dataLayer.site?.site?__dataLayer.site.site:null,bootstrapenv:Bootstrapper.ensightenOptions.publishPath,eventname:eventName,loadedtagidsarr:Bootstrapper.getAllDeploymentIds(),runtagidsarr:Bootstrapper.getRunDeploymentIds(),privacystate:_consentVars.privacystate,url:location.href};if(eventName==="dtci.media")return;if(eventName==="pageView"&&!!window.__dataLayer&&Object.keys(__dataLayer).length>
0){let holdMediaEvents=false;if(__dataLayer.mediaEvents!==undefined){holdMediaEvents=__dataLayer.mediaEvents;delete __dataLayer.mediaEvents}globalData.dataLayer=JSON.stringify(__dataLayer);if(holdMediaEvents!==false)__dataLayer.mediaEvents=holdMediaEvents}if(Bootstrapper.sendToS3!==undefined)Bootstrapper.sendToS3({events:[{globaldata:globalData,eventdata:Array.prototype.splice.apply(arguments,[1,arguments.length])}]})}catch(error){Bootstrapper.reportException(error)}};var promises={},loaded={},failed=
{};(function setupPromises(){var libraries=["appmeasurement","visitor","heartbeat","datalayer","pageview","mparticle","privacydl","braze"];libraries.forEach(function(a,i){promises[a]=new Promise((resolve,reject)=>{loaded[a]=resolve;failed[a]=reject})})})();Bootstrapper.queue=function(reqs,callback){var needed=[];reqs.forEach(function(a,i){needed.push(promises[a])});Promise.all(needed).then(callback)};Bootstrapper.register=function(name,success){if(!!success)failed[name]();else loaded[name]()};Bootstrapper.Visitor=
{};Bootstrapper.Visitor.setMCIDCookieBase=function(){var splitCookies=function(c){return c.split("\x3d").map(function(s){return s.trim()})};var cookies=document.cookie.split(";").map(splitCookies),fCookie=null;cookies.forEach(function(c){if(c[0].startsWith("AMCV_"))fCookie=c});if(fCookie)Bootstrapper.Visitor.MCIDBase=fCookie[0]};try{Bootstrapper.Visitor.prevDCF=typeof Bootstrapper.Storage.local!=="undefined"&&typeof Bootstrapper.Storage.local.getItem==="function"?Bootstrapper.Storage.local.getItem("_prevDcf"):
null}catch(e){Bootstrapper.Visitor.prevDCF=null}Bootstrapper.Visitor.setMCIDCookieBase();function dispatchReadyEvent(){document.dispatchEvent(new Event("ensPV"));Bootstrapper.ready=true;document.dispatchEvent(new Event("tms.ready"))}if(window.location.hostname.match(/(plus\.espn|espnplayer|download\.espn\.nl)/)){window.__dataLayer=window.__dataLayer||{};if(window.location.hostname.indexOf("espncricinfo")>-1)window.addEventListener("load",function(event){dispatchReadyEvent();document.dispatchEvent(new Event("tms.ready"))});
else if(document.readyState==="complete")dispatchReadyEvent();else document.addEventListener("readystatechange",function(e){if(document.readyState==="complete")dispatchReadyEvent()})}else{var shouldRun=true;if(window.location.hostname.match(/(fivethirtyeight|andscape|undefeated|538)/)){if(window.self!==window.top)shouldRun=false;if(shouldRun){window.__dataLayer=window.__dataLayer||{};Bootstrapper.insertScript("https://assets.espn.go.com/players/web-player-bundle/next/embed/dcf-relay.js");var siteKey=
"fivethirtyeight";if(window.location.hostname.indexOf("andscape")>-1)siteKey="andscape";if(window.location.hostname.indexOf("theundefeated")>-1)siteKey="theundefeated";var _dl={"site":{"site":siteKey},"helpersEnabled":true,"page":{"page_url":window.location.href,"page_name":window.location.pathname.split("/")[1]},"visitor":{"swid":Bootstrapper.Cookies.get("SWID")},"pzn":{"login_status":"logged out"}};Object.assign(window.__dataLayer,_dl);function init10up(){if(window.dtciDatalayer&&typeof window.dtciDatalayer.init===
"function"){__dataLayer.pageViewed=true;window.dtciDatalayer.init()}else window.__dataLayer.publish("pageView")}if(document.readyState==="complete")init10up();else document.addEventListener("readystatechange",function(e){if(document.readyState==="complete")init10up()})}}if(shouldRun){var eventQueue=[];window.pv_waitForSubscribe=setInterval(function(){if(!!window.__dataLayer&&!!window.__dataLayer.subscribe&&typeof window.__dataLayer.subscribe==="function"){clearInterval(window.pv_waitForSubscribe);
document.dispatchEvent(new Event("dataLayer.subscribe"));__dataLayer.subscribeReady=true;if(__dataLayer.pageViewed||Bootstrapper.ensightenOptions.publishPath.includes("sst")===true){Bootstrapper.fireOnce=true;document.addEventListener("readystatechange",function(e){if(document.readyState==="complete")Bootstrapper.fireOnce=false});document.dispatchEvent(new Event("ensPV"))}__dataLayer.subscribe("pageView",function(){if(Bootstrapper.fireOnce!==true)document.dispatchEvent(new Event("ensPV"))});__dataLayer.eventQueue=
eventQueue;var handleLinkTrack=function(eventData){if(eventData&&eventData.event_name)if(typeof Bootstrapper.adobeLinkTrack==="function")Bootstrapper.adobeLinkTrack(eventData);else eventQueue.push(eventData)};__dataLayer.subscribe("click",handleLinkTrack);__dataLayer.subscribe("ecommerce",handleLinkTrack);__dataLayer.subscribe("customEvent",handleLinkTrack);var playerDLname="dtci.media",ignoreEvents=["dtci.loaded"],playerQueue=[],last_hb_event="";__dataLayer.subscribe(playerDLname,function(eventName,
eventData,currentPlayer){if(eventName&&ignoreEvents.indexOf(eventName)>-1)return;if(eventName!=="dtci.timeupdate"&&eventName===Bootstrapper.last_hb_event)return;if(Bootstrapper.handleMediaEvent)Bootstrapper.handleMediaEvent.apply(__dataLayer,arguments);else playerQueue.push(arguments)});__dataLayer.mediaEvents=playerQueue;Bootstrapper.ready=true;document.dispatchEvent(new Event("tms.ready"))}},100)}}if(window.__dataLayer?.site?.site==="powster")Bootstrapper.insertScript("https://tags.disneyinternational.com/dcfw/dev/powster/matchFiles.js")},
4250617,763742,1188);Bootstrapper.getServerComponent(Bootstrapper.getExtraParams ? Bootstrapper.getExtraParams() : undefined);}})();