UNPKG

@jl-org/data-to-ts

Version:
1 lines 82.6 kB
"use strict";var t=require("util"),e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={exports:{}},o={},i={},u={},a=c;function c(t,e){if(!t)throw new Error(e||"Assertion failed")}c.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var f,l={exports:{}},p={exports:{}};try{var s=require("util");if("function"!=typeof s.inherits)throw"";l.exports=s.inherits}catch(t){l.exports=(f||(f=1,"function"==typeof Object.create?p.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:p.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),p.exports)}var y=l.exports,h=a,g=y;function b(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function d(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function m(t){return 1===t.length?"0"+t:t}function v(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}u.inherits=g,u.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)r.push(parseInt(t[o]+t[o+1],16))}else for(var n=0,o=0;o<t.length;o++){var i=t.charCodeAt(o);i<128?r[n++]=i:i<2048?(r[n++]=i>>6|192,r[n++]=63&i|128):b(t,o)?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++o)),r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=63&i|128):(r[n++]=i>>12|224,r[n++]=i>>6&63|128,r[n++]=63&i|128)}else for(o=0;o<t.length;o++)r[o]=0|t[o];return r},u.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=m(t[r].toString(16));return e},u.htonl=d,u.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t[n];"little"===e&&(o=d(o)),r+=v(o.toString(16))}return r},u.zero2=m,u.zero8=v,u.join32=function(t,e,r,n){var o=r-e;h(o%4==0);for(var i=new Array(o/4),u=0,a=e;u<i.length;u++,a+=4){var c;c="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],i[u]=c>>>0}return i},u.split32=function(t,e){for(var r=new Array(4*t.length),n=0,o=0;n<t.length;n++,o+=4){var i=t[n];"big"===e?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},u.rotr32=function(t,e){return t>>>e|t<<32-e},u.rotl32=function(t,e){return t<<e|t>>>32-e},u.sum32=function(t,e){return t+e>>>0},u.sum32_3=function(t,e,r){return t+e+r>>>0},u.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},u.sum32_5=function(t,e,r,n,o){return t+e+r+n+o>>>0},u.sum64=function(t,e,r,n){var o=t[e],i=n+t[e+1]>>>0,u=(i<n?1:0)+r+o;t[e]=u>>>0,t[e+1]=i},u.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},u.sum64_lo=function(t,e,r,n){return e+n>>>0},u.sum64_4_hi=function(t,e,r,n,o,i,u,a){var c=0,f=e;return c+=(f=f+n>>>0)<e?1:0,c+=(f=f+i>>>0)<i?1:0,t+r+o+u+(c+=(f=f+a>>>0)<a?1:0)>>>0},u.sum64_4_lo=function(t,e,r,n,o,i,u,a){return e+n+i+a>>>0},u.sum64_5_hi=function(t,e,r,n,o,i,u,a,c,f){var l=0,p=e;return l+=(p=p+n>>>0)<e?1:0,l+=(p=p+i>>>0)<i?1:0,l+=(p=p+a>>>0)<a?1:0,t+r+o+u+c+(l+=(p=p+f>>>0)<f?1:0)>>>0},u.sum64_5_lo=function(t,e,r,n,o,i,u,a,c,f){return e+n+i+a+f>>>0},u.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},u.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},u.shr64_hi=function(t,e,r){return t>>>r},u.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var w={},S=u,j=a;function O(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}w.BlockHash=O,O.prototype.update=function(t,e){if(t=S.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=S.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},O.prototype.digest=function(t){return this.update(this._pad()),j(null===this.pending),this._digest(t)},O.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=t>>>24&255,n[o++]=t>>>16&255,n[o++]=t>>>8&255,n[o++]=255&t}else for(n[o++]=255&t,n[o++]=t>>>8&255,n[o++]=t>>>16&255,n[o++]=t>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n};var A={},x={},$=u.rotr32;function P(t,e,r){return t&e^~t&r}function _(t,e,r){return t&e^t&r^e&r}function E(t,e,r){return t^e^r}x.ft_1=function(t,e,r,n){return 0===t?P(e,r,n):1===t||3===t?E(e,r,n):2===t?_(e,r,n):void 0},x.ch32=P,x.maj32=_,x.p32=E,x.s0_256=function(t){return $(t,2)^$(t,13)^$(t,22)},x.s1_256=function(t){return $(t,6)^$(t,11)^$(t,25)},x.g0_256=function(t){return $(t,7)^$(t,18)^t>>>3},x.g1_256=function(t){return $(t,17)^$(t,19)^t>>>10};var T=u,F=w,I=x,k=T.rotl32,D=T.sum32,R=T.sum32_5,C=I.ft_1,G=F.BlockHash,N=[1518500249,1859775393,2400959708,3395469782];function U(){if(!(this instanceof U))return new U;G.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}T.inherits(U,G);var W=U;U.blockSize=512,U.outSize=160,U.hmacStrength=80,U.padLength=64,U.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=k(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],u=this.h[2],a=this.h[3],c=this.h[4];for(n=0;n<r.length;n++){var f=~~(n/20),l=R(k(o,5),C(f,i,u,a),c,r[n],N[f]);c=a,a=u,u=k(i,30),i=o,o=l}this.h[0]=D(this.h[0],o),this.h[1]=D(this.h[1],i),this.h[2]=D(this.h[2],u),this.h[3]=D(this.h[3],a),this.h[4]=D(this.h[4],c)},U.prototype._digest=function(t){return"hex"===t?T.toHex32(this.h,"big"):T.split32(this.h,"big")};var B=u,z=w,M=x,L=a,V=B.sum32,H=B.sum32_4,q=B.sum32_5,J=M.ch32,Z=M.maj32,K=M.s0_256,X=M.s1_256,Y=M.g0_256,Q=M.g1_256,tt=z.BlockHash,et=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function rt(){if(!(this instanceof rt))return new rt;tt.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=et,this.W=new Array(64)}B.inherits(rt,tt);var nt=rt;rt.blockSize=512,rt.outSize=256,rt.hmacStrength=192,rt.padLength=64,rt.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=H(Q(r[n-2]),r[n-7],Y(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],u=this.h[2],a=this.h[3],c=this.h[4],f=this.h[5],l=this.h[6],p=this.h[7];for(L(this.k.length===r.length),n=0;n<r.length;n++){var s=q(p,X(c),J(c,f,l),this.k[n],r[n]),y=V(K(o),Z(o,i,u));p=l,l=f,f=c,c=V(a,s),a=u,u=i,i=o,o=V(s,y)}this.h[0]=V(this.h[0],o),this.h[1]=V(this.h[1],i),this.h[2]=V(this.h[2],u),this.h[3]=V(this.h[3],a),this.h[4]=V(this.h[4],c),this.h[5]=V(this.h[5],f),this.h[6]=V(this.h[6],l),this.h[7]=V(this.h[7],p)},rt.prototype._digest=function(t){return"hex"===t?B.toHex32(this.h,"big"):B.split32(this.h,"big")};var ot=u,it=nt;function ut(){if(!(this instanceof ut))return new ut;it.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ot.inherits(ut,it);var at=ut;ut.blockSize=512,ut.outSize=224,ut.hmacStrength=192,ut.padLength=64,ut.prototype._digest=function(t){return"hex"===t?ot.toHex32(this.h.slice(0,7),"big"):ot.split32(this.h.slice(0,7),"big")};var ct=u,ft=w,lt=a,pt=ct.rotr64_hi,st=ct.rotr64_lo,yt=ct.shr64_hi,ht=ct.shr64_lo,gt=ct.sum64,bt=ct.sum64_hi,dt=ct.sum64_lo,mt=ct.sum64_4_hi,vt=ct.sum64_4_lo,wt=ct.sum64_5_hi,St=ct.sum64_5_lo,jt=ft.BlockHash,Ot=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function At(){if(!(this instanceof At))return new At;jt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Ot,this.W=new Array(160)}ct.inherits(At,jt);var xt=At;function $t(t,e,r,n,o){var i=t&r^~t&o;return i<0&&(i+=4294967296),i}function Pt(t,e,r,n,o,i){var u=e&n^~e&i;return u<0&&(u+=4294967296),u}function _t(t,e,r,n,o){var i=t&r^t&o^r&o;return i<0&&(i+=4294967296),i}function Et(t,e,r,n,o,i){var u=e&n^e&i^n&i;return u<0&&(u+=4294967296),u}function Tt(t,e){var r=pt(t,e,28)^pt(e,t,2)^pt(e,t,7);return r<0&&(r+=4294967296),r}function Ft(t,e){var r=st(t,e,28)^st(e,t,2)^st(e,t,7);return r<0&&(r+=4294967296),r}function It(t,e){var r=pt(t,e,14)^pt(t,e,18)^pt(e,t,9);return r<0&&(r+=4294967296),r}function kt(t,e){var r=st(t,e,14)^st(t,e,18)^st(e,t,9);return r<0&&(r+=4294967296),r}function Dt(t,e){var r=pt(t,e,1)^pt(t,e,8)^yt(t,e,7);return r<0&&(r+=4294967296),r}function Rt(t,e){var r=st(t,e,1)^st(t,e,8)^ht(t,e,7);return r<0&&(r+=4294967296),r}function Ct(t,e){var r=pt(t,e,19)^pt(e,t,29)^yt(t,e,6);return r<0&&(r+=4294967296),r}function Gt(t,e){var r=st(t,e,19)^st(e,t,29)^ht(t,e,6);return r<0&&(r+=4294967296),r}At.blockSize=1024,At.outSize=512,At.hmacStrength=192,At.padLength=128,At.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var o=Ct(r[n-4],r[n-3]),i=Gt(r[n-4],r[n-3]),u=r[n-14],a=r[n-13],c=Dt(r[n-30],r[n-29]),f=Rt(r[n-30],r[n-29]),l=r[n-32],p=r[n-31];r[n]=mt(o,i,u,a,c,f,l,p),r[n+1]=vt(o,i,u,a,c,f,l,p)}},At.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],o=this.h[1],i=this.h[2],u=this.h[3],a=this.h[4],c=this.h[5],f=this.h[6],l=this.h[7],p=this.h[8],s=this.h[9],y=this.h[10],h=this.h[11],g=this.h[12],b=this.h[13],d=this.h[14],m=this.h[15];lt(this.k.length===r.length);for(var v=0;v<r.length;v+=2){var w=d,S=m,j=It(p,s),O=kt(p,s),A=$t(p,s,y,h,g),x=Pt(p,s,y,h,g,b),$=this.k[v],P=this.k[v+1],_=r[v],E=r[v+1],T=wt(w,S,j,O,A,x,$,P,_,E),F=St(w,S,j,O,A,x,$,P,_,E);w=Tt(n,o),S=Ft(n,o),j=_t(n,o,i,u,a),O=Et(n,o,i,u,a,c);var I=bt(w,S,j,O),k=dt(w,S,j,O);d=g,m=b,g=y,b=h,y=p,h=s,p=bt(f,l,T,F),s=dt(l,l,T,F),f=a,l=c,a=i,c=u,i=n,u=o,n=bt(T,F,I,k),o=dt(T,F,I,k)}gt(this.h,0,n,o),gt(this.h,2,i,u),gt(this.h,4,a,c),gt(this.h,6,f,l),gt(this.h,8,p,s),gt(this.h,10,y,h),gt(this.h,12,g,b),gt(this.h,14,d,m)},At.prototype._digest=function(t){return"hex"===t?ct.toHex32(this.h,"big"):ct.split32(this.h,"big")};var Nt=u,Ut=xt;function Wt(){if(!(this instanceof Wt))return new Wt;Ut.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Nt.inherits(Wt,Ut);var Bt=Wt;Wt.blockSize=1024,Wt.outSize=384,Wt.hmacStrength=192,Wt.padLength=128,Wt.prototype._digest=function(t){return"hex"===t?Nt.toHex32(this.h.slice(0,12),"big"):Nt.split32(this.h.slice(0,12),"big")},A.sha1=W,A.sha224=at,A.sha256=nt,A.sha384=Bt,A.sha512=xt;var zt={},Mt=u,Lt=w,Vt=Mt.rotl32,Ht=Mt.sum32,qt=Mt.sum32_3,Jt=Mt.sum32_4,Zt=Lt.BlockHash;function Kt(){if(!(this instanceof Kt))return new Kt;Zt.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function Xt(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function Yt(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Qt(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}Mt.inherits(Kt,Zt),zt.ripemd160=Kt,Kt.blockSize=512,Kt.outSize=160,Kt.hmacStrength=192,Kt.padLength=64,Kt.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],o=this.h[2],i=this.h[3],u=this.h[4],a=r,c=n,f=o,l=i,p=u,s=0;s<80;s++){var y=Ht(Vt(Jt(r,Xt(s,n,o,i),t[te[s]+e],Yt(s)),re[s]),u);r=u,u=i,i=Vt(o,10),o=n,n=y,y=Ht(Vt(Jt(a,Xt(79-s,c,f,l),t[ee[s]+e],Qt(s)),ne[s]),p),a=p,p=l,l=Vt(f,10),f=c,c=y}y=qt(this.h[1],o,l),this.h[1]=qt(this.h[2],i,p),this.h[2]=qt(this.h[3],u,a),this.h[3]=qt(this.h[4],r,c),this.h[4]=qt(this.h[0],n,f),this.h[0]=y},Kt.prototype._digest=function(t){return"hex"===t?Mt.toHex32(this.h,"little"):Mt.split32(this.h,"little")};var te=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ee=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],re=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ne=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],oe=u,ie=a;function ue(t,e,r){if(!(this instanceof ue))return new ue(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(oe.toArray(e,r))}var ae=ue;ue.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),ie(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ue.prototype.update=function(t,e){return this.inner.update(t,e),this},ue.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},function(t){var e=i;e.utils=u,e.common=w,e.sha=A,e.ripemd=zt,e.hmac=ae,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}();var ce={},fe={};!function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),(e=t.TypeGroup||(t.TypeGroup={}))[e.Primitive=0]="Primitive",e[e.Array=1]="Array",e[e.Object=2]="Object",e[e.Date=3]="Date"}(fe),Object.defineProperty(ce,"__esModule",{value:!0});var le=fe;ce.isHash=function(t){return 40===t.length},ce.onlyUnique=function(t,e,r){return r.indexOf(t)===e},ce.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},ce.isNonArrayUnion=function(t){return t.includes(" | ")&&!/^\(.*\)\[\]$/.test(t)},ce.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)&&null!==t},ce.isDate=function(t){return t instanceof Date},ce.parseKeyMetaData=function(t){var e=t.endsWith("--?");return e?{isOptional:e,keyValue:t.slice(0,-3)}:{isOptional:e,keyValue:t}},ce.getTypeDescriptionGroup=function(t){return void 0===t?le.TypeGroup.Primitive:void 0!==t.arrayOfTypes?le.TypeGroup.Array:le.TypeGroup.Object},ce.findTypeById=function(t,e){return e.find((function(e){return e.id===t}))};var pe=e&&e.__assign||function(){return pe=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},pe.apply(this,arguments)},se=e&&e.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};Object.defineProperty(o,"__esModule",{value:!0});var ye=i,he=ce,ge=fe;function be(t,e,r){void 0===r&&(r=!1);var n=e.find((function(e){return function(t,e,r){return he.isArray(t)?(n=t,o=e.arrayOfTypes,void 0!==n&&void 0!==o&&n.sort().join("")===o.sort().join("")&&e.isUnion===r):function(t,e){if(void 0===t||void 0===e)return!1;var r=Object.entries(t),n=Object.entries(e),o=r.length===n.length,i=r.every((function(t){var r=t[0],n=t[1];return e[r]===n}));return o&&i}(t,e.typeObj);var n,o}(t,e,r)}));return n||(n=function(t,e){return he.isArray(t)?{id:de(JSON.stringify(se(t,[e]))),arrayOfTypes:t,isUnion:e}:{id:de(JSON.stringify(t)),typeObj:t}}(t,r),e.push(n)),n.id}function de(t){return ye.sha1().update(t).digest("hex")}function me(t){return null===t?"null":t instanceof Date?"Date":typeof t}function ve(t,e){var r=t.map((function(t){return t.typeObj})),n=r.map((function(t){return Object.keys(t)})).reduce((function(t,e){return se(t,e)}),[]).filter(he.onlyUnique),o=r.reduce((function(t,e){var r=Object.keys(e);return t.filter((function(t){return r.includes(t)}))}),n),i=n.reduce((function(t,n){var i,u=o.includes(n),a=function(t){var n=r.filter((function(e){return Object.keys(e).includes(t)})).map((function(e){return e[t]})).filter(he.onlyUnique);return 1===n.length?n.pop():je(n,e)}(n),c=u?n:function(t){return t.endsWith("--?")?t:t+"--?"}(n);return pe(pe({},t),((i={})[c]=a,i))}),{});return be(i,e,!0)}function we(t,e){var r=t.map((function(t){return t.arrayOfTypes})).reduce((function(t,e){return se(t,e)}),[]).filter(he.onlyUnique);return 1===r.length?be([r.pop()],e):be([je(r,e)],e)}function Se(t,e){var r=t.map((function(t){return he.findTypeById(t,e)})).filter((function(t){return!!t&&t.isUnion})).map((function(t){return t.arrayOfTypes})).reduce((function(t,e){return se(t,e)}),[]),n=t.filter((function(t){return!he.findTypeById(t,e)||!he.findTypeById(t,e).isUnion}));return be(se(r,n),e,!0)}function je(t,e){var r=t.includes("undefined"),n=t.map((function(t){return he.findTypeById(t,e)})).filter((function(t){return!!t})),o=n.filter((function(t){return he.getTypeDescriptionGroup(t)===ge.TypeGroup.Array})).length===t.length,i=n.filter((function(t){return he.getTypeDescriptionGroup(t)===ge.TypeGroup.Array})).length+1===t.length&&r,u=n.filter((function(t){return he.getTypeDescriptionGroup(t)===ge.TypeGroup.Object})).length+1===t.length&&r,a=n.filter((function(t){return he.getTypeDescriptionGroup(t)===ge.TypeGroup.Object})).length===t.length;return 0===t.length?be([],e,!0):1===t.length?t.pop():t.length>1?a?ve(n,e):o?we(n,e):Se(i?[we(n,e),"undefined"]:u?[ve(n,e),"undefined"]:t,e):void 0}function Oe(t,e){switch(void 0===e&&(e=[]),n=t,he.isDate(n)?ge.TypeGroup.Date:he.isArray(n)?ge.TypeGroup.Array:he.isObject(n)?ge.TypeGroup.Object:ge.TypeGroup.Primitive){case ge.TypeGroup.Array:return{rootTypeId:be([je(t.map((function(t){return Oe(t,e).rootTypeId})).filter(he.onlyUnique),e)],e),types:e};case ge.TypeGroup.Object:var r=function(t,e){return Object.entries(t).reduce((function(t,r){var n,o=r[0],i=Oe(r[1],e).rootTypeId;return pe(pe({},t),((n={})[o]=i,n))}),{})}(t,e);return{rootTypeId:be(r,e),types:e};case ge.TypeGroup.Primitive:return{rootTypeId:me(t),types:e};case ge.TypeGroup.Date:return{rootTypeId:me(t),types:e}}var n}o.getTypeStructure=Oe,o.optimizeTypeStructure=function(t){var e,r,n,o,i,u=(r=(e=t).rootTypeId,n=e.types,o=n.find((function(t){return t.id===r})),(i=function(t){switch(he.getTypeDescriptionGroup(t)){case ge.TypeGroup.Array:var e=t.arrayOfTypes.filter(he.isHash).map((function(t){var e=n.find((function(e){return e.id===t}));return i(e)})).reduce((function(t,e){return se(t,e)}),[]);return se([t.id],e);case ge.TypeGroup.Object:var r=Object.values(t.typeObj).filter(he.isHash).map((function(t){var e=n.find((function(e){return e.id===t}));return i(e)})).reduce((function(t,e){return se(t,e)}),[]);return se([t.id],r)}})(o)),a=t.types.filter((function(t){return u.includes(t.id)}));t.types=a};var Ae,xe,$e=Object.prototype.toString,Pe=function(t){var e=$e.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===$e.call(t.callee)),r};var _e=Array.prototype.slice,Ee=Pe,Te=Object.keys,Fe=Te?function(t){return Te(t)}:function(){if(xe)return Ae;var t;if(xe=1,!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Pe,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),u=o.call((function(){}),"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&e.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();t=function(t){var o=null!==t&&"object"==typeof t,f="[object Function]"===r.call(t),p=n(t),s=o&&"[object String]"===r.call(t),y=[];if(!o&&!f&&!p)throw new TypeError("Object.keys called on a non-object");var h=u&&f;if(s&&t.length>0&&!e.call(t,0))for(var g=0;g<t.length;++g)y.push(String(g));if(p&&t.length>0)for(var b=0;b<t.length;++b)y.push(String(b));else for(var d in t)h&&"prototype"===d||!e.call(t,d)||y.push(String(d));if(i)for(var m=function(t){if("undefined"==typeof window||!l)return c(t);try{return c(t)}catch(t){return!1}}(t),v=0;v<a.length;++v)m&&"constructor"===a[v]||!e.call(t,a[v])||y.push(a[v]);return y}}return Ae=t}(),Ie=Object.keys;Fe.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return Ee(t)?Ie(_e.call(t)):Ie(t)})}else Object.keys=Fe;return Object.keys||Fe};var ke,De,Re=Fe,Ce=Error,Ge=EvalError,Ne=RangeError,Ue=ReferenceError,We=SyntaxError,Be=TypeError,ze=URIError;function Me(){return De?ke:(De=1,ke=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}var Le,Ve="undefined"!=typeof Symbol&&Symbol,He=Me(),qe=function(){return"function"==typeof Ve&&("function"==typeof Symbol&&("symbol"==typeof Ve("foo")&&("symbol"==typeof Symbol("bar")&&He())))},Je={__proto__:null,foo:{}},Ze=Object,Ke=Object.prototype.toString,Xe=Math.max,Ye=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r},Qe=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==Ke.apply(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,n=function(t,e){for(var r=[],n=e||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments,1),o=Xe(0,e.length-n.length),i=[],u=0;u<o;u++)i[u]="$"+u;if(r=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=e.apply(this,Ye(n,arguments));return Object(o)===o?o:this}return e.apply(t,Ye(n,arguments))})),e.prototype){var a=function(){};a.prototype=e.prototype,r.prototype=new a,a.prototype=null}return r},tr=Function.prototype.bind||Qe,er=Function.prototype.call,rr=Object.prototype.hasOwnProperty,nr=tr.call(er,rr),or=Ce,ir=Ge,ur=Ne,ar=Ue,cr=We,fr=Be,lr=ze,pr=Function,sr=function(t){try{return pr('"use strict"; return ('+t+").constructor;")()}catch(t){}},yr=Object.getOwnPropertyDescriptor;if(yr)try{yr({},"")}catch(t){yr=null}var hr=function(){throw new fr},gr=yr?function(){try{return hr}catch(t){try{return yr(arguments,"callee").get}catch(t){return hr}}}():hr,br=qe(),dr={__proto__:Je}.foo===Je.foo&&!(Je instanceof Ze),mr=Object.getPrototypeOf||(dr?function(t){return t.__proto__}:null),vr={},wr="undefined"!=typeof Uint8Array&&mr?mr(Uint8Array):Le,Sr={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Le:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Le:ArrayBuffer,"%ArrayIteratorPrototype%":br&&mr?mr([][Symbol.iterator]()):Le,"%AsyncFromSyncIteratorPrototype%":Le,"%AsyncFunction%":vr,"%AsyncGenerator%":vr,"%AsyncGeneratorFunction%":vr,"%AsyncIteratorPrototype%":vr,"%Atomics%":"undefined"==typeof Atomics?Le:Atomics,"%BigInt%":"undefined"==typeof BigInt?Le:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Le:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Le:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Le:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":or,"%eval%":eval,"%EvalError%":ir,"%Float32Array%":"undefined"==typeof Float32Array?Le:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Le:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Le:FinalizationRegistry,"%Function%":pr,"%GeneratorFunction%":vr,"%Int8Array%":"undefined"==typeof Int8Array?Le:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Le:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Le:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":br&&mr?mr(mr([][Symbol.iterator]())):Le,"%JSON%":"object"==typeof JSON?JSON:Le,"%Map%":"undefined"==typeof Map?Le:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&br&&mr?mr((new Map)[Symbol.iterator]()):Le,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Le:Promise,"%Proxy%":"undefined"==typeof Proxy?Le:Proxy,"%RangeError%":ur,"%ReferenceError%":ar,"%Reflect%":"undefined"==typeof Reflect?Le:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Le:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&br&&mr?mr((new Set)[Symbol.iterator]()):Le,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Le:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":br&&mr?mr(""[Symbol.iterator]()):Le,"%Symbol%":br?Symbol:Le,"%SyntaxError%":cr,"%ThrowTypeError%":gr,"%TypedArray%":wr,"%TypeError%":fr,"%Uint8Array%":"undefined"==typeof Uint8Array?Le:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Le:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Le:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Le:Uint32Array,"%URIError%":lr,"%WeakMap%":"undefined"==typeof WeakMap?Le:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Le:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Le:WeakSet};if(mr)try{null.error}catch(t){var jr=mr(mr(t));Sr["%Error.prototype%"]=jr}var Or,Ar,xr=function t(e){var r;if("%AsyncFunction%"===e)r=sr("async function () {}");else if("%GeneratorFunction%"===e)r=sr("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=sr("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&mr&&(r=mr(o.prototype))}return Sr[e]=r,r},$r={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pr=tr,_r=nr,Er=Pr.call(Function.call,Array.prototype.concat),Tr=Pr.call(Function.apply,Array.prototype.splice),Fr=Pr.call(Function.call,String.prototype.replace),Ir=Pr.call(Function.call,String.prototype.slice),kr=Pr.call(Function.call,RegExp.prototype.exec),Dr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Rr=/\\(\\)?/g,Cr=function(t,e){var r,n=t;if(_r($r,n)&&(n="%"+(r=$r[n])[0]+"%"),_r(Sr,n)){var o=Sr[n];if(o===vr&&(o=xr(n)),void 0===o&&!e)throw new fr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new cr("intrinsic "+t+" does not exist!")},Gr=function(t,e){if("string"!=typeof t||0===t.length)throw new fr("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new fr('"allowMissing" argument must be a boolean');if(null===kr(/^%?[^%]*%?$/,t))throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=Ir(t,0,1),r=Ir(t,-1);if("%"===e&&"%"!==r)throw new cr("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new cr("invalid intrinsic syntax, expected opening `%`");var n=[];return Fr(t,Dr,(function(t,e,r,o){n[n.length]=r?Fr(o,Rr,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=Cr("%"+n+"%",e),i=o.name,u=o.value,a=!1,c=o.alias;c&&(n=c[0],Tr(r,Er([0,1],c)));for(var f=1,l=!0;f<r.length;f+=1){var p=r[f],s=Ir(p,0,1),y=Ir(p,-1);if(('"'===s||"'"===s||"`"===s||'"'===y||"'"===y||"`"===y)&&s!==y)throw new cr("property names with quotes must have matching quotes");if("constructor"!==p&&l||(a=!0),_r(Sr,i="%"+(n+="."+p)+"%"))u=Sr[i];else if(null!=u){if(!(p in u)){if(!e)throw new fr("base intrinsic for "+t+" exists, but the property is not available.");return}if(yr&&f+1>=r.length){var h=yr(u,p);u=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:u[p]}else l=_r(u,p),u=u[p];l&&!a&&(Sr[i]=u)}}return u};function Nr(){if(Ar)return Or;Ar=1;var t=Gr("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return Or=t}var Ur=Gr("%Object.getOwnPropertyDescriptor%",!0);if(Ur)try{Ur([],"length")}catch(t){Ur=null}var Wr=Ur,Br=Nr(),zr=We,Mr=Be,Lr=Wr,Vr=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new Mr("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new Mr("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Mr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Mr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Mr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Mr("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],a=!!Lr&&Lr(t,e);if(Br)Br(t,e,{configurable:null===i&&a?a.configurable:!i,enumerable:null===n&&a?a.enumerable:!n,value:r,writable:null===o&&a?a.writable:!o});else{if(!u&&(n||o||i))throw new zr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}},Hr=Nr(),qr=function(){return!!Hr};qr.hasArrayLengthDefineBug=function(){if(!Hr)return null;try{return 1!==Hr([],"length",{value:1}).length}catch(t){return!0}};var Jr=qr,Zr=Re,Kr="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),Xr=Object.prototype.toString,Yr=Array.prototype.concat,Qr=Vr,tn=Jr(),en=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==Xr.call(o)||!n())return;var o;tn?Qr(t,e,r,!0):Qr(t,e,r)},rn=function(t,e){var r=arguments.length>2?arguments[2]:{},n=Zr(e);Kr&&(n=Yr.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)en(t,n[o],e[n[o]],r[n[o]])};rn.supportsDescriptors=!!tn;var nn=rn,on=Be,un=function(t){if(null==t)throw new on(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},an={exports:{}},cn=Gr,fn=Vr,ln=Jr(),pn=Wr,sn=Be,yn=cn("%Math.floor%"),hn=function(t,e){if("function"!=typeof t)throw new sn("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||yn(e)!==e)throw new sn("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&pn){var i=pn(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(ln?fn(t,"length",e,!0,!0):fn(t,"length",e)),t};!function(t){var e=tr,r=Gr,n=hn,o=Be,i=r("%Function.prototype.apply%"),u=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(u,i),c=Nr(),f=r("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new o("a function is required");var r=a(e,u,arguments);return n(r,1+f(0,t.length-(arguments.length-1)),!0)};var l=function(){return a(e,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l}(an);var gn,bn,dn,mn,vn=an.exports,wn=Gr,Sn=vn,jn=Sn(wn("String.prototype.indexOf")),On=function(t,e){var r=wn(t,!!e);return"function"==typeof r&&jn(t,".prototype.")>-1?Sn(r):r};function An(){return bn?gn:(bn=1,gn=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t})}function xn(){return mn?dn:(mn=1,dn=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t})}var $n,Pn,_n=Function.prototype.toString,En="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof En&&"function"==typeof Object.defineProperty)try{$n=Object.defineProperty({},"length",{get:function(){throw Pn}}),Pn={},En((function(){throw 42}),null,$n)}catch(t){t!==Pn&&(En=null)}else En=null;var Tn=/^\s*class\b/,Fn=function(t){try{var e=_n.call(t);return Tn.test(e)}catch(t){return!1}},In=function(t){try{return!Fn(t)&&(_n.call(t),!0)}catch(t){return!1}},kn=Object.prototype.toString,Dn="function"==typeof Symbol&&!!Symbol.toStringTag,Rn=!(0 in[,]),Cn=function(){return!1};if("object"==typeof document){var Gn=document.all;kn.call(Gn)===kn.call(document.all)&&(Cn=function(t){if((Rn||!t)&&(void 0===t||"object"==typeof t))try{var e=kn.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}var Nn,Un,Wn=En?function(t){if(Cn(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{En(t,null,$n)}catch(t){if(t!==Pn)return!1}return!Fn(t)&&In(t)}:function(t){if(Cn(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(Dn)return In(t);if(Fn(t))return!1;var e=kn.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&In(t)},Bn=Me(),zn=function(){return Bn()&&!!Symbol.toStringTag};function Mn(){if(Un)return Nn;Un=1;var t=Date.prototype.getDay,e=Object.prototype.toString,r=zn();return Nn=function(n){return"object"==typeof n&&null!==n&&(r?function(e){try{return t.call(e),!0}catch(t){return!1}}(n):"[object Date]"===e.call(n))}}var Ln,Vn,Hn,qn,Jn,Zn,Kn,Xn,Yn,Qn={exports:{}};function to(){if(Ln)return Qn.exports;Ln=1;var t=Object.prototype.toString;if(qe()){var e=Symbol.prototype.toString,r=/^Symbol\(.*\)$/;Qn.exports=function(n){if("symbol"==typeof n)return!0;if("[object Symbol]"!==t.call(n))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&r.test(e.call(t))}(n)}catch(t){return!1}}}else Qn.exports=function(t){return!1};return Qn.exports}function eo(){if(Hn)return Vn;Hn=1;var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,e=xn(),r=Wn,n=Mn(),o=to();return Vn=function(i){if(e(i))return i;var u,a="default";if(arguments.length>1&&(arguments[1]===String?a="string":arguments[1]===Number&&(a="number")),t&&(Symbol.toPrimitive?u=function(t,e){var n=t[e];if(null!=n){if(!r(n))throw new TypeError(n+" returned for property "+e+" of object "+t+" is not a function");return n}}(i,Symbol.toPrimitive):o(i)&&(u=Symbol.prototype.valueOf)),void 0!==u){var c=u.call(i,a);if(e(c))return c;throw new TypeError("unable to convert exotic object to primitive")}return"default"===a&&(n(i)||o(i))&&(a="string"),function(t,n){if(null==t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof n||"number"!==n&&"string"!==n)throw new TypeError('hint must be "string" or "number"');var o,i,u,a="string"===n?["toString","valueOf"]:["valueOf","toString"];for(u=0;u<a.length;++u)if(o=t[a[u]],r(o)&&(i=o.call(t),e(i)))return i;throw new TypeError("No default value")}(i,"default"===a?"number":a)},Vn}function ro(){if(Kn)return Zn;Kn=1;var t,e,r,n,o=On,i=zn();if(i){t=o("Object.prototype.hasOwnProperty"),e=o("RegExp.prototype.exec"),r={};var u=function(){throw r};n={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(n[Symbol.toPrimitive]=u)}var a=o("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor;return Zn=i?function(o){if(!o||"object"!=typeof o)return!1;var i=c(o,"lastIndex");if(!(i&&t(i,"value")))return!1;try{e(o,n)}catch(t){return t===r}}:function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===a(t)}}function no(){if(Yn)return Xn;Yn=1;var t=On,e=ro(),r=t("RegExp.prototype.exec"),n=Be;return Xn=function(t){if(!e(t))throw new n("`regex` must be a RegExp");return function(e){return null!==r(t,e)}},Xn}var oo,io,uo,ao,co,fo,lo,po,so,yo,ho=Gr("%String%"),go=Be,bo=function(t){if("symbol"==typeof t)throw new go("Cannot convert a Symbol value to a string");return ho(t)};function mo(){if(io)return oo;io=1;var t=un,e=bo,r=On("String.prototype.replace"),n=/^\s$/.test("᠎"),o=n?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,i=n?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return oo=function(){var n=e(t(this));return r(r(n,o,""),i,"")}}function vo(){if(ao)return uo;ao=1;var t=mo(),e="᠎";return uo=function(){return String.prototype.trim&&"​"==="​".trim()&&e.trim()===e&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:t}}function wo(){if(po)return lo;po=1;var t=vn,e=nn,r=un,n=mo(),o=vo(),i=function(){if(fo)return co;fo=1;var t=nn,e=vo();return co=function(){var r=e();return t(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r},co}(),u=t(o()),a=function(t){return r(t),u(t)};return e(a,{getPolyfill:o,implementation:n,shim:i}),lo=a}var So,jo,Oo=Be,Ao=Gr("%Number%"),xo=An(),$o=function(){if(Jn)return qn;Jn=1;var t=eo();return qn=function(e){return arguments.length>1?t(e,arguments[1]):t(e)}}(),Po=function(){if(yo)return so;yo=1;var t=Gr,e=t("%Number%"),r=t("%RegExp%"),n=Be,o=t("%parseInt%"),i=On,u=no(),a=i("String.prototype.slice"),c=u(/^0b[01]+$/i),f=u(/^0o[0-7]+$/i),l=u(/^[-+]0x[0-9a-f]+$/i),p=u(new r("["+["…","​","￾"].join("")+"]","g")),s=wo();return so=function t(r){if("string"!=typeof r)throw new n("Assertion failed: `argument` is not a String");if(c(r))return e(o(a(r,2),2));if(f(r))return e(o(a(r,2),8));if(p(r)||l(r))return NaN;var i=s(r);return i!==r?t(i):e(r)},so}(),_o=Math.floor,Eo=function(t){return"bigint"==typeof t?t:_o(t)},To=Be,Fo=Number.isNaN||function(t){return t!=t},Io=Fo,ko=function(t){return("number"==typeof t||"bigint"==typeof t)&&!Io(t)&&t!==1/0&&t!==-1/0},Do=function(t){var e=xo(t)?t:$o(t,Ao);if("symbol"==typeof e)throw new Oo("Cannot convert a Symbol value to a number");if("bigint"==typeof e)throw new Oo("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof e?Po(e):Ao(e)},Ro=function(t){if("number"!=typeof t&&"bigint"!=typeof t)throw new To("argument must be a Number or a BigInt");var e=t<0?-Eo(-t):Eo(t);return 0===e?0:e},Co=Fo,Go=ko,No=function(t){var e=Do(t);return Co(e)||0===e?0:Go(e)?Ro(e):e},Uo=Number.MAX_SAFE_INTEGER||9007199254740991,Wo=No,Bo=function(t){var e=Wo(t);return e<=0?0:e>Uo?Uo:e},zo=Object,Mo=zo,Lo=un,Vo=function(t){return Lo(t),Mo(t)},Ho=Fo,qo=String.prototype.valueOf,Jo=Object.prototype.toString,Zo=zn(),Ko=function(t){return"string"==typeof t||"object"==typeof t&&(Zo?function(t){try{return qo.call(t),!0}catch(t){return!1}}(t):"[object String]"===Jo.call(t))},Xo=No,Yo=Bo,Qo=Vo,ti=function(t,e){return t===e||Ho(t)&&Ho(e)},ei=Fo,ri=ko,ni=Gr,oi=Ko,ii=On("String.prototype.charAt"),ui=ni("%Array.prototype.indexOf%"),ai=ni("%Math.max%"),ci=function(t){var e=arguments.length>1?Xo(arguments[1]):0;if(ui&&!ei(t)&&ri(e)&&void 0!==t)return ui.apply(this,arguments)>-1;var r=Qo(this),n=Yo(r.length);if(0===n)return!1;for(var o=e>=0?e:ai(0,n+e);o<n;){if(ti(t,oi(r)?ii(r,o):r[o]))return!0;o+=1}return!1},fi=ci,li=function(){return Array.prototype.includes&&Array(1).includes(void 0)?Array.prototype.includes:fi};var pi=nn,si=un,yi=On,hi=ci,gi=li,bi=vn.apply(gi()),di=function(){if(jo)return So;jo=1;var t=nn,e=li;return So=function(){var r=e();return t(Array.prototype,{includes:r},{includes:function(){return Array.prototype.includes!==r}}),r},So}(),mi=yi("Array.prototype.slice"),vi=function(t,e){return si(t),bi(t,mi(arguments,1))};pi(vi,{getPolyfill:gi,implementation:hi,shim:di});var wi,Si,ji=vi,Oi={includes:ji,shim:function(){ji.shim()}},Ai={prototype:Oi,shim:function(){Oi.shim()}},xi=function(t){return"string"==typeof t||"symbol"==typeof t},$i=Be,Pi=nr,_i={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0},Ei=function(t){if(!t||"object"!=typeof t)return!1;for(var e in t)if(Pi(t,e)&&!_i[e])return!1;var r=Pi(t,"[[Value]]")||Pi(t,"[[Writable]]"),n=Pi(t,"[[Get]]")||Pi(t,"[[Set]]");if(r&&n)throw new $i("Property Descriptors may not be both accessor and data descriptors");return!0},Ti=Be,Fi=nr,Ii=Ei,ki=function(t){if(void 0===t)return!1;if(!Ii(t))throw new Ti("Assertion failed: `Desc` must be a Property Descriptor");return!(!Fi(t,"[[Get]]")&&!Fi(t,"[[Set]]"))},Di=Gr,Ri=Di("%Object.preventExtensions%",!0),Ci=Di("%Object.isExtensible%",!0),Gi=An(),Ni=Ri?function(t){return!Gi(t)&&Ci(t)}:function(t){return!Gi(t)},Ui=function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},Wi=function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":Ui(t)},Bi=Wn,zi=nr,Mi=Be,Li=Wi,Vi=function(t){return!!t},Hi=Bi,qi=Fo,Ji=function(t,e){return t===e?0!==t||1/t==1/e:qi(t)&&qi(e)};function Zi(){if(Si)return wi;Si=1;var t=Gr("%Array%"),e=!t.isArray&&On("Object.prototype.toString");return wi=t.isArray||function(t){return"[object Array]"===e(t)}}var Ki,Xi,Yi=Jr,Qi=Nr(),tu=Yi.hasArrayLengthDefineBug(),eu=tu&&Zi(),ru=On("Object.prototype.propertyIsEnumerable"),nu=Ei,ou=Be,iu=Ei,uu=function(t){if(void 0===t)return t;var e={};return"[[Value]]"in t&&(e.value=t["[[Value]]"]),"[[Writable]]"in t&&(e.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(e.get=t["[[Get]]"]),"[[Set]]"in t&&(e.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(e.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(e.configurable=!!t["[[Configurable]]"]),e},au=Be,cu=nr,fu=Ei,lu=function(t){if(void 0===t)return!1;if(!fu(t))throw new au("Assertion failed: `Desc` must be a Property Descriptor");return!(!cu(t,"[[Value]]")&&!cu(t,"[[Writable]]"))},pu=Be,su=ki,yu=lu,hu=Ei,gu=Be,bu=function(t,e,r,n,o,i){if(!Qi){if(!t(i))return!1;if(!i["[[Configurable]]"]||!i["[[Writable]]"])return!1;if(o in n&&ru(n,o)!==!!i["[[Enumerable]]"])return!1;var u=i["[[Value]]"];return n[o]=u,e(n[o],u)}return tu&&"length"===o&&"[[Value]]"in i&&eu(n)&&n.length!==i["[[Value]]"]?(n.length=i["[[Value]]"],n.length===i["[[Value]]"]):(Qi(n,o,r(i)),!0)},du=function(t,e){return nu(e)&&"object"==typeof e&&"[[Enumerable]]"in e&&"[[Configurable]]"in e&&(t.IsAccessorDescriptor(e)||t.IsDataDescriptor(e))},mu=Ei,vu=function(t){if(void 0!==t&&!iu(t))throw new ou("Assertion failed: `Desc` must be a Property Descriptor");return uu(t)},wu=ki,Su=lu,ju=function(t){if(void 0===t)return!1;if(!hu(t))throw new pu("Assertion failed: `Desc` must be a Property Descriptor");return!su(t)&&!yu(t)},Ou=xi,Au=Ji,xu=Wi,$u=Wr,Pu=We,_u=Be,Eu=Ei,Tu=ki,Fu=Ni,Iu=xi,ku=function(t){if("Object"!==Li(t))throw new Mi("ToPropertyDescriptor requires an object");var e={};if(zi(t,"enumerable")&&(e["[[Enumerable]]"]=Vi(t.enumerable)),zi(t,"configurable")&&(e["[[Configurable]]"]=Vi(t.configurable)),zi(t,"value")&&(e["[[Value]]"]=t.value),zi(t,"writable")&&(e["[[Writable]]"]=Vi(t.writable)),zi(t,"get")){var r=t.get;if(void 0!==r&&!Hi(r))throw new Mi("getter must be a function");e["[[Get]]"]=r}if(zi(t,"set")){var n=t.set;if(void 0!==n&&!Hi(n))throw new Mi("setter must be a function");e["[[Set]]"]=n}if((zi(e,"[[Get]]")||zi(e,"[[Set]]"))&&(zi(e,"[[Value]]")||zi(e,"[[Writable]]")))throw new Mi("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e},Du=