@apolitical/component-library 1.1.1-beta.6 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +14 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -58,7 +58,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58
58
|
*
|
|
59
59
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
60
60
|
* @license MIT
|
|
61
|
-
*/var Uv;function EA(){return Uv||(Uv=1,function(e){const t=gA(),r=bA(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,i.TYPED_ARRAY_SUPPORT=o(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const S=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(S,y),S.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function s(S){if(S>a)throw new RangeError('The value "'+S+'" is invalid for option "size"');const y=new Uint8Array(S);return Object.setPrototypeOf(y,i.prototype),y}function i(S,y,g){if(typeof S=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(S)}return l(S,y,g)}i.poolSize=8192;function l(S,y,g){if(typeof S=="string")return d(S,y);if(ArrayBuffer.isView(S))return h(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ze(S,ArrayBuffer)||S&&ze(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(S,SharedArrayBuffer)||S&&ze(S.buffer,SharedArrayBuffer)))return m(S,y,g);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const E=S.valueOf&&S.valueOf();if(E!=null&&E!==S)return i.from(E,y,g);const x=_(S);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return i.from(S[Symbol.toPrimitive]("string"),y,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}i.from=function(S,y,g){return l(S,y,g)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function u(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function c(S,y,g){return u(S),S<=0?s(S):y!==void 0?typeof g=="string"?s(S).fill(y,g):s(S).fill(y):s(S)}i.alloc=function(S,y,g){return c(S,y,g)};function p(S){return u(S),s(S<0?0:b(S)|0)}i.allocUnsafe=function(S){return p(S)},i.allocUnsafeSlow=function(S){return p(S)};function d(S,y){if((typeof y!="string"||y==="")&&(y="utf8"),!i.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const g=w(S,y)|0;let E=s(g);const x=E.write(S,y);return x!==g&&(E=E.slice(0,x)),E}function f(S){const y=S.length<0?0:b(S.length)|0,g=s(y);for(let E=0;E<y;E+=1)g[E]=S[E]&255;return g}function h(S){if(ze(S,Uint8Array)){const y=new Uint8Array(S);return m(y.buffer,y.byteOffset,y.byteLength)}return f(S)}function m(S,y,g){if(y<0||S.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<y+(g||0))throw new RangeError('"length" is outside of buffer bounds');let E;return y===void 0&&g===void 0?E=new Uint8Array(S):g===void 0?E=new Uint8Array(S,y):E=new Uint8Array(S,y,g),Object.setPrototypeOf(E,i.prototype),E}function _(S){if(i.isBuffer(S)){const y=b(S.length)|0,g=s(y);return g.length===0||S.copy(g,0,0,y),g}if(S.length!==void 0)return typeof S.length!="number"||Rt(S.length)?s(0):f(S);if(S.type==="Buffer"&&Array.isArray(S.data))return f(S.data)}function b(S){if(S>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return S|0}function v(S){return+S!=S&&(S=0),i.alloc(+S)}i.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==i.prototype},i.compare=function(y,g){if(ze(y,Uint8Array)&&(y=i.from(y,y.offset,y.byteLength)),ze(g,Uint8Array)&&(g=i.from(g,g.offset,g.byteLength)),!i.isBuffer(y)||!i.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===g)return 0;let E=y.length,x=g.length;for(let P=0,q=Math.min(E,x);P<q;++P)if(y[P]!==g[P]){E=y[P],x=g[P];break}return E<x?-1:x<E?1:0},i.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(y,g){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return i.alloc(0);let E;if(g===void 0)for(g=0,E=0;E<y.length;++E)g+=y[E].length;const x=i.allocUnsafe(g);let P=0;for(E=0;E<y.length;++E){let q=y[E];if(ze(q,Uint8Array))P+q.length>x.length?(i.isBuffer(q)||(q=i.from(q)),q.copy(x,P)):Uint8Array.prototype.set.call(x,q,P);else if(i.isBuffer(q))q.copy(x,P);else throw new TypeError('"list" argument must be an Array of Buffers');P+=q.length}return x};function w(S,y){if(i.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||ze(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const g=S.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&g===0)return 0;let x=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return dt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return St(S).length;default:if(x)return E?-1:dt(S).length;y=(""+y).toLowerCase(),x=!0}}i.byteLength=w;function R(S,y,g){let E=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,y>>>=0,g<=y))return"";for(S||(S="utf8");;)switch(S){case"hex":return ve(this,y,g);case"utf8":case"utf-8":return Q(this,y,g);case"ascii":return G(this,y,g);case"latin1":case"binary":return Z(this,y,g);case"base64":return D(this,y,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,y,g);default:if(E)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),E=!0}}i.prototype._isBuffer=!0;function T(S,y,g){const E=S[y];S[y]=S[g],S[g]=E}i.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<y;g+=2)T(this,g,g+1);return this},i.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<y;g+=4)T(this,g,g+3),T(this,g+1,g+2);return this},i.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<y;g+=8)T(this,g,g+7),T(this,g+1,g+6),T(this,g+2,g+5),T(this,g+3,g+4);return this},i.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Q(this,0,y):R.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(y){if(!i.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:i.compare(this,y)===0},i.prototype.inspect=function(){let y="";const g=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(y+=" ... "),"<Buffer "+y+">"},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(y,g,E,x,P){if(ze(y,Uint8Array)&&(y=i.from(y,y.offset,y.byteLength)),!i.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(g===void 0&&(g=0),E===void 0&&(E=y?y.length:0),x===void 0&&(x=0),P===void 0&&(P=this.length),g<0||E>y.length||x<0||P>this.length)throw new RangeError("out of range index");if(x>=P&&g>=E)return 0;if(x>=P)return-1;if(g>=E)return 1;if(g>>>=0,E>>>=0,x>>>=0,P>>>=0,this===y)return 0;let q=P-x,oe=E-g;const he=Math.min(q,oe),ue=this.slice(x,P),pe=y.slice(g,E);for(let Ee=0;Ee<he;++Ee)if(ue[Ee]!==pe[Ee]){q=ue[Ee],oe=pe[Ee];break}return q<oe?-1:oe<q?1:0};function C(S,y,g,E,x){if(S.length===0)return-1;if(typeof g=="string"?(E=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,Rt(g)&&(g=x?0:S.length-1),g<0&&(g=S.length+g),g>=S.length){if(x)return-1;g=S.length-1}else if(g<0)if(x)g=0;else return-1;if(typeof y=="string"&&(y=i.from(y,E)),i.isBuffer(y))return y.length===0?-1:N(S,y,g,E,x);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(S,y,g):Uint8Array.prototype.lastIndexOf.call(S,y,g):N(S,[y],g,E,x);throw new TypeError("val must be string, number or Buffer")}function N(S,y,g,E,x){let P=1,q=S.length,oe=y.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(S.length<2||y.length<2)return-1;P=2,q/=2,oe/=2,g/=2}function he(pe,Ee){return P===1?pe[Ee]:pe.readUInt16BE(Ee*P)}let ue;if(x){let pe=-1;for(ue=g;ue<q;ue++)if(he(S,ue)===he(y,pe===-1?0:ue-pe)){if(pe===-1&&(pe=ue),ue-pe+1===oe)return pe*P}else pe!==-1&&(ue-=ue-pe),pe=-1}else for(g+oe>q&&(g=q-oe),ue=g;ue>=0;ue--){let pe=!0;for(let Ee=0;Ee<oe;Ee++)if(he(S,ue+Ee)!==he(y,Ee)){pe=!1;break}if(pe)return ue}return-1}i.prototype.includes=function(y,g,E){return this.indexOf(y,g,E)!==-1},i.prototype.indexOf=function(y,g,E){return C(this,y,g,E,!0)},i.prototype.lastIndexOf=function(y,g,E){return C(this,y,g,E,!1)};function I(S,y,g,E){g=Number(g)||0;const x=S.length-g;E?(E=Number(E),E>x&&(E=x)):E=x;const P=y.length;E>P/2&&(E=P/2);let q;for(q=0;q<E;++q){const oe=parseInt(y.substr(q*2,2),16);if(Rt(oe))return q;S[g+q]=oe}return q}function j(S,y,g,E){return _t(dt(y,S.length-g),S,g,E)}function z(S,y,g,E){return _t(Xe(y),S,g,E)}function Y(S,y,g,E){return _t(St(y),S,g,E)}function U(S,y,g,E){return _t(At(y,S.length-g),S,g,E)}i.prototype.write=function(y,g,E,x){if(g===void 0)x="utf8",E=this.length,g=0;else if(E===void 0&&typeof g=="string")x=g,E=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(E)?(E=E>>>0,x===void 0&&(x="utf8")):(x=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const P=this.length-g;if((E===void 0||E>P)&&(E=P),y.length>0&&(E<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let q=!1;for(;;)switch(x){case"hex":return I(this,y,g,E);case"utf8":case"utf-8":return j(this,y,g,E);case"ascii":case"latin1":case"binary":return z(this,y,g,E);case"base64":return Y(this,y,g,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,y,g,E);default:if(q)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),q=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(S,y,g){return y===0&&g===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(y,g))}function Q(S,y,g){g=Math.min(S.length,g);const E=[];let x=y;for(;x<g;){const P=S[x];let q=null,oe=P>239?4:P>223?3:P>191?2:1;if(x+oe<=g){let he,ue,pe,Ee;switch(oe){case 1:P<128&&(q=P);break;case 2:he=S[x+1],(he&192)===128&&(Ee=(P&31)<<6|he&63,Ee>127&&(q=Ee));break;case 3:he=S[x+1],ue=S[x+2],(he&192)===128&&(ue&192)===128&&(Ee=(P&15)<<12|(he&63)<<6|ue&63,Ee>2047&&(Ee<55296||Ee>57343)&&(q=Ee));break;case 4:he=S[x+1],ue=S[x+2],pe=S[x+3],(he&192)===128&&(ue&192)===128&&(pe&192)===128&&(Ee=(P&15)<<18|(he&63)<<12|(ue&63)<<6|pe&63,Ee>65535&&Ee<1114112&&(q=Ee))}}q===null?(q=65533,oe=1):q>65535&&(q-=65536,E.push(q>>>10&1023|55296),q=56320|q&1023),E.push(q),x+=oe}return k(E)}const J=4096;function k(S){const y=S.length;if(y<=J)return String.fromCharCode.apply(String,S);let g="",E=0;for(;E<y;)g+=String.fromCharCode.apply(String,S.slice(E,E+=J));return g}function G(S,y,g){let E="";g=Math.min(S.length,g);for(let x=y;x<g;++x)E+=String.fromCharCode(S[x]&127);return E}function Z(S,y,g){let E="";g=Math.min(S.length,g);for(let x=y;x<g;++x)E+=String.fromCharCode(S[x]);return E}function ve(S,y,g){const E=S.length;(!y||y<0)&&(y=0),(!g||g<0||g>E)&&(g=E);let x="";for(let P=y;P<g;++P)x+=et[S[P]];return x}function ee(S,y,g){const E=S.slice(y,g);let x="";for(let P=0;P<E.length-1;P+=2)x+=String.fromCharCode(E[P]+E[P+1]*256);return x}i.prototype.slice=function(y,g){const E=this.length;y=~~y,g=g===void 0?E:~~g,y<0?(y+=E,y<0&&(y=0)):y>E&&(y=E),g<0?(g+=E,g<0&&(g=0)):g>E&&(g=E),g<y&&(g=y);const x=this.subarray(y,g);return Object.setPrototypeOf(x,i.prototype),x};function ne(S,y,g){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+y>g)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=this[y],P=1,q=0;for(;++q<g&&(P*=256);)x+=this[y+q]*P;return x},i.prototype.readUintBE=i.prototype.readUIntBE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=this[y+--g],P=1;for(;g>0&&(P*=256);)x+=this[y+--g]*P;return x},i.prototype.readUint8=i.prototype.readUInt8=function(y,g){return y=y>>>0,g||ne(y,1,this.length),this[y]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(y,g){return y=y>>>0,g||ne(y,2,this.length),this[y]|this[y+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(y,g){return y=y>>>0,g||ne(y,2,this.length),this[y]<<8|this[y+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},i.prototype.readBigUInt64LE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=g+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,P=this[++y]+this[++y]*2**8+this[++y]*2**16+E*2**24;return BigInt(x)+(BigInt(P)<<BigInt(32))}),i.prototype.readBigUInt64BE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=g*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],P=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+E;return(BigInt(x)<<BigInt(32))+BigInt(P)}),i.prototype.readIntLE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=this[y],P=1,q=0;for(;++q<g&&(P*=256);)x+=this[y+q]*P;return P*=128,x>=P&&(x-=Math.pow(2,8*g)),x},i.prototype.readIntBE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=g,P=1,q=this[y+--x];for(;x>0&&(P*=256);)q+=this[y+--x]*P;return P*=128,q>=P&&(q-=Math.pow(2,8*g)),q},i.prototype.readInt8=function(y,g){return y=y>>>0,g||ne(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},i.prototype.readInt16LE=function(y,g){y=y>>>0,g||ne(y,2,this.length);const E=this[y]|this[y+1]<<8;return E&32768?E|4294901760:E},i.prototype.readInt16BE=function(y,g){y=y>>>0,g||ne(y,2,this.length);const E=this[y+1]|this[y]<<8;return E&32768?E|4294901760:E},i.prototype.readInt32LE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},i.prototype.readInt32BE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},i.prototype.readBigInt64LE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(E<<24);return(BigInt(x)<<BigInt(32))+BigInt(g+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),i.prototype.readBigInt64BE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=(g<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(x)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+E)}),i.prototype.readFloatLE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),r.read(this,y,!0,23,4)},i.prototype.readFloatBE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),r.read(this,y,!1,23,4)},i.prototype.readDoubleLE=function(y,g){return y=y>>>0,g||ne(y,8,this.length),r.read(this,y,!0,52,8)},i.prototype.readDoubleBE=function(y,g){return y=y>>>0,g||ne(y,8,this.length),r.read(this,y,!1,52,8)};function me(S,y,g,E,x,P){if(!i.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>x||y<P)throw new RangeError('"value" argument is out of bounds');if(g+E>S.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(y,g,E,x){if(y=+y,g=g>>>0,E=E>>>0,!x){const oe=Math.pow(2,8*E)-1;me(this,y,g,E,oe,0)}let P=1,q=0;for(this[g]=y&255;++q<E&&(P*=256);)this[g+q]=y/P&255;return g+E},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(y,g,E,x){if(y=+y,g=g>>>0,E=E>>>0,!x){const oe=Math.pow(2,8*E)-1;me(this,y,g,E,oe,0)}let P=E-1,q=1;for(this[g+P]=y&255;--P>=0&&(q*=256);)this[g+P]=y/q&255;return g+E},i.prototype.writeUint8=i.prototype.writeUInt8=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,1,255,0),this[g]=y&255,g+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,65535,0),this[g]=y&255,this[g+1]=y>>>8,g+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,65535,0),this[g]=y>>>8,this[g+1]=y&255,g+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,4294967295,0),this[g+3]=y>>>24,this[g+2]=y>>>16,this[g+1]=y>>>8,this[g]=y&255,g+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,4294967295,0),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4};function ge(S,y,g,E,x){se(y,E,x,S,g,7);let P=Number(y&BigInt(4294967295));S[g++]=P,P=P>>8,S[g++]=P,P=P>>8,S[g++]=P,P=P>>8,S[g++]=P;let q=Number(y>>BigInt(32)&BigInt(4294967295));return S[g++]=q,q=q>>8,S[g++]=q,q=q>>8,S[g++]=q,q=q>>8,S[g++]=q,g}function Ge(S,y,g,E,x){se(y,E,x,S,g,7);let P=Number(y&BigInt(4294967295));S[g+7]=P,P=P>>8,S[g+6]=P,P=P>>8,S[g+5]=P,P=P>>8,S[g+4]=P;let q=Number(y>>BigInt(32)&BigInt(4294967295));return S[g+3]=q,q=q>>8,S[g+2]=q,q=q>>8,S[g+1]=q,q=q>>8,S[g]=q,g+8}i.prototype.writeBigUInt64LE=Ze(function(y,g=0){return ge(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=Ze(function(y,g=0){return Ge(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(y,g,E,x){if(y=+y,g=g>>>0,!x){const he=Math.pow(2,8*E-1);me(this,y,g,E,he-1,-he)}let P=0,q=1,oe=0;for(this[g]=y&255;++P<E&&(q*=256);)y<0&&oe===0&&this[g+P-1]!==0&&(oe=1),this[g+P]=(y/q>>0)-oe&255;return g+E},i.prototype.writeIntBE=function(y,g,E,x){if(y=+y,g=g>>>0,!x){const he=Math.pow(2,8*E-1);me(this,y,g,E,he-1,-he)}let P=E-1,q=1,oe=0;for(this[g+P]=y&255;--P>=0&&(q*=256);)y<0&&oe===0&&this[g+P+1]!==0&&(oe=1),this[g+P]=(y/q>>0)-oe&255;return g+E},i.prototype.writeInt8=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,1,127,-128),y<0&&(y=255+y+1),this[g]=y&255,g+1},i.prototype.writeInt16LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,32767,-32768),this[g]=y&255,this[g+1]=y>>>8,g+2},i.prototype.writeInt16BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,32767,-32768),this[g]=y>>>8,this[g+1]=y&255,g+2},i.prototype.writeInt32LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,2147483647,-2147483648),this[g]=y&255,this[g+1]=y>>>8,this[g+2]=y>>>16,this[g+3]=y>>>24,g+4},i.prototype.writeInt32BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4},i.prototype.writeBigInt64LE=Ze(function(y,g=0){return ge(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=Ze(function(y,g=0){return Ge(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(S,y,g,E,x,P){if(g+E>S.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function le(S,y,g,E,x){return y=+y,g=g>>>0,x||ie(S,y,g,4),r.write(S,y,g,E,23,4),g+4}i.prototype.writeFloatLE=function(y,g,E){return le(this,y,g,!0,E)},i.prototype.writeFloatBE=function(y,g,E){return le(this,y,g,!1,E)};function xe(S,y,g,E,x){return y=+y,g=g>>>0,x||ie(S,y,g,8),r.write(S,y,g,E,52,8),g+8}i.prototype.writeDoubleLE=function(y,g,E){return xe(this,y,g,!0,E)},i.prototype.writeDoubleBE=function(y,g,E){return xe(this,y,g,!1,E)},i.prototype.copy=function(y,g,E,x){if(!i.isBuffer(y))throw new TypeError("argument should be a Buffer");if(E||(E=0),!x&&x!==0&&(x=this.length),g>=y.length&&(g=y.length),g||(g=0),x>0&&x<E&&(x=E),x===E||y.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),y.length-g<x-E&&(x=y.length-g+E);const P=x-E;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,E,x):Uint8Array.prototype.set.call(y,this.subarray(E,x),g),P},i.prototype.fill=function(y,g,E,x){if(typeof y=="string"){if(typeof g=="string"?(x=g,g=0,E=this.length):typeof E=="string"&&(x=E,E=this.length),x!==void 0&&typeof x!="string")throw new TypeError("encoding must be a string");if(typeof x=="string"&&!i.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(y.length===1){const q=y.charCodeAt(0);(x==="utf8"&&q<128||x==="latin1")&&(y=q)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(g<0||this.length<g||this.length<E)throw new RangeError("Out of range index");if(E<=g)return this;g=g>>>0,E=E===void 0?this.length:E>>>0,y||(y=0);let P;if(typeof y=="number")for(P=g;P<E;++P)this[P]=y;else{const q=i.isBuffer(y)?y:i.from(y,x),oe=q.length;if(oe===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(P=0;P<E-g;++P)this[P+g]=q[P%oe]}return this};const Be={};function at(S,y,g){Be[S]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(x){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:x,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(S,y){return`The "${S}" argument must be of type number. Received type ${typeof y}`},TypeError),at("ERR_OUT_OF_RANGE",function(S,y,g){let E=`The value of "${S}" is out of range.`,x=g;return Number.isInteger(g)&&Math.abs(g)>2**32?x=ct(String(g)):typeof g=="bigint"&&(x=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(x=ct(x)),x+="n"),E+=` It must be ${y}. Received ${x}`,E},RangeError);function ct(S){let y="",g=S.length;const E=S[0]==="-"?1:0;for(;g>=E+4;g-=3)y=`_${S.slice(g-3,g)}${y}`;return`${S.slice(0,g)}${y}`}function ce(S,y,g){je(y,"offset"),(S[y]===void 0||S[y+g]===void 0)&&Ae(y,S.length-(g+1))}function se(S,y,g,E,x,P){if(S>g||S<y){const q=typeof y=="bigint"?"n":"";let oe;throw P>3?y===0||y===BigInt(0)?oe=`>= 0${q} and < 2${q} ** ${(P+1)*8}${q}`:oe=`>= -(2${q} ** ${(P+1)*8-1}${q}) and < 2 ** ${(P+1)*8-1}${q}`:oe=`>= ${y}${q} and <= ${g}${q}`,new Be.ERR_OUT_OF_RANGE("value",oe,S)}ce(E,x,P)}function je(S,y){if(typeof S!="number")throw new Be.ERR_INVALID_ARG_TYPE(y,"number",S)}function Ae(S,y,g){throw Math.floor(S)!==S?(je(S,g),new Be.ERR_OUT_OF_RANGE(g||"offset","an integer",S)):y<0?new Be.ERR_BUFFER_OUT_OF_BOUNDS:new Be.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${y}`,S)}const ft=/[^+/0-9A-Za-z-_]/g;function ot(S){if(S=S.split("=")[0],S=S.trim().replace(ft,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function dt(S,y){y=y||1/0;let g;const E=S.length;let x=null;const P=[];for(let q=0;q<E;++q){if(g=S.charCodeAt(q),g>55295&&g<57344){if(!x){if(g>56319){(y-=3)>-1&&P.push(239,191,189);continue}else if(q+1===E){(y-=3)>-1&&P.push(239,191,189);continue}x=g;continue}if(g<56320){(y-=3)>-1&&P.push(239,191,189),x=g;continue}g=(x-55296<<10|g-56320)+65536}else x&&(y-=3)>-1&&P.push(239,191,189);if(x=null,g<128){if((y-=1)<0)break;P.push(g)}else if(g<2048){if((y-=2)<0)break;P.push(g>>6|192,g&63|128)}else if(g<65536){if((y-=3)<0)break;P.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((y-=4)<0)break;P.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return P}function Xe(S){const y=[];for(let g=0;g<S.length;++g)y.push(S.charCodeAt(g)&255);return y}function At(S,y){let g,E,x;const P=[];for(let q=0;q<S.length&&!((y-=2)<0);++q)g=S.charCodeAt(q),E=g>>8,x=g%256,P.push(x),P.push(E);return P}function St(S){return t.toByteArray(ot(S))}function _t(S,y,g,E){let x;for(x=0;x<E&&!(x+g>=y.length||x>=S.length);++x)y[x+g]=S[x];return x}function ze(S,y){return S instanceof y||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===y.name}function Rt(S){return S!==S}const et=function(){const S="0123456789abcdef",y=new Array(256);for(let g=0;g<16;++g){const E=g*16;for(let x=0;x<16;++x)y[E+x]=S[g]+S[x]}return y}();function Ze(S){return typeof BigInt>"u"?Dt:S}function Dt(){throw new Error("BigInt not supported")}}(Zf)),Zf}(function(e,t){(function(r,n){e.exports=n(PP(),UP(),VP(),CE(),ZP,vA(),EA())})(be,function(r,n,a,o,s,i,l){return function(){var u={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=a},300:function(f){f.exports=o},408:function(f){f.exports=l},25:function(f){f.exports=s},130:function(f){f.exports=i}},c={};function p(f){var h=c[f];if(h!==void 0)return h.exports;var m=c[f]={exports:{}};return u[f](m,m.exports,p),m.exports}p.n=function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return p.d(h,{a:h}),h},p.d=function(f,h){for(var m in h)p.o(h,m)&&!p.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:h[m]})},p.o=function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},p.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var d={};return function(){p.r(d),p.d(d,{assets:function(){return k},auth:function(){return ne},buildAnswer:function(){return iR},buildCarouselCard:function(){return oR},buildQuestion:function(){return ai},carouselCards:function(){return ti},contentInteraction:function(){return Ze},decodeBase64:function(){return lR},default:function(){return uR},editorialPages:function(){return fe},features:function(){return g},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return Oa},payments:function(){return Dn},people:function(){return Ar},peopleEngagement:function(){return Kn},qaQuestions:function(){return Ua},reportError:function(){return h.reportError},search:function(){return Ic}});var f=p(809),h=p(30),m=p(36),_={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:b,LOCALHOST:v,STAGING:w,STAGING_SPLITTER:R},ENVIRONMENTS:{PRODUCTION:T,LOCAL:C}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:N,EMAIL_IDS:I}}=_;let j={emailIds:{}};var z=p(300),Y=p.n(z);const U=async $=>{try{const{message:B,response:L,request:H}=$;let ae=B;return L?ae+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:H&&(ae+=" - The request was made but no response was received"),console.warn(ae),await(0,h.reportError)(new Error(ae)),ae}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:D,ENDPOINTS:{USERS:Q,CERTIFICATES:J}}}}=_;var k={certificates:{create:async($,B)=>{let L=[];try{const{data:H}=await Y().post(`${D}${Q}/${$}${J}`,B);H&&(L=H)}catch(H){await U(H)}return L}}};const{APIS:{AUTH_API:{BASE_URL:G,ENDPOINTS:{USER_PASSWORD:Z,USERS:ve}}},USERS:{MYSELF:ee}}=_;var ne={userPassword:{update:async $=>{let B=null;try{B=await Y().put(`${G}${ve}/${ee}${Z}`,$)}catch(L){B={message:(((L||{}).response||{}).data||{}).message},await U(L)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:me,ENDPOINTS:{ANSWERS:ge,QUESTIONS:Ge,LIKES:ie}}}}=_,le=`${me}${Ge}`;var xe={create:async({questionSlug:$},B)=>{try{await Y().post(`${le}/${encodeURIComponent($)}${ge}`,B)}catch(L){const H=await U(L);throw new Error(H)}},remove:async({questionSlug:$,answerSlug:B})=>{try{await Y().delete(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}`)}catch(L){const H=await U(L);throw new Error(H)}},update:async({questionSlug:$,answerSlug:B},L)=>{try{return await Y().put(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}`,L)}catch(H){const ae=await U(H);throw new Error(ae)}},like:async({questionSlug:$,answerSlug:B},L)=>{try{return await Y().post(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}${ie}`,L)}catch(H){const ae=await U(H);throw new Error(ae)}},unlike:async({questionSlug:$,answerSlug:B})=>{try{return await Y().delete(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}${ie}`)}catch(L){const H=await U(L);throw new Error(H)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Be,ENDPOINTS:{QUESTIONS:at}}}}=_,ct=`${Be}${at}`;var ce={create:async $=>{try{return await Y().post(ct,$)}catch(B){const L=await U(B);throw new Error(L)}},remove:async({questionSlug:$})=>{try{await Y().delete(`${ct}/${encodeURIComponent($)}`)}catch(B){const L=await U(B);throw new Error(L)}},update:async({questionSlug:$},B)=>{try{return await Y().put(`${ct}/${encodeURIComponent($)}`,B)}catch(L){const H=await U(L);throw new Error(H)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{REPLIES:je,ANSWERS:Ae,QUESTIONS:ft,LIKES:ot}}}}=_,dt=`${se}${ft}`,Xe=({questionSlug:$,answerSlug:B,replySlug:L},H=!1)=>{let ae=`${dt}/${encodeURIComponent($)}${Ae}/${encodeURIComponent(B)}${je}`;return L&&(ae=`${ae}/${encodeURIComponent(L)}`,H&&(ae=`${ae}${ot}`)),ae};var At={create:async({questionSlug:$,answerSlug:B},L)=>{try{return await Y().post(Xe({questionSlug:$,answerSlug:B}),L)}catch(H){const ae=await U(H);throw new Error(ae)}},update:async({questionSlug:$,answerSlug:B,replySlug:L},H)=>{try{return await Y().put(Xe({questionSlug:$,answerSlug:B,replySlug:L}),H)}catch(ae){const Pe=await U(ae);throw new Error(Pe)}},remove:async({questionSlug:$,answerSlug:B,replySlug:L})=>{try{await Y().delete(Xe({questionSlug:$,answerSlug:B,replySlug:L}))}catch(H){const ae=await U(H);throw new Error(ae)}},like:async({questionSlug:$,answerSlug:B,replySlug:L},H)=>{try{await Y().post(Xe({questionSlug:$,answerSlug:B,replySlug:L},!0),H)}catch(ae){const Pe=await U(ae);throw new Error(Pe)}},unlike:async({questionSlug:$,answerSlug:B,replySlug:L})=>{try{await Y().delete(Xe({questionSlug:$,answerSlug:B,replySlug:L},!0))}catch(H){const ae=await U(H);throw new Error(ae)}},getReplyUrl:Xe};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:St,ENDPOINTS:{QUESTIONS:_t,ANSWERS:ze,LIKES:Rt}}}}=_,et=`${St}${_t}`;var Ze={answers:xe,questions:ce,replies:At,likes:{create:async($,B)=>{try{return await Y().post(`${et}/${encodeURIComponent($)}${ze}/${encodeURIComponent(B)}${Rt}`)}catch(L){const H=await U(L);throw new Error(H)}},remove:async($,B)=>{try{return await Y().delete(`${et}/${encodeURIComponent($)}${ze}/${encodeURIComponent(B)}${Rt}`)}catch(L){const H=await U(L);throw new Error(H)}}}};const{APIS:{FEATURES_API:{BASE_URL:Dt,ENDPOINTS:{FLAGS:S}}}}=_,y=`${Dt}${S}`;var g={flags:{read:async $=>{let B=null;try{const{data:L}=await Y().get(`${y}/${encodeURIComponent($)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(B=L)}catch(L){await U(L)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:E,ENDPOINTS:{ACCOUNTS:x}}}}=_;var P={create:async $=>{try{await Y().post(`${E}${x}`,$)}catch(B){throw await U(B),B}},read:async $=>{let B=null;try{({data:B}=await Y().get(`${E}${x}/${encodeURIComponent($)}`))}catch(L){await U(L)}return B},update:async($,B)=>{try{await Y().put(`${E}${x}/${encodeURIComponent($)}`,B)}catch(L){throw await U(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:oe}}}}=_;var he={create:async $=>{try{await Y().post(`${q}${oe}`,$)}catch(B){throw await U(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:ue,ENDPOINTS:{EVENT_REGISTRATIONS:pe}}}}=_;var Ee={create:async $=>{try{await Y().post(`${ue}${pe}`,$)}catch(B){const L=await U(B);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:pt,ENDPOINTS:{LOGINS:ur,LOGIN_PASSWORDLESS:en}}}}=_,It=`${pt}${ur}`;var Oa={accounts:P,bulkEnrolments:he,eventRegistrations:Ee,passwordless:{update:async $=>{try{await Y().put(`${It}/${encodeURIComponent($)}${en}`)}catch(B){throw await U(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:tn,ENDPOINTS:{PRODUCTS:qn}}}}=_,xr=`${tn}${qn}`;var Dn={products:{list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(xr,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Fn,ENDPOINTS:{BULK_ENROLMENTS:rn}}}}=_;var Ft={list:async $=>{let B=[];try{const{data:L}=await Y().get(`${Fn}${rn}`,{params:$});L&&L.length&&(B=L)}catch(L){await U(L)}return B}},Un=p(25);const{OK:xa,MULTIPLE_CHOICES:Pa,NOT_FOUND:Aa,FORBIDDEN:jn}=Un.StatusCodes,Ct=$=>$>=xa&&$<Pa||$===jn||$===Aa,{APIS:{PEOPLE_API:{BASE_URL_V2:nn,ENDPOINTS:{USERS:an}}}}=_,cr=async $=>{let B=null;try{const{data:L}=await Y().get(`${nn}${an}/${encodeURIComponent($)}`,{validateStatus:Ct});L&&L.id&&(B=L)}catch(L){await U(L)}return B},on=async $=>{let B=[];try{if($&&$.length<2)throw new Error("users list method requires at least two ids");const L=$.map(ae=>`ids=${encodeURIComponent(ae)}`).join("&"),H=await Y().get(`${nn}${an}?${L}`,{validateStatus:Ct});H&&H.length&&(B=H)}catch(L){await U(L)}return B};var Ia={read:cr,update:async($,B)=>{let L=!1;try{const{data:H}=await Y().put(`${nn}${an}/${encodeURIComponent($)}`,B);L=!(!H||!H.id)}catch(H){await U(H)}return L},list:on};const{APIS:{PEOPLE_API:{BASE_URL_V2:Ut,ENDPOINTS:{USERS:Na,USER_LIKES:Ma}}},USERS:{MYSELF:ka}}=_,$a=`${Ut}${Na}/${ka}${Ma}`,sn=async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get($a,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B};var jt={list:sn},La={authors:{readQuestionAuthors:async($,B,L)=>{try{if($.author=await cr($.authorId),$.answers&&$.answers.length&&!L.ignoreAnswersAuthors){$.answers.sort((ae,Pe)=>new Date(Pe.updatedAt)-new Date(ae.updatedAt)),$.totalAnswers=$.answers.length;let H=$.answers;if(L.limit&&L.pageNumber){const ae=L.limit*(L.pageNumber-1);H=$.answers.slice(ae,ae+L.limit)}for(let ae of H){ae.author=ae.authorId&&await cr(ae.authorId)||{};const[Pe]=B?await sn({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:ae.slug}):[null];ae.userLiked=!!Pe}$.answers=H}else $.answers||($.answers=[]);return $}catch(H){throw await U(H),new Error(`Cannot read authors for question: ${H.message}`)}},readAuthors:async($=[])=>{let B=[];try{if(Array.isArray($)===!1)throw new Error("authorIds is not an array!");if($&&$.length===1){const L=await cr($[0]);L&&B.push(L)}else if($&&$.length>1){const L=await on($);L&&L.length>0&&(B=L)}}catch(L){throw await U(L),new Error(`Cannot read authors: ${L.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Ba,ENDPOINTS:{REGISTRATIONS:qa}}}}=_;var Da={list:async $=>{let B=[];try{const{data:L}=await Y().get(`${Ba}${qa}`,{params:$});L&&L.length&&(B=L)}catch(L){await U(L)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:A,ENDPOINTS:{USERS:V,USER_COURSES:W}}},USERS:{MYSELF:X}}=_,ye=`${A}${V}/${X}${W}`;var _e={create:async $=>{try{await Y().post(ye,$)}catch(B){await U(B)}},list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(ye,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B},update:async($,B)=>{try{await Y().put(`${ye}/${$}`,B)}catch(L){await U(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:qe,ENDPOINTS:{USERS:ht,USER_EVENTS:mt}}},USERS:{MYSELF:it}}=_,Qe=`${qe}${ht}/${it}${mt}`;var ln={list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(Qe,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pr,ENDPOINTS:{USERS:Fa,USER_LESSONS:Hn}}},USERS:{MYSELF:Gn}}=_,Wn=`${Pr}${Fa}/${Gn}${Hn}`;var Vn={create:async $=>{let B=null;try{B=await Y().post(Wn,$)}catch(L){await U(L)}return B},list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(Wn,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{USERS:zn,USER_PRODUCTS:un}}},USERS:{MYSELF:Yn}}=_,fr=`${Nt}${zn}/${Yn}${un}`;var Ht={create:async $=>{let B=null;try{B=await Y().post(fr,$)}catch(L){await U(L)}return B},list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(fr,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B},update:async($,B)=>{try{await Y().put(`${fr}/${$}`,B)}catch(L){await U(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:dr,ENDPOINTS:{USERS:zo,USER_RATINGS:pr}}},USERS:{MYSELF:Tc}}=_,Yo=`${dr}${zo}/${Tc}${pr}`;var Ar={bulkEnrolments:Ft,handlers:La,registrations:Da,users:Ia,userCourses:_e,userEvents:ln,userLessons:Vn,userLikes:jt,userProducts:Ht,userRatings:{create:async $=>{let B=null;try{const{data:L}=await Y().post(Yo,$);L!=null&&L.id&&(B=L)}catch(L){await U(L)}return B},update:async($,B)=>{try{await Y().put(`${Yo}/${$}`,B)}catch(L){await U(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Sc,ENDPOINTS:{ENQUIRY_EMAILS:Rc}}}}=_;var Cc={create:async $=>{let B=null;try{const{data:L}=await Y().post(`${Sc}${Rc}`,$);L&&(B=L)}catch(L){await U(L)}return B}},Ko={forms:{sendEnquiryEmails:async $=>{let B=null;try{const{emailIds:L}=j;B=await Kn.emails.create({...L,...$})}catch(L){await U(L)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:hr,ENDPOINTS:{USERS:Oc,USER_PROPERTIES:Xo}}},USERS:{MYSELF:xc}}=_;var Kn={emails:Cc,handlers:Ko,userProperties:{update:async($,B)=>{try{await Y().put(`${hr}${Oc}/${xc}${Xo}/${$}`,B)}catch(L){await U(L)}}}},Qo=p(130);const{APIS:{SEARCH_API:{BASE_URL:Pc,ENDPOINTS:{SEARCH:Ac}}}}=_,Jo=`${Pc}${Ac}`;var Ic={ask:async $=>{try{let B=null;const{data:L}=await Y().get(Jo,{params:{question:$}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(B=L),B}catch(B){const L=await U(B);throw new Error(L)}},stream:($,B,L)=>{const H=(0,Qo.io)(void 0,{path:"/api/search-api/web-sockets"});function ae(){H.emit("search",{question:$})}function Pe(Ve){L(Ve),Fe(),H.disconnect()}function Fe(){H.off("connect",ae),H.off("update",B),H.off("result",Pe)}return H.on("connect",ae),H.on("update",B),H.on("result",Pe),Fe}};const{CONTENTFUL:Xn}=_,{CARD_TYPES:Zo}=Xn.CAROUSELS;var ti={read:async($,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!$||!Zo[$])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:H}=Zo[$];return await(0,f.getEntry)({content_type:$,"sys.id":B.sys.id,include:L,select:H},{assetDetails:!0})}catch(L){throw await U(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:Nc}=_,{INCLUDE:O,SELECT:F,TYPE:K}=Nc.EDITORIAL_PAGES;var fe={read:async $=>{try{return await(0,f.getEntry)({content_type:K,"fields.slug":$,include:O,select:F})}catch(B){throw await U(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:Je}=_,{TYPE:tt,ORDER:Ot,SELECT:st,SKIP:ri,LIMIT:Ir,INCLUDE:ni}=Je.QUESTIONS;var Ua={read:async $=>{try{return await(0,f.getEntry)({content_type:tt,"fields.slug":$,include:2,select:st})}catch(B){throw await U(B),new Error(`Cannot read question: ${B.message}`)}},list:async($={})=>{try{return await(0,f.getEntries)({content_type:tt,include:ni,limit:Ir,order:Ot,select:st,skip:ri,...$})}catch(B){throw await U(B),new Error(`Cannot list questions: ${B.message}`)}}},ai=async($,B,L={ignoreAnswersAuthors:!1})=>{try{let H={};return H=await Ua.read($),H=await Ar.handlers.authors.readQuestionAuthors(H,B,L),H}catch(H){throw await U(H),new Error(`Cannot build question: ${H.message}`)}};const{ARTICLES:{TYPE:ja},COURSES:{TYPE:Qn},EVENTS:{TYPE:tR},LISTS:{TYPE:rR},QUESTIONS:{TYPE:nR},LEARNING_HUB:{TYPE:aR}}=_.CONTENTFUL,Ha=$=>$&&$.url?(Object.assign($,{aspect:"responsiveCard",query:"q=90&fit=fill"}),$):null,Mc={[ja]:async $=>{const{authorIds:B,authorTag:L,image:H,publishedDate:ae,readingTime:Pe,slug:Fe,title:Ve}=$,xt=await Ar.handlers.authors.readAuthors(B),Jt=xt&&xt.length?xt:L?[L]:null;return{banner:Ha(H),contributors:Jt,publishedDate:ae,readingTime:Pe,slug:Fe,title:Ve}},[Qn]:async($,B)=>{const{banner:L,freeCourse:H,partnershipDetails:ae,slug:Pe,title:Fe,registered:Ve}=$,xt={banner:Ha(L),slug:Pe,title:Fe,pill:H?"free":"premium",registered:!!Ve};if(ae){const{partners:Jt}=ae;xt.partner=Jt&&Jt.length&&ae.partners[0]}if(Ve===void 0&&B){const[Jt]=await Ar.userProducts.list({courseSlug:Pe,isEnrolled:!0,scope:"active"});xt.registered=!!Jt}return xt},[tR]:async($,B)=>{const{bannerImage:L,defaultStartDate:H,isEventOngoing:ae,slug:Pe,speakers:Fe,title:Ve,registered:xt}=$,Jt=new Date(H),cR=!!Jt&&Jt<new Date;if(Fe&&Fe.length)for(const oi of Fe)oi.image=(kc=oi.image)&&kc.url?`${kc.url}?w=100&h=100&fit=thumb&f=center`:null;var kc;const cm={banner:Ha(L),dateHasPassed:cR,title:Ve,slug:Pe,isOngoingEvent:ae,contributors:Fe,startDate:Jt,registered:!!xt};if(xt===void 0&&B){const[oi]=await Ar.userEvents.list({eventSlug:Pe});cm.registered=!!oi}return cm},[rR]:async $=>{const{hero:B,slug:L,title:H}=$;return{banner:Ha(B),slug:L,title:H}},[nR]:async $=>{const{answers:B,authorId:L,createdAt:H,slug:ae,title:Pe}=$;let Fe=null;if(L){const Ve=await Ar.users.read(L);Ve&&(Fe=Ve)}return{answers:B&&B.length?B.length:0,contributors:Fe?[Fe]:[],createdAt:H,slug:ae,title:Pe}},[aR]:$=>{const{bannerSection:B,customLabel:L,slug:H,title:ae}=$;return{banner:Ha(B.image),slug:H,title:ae,customLabel:L}},people:$=>{const{id:B,name:L,jobTitle:H,location:ae,image:Pe}=$;return{profile:Pe,slug:B,title:L,text:H,secondaryText:ae}}};var oR=async({contentType:$,...B}={},L)=>{try{if(!Mc[$])throw new Error("Content type not supported");if(typeof Mc[$]!="function")throw new Error("No builder function for content type");return $!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await ti.read($,B)),{contentType:$,...await Mc[$](B,L)}}catch(H){throw await U(H),new Error(`Cannot build carousel card: ${H.message}`)}},iR=async($,B,L={})=>{try{if(!$.replies||$.replies.length===0)return $.replies=[],$;$.replies.sort((ae,Pe)=>new Date(ae.createdAt)-new Date(Pe.createdAt)),$.totalReplies=$.totalReplies||$.replies.length;let H=$.replies;if(L.limit&&L.pageNumber){const ae=L.limit*(L.pageNumber-1);H=$.replies.slice(ae,ae+L.limit)}for(const ae of H){if(ae.authorId===$.authorId){ae.author=$.author,ae.userLiked=!1;continue}ae.author=ae.authorId&&await cr(ae.authorId)||{};const[Pe]=B?await sn({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:ae.slug}):[null];ae.userLiked=!!Pe}return $.replies=H,$}catch(H){throw await U(H),new Error(`Cannot build replies for answer: ${H.message}`)}},sR=p(408);const lR=$=>$&&sR.Buffer.from($,"base64").toString("ascii");function uR({contentContext:$=null,errorsContext:B=null,gtmContext:L=null,origin:H}){try{const ae=(Pe=>{let Fe=null;Pe?Fe=Pe:typeof window<"u"&&(Fe=window.origin||window.location.origin),Fe||new Error("Cannot select environment: Website not defined");let Ve=null;const xt=Fe.match(w);return xt?Ve=xt[1].split(R)[0]:Fe===b?Ve=T:Fe.includes(v)&&(Ve=C),Ve||new Error(`Cannot select environment: No rule for website ${Fe}`),Ve})(H);return $&&(0,f.setContext)(Object.assign({},$,{environment:ae})),B&&(0,h.setContext)(Object.assign({},B,{environment:ae})),L&&((0,m.setContext)(Object.assign({},L,{environment:ae})),(0,m.setupGTM)()),(({environment:Pe})=>{const Fe=(Ve=>{if(!Ve)throw new Error("Cannot map environment: Environment not defined");if(!N[Ve])throw new Error(`Cannot map environment: No mapping found for environment ${Ve}`);return N[Ve]})(Pe);j.emailIds=I[Fe]})(Object.assign({},{environment:ae})),ae}catch(ae){console.warn(`Cannot load SDK: ${ae.message}`)}}}(),d}()})})(vE);var _A=vE.exports;const mo={Off:"off",On:"on",Cookie:"cookie"},wA=e=>{const[t]=yE(),[r,n]=re.useState(null),[a,o]=re.useState(!1),[s,i]=re.useState(mo.Off);return re.useEffect(()=>{e&&_A.features.flags.read(e).then(l=>{i(l.featureState),n(null)}).catch(l=>{i(mo.Off),n(l)})},[e]),re.useEffect(()=>{if(!r)switch(s){case mo.Off:o(!1);break;case mo.On:o(!0);break;case mo.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[s,r,t,e]),{isFeatureActive:a,error:r}};function TA(e,t,r){var n=this,a=re.useRef(null),o=re.useRef(0),s=re.useRef(null),i=re.useRef([]),l=re.useRef(),u=re.useRef(),c=re.useRef(e),p=re.useRef(!0);re.useEffect(function(){c.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,m="maxWait"in r,_=m?Math.max(+r.maxWait||0,t):null;re.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var b=re.useMemo(function(){var v=function(I){var j=i.current,z=l.current;return i.current=l.current=null,o.current=I,u.current=c.current.apply(z,j)},w=function(I,j){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(I):setTimeout(I,j)},R=function(I){if(!p.current)return!1;var j=I-a.current;return!a.current||j>=t||j<0||m&&I-o.current>=_},T=function(I){return s.current=null,h&&i.current?v(I):(i.current=l.current=null,u.current)},C=function I(){var j=Date.now();if(R(j))return T(j);if(p.current){var z=t-(j-a.current),Y=m?Math.min(z,_-(j-o.current)):z;w(I,Y)}},N=function(){var I=Date.now(),j=R(I);if(i.current=[].slice.call(arguments),l.current=n,a.current=I,j){if(!s.current&&p.current)return o.current=a.current,w(C,t),f?v(a.current):u.current;if(m)return w(C,t),v(a.current)}return s.current||w(C,t),u.current};return N.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,i.current=a.current=l.current=s.current=null},N.isPending=function(){return!!s.current},N.flush=function(){return s.current?T(Date.now()):u.current},N},[f,m,t,_,h,d]);return b}function f0(e,t,r){var n=r===void 0?{}:r,a=n.leading,o=n.trailing;return TA(e,t,{maxWait:t,leading:a===void 0||a,trailing:o===void 0||o})}let ed;const xs=(e=!0,t=!1)=>{if(!e)return;const[r,n]=re.useState(0)||[!1,()=>{}];re.useEffect(()=>(o(),window.addEventListener("resize",s),()=>{clearTimeout(ed),s.flush(),window.removeEventListener("resize",s)}),[]);const a=()=>window.innerWidth,o=()=>{n(a())},s=f0(()=>{a()!==r&&(t&&(clearTimeout(ed),document.body.classList.add("is-resizing"),ed=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},d0=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[a,o]=re.useState({current:0,past:0})||[!1,()=>{}],[s,i]=re.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];re.useEffect(()=>(l(),window.addEventListener("scroll",u),()=>{u.flush(),window.removeEventListener("scroll",u)}),[]);const l=()=>{const c=window.scrollY,p=a.current,d=c-p,f=d>0?"down":"up";if(o({current:c,past:p}),f==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(r(),i({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(n(),i({scrollUp:!0,scrollDown:!1}))},u=f0(()=>{l()},250);return a};var rs={exports:{}};rs.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",s="[object Array]",i="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",p="[object GeneratorFunction]",d="[object Map]",f="[object Number]",h="[object Object]",m="[object Promise]",_="[object RegExp]",b="[object Set]",v="[object String]",w="[object Symbol]",R="[object WeakMap]",T="[object ArrayBuffer]",C="[object DataView]",N="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",Y="[object Int32Array]",U="[object Uint8Array]",D="[object Uint8ClampedArray]",Q="[object Uint16Array]",J="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,Z=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,ee={};ee[o]=ee[s]=ee[T]=ee[C]=ee[i]=ee[l]=ee[N]=ee[I]=ee[j]=ee[z]=ee[Y]=ee[d]=ee[f]=ee[h]=ee[_]=ee[b]=ee[v]=ee[w]=ee[U]=ee[D]=ee[Q]=ee[J]=!0,ee[u]=ee[c]=ee[R]=!1;var ne=typeof be=="object"&&be&&be.Object===Object&&be,me=typeof self=="object"&&self&&self.Object===Object&&self,ge=ne||me||Function("return this")(),Ge=t&&!t.nodeType&&t,ie=Ge&&!0&&e&&!e.nodeType&&e,le=ie&&ie.exports===Ge;function xe(O,F){return O.set(F[0],F[1]),O}function Be(O,F){return O.add(F),O}function at(O,F){for(var K=-1,fe=O?O.length:0;++K<fe&&F(O[K],K,O)!==!1;);return O}function ct(O,F){for(var K=-1,fe=F.length,Je=O.length;++K<fe;)O[Je+K]=F[K];return O}function ce(O,F,K,fe){var Je=-1,tt=O?O.length:0;for(fe&&tt&&(K=O[++Je]);++Je<tt;)K=F(K,O[Je],Je,O);return K}function se(O,F){for(var K=-1,fe=Array(O);++K<O;)fe[K]=F(K);return fe}function je(O,F){return O==null?void 0:O[F]}function Ae(O){var F=!1;if(O!=null&&typeof O.toString!="function")try{F=!!(O+"")}catch{}return F}function ft(O){var F=-1,K=Array(O.size);return O.forEach(function(fe,Je){K[++F]=[Je,fe]}),K}function ot(O,F){return function(K){return O(F(K))}}function dt(O){var F=-1,K=Array(O.size);return O.forEach(function(fe){K[++F]=fe}),K}var Xe=Array.prototype,At=Function.prototype,St=Object.prototype,_t=ge["__core-js_shared__"],ze=function(){var O=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Rt=At.toString,et=St.hasOwnProperty,Ze=St.toString,Dt=RegExp("^"+Rt.call(et).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=le?ge.Buffer:void 0,y=ge.Symbol,g=ge.Uint8Array,E=ot(Object.getPrototypeOf,Object),x=Object.create,P=St.propertyIsEnumerable,q=Xe.splice,oe=Object.getOwnPropertySymbols,he=S?S.isBuffer:void 0,ue=ot(Object.keys,Object),pe=dr(ge,"DataView"),Ee=dr(ge,"Map"),pt=dr(ge,"Promise"),ur=dr(ge,"Set"),en=dr(ge,"WeakMap"),It=dr(Object,"create"),Oa=hr(pe),tn=hr(Ee),qn=hr(pt),xr=hr(ur),Dn=hr(en),Fn=y?y.prototype:void 0,rn=Fn?Fn.valueOf:void 0;function Ft(O){var F=-1,K=O?O.length:0;for(this.clear();++F<K;){var fe=O[F];this.set(fe[0],fe[1])}}function Un(){this.__data__=It?It(null):{}}function xa(O){return this.has(O)&&delete this.__data__[O]}function Pa(O){var F=this.__data__;if(It){var K=F[O];return K===n?void 0:K}return et.call(F,O)?F[O]:void 0}function Aa(O){var F=this.__data__;return It?F[O]!==void 0:et.call(F,O)}function jn(O,F){var K=this.__data__;return K[O]=It&&F===void 0?n:F,this}Ft.prototype.clear=Un,Ft.prototype.delete=xa,Ft.prototype.get=Pa,Ft.prototype.has=Aa,Ft.prototype.set=jn;function Ct(O){var F=-1,K=O?O.length:0;for(this.clear();++F<K;){var fe=O[F];this.set(fe[0],fe[1])}}function nn(){this.__data__=[]}function an(O){var F=this.__data__,K=X(F,O);if(K<0)return!1;var fe=F.length-1;return K==fe?F.pop():q.call(F,K,1),!0}function cr(O){var F=this.__data__,K=X(F,O);return K<0?void 0:F[K][1]}function on(O){return X(this.__data__,O)>-1}function Ia(O,F){var K=this.__data__,fe=X(K,O);return fe<0?K.push([O,F]):K[fe][1]=F,this}Ct.prototype.clear=nn,Ct.prototype.delete=an,Ct.prototype.get=cr,Ct.prototype.has=on,Ct.prototype.set=Ia;function Ut(O){var F=-1,K=O?O.length:0;for(this.clear();++F<K;){var fe=O[F];this.set(fe[0],fe[1])}}function Na(){this.__data__={hash:new Ft,map:new(Ee||Ct),string:new Ft}}function Ma(O){return Ht(this,O).delete(O)}function ka(O){return Ht(this,O).get(O)}function $a(O){return Ht(this,O).has(O)}function sn(O,F){return Ht(this,O).set(O,F),this}Ut.prototype.clear=Na,Ut.prototype.delete=Ma,Ut.prototype.get=ka,Ut.prototype.has=$a,Ut.prototype.set=sn;function jt(O){this.__data__=new Ct(O)}function La(){this.__data__=new Ct}function Ba(O){return this.__data__.delete(O)}function qa(O){return this.__data__.get(O)}function Da(O){return this.__data__.has(O)}function A(O,F){var K=this.__data__;if(K instanceof Ct){var fe=K.__data__;if(!Ee||fe.length<r-1)return fe.push([O,F]),this;K=this.__data__=new Ut(fe)}return K.set(O,F),this}jt.prototype.clear=La,jt.prototype.delete=Ba,jt.prototype.get=qa,jt.prototype.has=Da,jt.prototype.set=A;function V(O,F){var K=Kn(O)||xc(O)?se(O.length,String):[],fe=K.length,Je=!!fe;for(var tt in O)(F||et.call(O,tt))&&!(Je&&(tt=="length"||Sc(tt,fe)))&&K.push(tt);return K}function W(O,F,K){var fe=O[F];(!(et.call(O,F)&&Xo(fe,K))||K===void 0&&!(F in O))&&(O[F]=K)}function X(O,F){for(var K=O.length;K--;)if(Xo(O[K][0],F))return K;return-1}function ye(O,F){return O&&un(F,ei(F),O)}function _e(O,F,K,fe,Je,tt,Ot){var st;if(fe&&(st=tt?fe(O,Je,tt,Ot):fe(O)),st!==void 0)return st;if(!Xn(O))return O;var ri=Kn(O);if(ri){if(st=Tc(O),!F)return zn(O,st)}else{var Ir=pr(O),ni=Ir==c||Ir==p;if(Ac(O))return ln(O,F);if(Ir==h||Ir==o||ni&&!tt){if(Ae(O))return tt?O:{};if(st=Yo(ni?{}:O),!F)return Yn(O,ye(st,O))}else{if(!ee[Ir])return tt?O:{};st=Ar(O,Ir,_e,F)}}Ot||(Ot=new jt);var Ua=Ot.get(O);if(Ua)return Ua;if(Ot.set(O,st),!ri)var ai=K?fr(O):ei(O);return at(ai||O,function(ja,Qn){ai&&(Qn=ja,ja=O[Qn]),W(st,Qn,_e(ja,F,K,fe,Qn,O,Ot))}),st}function qe(O){return Xn(O)?x(O):{}}function ht(O,F,K){var fe=F(O);return Kn(O)?fe:ct(fe,K(O))}function mt(O){return Ze.call(O)}function it(O){if(!Xn(O)||Cc(O))return!1;var F=Jo(O)||Ae(O)?Dt:Z;return F.test(hr(O))}function Qe(O){if(!Ko(O))return ue(O);var F=[];for(var K in Object(O))et.call(O,K)&&K!="constructor"&&F.push(K);return F}function ln(O,F){if(F)return O.slice();var K=new O.constructor(O.length);return O.copy(K),K}function Pr(O){var F=new O.constructor(O.byteLength);return new g(F).set(new g(O)),F}function Fa(O,F){var K=F?Pr(O.buffer):O.buffer;return new O.constructor(K,O.byteOffset,O.byteLength)}function Hn(O,F,K){var fe=F?K(ft(O),!0):ft(O);return ce(fe,xe,new O.constructor)}function Gn(O){var F=new O.constructor(O.source,G.exec(O));return F.lastIndex=O.lastIndex,F}function Wn(O,F,K){var fe=F?K(dt(O),!0):dt(O);return ce(fe,Be,new O.constructor)}function Vn(O){return rn?Object(rn.call(O)):{}}function Nt(O,F){var K=F?Pr(O.buffer):O.buffer;return new O.constructor(K,O.byteOffset,O.length)}function zn(O,F){var K=-1,fe=O.length;for(F||(F=Array(fe));++K<fe;)F[K]=O[K];return F}function un(O,F,K,fe){K||(K={});for(var Je=-1,tt=F.length;++Je<tt;){var Ot=F[Je],st=fe?fe(K[Ot],O[Ot],Ot,K,O):void 0;W(K,Ot,st===void 0?O[Ot]:st)}return K}function Yn(O,F){return un(O,zo(O),F)}function fr(O){return ht(O,ei,zo)}function Ht(O,F){var K=O.__data__;return Rc(F)?K[typeof F=="string"?"string":"hash"]:K.map}function dr(O,F){var K=je(O,F);return it(K)?K:void 0}var zo=oe?ot(oe,Object):ti,pr=mt;(pe&&pr(new pe(new ArrayBuffer(1)))!=C||Ee&&pr(new Ee)!=d||pt&&pr(pt.resolve())!=m||ur&&pr(new ur)!=b||en&&pr(new en)!=R)&&(pr=function(O){var F=Ze.call(O),K=F==h?O.constructor:void 0,fe=K?hr(K):void 0;if(fe)switch(fe){case Oa:return C;case tn:return d;case qn:return m;case xr:return b;case Dn:return R}return F});function Tc(O){var F=O.length,K=O.constructor(F);return F&&typeof O[0]=="string"&&et.call(O,"index")&&(K.index=O.index,K.input=O.input),K}function Yo(O){return typeof O.constructor=="function"&&!Ko(O)?qe(E(O)):{}}function Ar(O,F,K,fe){var Je=O.constructor;switch(F){case T:return Pr(O);case i:case l:return new Je(+O);case C:return Fa(O,fe);case N:case I:case j:case z:case Y:case U:case D:case Q:case J:return Nt(O,fe);case d:return Hn(O,fe,K);case f:case v:return new Je(O);case _:return Gn(O);case b:return Wn(O,fe,K);case w:return Vn(O)}}function Sc(O,F){return F=F??a,!!F&&(typeof O=="number"||ve.test(O))&&O>-1&&O%1==0&&O<F}function Rc(O){var F=typeof O;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?O!=="__proto__":O===null}function Cc(O){return!!ze&&ze in O}function Ko(O){var F=O&&O.constructor,K=typeof F=="function"&&F.prototype||St;return O===K}function hr(O){if(O!=null){try{return Rt.call(O)}catch{}try{return O+""}catch{}}return""}function Oc(O){return _e(O,!0,!0)}function Xo(O,F){return O===F||O!==O&&F!==F}function xc(O){return Pc(O)&&et.call(O,"callee")&&(!P.call(O,"callee")||Ze.call(O)==o)}var Kn=Array.isArray;function Qo(O){return O!=null&&Ic(O.length)&&!Jo(O)}function Pc(O){return Zo(O)&&Qo(O)}var Ac=he||Nc;function Jo(O){var F=Xn(O)?Ze.call(O):"";return F==c||F==p}function Ic(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function Xn(O){var F=typeof O;return!!O&&(F=="object"||F=="function")}function Zo(O){return!!O&&typeof O=="object"}function ei(O){return Qo(O)?V(O):Qe(O)}function ti(){return[]}function Nc(){return!1}e.exports=Oc})(rs,rs.exports);var SA=rs.exports;const RA=Rr(SA);var CA="Expected a function",p0="__lodash_hash_undefined__",h0=1/0,OA=9007199254740991,xA="[object Function]",PA="[object GeneratorFunction]",AA="[object Symbol]",IA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NA=/^\w*$/,MA=/^\./,kA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$A=/[\\^$.*+?()[\]{}|]/g,LA=/\\(\\)?/g,BA=/^\[object .+?Constructor\]$/,qA=/^(?:0|[1-9]\d*)$/,DA=typeof be=="object"&&be&&be.Object===Object&&be,FA=typeof self=="object"&&self&&self.Object===Object&&self,Sh=DA||FA||Function("return this")();function UA(e,t){return e==null?void 0:e[t]}function jA(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var HA=Array.prototype,GA=Function.prototype,m0=Object.prototype,td=Sh["__core-js_shared__"],jv=function(){var e=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),y0=GA.toString,Ps=m0.hasOwnProperty,v0=m0.toString,WA=RegExp("^"+y0.call(Ps).replace($A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hv=Sh.Symbol,VA=HA.splice,zA=g0(Sh,"Map"),Co=g0(Object,"create"),Gv=Hv?Hv.prototype:void 0,Wv=Gv?Gv.toString:void 0;function Rn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function YA(){this.__data__=Co?Co(null):{}}function KA(e){return this.has(e)&&delete this.__data__[e]}function XA(e){var t=this.__data__;if(Co){var r=t[e];return r===p0?void 0:r}return Ps.call(t,e)?t[e]:void 0}function QA(e){var t=this.__data__;return Co?t[e]!==void 0:Ps.call(t,e)}function JA(e,t){var r=this.__data__;return r[e]=Co&&t===void 0?p0:t,this}Rn.prototype.clear=YA;Rn.prototype.delete=KA;Rn.prototype.get=XA;Rn.prototype.has=QA;Rn.prototype.set=JA;function Ta(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ZA(){this.__data__=[]}function e1(e){var t=this.__data__,r=As(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():VA.call(t,r,1),!0}function t1(e){var t=this.__data__,r=As(t,e);return r<0?void 0:t[r][1]}function r1(e){return As(this.__data__,e)>-1}function n1(e,t){var r=this.__data__,n=As(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ta.prototype.clear=ZA;Ta.prototype.delete=e1;Ta.prototype.get=t1;Ta.prototype.has=r1;Ta.prototype.set=n1;function Pn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function a1(){this.__data__={hash:new Rn,map:new(zA||Ta),string:new Rn}}function o1(e){return Is(this,e).delete(e)}function i1(e){return Is(this,e).get(e)}function s1(e){return Is(this,e).has(e)}function l1(e,t){return Is(this,e).set(e,t),this}Pn.prototype.clear=a1;Pn.prototype.delete=o1;Pn.prototype.get=i1;Pn.prototype.has=s1;Pn.prototype.set=l1;function u1(e,t,r){var n=e[t];(!(Ps.call(e,t)&&b0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function As(e,t){for(var r=e.length;r--;)if(b0(e[r][0],t))return r;return-1}function c1(e){if(!ns(e)||v1(e))return!1;var t=_1(e)||jA(e)?WA:BA;return t.test(E1(e))}function f1(e,t,r,n){if(!ns(e))return e;t=m1(t,e)?[t]:p1(t);for(var a=-1,o=t.length,s=o-1,i=e;i!=null&&++a<o;){var l=b1(t[a]),u=r;if(a!=s){var c=i[l];u=n?n(c,l,i):void 0,u===void 0&&(u=ns(c)?c:h1(t[a+1])?[]:{})}u1(i,l,u),i=i[l]}return e}function d1(e){if(typeof e=="string")return e;if(Ch(e))return Wv?Wv.call(e):"";var t=e+"";return t=="0"&&1/e==-h0?"-0":t}function p1(e){return E0(e)?e:g1(e)}function Is(e,t){var r=e.__data__;return y1(t)?r[typeof t=="string"?"string":"hash"]:r.map}function g0(e,t){var r=UA(e,t);return c1(r)?r:void 0}function h1(e,t){return t=t??OA,!!t&&(typeof e=="number"||qA.test(e))&&e>-1&&e%1==0&&e<t}function m1(e,t){if(E0(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ch(e)?!0:NA.test(e)||!IA.test(e)||t!=null&&e in Object(t)}function y1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function v1(e){return!!jv&&jv in e}var g1=Rh(function(e){e=T1(e);var t=[];return MA.test(e)&&t.push(""),e.replace(kA,function(r,n,a,o){t.push(a?o.replace(LA,"$1"):n||r)}),t});function b1(e){if(typeof e=="string"||Ch(e))return e;var t=e+"";return t=="0"&&1/e==-h0?"-0":t}function E1(e){if(e!=null){try{return y0.call(e)}catch{}try{return e+""}catch{}}return""}function Rh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(CA);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s),s};return r.cache=new(Rh.Cache||Pn),r}Rh.Cache=Pn;function b0(e,t){return e===t||e!==e&&t!==t}var E0=Array.isArray;function _1(e){var t=ns(e)?v0.call(e):"";return t==xA||t==PA}function ns(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function w1(e){return!!e&&typeof e=="object"}function Ch(e){return typeof e=="symbol"||w1(e)&&v0.call(e)==AA}function T1(e){return e==null?"":d1(e)}function S1(e,t,r){return e==null?e:f1(e,t,r)}var R1=S1;const C1=Rr(R1),O1=(e,t)=>{Array.isArray(t)||(t=[t]);const r=RA(e);return t.forEach(({type:n,value:a})=>{C1(r,n,a)}),r},_0=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},w0=(e,t,r)=>{let n=r.mobile;for(const a in t){const o=parseInt(String(t[a]));if(e>=o)n=r[o];else if(e<o)break}return n};var up=function(e,t){return up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},up(e,t)};function Lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");up(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var de=function(){return de=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},de.apply(this,arguments)};function ha(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function nr(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function T0(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Re;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Re||(Re={}));var Ue;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ue||(Ue={}));var ma;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ma||(ma={}));function Vv(e){return e.type===Ue.literal}function x1(e){return e.type===Ue.argument}function S0(e){return e.type===Ue.number}function R0(e){return e.type===Ue.date}function C0(e){return e.type===Ue.time}function O0(e){return e.type===Ue.select}function x0(e){return e.type===Ue.plural}function P1(e){return e.type===Ue.pound}function P0(e){return e.type===Ue.tag}function A0(e){return!!(e&&typeof e=="object"&&e.type===ma.number)}function cp(e){return!!(e&&typeof e=="object"&&e.type===ma.dateTime)}var I0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,A1=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function I1(e){var t={};return e.replace(A1,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var N1=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function M1(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(N1).filter(function(d){return d.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var i=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var p=c[u];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:i,options:l})}return r}function k1(e){return e.replace(/^(.*?)-/,"")}var zv=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N0=/^(@+)?(\+|#+)?[rs]?$/g,$1=/(\*)(0+)|(#+)(0+)|(0+)/g,M0=/^(0+)$/;function Yv(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(N0,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function k0(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function L1(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!M0.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Kv(e){var t={},r=k0(e);return r||t}function B1(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=k1(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=de(de(de({},t),{notation:"scientific"}),a.options.reduce(function(l,u){return de(de({},l),Kv(u))},{}));continue;case"engineering":t=de(de(de({},t),{notation:"engineering"}),a.options.reduce(function(l,u){return de(de({},l),Kv(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace($1,function(l,u,c,p,d,f){if(u)t.minimumIntegerDigits=c.length;else{if(p&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(M0.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(zv.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(zv,function(l,u,c,p,d,f){return c==="*"?t.minimumFractionDigits=u.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:d&&f?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=a.options[0];o==="w"?t=de(de({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=de(de({},t),Yv(o)));continue}if(N0.test(a.stem)){t=de(de({},t),Yv(a.stem));continue}var s=k0(a.stem);s&&(t=de(de({},t),s));var i=L1(a.stem);i&&(t=de(de({},t),i))}return t}var Oi={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function q1(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var s=1+(o&1),i=o<2?1:3+(o>>1),l="a",u=D1(t);for((u=="H"||u=="k")&&(i=0);i-- >0;)r+=l;for(;s-- >0;)r=u+r}else a==="J"?r+="H":r+=a}return r}function D1(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=Oi[n||""]||Oi[r||""]||Oi["".concat(r,"-001")]||Oi["001"];return a[0]}var rd,F1=new RegExp("^".concat(I0.source,"*")),U1=new RegExp("".concat(I0.source,"*$"));function Oe(e,t){return{start:e,end:t}}var j1=!!String.prototype.startsWith,H1=!!String.fromCodePoint,G1=!!Object.fromEntries,W1=!!String.prototype.codePointAt,V1=!!String.prototype.trimStart,z1=!!String.prototype.trimEnd,Y1=!!Number.isSafeInteger,K1=Y1?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fp=!0;try{var X1=L0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fp=((rd=X1.exec("a"))===null||rd===void 0?void 0:rd[0])==="a"}catch{fp=!1}var Xv=j1?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},dp=H1?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,s;a>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},Qv=G1?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],s=o[0],i=o[1];r[s]=i}return r},$0=W1?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},Q1=V1?function(t){return t.trimStart()}:function(t){return t.replace(F1,"")},J1=z1?function(t){return t.trimEnd()}:function(t){return t.replace(U1,"")};function L0(e,t){return new RegExp(e,t)}var pp;if(fp){var Jv=L0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pp=function(t,r){var n;Jv.lastIndex=r;var a=Jv.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else pp=function(t,r){for(var n=[];;){var a=$0(t,r);if(a===void 0||B0(a)||rI(a))break;n.push(a),r+=a>=65536?2:1}return dp.apply(void 0,n)};var Z1=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;a.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var i=this.clonePosition();this.bump(),a.push({type:Ue.pound,location:Oe(i,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Re.UNMATCHED_CLOSING_TAG,Oe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hp(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ue.literal,value:"<".concat(a,"/>"),location:Oe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,i=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hp(this.char()))return this.error(Re.INVALID_TAG,Oe(i,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return a!==u?this.error(Re.UNMATCHED_CLOSING_TAG,Oe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ue.tag,value:a,children:s,location:Oe(n,this.clonePosition())},err:null}:this.error(Re.INVALID_TAG,Oe(i,this.clonePosition())))}else return this.error(Re.UNCLOSED_TAG,Oe(n,this.clonePosition()))}else return this.error(Re.INVALID_TAG,Oe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tI(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){a+=s;continue}var i=this.tryParseLeftAngleBracket();if(i){a+=i;continue}break}var l=Oe(n,this.clonePosition());return{val:{type:Ue.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eI(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return dp.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),dp(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Re.EMPTY_ARGUMENT,Oe(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Re.MALFORMED_ARGUMENT,Oe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ue.argument,value:a,location:Oe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(Re.MALFORMED_ARGUMENT,Oe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=pp(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),s=Oe(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,s=this.clonePosition(),i=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(i){case"":return this.error(Re.EXPECT_ARGUMENT_TYPE,Oe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var d=J1(p.val);if(d.length===0)return this.error(Re.EXPECT_ARGUMENT_STYLE,Oe(this.clonePosition(),this.clonePosition()));var f=Oe(c,this.clonePosition());u={style:d,styleLocation:f}}var h=this.tryParseArgumentClose(a);if(h.err)return h;var m=Oe(a,this.clonePosition());if(u&&Xv(u==null?void 0:u.style,"::",0)){var _=Q1(u.style.slice(2));if(i==="number"){var p=this.parseNumberSkeletonFromString(_,u.styleLocation);return p.err?p:{val:{type:Ue.number,value:n,location:m,style:p.val},err:null}}else{if(_.length===0)return this.error(Re.EXPECT_DATE_TIME_SKELETON,m);var b=_;this.locale&&(b=q1(_,this.locale));var d={type:ma.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?I1(b):{}},v=i==="date"?Ue.date:Ue.time;return{val:{type:v,value:n,location:m,style:d},err:null}}}return{val:{type:i==="number"?Ue.number:i==="date"?Ue.date:Ue.time,value:n,location:m,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Re.EXPECT_SELECT_ARGUMENT_OPTIONS,Oe(w,de({},w)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),T=0;if(i!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(Re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Oe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(Re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Re.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),R=this.parseIdentifierIfPossible(),T=p.val}var C=this.tryParsePluralOrSelectOptions(t,i,r,R);if(C.err)return C;var h=this.tryParseArgumentClose(a);if(h.err)return h;var N=Oe(a,this.clonePosition());return i==="select"?{val:{type:Ue.select,value:n,options:Qv(C.val),location:N},err:null}:{val:{type:Ue.plural,value:n,options:Qv(C.val),offset:T,pluralType:i==="plural"?"cardinal":"ordinal",location:N},err:null}}default:return this.error(Re.INVALID_ARGUMENT_TYPE,Oe(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Re.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Oe(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=M1(t)}catch{return this.error(Re.INVALID_NUMBER_SKELETON,r)}return{val:{type:ma.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?B1(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,s=!1,i=[],l=new Set,u=a.value,c=a.location;;){if(u.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(Re.EXPECT_PLURAL_ARGUMENT_SELECTOR,Re.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Oe(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?Re.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Re.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Re.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Re.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Oe(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,r,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;i.push([u,{value:h.val,location:Oe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return i.length===0?this.error(r==="select"?Re.EXPECT_SELECT_ARGUMENT_SELECTOR:Re.EXPECT_PLURAL_ARGUMENT_SELECTOR,Oe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Re.MISSING_OTHER_CLAUSE,Oe(this.clonePosition(),this.clonePosition())):{val:i,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var i=this.char();if(i>=48&&i<=57)o=!0,s=s*10+(i-48),this.bump();else break}var l=Oe(a,this.clonePosition());return o?(s*=n,K1(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=$0(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Xv(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&B0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function hp(e){return e>=97&&e<=122||e>=65&&e<=90}function eI(e){return hp(e)||e===47}function tI(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function B0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function rI(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function mp(e){e.forEach(function(t){if(delete t.location,O0(t)||x0(t))for(var r in t.options)delete t.options[r].location,mp(t.options[r].value);else S0(t)&&A0(t.style)||(R0(t)||C0(t))&&cp(t.style)?delete t.style.location:P0(t)&&mp(t.children)})}function nI(e,t){t===void 0&&(t={}),t=de({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Z1(e,t).parse();if(r.err){var n=SyntaxError(Re[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||mp(r.val),r.val}function er(e,t){var r=t&&t.cache?t.cache:uI,n=t&&t.serializer?t.serializer:lI,a=t&&t.strategy?t.strategy:oI;return a(e,{cache:r,serializer:n})}function aI(e){return e==null||typeof e=="number"||typeof e=="boolean"}function q0(e,t,r,n){var a=aI(n)?n:r(n),o=t.get(a);return typeof o>"u"&&(o=e.call(this,n),t.set(a,o)),o}function D0(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,n),t.set(a,o)),o}function Oh(e,t,r,n,a){return r.bind(t,e,n,a)}function oI(e,t){var r=e.length===1?q0:D0;return Oh(e,this,r,t.cache.create(),t.serializer)}function iI(e,t){return Oh(e,this,D0,t.cache.create(),t.serializer)}function sI(e,t){return Oh(e,this,q0,t.cache.create(),t.serializer)}var lI=function(){return JSON.stringify(arguments)};function xh(){this.cache=Object.create(null)}xh.prototype.get=function(e){return this.cache[e]};xh.prototype.set=function(e,t){this.cache[e]=t};var uI={create:function(){return new xh}},tr={variadic:iI,monadic:sI},ar;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ar||(ar={}));var Jr=function(e){Lt(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zv=function(e){Lt(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ar.INVALID_VALUE,o)||this}return t}(Jr),cI=function(e){Lt(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ar.INVALID_VALUE,a)||this}return t}(Jr),fI=function(e){Lt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),ar.MISSING_VALUE,n)||this}return t}(Jr),wt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(wt||(wt={}));function dI(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==wt.literal||r.type!==wt.literal?t.push(r):n.value+=r.value,t},[])}function F0(e){return typeof e=="function"}function qi(e,t,r,n,a,o,s){if(e.length===1&&Vv(e[0]))return[{type:wt.literal,value:e[0].value}];for(var i=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Vv(c)){i.push({type:wt.literal,value:c.value});continue}if(P1(c)){typeof o=="number"&&i.push({type:wt.literal,value:r.getNumberFormat(t).format(o)});continue}var p=c.value;if(!(a&&p in a))throw new fI(p,s);var d=a[p];if(x1(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),i.push({type:typeof d=="string"?wt.literal:wt.object,value:d});continue}if(R0(c)){var f=typeof c.style=="string"?n.date[c.style]:cp(c.style)?c.style.parsedOptions:void 0;i.push({type:wt.literal,value:r.getDateTimeFormat(t,f).format(d)});continue}if(C0(c)){var f=typeof c.style=="string"?n.time[c.style]:cp(c.style)?c.style.parsedOptions:n.time.medium;i.push({type:wt.literal,value:r.getDateTimeFormat(t,f).format(d)});continue}if(S0(c)){var f=typeof c.style=="string"?n.number[c.style]:A0(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),i.push({type:wt.literal,value:r.getNumberFormat(t,f).format(d)});continue}if(P0(c)){var h=c.children,m=c.value,_=a[m];if(!F0(_))throw new cI(m,"function",s);var b=qi(h,t,r,n,a,o),v=_(b.map(function(T){return T.value}));Array.isArray(v)||(v=[v]),i.push.apply(i,v.map(function(T){return{type:typeof T=="string"?wt.literal:wt.object,value:T}}))}if(O0(c)){var w=c.options[d]||c.options.other;if(!w)throw new Zv(c.value,d,Object.keys(c.options),s);i.push.apply(i,qi(w.value,t,r,n,a));continue}if(x0(c)){var w=c.options["=".concat(d)];if(!w){if(!Intl.PluralRules)throw new Jr(`Intl.PluralRules is not available in this environment.
|
|
61
|
+
*/var Uv;function EA(){return Uv||(Uv=1,function(e){const t=gA(),r=bA(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,i.TYPED_ARRAY_SUPPORT=o(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const S=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(S,y),S.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function s(S){if(S>a)throw new RangeError('The value "'+S+'" is invalid for option "size"');const y=new Uint8Array(S);return Object.setPrototypeOf(y,i.prototype),y}function i(S,y,g){if(typeof S=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(S)}return l(S,y,g)}i.poolSize=8192;function l(S,y,g){if(typeof S=="string")return d(S,y);if(ArrayBuffer.isView(S))return h(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ze(S,ArrayBuffer)||S&&ze(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(S,SharedArrayBuffer)||S&&ze(S.buffer,SharedArrayBuffer)))return m(S,y,g);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const E=S.valueOf&&S.valueOf();if(E!=null&&E!==S)return i.from(E,y,g);const x=_(S);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return i.from(S[Symbol.toPrimitive]("string"),y,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}i.from=function(S,y,g){return l(S,y,g)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function u(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function c(S,y,g){return u(S),S<=0?s(S):y!==void 0?typeof g=="string"?s(S).fill(y,g):s(S).fill(y):s(S)}i.alloc=function(S,y,g){return c(S,y,g)};function p(S){return u(S),s(S<0?0:b(S)|0)}i.allocUnsafe=function(S){return p(S)},i.allocUnsafeSlow=function(S){return p(S)};function d(S,y){if((typeof y!="string"||y==="")&&(y="utf8"),!i.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const g=w(S,y)|0;let E=s(g);const x=E.write(S,y);return x!==g&&(E=E.slice(0,x)),E}function f(S){const y=S.length<0?0:b(S.length)|0,g=s(y);for(let E=0;E<y;E+=1)g[E]=S[E]&255;return g}function h(S){if(ze(S,Uint8Array)){const y=new Uint8Array(S);return m(y.buffer,y.byteOffset,y.byteLength)}return f(S)}function m(S,y,g){if(y<0||S.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<y+(g||0))throw new RangeError('"length" is outside of buffer bounds');let E;return y===void 0&&g===void 0?E=new Uint8Array(S):g===void 0?E=new Uint8Array(S,y):E=new Uint8Array(S,y,g),Object.setPrototypeOf(E,i.prototype),E}function _(S){if(i.isBuffer(S)){const y=b(S.length)|0,g=s(y);return g.length===0||S.copy(g,0,0,y),g}if(S.length!==void 0)return typeof S.length!="number"||Rt(S.length)?s(0):f(S);if(S.type==="Buffer"&&Array.isArray(S.data))return f(S.data)}function b(S){if(S>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return S|0}function v(S){return+S!=S&&(S=0),i.alloc(+S)}i.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==i.prototype},i.compare=function(y,g){if(ze(y,Uint8Array)&&(y=i.from(y,y.offset,y.byteLength)),ze(g,Uint8Array)&&(g=i.from(g,g.offset,g.byteLength)),!i.isBuffer(y)||!i.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===g)return 0;let E=y.length,x=g.length;for(let P=0,q=Math.min(E,x);P<q;++P)if(y[P]!==g[P]){E=y[P],x=g[P];break}return E<x?-1:x<E?1:0},i.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(y,g){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return i.alloc(0);let E;if(g===void 0)for(g=0,E=0;E<y.length;++E)g+=y[E].length;const x=i.allocUnsafe(g);let P=0;for(E=0;E<y.length;++E){let q=y[E];if(ze(q,Uint8Array))P+q.length>x.length?(i.isBuffer(q)||(q=i.from(q)),q.copy(x,P)):Uint8Array.prototype.set.call(x,q,P);else if(i.isBuffer(q))q.copy(x,P);else throw new TypeError('"list" argument must be an Array of Buffers');P+=q.length}return x};function w(S,y){if(i.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||ze(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const g=S.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&g===0)return 0;let x=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return dt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return St(S).length;default:if(x)return E?-1:dt(S).length;y=(""+y).toLowerCase(),x=!0}}i.byteLength=w;function R(S,y,g){let E=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,y>>>=0,g<=y))return"";for(S||(S="utf8");;)switch(S){case"hex":return ve(this,y,g);case"utf8":case"utf-8":return Q(this,y,g);case"ascii":return G(this,y,g);case"latin1":case"binary":return Z(this,y,g);case"base64":return D(this,y,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,y,g);default:if(E)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),E=!0}}i.prototype._isBuffer=!0;function T(S,y,g){const E=S[y];S[y]=S[g],S[g]=E}i.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<y;g+=2)T(this,g,g+1);return this},i.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<y;g+=4)T(this,g,g+3),T(this,g+1,g+2);return this},i.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<y;g+=8)T(this,g,g+7),T(this,g+1,g+6),T(this,g+2,g+5),T(this,g+3,g+4);return this},i.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Q(this,0,y):R.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(y){if(!i.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:i.compare(this,y)===0},i.prototype.inspect=function(){let y="";const g=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(y+=" ... "),"<Buffer "+y+">"},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(y,g,E,x,P){if(ze(y,Uint8Array)&&(y=i.from(y,y.offset,y.byteLength)),!i.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(g===void 0&&(g=0),E===void 0&&(E=y?y.length:0),x===void 0&&(x=0),P===void 0&&(P=this.length),g<0||E>y.length||x<0||P>this.length)throw new RangeError("out of range index");if(x>=P&&g>=E)return 0;if(x>=P)return-1;if(g>=E)return 1;if(g>>>=0,E>>>=0,x>>>=0,P>>>=0,this===y)return 0;let q=P-x,oe=E-g;const he=Math.min(q,oe),ue=this.slice(x,P),pe=y.slice(g,E);for(let Ee=0;Ee<he;++Ee)if(ue[Ee]!==pe[Ee]){q=ue[Ee],oe=pe[Ee];break}return q<oe?-1:oe<q?1:0};function C(S,y,g,E,x){if(S.length===0)return-1;if(typeof g=="string"?(E=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,Rt(g)&&(g=x?0:S.length-1),g<0&&(g=S.length+g),g>=S.length){if(x)return-1;g=S.length-1}else if(g<0)if(x)g=0;else return-1;if(typeof y=="string"&&(y=i.from(y,E)),i.isBuffer(y))return y.length===0?-1:N(S,y,g,E,x);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(S,y,g):Uint8Array.prototype.lastIndexOf.call(S,y,g):N(S,[y],g,E,x);throw new TypeError("val must be string, number or Buffer")}function N(S,y,g,E,x){let P=1,q=S.length,oe=y.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(S.length<2||y.length<2)return-1;P=2,q/=2,oe/=2,g/=2}function he(pe,Ee){return P===1?pe[Ee]:pe.readUInt16BE(Ee*P)}let ue;if(x){let pe=-1;for(ue=g;ue<q;ue++)if(he(S,ue)===he(y,pe===-1?0:ue-pe)){if(pe===-1&&(pe=ue),ue-pe+1===oe)return pe*P}else pe!==-1&&(ue-=ue-pe),pe=-1}else for(g+oe>q&&(g=q-oe),ue=g;ue>=0;ue--){let pe=!0;for(let Ee=0;Ee<oe;Ee++)if(he(S,ue+Ee)!==he(y,Ee)){pe=!1;break}if(pe)return ue}return-1}i.prototype.includes=function(y,g,E){return this.indexOf(y,g,E)!==-1},i.prototype.indexOf=function(y,g,E){return C(this,y,g,E,!0)},i.prototype.lastIndexOf=function(y,g,E){return C(this,y,g,E,!1)};function I(S,y,g,E){g=Number(g)||0;const x=S.length-g;E?(E=Number(E),E>x&&(E=x)):E=x;const P=y.length;E>P/2&&(E=P/2);let q;for(q=0;q<E;++q){const oe=parseInt(y.substr(q*2,2),16);if(Rt(oe))return q;S[g+q]=oe}return q}function j(S,y,g,E){return _t(dt(y,S.length-g),S,g,E)}function z(S,y,g,E){return _t(Xe(y),S,g,E)}function Y(S,y,g,E){return _t(St(y),S,g,E)}function U(S,y,g,E){return _t(At(y,S.length-g),S,g,E)}i.prototype.write=function(y,g,E,x){if(g===void 0)x="utf8",E=this.length,g=0;else if(E===void 0&&typeof g=="string")x=g,E=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(E)?(E=E>>>0,x===void 0&&(x="utf8")):(x=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const P=this.length-g;if((E===void 0||E>P)&&(E=P),y.length>0&&(E<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let q=!1;for(;;)switch(x){case"hex":return I(this,y,g,E);case"utf8":case"utf-8":return j(this,y,g,E);case"ascii":case"latin1":case"binary":return z(this,y,g,E);case"base64":return Y(this,y,g,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,y,g,E);default:if(q)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),q=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(S,y,g){return y===0&&g===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(y,g))}function Q(S,y,g){g=Math.min(S.length,g);const E=[];let x=y;for(;x<g;){const P=S[x];let q=null,oe=P>239?4:P>223?3:P>191?2:1;if(x+oe<=g){let he,ue,pe,Ee;switch(oe){case 1:P<128&&(q=P);break;case 2:he=S[x+1],(he&192)===128&&(Ee=(P&31)<<6|he&63,Ee>127&&(q=Ee));break;case 3:he=S[x+1],ue=S[x+2],(he&192)===128&&(ue&192)===128&&(Ee=(P&15)<<12|(he&63)<<6|ue&63,Ee>2047&&(Ee<55296||Ee>57343)&&(q=Ee));break;case 4:he=S[x+1],ue=S[x+2],pe=S[x+3],(he&192)===128&&(ue&192)===128&&(pe&192)===128&&(Ee=(P&15)<<18|(he&63)<<12|(ue&63)<<6|pe&63,Ee>65535&&Ee<1114112&&(q=Ee))}}q===null?(q=65533,oe=1):q>65535&&(q-=65536,E.push(q>>>10&1023|55296),q=56320|q&1023),E.push(q),x+=oe}return k(E)}const J=4096;function k(S){const y=S.length;if(y<=J)return String.fromCharCode.apply(String,S);let g="",E=0;for(;E<y;)g+=String.fromCharCode.apply(String,S.slice(E,E+=J));return g}function G(S,y,g){let E="";g=Math.min(S.length,g);for(let x=y;x<g;++x)E+=String.fromCharCode(S[x]&127);return E}function Z(S,y,g){let E="";g=Math.min(S.length,g);for(let x=y;x<g;++x)E+=String.fromCharCode(S[x]);return E}function ve(S,y,g){const E=S.length;(!y||y<0)&&(y=0),(!g||g<0||g>E)&&(g=E);let x="";for(let P=y;P<g;++P)x+=et[S[P]];return x}function ee(S,y,g){const E=S.slice(y,g);let x="";for(let P=0;P<E.length-1;P+=2)x+=String.fromCharCode(E[P]+E[P+1]*256);return x}i.prototype.slice=function(y,g){const E=this.length;y=~~y,g=g===void 0?E:~~g,y<0?(y+=E,y<0&&(y=0)):y>E&&(y=E),g<0?(g+=E,g<0&&(g=0)):g>E&&(g=E),g<y&&(g=y);const x=this.subarray(y,g);return Object.setPrototypeOf(x,i.prototype),x};function ne(S,y,g){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+y>g)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=this[y],P=1,q=0;for(;++q<g&&(P*=256);)x+=this[y+q]*P;return x},i.prototype.readUintBE=i.prototype.readUIntBE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=this[y+--g],P=1;for(;g>0&&(P*=256);)x+=this[y+--g]*P;return x},i.prototype.readUint8=i.prototype.readUInt8=function(y,g){return y=y>>>0,g||ne(y,1,this.length),this[y]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(y,g){return y=y>>>0,g||ne(y,2,this.length),this[y]|this[y+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(y,g){return y=y>>>0,g||ne(y,2,this.length),this[y]<<8|this[y+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},i.prototype.readBigUInt64LE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=g+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,P=this[++y]+this[++y]*2**8+this[++y]*2**16+E*2**24;return BigInt(x)+(BigInt(P)<<BigInt(32))}),i.prototype.readBigUInt64BE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=g*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],P=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+E;return(BigInt(x)<<BigInt(32))+BigInt(P)}),i.prototype.readIntLE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=this[y],P=1,q=0;for(;++q<g&&(P*=256);)x+=this[y+q]*P;return P*=128,x>=P&&(x-=Math.pow(2,8*g)),x},i.prototype.readIntBE=function(y,g,E){y=y>>>0,g=g>>>0,E||ne(y,g,this.length);let x=g,P=1,q=this[y+--x];for(;x>0&&(P*=256);)q+=this[y+--x]*P;return P*=128,q>=P&&(q-=Math.pow(2,8*g)),q},i.prototype.readInt8=function(y,g){return y=y>>>0,g||ne(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},i.prototype.readInt16LE=function(y,g){y=y>>>0,g||ne(y,2,this.length);const E=this[y]|this[y+1]<<8;return E&32768?E|4294901760:E},i.prototype.readInt16BE=function(y,g){y=y>>>0,g||ne(y,2,this.length);const E=this[y+1]|this[y]<<8;return E&32768?E|4294901760:E},i.prototype.readInt32LE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},i.prototype.readInt32BE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},i.prototype.readBigInt64LE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(E<<24);return(BigInt(x)<<BigInt(32))+BigInt(g+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),i.prototype.readBigInt64BE=Ze(function(y){y=y>>>0,je(y,"offset");const g=this[y],E=this[y+7];(g===void 0||E===void 0)&&Ae(y,this.length-8);const x=(g<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(x)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+E)}),i.prototype.readFloatLE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),r.read(this,y,!0,23,4)},i.prototype.readFloatBE=function(y,g){return y=y>>>0,g||ne(y,4,this.length),r.read(this,y,!1,23,4)},i.prototype.readDoubleLE=function(y,g){return y=y>>>0,g||ne(y,8,this.length),r.read(this,y,!0,52,8)},i.prototype.readDoubleBE=function(y,g){return y=y>>>0,g||ne(y,8,this.length),r.read(this,y,!1,52,8)};function me(S,y,g,E,x,P){if(!i.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>x||y<P)throw new RangeError('"value" argument is out of bounds');if(g+E>S.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(y,g,E,x){if(y=+y,g=g>>>0,E=E>>>0,!x){const oe=Math.pow(2,8*E)-1;me(this,y,g,E,oe,0)}let P=1,q=0;for(this[g]=y&255;++q<E&&(P*=256);)this[g+q]=y/P&255;return g+E},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(y,g,E,x){if(y=+y,g=g>>>0,E=E>>>0,!x){const oe=Math.pow(2,8*E)-1;me(this,y,g,E,oe,0)}let P=E-1,q=1;for(this[g+P]=y&255;--P>=0&&(q*=256);)this[g+P]=y/q&255;return g+E},i.prototype.writeUint8=i.prototype.writeUInt8=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,1,255,0),this[g]=y&255,g+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,65535,0),this[g]=y&255,this[g+1]=y>>>8,g+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,65535,0),this[g]=y>>>8,this[g+1]=y&255,g+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,4294967295,0),this[g+3]=y>>>24,this[g+2]=y>>>16,this[g+1]=y>>>8,this[g]=y&255,g+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,4294967295,0),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4};function ge(S,y,g,E,x){se(y,E,x,S,g,7);let P=Number(y&BigInt(4294967295));S[g++]=P,P=P>>8,S[g++]=P,P=P>>8,S[g++]=P,P=P>>8,S[g++]=P;let q=Number(y>>BigInt(32)&BigInt(4294967295));return S[g++]=q,q=q>>8,S[g++]=q,q=q>>8,S[g++]=q,q=q>>8,S[g++]=q,g}function Ge(S,y,g,E,x){se(y,E,x,S,g,7);let P=Number(y&BigInt(4294967295));S[g+7]=P,P=P>>8,S[g+6]=P,P=P>>8,S[g+5]=P,P=P>>8,S[g+4]=P;let q=Number(y>>BigInt(32)&BigInt(4294967295));return S[g+3]=q,q=q>>8,S[g+2]=q,q=q>>8,S[g+1]=q,q=q>>8,S[g]=q,g+8}i.prototype.writeBigUInt64LE=Ze(function(y,g=0){return ge(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=Ze(function(y,g=0){return Ge(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(y,g,E,x){if(y=+y,g=g>>>0,!x){const he=Math.pow(2,8*E-1);me(this,y,g,E,he-1,-he)}let P=0,q=1,oe=0;for(this[g]=y&255;++P<E&&(q*=256);)y<0&&oe===0&&this[g+P-1]!==0&&(oe=1),this[g+P]=(y/q>>0)-oe&255;return g+E},i.prototype.writeIntBE=function(y,g,E,x){if(y=+y,g=g>>>0,!x){const he=Math.pow(2,8*E-1);me(this,y,g,E,he-1,-he)}let P=E-1,q=1,oe=0;for(this[g+P]=y&255;--P>=0&&(q*=256);)y<0&&oe===0&&this[g+P+1]!==0&&(oe=1),this[g+P]=(y/q>>0)-oe&255;return g+E},i.prototype.writeInt8=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,1,127,-128),y<0&&(y=255+y+1),this[g]=y&255,g+1},i.prototype.writeInt16LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,32767,-32768),this[g]=y&255,this[g+1]=y>>>8,g+2},i.prototype.writeInt16BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,2,32767,-32768),this[g]=y>>>8,this[g+1]=y&255,g+2},i.prototype.writeInt32LE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,2147483647,-2147483648),this[g]=y&255,this[g+1]=y>>>8,this[g+2]=y>>>16,this[g+3]=y>>>24,g+4},i.prototype.writeInt32BE=function(y,g,E){return y=+y,g=g>>>0,E||me(this,y,g,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4},i.prototype.writeBigInt64LE=Ze(function(y,g=0){return ge(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=Ze(function(y,g=0){return Ge(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(S,y,g,E,x,P){if(g+E>S.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function le(S,y,g,E,x){return y=+y,g=g>>>0,x||ie(S,y,g,4),r.write(S,y,g,E,23,4),g+4}i.prototype.writeFloatLE=function(y,g,E){return le(this,y,g,!0,E)},i.prototype.writeFloatBE=function(y,g,E){return le(this,y,g,!1,E)};function xe(S,y,g,E,x){return y=+y,g=g>>>0,x||ie(S,y,g,8),r.write(S,y,g,E,52,8),g+8}i.prototype.writeDoubleLE=function(y,g,E){return xe(this,y,g,!0,E)},i.prototype.writeDoubleBE=function(y,g,E){return xe(this,y,g,!1,E)},i.prototype.copy=function(y,g,E,x){if(!i.isBuffer(y))throw new TypeError("argument should be a Buffer");if(E||(E=0),!x&&x!==0&&(x=this.length),g>=y.length&&(g=y.length),g||(g=0),x>0&&x<E&&(x=E),x===E||y.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),y.length-g<x-E&&(x=y.length-g+E);const P=x-E;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,E,x):Uint8Array.prototype.set.call(y,this.subarray(E,x),g),P},i.prototype.fill=function(y,g,E,x){if(typeof y=="string"){if(typeof g=="string"?(x=g,g=0,E=this.length):typeof E=="string"&&(x=E,E=this.length),x!==void 0&&typeof x!="string")throw new TypeError("encoding must be a string");if(typeof x=="string"&&!i.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(y.length===1){const q=y.charCodeAt(0);(x==="utf8"&&q<128||x==="latin1")&&(y=q)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(g<0||this.length<g||this.length<E)throw new RangeError("Out of range index");if(E<=g)return this;g=g>>>0,E=E===void 0?this.length:E>>>0,y||(y=0);let P;if(typeof y=="number")for(P=g;P<E;++P)this[P]=y;else{const q=i.isBuffer(y)?y:i.from(y,x),oe=q.length;if(oe===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(P=0;P<E-g;++P)this[P+g]=q[P%oe]}return this};const Be={};function at(S,y,g){Be[S]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(x){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:x,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(S,y){return`The "${S}" argument must be of type number. Received type ${typeof y}`},TypeError),at("ERR_OUT_OF_RANGE",function(S,y,g){let E=`The value of "${S}" is out of range.`,x=g;return Number.isInteger(g)&&Math.abs(g)>2**32?x=ct(String(g)):typeof g=="bigint"&&(x=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(x=ct(x)),x+="n"),E+=` It must be ${y}. Received ${x}`,E},RangeError);function ct(S){let y="",g=S.length;const E=S[0]==="-"?1:0;for(;g>=E+4;g-=3)y=`_${S.slice(g-3,g)}${y}`;return`${S.slice(0,g)}${y}`}function ce(S,y,g){je(y,"offset"),(S[y]===void 0||S[y+g]===void 0)&&Ae(y,S.length-(g+1))}function se(S,y,g,E,x,P){if(S>g||S<y){const q=typeof y=="bigint"?"n":"";let oe;throw P>3?y===0||y===BigInt(0)?oe=`>= 0${q} and < 2${q} ** ${(P+1)*8}${q}`:oe=`>= -(2${q} ** ${(P+1)*8-1}${q}) and < 2 ** ${(P+1)*8-1}${q}`:oe=`>= ${y}${q} and <= ${g}${q}`,new Be.ERR_OUT_OF_RANGE("value",oe,S)}ce(E,x,P)}function je(S,y){if(typeof S!="number")throw new Be.ERR_INVALID_ARG_TYPE(y,"number",S)}function Ae(S,y,g){throw Math.floor(S)!==S?(je(S,g),new Be.ERR_OUT_OF_RANGE(g||"offset","an integer",S)):y<0?new Be.ERR_BUFFER_OUT_OF_BOUNDS:new Be.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${y}`,S)}const ft=/[^+/0-9A-Za-z-_]/g;function ot(S){if(S=S.split("=")[0],S=S.trim().replace(ft,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function dt(S,y){y=y||1/0;let g;const E=S.length;let x=null;const P=[];for(let q=0;q<E;++q){if(g=S.charCodeAt(q),g>55295&&g<57344){if(!x){if(g>56319){(y-=3)>-1&&P.push(239,191,189);continue}else if(q+1===E){(y-=3)>-1&&P.push(239,191,189);continue}x=g;continue}if(g<56320){(y-=3)>-1&&P.push(239,191,189),x=g;continue}g=(x-55296<<10|g-56320)+65536}else x&&(y-=3)>-1&&P.push(239,191,189);if(x=null,g<128){if((y-=1)<0)break;P.push(g)}else if(g<2048){if((y-=2)<0)break;P.push(g>>6|192,g&63|128)}else if(g<65536){if((y-=3)<0)break;P.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((y-=4)<0)break;P.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return P}function Xe(S){const y=[];for(let g=0;g<S.length;++g)y.push(S.charCodeAt(g)&255);return y}function At(S,y){let g,E,x;const P=[];for(let q=0;q<S.length&&!((y-=2)<0);++q)g=S.charCodeAt(q),E=g>>8,x=g%256,P.push(x),P.push(E);return P}function St(S){return t.toByteArray(ot(S))}function _t(S,y,g,E){let x;for(x=0;x<E&&!(x+g>=y.length||x>=S.length);++x)y[x+g]=S[x];return x}function ze(S,y){return S instanceof y||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===y.name}function Rt(S){return S!==S}const et=function(){const S="0123456789abcdef",y=new Array(256);for(let g=0;g<16;++g){const E=g*16;for(let x=0;x<16;++x)y[E+x]=S[g]+S[x]}return y}();function Ze(S){return typeof BigInt>"u"?Dt:S}function Dt(){throw new Error("BigInt not supported")}}(Zf)),Zf}(function(e,t){(function(r,n){e.exports=n(PP(),UP(),VP(),CE(),ZP,vA(),EA())})(be,function(r,n,a,o,s,i,l){return function(){var u={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=a},300:function(f){f.exports=o},408:function(f){f.exports=l},25:function(f){f.exports=s},130:function(f){f.exports=i}},c={};function p(f){var h=c[f];if(h!==void 0)return h.exports;var m=c[f]={exports:{}};return u[f](m,m.exports,p),m.exports}p.n=function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return p.d(h,{a:h}),h},p.d=function(f,h){for(var m in h)p.o(h,m)&&!p.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:h[m]})},p.o=function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},p.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var d={};return function(){p.r(d),p.d(d,{assets:function(){return k},auth:function(){return ne},buildAnswer:function(){return iR},buildCarouselCard:function(){return oR},buildQuestion:function(){return ai},carouselCards:function(){return ti},contentInteraction:function(){return Ze},decodeBase64:function(){return lR},default:function(){return uR},editorialPages:function(){return fe},features:function(){return g},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return Oa},payments:function(){return Dn},people:function(){return Ar},peopleEngagement:function(){return Kn},qaQuestions:function(){return Ua},reportError:function(){return h.reportError},search:function(){return Ic}});var f=p(809),h=p(30),m=p(36),_={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:b,LOCALHOST:v,STAGING:w,STAGING_SPLITTER:R},ENVIRONMENTS:{PRODUCTION:T,LOCAL:C}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:N,EMAIL_IDS:I}}=_;let j={emailIds:{}};var z=p(300),Y=p.n(z);const U=async $=>{try{const{message:B,response:L,request:H}=$;let ae=B;return L?ae+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:H&&(ae+=" - The request was made but no response was received"),console.warn(ae),await(0,h.reportError)(new Error(ae)),ae}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:D,ENDPOINTS:{USERS:Q,CERTIFICATES:J}}}}=_;var k={certificates:{create:async($,B)=>{let L=[];try{const{data:H}=await Y().post(`${D}${Q}/${$}${J}`,B);H&&(L=H)}catch(H){await U(H)}return L}}};const{APIS:{AUTH_API:{BASE_URL:G,ENDPOINTS:{USER_PASSWORD:Z,USERS:ve}}},USERS:{MYSELF:ee}}=_;var ne={userPassword:{update:async $=>{let B=null;try{B=await Y().put(`${G}${ve}/${ee}${Z}`,$)}catch(L){B={message:(((L||{}).response||{}).data||{}).message},await U(L)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:me,ENDPOINTS:{ANSWERS:ge,QUESTIONS:Ge,LIKES:ie}}}}=_,le=`${me}${Ge}`;var xe={create:async({questionSlug:$},B)=>{try{await Y().post(`${le}/${encodeURIComponent($)}${ge}`,B)}catch(L){const H=await U(L);throw new Error(H)}},remove:async({questionSlug:$,answerSlug:B})=>{try{await Y().delete(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}`)}catch(L){const H=await U(L);throw new Error(H)}},update:async({questionSlug:$,answerSlug:B},L)=>{try{return await Y().put(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}`,L)}catch(H){const ae=await U(H);throw new Error(ae)}},like:async({questionSlug:$,answerSlug:B},L)=>{try{return await Y().post(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}${ie}`,L)}catch(H){const ae=await U(H);throw new Error(ae)}},unlike:async({questionSlug:$,answerSlug:B})=>{try{return await Y().delete(`${le}/${encodeURIComponent($)}${ge}/${encodeURIComponent(B)}${ie}`)}catch(L){const H=await U(L);throw new Error(H)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Be,ENDPOINTS:{QUESTIONS:at}}}}=_,ct=`${Be}${at}`;var ce={create:async $=>{try{return await Y().post(ct,$)}catch(B){const L=await U(B);throw new Error(L)}},remove:async({questionSlug:$})=>{try{await Y().delete(`${ct}/${encodeURIComponent($)}`)}catch(B){const L=await U(B);throw new Error(L)}},update:async({questionSlug:$},B)=>{try{return await Y().put(`${ct}/${encodeURIComponent($)}`,B)}catch(L){const H=await U(L);throw new Error(H)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{REPLIES:je,ANSWERS:Ae,QUESTIONS:ft,LIKES:ot}}}}=_,dt=`${se}${ft}`,Xe=({questionSlug:$,answerSlug:B,replySlug:L},H=!1)=>{let ae=`${dt}/${encodeURIComponent($)}${Ae}/${encodeURIComponent(B)}${je}`;return L&&(ae=`${ae}/${encodeURIComponent(L)}`,H&&(ae=`${ae}${ot}`)),ae};var At={create:async({questionSlug:$,answerSlug:B},L)=>{try{return await Y().post(Xe({questionSlug:$,answerSlug:B}),L)}catch(H){const ae=await U(H);throw new Error(ae)}},update:async({questionSlug:$,answerSlug:B,replySlug:L},H)=>{try{return await Y().put(Xe({questionSlug:$,answerSlug:B,replySlug:L}),H)}catch(ae){const Pe=await U(ae);throw new Error(Pe)}},remove:async({questionSlug:$,answerSlug:B,replySlug:L})=>{try{await Y().delete(Xe({questionSlug:$,answerSlug:B,replySlug:L}))}catch(H){const ae=await U(H);throw new Error(ae)}},like:async({questionSlug:$,answerSlug:B,replySlug:L},H)=>{try{await Y().post(Xe({questionSlug:$,answerSlug:B,replySlug:L},!0),H)}catch(ae){const Pe=await U(ae);throw new Error(Pe)}},unlike:async({questionSlug:$,answerSlug:B,replySlug:L})=>{try{await Y().delete(Xe({questionSlug:$,answerSlug:B,replySlug:L},!0))}catch(H){const ae=await U(H);throw new Error(ae)}},getReplyUrl:Xe};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:St,ENDPOINTS:{QUESTIONS:_t,ANSWERS:ze,LIKES:Rt}}}}=_,et=`${St}${_t}`;var Ze={answers:xe,questions:ce,replies:At,likes:{create:async($,B)=>{try{return await Y().post(`${et}/${encodeURIComponent($)}${ze}/${encodeURIComponent(B)}${Rt}`)}catch(L){const H=await U(L);throw new Error(H)}},remove:async($,B)=>{try{return await Y().delete(`${et}/${encodeURIComponent($)}${ze}/${encodeURIComponent(B)}${Rt}`)}catch(L){const H=await U(L);throw new Error(H)}}}};const{APIS:{FEATURES_API:{BASE_URL:Dt,ENDPOINTS:{FLAGS:S}}}}=_,y=`${Dt}${S}`;var g={flags:{read:async $=>{let B=null;try{const{data:L}=await Y().get(`${y}/${encodeURIComponent($)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(B=L)}catch(L){await U(L)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:E,ENDPOINTS:{ACCOUNTS:x}}}}=_;var P={create:async $=>{try{await Y().post(`${E}${x}`,$)}catch(B){throw await U(B),B}},read:async $=>{let B=null;try{({data:B}=await Y().get(`${E}${x}/${encodeURIComponent($)}`))}catch(L){await U(L)}return B},update:async($,B)=>{try{await Y().put(`${E}${x}/${encodeURIComponent($)}`,B)}catch(L){throw await U(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:oe}}}}=_;var he={create:async $=>{try{await Y().post(`${q}${oe}`,$)}catch(B){throw await U(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:ue,ENDPOINTS:{EVENT_REGISTRATIONS:pe}}}}=_;var Ee={create:async $=>{try{await Y().post(`${ue}${pe}`,$)}catch(B){const L=await U(B);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:pt,ENDPOINTS:{LOGINS:ur,LOGIN_PASSWORDLESS:en}}}}=_,It=`${pt}${ur}`;var Oa={accounts:P,bulkEnrolments:he,eventRegistrations:Ee,passwordless:{update:async $=>{try{await Y().put(`${It}/${encodeURIComponent($)}${en}`)}catch(B){throw await U(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:tn,ENDPOINTS:{PRODUCTS:qn}}}}=_,xr=`${tn}${qn}`;var Dn={products:{list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(xr,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Fn,ENDPOINTS:{BULK_ENROLMENTS:rn}}}}=_;var Ft={list:async $=>{let B=[];try{const{data:L}=await Y().get(`${Fn}${rn}`,{params:$});L&&L.length&&(B=L)}catch(L){await U(L)}return B}},Un=p(25);const{OK:xa,MULTIPLE_CHOICES:Pa,NOT_FOUND:Aa,FORBIDDEN:jn}=Un.StatusCodes,Ct=$=>$>=xa&&$<Pa||$===jn||$===Aa,{APIS:{PEOPLE_API:{BASE_URL_V2:nn,ENDPOINTS:{USERS:an}}}}=_,cr=async $=>{let B=null;try{const{data:L}=await Y().get(`${nn}${an}/${encodeURIComponent($)}`,{validateStatus:Ct});L&&L.id&&(B=L)}catch(L){await U(L)}return B},on=async $=>{let B=[];try{if($&&$.length<2)throw new Error("users list method requires at least two ids");const L=$.map(ae=>`ids=${encodeURIComponent(ae)}`).join("&"),H=await Y().get(`${nn}${an}?${L}`,{validateStatus:Ct});H&&H.length&&(B=H)}catch(L){await U(L)}return B};var Ia={read:cr,update:async($,B)=>{let L=!1;try{const{data:H}=await Y().put(`${nn}${an}/${encodeURIComponent($)}`,B);L=!(!H||!H.id)}catch(H){await U(H)}return L},list:on};const{APIS:{PEOPLE_API:{BASE_URL_V2:Ut,ENDPOINTS:{USERS:Na,USER_LIKES:Ma}}},USERS:{MYSELF:ka}}=_,$a=`${Ut}${Na}/${ka}${Ma}`,sn=async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get($a,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B};var jt={list:sn},La={authors:{readQuestionAuthors:async($,B,L)=>{try{if($.author=await cr($.authorId),$.answers&&$.answers.length&&!L.ignoreAnswersAuthors){$.answers.sort((ae,Pe)=>new Date(Pe.updatedAt)-new Date(ae.updatedAt)),$.totalAnswers=$.answers.length;let H=$.answers;if(L.limit&&L.pageNumber){const ae=L.limit*(L.pageNumber-1);H=$.answers.slice(ae,ae+L.limit)}for(let ae of H){ae.author=ae.authorId&&await cr(ae.authorId)||{};const[Pe]=B?await sn({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:ae.slug}):[null];ae.userLiked=!!Pe}$.answers=H}else $.answers||($.answers=[]);return $}catch(H){throw await U(H),new Error(`Cannot read authors for question: ${H.message}`)}},readAuthors:async($=[])=>{let B=[];try{if(Array.isArray($)===!1)throw new Error("authorIds is not an array!");if($&&$.length===1){const L=await cr($[0]);L&&B.push(L)}else if($&&$.length>1){const L=await on($);L&&L.length>0&&(B=L)}}catch(L){throw await U(L),new Error(`Cannot read authors: ${L.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Ba,ENDPOINTS:{REGISTRATIONS:qa}}}}=_;var Da={list:async $=>{let B=[];try{const{data:L}=await Y().get(`${Ba}${qa}`,{params:$});L&&L.length&&(B=L)}catch(L){await U(L)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:A,ENDPOINTS:{USERS:V,USER_COURSES:W}}},USERS:{MYSELF:X}}=_,ye=`${A}${V}/${X}${W}`;var _e={create:async $=>{try{await Y().post(ye,$)}catch(B){await U(B)}},list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(ye,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B},update:async($,B)=>{try{await Y().put(`${ye}/${$}`,B)}catch(L){await U(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:qe,ENDPOINTS:{USERS:ht,USER_EVENTS:mt}}},USERS:{MYSELF:it}}=_,Qe=`${qe}${ht}/${it}${mt}`;var ln={list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(Qe,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pr,ENDPOINTS:{USERS:Fa,USER_LESSONS:Hn}}},USERS:{MYSELF:Gn}}=_,Wn=`${Pr}${Fa}/${Gn}${Hn}`;var Vn={create:async $=>{let B=null;try{B=await Y().post(Wn,$)}catch(L){await U(L)}return B},list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(Wn,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{USERS:zn,USER_PRODUCTS:un}}},USERS:{MYSELF:Yn}}=_,fr=`${Nt}${zn}/${Yn}${un}`;var Ht={create:async $=>{let B=null;try{B=await Y().post(fr,$)}catch(L){await U(L)}return B},list:async $=>{let B=[],L=$?{params:$}:{params:{}};try{const{data:H}=await Y().get(fr,L);H&&H.length&&(B=H)}catch(H){await U(H)}return B},update:async($,B)=>{try{await Y().put(`${fr}/${$}`,B)}catch(L){await U(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:dr,ENDPOINTS:{USERS:zo,USER_RATINGS:pr}}},USERS:{MYSELF:Tc}}=_,Yo=`${dr}${zo}/${Tc}${pr}`;var Ar={bulkEnrolments:Ft,handlers:La,registrations:Da,users:Ia,userCourses:_e,userEvents:ln,userLessons:Vn,userLikes:jt,userProducts:Ht,userRatings:{create:async $=>{let B=null;try{const{data:L}=await Y().post(Yo,$);L!=null&&L.id&&(B=L)}catch(L){await U(L)}return B},update:async($,B)=>{try{await Y().put(`${Yo}/${$}`,B)}catch(L){await U(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Sc,ENDPOINTS:{ENQUIRY_EMAILS:Rc}}}}=_;var Cc={create:async $=>{let B=null;try{const{data:L}=await Y().post(`${Sc}${Rc}`,$);L&&(B=L)}catch(L){await U(L)}return B}},Ko={forms:{sendEnquiryEmails:async $=>{let B=null;try{const{emailIds:L}=j;B=await Kn.emails.create({...L,...$})}catch(L){await U(L)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:hr,ENDPOINTS:{USERS:Oc,USER_PROPERTIES:Xo}}},USERS:{MYSELF:xc}}=_;var Kn={emails:Cc,handlers:Ko,userProperties:{update:async($,B)=>{try{await Y().put(`${hr}${Oc}/${xc}${Xo}/${$}`,B)}catch(L){await U(L)}}}},Qo=p(130);const{APIS:{SEARCH_API:{BASE_URL:Pc,ENDPOINTS:{SEARCH:Ac}}}}=_,Jo=`${Pc}${Ac}`;var Ic={ask:async $=>{try{let B=null;const{data:L}=await Y().get(Jo,{params:{question:$}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(B=L),B}catch(B){const L=await U(B);throw new Error(L)}},stream:($,B,L)=>{const H=(0,Qo.io)(void 0,{path:"/api/search-api/web-sockets"});function ae(){H.emit("search",{question:$})}function Pe(Ve){L(Ve),Fe(),H.disconnect()}function Fe(){H.off("connect",ae),H.off("update",B),H.off("result",Pe)}return H.on("connect",ae),H.on("update",B),H.on("result",Pe),Fe}};const{CONTENTFUL:Xn}=_,{CARD_TYPES:Zo}=Xn.CAROUSELS;var ti={read:async($,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!$||!Zo[$])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:H}=Zo[$];return await(0,f.getEntry)({content_type:$,"sys.id":B.sys.id,include:L,select:H},{assetDetails:!0})}catch(L){throw await U(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:Nc}=_,{INCLUDE:O,SELECT:F,TYPE:K}=Nc.EDITORIAL_PAGES;var fe={read:async $=>{try{return await(0,f.getEntry)({content_type:K,"fields.slug":$,include:O,select:F})}catch(B){throw await U(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:Je}=_,{TYPE:tt,ORDER:Ot,SELECT:st,SKIP:ri,LIMIT:Ir,INCLUDE:ni}=Je.QUESTIONS;var Ua={read:async $=>{try{return await(0,f.getEntry)({content_type:tt,"fields.slug":$,include:2,select:st})}catch(B){throw await U(B),new Error(`Cannot read question: ${B.message}`)}},list:async($={})=>{try{return await(0,f.getEntries)({content_type:tt,include:ni,limit:Ir,order:Ot,select:st,skip:ri,...$})}catch(B){throw await U(B),new Error(`Cannot list questions: ${B.message}`)}}},ai=async($,B,L={ignoreAnswersAuthors:!1})=>{try{let H={};return H=await Ua.read($),H=await Ar.handlers.authors.readQuestionAuthors(H,B,L),H}catch(H){throw await U(H),new Error(`Cannot build question: ${H.message}`)}};const{ARTICLES:{TYPE:ja},COURSES:{TYPE:Qn},EVENTS:{TYPE:tR},LISTS:{TYPE:rR},QUESTIONS:{TYPE:nR},LEARNING_HUB:{TYPE:aR}}=_.CONTENTFUL,Ha=$=>$&&$.url?(Object.assign($,{aspect:"responsiveCard",query:"q=90&fit=fill"}),$):null,Mc={[ja]:async $=>{const{authorIds:B,authorTag:L,image:H,publishedDate:ae,readingTime:Pe,slug:Fe,title:Ve}=$,xt=await Ar.handlers.authors.readAuthors(B),Jt=xt&&xt.length?xt:L?[L]:null;return{banner:Ha(H),contributors:Jt,publishedDate:ae,readingTime:Pe,slug:Fe,title:Ve}},[Qn]:async($,B)=>{const{banner:L,freeCourse:H,partnershipDetails:ae,slug:Pe,title:Fe,registered:Ve}=$,xt={banner:Ha(L),slug:Pe,title:Fe,pill:H?"free":"premium",registered:!!Ve};if(ae){const{partners:Jt}=ae;xt.partner=Jt&&Jt.length&&ae.partners[0]}if(Ve===void 0&&B){const[Jt]=await Ar.userProducts.list({courseSlug:Pe,isEnrolled:!0,scope:"active"});xt.registered=!!Jt}return xt},[tR]:async($,B)=>{const{bannerImage:L,defaultStartDate:H,isEventOngoing:ae,slug:Pe,speakers:Fe,title:Ve,registered:xt}=$,Jt=new Date(H),cR=!!Jt&&Jt<new Date;if(Fe&&Fe.length)for(const oi of Fe)oi.image=(kc=oi.image)&&kc.url?`${kc.url}?w=100&h=100&fit=thumb&f=center`:null;var kc;const cm={banner:Ha(L),dateHasPassed:cR,title:Ve,slug:Pe,isOngoingEvent:ae,contributors:Fe,startDate:Jt,registered:!!xt};if(xt===void 0&&B){const[oi]=await Ar.userEvents.list({eventSlug:Pe});cm.registered=!!oi}return cm},[rR]:async $=>{const{hero:B,slug:L,title:H}=$;return{banner:Ha(B),slug:L,title:H}},[nR]:async $=>{const{answers:B,authorId:L,createdAt:H,slug:ae,title:Pe}=$;let Fe=null;if(L){const Ve=await Ar.users.read(L);Ve&&(Fe=Ve)}return{answers:B&&B.length?B.length:0,contributors:Fe?[Fe]:[],createdAt:H,slug:ae,title:Pe}},[aR]:$=>{const{bannerSection:B,customLabel:L,slug:H,title:ae}=$;return{banner:Ha(B.image),slug:H,title:ae,customLabel:L}},people:$=>{const{id:B,name:L,jobTitle:H,location:ae,image:Pe}=$;return{profile:Pe,slug:B,title:L,text:H,secondaryText:ae}}};var oR=async({contentType:$,...B}={},L)=>{try{if(!Mc[$])throw new Error("Content type not supported");if(typeof Mc[$]!="function")throw new Error("No builder function for content type");return $!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await ti.read($,B)),{contentType:$,...await Mc[$](B,L)}}catch(H){throw await U(H),new Error(`Cannot build carousel card: ${H.message}`)}},iR=async($,B,L={})=>{try{if(!$.replies||$.replies.length===0)return $.replies=[],$;$.replies.sort((ae,Pe)=>new Date(ae.createdAt)-new Date(Pe.createdAt)),$.totalReplies=$.totalReplies||$.replies.length;let H=$.replies;if(L.limit&&L.pageNumber){const ae=L.limit*(L.pageNumber-1);H=$.replies.slice(ae,ae+L.limit)}for(const ae of H){if(ae.authorId===$.authorId){ae.author=$.author,ae.userLiked=!1;continue}ae.author=ae.authorId&&await cr(ae.authorId)||{};const[Pe]=B?await sn({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:ae.slug}):[null];ae.userLiked=!!Pe}return $.replies=H,$}catch(H){throw await U(H),new Error(`Cannot build replies for answer: ${H.message}`)}},sR=p(408);const lR=$=>$&&sR.Buffer.from($,"base64").toString("ascii");function uR({contentContext:$=null,errorsContext:B=null,gtmContext:L=null,origin:H}){try{const ae=(Pe=>{let Fe=null;Pe?Fe=Pe:typeof window<"u"&&(Fe=window.origin||window.location.origin),Fe||new Error("Cannot select environment: Website not defined");let Ve=null;const xt=Fe.match(w);return xt?Ve=xt[1].split(R)[0]:Fe===b?Ve=T:Fe.includes(v)&&(Ve=C),Ve||new Error(`Cannot select environment: No rule for website ${Fe}`),Ve})(H);return $&&(0,f.setContext)(Object.assign({},$,{environment:ae})),B&&(0,h.setContext)(Object.assign({},B,{environment:ae})),L&&((0,m.setContext)(Object.assign({},L,{environment:ae})),(0,m.setupGTM)()),(({environment:Pe})=>{const Fe=(Ve=>{if(!Ve)throw new Error("Cannot map environment: Environment not defined");if(!N[Ve])throw new Error(`Cannot map environment: No mapping found for environment ${Ve}`);return N[Ve]})(Pe);j.emailIds=I[Fe]})(Object.assign({},{environment:ae})),ae}catch(ae){console.warn(`Cannot load SDK: ${ae.message}`)}}}(),d}()})})(vE);var _A=vE.exports;const mo={Off:"off",On:"on",Cookie:"cookie"},wA=e=>{const[t]=yE(),[r,n]=re.useState(null),[a,o]=re.useState(!1),[s,i]=re.useState(mo.Off);return re.useEffect(()=>{e&&_A.features.flags.read(e).then(l=>{i(l.featureState),n(null)}).catch(l=>{i(mo.Off),n(l)})},[e]),re.useEffect(()=>{switch(s){case mo.Off:o(!1);break;case mo.On:o(!0);break;case mo.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[s,t]),{isFeatureActive:a,error:r}};function TA(e,t,r){var n=this,a=re.useRef(null),o=re.useRef(0),s=re.useRef(null),i=re.useRef([]),l=re.useRef(),u=re.useRef(),c=re.useRef(e),p=re.useRef(!0);re.useEffect(function(){c.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,m="maxWait"in r,_=m?Math.max(+r.maxWait||0,t):null;re.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var b=re.useMemo(function(){var v=function(I){var j=i.current,z=l.current;return i.current=l.current=null,o.current=I,u.current=c.current.apply(z,j)},w=function(I,j){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(I):setTimeout(I,j)},R=function(I){if(!p.current)return!1;var j=I-a.current;return!a.current||j>=t||j<0||m&&I-o.current>=_},T=function(I){return s.current=null,h&&i.current?v(I):(i.current=l.current=null,u.current)},C=function I(){var j=Date.now();if(R(j))return T(j);if(p.current){var z=t-(j-a.current),Y=m?Math.min(z,_-(j-o.current)):z;w(I,Y)}},N=function(){var I=Date.now(),j=R(I);if(i.current=[].slice.call(arguments),l.current=n,a.current=I,j){if(!s.current&&p.current)return o.current=a.current,w(C,t),f?v(a.current):u.current;if(m)return w(C,t),v(a.current)}return s.current||w(C,t),u.current};return N.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,i.current=a.current=l.current=s.current=null},N.isPending=function(){return!!s.current},N.flush=function(){return s.current?T(Date.now()):u.current},N},[f,m,t,_,h,d]);return b}function f0(e,t,r){var n=r===void 0?{}:r,a=n.leading,o=n.trailing;return TA(e,t,{maxWait:t,leading:a===void 0||a,trailing:o===void 0||o})}let ed;const xs=(e=!0,t=!1)=>{if(!e)return;const[r,n]=re.useState(0)||[!1,()=>{}];re.useEffect(()=>(o(),window.addEventListener("resize",s),()=>{clearTimeout(ed),s.flush(),window.removeEventListener("resize",s)}),[]);const a=()=>window.innerWidth,o=()=>{n(a())},s=f0(()=>{a()!==r&&(t&&(clearTimeout(ed),document.body.classList.add("is-resizing"),ed=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},d0=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[a,o]=re.useState({current:0,past:0})||[!1,()=>{}],[s,i]=re.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];re.useEffect(()=>(l(),window.addEventListener("scroll",u),()=>{u.flush(),window.removeEventListener("scroll",u)}),[]);const l=()=>{const c=window.scrollY,p=a.current,d=c-p,f=d>0?"down":"up";if(o({current:c,past:p}),f==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(r(),i({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(n(),i({scrollUp:!0,scrollDown:!1}))},u=f0(()=>{l()},250);return a};var rs={exports:{}};rs.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",s="[object Array]",i="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",p="[object GeneratorFunction]",d="[object Map]",f="[object Number]",h="[object Object]",m="[object Promise]",_="[object RegExp]",b="[object Set]",v="[object String]",w="[object Symbol]",R="[object WeakMap]",T="[object ArrayBuffer]",C="[object DataView]",N="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",Y="[object Int32Array]",U="[object Uint8Array]",D="[object Uint8ClampedArray]",Q="[object Uint16Array]",J="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,Z=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,ee={};ee[o]=ee[s]=ee[T]=ee[C]=ee[i]=ee[l]=ee[N]=ee[I]=ee[j]=ee[z]=ee[Y]=ee[d]=ee[f]=ee[h]=ee[_]=ee[b]=ee[v]=ee[w]=ee[U]=ee[D]=ee[Q]=ee[J]=!0,ee[u]=ee[c]=ee[R]=!1;var ne=typeof be=="object"&&be&&be.Object===Object&&be,me=typeof self=="object"&&self&&self.Object===Object&&self,ge=ne||me||Function("return this")(),Ge=t&&!t.nodeType&&t,ie=Ge&&!0&&e&&!e.nodeType&&e,le=ie&&ie.exports===Ge;function xe(O,F){return O.set(F[0],F[1]),O}function Be(O,F){return O.add(F),O}function at(O,F){for(var K=-1,fe=O?O.length:0;++K<fe&&F(O[K],K,O)!==!1;);return O}function ct(O,F){for(var K=-1,fe=F.length,Je=O.length;++K<fe;)O[Je+K]=F[K];return O}function ce(O,F,K,fe){var Je=-1,tt=O?O.length:0;for(fe&&tt&&(K=O[++Je]);++Je<tt;)K=F(K,O[Je],Je,O);return K}function se(O,F){for(var K=-1,fe=Array(O);++K<O;)fe[K]=F(K);return fe}function je(O,F){return O==null?void 0:O[F]}function Ae(O){var F=!1;if(O!=null&&typeof O.toString!="function")try{F=!!(O+"")}catch{}return F}function ft(O){var F=-1,K=Array(O.size);return O.forEach(function(fe,Je){K[++F]=[Je,fe]}),K}function ot(O,F){return function(K){return O(F(K))}}function dt(O){var F=-1,K=Array(O.size);return O.forEach(function(fe){K[++F]=fe}),K}var Xe=Array.prototype,At=Function.prototype,St=Object.prototype,_t=ge["__core-js_shared__"],ze=function(){var O=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Rt=At.toString,et=St.hasOwnProperty,Ze=St.toString,Dt=RegExp("^"+Rt.call(et).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=le?ge.Buffer:void 0,y=ge.Symbol,g=ge.Uint8Array,E=ot(Object.getPrototypeOf,Object),x=Object.create,P=St.propertyIsEnumerable,q=Xe.splice,oe=Object.getOwnPropertySymbols,he=S?S.isBuffer:void 0,ue=ot(Object.keys,Object),pe=dr(ge,"DataView"),Ee=dr(ge,"Map"),pt=dr(ge,"Promise"),ur=dr(ge,"Set"),en=dr(ge,"WeakMap"),It=dr(Object,"create"),Oa=hr(pe),tn=hr(Ee),qn=hr(pt),xr=hr(ur),Dn=hr(en),Fn=y?y.prototype:void 0,rn=Fn?Fn.valueOf:void 0;function Ft(O){var F=-1,K=O?O.length:0;for(this.clear();++F<K;){var fe=O[F];this.set(fe[0],fe[1])}}function Un(){this.__data__=It?It(null):{}}function xa(O){return this.has(O)&&delete this.__data__[O]}function Pa(O){var F=this.__data__;if(It){var K=F[O];return K===n?void 0:K}return et.call(F,O)?F[O]:void 0}function Aa(O){var F=this.__data__;return It?F[O]!==void 0:et.call(F,O)}function jn(O,F){var K=this.__data__;return K[O]=It&&F===void 0?n:F,this}Ft.prototype.clear=Un,Ft.prototype.delete=xa,Ft.prototype.get=Pa,Ft.prototype.has=Aa,Ft.prototype.set=jn;function Ct(O){var F=-1,K=O?O.length:0;for(this.clear();++F<K;){var fe=O[F];this.set(fe[0],fe[1])}}function nn(){this.__data__=[]}function an(O){var F=this.__data__,K=X(F,O);if(K<0)return!1;var fe=F.length-1;return K==fe?F.pop():q.call(F,K,1),!0}function cr(O){var F=this.__data__,K=X(F,O);return K<0?void 0:F[K][1]}function on(O){return X(this.__data__,O)>-1}function Ia(O,F){var K=this.__data__,fe=X(K,O);return fe<0?K.push([O,F]):K[fe][1]=F,this}Ct.prototype.clear=nn,Ct.prototype.delete=an,Ct.prototype.get=cr,Ct.prototype.has=on,Ct.prototype.set=Ia;function Ut(O){var F=-1,K=O?O.length:0;for(this.clear();++F<K;){var fe=O[F];this.set(fe[0],fe[1])}}function Na(){this.__data__={hash:new Ft,map:new(Ee||Ct),string:new Ft}}function Ma(O){return Ht(this,O).delete(O)}function ka(O){return Ht(this,O).get(O)}function $a(O){return Ht(this,O).has(O)}function sn(O,F){return Ht(this,O).set(O,F),this}Ut.prototype.clear=Na,Ut.prototype.delete=Ma,Ut.prototype.get=ka,Ut.prototype.has=$a,Ut.prototype.set=sn;function jt(O){this.__data__=new Ct(O)}function La(){this.__data__=new Ct}function Ba(O){return this.__data__.delete(O)}function qa(O){return this.__data__.get(O)}function Da(O){return this.__data__.has(O)}function A(O,F){var K=this.__data__;if(K instanceof Ct){var fe=K.__data__;if(!Ee||fe.length<r-1)return fe.push([O,F]),this;K=this.__data__=new Ut(fe)}return K.set(O,F),this}jt.prototype.clear=La,jt.prototype.delete=Ba,jt.prototype.get=qa,jt.prototype.has=Da,jt.prototype.set=A;function V(O,F){var K=Kn(O)||xc(O)?se(O.length,String):[],fe=K.length,Je=!!fe;for(var tt in O)(F||et.call(O,tt))&&!(Je&&(tt=="length"||Sc(tt,fe)))&&K.push(tt);return K}function W(O,F,K){var fe=O[F];(!(et.call(O,F)&&Xo(fe,K))||K===void 0&&!(F in O))&&(O[F]=K)}function X(O,F){for(var K=O.length;K--;)if(Xo(O[K][0],F))return K;return-1}function ye(O,F){return O&&un(F,ei(F),O)}function _e(O,F,K,fe,Je,tt,Ot){var st;if(fe&&(st=tt?fe(O,Je,tt,Ot):fe(O)),st!==void 0)return st;if(!Xn(O))return O;var ri=Kn(O);if(ri){if(st=Tc(O),!F)return zn(O,st)}else{var Ir=pr(O),ni=Ir==c||Ir==p;if(Ac(O))return ln(O,F);if(Ir==h||Ir==o||ni&&!tt){if(Ae(O))return tt?O:{};if(st=Yo(ni?{}:O),!F)return Yn(O,ye(st,O))}else{if(!ee[Ir])return tt?O:{};st=Ar(O,Ir,_e,F)}}Ot||(Ot=new jt);var Ua=Ot.get(O);if(Ua)return Ua;if(Ot.set(O,st),!ri)var ai=K?fr(O):ei(O);return at(ai||O,function(ja,Qn){ai&&(Qn=ja,ja=O[Qn]),W(st,Qn,_e(ja,F,K,fe,Qn,O,Ot))}),st}function qe(O){return Xn(O)?x(O):{}}function ht(O,F,K){var fe=F(O);return Kn(O)?fe:ct(fe,K(O))}function mt(O){return Ze.call(O)}function it(O){if(!Xn(O)||Cc(O))return!1;var F=Jo(O)||Ae(O)?Dt:Z;return F.test(hr(O))}function Qe(O){if(!Ko(O))return ue(O);var F=[];for(var K in Object(O))et.call(O,K)&&K!="constructor"&&F.push(K);return F}function ln(O,F){if(F)return O.slice();var K=new O.constructor(O.length);return O.copy(K),K}function Pr(O){var F=new O.constructor(O.byteLength);return new g(F).set(new g(O)),F}function Fa(O,F){var K=F?Pr(O.buffer):O.buffer;return new O.constructor(K,O.byteOffset,O.byteLength)}function Hn(O,F,K){var fe=F?K(ft(O),!0):ft(O);return ce(fe,xe,new O.constructor)}function Gn(O){var F=new O.constructor(O.source,G.exec(O));return F.lastIndex=O.lastIndex,F}function Wn(O,F,K){var fe=F?K(dt(O),!0):dt(O);return ce(fe,Be,new O.constructor)}function Vn(O){return rn?Object(rn.call(O)):{}}function Nt(O,F){var K=F?Pr(O.buffer):O.buffer;return new O.constructor(K,O.byteOffset,O.length)}function zn(O,F){var K=-1,fe=O.length;for(F||(F=Array(fe));++K<fe;)F[K]=O[K];return F}function un(O,F,K,fe){K||(K={});for(var Je=-1,tt=F.length;++Je<tt;){var Ot=F[Je],st=fe?fe(K[Ot],O[Ot],Ot,K,O):void 0;W(K,Ot,st===void 0?O[Ot]:st)}return K}function Yn(O,F){return un(O,zo(O),F)}function fr(O){return ht(O,ei,zo)}function Ht(O,F){var K=O.__data__;return Rc(F)?K[typeof F=="string"?"string":"hash"]:K.map}function dr(O,F){var K=je(O,F);return it(K)?K:void 0}var zo=oe?ot(oe,Object):ti,pr=mt;(pe&&pr(new pe(new ArrayBuffer(1)))!=C||Ee&&pr(new Ee)!=d||pt&&pr(pt.resolve())!=m||ur&&pr(new ur)!=b||en&&pr(new en)!=R)&&(pr=function(O){var F=Ze.call(O),K=F==h?O.constructor:void 0,fe=K?hr(K):void 0;if(fe)switch(fe){case Oa:return C;case tn:return d;case qn:return m;case xr:return b;case Dn:return R}return F});function Tc(O){var F=O.length,K=O.constructor(F);return F&&typeof O[0]=="string"&&et.call(O,"index")&&(K.index=O.index,K.input=O.input),K}function Yo(O){return typeof O.constructor=="function"&&!Ko(O)?qe(E(O)):{}}function Ar(O,F,K,fe){var Je=O.constructor;switch(F){case T:return Pr(O);case i:case l:return new Je(+O);case C:return Fa(O,fe);case N:case I:case j:case z:case Y:case U:case D:case Q:case J:return Nt(O,fe);case d:return Hn(O,fe,K);case f:case v:return new Je(O);case _:return Gn(O);case b:return Wn(O,fe,K);case w:return Vn(O)}}function Sc(O,F){return F=F??a,!!F&&(typeof O=="number"||ve.test(O))&&O>-1&&O%1==0&&O<F}function Rc(O){var F=typeof O;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?O!=="__proto__":O===null}function Cc(O){return!!ze&&ze in O}function Ko(O){var F=O&&O.constructor,K=typeof F=="function"&&F.prototype||St;return O===K}function hr(O){if(O!=null){try{return Rt.call(O)}catch{}try{return O+""}catch{}}return""}function Oc(O){return _e(O,!0,!0)}function Xo(O,F){return O===F||O!==O&&F!==F}function xc(O){return Pc(O)&&et.call(O,"callee")&&(!P.call(O,"callee")||Ze.call(O)==o)}var Kn=Array.isArray;function Qo(O){return O!=null&&Ic(O.length)&&!Jo(O)}function Pc(O){return Zo(O)&&Qo(O)}var Ac=he||Nc;function Jo(O){var F=Xn(O)?Ze.call(O):"";return F==c||F==p}function Ic(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function Xn(O){var F=typeof O;return!!O&&(F=="object"||F=="function")}function Zo(O){return!!O&&typeof O=="object"}function ei(O){return Qo(O)?V(O):Qe(O)}function ti(){return[]}function Nc(){return!1}e.exports=Oc})(rs,rs.exports);var SA=rs.exports;const RA=Rr(SA);var CA="Expected a function",p0="__lodash_hash_undefined__",h0=1/0,OA=9007199254740991,xA="[object Function]",PA="[object GeneratorFunction]",AA="[object Symbol]",IA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NA=/^\w*$/,MA=/^\./,kA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$A=/[\\^$.*+?()[\]{}|]/g,LA=/\\(\\)?/g,BA=/^\[object .+?Constructor\]$/,qA=/^(?:0|[1-9]\d*)$/,DA=typeof be=="object"&&be&&be.Object===Object&&be,FA=typeof self=="object"&&self&&self.Object===Object&&self,Sh=DA||FA||Function("return this")();function UA(e,t){return e==null?void 0:e[t]}function jA(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var HA=Array.prototype,GA=Function.prototype,m0=Object.prototype,td=Sh["__core-js_shared__"],jv=function(){var e=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),y0=GA.toString,Ps=m0.hasOwnProperty,v0=m0.toString,WA=RegExp("^"+y0.call(Ps).replace($A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hv=Sh.Symbol,VA=HA.splice,zA=g0(Sh,"Map"),Co=g0(Object,"create"),Gv=Hv?Hv.prototype:void 0,Wv=Gv?Gv.toString:void 0;function Rn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function YA(){this.__data__=Co?Co(null):{}}function KA(e){return this.has(e)&&delete this.__data__[e]}function XA(e){var t=this.__data__;if(Co){var r=t[e];return r===p0?void 0:r}return Ps.call(t,e)?t[e]:void 0}function QA(e){var t=this.__data__;return Co?t[e]!==void 0:Ps.call(t,e)}function JA(e,t){var r=this.__data__;return r[e]=Co&&t===void 0?p0:t,this}Rn.prototype.clear=YA;Rn.prototype.delete=KA;Rn.prototype.get=XA;Rn.prototype.has=QA;Rn.prototype.set=JA;function Ta(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ZA(){this.__data__=[]}function e1(e){var t=this.__data__,r=As(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():VA.call(t,r,1),!0}function t1(e){var t=this.__data__,r=As(t,e);return r<0?void 0:t[r][1]}function r1(e){return As(this.__data__,e)>-1}function n1(e,t){var r=this.__data__,n=As(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ta.prototype.clear=ZA;Ta.prototype.delete=e1;Ta.prototype.get=t1;Ta.prototype.has=r1;Ta.prototype.set=n1;function Pn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function a1(){this.__data__={hash:new Rn,map:new(zA||Ta),string:new Rn}}function o1(e){return Is(this,e).delete(e)}function i1(e){return Is(this,e).get(e)}function s1(e){return Is(this,e).has(e)}function l1(e,t){return Is(this,e).set(e,t),this}Pn.prototype.clear=a1;Pn.prototype.delete=o1;Pn.prototype.get=i1;Pn.prototype.has=s1;Pn.prototype.set=l1;function u1(e,t,r){var n=e[t];(!(Ps.call(e,t)&&b0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function As(e,t){for(var r=e.length;r--;)if(b0(e[r][0],t))return r;return-1}function c1(e){if(!ns(e)||v1(e))return!1;var t=_1(e)||jA(e)?WA:BA;return t.test(E1(e))}function f1(e,t,r,n){if(!ns(e))return e;t=m1(t,e)?[t]:p1(t);for(var a=-1,o=t.length,s=o-1,i=e;i!=null&&++a<o;){var l=b1(t[a]),u=r;if(a!=s){var c=i[l];u=n?n(c,l,i):void 0,u===void 0&&(u=ns(c)?c:h1(t[a+1])?[]:{})}u1(i,l,u),i=i[l]}return e}function d1(e){if(typeof e=="string")return e;if(Ch(e))return Wv?Wv.call(e):"";var t=e+"";return t=="0"&&1/e==-h0?"-0":t}function p1(e){return E0(e)?e:g1(e)}function Is(e,t){var r=e.__data__;return y1(t)?r[typeof t=="string"?"string":"hash"]:r.map}function g0(e,t){var r=UA(e,t);return c1(r)?r:void 0}function h1(e,t){return t=t??OA,!!t&&(typeof e=="number"||qA.test(e))&&e>-1&&e%1==0&&e<t}function m1(e,t){if(E0(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ch(e)?!0:NA.test(e)||!IA.test(e)||t!=null&&e in Object(t)}function y1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function v1(e){return!!jv&&jv in e}var g1=Rh(function(e){e=T1(e);var t=[];return MA.test(e)&&t.push(""),e.replace(kA,function(r,n,a,o){t.push(a?o.replace(LA,"$1"):n||r)}),t});function b1(e){if(typeof e=="string"||Ch(e))return e;var t=e+"";return t=="0"&&1/e==-h0?"-0":t}function E1(e){if(e!=null){try{return y0.call(e)}catch{}try{return e+""}catch{}}return""}function Rh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(CA);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s),s};return r.cache=new(Rh.Cache||Pn),r}Rh.Cache=Pn;function b0(e,t){return e===t||e!==e&&t!==t}var E0=Array.isArray;function _1(e){var t=ns(e)?v0.call(e):"";return t==xA||t==PA}function ns(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function w1(e){return!!e&&typeof e=="object"}function Ch(e){return typeof e=="symbol"||w1(e)&&v0.call(e)==AA}function T1(e){return e==null?"":d1(e)}function S1(e,t,r){return e==null?e:f1(e,t,r)}var R1=S1;const C1=Rr(R1),O1=(e,t)=>{Array.isArray(t)||(t=[t]);const r=RA(e);return t.forEach(({type:n,value:a})=>{C1(r,n,a)}),r},_0=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},w0=(e,t,r)=>{let n=r.mobile;for(const a in t){const o=parseInt(String(t[a]));if(e>=o)n=r[o];else if(e<o)break}return n};var up=function(e,t){return up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},up(e,t)};function Lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");up(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var de=function(){return de=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},de.apply(this,arguments)};function ha(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function nr(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function T0(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Re;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Re||(Re={}));var Ue;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ue||(Ue={}));var ma;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ma||(ma={}));function Vv(e){return e.type===Ue.literal}function x1(e){return e.type===Ue.argument}function S0(e){return e.type===Ue.number}function R0(e){return e.type===Ue.date}function C0(e){return e.type===Ue.time}function O0(e){return e.type===Ue.select}function x0(e){return e.type===Ue.plural}function P1(e){return e.type===Ue.pound}function P0(e){return e.type===Ue.tag}function A0(e){return!!(e&&typeof e=="object"&&e.type===ma.number)}function cp(e){return!!(e&&typeof e=="object"&&e.type===ma.dateTime)}var I0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,A1=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function I1(e){var t={};return e.replace(A1,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var N1=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function M1(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(N1).filter(function(d){return d.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var i=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var p=c[u];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:i,options:l})}return r}function k1(e){return e.replace(/^(.*?)-/,"")}var zv=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N0=/^(@+)?(\+|#+)?[rs]?$/g,$1=/(\*)(0+)|(#+)(0+)|(0+)/g,M0=/^(0+)$/;function Yv(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(N0,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function k0(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function L1(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!M0.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Kv(e){var t={},r=k0(e);return r||t}function B1(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=k1(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=de(de(de({},t),{notation:"scientific"}),a.options.reduce(function(l,u){return de(de({},l),Kv(u))},{}));continue;case"engineering":t=de(de(de({},t),{notation:"engineering"}),a.options.reduce(function(l,u){return de(de({},l),Kv(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace($1,function(l,u,c,p,d,f){if(u)t.minimumIntegerDigits=c.length;else{if(p&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(M0.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(zv.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(zv,function(l,u,c,p,d,f){return c==="*"?t.minimumFractionDigits=u.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:d&&f?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=a.options[0];o==="w"?t=de(de({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=de(de({},t),Yv(o)));continue}if(N0.test(a.stem)){t=de(de({},t),Yv(a.stem));continue}var s=k0(a.stem);s&&(t=de(de({},t),s));var i=L1(a.stem);i&&(t=de(de({},t),i))}return t}var Oi={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function q1(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var s=1+(o&1),i=o<2?1:3+(o>>1),l="a",u=D1(t);for((u=="H"||u=="k")&&(i=0);i-- >0;)r+=l;for(;s-- >0;)r=u+r}else a==="J"?r+="H":r+=a}return r}function D1(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=Oi[n||""]||Oi[r||""]||Oi["".concat(r,"-001")]||Oi["001"];return a[0]}var rd,F1=new RegExp("^".concat(I0.source,"*")),U1=new RegExp("".concat(I0.source,"*$"));function Oe(e,t){return{start:e,end:t}}var j1=!!String.prototype.startsWith,H1=!!String.fromCodePoint,G1=!!Object.fromEntries,W1=!!String.prototype.codePointAt,V1=!!String.prototype.trimStart,z1=!!String.prototype.trimEnd,Y1=!!Number.isSafeInteger,K1=Y1?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fp=!0;try{var X1=L0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fp=((rd=X1.exec("a"))===null||rd===void 0?void 0:rd[0])==="a"}catch{fp=!1}var Xv=j1?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},dp=H1?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,s;a>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},Qv=G1?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],s=o[0],i=o[1];r[s]=i}return r},$0=W1?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},Q1=V1?function(t){return t.trimStart()}:function(t){return t.replace(F1,"")},J1=z1?function(t){return t.trimEnd()}:function(t){return t.replace(U1,"")};function L0(e,t){return new RegExp(e,t)}var pp;if(fp){var Jv=L0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pp=function(t,r){var n;Jv.lastIndex=r;var a=Jv.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else pp=function(t,r){for(var n=[];;){var a=$0(t,r);if(a===void 0||B0(a)||rI(a))break;n.push(a),r+=a>=65536?2:1}return dp.apply(void 0,n)};var Z1=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;a.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var i=this.clonePosition();this.bump(),a.push({type:Ue.pound,location:Oe(i,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Re.UNMATCHED_CLOSING_TAG,Oe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hp(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ue.literal,value:"<".concat(a,"/>"),location:Oe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,i=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hp(this.char()))return this.error(Re.INVALID_TAG,Oe(i,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return a!==u?this.error(Re.UNMATCHED_CLOSING_TAG,Oe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ue.tag,value:a,children:s,location:Oe(n,this.clonePosition())},err:null}:this.error(Re.INVALID_TAG,Oe(i,this.clonePosition())))}else return this.error(Re.UNCLOSED_TAG,Oe(n,this.clonePosition()))}else return this.error(Re.INVALID_TAG,Oe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tI(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){a+=s;continue}var i=this.tryParseLeftAngleBracket();if(i){a+=i;continue}break}var l=Oe(n,this.clonePosition());return{val:{type:Ue.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eI(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return dp.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),dp(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Re.EMPTY_ARGUMENT,Oe(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Re.MALFORMED_ARGUMENT,Oe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ue.argument,value:a,location:Oe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(Re.MALFORMED_ARGUMENT,Oe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=pp(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),s=Oe(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,s=this.clonePosition(),i=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(i){case"":return this.error(Re.EXPECT_ARGUMENT_TYPE,Oe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var d=J1(p.val);if(d.length===0)return this.error(Re.EXPECT_ARGUMENT_STYLE,Oe(this.clonePosition(),this.clonePosition()));var f=Oe(c,this.clonePosition());u={style:d,styleLocation:f}}var h=this.tryParseArgumentClose(a);if(h.err)return h;var m=Oe(a,this.clonePosition());if(u&&Xv(u==null?void 0:u.style,"::",0)){var _=Q1(u.style.slice(2));if(i==="number"){var p=this.parseNumberSkeletonFromString(_,u.styleLocation);return p.err?p:{val:{type:Ue.number,value:n,location:m,style:p.val},err:null}}else{if(_.length===0)return this.error(Re.EXPECT_DATE_TIME_SKELETON,m);var b=_;this.locale&&(b=q1(_,this.locale));var d={type:ma.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?I1(b):{}},v=i==="date"?Ue.date:Ue.time;return{val:{type:v,value:n,location:m,style:d},err:null}}}return{val:{type:i==="number"?Ue.number:i==="date"?Ue.date:Ue.time,value:n,location:m,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Re.EXPECT_SELECT_ARGUMENT_OPTIONS,Oe(w,de({},w)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),T=0;if(i!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(Re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Oe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(Re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Re.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),R=this.parseIdentifierIfPossible(),T=p.val}var C=this.tryParsePluralOrSelectOptions(t,i,r,R);if(C.err)return C;var h=this.tryParseArgumentClose(a);if(h.err)return h;var N=Oe(a,this.clonePosition());return i==="select"?{val:{type:Ue.select,value:n,options:Qv(C.val),location:N},err:null}:{val:{type:Ue.plural,value:n,options:Qv(C.val),offset:T,pluralType:i==="plural"?"cardinal":"ordinal",location:N},err:null}}default:return this.error(Re.INVALID_ARGUMENT_TYPE,Oe(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Re.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Re.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Oe(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=M1(t)}catch{return this.error(Re.INVALID_NUMBER_SKELETON,r)}return{val:{type:ma.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?B1(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,s=!1,i=[],l=new Set,u=a.value,c=a.location;;){if(u.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(Re.EXPECT_PLURAL_ARGUMENT_SELECTOR,Re.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Oe(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?Re.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Re.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Re.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Re.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Oe(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,r,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;i.push([u,{value:h.val,location:Oe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return i.length===0?this.error(r==="select"?Re.EXPECT_SELECT_ARGUMENT_SELECTOR:Re.EXPECT_PLURAL_ARGUMENT_SELECTOR,Oe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Re.MISSING_OTHER_CLAUSE,Oe(this.clonePosition(),this.clonePosition())):{val:i,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var i=this.char();if(i>=48&&i<=57)o=!0,s=s*10+(i-48),this.bump();else break}var l=Oe(a,this.clonePosition());return o?(s*=n,K1(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=$0(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Xv(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&B0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function hp(e){return e>=97&&e<=122||e>=65&&e<=90}function eI(e){return hp(e)||e===47}function tI(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function B0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function rI(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function mp(e){e.forEach(function(t){if(delete t.location,O0(t)||x0(t))for(var r in t.options)delete t.options[r].location,mp(t.options[r].value);else S0(t)&&A0(t.style)||(R0(t)||C0(t))&&cp(t.style)?delete t.style.location:P0(t)&&mp(t.children)})}function nI(e,t){t===void 0&&(t={}),t=de({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Z1(e,t).parse();if(r.err){var n=SyntaxError(Re[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||mp(r.val),r.val}function er(e,t){var r=t&&t.cache?t.cache:uI,n=t&&t.serializer?t.serializer:lI,a=t&&t.strategy?t.strategy:oI;return a(e,{cache:r,serializer:n})}function aI(e){return e==null||typeof e=="number"||typeof e=="boolean"}function q0(e,t,r,n){var a=aI(n)?n:r(n),o=t.get(a);return typeof o>"u"&&(o=e.call(this,n),t.set(a,o)),o}function D0(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,n),t.set(a,o)),o}function Oh(e,t,r,n,a){return r.bind(t,e,n,a)}function oI(e,t){var r=e.length===1?q0:D0;return Oh(e,this,r,t.cache.create(),t.serializer)}function iI(e,t){return Oh(e,this,D0,t.cache.create(),t.serializer)}function sI(e,t){return Oh(e,this,q0,t.cache.create(),t.serializer)}var lI=function(){return JSON.stringify(arguments)};function xh(){this.cache=Object.create(null)}xh.prototype.get=function(e){return this.cache[e]};xh.prototype.set=function(e,t){this.cache[e]=t};var uI={create:function(){return new xh}},tr={variadic:iI,monadic:sI},ar;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ar||(ar={}));var Jr=function(e){Lt(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zv=function(e){Lt(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ar.INVALID_VALUE,o)||this}return t}(Jr),cI=function(e){Lt(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ar.INVALID_VALUE,a)||this}return t}(Jr),fI=function(e){Lt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),ar.MISSING_VALUE,n)||this}return t}(Jr),wt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(wt||(wt={}));function dI(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==wt.literal||r.type!==wt.literal?t.push(r):n.value+=r.value,t},[])}function F0(e){return typeof e=="function"}function qi(e,t,r,n,a,o,s){if(e.length===1&&Vv(e[0]))return[{type:wt.literal,value:e[0].value}];for(var i=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Vv(c)){i.push({type:wt.literal,value:c.value});continue}if(P1(c)){typeof o=="number"&&i.push({type:wt.literal,value:r.getNumberFormat(t).format(o)});continue}var p=c.value;if(!(a&&p in a))throw new fI(p,s);var d=a[p];if(x1(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),i.push({type:typeof d=="string"?wt.literal:wt.object,value:d});continue}if(R0(c)){var f=typeof c.style=="string"?n.date[c.style]:cp(c.style)?c.style.parsedOptions:void 0;i.push({type:wt.literal,value:r.getDateTimeFormat(t,f).format(d)});continue}if(C0(c)){var f=typeof c.style=="string"?n.time[c.style]:cp(c.style)?c.style.parsedOptions:n.time.medium;i.push({type:wt.literal,value:r.getDateTimeFormat(t,f).format(d)});continue}if(S0(c)){var f=typeof c.style=="string"?n.number[c.style]:A0(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),i.push({type:wt.literal,value:r.getNumberFormat(t,f).format(d)});continue}if(P0(c)){var h=c.children,m=c.value,_=a[m];if(!F0(_))throw new cI(m,"function",s);var b=qi(h,t,r,n,a,o),v=_(b.map(function(T){return T.value}));Array.isArray(v)||(v=[v]),i.push.apply(i,v.map(function(T){return{type:typeof T=="string"?wt.literal:wt.object,value:T}}))}if(O0(c)){var w=c.options[d]||c.options.other;if(!w)throw new Zv(c.value,d,Object.keys(c.options),s);i.push.apply(i,qi(w.value,t,r,n,a));continue}if(x0(c)){var w=c.options["=".concat(d)];if(!w){if(!Intl.PluralRules)throw new Jr(`Intl.PluralRules is not available in this environment.
|
|
62
62
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
63
63
|
`,ar.MISSING_INTL_API,s);var R=r.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));w=c.options[R]||c.options.other}if(!w)throw new Zv(c.value,d,Object.keys(c.options),s);i.push.apply(i,qi(w.value,t,r,n,a,d-(c.offset||0)));continue}}return dI(i)}function pI(e,t){return t?de(de(de({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=de(de({},e[n]),t[n]||{}),r},{})):e}function hI(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=pI(e[n],t[n]),r},de({},e)):e}function nd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mI(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:er(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,nr([void 0],r,!1)))},{cache:nd(e.number),strategy:tr.variadic}),getDateTimeFormat:er(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,nr([void 0],r,!1)))},{cache:nd(e.dateTime),strategy:tr.variadic}),getPluralRules:er(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,nr([void 0],r,!1)))},{cache:nd(e.pluralRules),strategy:tr.variadic})}}var U0=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(p,d){return!p.length||d.type!==wt.literal||typeof p[p.length-1]!="string"?p.push(d.value):p[p.length-1]+=d.value,p},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return qi(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=a||{};s.formatters;var i=ha(s,["formatters"]);this.ast=e.__parse(t,de(de({},i),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=hI(e.formats,n),this.formatters=a&&a.formatters||mI(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=nI,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Cn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Cn||(Cn={}));var jo=function(e){Lt(t,e);function t(r,n,a){var o=this,s=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
64
64
|
`).concat(s?`
|
package/index.mjs
CHANGED
|
@@ -11129,21 +11129,20 @@ const Eo = {
|
|
|
11129
11129
|
i(Eo.Off), n(l);
|
|
11130
11130
|
});
|
|
11131
11131
|
}, [e]), Nt(() => {
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
}, [s, r, t, e]), { isFeatureActive: a, error: r };
|
|
11132
|
+
switch (s) {
|
|
11133
|
+
case Eo.Off:
|
|
11134
|
+
o(!1);
|
|
11135
|
+
break;
|
|
11136
|
+
case Eo.On:
|
|
11137
|
+
o(!0);
|
|
11138
|
+
break;
|
|
11139
|
+
case Eo.Cookie:
|
|
11140
|
+
o(!!t[`feature-${e}`]);
|
|
11141
|
+
break;
|
|
11142
|
+
default:
|
|
11143
|
+
o(!1);
|
|
11144
|
+
}
|
|
11145
|
+
}, [s, t]), { isFeatureActive: a, error: r };
|
|
11147
11146
|
};
|
|
11148
11147
|
function P1(e, t, r) {
|
|
11149
11148
|
var n = this, a = It(null), o = It(0), s = It(null), i = It([]), l = It(), u = It(), c = It(e), p = It(!0);
|