@blockcerts/blockcerts-verifier 1.50.2 → 1.50.5
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/dist/main.js
CHANGED
|
@@ -515,7 +515,7 @@ var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
515
515
|
</svg>
|
|
516
516
|
<span class='buv-u-visually-hidden'>${xi("text.brandname")}</span>
|
|
517
517
|
`}
|
|
518
|
-
</a>`;const Ei={en:function(e){const t=xi("numbers","ordinal"),r=e%100;return t[(r-20)%10]||t[r]||t[0]},fr:function(e){const t=xi("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>xi("numbers","ordinal"),it:()=>xi("numbers","ordinal"),mt:e=>xi("numbers","ordinal")[e-1]};function Si(e){return"mt"===vi.locale?Ei[vi.locale](e):e+Ei[vi.locale](e)}const Ci=({certificateTitle:e="",issueDate:t="",issuerName:r="",recipientName:n="",issuerPublicKey:i=[],issuerPublicDomain:o=[],issuerPublicUrl:s=[],issuerLogo:a="",qrCodeImage:c=""})=>{const u=[];(e||a)&&(u.push("<section>"),a&&u.push(`<div style="margin:0 auto;width:140px;height:140px;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url('${a}');"></div>`),e&&u.push(`<h2 style="margin:20px 0;font-size:18px;text-align:center">${e}</h2>`),u.push("</section>")),u.push('<section style="text-align:center">');const l=[{title:"Issue Date",value:t},{title:"Recipient",value:n},{title:"Issuer",value:r}];u.push(...l.map((e=>`<div style="margin:15px 0"><dt style="margin-bottom:5px;text-transform:uppercase;font-weight:600;font-size:12px">${e.title}</dt><dd style="margin:0;font-size:13px">${e.value}</dd></div>`)));const A=i.map(((e,t)=>({publicKey:e,url:s[t],domain:o[t]})));u.push(function(e){const t=e.length>1,r=['<div style="margin:15px 0">'];return r.push('<dt style="margin-bottom:5px;text-transform:uppercase;font-weight:600;font-size:12px">Issuer Information</dt>'),r.push('<dd style="margin:0;font-size:13px">'),r.push('<div style="display:flex;flex-direction:column;align-content:center;row-gap:4px;padding:0 20px;font-size:12px">'),r.push(...e.map(((e,r)=>{const n=['<div style="display:flex;flex-direction:column;row-gap:3px;justify-content:center;padding:5px 10px">'];return n.push("<div>"),t&&n.push(`<span style="font-weight:500;margin-right:10px">${Si(r+1)}</span>`),n.push(`<span>Public Key: ${e.publicKey}</span>`),n.push("</div>"),e.url&&e.domain&&n.push(`<span><a href="${e.url}">${e.domain}</a></span>`),n.push("</div>"),n.join("")}))),r.push("<div/>"),r.push("<dd/>"),r.push("<div/>"),r.join("")}(A)),u.push("</section>"),c&&(u.push("<section>"),u.push('<span style="margin-bottom:15px;font-size:10px">Scan the QR code to verify the document.</span>'),u.push(`<div style="margin:0 auto;width:110px;height:110px;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url('data:image/svg+xml;base64,${c}');"></div>`),u.push("</section>")),u.push(`<div style="width:150px">${_i().getHTML()}</div>`);const h=document.createElement("section");return h.setAttribute("style","width:595px;height:842px;padding:40px 20px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:'Open Sans',-apple-system,BlinkMacSystemFont,sans-serif;color:rgb(0,0,0);"),h.innerHTML=u.join(""),h};var Ii={exports:{}};!function(e){function t(e){this.mode=n.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,r=this.data.length;t<r;t++){var i=[],o=this.data.charCodeAt(t);o>65536?(i[0]=240|(1835008&o)>>>18,i[1]=128|(258048&o)>>>12,i[2]=128|(4032&o)>>>6,i[3]=128|63&o):o>2048?(i[0]=224|(61440&o)>>>12,i[1]=128|(4032&o)>>>6,i[2]=128|63&o):o>128?(i[0]=192|(1984&o)>>>6,i[1]=128|63&o):i[0]=o,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t<r;t++)e.put(this.parsedData[t],8)}},r.prototype={addData:function(e){var r=new t(e);this.dataList.push(r),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=g.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var a=1*s;this.modules[i][s]&&(n.beginFill(0,100),n.moveTo(a,o),n.lineTo(a+1,o),n.lineTo(a+1,o+1),n.lineTo(a,o+1),n.endFill())}return n},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=g.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],i=e[r];if(null==this.modules[n][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[n+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},setupTypeNumber:function(e){for(var t=g.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=g.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var a=0;a<2;a++)if(null==this.modules[n][s-a]){var c=!1;o<e.length&&(c=1==(e[o]>>>i&1)),g.getMask(t,n,s-a)&&(c=!c),this.modules[n][s-a]=c,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(e,t,n){for(var i=b.getRSBlocks(e,t),o=new w,s=0;s<n.length;s++){var a=n[s];o.put(a.mode,4),o.put(a.getLength(),g.getLengthInBits(a.mode,e)),a.write(o)}var c=0;for(s=0;s<i.length;s++)c+=i[s].dataCount;if(o.getLengthInBits()>8*c)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c||(o.put(r.PAD0,8),o.getLengthInBits()>=8*c));)o.put(r.PAD1,8);return r.createBytes(o,i)},r.createBytes=function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),s=new Array(t.length),a=0;a<t.length;a++){var c=t[a].dataCount,u=t[a].totalCount-c;n=Math.max(n,c),i=Math.max(i,u),o[a]=new Array(c);for(var l=0;l<o[a].length;l++)o[a][l]=255&e.buffer[l+r];r+=c;var A=g.getErrorCorrectPolynomial(u),h=new v(o[a],A.getLength()-1).mod(A);s[a]=new Array(A.getLength()-1);for(l=0;l<s[a].length;l++){var f=l+h.getLength()-s[a].length;s[a][l]=f>=0?h.get(f):0}}var d=0;for(l=0;l<t.length;l++)d+=t[l].totalCount;var p=new Array(d),m=0;for(l=0;l<n;l++)for(a=0;a<t.length;a++)l<o[a].length&&(p[m++]=o[a][l]);for(l=0;l<i;l++)for(a=0;a<t.length;a++)l<s[a].length&&(p[m++]=s[a][l]);return p};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i=1,o=0,s=3,a=2,c=0,u=1,l=2,A=3,h=4,f=5,d=6,p=7,g={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;g.getBCHDigit(t)-g.getBCHDigit(g.G15)>=0;)t^=g.G15<<g.getBCHDigit(t)-g.getBCHDigit(g.G15);return(e<<10|t)^g.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;g.getBCHDigit(t)-g.getBCHDigit(g.G18)>=0;)t^=g.G18<<g.getBCHDigit(t)-g.getBCHDigit(g.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return g.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case c:return(t+r)%2==0;case u:return t%2==0;case l:return r%3==0;case A:return(t+r)%3==0;case h:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case f:return t*r%2+t*r%3==0;case d:return(t*r%2+t*r%3)%2==0;case p:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new v([1],0),r=0;r<e;r++)t=t.multiply(new v([1,m.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var i=0;i<t;i++){for(var o=0,s=e.isDark(n,i),a=-1;a<=1;a++)if(!(n+a<0||t<=n+a))for(var c=-1;c<=1;c++)i+c<0||t<=i+c||0==a&&0==c||s==e.isDark(n+a,i+c)&&o++;o>5&&(r+=3+o-5)}for(n=0;n<t-1;n++)for(i=0;i<t-1;i++){var u=0;e.isDark(n,i)&&u++,e.isDark(n+1,i)&&u++,e.isDark(n,i+1)&&u++,e.isDark(n+1,i+1)&&u++,0!=u&&4!=u||(r+=3)}for(n=0;n<t;n++)for(i=0;i<t-6;i++)e.isDark(n,i)&&!e.isDark(n,i+1)&&e.isDark(n,i+2)&&e.isDark(n,i+3)&&e.isDark(n,i+4)&&!e.isDark(n,i+5)&&e.isDark(n,i+6)&&(r+=40);for(i=0;i<t;i++)for(n=0;n<t-6;n++)e.isDark(n,i)&&!e.isDark(n+1,i)&&e.isDark(n+2,i)&&e.isDark(n+3,i)&&e.isDark(n+4,i)&&!e.isDark(n+5,i)&&e.isDark(n+6,i)&&(r+=40);var l=0;for(i=0;i<t;i++)for(n=0;n<t;n++)e.isDark(n,i)&&l++;return r+=10*(Math.abs(100*l/t/t-50)/5)}},m={glog:function(e){if(e<1)throw new Error("glog("+e+")");return m.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return m.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},y=0;y<8;y++)m.EXP_TABLE[y]=1<<y;for(y=8;y<256;y++)m.EXP_TABLE[y]=m.EXP_TABLE[y-4]^m.EXP_TABLE[y-5]^m.EXP_TABLE[y-6]^m.EXP_TABLE[y-8];for(y=0;y<255;y++)m.LOG_TABLE[m.EXP_TABLE[y]]=y;function v(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}function b(e,t){this.totalCount=e,this.dataCount=t}function w(){this.buffer=[],this.length=0}v.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=m.gexp(m.glog(this.get(r))+m.glog(e.get(n)));return new v(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=m.glog(this.get(0))-m.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(n=0;n<e.getLength();n++)r[n]^=m.gexp(m.glog(e.get(n))+t);return new v(r,0).mod(e)}},b.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],b.getRSBlocks=function(e,t){var r=b.getRsBlockTable(e,t);if(null==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,i=[],o=0;o<n;o++)for(var s=r[3*o+0],a=r[3*o+1],c=r[3*o+2],u=0;u<s;u++)i.push(new b(a,c));return i},b.getRsBlockTable=function(e,t){switch(t){case i:return b.RS_BLOCK_TABLE[4*(e-1)+0];case o:return b.RS_BLOCK_TABLE[4*(e-1)+1];case s:return b.RS_BLOCK_TABLE[4*(e-1)+2];case a:return b.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},w.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var x=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function _(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,c=function(e,t){for(var r=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),n=1,i=0,o=0,s=x.length;o<=s;o++){var a=x[o];if(!a)throw new Error("Content too long: expected "+i+" but got "+r);switch(t){case"L":i=a[0];break;case"M":i=a[1];break;case"Q":i=a[2];break;case"H":i=a[3];break;default:throw new Error("Unknwon error correction level: "+t)}if(r<=i)break;n++}if(n>x.length)throw new Error("Content too long");return n}(n,this.options.ecl),u=function(e){switch(e){case"L":return i;case"M":return o;case"Q":return s;case"H":return a;default:throw new Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new r(c,u),this.qrcode.addData(n),this.qrcode.make()}_.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var n=void 0===t.pretty||!!t.pretty,i=n?" ":"",o=n?"\r\n":"",s=t.width,a=t.height,c=r.length,u=s/(c+2*t.padding),l=a/(c+2*t.padding),A=void 0!==t.join&&!!t.join,h=void 0!==t.swap&&!!t.swap,f=void 0===t.xmlDeclaration||!!t.xmlDeclaration,d=void 0!==t.predefined&&!!t.predefined,p=d?i+'<defs><path id="qrmodule" d="M0 0 h'+l+" v"+u+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+o:"",g=i+'<rect x="0" y="0" width="'+s+'" height="'+a+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+o,m="",y="",v=0;v<c;v++)for(var b=0;b<c;b++){if(r[b][v]){var w=b*u+t.padding*u,x=v*l+t.padding*l;if(h){var _=w;w=x,x=_}if(A){var B=u+w,E=l+x;w=Number.isInteger(w)?Number(w):w.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),B=Number.isInteger(B)?Number(B):B.toFixed(2),y+="M"+w+","+x+" V"+(E=Number.isInteger(E)?Number(E):E.toFixed(2))+" H"+B+" V"+x+" H"+w+" Z "}else m+=d?i+'<use x="'+w.toString()+'" y="'+x.toString()+'" href="#qrmodule" />'+o:i+'<rect x="'+w.toString()+'" y="'+x.toString()+'" width="'+u+'" height="'+l+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+o}}A&&(m=i+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+y+'" />');var S="";switch(e.container){case"svg":f&&(S+='<?xml version="1.0" standalone="yes"?>'+o),S+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+s+'" height="'+a+'">'+o,S+=p+g+m,S+="</svg>";break;case"svg-viewbox":f&&(S+='<?xml version="1.0" standalone="yes"?>'+o),S+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+s+" "+a+'">'+o,S+=p+g+m,S+="</svg>";break;case"g":S+='<g width="'+s+'" height="'+a+'">'+o,S+=p+g+m,S+="</g>";break;default:S+=(p+g+m).replace(/^\s+/,"")}return S},_.prototype.save=function(e,t){var r=this.svg();"function"!=typeof t&&(t=function(e,t){});try{require("fs").writeFile(e,r,t)}catch(e){t(e)}},e.exports=_}(Ii);var ki=Ii.exports;const Pi=e=>e?(e=>window.btoa(e))(new ki(e).svg()):null;const Ti={height:"0",overflow:"hidden"},Oi={padding:"20px","background-color":"#fff","font-family":"serif","text-align":"center",color:"#49555f","font-size":"12px","word-wrap":"break-word","min-height":"calc(100vh - 145px)","box-sizing":"border-box",margin:"0 auto","min-width":"600px","line-height":"initial",clipPath:"inset(0 100% 0 0)"},Li={"max-width":"460px"},Ni=async(e,t)=>{const r=Xe(t),n=Ui({...Oi,...Ti,...r?Li:{}});n.insertAdjacentHTML("beforeend",t);const i=((e,t)=>t?[e]:Array.from(e.querySelectorAll(":scope > div > div")))(n,r);for(const t of i){const r=Ze(t);e=await pi({pdf:e,pageHTMLElement:t,width:r.width,height:r.height,margin:10})}return Fi(n),e},Ui=e=>{const t=document.createElement("div");var r,n;return t.setAttribute("id","html2pdf-dom-container-identifier"),e&&(r=t,n=e,Object.keys(n).forEach((e=>{r.style[e]=n[e]}))),document.body.appendChild(t),t},Fi=e=>{document.body.removeChild(e)},Mi=async({contentType:e=null,contentEncoding:t="",content:r="",recipientName:n="",certificateTitle:i="",issueDate:o="",issuerName:s="",issuerLogo:a="",recordLink:c="",issuerPublicKey:u=[],issuerProfileUrl:l=[],issuerProfileDomain:A=[]})=>{const h=i;let f;const d=(e=>[$e.IMAGE_GIF,$e.IMAGE_BMP,$e.IMAGE_PNG,$e.IMAGE_JPEG].includes(e))(e),p=e===$e.TEXT_HTML;if((p||d)&&(f=await(async(e,t,r,n,i,o,s,a,c)=>{const u=Ui(Ti),l=Pi(o),A=Ci({certificateTitle:t,issueDate:r,issuerName:n,issuerLogo:i,issuerPublicKey:s,issuerPublicDomain:a,issuerPublicUrl:c,recipientName:e,qrCodeImage:l});u.appendChild(A);const h=await pi({pageHTMLElement:A,width:595,height:842,margin:0});return Fi(u),h})(n,i,o,s,a,c,u,A,l)),p)f=await Ni(f,r);else if(d)f=await gi(f,`data:${e};${t},${r}`);else{const n=function(e){return e===$e.APPLICATION_PDF?"pdf":""}($e.APPLICATION_PDF);!function(e,t,r,n,i=""){const o=`data:${t};${r},${e}`,s=document.createElement("a"),a=[n];i&&a.push(i);const c=a.join(".");s.href=o,s.download=c,s.click()}(r,e,t,h,n)}!function(e,t){e.save(t)}(f,h)};var Ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Di(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var ji={},Qi="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Hi=[],Ki=[],Vi="undefined"!=typeof Uint8Array?Uint8Array:Array,zi=!1;function qi(){zi=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Hi[t]=e[t],Ki[e.charCodeAt(t)]=t;Ki["-".charCodeAt(0)]=62,Ki["_".charCodeAt(0)]=63}function Gi(e,t,r){for(var n,i,o=[],s=t;s<r;s+=3)n=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(Hi[(i=n)>>18&63]+Hi[i>>12&63]+Hi[i>>6&63]+Hi[63&i]);return o.join("")}function Wi(e){var t;zi||qi();for(var r=e.length,n=r%3,i="",o=[],s=16383,a=0,c=r-n;a<c;a+=s)o.push(Gi(e,a,a+s>c?c:a+s));return 1===n?(t=e[r-1],i+=Hi[t>>2],i+=Hi[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=Hi[t>>10],i+=Hi[t>>4&63],i+=Hi[t<<2&63],i+="="),o.push(i),o.join("")}function $i(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,A=r?i-1:0,h=r?-1:1,f=e[t+A];for(A+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+A],A+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+A],A+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)}function Ji(e,t,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,A=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+A>=1?h/c:h*Math.pow(2,1-A))*c>=2&&(s++,c/=2),s+A>=l?(a=0,s=l):s+A>=1?(a=(t*c-1)*Math.pow(2,i),s+=A):(a=t*Math.pow(2,A-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+f]=255&s,f+=d,s/=256,u-=8);e[r+f-d]|=128*p}var Xi={}.toString,Yi=Array.isArray||function(e){return"[object Array]"==Xi.call(e)};ro.TYPED_ARRAY_SUPPORT=void 0===Qi.TYPED_ARRAY_SUPPORT||Qi.TYPED_ARRAY_SUPPORT;var Zi=eo();function eo(){return ro.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function to(e,t){if(eo()<t)throw new RangeError("Invalid typed array length");return ro.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ro.prototype:(null===e&&(e=new ro(t)),e.length=t),e}function ro(e,t,r){if(!(ro.TYPED_ARRAY_SUPPORT||this instanceof ro))return new ro(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return oo(this,e)}return no(this,e,t,r)}function no(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),ro.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ro.prototype:e=so(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!ro.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|uo(t,r),i=(e=to(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(co(t)){var r=0|ao(t.length);return 0===(e=to(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?to(e,0):so(e,t);if("Buffer"===t.type&&Yi(t.data))return so(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function io(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function oo(e,t){if(io(t),e=to(e,t<0?0:0|ao(t)),!ro.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function so(e,t){var r=t.length<0?0:0|ao(t.length);e=to(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function ao(e){if(e>=eo())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eo().toString(16)+" bytes");return 0|e}function co(e){return!(null==e||!e._isBuffer)}function uo(e,t){if(co(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Fo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Mo(e).length;default:if(n)return Fo(e).length;t=(""+t).toLowerCase(),n=!0}}function lo(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Eo(this,t,r);case"utf8":case"utf-8":return xo(this,t,r);case"ascii":return _o(this,t,r);case"latin1":case"binary":return Bo(this,t,r);case"base64":return wo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return So(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Ao(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ho(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=ro.from(t,n)),co(t))return 0===t.length?-1:fo(e,t,r,n,i);if("number"==typeof t)return t&=255,ro.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):fo(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function fo(e,t,r,n,i){var o,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){for(var A=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){A=!1;break}if(A)return o}return-1}function po(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function go(e,t,r,n){return Ro(Fo(t,e.length-r),e,r,n)}function mo(e,t,r,n){return Ro(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function yo(e,t,r,n){return mo(e,t,r,n)}function vo(e,t,r,n){return Ro(Mo(t),e,r,n)}function bo(e,t,r,n){return Ro(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function wo(e,t,r){return 0===t&&r===e.length?Wi(e):Wi(e.slice(t,r))}function xo(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,c,u=e[i],l=null,A=u>239?4:u>223?3:u>191?2:1;if(i+A<=r)switch(A){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,A=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=A}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function _o(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function Bo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Eo(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Uo(e[o]);return i}function So(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function Co(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Io(e,t,r,n,i,o){if(!co(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function ko(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Po(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function To(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Oo(e,t,r,n,i){return i||To(e,0,r,4),Ji(e,t,r,n,23,4),r+4}function Lo(e,t,r,n,i){return i||To(e,0,r,8),Ji(e,t,r,n,52,8),r+8}ro.poolSize=8192,ro._augment=function(e){return e.__proto__=ro.prototype,e},ro.from=function(e,t,r){return no(null,e,t,r)},ro.TYPED_ARRAY_SUPPORT&&(ro.prototype.__proto__=Uint8Array.prototype,ro.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ro[Symbol.species]),ro.alloc=function(e,t,r){return function(e,t,r,n){return io(t),t<=0?to(e,t):void 0!==r?"string"==typeof n?to(e,t).fill(r,n):to(e,t).fill(r):to(e,t)}(null,e,t,r)},ro.allocUnsafe=function(e){return oo(null,e)},ro.allocUnsafeSlow=function(e){return oo(null,e)},ro.isBuffer=Do,ro.compare=function(e,t){if(!co(e)||!co(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},ro.isEncoding=function(e){switch(String(e).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}},ro.concat=function(e,t){if(!Yi(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ro.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=ro.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!co(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},ro.byteLength=uo,ro.prototype._isBuffer=!0,ro.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ao(this,t,t+1);return this},ro.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ao(this,t,t+3),Ao(this,t+1,t+2);return this},ro.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ao(this,t,t+7),Ao(this,t+1,t+6),Ao(this,t+2,t+5),Ao(this,t+3,t+4);return this},ro.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?xo(this,0,e):lo.apply(this,arguments)},ro.prototype.equals=function(e){if(!co(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ro.compare(this,e)},ro.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ro.prototype.compare=function(e,t,r,n,i){if(!co(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(n,i),u=e.slice(t,r),l=0;l<a;++l)if(c[l]!==u[l]){o=c[l],s=u[l];break}return o<s?-1:s<o?1:0},ro.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},ro.prototype.indexOf=function(e,t,r){return ho(this,e,t,r,!0)},ro.prototype.lastIndexOf=function(e,t,r){return ho(this,e,t,r,!1)},ro.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return po(this,e,t,r);case"utf8":case"utf-8":return go(this,e,t,r);case"ascii":return mo(this,e,t,r);case"latin1":case"binary":return yo(this,e,t,r);case"base64":return vo(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bo(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},ro.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ro.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),ro.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=ro.prototype;else{var i=t-e;r=new ro(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},ro.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},ro.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},ro.prototype.readUInt8=function(e,t){return t||Co(e,1,this.length),this[e]},ro.prototype.readUInt16LE=function(e,t){return t||Co(e,2,this.length),this[e]|this[e+1]<<8},ro.prototype.readUInt16BE=function(e,t){return t||Co(e,2,this.length),this[e]<<8|this[e+1]},ro.prototype.readUInt32LE=function(e,t){return t||Co(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ro.prototype.readUInt32BE=function(e,t){return t||Co(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ro.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},ro.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},ro.prototype.readInt8=function(e,t){return t||Co(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ro.prototype.readInt16LE=function(e,t){t||Co(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ro.prototype.readInt16BE=function(e,t){t||Co(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ro.prototype.readInt32LE=function(e,t){return t||Co(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ro.prototype.readInt32BE=function(e,t){return t||Co(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ro.prototype.readFloatLE=function(e,t){return t||Co(e,4,this.length),$i(this,e,!0,23,4)},ro.prototype.readFloatBE=function(e,t){return t||Co(e,4,this.length),$i(this,e,!1,23,4)},ro.prototype.readDoubleLE=function(e,t){return t||Co(e,8,this.length),$i(this,e,!0,52,8)},ro.prototype.readDoubleBE=function(e,t){return t||Co(e,8,this.length),$i(this,e,!1,52,8)},ro.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Io(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},ro.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Io(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},ro.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,1,255,0),ro.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ro.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,65535,0),ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ko(this,e,t,!0),t+2},ro.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,65535,0),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ko(this,e,t,!1),t+2},ro.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,4294967295,0),ro.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Po(this,e,t,!0),t+4},ro.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,4294967295,0),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Po(this,e,t,!1),t+4},ro.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Io(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},ro.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Io(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},ro.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,1,127,-128),ro.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ro.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,32767,-32768),ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ko(this,e,t,!0),t+2},ro.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,32767,-32768),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ko(this,e,t,!1),t+2},ro.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,2147483647,-2147483648),ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Po(this,e,t,!0),t+4},ro.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Po(this,e,t,!1),t+4},ro.prototype.writeFloatLE=function(e,t,r){return Oo(this,e,t,!0,r)},ro.prototype.writeFloatBE=function(e,t,r){return Oo(this,e,t,!1,r)},ro.prototype.writeDoubleLE=function(e,t,r){return Lo(this,e,t,!0,r)},ro.prototype.writeDoubleBE=function(e,t,r){return Lo(this,e,t,!1,r)},ro.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!ro.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},ro.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!ro.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=co(e)?e:Fo(new ro(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var No=/[^+\/0-9A-Za-z-_]/g;function Uo(e){return e<16?"0"+e.toString(16):e.toString(16)}function Fo(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Mo(e){return function(e){var t,r,n,i,o,s;zi||qi();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new Vi(3*a/4-o),n=o>0?a-4:a;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Ki[e.charCodeAt(t)]<<18|Ki[e.charCodeAt(t+1)]<<12|Ki[e.charCodeAt(t+2)]<<6|Ki[e.charCodeAt(t+3)],s[c++]=i>>16&255,s[c++]=i>>8&255,s[c++]=255&i;return 2===o?(i=Ki[e.charCodeAt(t)]<<2|Ki[e.charCodeAt(t+1)]>>4,s[c++]=255&i):1===o&&(i=Ki[e.charCodeAt(t)]<<10|Ki[e.charCodeAt(t+1)]<<4|Ki[e.charCodeAt(t+2)]>>2,s[c++]=i>>8&255,s[c++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(No,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ro(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Do(e){return null!=e&&(!!e._isBuffer||jo(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&jo(e.slice(0,0))}(e))}function jo(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Qo=Di(Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:Zi,Buffer:ro,SlowBuffer:function(e){return+e!=e&&(e=0),ro.alloc(+e)},isBuffer:Do})),Ho={
|
|
518
|
+
</a>`;const Ei={en:function(e){const t=xi("numbers","ordinal"),r=e%100;return t[(r-20)%10]||t[r]||t[0]},fr:function(e){const t=xi("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>xi("numbers","ordinal"),it:()=>xi("numbers","ordinal"),mt:e=>xi("numbers","ordinal")[e-1]};function Si(e){return"mt"===vi.locale?Ei[vi.locale](e):e+Ei[vi.locale](e)}const Ci=({certificateTitle:e="",issueDate:t="",issuerName:r="",recipientName:n="",issuerPublicKey:i=[],issuerPublicDomain:o=[],issuerPublicUrl:s=[],issuerLogo:a="",qrCodeImage:c=""})=>{const u=[];(e||a)&&(u.push("<section>"),a&&u.push(`<div style="margin:0 auto;width:140px;height:140px;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url('${a}');"></div>`),e&&u.push(`<h2 style="margin:20px 0;font-size:18px;text-align:center">${e}</h2>`),u.push("</section>")),u.push('<section style="text-align:center">');const l=[{title:"Issue Date",value:t},{title:"Recipient",value:n},{title:"Issuer",value:r}];u.push(...l.map((e=>`<div style="margin:15px 0"><dt style="margin-bottom:5px;text-transform:uppercase;font-weight:600;font-size:12px">${e.title}</dt><dd style="margin:0;font-size:13px">${e.value}</dd></div>`)));const A=i.map(((e,t)=>({publicKey:e,url:s[t],domain:o[t]})));u.push(function(e){const t=e.length>1,r=['<div style="margin:15px 0">'];return r.push('<dt style="margin-bottom:5px;text-transform:uppercase;font-weight:600;font-size:12px">Issuer Information</dt>'),r.push('<dd style="margin:0;font-size:13px">'),r.push('<div style="display:flex;flex-direction:column;align-content:center;row-gap:4px;padding:0 20px;font-size:12px">'),r.push(...e.map(((e,r)=>{const n=['<div style="display:flex;flex-direction:column;row-gap:3px;justify-content:center;padding:5px 10px">'];return n.push("<div>"),t&&n.push(`<span style="font-weight:500;margin-right:10px">${Si(r+1)}</span>`),n.push(`<span>Public Key: ${e.publicKey}</span>`),n.push("</div>"),e.url&&e.domain&&n.push(`<span><a href="${e.url}">${e.domain}</a></span>`),n.push("</div>"),n.join("")}))),r.push("<div/>"),r.push("<dd/>"),r.push("<div/>"),r.join("")}(A)),u.push("</section>"),c&&(u.push("<section>"),u.push('<span style="margin-bottom:15px;font-size:10px">Scan the QR code to verify the document.</span>'),u.push(`<div style="margin:0 auto;width:110px;height:110px;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url('data:image/svg+xml;base64,${c}');"></div>`),u.push("</section>")),u.push(`<div style="width:150px">${_i().getHTML()}</div>`);const h=document.createElement("section");return h.setAttribute("style","width:595px;height:842px;padding:40px 20px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:'Open Sans',-apple-system,BlinkMacSystemFont,sans-serif;color:rgb(0,0,0);"),h.innerHTML=u.join(""),h};var Ii={exports:{}};!function(e){function t(e){this.mode=n.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,r=this.data.length;t<r;t++){var i=[],o=this.data.charCodeAt(t);o>65536?(i[0]=240|(1835008&o)>>>18,i[1]=128|(258048&o)>>>12,i[2]=128|(4032&o)>>>6,i[3]=128|63&o):o>2048?(i[0]=224|(61440&o)>>>12,i[1]=128|(4032&o)>>>6,i[2]=128|63&o):o>128?(i[0]=192|(1984&o)>>>6,i[1]=128|63&o):i[0]=o,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t<r;t++)e.put(this.parsedData[t],8)}},r.prototype={addData:function(e){var r=new t(e);this.dataList.push(r),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=g.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var a=1*s;this.modules[i][s]&&(n.beginFill(0,100),n.moveTo(a,o),n.lineTo(a+1,o),n.lineTo(a+1,o+1),n.lineTo(a,o+1),n.endFill())}return n},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=g.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],i=e[r];if(null==this.modules[n][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[n+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},setupTypeNumber:function(e){for(var t=g.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=g.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var a=0;a<2;a++)if(null==this.modules[n][s-a]){var c=!1;o<e.length&&(c=1==(e[o]>>>i&1)),g.getMask(t,n,s-a)&&(c=!c),this.modules[n][s-a]=c,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(e,t,n){for(var i=b.getRSBlocks(e,t),o=new w,s=0;s<n.length;s++){var a=n[s];o.put(a.mode,4),o.put(a.getLength(),g.getLengthInBits(a.mode,e)),a.write(o)}var c=0;for(s=0;s<i.length;s++)c+=i[s].dataCount;if(o.getLengthInBits()>8*c)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c||(o.put(r.PAD0,8),o.getLengthInBits()>=8*c));)o.put(r.PAD1,8);return r.createBytes(o,i)},r.createBytes=function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),s=new Array(t.length),a=0;a<t.length;a++){var c=t[a].dataCount,u=t[a].totalCount-c;n=Math.max(n,c),i=Math.max(i,u),o[a]=new Array(c);for(var l=0;l<o[a].length;l++)o[a][l]=255&e.buffer[l+r];r+=c;var A=g.getErrorCorrectPolynomial(u),h=new v(o[a],A.getLength()-1).mod(A);s[a]=new Array(A.getLength()-1);for(l=0;l<s[a].length;l++){var f=l+h.getLength()-s[a].length;s[a][l]=f>=0?h.get(f):0}}var d=0;for(l=0;l<t.length;l++)d+=t[l].totalCount;var p=new Array(d),m=0;for(l=0;l<n;l++)for(a=0;a<t.length;a++)l<o[a].length&&(p[m++]=o[a][l]);for(l=0;l<i;l++)for(a=0;a<t.length;a++)l<s[a].length&&(p[m++]=s[a][l]);return p};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i=1,o=0,s=3,a=2,c=0,u=1,l=2,A=3,h=4,f=5,d=6,p=7,g={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;g.getBCHDigit(t)-g.getBCHDigit(g.G15)>=0;)t^=g.G15<<g.getBCHDigit(t)-g.getBCHDigit(g.G15);return(e<<10|t)^g.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;g.getBCHDigit(t)-g.getBCHDigit(g.G18)>=0;)t^=g.G18<<g.getBCHDigit(t)-g.getBCHDigit(g.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return g.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case c:return(t+r)%2==0;case u:return t%2==0;case l:return r%3==0;case A:return(t+r)%3==0;case h:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case f:return t*r%2+t*r%3==0;case d:return(t*r%2+t*r%3)%2==0;case p:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new v([1],0),r=0;r<e;r++)t=t.multiply(new v([1,m.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var i=0;i<t;i++){for(var o=0,s=e.isDark(n,i),a=-1;a<=1;a++)if(!(n+a<0||t<=n+a))for(var c=-1;c<=1;c++)i+c<0||t<=i+c||0==a&&0==c||s==e.isDark(n+a,i+c)&&o++;o>5&&(r+=3+o-5)}for(n=0;n<t-1;n++)for(i=0;i<t-1;i++){var u=0;e.isDark(n,i)&&u++,e.isDark(n+1,i)&&u++,e.isDark(n,i+1)&&u++,e.isDark(n+1,i+1)&&u++,0!=u&&4!=u||(r+=3)}for(n=0;n<t;n++)for(i=0;i<t-6;i++)e.isDark(n,i)&&!e.isDark(n,i+1)&&e.isDark(n,i+2)&&e.isDark(n,i+3)&&e.isDark(n,i+4)&&!e.isDark(n,i+5)&&e.isDark(n,i+6)&&(r+=40);for(i=0;i<t;i++)for(n=0;n<t-6;n++)e.isDark(n,i)&&!e.isDark(n+1,i)&&e.isDark(n+2,i)&&e.isDark(n+3,i)&&e.isDark(n+4,i)&&!e.isDark(n+5,i)&&e.isDark(n+6,i)&&(r+=40);var l=0;for(i=0;i<t;i++)for(n=0;n<t;n++)e.isDark(n,i)&&l++;return r+=10*(Math.abs(100*l/t/t-50)/5)}},m={glog:function(e){if(e<1)throw new Error("glog("+e+")");return m.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return m.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},y=0;y<8;y++)m.EXP_TABLE[y]=1<<y;for(y=8;y<256;y++)m.EXP_TABLE[y]=m.EXP_TABLE[y-4]^m.EXP_TABLE[y-5]^m.EXP_TABLE[y-6]^m.EXP_TABLE[y-8];for(y=0;y<255;y++)m.LOG_TABLE[m.EXP_TABLE[y]]=y;function v(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}function b(e,t){this.totalCount=e,this.dataCount=t}function w(){this.buffer=[],this.length=0}v.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=m.gexp(m.glog(this.get(r))+m.glog(e.get(n)));return new v(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=m.glog(this.get(0))-m.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(n=0;n<e.getLength();n++)r[n]^=m.gexp(m.glog(e.get(n))+t);return new v(r,0).mod(e)}},b.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],b.getRSBlocks=function(e,t){var r=b.getRsBlockTable(e,t);if(null==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,i=[],o=0;o<n;o++)for(var s=r[3*o+0],a=r[3*o+1],c=r[3*o+2],u=0;u<s;u++)i.push(new b(a,c));return i},b.getRsBlockTable=function(e,t){switch(t){case i:return b.RS_BLOCK_TABLE[4*(e-1)+0];case o:return b.RS_BLOCK_TABLE[4*(e-1)+1];case s:return b.RS_BLOCK_TABLE[4*(e-1)+2];case a:return b.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},w.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var x=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function _(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,c=function(e,t){for(var r=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),n=1,i=0,o=0,s=x.length;o<=s;o++){var a=x[o];if(!a)throw new Error("Content too long: expected "+i+" but got "+r);switch(t){case"L":i=a[0];break;case"M":i=a[1];break;case"Q":i=a[2];break;case"H":i=a[3];break;default:throw new Error("Unknwon error correction level: "+t)}if(r<=i)break;n++}if(n>x.length)throw new Error("Content too long");return n}(n,this.options.ecl),u=function(e){switch(e){case"L":return i;case"M":return o;case"Q":return s;case"H":return a;default:throw new Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new r(c,u),this.qrcode.addData(n),this.qrcode.make()}_.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var n=void 0===t.pretty||!!t.pretty,i=n?" ":"",o=n?"\r\n":"",s=t.width,a=t.height,c=r.length,u=s/(c+2*t.padding),l=a/(c+2*t.padding),A=void 0!==t.join&&!!t.join,h=void 0!==t.swap&&!!t.swap,f=void 0===t.xmlDeclaration||!!t.xmlDeclaration,d=void 0!==t.predefined&&!!t.predefined,p=d?i+'<defs><path id="qrmodule" d="M0 0 h'+l+" v"+u+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+o:"",g=i+'<rect x="0" y="0" width="'+s+'" height="'+a+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+o,m="",y="",v=0;v<c;v++)for(var b=0;b<c;b++){if(r[b][v]){var w=b*u+t.padding*u,x=v*l+t.padding*l;if(h){var _=w;w=x,x=_}if(A){var B=u+w,E=l+x;w=Number.isInteger(w)?Number(w):w.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),B=Number.isInteger(B)?Number(B):B.toFixed(2),y+="M"+w+","+x+" V"+(E=Number.isInteger(E)?Number(E):E.toFixed(2))+" H"+B+" V"+x+" H"+w+" Z "}else m+=d?i+'<use x="'+w.toString()+'" y="'+x.toString()+'" href="#qrmodule" />'+o:i+'<rect x="'+w.toString()+'" y="'+x.toString()+'" width="'+u+'" height="'+l+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+o}}A&&(m=i+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+y+'" />');var S="";switch(e.container){case"svg":f&&(S+='<?xml version="1.0" standalone="yes"?>'+o),S+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+s+'" height="'+a+'">'+o,S+=p+g+m,S+="</svg>";break;case"svg-viewbox":f&&(S+='<?xml version="1.0" standalone="yes"?>'+o),S+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+s+" "+a+'">'+o,S+=p+g+m,S+="</svg>";break;case"g":S+='<g width="'+s+'" height="'+a+'">'+o,S+=p+g+m,S+="</g>";break;default:S+=(p+g+m).replace(/^\s+/,"")}return S},_.prototype.save=function(e,t){var r=this.svg();"function"!=typeof t&&(t=function(e,t){});try{require("fs").writeFile(e,r,t)}catch(e){t(e)}},e.exports=_}(Ii);var ki=Ii.exports;const Pi=e=>e?(e=>window.btoa(e))(new ki(e).svg()):null;const Ti={overflow:"hidden",left:"-1000px"},Oi={position:"absolute",padding:"20px","background-color":"#fff","font-family":"serif","text-align":"center",color:"#49555f","font-size":"12px","word-wrap":"break-word","min-height":"calc(100vh - 145px)","box-sizing":"border-box",margin:"0 auto","min-width":"600px","line-height":"initial",clipPath:"inset(0 100% 0 0)"},Li={"max-width":"460px"},Ni=async(e,t)=>{const r=Xe(t),n=Ui({...Oi,...Ti,...r?Li:{}});n.insertAdjacentHTML("beforeend",t);const i=((e,t)=>t?[e]:Array.from(e.querySelectorAll(":scope > div > div")))(n,r);for(const t of i){const r=Ze(t);e=await pi({pdf:e,pageHTMLElement:t,width:r.width,height:r.height,margin:10})}return Fi(n),e},Ui=e=>{const t=document.createElement("div");var r,n;return t.setAttribute("id","html2pdf-dom-container-identifier"),e&&(r=t,n=e,Object.keys(n).forEach((e=>{r.style[e]=n[e]}))),document.body.appendChild(t),t},Fi=e=>{document.body.removeChild(e)},Mi=async({contentType:e=null,contentEncoding:t="",content:r="",recipientName:n="",certificateTitle:i="",issueDate:o="",issuerName:s="",issuerLogo:a="",recordLink:c="",issuerPublicKey:u=[],issuerProfileUrl:l=[],issuerProfileDomain:A=[]})=>{const h=i;let f;const d=(e=>[$e.IMAGE_GIF,$e.IMAGE_BMP,$e.IMAGE_PNG,$e.IMAGE_JPEG].includes(e))(e),p=e===$e.TEXT_HTML;if((p||d)&&(f=await(async(e,t,r,n,i,o,s,a,c)=>{const u=Ui(Ti),l=Pi(o),A=Ci({certificateTitle:t,issueDate:r,issuerName:n,issuerLogo:i,issuerPublicKey:s,issuerPublicDomain:a,issuerPublicUrl:c,recipientName:e,qrCodeImage:l});u.appendChild(A);const h=await pi({pageHTMLElement:A,width:595,height:842,margin:0});return Fi(u),h})(n,i,o,s,a,c,u,A,l)),p)f=await Ni(f,r);else if(d)f=await gi(f,`data:${e};${t},${r}`);else{const n=function(e){return e===$e.APPLICATION_PDF?"pdf":""}($e.APPLICATION_PDF);!function(e,t,r,n,i=""){const o=`data:${t};${r},${e}`,s=document.createElement("a"),a=[n];i&&a.push(i);const c=a.join(".");s.href=o,s.download=c,s.click()}(r,e,t,h,n)}!function(e,t){e.save(t)}(f,h)};var Ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Di(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var ji={},Qi="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Hi=[],Ki=[],Vi="undefined"!=typeof Uint8Array?Uint8Array:Array,zi=!1;function qi(){zi=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Hi[t]=e[t],Ki[e.charCodeAt(t)]=t;Ki["-".charCodeAt(0)]=62,Ki["_".charCodeAt(0)]=63}function Gi(e,t,r){for(var n,i,o=[],s=t;s<r;s+=3)n=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(Hi[(i=n)>>18&63]+Hi[i>>12&63]+Hi[i>>6&63]+Hi[63&i]);return o.join("")}function Wi(e){var t;zi||qi();for(var r=e.length,n=r%3,i="",o=[],s=16383,a=0,c=r-n;a<c;a+=s)o.push(Gi(e,a,a+s>c?c:a+s));return 1===n?(t=e[r-1],i+=Hi[t>>2],i+=Hi[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=Hi[t>>10],i+=Hi[t>>4&63],i+=Hi[t<<2&63],i+="="),o.push(i),o.join("")}function $i(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,A=r?i-1:0,h=r?-1:1,f=e[t+A];for(A+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+A],A+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+A],A+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)}function Ji(e,t,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,A=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+A>=1?h/c:h*Math.pow(2,1-A))*c>=2&&(s++,c/=2),s+A>=l?(a=0,s=l):s+A>=1?(a=(t*c-1)*Math.pow(2,i),s+=A):(a=t*Math.pow(2,A-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+f]=255&s,f+=d,s/=256,u-=8);e[r+f-d]|=128*p}var Xi={}.toString,Yi=Array.isArray||function(e){return"[object Array]"==Xi.call(e)};ro.TYPED_ARRAY_SUPPORT=void 0===Qi.TYPED_ARRAY_SUPPORT||Qi.TYPED_ARRAY_SUPPORT;var Zi=eo();function eo(){return ro.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function to(e,t){if(eo()<t)throw new RangeError("Invalid typed array length");return ro.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ro.prototype:(null===e&&(e=new ro(t)),e.length=t),e}function ro(e,t,r){if(!(ro.TYPED_ARRAY_SUPPORT||this instanceof ro))return new ro(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return oo(this,e)}return no(this,e,t,r)}function no(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),ro.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ro.prototype:e=so(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!ro.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|uo(t,r),i=(e=to(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(co(t)){var r=0|ao(t.length);return 0===(e=to(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?to(e,0):so(e,t);if("Buffer"===t.type&&Yi(t.data))return so(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function io(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function oo(e,t){if(io(t),e=to(e,t<0?0:0|ao(t)),!ro.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function so(e,t){var r=t.length<0?0:0|ao(t.length);e=to(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function ao(e){if(e>=eo())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eo().toString(16)+" bytes");return 0|e}function co(e){return!(null==e||!e._isBuffer)}function uo(e,t){if(co(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Fo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Mo(e).length;default:if(n)return Fo(e).length;t=(""+t).toLowerCase(),n=!0}}function lo(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Eo(this,t,r);case"utf8":case"utf-8":return xo(this,t,r);case"ascii":return _o(this,t,r);case"latin1":case"binary":return Bo(this,t,r);case"base64":return wo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return So(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Ao(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ho(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=ro.from(t,n)),co(t))return 0===t.length?-1:fo(e,t,r,n,i);if("number"==typeof t)return t&=255,ro.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):fo(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function fo(e,t,r,n,i){var o,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){for(var A=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){A=!1;break}if(A)return o}return-1}function po(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function go(e,t,r,n){return Ro(Fo(t,e.length-r),e,r,n)}function mo(e,t,r,n){return Ro(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function yo(e,t,r,n){return mo(e,t,r,n)}function vo(e,t,r,n){return Ro(Mo(t),e,r,n)}function bo(e,t,r,n){return Ro(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function wo(e,t,r){return 0===t&&r===e.length?Wi(e):Wi(e.slice(t,r))}function xo(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,c,u=e[i],l=null,A=u>239?4:u>223?3:u>191?2:1;if(i+A<=r)switch(A){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,A=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=A}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function _o(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function Bo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Eo(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Uo(e[o]);return i}function So(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function Co(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Io(e,t,r,n,i,o){if(!co(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function ko(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Po(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function To(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Oo(e,t,r,n,i){return i||To(e,0,r,4),Ji(e,t,r,n,23,4),r+4}function Lo(e,t,r,n,i){return i||To(e,0,r,8),Ji(e,t,r,n,52,8),r+8}ro.poolSize=8192,ro._augment=function(e){return e.__proto__=ro.prototype,e},ro.from=function(e,t,r){return no(null,e,t,r)},ro.TYPED_ARRAY_SUPPORT&&(ro.prototype.__proto__=Uint8Array.prototype,ro.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ro[Symbol.species]),ro.alloc=function(e,t,r){return function(e,t,r,n){return io(t),t<=0?to(e,t):void 0!==r?"string"==typeof n?to(e,t).fill(r,n):to(e,t).fill(r):to(e,t)}(null,e,t,r)},ro.allocUnsafe=function(e){return oo(null,e)},ro.allocUnsafeSlow=function(e){return oo(null,e)},ro.isBuffer=Do,ro.compare=function(e,t){if(!co(e)||!co(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},ro.isEncoding=function(e){switch(String(e).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}},ro.concat=function(e,t){if(!Yi(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ro.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=ro.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!co(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},ro.byteLength=uo,ro.prototype._isBuffer=!0,ro.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ao(this,t,t+1);return this},ro.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ao(this,t,t+3),Ao(this,t+1,t+2);return this},ro.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ao(this,t,t+7),Ao(this,t+1,t+6),Ao(this,t+2,t+5),Ao(this,t+3,t+4);return this},ro.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?xo(this,0,e):lo.apply(this,arguments)},ro.prototype.equals=function(e){if(!co(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ro.compare(this,e)},ro.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ro.prototype.compare=function(e,t,r,n,i){if(!co(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(n,i),u=e.slice(t,r),l=0;l<a;++l)if(c[l]!==u[l]){o=c[l],s=u[l];break}return o<s?-1:s<o?1:0},ro.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},ro.prototype.indexOf=function(e,t,r){return ho(this,e,t,r,!0)},ro.prototype.lastIndexOf=function(e,t,r){return ho(this,e,t,r,!1)},ro.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return po(this,e,t,r);case"utf8":case"utf-8":return go(this,e,t,r);case"ascii":return mo(this,e,t,r);case"latin1":case"binary":return yo(this,e,t,r);case"base64":return vo(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bo(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},ro.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ro.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),ro.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=ro.prototype;else{var i=t-e;r=new ro(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},ro.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},ro.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},ro.prototype.readUInt8=function(e,t){return t||Co(e,1,this.length),this[e]},ro.prototype.readUInt16LE=function(e,t){return t||Co(e,2,this.length),this[e]|this[e+1]<<8},ro.prototype.readUInt16BE=function(e,t){return t||Co(e,2,this.length),this[e]<<8|this[e+1]},ro.prototype.readUInt32LE=function(e,t){return t||Co(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ro.prototype.readUInt32BE=function(e,t){return t||Co(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ro.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},ro.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Co(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},ro.prototype.readInt8=function(e,t){return t||Co(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ro.prototype.readInt16LE=function(e,t){t||Co(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ro.prototype.readInt16BE=function(e,t){t||Co(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ro.prototype.readInt32LE=function(e,t){return t||Co(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ro.prototype.readInt32BE=function(e,t){return t||Co(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ro.prototype.readFloatLE=function(e,t){return t||Co(e,4,this.length),$i(this,e,!0,23,4)},ro.prototype.readFloatBE=function(e,t){return t||Co(e,4,this.length),$i(this,e,!1,23,4)},ro.prototype.readDoubleLE=function(e,t){return t||Co(e,8,this.length),$i(this,e,!0,52,8)},ro.prototype.readDoubleBE=function(e,t){return t||Co(e,8,this.length),$i(this,e,!1,52,8)},ro.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Io(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},ro.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Io(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},ro.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,1,255,0),ro.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ro.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,65535,0),ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ko(this,e,t,!0),t+2},ro.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,65535,0),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ko(this,e,t,!1),t+2},ro.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,4294967295,0),ro.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Po(this,e,t,!0),t+4},ro.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,4294967295,0),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Po(this,e,t,!1),t+4},ro.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Io(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},ro.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Io(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},ro.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,1,127,-128),ro.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ro.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,32767,-32768),ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ko(this,e,t,!0),t+2},ro.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,2,32767,-32768),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ko(this,e,t,!1),t+2},ro.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,2147483647,-2147483648),ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Po(this,e,t,!0),t+4},ro.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Io(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Po(this,e,t,!1),t+4},ro.prototype.writeFloatLE=function(e,t,r){return Oo(this,e,t,!0,r)},ro.prototype.writeFloatBE=function(e,t,r){return Oo(this,e,t,!1,r)},ro.prototype.writeDoubleLE=function(e,t,r){return Lo(this,e,t,!0,r)},ro.prototype.writeDoubleBE=function(e,t,r){return Lo(this,e,t,!1,r)},ro.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!ro.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},ro.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!ro.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=co(e)?e:Fo(new ro(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var No=/[^+\/0-9A-Za-z-_]/g;function Uo(e){return e<16?"0"+e.toString(16):e.toString(16)}function Fo(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Mo(e){return function(e){var t,r,n,i,o,s;zi||qi();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new Vi(3*a/4-o),n=o>0?a-4:a;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Ki[e.charCodeAt(t)]<<18|Ki[e.charCodeAt(t+1)]<<12|Ki[e.charCodeAt(t+2)]<<6|Ki[e.charCodeAt(t+3)],s[c++]=i>>16&255,s[c++]=i>>8&255,s[c++]=255&i;return 2===o?(i=Ki[e.charCodeAt(t)]<<2|Ki[e.charCodeAt(t+1)]>>4,s[c++]=255&i):1===o&&(i=Ki[e.charCodeAt(t)]<<10|Ki[e.charCodeAt(t+1)]<<4|Ki[e.charCodeAt(t+2)]>>2,s[c++]=i>>8&255,s[c++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(No,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ro(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Do(e){return null!=e&&(!!e._isBuffer||jo(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&jo(e.slice(0,0))}(e))}function jo(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Qo=Di(Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:Zi,Buffer:ro,SlowBuffer:function(e){return+e!=e&&(e=0),ro.alloc(+e)},isBuffer:Do})),Ho={
|
|
519
519
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
520
520
|
read:function(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,A=r?i-1:0,h=r?-1:1,f=e[t+A];for(A+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+A],A+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+A],A+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},write:function(e,t,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,A=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+A>=1?h/c:h*Math.pow(2,1-A))*c>=2&&(s++,c/=2),s+A>=l?(a=0,s=l):s+A>=1?(a=(t*c-1)*Math.pow(2,i),s+=A):(a=t*Math.pow(2,A-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+f]=255&s,f+=d,s/=256,u-=8);e[r+f-d]|=128*p}},Ko={exports:{}};!function(e){!function(t){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,s="[BigNumber Error] ",a=s+"Number primitive has more than 15 significant digits: ",c=1e14,u=14,l=9007199254740991,A=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,f=1e9;function d(e){var t=0|e;return e>0||e===t?t:t-1}function p(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=u-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,c=e.e,u=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(a=(c=i.length)<(u=o.length)?c:u,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return c==u?0:c>u^r?1:-1}function m(e,t,r,n){if(e<t||e>r||e!==o(e))throw Error(s+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return d(e.e/u)==t&&e.c[t]%2!=0}function v(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function b(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}r=function e(t){var r,w,x,_,B,E,S,C,I,k,P=V.prototype={constructor:V,toString:null,valueOf:null},T=new V(1),O=20,L=4,N=-7,U=21,F=-1e7,M=1e7,R=!1,D=1,j=0,Q={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},H="0123456789abcdefghijklmnopqrstuvwxyz",K=!0;function V(e,t){var r,i,s,c,A,h,f,d,p=this;if(!(p instanceof V))return new V(e,t);if(null==t){if(e&&!0===e._isBigNumber)return p.s=e.s,void(!e.c||e.e>M?p.c=p.e=null:e.e<F?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,A=e;A>=10;A/=10,c++);return void(c>M?p.c=p.e=null:(p.e=c,p.c=[e]))}d=String(e)}else{if(!n.test(d=String(e)))return x(p,d,h);p.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(c=d.indexOf("."))>-1&&(d=d.replace(".","")),(A=d.search(/e/i))>0?(c<0&&(c=A),c+=+d.slice(A+1),d=d.substring(0,A)):c<0&&(c=d.length)}else{if(m(t,2,H.length,"Base"),10==t&&K)return W(p=new V(e),O+p.e+1,L);if(d=String(e),h="number"==typeof e){if(0*e!=0)return x(p,d,h,t);if(p.s=1/e<0?(d=d.slice(1),-1):1,V.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else p.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(r=H.slice(0,t),c=A=0,f=d.length;A<f;A++)if(r.indexOf(i=d.charAt(A))<0){if("."==i){if(A>c){c=f;continue}}else if(!s&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){s=!0,A=-1,c=0;continue}return x(p,String(e),h,t)}h=!1,(c=(d=w(d,t,10,p.s)).indexOf("."))>-1?d=d.replace(".",""):c=d.length}for(A=0;48===d.charCodeAt(A);A++);for(f=d.length;48===d.charCodeAt(--f););if(d=d.slice(A,++f)){if(f-=A,h&&V.DEBUG&&f>15&&(e>l||e!==o(e)))throw Error(a+p.s*e);if((c=c-A-1)>M)p.c=p.e=null;else if(c<F)p.c=[p.e=0];else{if(p.e=c,p.c=[],A=(c+1)%u,c<0&&(A+=u),A<f){for(A&&p.c.push(+d.slice(0,A)),f-=u;A<f;)p.c.push(+d.slice(A,A+=u));A=u-(d=d.slice(A)).length}else A-=f;for(;A--;d+="0");p.c.push(+d)}}else p.c=[p.e=0]}function z(e,t,r,n){var i,o,s,a,c;if(null==r?r=L:m(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)c=p(e.c),c=1==n||2==n&&(s<=N||s>=U)?v(c,s):b(c,s,"0");else if(o=(e=W(new V(e),t,r)).e,a=(c=p(e.c)).length,1==n||2==n&&(t<=o||o<=N)){for(;a<t;c+="0",a++);c=v(c,o)}else if(t-=s,c=b(c,o,"0"),o+1>a){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-a)>0)for(o+1==a&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function q(e,t){for(var r,n=1,i=new V(e[0]);n<e.length;n++){if(!(r=new V(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function G(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*u-1)>M?e.c=e.e=null:r<F?e.c=[e.e=0]:(e.e=r,e.c=t),e}function W(e,t,r,n){var s,a,l,h,f,d,p,g=e.c,m=A;if(g){e:{for(s=1,h=g[0];h>=10;h/=10,s++);if((a=t-s)<0)a+=u,l=t,p=(f=g[d=0])/m[s-l-1]%10|0;else if((d=i((a+1)/u))>=g.length){if(!n)break e;for(;g.length<=d;g.push(0));f=p=0,s=1,l=(a%=u)-u+1}else{for(f=h=g[d],s=1;h>=10;h/=10,s++);p=(l=(a%=u)-u+s)<0?0:f/m[s-l-1]%10|0}if(n=n||t<0||null!=g[d+1]||(l<0?f:f%m[s-l-1]),n=r<4?(p||n)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||n||6==r&&(a>0?l>0?f/m[s-l]:0:g[d-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=m[(u-t%u)%u],e.e=-t||0):g[0]=e.e=0,e;if(0==a?(g.length=d,h=1,d--):(g.length=d+1,h=m[u-a],g[d]=l>0?o(f/m[s-l]%m[l])*h:0),n)for(;;){if(0==d){for(a=1,l=g[0];l>=10;l/=10,a++);for(l=g[0]+=h,h=1;l>=10;l/=10,h++);a!=h&&(e.e++,g[0]==c&&(g[0]=1));break}if(g[d]+=h,g[d]!=c)break;g[d--]=0,h=1}for(a=g.length;0===g[--a];g.pop());}e.e>M?e.c=e.e=null:e.e<F&&(e.c=[e.e=0])}return e}function $(e){var t,r=e.e;return null===r?e.toString():(t=p(e.c),t=r<=N||r>=U?v(t,r):b(t,r,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,f,t),O=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),L=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-f,0,t),m(r[1],0,f,t),N=r[0],U=r[1]):(m(r,-f,f,t),N=-(U=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)m(r[0],-f,-1,t),m(r[1],1,f,t),F=r[0],M=r[1];else{if(m(r,-f,f,t),!r)throw Error(s+t+" cannot be zero: "+r);F=-(M=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(s+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw R=!r,Error(s+"crypto unavailable");R=r}else R=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),D=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,f,t),j=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(s+t+" not an object: "+r);Q=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);K="0123456789"==r.slice(0,10),H=r}}return{DECIMAL_PLACES:O,ROUNDING_MODE:L,EXPONENTIAL_AT:[N,U],RANGE:[F,M],CRYPTO:R,MODULO_MODE:D,POW_PRECISION:j,FORMAT:Q,ALPHABET:H}},V.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!V.DEBUG)return!0;var t,r,n=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-f&&i<=f&&i===o(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%u)<1&&(t+=u),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=c||r!==o(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},V.maximum=V.max=function(){return q(arguments,P.lt)},V.minimum=V.min=function(){return q(arguments,P.gt)},V.random=(_=9007199254740992,B=Math.random()*_&2097151?function(){return o(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,c,l=0,h=[],d=new V(T);if(null==e?e=O:m(e,0,f),a=i(e/u),R)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)(c=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(h.push(c%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw R=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);l<a;)(c=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(h.push(c%1e14),l+=7);l=a/7}if(!R)for(;l<a;)(c=B())<9e15&&(h[l++]=c%1e14);for(a=h[--l],e%=u,a&&e&&(c=A[u-e],h[l]=o(a/c)*c);0===h[l];h.pop(),l--);if(l<0)h=[n=0];else{for(n=-1;0===h[0];h.splice(0,1),n-=u);for(l=1,c=h[0];c>=10;c/=10,l++);l<u&&(n-=u-l)}return d.e=n,d.c=h,d}),V.sum=function(){for(var e=1,t=arguments,r=new V(t[0]);e<t.length;)r=r.plus(t[e++]);return r},w=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,s=[0],a=0,c=e.length;a<c;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(n,i,o,s,a){var c,u,l,A,h,f,d,g,m=n.indexOf("."),y=O,v=L;for(m>=0&&(A=j,j=0,n=n.replace(".",""),f=(g=new V(i)).pow(n.length-m),j=A,g.c=t(b(p(f.c),f.e,"0"),10,o,e),g.e=g.c.length),l=A=(d=t(n,i,o,a?(c=H,e):(c=e,H))).length;0==d[--A];d.pop());if(!d[0])return c.charAt(0);if(m<0?--l:(f.c=d,f.e=l,f.s=s,d=(f=r(f,g,y,v,o)).c,h=f.r,l=f.e),m=d[u=l+y+1],A=o/2,h=h||u<0||null!=d[u+1],h=v<4?(null!=m||h)&&(0==v||v==(f.s<0?3:2)):m>A||m==A&&(4==v||h||6==v&&1&d[u-1]||v==(f.s<0?8:7)),u<1||!d[0])n=h?b(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(d.length=u,h)for(--o;++d[--u]>o;)d[u]=0,u||(++l,d=[1].concat(d));for(A=d.length;!d[--A];);for(m=0,n="";m<=A;n+=c.charAt(d[m++]));n=b(n,l,c.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,s,a=0,c=e.length,u=t%h,l=t/h|0;for(e=e.slice();c--;)a=((i=u*(o=e[c]%h)+(n=l*o+(s=e[c]/h|0)*u)%h*h+a)/r|0)+(n/h|0)+l*s,e[c]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,s,a,l){var A,h,f,p,g,m,y,v,b,w,x,_,B,E,S,C,I,k=n.s==i.s?1:-1,P=n.c,T=i.c;if(!(P&&P[0]&&T&&T[0]))return new V(n.s&&i.s&&(P?!T||P[0]!=T[0]:T)?P&&0==P[0]||!T?0*k:k/0:NaN);for(b=(v=new V(k)).c=[],k=s+(h=n.e-i.e)+1,l||(l=c,h=d(n.e/u)-d(i.e/u),k=k/u|0),f=0;T[f]==(P[f]||0);f++);if(T[f]>(P[f]||0)&&h--,k<0)b.push(1),p=!0;else{for(E=P.length,C=T.length,f=0,k+=2,(g=o(l/(T[0]+1)))>1&&(T=e(T,g,l),P=e(P,g,l),C=T.length,E=P.length),B=C,x=(w=P.slice(0,C)).length;x<C;w[x++]=0);I=T.slice(),I=[0].concat(I),S=T[0],T[1]>=l/2&&S++;do{if(g=0,(A=t(T,w,C,x))<0){if(_=w[0],C!=x&&(_=_*l+(w[1]||0)),(g=o(_/S))>1)for(g>=l&&(g=l-1),y=(m=e(T,g,l)).length,x=w.length;1==t(m,w,y,x);)g--,r(m,C<y?I:T,y,l),y=m.length,A=1;else 0==g&&(A=g=1),y=(m=T.slice()).length;if(y<x&&(m=[0].concat(m)),r(w,m,x,l),x=w.length,-1==A)for(;t(T,w,C,x)<1;)g++,r(w,C<x?I:T,x,l),x=w.length}else 0===A&&(g++,w=[0]);b[f++]=g,w[0]?w[x++]=P[B]||0:(w=[P[B]],x=1)}while((B++<E||null!=w[0])&&k--);p=null!=w[0],b[0]||b.splice(0,1)}if(l==c){for(f=1,k=b[0];k>=10;k/=10,f++);W(v,s+(v.e=f+h*u-1)+1,a,p)}else v.e=h,v.r=+p;return v}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,C=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,k=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(e,t,r,n){var i,o=r?t:t.replace(k,"");if(I.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(E,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(S,"$1").replace(C,"0.$1")),t!=o))return new V(o,i);if(V.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,t){return g(this,new V(e,t))},P.decimalPlaces=P.dp=function(e,t){var r,n,i,o=this;if(null!=e)return m(e,0,f),null==t?t=L:m(t,0,8),W(new V(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-d(this.e/u))*u,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(e,t){return r(this,new V(e,t),O,L)},P.dividedToIntegerBy=P.idiv=function(e,t){return r(this,new V(e,t),0,1)},P.exponentiatedBy=P.pow=function(e,t){var r,n,a,c,l,A,h,f,d=this;if((e=new V(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+$(e));if(null!=t&&(t=new V(t)),l=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return f=new V(Math.pow(+$(d),l?2-y(e):+$(e))),t?f.mod(t):f;if(A=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new V(NaN);(n=!A&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||l&&d.c[1]>=24e7:d.c[0]<8e13||l&&d.c[0]<=9999975e7)))return c=d.s<0&&y(e)?-0:0,d.e>-1&&(c=1/c),new V(A?1/c:c);j&&(c=i(j/u+2))}for(l?(r=new V(.5),A&&(e.s=1),h=y(e)):h=(a=Math.abs(+$(e)))%2,f=new V(T);;){if(h){if(!(f=f.times(d)).c)break;c?f.c.length>c&&(f.c.length=c):n&&(f=f.mod(t))}if(a){if(0===(a=o(a/2)))break;h=a%2}else if(W(e=e.times(r),e.e+1,1),e.e>14)h=y(e);else{if(0==(a=+$(e)))break;h=a%2}d=d.times(d),c?d.c&&d.c.length>c&&(d.c.length=c):n&&(d=d.mod(t))}return n?f:(A&&(f=T.div(f)),t?f.mod(t):c?W(f,j,L,void 0):f)},P.integerValue=function(e){var t=new V(this);return null==e?e=L:m(e,0,8),W(t,t.e+1,e)},P.isEqualTo=P.eq=function(e,t){return 0===g(this,new V(e,t))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,t){return g(this,new V(e,t))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,t){return 1===(t=g(this,new V(e,t)))||0===t},P.isInteger=function(){return!!this.c&&d(this.e/u)>this.c.length-2},P.isLessThan=P.lt=function(e,t){return g(this,new V(e,t))<0},P.isLessThanOrEqualTo=P.lte=function(e,t){return-1===(t=g(this,new V(e,t)))||0===t},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,t){var r,n,i,o,s=this,a=s.s;if(t=(e=new V(e,t)).s,!a||!t)return new V(NaN);if(a!=t)return e.s=-t,s.plus(e);var l=s.e/u,A=e.e/u,h=s.c,f=e.c;if(!l||!A){if(!h||!f)return h?(e.s=-t,e):new V(f?s:NaN);if(!h[0]||!f[0])return f[0]?(e.s=-t,e):new V(h[0]?s:3==L?-0:0)}if(l=d(l),A=d(A),h=h.slice(),a=l-A){for((o=a<0)?(a=-a,i=h):(A=l,i=f),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=h.length)<(t=f.length))?a:t,a=t=0;t<n;t++)if(h[t]!=f[t]){o=h[t]<f[t];break}if(o&&(i=h,h=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=h.length))>0)for(;t--;h[r++]=0);for(t=c-1;n>a;){if(h[--n]<f[n]){for(r=n;r&&!h[--r];h[r]=t);--h[r],h[n]+=c}h[n]-=f[n]}for(;0==h[0];h.splice(0,1),--A);return h[0]?G(e,h,A):(e.s=3==L?-1:1,e.c=[e.e=0],e)},P.modulo=P.mod=function(e,t){var n,i,o=this;return e=new V(e,t),!o.c||!e.s||e.c&&!e.c[0]?new V(NaN):!e.c||o.c&&!o.c[0]?new V(o):(9==D?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,D),(e=o.minus(n.times(e))).c[0]||1!=D||(e.s=o.s),e)},P.multipliedBy=P.times=function(e,t){var r,n,i,o,s,a,l,A,f,p,g,m,y,v,b,w=this,x=w.c,_=(e=new V(e,t)).c;if(!(x&&_&&x[0]&&_[0]))return!w.s||!e.s||x&&!x[0]&&!_||_&&!_[0]&&!x?e.c=e.e=e.s=null:(e.s*=w.s,x&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=d(w.e/u)+d(e.e/u),e.s*=w.s,(l=x.length)<(p=_.length)&&(y=x,x=_,_=y,i=l,l=p,p=i),i=l+p,y=[];i--;y.push(0));for(v=c,b=h,i=p;--i>=0;){for(r=0,g=_[i]%b,m=_[i]/b|0,o=i+(s=l);o>i;)r=((A=g*(A=x[--s]%b)+(a=m*A+(f=x[s]/b|0)*g)%b*b+y[o]+r)/v|0)+(a/b|0)+m*f,y[o--]=A%v;y[o]=r}return r?++n:y.splice(0,1),G(e,y,n)},P.negated=function(){var e=new V(this);return e.s=-e.s||null,e},P.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new V(e,t)).s,!i||!t)return new V(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/u,s=e.e/u,a=n.c,l=e.c;if(!o||!s){if(!a||!l)return new V(i/0);if(!a[0]||!l[0])return l[0]?e:new V(a[0]?n:0*i)}if(o=d(o),s=d(s),a=a.slice(),i=o-s){for(i>0?(s=o,r=l):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=l.length)<0&&(r=l,l=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+l[t]+i)/c|0,a[t]=c===a[t]?0:a[t]%c;return i&&(a=[i].concat(a),++s),G(e,a,s)},P.precision=P.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return m(e,1,f),null==t?t=L:m(t,0,8),W(new V(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*u+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},P.shiftedBy=function(e){return m(e,-9007199254740991,l),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,t,n,i,o,s=this,a=s.c,c=s.s,u=s.e,l=O+4,A=new V("0.5");if(1!==c||!a||!a[0])return new V(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+$(s)))||c==1/0?(((t=p(a)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=d((u+1)/2)-(u<0||u%2),n=new V(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new V(c+""),n.c[0])for((c=(u=n.e)+l)<3&&(c=0);;)if(o=n,n=A.times(o.plus(r(s,o,l,1))),p(o.c).slice(0,c)===(t=p(n.c)).slice(0,c)){if(n.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(n,n.e+O+2,1),e=!n.times(n).eq(s));break}if(!i&&(W(o,o.e+O+2,0),o.times(o).eq(s))){n=o;break}l+=4,c+=4,i=1}return W(n,n.e+O+1,L,e)},P.toExponential=function(e,t){return null!=e&&(m(e,0,f),e++),z(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(m(e,0,f),e=e+this.e+1),z(this,e,t)},P.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=Q;else if("object"!=typeof r)throw Error(s+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),c=+r.groupSize,u=+r.secondaryGroupSize,l=r.groupSeparator||"",A=a[0],h=a[1],f=i.s<0,d=f?A.slice(1):A,p=d.length;if(u&&(o=c,c=u,u=o,p-=o),c>0&&p>0){for(o=p%c||c,A=d.substr(0,o);o<p;o+=c)A+=l+d.substr(o,c);u>0&&(A+=l+d.slice(o)),f&&(A="-"+A)}n=h?A+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):A}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(e){var t,n,i,o,a,c,l,h,f,d,g,m,y=this,v=y.c;if(null!=e&&(!(l=new V(e)).isInteger()&&(l.c||1!==l.s)||l.lt(T)))throw Error(s+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+$(l));if(!v)return new V(y);for(t=new V(T),f=n=new V(T),i=h=new V(T),m=p(v),a=t.e=m.length-y.e-1,t.c[0]=A[(c=a%u)<0?u+c:c],e=!e||l.comparedTo(t)>0?a>0?t:f:l,c=M,M=1/0,l=new V(m),h.c[0]=0;d=r(l,t,0,1),1!=(o=n.plus(d.times(i))).comparedTo(e);)n=i,i=o,f=h.plus(d.times(o=f)),h=o,t=l.minus(d.times(o=t)),l=o;return o=r(e.minus(n),i,0,1),h=h.plus(o.times(f)),n=n.plus(o.times(i)),h.s=f.s=y.s,g=r(f,i,a*=2,L).minus(y).abs().comparedTo(r(h,n,a,L).minus(y).abs())<1?[f,i]:[h,n],M=c,g},P.toNumber=function(){return+$(this)},P.toPrecision=function(e,t){return null!=e&&m(e,1,f),z(this,e,t,2)},P.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=N||i>=U?v(p(r.c),i):b(p(r.c),i,"0"):10===e&&K?t=b(p((r=W(new V(r),O+i+1,L)).c),r.e,"0"):(m(e,2,H.length,"Base"),t=w(b(p(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return $(this)},P._isBigNumber=!0,null!=t&&V.set(t),V}(),r.default=r.BigNumber=r,e.exports?e.exports=r:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=r)}(Ri)}(Ko);var Vo={},zo={};const qo=Ko.exports.BigNumber;zo.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},zo.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},zo.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},zo.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},zo.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},zo.SHIFT32=Math.pow(2,32),zo.SHIFT16=Math.pow(2,16),zo.MAX_SAFE_HIGH=2097151,zo.NEG_ONE=new qo(-1),zo.TEN=new qo(10),zo.TWO=new qo(2),zo.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5},function(e){const{Buffer:t}=Qo,r=Ko.exports.BigNumber,n=zo,i=n.SHIFT32,o=n.SHIFT16;function s(e){return e<16?"0"+e.toString(16):e.toString(16)}e.parseHalf=function(e){var t,r,n;return n=128&e[0]?-1:1,t=(124&e[0])>>2,r=(3&e[0])<<8|e[1],t?31===t?n*(r?NaN:1/0):n*Math.pow(2,t-25)*(1024+r):5.960464477539063e-8*n*r},e.arrayBufferToBignumber=function(e){const t=e.byteLength;let n="";for(let r=0;r<t;r++)n+=s(e[r]);return new r(n,16)},e.buildMap=e=>{const t=new Map,r=Object.keys(e),n=r.length;for(let i=0;i<n;i++)t.set(r[i],e[r[i]]);return t},e.buildInt32=(e,t)=>e*o+t,e.buildInt64=(t,n,o,s)=>{const a=e.buildInt32(t,n),c=e.buildInt32(o,s);return a>2097151?new r(a).times(i).plus(c):a*i+c},e.writeHalf=function(e,r){const n=t.allocUnsafe(4);n.writeFloatBE(r,0);const i=n.readUInt32BE(0);if(0!=(8191&i))return!1;var o=i>>16&32768;const s=i>>23&255,a=8388607&i;if(s>=113&&s<=142)o+=(s-112<<10)+(a>>13);else{if(!(s>=103&&s<113))return!1;if(a&(1<<126-s)-1)return!1;o+=a+8388608>>126-s}return e.writeUInt16BE(o,0),!0},e.keySorter=function(e,t){var r=e[0].byteLength,n=t[0].byteLength;return r>n?1:n>r?-1:e[0].compare(t[0])},e.isNegativeZero=e=>0===e&&1/e<0,e.nextPowerOf2=e=>{let t=0;if(e&&!(e&e-1))return e;for(;0!==e;)e>>=1,t+=1;return 1<<t}}(Vo);const Go=zo,Wo=Go.MT,$o=Go.SIMPLE,Jo=Go.SYMS;class Xo{constructor(e){if("number"!=typeof e)throw new Error("Invalid Simple type: "+typeof e);if(e<0||e>255||(0|e)!==e)throw new Error("value must be a small positive integer: "+e);this.value=e}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(e){return e._pushInt(this.value,Wo.SIMPLE_FLOAT)}static isSimple(e){return e instanceof Xo}static decode(e,t){switch(null==t&&(t=!0),e){case $o.FALSE:return!1;case $o.TRUE:return!0;case $o.NULL:return t?null:Jo.NULL;case $o.UNDEFINED:return t?void 0:Jo.UNDEFINED;case-1:if(!t)throw new Error("Invalid BREAK");return Jo.BREAK;default:return new Xo(e)}}}var Yo=Xo;class Zo{constructor(e,t,r){if(this.tag=e,this.value=t,this.err=r,"number"!=typeof this.tag)throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(e){return e._pushTag(this.tag),e.pushAny(this.value)}convert(e){var t,r;if("function"!=typeof(r=null!=e?e[this.tag]:void 0)&&"function"!=typeof(r=Zo["_tag"+this.tag]))return this;try{return r.call(Zo,this.value)}catch(e){return t=e,this.err=t,this}}}var es=Zo;const ts=self.location?self.location.protocol+"//"+self.location.host:"",rs=self.URL;var ns={URLWithLegacySupport:class{constructor(e="",t=ts){this.super=new rs(e,t),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(e){this.super.hash=e}set host(e){this.super.host=e}set hostname(e){this.super.hostname=e}set href(e){this.super.href=e}set origin(e){this.super.origin=e}set password(e){this.super.password=e}set pathname(e){this.super.pathname=e}set port(e){this.super.port=e}set protocol(e){this.super.protocol=e}set search(e){this.super.search=e}set searchParams(e){this.super.searchParams=e}set username(e){this.super.username=e}createObjectURL(e){return this.super.createObjectURL(e)}revokeObjectURL(e){this.super.revokeObjectURL(e)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}},URLSearchParams:self.URLSearchParams,defaultBase:ts,format:function(e){if("string"==typeof e)return new rs(e).toString();if(!(e instanceof rs)){const t=e.username&&e.password?`${e.username}:${e.password}@`:"",r=e.auth?e.auth+"@":"",n=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",a=e.search||(e.query?"?"+e.query:""),c=e.hash||"",u=e.pathname||"";return`${i}${t||r}${o||s+n}${e.path||u+a}${c}`}}};const{URLWithLegacySupport:is,format:os}=ns,{URLWithLegacySupport:ss,format:as,URLSearchParams:cs,defaultBase:us}=ns;var ls={URL:ss,URLSearchParams:cs,format:as,relative:(e,t={},r={},n)=>{let i,o=t.protocol?t.protocol.replace(":",""):"http";o=(r[o]||n||o)+":";try{i=new is(e)}catch(e){i={}}const s=Object.assign({},t,{protocol:o||i.protocol,host:t.host||i.host});return new is(e,os(s)).toString()},defaultBase:us};const{Buffer:As}=Qo,hs=Ho,fs=Ko.exports.BigNumber,ds=Vo,ps=zo,gs=Yo,ms=es,{URL:ys}=ls;class vs{constructor(e){!(e=e||{}).size||e.size<65536?e.size=65536:e.size=ds.nextPowerOf2(e.size),this._heap=new ArrayBuffer(e.size),this._heap8=new Uint8Array(this._heap),this._buffer=As.from(this._heap),this._reset(),this._knownTags=Object.assign({0:e=>new Date(e),1:e=>new Date(1e3*e),2:e=>ds.arrayBufferToBignumber(e),3:e=>ps.NEG_ONE.minus(ds.arrayBufferToBignumber(e)),4:e=>ps.TEN.pow(e[0]).times(e[1]),5:e=>ps.TWO.pow(e[0]).times(e[1]),32:e=>new ys(e),35:e=>new RegExp(e)},e.tags),this.parser=function(e,t,r){"use asm";var n=new e.Uint8Array(r),i=t.pushInt,o=t.pushInt32,s=t.pushInt32Neg,a=t.pushInt64,c=t.pushInt64Neg,u=t.pushFloat,l=t.pushFloatSingle,A=t.pushFloatDouble,h=t.pushTrue,f=t.pushFalse,d=t.pushUndefined,p=t.pushNull,g=t.pushInfinity,m=t.pushInfinityNeg,y=t.pushNaN,v=t.pushNaNNeg,b=t.pushArrayStart,w=t.pushArrayStartFixed,x=t.pushArrayStartFixed32,_=t.pushArrayStartFixed64,B=t.pushObjectStart,E=t.pushObjectStartFixed,S=t.pushObjectStartFixed32,C=t.pushObjectStartFixed64,I=t.pushByteString,k=t.pushByteStringStart,P=t.pushUtf8String,T=t.pushUtf8StringStart,O=t.pushSimpleUnassigned,L=t.pushTagStart,N=t.pushTagStart4,U=t.pushTagStart8,F=t.pushTagUnassigned,M=t.pushBreak,R=e.Math.pow,D=0,j=0,Q=0;function H(e){e=e|0;D=0;j=e;while((D|0)<(j|0)){Q=Je[n[D]&255](n[D]|0)|0;if((Q|0)>0){break}}return Q|0}function K(e){e=e|0;if(((D|0)+(e|0)|0)<(j|0)){return 0}return 1}function V(e){e=e|0;return n[e|0]<<8|n[e+1|0]|0}function z(e){e=e|0;return n[e|0]<<24|n[e+1|0]<<16|n[e+2|0]<<8|n[e+3|0]|0}function q(e){e=e|0;i(e|0);D=D+1|0;return 0}function G(e){e=e|0;if(K(1)|0){return 1}i(n[D+1|0]|0);D=D+2|0;return 0}function W(e){e=e|0;if(K(2)|0){return 1}i(V(D+1|0)|0);D=D+3|0;return 0}function $(e){e=e|0;if(K(4)|0){return 1}o(V(D+1|0)|0,V(D+3|0)|0);D=D+5|0;return 0}function J(e){e=e|0;if(K(8)|0){return 1}a(V(D+1|0)|0,V(D+3|0)|0,V(D+5|0)|0,V(D+7|0)|0);D=D+9|0;return 0}function X(e){e=e|0;i(-1-(e-32|0)|0);D=D+1|0;return 0}function Y(e){e=e|0;if(K(1)|0){return 1}i(-1-(n[D+1|0]|0)|0);D=D+2|0;return 0}function Z(e){e=e|0;var t=0;if(K(2)|0){return 1}t=V(D+1|0)|0;i(-1-(t|0)|0);D=D+3|0;return 0}function ee(e){e=e|0;if(K(4)|0){return 1}s(V(D+1|0)|0,V(D+3|0)|0);D=D+5|0;return 0}function te(e){e=e|0;if(K(8)|0){return 1}c(V(D+1|0)|0,V(D+3|0)|0,V(D+5|0)|0,V(D+7|0)|0);D=D+9|0;return 0}function re(e){e=e|0;var t=0;var r=0;var n=0;n=e-64|0;if(K(n|0)|0){return 1}t=D+1|0;r=(D+1|0)+(n|0)|0;I(t|0,r|0);D=r|0;return 0}function ne(e){e=e|0;var t=0;var r=0;var i=0;if(K(1)|0){return 1}i=n[D+1|0]|0;t=D+2|0;r=(D+2|0)+(i|0)|0;if(K(i+1|0)|0){return 1}I(t|0,r|0);D=r|0;return 0}function ie(e){e=e|0;var t=0;var r=0;var n=0;if(K(2)|0){return 1}n=V(D+1|0)|0;t=D+3|0;r=(D+3|0)+(n|0)|0;if(K(n+2|0)|0){return 1}I(t|0,r|0);D=r|0;return 0}function oe(e){e=e|0;var t=0;var r=0;var n=0;if(K(4)|0){return 1}n=z(D+1|0)|0;t=D+5|0;r=(D+5|0)+(n|0)|0;if(K(n+4|0)|0){return 1}I(t|0,r|0);D=r|0;return 0}function se(e){e=e|0;return 1}function ae(e){e=e|0;k();D=D+1|0;return 0}function ce(e){e=e|0;var t=0;var r=0;var n=0;n=e-96|0;if(K(n|0)|0){return 1}t=D+1|0;r=(D+1|0)+(n|0)|0;P(t|0,r|0);D=r|0;return 0}function ue(e){e=e|0;var t=0;var r=0;var i=0;if(K(1)|0){return 1}i=n[D+1|0]|0;t=D+2|0;r=(D+2|0)+(i|0)|0;if(K(i+1|0)|0){return 1}P(t|0,r|0);D=r|0;return 0}function le(e){e=e|0;var t=0;var r=0;var n=0;if(K(2)|0){return 1}n=V(D+1|0)|0;t=D+3|0;r=(D+3|0)+(n|0)|0;if(K(n+2|0)|0){return 1}P(t|0,r|0);D=r|0;return 0}function Ae(e){e=e|0;var t=0;var r=0;var n=0;if(K(4)|0){return 1}n=z(D+1|0)|0;t=D+5|0;r=(D+5|0)+(n|0)|0;if(K(n+4|0)|0){return 1}P(t|0,r|0);D=r|0;return 0}function he(e){e=e|0;return 1}function fe(e){e=e|0;T();D=D+1|0;return 0}function de(e){e=e|0;w(e-128|0);D=D+1|0;return 0}function pe(e){e=e|0;if(K(1)|0){return 1}w(n[D+1|0]|0);D=D+2|0;return 0}function ge(e){e=e|0;if(K(2)|0){return 1}w(V(D+1|0)|0);D=D+3|0;return 0}function me(e){e=e|0;if(K(4)|0){return 1}x(V(D+1|0)|0,V(D+3|0)|0);D=D+5|0;return 0}function ye(e){e=e|0;if(K(8)|0){return 1}_(V(D+1|0)|0,V(D+3|0)|0,V(D+5|0)|0,V(D+7|0)|0);D=D+9|0;return 0}function ve(e){e=e|0;b();D=D+1|0;return 0}function be(e){e=e|0;var t=0;t=e-160|0;if(K(t|0)|0){return 1}E(t|0);D=D+1|0;return 0}function we(e){e=e|0;if(K(1)|0){return 1}E(n[D+1|0]|0);D=D+2|0;return 0}function xe(e){e=e|0;if(K(2)|0){return 1}E(V(D+1|0)|0);D=D+3|0;return 0}function _e(e){e=e|0;if(K(4)|0){return 1}S(V(D+1|0)|0,V(D+3|0)|0);D=D+5|0;return 0}function Be(e){e=e|0;if(K(8)|0){return 1}C(V(D+1|0)|0,V(D+3|0)|0,V(D+5|0)|0,V(D+7|0)|0);D=D+9|0;return 0}function Ee(e){e=e|0;B();D=D+1|0;return 0}function Se(e){e=e|0;L(e-192|0|0);D=D+1|0;return 0}function Ce(e){e|0;L(e|0);D=D+1|0;return 0}function Ie(e){e|0;L(e|0);D=D+1|0;return 0}function ke(e){e|0;L(e|0);D=D+1|0;return 0}function Pe(e){e|0;L(e|0);D=D+1|0;return 0}function Te(e){e=e|0;L(e-192|0|0);D=D+1|0;return 0}function Oe(e){e|0;L(e|0);D=D+1|0;return 0}function Le(e){e|0;L(e|0);D=D+1|0;return 0}function Ne(e){e|0;L(e|0);D=D+1|0;return 0}function Ue(e){e=e|0;if(K(1)|0){return 1}L(n[D+1|0]|0);D=D+2|0;return 0}function Fe(e){e=e|0;if(K(2)|0){return 1}L(V(D+1|0)|0);D=D+3|0;return 0}function Me(e){e=e|0;if(K(4)|0){return 1}N(V(D+1|0)|0,V(D+3|0)|0);D=D+5|0;return 0}function Re(e){e=e|0;if(K(8)|0){return 1}U(V(D+1|0)|0,V(D+3|0)|0,V(D+5|0)|0,V(D+7|0)|0);D=D+9|0;return 0}function De(e){e=e|0;O((e|0)-224|0);D=D+1|0;return 0}function je(e){e=e|0;f();D=D+1|0;return 0}function Qe(e){e=e|0;h();D=D+1|0;return 0}function He(e){e=e|0;p();D=D+1|0;return 0}function Ke(e){e=e|0;d();D=D+1|0;return 0}function Ve(e){e=e|0;if(K(1)|0){return 1}O(n[D+1|0]|0);D=D+2|0;return 0}function ze(e){e=e|0;var t=0;var r=0;var i=1.0;var o=0.0;var s=0.0;var a=0.0;if(K(2)|0){return 1}t=n[D+1|0]|0;r=n[D+2|0]|0;if((t|0)&0x80){i=-1.0}o=+(((t|0)&0x7C)>>2);s=+(((t|0)&0x03)<<8|r);if(+o==0.0){u(+(+i*+5.9604644775390625e-8*+s))}else if(+o==31.0){if(+i==1.0){if(+s>0.0){y()}else{g()}}else{if(+s>0.0){v()}else{m()}}}else{u(+(+i*R(+2,+(+o-25.0))*+(1024.0+s)))}D=D+3|0;return 0}function qe(e){e=e|0;if(K(4)|0){return 1}l(n[D+1|0]|0,n[D+2|0]|0,n[D+3|0]|0,n[D+4|0]|0);D=D+5|0;return 0}function Ge(e){e=e|0;if(K(8)|0){return 1}A(n[D+1|0]|0,n[D+2|0]|0,n[D+3|0]|0,n[D+4|0]|0,n[D+5|0]|0,n[D+6|0]|0,n[D+7|0]|0,n[D+8|0]|0);D=D+9|0;return 0}function We(e){e=e|0;return 1}function $e(e){e=e|0;M();D=D+1|0;return 0}var Je=[q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,q,G,W,$,J,We,We,We,We,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,Y,Z,ee,te,We,We,We,We,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,ne,ie,oe,se,We,We,We,ae,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ue,le,Ae,he,We,We,We,fe,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,pe,ge,me,ye,We,We,We,ve,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,be,we,xe,_e,Be,We,We,We,Ee,Se,Se,Se,Se,Se,Se,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Te,Ue,Fe,Me,Re,We,We,We,We,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,je,Qe,He,Ke,Ve,ze,qe,Ge,We,We,We,$e];return{parse:H}}(Ri,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var e=this._parents.pop();if(e.length>0)throw new Error(`Missing ${e.length} elements`);switch(e.type){case ps.PARENT.TAG:this._push(this.createTag(e.ref[0],e.ref[1]));break;case ps.PARENT.BYTE_STRING:this._push(this.createByteString(e.ref,e.length));break;case ps.PARENT.UTF8_STRING:this._push(this.createUtf8String(e.ref,e.length));break;case ps.PARENT.MAP:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(e.ref,e.length));break;case ps.PARENT.OBJECT:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(e.ref,e.length));break;case ps.PARENT.ARRAY:this._push(this.createArray(e.ref,e.length))}this._currentParent&&this._currentParent.type===ps.PARENT.TAG&&this._dec()}_dec(){const e=this._currentParent;e.length<0||(e.length--,0===e.length&&this._closeParent())}_push(e,t){const r=this._currentParent;switch(r.values++,r.type){case ps.PARENT.ARRAY:case ps.PARENT.BYTE_STRING:case ps.PARENT.UTF8_STRING:r.length>-1?this._ref[this._ref.length-r.length]=e:this._ref.push(e),this._dec();break;case ps.PARENT.OBJECT:null!=r.tmpKey?(this._ref[r.tmpKey]=e,r.tmpKey=null,this._dec()):(r.tmpKey=e,"string"!=typeof r.tmpKey&&(r.type=ps.PARENT.MAP,r.ref=ds.buildMap(r.ref)));break;case ps.PARENT.MAP:null!=r.tmpKey?(this._ref.set(r.tmpKey,e),r.tmpKey=null,this._dec()):r.tmpKey=e;break;case ps.PARENT.TAG:this._ref.push(e),t||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(e,t,r){this._parents[this._depth]={type:t,length:r,ref:e,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:ps.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(e,t){const r=this._knownTags[e];return r?r(t):new ms(e,t)}createMap(e,t){return e}createObject(e,t){return e}createArray(e,t){return e}createByteString(e,t){return As.concat(e)}createByteStringFromHeap(e,t){return e===t?As.alloc(0):As.from(this._heap.slice(e,t))}createInt(e){return e}createInt32(e,t){return ds.buildInt32(e,t)}createInt64(e,t,r,n){return ds.buildInt64(e,t,r,n)}createFloat(e){return e}createFloatSingle(e,t,r,n){return hs.read([e,t,r,n],0,!1,23,4)}createFloatDouble(e,t,r,n,i,o,s,a){return hs.read([e,t,r,n,i,o,s,a],0,!1,52,8)}createInt32Neg(e,t){return-1-ds.buildInt32(e,t)}createInt64Neg(e,t,r,n){const i=ds.buildInt32(e,t),o=ds.buildInt32(r,n);return i>ps.MAX_SAFE_HIGH?ps.NEG_ONE.minus(new fs(i).times(ps.SHIFT32).plus(o)):-1-(i*ps.SHIFT32+o)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(e,t){return e.join("")}createUtf8StringFromHeap(e,t){return e===t?"":this._buffer.toString("utf8",e,t)}createSimpleUnassigned(e){return new gs(e)}pushInt(e){this._push(this.createInt(e))}pushInt32(e,t){this._push(this.createInt32(e,t))}pushInt64(e,t,r,n){this._push(this.createInt64(e,t,r,n))}pushFloat(e){this._push(this.createFloat(e))}pushFloatSingle(e,t,r,n){this._push(this.createFloatSingle(e,t,r,n))}pushFloatDouble(e,t,r,n,i,o,s,a){this._push(this.createFloatDouble(e,t,r,n,i,o,s,a))}pushInt32Neg(e,t){this._push(this.createInt32Neg(e,t))}pushInt64Neg(e,t,r,n){this._push(this.createInt64Neg(e,t,r,n))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],ps.PARENT.ARRAY,-1)}pushArrayStartFixed(e){this._createArrayStartFixed(e)}pushArrayStartFixed32(e,t){const r=ds.buildInt32(e,t);this._createArrayStartFixed(r)}pushArrayStartFixed64(e,t,r,n){const i=ds.buildInt64(e,t,r,n);this._createArrayStartFixed(i)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(e){this._createObjectStartFixed(e)}pushObjectStartFixed32(e,t){const r=ds.buildInt32(e,t);this._createObjectStartFixed(r)}pushObjectStartFixed64(e,t,r,n){const i=ds.buildInt64(e,t,r,n);this._createObjectStartFixed(i)}pushByteStringStart(){this._parents[this._depth]={type:ps.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(e,t){this._push(this.createByteStringFromHeap(e,t))}pushUtf8StringStart(){this._parents[this._depth]={type:ps.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(e,t){this._push(this.createUtf8StringFromHeap(e,t))}pushSimpleUnassigned(e){this._push(this.createSimpleUnassigned(e))}pushTagStart(e){this._parents[this._depth]={type:ps.PARENT.TAG,length:1,ref:[e]}}pushTagStart4(e,t){this.pushTagStart(ds.buildInt32(e,t))}pushTagStart8(e,t,r,n){this.pushTagStart(ds.buildInt64(e,t,r,n))}pushTagUnassigned(e){this._push(this.createTag(e))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(e){0!==e?this._createParent({},ps.PARENT.OBJECT,e):this._push(this.createObject({}))}_createArrayStartFixed(e){0!==e?this._createParent(new Array(e),ps.PARENT.ARRAY,e):this._push(this.createArray([]))}_decode(e){if(0===e.byteLength)throw new Error("Input too short");this._reset(),this._heap8.set(e);const t=this.parser.parse(e.byteLength);if(this._depth>1){for(;0===this._currentParent.length;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(t>0)throw new Error("Failed to parse");if(0===this._res.length)throw new Error("No valid result")}decodeFirst(e){return this._decode(e),this._res[0]}decodeAll(e){return this._decode(e),this._res}static decode(e,t){return"string"==typeof e&&(e=As.from(e,t||"hex")),new vs({size:e.length}).decodeFirst(e)}static decodeAll(e,t){return"string"==typeof e&&(e=As.from(e,t||"hex")),new vs({size:e.length}).decodeAll(e)}}vs.decodeFirst=vs.decode;var bs=vs;const{Buffer:ws}=Qo,xs=bs,_s=Vo;class Bs extends xs{createTag(e,t){return`${e}(${t})`}createInt(e){return super.createInt(e).toString()}createInt32(e,t){return super.createInt32(e,t).toString()}createInt64(e,t,r,n){return super.createInt64(e,t,r,n).toString()}createInt32Neg(e,t){return super.createInt32Neg(e,t).toString()}createInt64Neg(e,t,r,n){return super.createInt64Neg(e,t,r,n).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(e){const t=super.createFloat(e);return _s.isNegativeZero(e)?"-0_1":`${t}_1`}createFloatSingle(e,t,r,n){return`${super.createFloatSingle(e,t,r,n)}_2`}createFloatDouble(e,t,r,n,i,o,s,a){return`${super.createFloatDouble(e,t,r,n,i,o,s,a)}_3`}createByteString(e,t){const r=e.join(", ");return-1===t?`(_ ${r})`:`h'${r}`}createByteStringFromHeap(e,t){return`h'${ws.from(super.createByteStringFromHeap(e,t)).toString("hex")}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(e){return`simple(${e})`}createArray(e,t){const r=super.createArray(e,t);return-1===t?`[_ ${r.join(", ")}]`:`[${r.join(", ")}]`}createMap(e,t){const r=super.createMap(e),n=Array.from(r.keys()).reduce(Ss(r),"");return-1===t?`{_ ${n}}`:`{${n}}`}createObject(e,t){const r=super.createObject(e),n=Object.keys(r).reduce(Ss(r),"");return-1===t?`{_ ${n}}`:`{${n}}`}createUtf8String(e,t){const r=e.join(", ");return-1===t?`(_ ${r})`:`"${r}"`}createUtf8StringFromHeap(e,t){return`"${ws.from(super.createUtf8StringFromHeap(e,t)).toString("utf8")}"`}static diagnose(e,t){return"string"==typeof e&&(e=ws.from(e,t||"hex")),(new Bs).decodeFirst(e)}}var Es=Bs;function Ss(e){return(t,r)=>t?`${t}, ${r}: ${e[r]}`:`${r}: ${e[r]}`}const{Buffer:Cs}=Qo,{URL:Is}=ls,ks=Ko.exports.BigNumber,Ps=Vo,Ts=zo,Os=Ts.MT,Ls=Ts.NUMBYTES,Ns=Ts.SHIFT32,Us=Ts.SYMS,Fs=Ts.TAG,Ms=Ts.MT.SIMPLE_FLOAT<<5|Ts.NUMBYTES.TWO,Rs=Ts.MT.SIMPLE_FLOAT<<5|Ts.NUMBYTES.FOUR,Ds=Ts.MT.SIMPLE_FLOAT<<5|Ts.NUMBYTES.EIGHT,js=Ts.MT.SIMPLE_FLOAT<<5|Ts.SIMPLE.TRUE,Qs=Ts.MT.SIMPLE_FLOAT<<5|Ts.SIMPLE.FALSE,Hs=Ts.MT.SIMPLE_FLOAT<<5|Ts.SIMPLE.UNDEFINED,Ks=Ts.MT.SIMPLE_FLOAT<<5|Ts.SIMPLE.NULL,Vs=new ks("0x20000000000000"),zs=Cs.from("f97e00","hex"),qs=Cs.from("f9fc00","hex"),Gs=Cs.from("f97c00","hex");class Ws{constructor(e){e=e||{},this.streaming="function"==typeof e.stream,this.onData=e.stream,this.semanticTypes=[[Is,this._pushUrl],[ks,this._pushBigNumber]];const t=e.genTypes||[],r=t.length;for(let e=0;e<r;e++)this.addSemanticType(t[e][0],t[e][1]);this._reset()}addSemanticType(e,t){const r=this.semanticTypes.length;for(let n=0;n<r;n++)if(this.semanticTypes[n][0]===e){const e=this.semanticTypes[n][1];return this.semanticTypes[n][1]=t,e}return this.semanticTypes.push([e,t]),null}push(e){return!e||(this.result[this.offset]=e,this.resultMethod[this.offset]=0,this.resultLength[this.offset]=e.length,this.offset++,this.streaming&&this.onData(this.finalize()),!0)}pushWrite(e,t,r){return this.result[this.offset]=e,this.resultMethod[this.offset]=t,this.resultLength[this.offset]=r,this.offset++,this.streaming&&this.onData(this.finalize()),!0}_pushUInt8(e){return this.pushWrite(e,1,1)}_pushUInt16BE(e){return this.pushWrite(e,2,2)}_pushUInt32BE(e){return this.pushWrite(e,3,4)}_pushDoubleBE(e){return this.pushWrite(e,4,8)}_pushNaN(){return this.push(zs)}_pushInfinity(e){const t=e<0?qs:Gs;return this.push(t)}_pushFloat(e){const t=Cs.allocUnsafe(2);if(Ps.writeHalf(t,e)&&Ps.parseHalf(t)===e)return this._pushUInt8(Ms)&&this.push(t);const r=Cs.allocUnsafe(4);return r.writeFloatBE(e,0),r.readFloatBE(0)===e?this._pushUInt8(Rs)&&this.push(r):this._pushUInt8(Ds)&&this._pushDoubleBE(e)}_pushInt(e,t,r){const n=t<<5;return e<24?this._pushUInt8(n|e):e<=255?this._pushUInt8(n|Ls.ONE)&&this._pushUInt8(e):e<=65535?this._pushUInt8(n|Ls.TWO)&&this._pushUInt16BE(e):e<=4294967295?this._pushUInt8(n|Ls.FOUR)&&this._pushUInt32BE(e):e<=Number.MAX_SAFE_INTEGER?this._pushUInt8(n|Ls.EIGHT)&&this._pushUInt32BE(Math.floor(e/Ns))&&this._pushUInt32BE(e%Ns):t===Os.NEG_INT?this._pushFloat(r):this._pushFloat(e)}_pushIntNum(e){return e<0?this._pushInt(-e-1,Os.NEG_INT,e):this._pushInt(e,Os.POS_INT)}_pushNumber(e){switch(!1){case e==e:return this._pushNaN(e);case isFinite(e):return this._pushInfinity(e);case e%1!=0:return this._pushIntNum(e);default:return this._pushFloat(e)}}_pushString(e){const t=Cs.byteLength(e,"utf8");return this._pushInt(t,Os.UTF8_STRING)&&this.pushWrite(e,5,t)}_pushBoolean(e){return this._pushUInt8(e?js:Qs)}_pushUndefined(e){return this._pushUInt8(Hs)}_pushArray(e,t){const r=t.length;if(!e._pushInt(r,Os.ARRAY))return!1;for(let n=0;n<r;n++)if(!e.pushAny(t[n]))return!1;return!0}_pushTag(e){return this._pushInt(e,Os.TAG)}_pushDate(e,t){return e._pushTag(Fs.DATE_EPOCH)&&e.pushAny(Math.round(t/1e3))}_pushBuffer(e,t){return e._pushInt(t.length,Os.BYTE_STRING)&&e.push(t)}_pushNoFilter(e,t){return e._pushBuffer(e,t.slice())}_pushRegexp(e,t){return e._pushTag(Fs.REGEXP)&&e.pushAny(t.source)}_pushSet(e,t){if(!e._pushInt(t.size,Os.ARRAY))return!1;for(const r of t)if(!e.pushAny(r))return!1;return!0}_pushUrl(e,t){return e._pushTag(Fs.URI)&&e.pushAny(t.format())}_pushBigint(e){let t=Fs.POS_BIGINT;e.isNegative()&&(e=e.negated().minus(1),t=Fs.NEG_BIGINT);let r=e.toString(16);r.length%2&&(r="0"+r);const n=Cs.from(r,"hex");return this._pushTag(t)&&this._pushBuffer(this,n)}_pushBigNumber(e,t){if(t.isNaN())return e._pushNaN();if(!t.isFinite())return e._pushInfinity(t.isNegative()?-1/0:1/0);if(t.isInteger())return e._pushBigint(t);if(!e._pushTag(Fs.DECIMAL_FRAC)||!e._pushInt(2,Os.ARRAY))return!1;const r=t.decimalPlaces(),n=t.multipliedBy(new ks(10).pow(r));return!!e._pushIntNum(-r)&&(n.abs().isLessThan(Vs)?e._pushIntNum(n.toNumber()):e._pushBigint(n))}_pushMap(e,t){return!!e._pushInt(t.size,Os.MAP)&&this._pushRawMap(t.size,Array.from(t))}_pushObject(e){if(!e)return this._pushUInt8(Ks);for(var t=this.semanticTypes.length,r=0;r<t;r++)if(e instanceof this.semanticTypes[r][0])return this.semanticTypes[r][1].call(e,this,e);var n=e.encodeCBOR;if("function"==typeof n)return n.call(e,this);var i=Object.keys(e),o=i.length;return!!this._pushInt(o,Os.MAP)&&this._pushRawMap(o,i.map((t=>[t,e[t]])))}_pushRawMap(e,t){t=t.map((function(e){return e[0]=Ws.encode(e[0]),e})).sort(Ps.keySorter);for(var r=0;r<e;r++){if(!this.push(t[r][0]))return!1;if(!this.pushAny(t[r][1]))return!1}return!0}write(e){return this.pushAny(e)}pushAny(e){var t=function(e){return{}.toString.call(e).slice(8,-1)}(e);switch(t){case"Number":return this._pushNumber(e);case"String":return this._pushString(e);case"Boolean":return this._pushBoolean(e);case"Object":return this._pushObject(e);case"Array":return this._pushArray(this,e);case"Uint8Array":return this._pushBuffer(this,Cs.isBuffer(e)?e:Cs.from(e));case"Null":return this._pushUInt8(Ks);case"Undefined":return this._pushUndefined(e);case"Map":return this._pushMap(this,e);case"Set":return this._pushSet(this,e);case"URL":return this._pushUrl(this,e);case"BigNumber":return this._pushBigNumber(this,e);case"Date":return this._pushDate(this,e);case"RegExp":return this._pushRegexp(this,e);case"Symbol":switch(e){case Us.NULL:return this._pushObject(null);case Us.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+e.toString())}default:throw new Error("Unknown type: "+typeof e+", "+(e?e.toString():""))}}finalize(){if(0===this.offset)return null;for(var e=this.result,t=this.resultLength,r=this.resultMethod,n=this.offset,i=0,o=0;o<n;o++)i+=t[o];var s=Cs.allocUnsafe(i),a=0,c=0;for(o=0;o<n;o++){switch(c=t[o],r[o]){case 0:e[o].copy(s,a);break;case 1:s.writeUInt8(e[o],a,!0);break;case 2:s.writeUInt16BE(e[o],a,!0);break;case 3:s.writeUInt32BE(e[o],a,!0);break;case 4:s.writeDoubleBE(e[o],a,!0);break;case 5:s.write(e[o],a,c,"utf8");break;default:throw new Error("unkown method")}a+=c}var u=s;return this._reset(),u}_reset(){this.result=[],this.resultMethod=[],this.resultLength=[],this.offset=0}static encode(e){const t=new Ws;if(!t.pushAny(e))throw new Error("Failed to encode input");return t.finalize()}}var $s=Ws;function Js(e){if("string"==typeof e)return(new TextEncoder).encode(e);if(!(e instanceof Uint8Array))throw new TypeError('"data" be a string or Uint8Array.');return e}
|
|
521
521
|
/*!
|
|
@@ -964,7 +964,7 @@ var r=EW.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,n){retur
|
|
|
964
964
|
<slot></slot>
|
|
965
965
|
</div>
|
|
966
966
|
</div>
|
|
967
|
-
`}});var Iue=he`<style
|
|
967
|
+
`}});var Iue=he`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}</style>`,kue=he`<style>.buv-c-error-message{background:rgba(208,2,27,.1);border-radius:2px;letter-spacing:.05px;padding:10px}.buv-c-error-message--solid{background:#fff;border-radius:2px 2px 0 0;margin:0}.buv-c-error-message-title{color:#d0021b;font-weight:bold;display:block;margin-bottom:5px;font-size:15px}</style>`;function Pue(e,t=!1){if(null==e)return null;const r=["buv-c-error-message","buv-qa-error-message",t?"buv-c-error-message--solid":""].join(" ");return he`
|
|
968
968
|
${kue}
|
|
969
969
|
<p class$='${r}'>
|
|
970
970
|
<span class='buv-c-error-message-title'>${xi("errors.errorLabel")}</span>
|
|
@@ -972,7 +972,7 @@ var r=EW.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,n){retur
|
|
|
972
972
|
</p>`}function Tue({label:e,code:t,status:r,errorMessage:n,isParent:i,isFirst:o,isTestChain:s}){const a=["buv-o-text-15","buv-c-verification-step","buv-c-badge",o?"is-first":"",`is-${r}`,s?"is-test":""].join(" ");let c;return c=i?he`${Iue}<dt class$='${a}'>${e}</dt>`:he`${Iue}<dd class='buv-c-verification-step buv-c-verification-substep buv-o-text-12'>
|
|
973
973
|
${e}
|
|
974
974
|
${Pue(n)}
|
|
975
|
-
</dd>`,he`${c}`}var Oue=he`<style
|
|
975
|
+
</dd>`,he`${c}`}var Oue=he`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step--standalone{margin-top:0}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:rgba(42,178,123,.1);border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:rgba(208,2,27,.1);border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:rgba(245,166,35,.1);border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}</style>`;function Lue(e){return e.verificationStatus}function Nue(e,t){const r=$ae(e).find((e=>"proofVerification"===e.code)).suites?.find((e=>e.proofType===t));return r.subSteps.every((e=>e.status===wd.SUCCESS))?wd.SUCCESS:r.subSteps.some((e=>e.status===wd.FAILURE))?wd.FAILURE:""}function Uue(e){return e.showVerificationModal}const Fue=pce((function({chain:e="",transactionLink:t="",isTestChain:r,isVisible:n=!1,finalStep:i=null,hideLink:o=!1,status:s=!1,standalone:a=!1}={}){if(!i)return;const c=[a?"buv-c-final-verification-step--standalone-wrapper":"",`is-${s}`,r?"is-test":""].join(" "),u=["buv-c-final-verification-step","buv-qa-final-verification-step",a?"buv-c-final-verification-step--standalone":"","buv-qa-verification-step",n?"is-visible":"",r?"is-test":"",`is-${s}`,s&&!a?"buv-c-badge buv-c-badge--large":""].join(" "),l=["buv-c-verification-substep",a?"":"buv-u-excluded-from-flow","buv-u-full-width","buv-o-text-12","is-final",n?"is-visible":""].join(" "),A=i.label,h=function(e,t){return e.description?he`<p class='buv-c-verification-step__description buv-qa-final-step-description'>${e.description.replace("${chain}",t)}</p>`:""}(i,e),f=!o&&i.linkText?he`<a class='buv-o-link' href='${t}' hidden?='${!t}'>
|
|
976
976
|
<span class='buv-o-link__text--underline buv-qa-transaction-link'>${i.linkText}</span>
|
|
977
977
|
</a>`:"";return he`
|
|
978
978
|
${Oue}
|
|
@@ -1077,7 +1077,7 @@ var r=EW.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,n){retur
|
|
|
1077
1077
|
* subject to an additional IP rights grant found at
|
|
1078
1078
|
* http://polymer.github.io/PATENTS.txt
|
|
1079
1079
|
*/
|
|
1080
|
-
const que=e=>(e=>(e.__litDirective=!0,e))((t=>{const r=document.createElement("template");r.innerHTML=e,t.setValue(document.importNode(r.content,!0))}));var Gue=he`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-full-certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;display:block;font-family:serif;text-align:center;color:#49555f;font-size:12px;overflow:auto;word-wrap:break-word;height:100vh;max-height:calc(100vh - 150px);line-height:initial}.buv-c-full-certificate section{max-width:100%;padding:0}.buv-c-full-certificate img{max-width:100%;height:auto;width:inherit}@media only screen and (min-width: 640px){.buv-c-full-certificate{font-size:16px}}.buv-c-full-certificate__button{margin-top:15px}.buv-c-full-certificate__details{display:flex;justify-content:space-between;margin-top:15px}.buv-c-full-certificate__details-list{min-width:calc(100% - 190px);width:calc(100% - 105px)}</style>`,Wue=he`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate-details{display:flex;margin:0;position:relative;padding-bottom:60px}@media only screen and (max-width: 750px){.buv-c-certificate-details{flex-direction:column;padding-bottom:0}}.buv-c-certificate-details--column{flex-direction:column;padding-bottom:0}.buv-c-certificate-details__group{box-sizing:border-box;padding-right:15px;margin-top:15px}.buv-c-certificate-details__group--row{max-width:33%;margin-top:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__group--row{max-width:100%}}.buv-c-certificate-details__title{margin-bottom:5px;text-transform:uppercase;font-weight:600}.buv-c-certificate-details__value{margin:0;word-break:break-all}.buv-c-certificate-details__standalone{position:absolute;bottom:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__standalone{position:initial;margin-top:15px}}.buv-c-certificate-details--inline{display:inline-block;margin:0 0 5px}</style>`,$ue=he`<style
|
|
1080
|
+
const que=e=>(e=>(e.__litDirective=!0,e))((t=>{const r=document.createElement("template");r.innerHTML=e,t.setValue(document.importNode(r.content,!0))}));var Gue=he`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-full-certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;display:block;font-family:serif;text-align:center;color:#49555f;font-size:12px;overflow:auto;word-wrap:break-word;height:100vh;max-height:calc(100vh - 150px);line-height:initial}.buv-c-full-certificate section{max-width:100%;padding:0}.buv-c-full-certificate img{max-width:100%;height:auto;width:inherit}@media only screen and (min-width: 640px){.buv-c-full-certificate{font-size:16px}}.buv-c-full-certificate__button{margin-top:15px}.buv-c-full-certificate__details{display:flex;justify-content:space-between;margin-top:15px}.buv-c-full-certificate__details-list{min-width:calc(100% - 190px);width:calc(100% - 105px)}</style>`,Wue=he`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate-details{display:flex;margin:0;position:relative;padding-bottom:60px}@media only screen and (max-width: 750px){.buv-c-certificate-details{flex-direction:column;padding-bottom:0}}.buv-c-certificate-details--column{flex-direction:column;padding-bottom:0}.buv-c-certificate-details__group{box-sizing:border-box;padding-right:15px;margin-top:15px}.buv-c-certificate-details__group--row{max-width:33%;margin-top:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__group--row{max-width:100%}}.buv-c-certificate-details__title{margin-bottom:5px;text-transform:uppercase;font-weight:600}.buv-c-certificate-details__value{margin:0;word-break:break-all}.buv-c-certificate-details__standalone{position:absolute;bottom:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__standalone{position:initial;margin-top:15px}}.buv-c-certificate-details--inline{display:inline-block;margin:0 0 5px}</style>`,$ue=he`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step--standalone{margin-top:0}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:rgba(42,178,123,.1);border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:rgba(208,2,27,.1);border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:rgba(245,166,35,.1);border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}.buv-c-suite-verification-status{margin-left:30px;font-weight:400}.buv-c-suite-verification-status.is-visible{font-size:13px}.buv-c-suite-verification-status.is-visible::after{width:20px;height:20px;left:-28px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const Jue=pce((function({isTestChain:e,status:t}){const r=["buv-c-final-verification-step","buv-c-suite-verification-status","is-visible",`is-${t}`,e?"is-test":""].join(" "),n=function(e,t){let r="signatureStatusSuccess";return e&&(r="signatureStatusTestSuccess"),t===wd.FAILURE&&(r="signatureStatusFailure"),xi("text",r)}(e,t);return he`
|
|
1081
1081
|
${$ue}
|
|
1082
1082
|
<a class$='${r}' title$='${n}'>
|
|
1083
1083
|
<span class='buv-u-visually-hidden'>${n}</span>
|
|
@@ -1183,7 +1183,7 @@ const que=e=>(e=>(e.__litDirective=!0,e))((t=>{const r=document.createElement("t
|
|
|
1183
1183
|
explorerAPIs='${e.explorerAPIs}'
|
|
1184
1184
|
didResolverUrl='${e["did-resolver-url"]}'
|
|
1185
1185
|
></buv-raw>`}),{mapDispatchToProps:aAe,mapStateToProps:e=>({errorMessage:sAe(e),hasCertificate:!!Oae(e)}),ownProps:{...oAe.properties,...Kce}});window.customElements.define("blockcerts-verifier",cAe);var uAe={exports:{}};
|
|
1186
|
-
/*! @license DOMPurify 2.3.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.8/LICENSE */!function(e,t){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,i,o){return n=r()?Reflect.construct:function(e,r,n){var i=[null];i.push.apply(i,r);var o=new(Function.bind.apply(e,i));return n&&t(o,n.prototype),o},n.apply(null,arguments)}function i(e){return o(e)||s(e)||a(e)||u()}function o(e){if(Array.isArray(e))return c(e)}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,A=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,p=Object.freeze,g=Object.seal,m=Object.create,y="undefined"!=typeof Reflect&&Reflect,v=y.apply,b=y.construct;v||(v=function(e,t,r){return e.apply(t,r)}),p||(p=function(e){return e}),g||(g=function(e){return e}),b||(b=function(e,t){return n(e,i(t))});var w=T(Array.prototype.forEach),x=T(Array.prototype.pop),_=T(Array.prototype.push),B=T(String.prototype.toLowerCase),E=T(String.prototype.match),S=T(String.prototype.replace),C=T(String.prototype.indexOf),I=T(String.prototype.trim),k=T(RegExp.prototype.test),P=O(TypeError);function T(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return v(e,t,n)}}function O(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return b(e,r)}}function L(e,t){A&&A(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var i=B(n);i!==n&&(h(t)||(t[r]=i),n=i)}e[n]=!0}return e}function N(e){var t,r=m(null);for(t in e)v(l,e,[t])&&(r[t]=e[t]);return r}function U(e,t){for(;null!==e;){var r=d(e,t);if(r){if(r.get)return T(r.get);if("function"==typeof r.value)return T(r.value)}e=f(e)}function n(e){return console.warn("fallback value for",e),null}return n}var F=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Q=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=p(["#text"]),K=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),V=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=g(/<%[\w\W]*|[\w\W]*%>/gm),$=g(/^data-[\-\w.\u00B7-\uFFFF]/),J=g(/^aria-[\-\w]+$/),X=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=g(/^(?:\w+script|data):/i),Z=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},re=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ne(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),r=function(e){return ne(e)};if(r.version="2.3.8",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n=t.document,o=t.document,s=t.DocumentFragment,a=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,A=t.NamedNodeMap,h=void 0===A?t.NamedNodeMap||t.MozNamedAttrMap:A,f=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,m=u.prototype,y=U(m,"cloneNode"),v=U(m,"nextSibling"),b=U(m,"childNodes"),T=U(m,"parentNode");if("function"==typeof a){var O=o.createElement("template");O.content&&O.content.ownerDocument&&(o=O.content.ownerDocument)}var ie=re(g,n),oe=ie?ie.createHTML(""):"",se=o,ae=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,le=se.getElementsByTagName,Ae=n.importNode,he={};try{he=N(o).documentMode?o.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof T&&ae&&void 0!==ae.createHTMLDocument&&9!==he;var de,pe,ge=G,me=W,ye=$,ve=J,be=Y,we=Z,xe=X,_e=null,Be=L({},[].concat(i(F),i(M),i(R),i(j),i(H))),Ee=null,Se=L({},[].concat(i(K),i(V),i(z),i(q))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,ke=null,Pe=!0,Te=!0,Oe=!1,Le=!1,Ne=!1,Ue=!1,Fe=!1,Me=!1,Re=!1,De=!1,je=!0,Qe=!0,He=!1,Ke={},Ve=null,ze=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ge=L({},["audio","video","img","source","image","track"]),We=null,$e=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ze=Ye,et=!1,tt=["application/xhtml+xml","text/html"],rt="text/html",nt=null,it=o.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){nt&&nt===t||(t&&"object"===e(t)||(t={}),t=N(t),_e="ALLOWED_TAGS"in t?L({},t.ALLOWED_TAGS):Be,Ee="ALLOWED_ATTR"in t?L({},t.ALLOWED_ATTR):Se,We="ADD_URI_SAFE_ATTR"in t?L(N($e),t.ADD_URI_SAFE_ATTR):$e,qe="ADD_DATA_URI_TAGS"in t?L(N(Ge),t.ADD_DATA_URI_TAGS):Ge,Ve="FORBID_CONTENTS"in t?L({},t.FORBID_CONTENTS):ze,Ie="FORBID_TAGS"in t?L({},t.FORBID_TAGS):{},ke="FORBID_ATTR"in t?L({},t.FORBID_ATTR):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,Te=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Me=t.RETURN_DOM||!1,Re=t.RETURN_DOM_FRAGMENT||!1,De=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,je=!1!==t.SANITIZE_DOM,Qe=!1!==t.KEEP_CONTENT,He=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,Ze=t.NAMESPACE||Ye,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de=de=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?rt:t.PARSER_MEDIA_TYPE,pe="application/xhtml+xml"===de?function(e){return e}:B,Le&&(Te=!1),Re&&(Me=!0),Ke&&(_e=L({},i(H)),Ee=[],!0===Ke.html&&(L(_e,F),L(Ee,K)),!0===Ke.svg&&(L(_e,M),L(Ee,V),L(Ee,q)),!0===Ke.svgFilters&&(L(_e,R),L(Ee,V),L(Ee,q)),!0===Ke.mathMl&&(L(_e,j),L(Ee,z),L(Ee,q))),t.ADD_TAGS&&(_e===Be&&(_e=N(_e)),L(_e,t.ADD_TAGS)),t.ADD_ATTR&&(Ee===Se&&(Ee=N(Ee)),L(Ee,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&L(We,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(Ve===ze&&(Ve=N(Ve)),L(Ve,t.FORBID_CONTENTS)),Qe&&(_e["#text"]=!0),Ne&&L(_e,["html","head","body"]),_e.table&&(L(_e,["tbody"]),delete Ie.tbody),p&&p(t),nt=t)},at=L({},["mi","mo","mn","ms","mtext"]),ct=L({},["foreignobject","desc","title","annotation-xml"]),ut=L({},["title","style","font","a","script"]),lt=L({},M);L(lt,R),L(lt,D);var At=L({},j);L(At,Q);var ht=function(e){var t=T(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var r=B(e.tagName),n=B(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Ye?"svg"===r:t.namespaceURI===Je?"svg"===r&&("annotation-xml"===n||at[n]):Boolean(lt[r]):e.namespaceURI===Je?t.namespaceURI===Ye?"math"===r:t.namespaceURI===Xe?"math"===r&&ct[n]:Boolean(At[r]):e.namespaceURI===Ye&&!(t.namespaceURI===Xe&&!ct[n])&&!(t.namespaceURI===Je&&!at[n])&&!At[r]&&(ut[r]||!lt[r])},ft=function(e){_(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},dt=function(e,t){try{_(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Me||Re)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){var t,r;if(Fe)e="<remove></remove>"+e;else{var n=E(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===de&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ie?ie.createHTML(e):e;if(Ze===Ye)try{t=(new d).parseFromString(i,de)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?"":i}catch(e){}}var s=t.body||t.documentElement;return e&&r&&s.insertBefore(o.createTextNode(r),s.childNodes[0]||null),Ze===Ye?le.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:s},gt=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},vt=function(e,t,n){fe[e]&&w(fe[e],(function(e){e.call(r,t,n,nt)}))},bt=function(e){var t;if(vt("beforeSanitizeElements",e,null),mt(e))return ft(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var n=pe(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:_e}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===n&&k(/<template/i,e.innerHTML))return ft(e),!0;if(!_e[n]||Ie[n]){if(!Ie[n]&&xt(n)){if(Ce.tagNameCheck instanceof RegExp&&k(Ce.tagNameCheck,n))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))return!1}if(Qe&&!Ve[n]){var i=T(e)||e.parentNode,o=b(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(y(o[s],!0),v(e))}return ft(e),!0}return e instanceof u&&!ht(e)?(ft(e),!0):"noscript"!==n&&"noembed"!==n||!k(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=S(t,ge," "),t=S(t,me," "),e.textContent!==t&&(_(r.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},wt=function(e,t,r){if(je&&("id"===t||"name"===t)&&(r in o||r in it))return!1;if(Te&&!ke[t]&&k(ye,t));else if(Pe&&k(ve,t));else if(!Ee[t]||ke[t]){if(!(xt(e)&&(Ce.tagNameCheck instanceof RegExp&&k(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&k(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&k(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(We[t]);else if(k(xe,S(r,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(r,"data:")||!qe[e])if(Oe&&!k(be,S(r,we,"")));else if(r)return!1;return!0},xt=function(e){return e.indexOf("-")>0},_t=function(e){var t,n,i,o;vt("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(o=s.length;o--;){var c=t=s[o],u=c.name,l=c.namespaceURI;if(n="value"===u?t.value:I(t.value),i=pe(u),a.attrName=i,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,a),n=a.attrValue,!a.forceKeepAttr&&(dt(u,e),a.keepAttr))if(k(/\/>/i,n))dt(u,e);else{Le&&(n=S(n,ge," "),n=S(n,me," "));var A=pe(e.nodeName);if(wt(A,i,n))try{l?e.setAttributeNS(l,u,n):e.setAttribute(u,n),x(r.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)}},Bt=function e(t){var r,n=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)vt("uponSanitizeShadowNode",r,null),bt(r)||(r.content instanceof s&&e(r.content),_t(r));vt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(i,o){var a,u,l,A,h;if((et=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!yt(i)){if("function"!=typeof i.toString)throw P("toString is not a function");if("string"!=typeof(i=i.toString()))throw P("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof i)return t.toStaticHTML(i);if(yt(i))return t.toStaticHTML(i.outerHTML)}return i}if(Ue||st(o),r.removed=[],"string"==typeof i&&(He=!1),He){if(i.nodeName){var f=pe(i.nodeName);if(!_e[f]||Ie[f])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof c)1===(u=(a=pt("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!Me&&!Le&&!Ne&&-1===i.indexOf("<"))return ie&&De?ie.createHTML(i):i;if(!(a=pt(i)))return Me?null:De?oe:""}a&&Fe&&ft(a.firstChild);for(var d=gt(He?i:a);l=d.nextNode();)3===l.nodeType&&l===A||bt(l)||(l.content instanceof s&&Bt(l.content),_t(l),A=l);if(A=null,He)return i;if(Me){if(Re)for(h=ue.call(a.ownerDocument);a.firstChild;)h.appendChild(a.firstChild);else h=a;return Ee.shadowroot&&(h=Ae.call(n,h,!0)),h}var p=Ne?a.outerHTML:a.innerHTML;return Ne&&_e["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&k(ee,a.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+p),Le&&(p=S(p,ge," "),p=S(p,me," ")),ie&&De?ie.createHTML(p):p},r.setConfig=function(e){st(e),Ue=!0},r.clearConfig=function(){nt=null,Ue=!1},r.isValidAttribute=function(e,t,r){nt||st({});var n=pe(e),i=pe(t);return wt(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],_(fe[e],t))},r.removeHook=function(e){if(fe[e])return x(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}return ne()}()}(uAe);var lAe=e({__proto__:null,default:uAe.exports},[uAe.exports]),AAe=function(e){return e&&e.Math==Math&&e},hAe=AAe("object"==typeof globalThis&&globalThis)||AAe("object"==typeof window&&window)||AAe("object"==typeof self&&self)||AAe("object"==typeof et&&et)||function(){return this}()||Function("return this")(),fAe={},dAe=function(e){try{return!!e()}catch(e){return!0}},pAe=!dAe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gAe=!dAe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),mAe=gAe,yAe=Function.prototype.call,vAe=mAe?yAe.bind(yAe):function(){return yAe.apply(yAe,arguments)},bAe={},wAe={}.propertyIsEnumerable,xAe=Object.getOwnPropertyDescriptor,_Ae=xAe&&!wAe.call({1:2},1);bAe.f=_Ae?function(e){var t=xAe(this,e);return!!t&&t.enumerable}:wAe;var BAe,EAe,SAe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},CAe=gAe,IAe=Function.prototype,kAe=IAe.bind,PAe=IAe.call,TAe=CAe&&kAe.bind(PAe,PAe),OAe=CAe?function(e){return e&&TAe(e)}:function(e){return e&&function(){return PAe.apply(e,arguments)}},LAe=OAe,NAe=LAe({}.toString),UAe=LAe("".slice),FAe=function(e){return UAe(NAe(e),8,-1)},MAe=dAe,RAe=FAe,DAe=Object,jAe=OAe("".split),QAe=MAe((function(){return!DAe("z").propertyIsEnumerable(0)}))?function(e){return"String"==RAe(e)?jAe(e,""):DAe(e)}:DAe,HAe=TypeError,KAe=function(e){if(null==e)throw HAe("Can't call method on "+e);return e},VAe=QAe,zAe=KAe,qAe=function(e){return VAe(zAe(e))},GAe=function(e){return"function"==typeof e},WAe=GAe,$Ae=function(e){return"object"==typeof e?null!==e:WAe(e)},JAe=hAe,XAe=GAe,YAe=function(e){return XAe(e)?e:void 0},ZAe=function(e,t){return arguments.length<2?YAe(JAe[e]):JAe[e]&&JAe[e][t]},ehe=OAe({}.isPrototypeOf),the=ZAe("navigator","userAgent")||"",rhe=hAe,nhe=the,ihe=rhe.process,ohe=rhe.Deno,she=ihe&&ihe.versions||ohe&&ohe.version,ahe=she&&she.v8;ahe&&(EAe=(BAe=ahe.split("."))[0]>0&&BAe[0]<4?1:+(BAe[0]+BAe[1])),!EAe&&nhe&&(!(BAe=nhe.match(/Edge\/(\d+)/))||BAe[1]>=74)&&(BAe=nhe.match(/Chrome\/(\d+)/))&&(EAe=+BAe[1]);var che=EAe,uhe=che,lhe=dAe,Ahe=!!Object.getOwnPropertySymbols&&!lhe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uhe&&uhe<41})),hhe=Ahe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fhe=ZAe,dhe=GAe,phe=ehe,ghe=Object,mhe=hhe?function(e){return"symbol"==typeof e}:function(e){var t=fhe("Symbol");return dhe(t)&&phe(t.prototype,ghe(e))},yhe=String,vhe=function(e){try{return yhe(e)}catch(e){return"Object"}},bhe=GAe,whe=vhe,xhe=TypeError,_he=function(e){if(bhe(e))return e;throw xhe(whe(e)+" is not a function")},Bhe=_he,Ehe=function(e,t){var r=e[t];return null==r?void 0:Bhe(r)},She=vAe,Che=GAe,Ihe=$Ae,khe=TypeError,Phe={exports:{}},The=hAe,Ohe=Object.defineProperty,Lhe=function(e,t){try{Ohe(The,e,{value:t,configurable:!0,writable:!0})}catch(r){The[e]=t}return t},Nhe=Lhe,Uhe="__core-js_shared__",Fhe=hAe[Uhe]||Nhe(Uhe,{}),Mhe=Fhe;(Phe.exports=function(e,t){return Mhe[e]||(Mhe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Rhe=KAe,Dhe=Object,jhe=function(e){return Dhe(Rhe(e))},Qhe=jhe,Hhe=OAe({}.hasOwnProperty),Khe=Object.hasOwn||function(e,t){return Hhe(Qhe(e),t)},Vhe=OAe,zhe=0,qhe=Math.random(),Ghe=Vhe(1..toString),Whe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ghe(++zhe+qhe,36)},$he=hAe,Jhe=Phe.exports,Xhe=Khe,Yhe=Whe,Zhe=Ahe,efe=hhe,tfe=Jhe("wks"),rfe=$he.Symbol,nfe=rfe&&rfe.for,ife=efe?rfe:rfe&&rfe.withoutSetter||Yhe,ofe=function(e){if(!Xhe(tfe,e)||!Zhe&&"string"!=typeof tfe[e]){var t="Symbol."+e;Zhe&&Xhe(rfe,e)?tfe[e]=rfe[e]:tfe[e]=efe&&nfe?nfe(t):ife(t)}return tfe[e]},sfe=vAe,afe=$Ae,cfe=mhe,ufe=Ehe,lfe=function(e,t){var r,n;if("string"===t&&Che(r=e.toString)&&!Ihe(n=She(r,e)))return n;if(Che(r=e.valueOf)&&!Ihe(n=She(r,e)))return n;if("string"!==t&&Che(r=e.toString)&&!Ihe(n=She(r,e)))return n;throw khe("Can't convert object to primitive value")},Afe=TypeError,hfe=ofe("toPrimitive"),ffe=function(e,t){if(!afe(e)||cfe(e))return e;var r,n=ufe(e,hfe);if(n){if(void 0===t&&(t="default"),r=sfe(n,e,t),!afe(r)||cfe(r))return r;throw Afe("Can't convert object to primitive value")}return void 0===t&&(t="number"),lfe(e,t)},dfe=mhe,pfe=function(e){var t=ffe(e,"string");return dfe(t)?t:t+""},gfe=$Ae,mfe=hAe.document,yfe=gfe(mfe)&&gfe(mfe.createElement),vfe=function(e){return yfe?mfe.createElement(e):{}},bfe=vfe,wfe=!pAe&&!dAe((function(){return 7!=Object.defineProperty(bfe("div"),"a",{get:function(){return 7}}).a})),xfe=pAe,_fe=vAe,Bfe=bAe,Efe=SAe,Sfe=qAe,Cfe=pfe,Ife=Khe,kfe=wfe,Pfe=Object.getOwnPropertyDescriptor;fAe.f=xfe?Pfe:function(e,t){if(e=Sfe(e),t=Cfe(t),kfe)try{return Pfe(e,t)}catch(e){}if(Ife(e,t))return Efe(!_fe(Bfe.f,e,t),e[t])};var Tfe={},Ofe=pAe&&dAe((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lfe=$Ae,Nfe=String,Ufe=TypeError,Ffe=function(e){if(Lfe(e))return e;throw Ufe(Nfe(e)+" is not an object")},Mfe=pAe,Rfe=wfe,Dfe=Ofe,jfe=Ffe,Qfe=pfe,Hfe=TypeError,Kfe=Object.defineProperty,Vfe=Object.getOwnPropertyDescriptor,zfe="enumerable",qfe="configurable",Gfe="writable";Tfe.f=Mfe?Dfe?function(e,t,r){if(jfe(e),t=Qfe(t),jfe(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Gfe in r&&!r.writable){var n=Vfe(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:qfe in r?r.configurable:n.configurable,enumerable:zfe in r?r.enumerable:n.enumerable,writable:!1})}return Kfe(e,t,r)}:Kfe:function(e,t,r){if(jfe(e),t=Qfe(t),jfe(r),Rfe)try{return Kfe(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Hfe("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wfe=Tfe,$fe=SAe,Jfe=pAe?function(e,t,r){return Wfe.f(e,t,$fe(1,r))}:function(e,t,r){return e[t]=r,e},Xfe={exports:{}},Yfe=pAe,Zfe=Khe,ede=Function.prototype,tde=Yfe&&Object.getOwnPropertyDescriptor,rde=Zfe(ede,"name"),nde={EXISTS:rde,PROPER:rde&&"something"===function(){}.name,CONFIGURABLE:rde&&(!Yfe||Yfe&&tde(ede,"name").configurable)},ide=GAe,ode=Fhe,sde=OAe(Function.toString);ide(ode.inspectSource)||(ode.inspectSource=function(e){return sde(e)});var ade,cde,ude,lde=ode.inspectSource,Ade=GAe,hde=lde,fde=hAe.WeakMap,dde=Ade(fde)&&/native code/.test(hde(fde)),pde=Phe.exports,gde=Whe,mde=pde("keys"),yde=function(e){return mde[e]||(mde[e]=gde(e))},vde={},bde=dde,wde=hAe,xde=OAe,_de=$Ae,Bde=Jfe,Ede=Khe,Sde=Fhe,Cde=yde,Ide=vde,kde="Object already initialized",Pde=wde.TypeError,Tde=wde.WeakMap;if(bde||Sde.state){var Ode=Sde.state||(Sde.state=new Tde),Lde=xde(Ode.get),Nde=xde(Ode.has),Ude=xde(Ode.set);ade=function(e,t){if(Nde(Ode,e))throw new Pde(kde);return t.facade=e,Ude(Ode,e,t),t},cde=function(e){return Lde(Ode,e)||{}},ude=function(e){return Nde(Ode,e)}}else{var Fde=Cde("state");Ide[Fde]=!0,ade=function(e,t){if(Ede(e,Fde))throw new Pde(kde);return t.facade=e,Bde(e,Fde,t),t},cde=function(e){return Ede(e,Fde)?e[Fde]:{}},ude=function(e){return Ede(e,Fde)}}var Mde={set:ade,get:cde,has:ude,enforce:function(e){return ude(e)?cde(e):ade(e,{})},getterFor:function(e){return function(t){var r;if(!_de(t)||(r=cde(t)).type!==e)throw Pde("Incompatible receiver, "+e+" required");return r}}},Rde=dAe,Dde=GAe,jde=Khe,Qde=pAe,Hde=nde.CONFIGURABLE,Kde=lde,Vde=Mde.enforce,zde=Mde.get,qde=Object.defineProperty,Gde=Qde&&!Rde((function(){return 8!==qde((function(){}),"length",{value:8}).length})),Wde=String(String).split("String"),$de=Xfe.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!jde(e,"name")||Hde&&e.name!==t)&&qde(e,"name",{value:t,configurable:!0}),Gde&&r&&jde(r,"arity")&&e.length!==r.arity&&qde(e,"length",{value:r.arity});try{r&&jde(r,"constructor")&&r.constructor?Qde&&qde(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Vde(e);return jde(n,"source")||(n.source=Wde.join("string"==typeof t?t:"")),e};Function.prototype.toString=$de((function(){return Dde(this)&&zde(this).source||Kde(this)}),"toString");var Jde=GAe,Xde=Tfe,Yde=Xfe.exports,Zde=Lhe,epe=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;return Jde(r)&&Yde(r,o,n),n.global?i?e[t]=r:Zde(t,r):(n.unsafe?e[t]&&(i=!0):delete e[t],i?e[t]=r:Xde.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})),e},tpe={},rpe=Math.ceil,npe=Math.floor,ipe=Math.trunc||function(e){var t=+e;return(t>0?npe:rpe)(t)},ope=ipe,spe=function(e){var t=+e;return t!=t||0===t?0:ope(t)},ape=spe,cpe=Math.max,upe=Math.min,lpe=function(e,t){var r=ape(e);return r<0?cpe(r+t,0):upe(r,t)},Ape=spe,hpe=Math.min,fpe=function(e){return e>0?hpe(Ape(e),9007199254740991):0},dpe=fpe,ppe=function(e){return dpe(e.length)},gpe=qAe,mpe=lpe,ype=ppe,vpe=function(e){return function(t,r,n){var i,o=gpe(t),s=ype(o),a=mpe(n,s);if(e&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},bpe={includes:vpe(!0),indexOf:vpe(!1)},wpe=Khe,xpe=qAe,_pe=bpe.indexOf,Bpe=vde,Epe=OAe([].push),Spe=function(e,t){var r,n=xpe(e),i=0,o=[];for(r in n)!wpe(Bpe,r)&&wpe(n,r)&&Epe(o,r);for(;t.length>i;)wpe(n,r=t[i++])&&(~_pe(o,r)||Epe(o,r));return o},Cpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ipe=Spe,kpe=Cpe.concat("length","prototype");tpe.f=Object.getOwnPropertyNames||function(e){return Ipe(e,kpe)};var Ppe={};Ppe.f=Object.getOwnPropertySymbols;var Tpe=ZAe,Ope=tpe,Lpe=Ppe,Npe=Ffe,Upe=OAe([].concat),Fpe=Tpe("Reflect","ownKeys")||function(e){var t=Ope.f(Npe(e)),r=Lpe.f;return r?Upe(t,r(e)):t},Mpe=Khe,Rpe=Fpe,Dpe=fAe,jpe=Tfe,Qpe=dAe,Hpe=GAe,Kpe=/#|\.prototype\./,Vpe=function(e,t){var r=qpe[zpe(e)];return r==Wpe||r!=Gpe&&(Hpe(t)?Qpe(t):!!t)},zpe=Vpe.normalize=function(e){return String(e).replace(Kpe,".").toLowerCase()},qpe=Vpe.data={},Gpe=Vpe.NATIVE="N",Wpe=Vpe.POLYFILL="P",$pe=Vpe,Jpe=hAe,Xpe=fAe.f,Ype=Jfe,Zpe=epe,ege=Lhe,tge=function(e,t,r){for(var n=Rpe(t),i=jpe.f,o=Dpe.f,s=0;s<n.length;s++){var a=n[s];Mpe(e,a)||r&&Mpe(r,a)||i(e,a,o(t,a))}},rge=$pe,nge=function(e,t){var r,n,i,o,s,a=e.target,c=e.global,u=e.stat;if(r=c?Jpe:u?Jpe[a]||ege(a,{}):(Jpe[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(s=Xpe(r,n))&&s.value:r[n],!rge(c?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;tge(o,i)}(e.sham||i&&i.sham)&&Ype(o,"sham",!0),Zpe(r,n,o,e)}},ige="process"==FAe(hAe.process),oge=GAe,sge=String,age=TypeError,cge=OAe,uge=Ffe,lge=function(e){if("object"==typeof e||oge(e))return e;throw age("Can't set "+sge(e)+" as a prototype")},Age=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=cge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return uge(r),lge(n),t?e(r,n):r.__proto__=n,r}}():void 0),hge=Tfe.f,fge=Khe,dge=ofe("toStringTag"),pge=function(e,t,r){e&&!r&&(e=e.prototype),e&&!fge(e,dge)&&hge(e,dge,{configurable:!0,value:t})},gge=ZAe,mge=Tfe,yge=pAe,vge=ofe("species"),bge=ehe,wge=TypeError,xge={};xge[ofe("toStringTag")]="z";var _ge="[object z]"===String(xge),Bge=GAe,Ege=FAe,Sge=ofe("toStringTag"),Cge=Object,Ige="Arguments"==Ege(function(){return arguments}()),kge=_ge?Ege:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Cge(e),Sge))?r:Ige?Ege(t):"Object"==(n=Ege(t))&&Bge(t.callee)?"Arguments":n},Pge=OAe,Tge=dAe,Oge=GAe,Lge=kge,Nge=lde,Uge=function(){},Fge=[],Mge=ZAe("Reflect","construct"),Rge=/^\s*(?:class|function)\b/,Dge=Pge(Rge.exec),jge=!Rge.exec(Uge),Qge=function(e){if(!Oge(e))return!1;try{return Mge(Uge,Fge,e),!0}catch(e){return!1}},Hge=function(e){if(!Oge(e))return!1;switch(Lge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jge||!!Dge(Rge,Nge(e))}catch(e){return!0}};Hge.sham=!0;var Kge,Vge,zge,qge,Gge=!Mge||Tge((function(){var e;return Qge(Qge.call)||!Qge(Object)||!Qge((function(){e=!0}))||e}))?Hge:Qge,Wge=Gge,$ge=vhe,Jge=TypeError,Xge=Ffe,Yge=function(e){if(Wge(e))return e;throw Jge($ge(e)+" is not a constructor")},Zge=ofe("species"),eme=function(e,t){var r,n=Xge(e).constructor;return void 0===n||null==(r=Xge(n)[Zge])?t:Yge(r)},tme=gAe,rme=Function.prototype,nme=rme.apply,ime=rme.call,ome="object"==typeof Reflect&&Reflect.apply||(tme?ime.bind(nme):function(){return ime.apply(nme,arguments)}),sme=_he,ame=gAe,cme=OAe(OAe.bind),ume=function(e,t){return sme(e),void 0===t?e:ame?cme(e,t):function(){return e.apply(t,arguments)}},lme=ZAe("document","documentElement"),Ame=OAe([].slice),hme=TypeError,fme=/(?:ipad|iphone|ipod).*applewebkit/i.test(the),dme=hAe,pme=ome,gme=ume,mme=GAe,yme=Khe,vme=dAe,bme=lme,wme=Ame,xme=vfe,_me=function(e,t){if(e<t)throw hme("Not enough arguments");return e},Bme=fme,Eme=ige,Sme=dme.setImmediate,Cme=dme.clearImmediate,Ime=dme.process,kme=dme.Dispatch,Pme=dme.Function,Tme=dme.MessageChannel,Ome=dme.String,Lme=0,Nme={},Ume="onreadystatechange";try{Kge=dme.location}catch(e){}var Fme=function(e){if(yme(Nme,e)){var t=Nme[e];delete Nme[e],t()}},Mme=function(e){return function(){Fme(e)}},Rme=function(e){Fme(e.data)},Dme=function(e){dme.postMessage(Ome(e),Kge.protocol+"//"+Kge.host)};Sme&&Cme||(Sme=function(e){_me(arguments.length,1);var t=mme(e)?e:Pme(e),r=wme(arguments,1);return Nme[++Lme]=function(){pme(t,void 0,r)},Vge(Lme),Lme},Cme=function(e){delete Nme[e]},Eme?Vge=function(e){Ime.nextTick(Mme(e))}:kme&&kme.now?Vge=function(e){kme.now(Mme(e))}:Tme&&!Bme?(qge=(zge=new Tme).port2,zge.port1.onmessage=Rme,Vge=gme(qge.postMessage,qge)):dme.addEventListener&&mme(dme.postMessage)&&!dme.importScripts&&Kge&&"file:"!==Kge.protocol&&!vme(Dme)?(Vge=Dme,dme.addEventListener("message",Rme,!1)):Vge=Ume in xme("script")?function(e){bme.appendChild(xme("script")).onreadystatechange=function(){bme.removeChild(this),Fme(e)}}:function(e){setTimeout(Mme(e),0)});var jme,Qme,Hme,Kme,Vme,zme,qme,Gme,Wme={set:Sme,clear:Cme},$me=hAe,Jme=/ipad|iphone|ipod/i.test(the)&&void 0!==$me.Pebble,Xme=/web0s(?!.*chrome)/i.test(the),Yme=hAe,Zme=ume,eye=fAe.f,tye=Wme.set,rye=fme,nye=Jme,iye=Xme,oye=ige,sye=Yme.MutationObserver||Yme.WebKitMutationObserver,aye=Yme.document,cye=Yme.process,uye=Yme.Promise,lye=eye(Yme,"queueMicrotask"),Aye=lye&&lye.value;Aye||(jme=function(){var e,t;for(oye&&(e=cye.domain)&&e.exit();Qme;){t=Qme.fn,Qme=Qme.next;try{t()}catch(e){throw Qme?Kme():Hme=void 0,e}}Hme=void 0,e&&e.enter()},rye||oye||iye||!sye||!aye?!nye&&uye&&uye.resolve?((qme=uye.resolve(void 0)).constructor=uye,Gme=Zme(qme.then,qme),Kme=function(){Gme(jme)}):oye?Kme=function(){cye.nextTick(jme)}:(tye=Zme(tye,Yme),Kme=function(){tye(jme)}):(Vme=!0,zme=aye.createTextNode(""),new sye(jme).observe(zme,{characterData:!0}),Kme=function(){zme.data=Vme=!Vme}));var hye=Aye||function(e){var t={fn:e,next:void 0};Hme&&(Hme.next=t),Qme||(Qme=t,Kme()),Hme=t},fye=hAe,dye=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},pye=function(){this.head=null,this.tail=null};pye.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var gye=pye,mye=hAe.Promise,yye="object"==typeof window&&"object"!=typeof Deno,vye=hAe,bye=mye,wye=GAe,xye=$pe,_ye=lde,Bye=ofe,Eye=yye,Sye=che;bye&&bye.prototype;var Cye=Bye("species"),Iye=!1,kye=wye(vye.PromiseRejectionEvent),Pye=xye("Promise",(function(){var e=_ye(bye),t=e!==String(bye);if(!t&&66===Sye)return!0;if(Sye>=51&&/native code/.test(e))return!1;var r=new bye((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[Cye]=n,!(Iye=r.then((function(){}))instanceof n)||!t&&Eye&&!kye})),Tye={CONSTRUCTOR:Pye,REJECTION_EVENT:kye,SUBCLASSING:Iye},Oye={},Lye=_he,Nye=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=Lye(t),this.reject=Lye(r)};Oye.f=function(e){return new Nye(e)};var Uye,Fye,Mye,Rye=nge,Dye=ige,jye=hAe,Qye=vAe,Hye=epe,Kye=Age,Vye=pge,zye=function(e){var t=gge(e),r=mge.f;yge&&t&&!t[vge]&&r(t,vge,{configurable:!0,get:function(){return this}})},qye=_he,Gye=GAe,Wye=$Ae,$ye=function(e,t){if(bge(t,e))return e;throw wge("Incorrect invocation")},Jye=eme,Xye=Wme.set,Yye=hye,Zye=function(e,t){var r=fye.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},eve=dye,tve=gye,rve=Mde,nve=mye,ive=Oye,ove="Promise",sve=Tye.CONSTRUCTOR,ave=Tye.REJECTION_EVENT,cve=Tye.SUBCLASSING,uve=rve.getterFor(ove),lve=rve.set,Ave=nve&&nve.prototype,hve=nve,fve=Ave,dve=jye.TypeError,pve=jye.document,gve=jye.process,mve=ive.f,yve=mve,vve=!!(pve&&pve.createEvent&&jye.dispatchEvent),bve="unhandledrejection",wve=function(e){var t;return!(!Wye(e)||!Gye(t=e.then))&&t},xve=function(e,t){var r,n,i,o=t.value,s=1==t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Cve(t),t.rejection=1),!0===a?r=o:(l&&l.enter(),r=a(o),l&&(l.exit(),i=!0)),r===e.promise?u(dve("Promise-chain cycle")):(n=wve(r))?Qye(n,r,c,u):c(r)):u(o)}catch(e){l&&!i&&l.exit(),u(e)}},_ve=function(e,t){e.notified||(e.notified=!0,Yye((function(){for(var r,n=e.reactions;r=n.get();)xve(r,e);e.notified=!1,t&&!e.rejection&&Eve(e)})))},Bve=function(e,t,r){var n,i;vve?((n=pve.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),jye.dispatchEvent(n)):n={promise:t,reason:r},!ave&&(i=jye["on"+e])?i(n):e===bve&&Zye("Unhandled promise rejection",r)},Eve=function(e){Qye(Xye,jye,(function(){var t,r=e.facade,n=e.value;if(Sve(e)&&(t=eve((function(){Dye?gve.emit("unhandledRejection",n,r):Bve(bve,r,n)})),e.rejection=Dye||Sve(e)?2:1,t.error))throw t.value}))},Sve=function(e){return 1!==e.rejection&&!e.parent},Cve=function(e){Qye(Xye,jye,(function(){var t=e.facade;Dye?gve.emit("rejectionHandled",t):Bve("rejectionhandled",t,e.value)}))},Ive=function(e,t,r){return function(n){e(t,n,r)}},kve=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,_ve(e,!0))},Pve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw dve("Promise can't be resolved itself");var n=wve(t);n?Yye((function(){var r={done:!1};try{Qye(n,t,Ive(Pve,r,e),Ive(kve,r,e))}catch(t){kve(r,t,e)}})):(e.value=t,e.state=1,_ve(e,!1))}catch(t){kve({done:!1},t,e)}}};if(sve&&(fve=(hve=function(e){$ye(this,fve),qye(e),Qye(Uye,this);var t=uve(this);try{e(Ive(Pve,t),Ive(kve,t))}catch(e){kve(t,e)}}).prototype,(Uye=function(e){lve(this,{type:ove,done:!1,notified:!1,parent:!1,reactions:new tve,rejection:!1,state:0,value:void 0})}).prototype=Hye(fve,"then",(function(e,t){var r=uve(this),n=mve(Jye(this,hve));return r.parent=!0,n.ok=!Gye(e)||e,n.fail=Gye(t)&&t,n.domain=Dye?gve.domain:void 0,0==r.state?r.reactions.add(n):Yye((function(){xve(n,r)})),n.promise})),Fye=function(){var e=new Uye,t=uve(e);this.promise=e,this.resolve=Ive(Pve,t),this.reject=Ive(kve,t)},ive.f=mve=function(e){return e===hve||undefined===e?new Fye(e):yve(e)},Gye(nve)&&Ave!==Object.prototype)){Mye=Ave.then,cve||Hye(Ave,"then",(function(e,t){var r=this;return new hve((function(e,t){Qye(Mye,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Ave.constructor}catch(e){}Kye&&Kye(Ave,fve)}Rye({global:!0,constructor:!0,wrap:!0,forced:sve},{Promise:hve}),Vye(hve,ove,!1),zye(ove);var Tve={},Ove=Tve,Lve=ofe("iterator"),Nve=Array.prototype,Uve=kge,Fve=Ehe,Mve=Tve,Rve=ofe("iterator"),Dve=function(e){if(null!=e)return Fve(e,Rve)||Fve(e,"@@iterator")||Mve[Uve(e)]},jve=vAe,Qve=_he,Hve=Ffe,Kve=vhe,Vve=Dve,zve=TypeError,qve=vAe,Gve=Ffe,Wve=Ehe,$ve=ume,Jve=vAe,Xve=Ffe,Yve=vhe,Zve=function(e){return void 0!==e&&(Ove.Array===e||Nve[Lve]===e)},ebe=ppe,tbe=ehe,rbe=function(e,t){var r=arguments.length<2?Vve(e):t;if(Qve(r))return Hve(jve(r,e));throw zve(Kve(e)+" is not iterable")},nbe=Dve,ibe=function(e,t,r){var n,i;Gve(e);try{if(!(n=Wve(e,"return"))){if("throw"===t)throw r;return r}n=qve(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Gve(n),r},obe=TypeError,sbe=function(e,t){this.stopped=e,this.result=t},abe=sbe.prototype,cbe=function(e,t,r){var n,i,o,s,a,c,u,l=r&&r.that,A=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),d=$ve(t,l),p=function(e){return n&&ibe(n,"normal",e),new sbe(!0,e)},g=function(e){return A?(Xve(e),f?d(e[0],e[1],p):d(e[0],e[1])):f?d(e,p):d(e)};if(h)n=e;else{if(!(i=nbe(e)))throw obe(Yve(e)+" is not iterable");if(Zve(i)){for(o=0,s=ebe(e);s>o;o++)if((a=g(e[o]))&&tbe(abe,a))return a;return new sbe(!1)}n=rbe(e,i)}for(c=n.next;!(u=Jve(c,n)).done;){try{a=g(u.value)}catch(e){ibe(n,"throw",e)}if("object"==typeof a&&a&&tbe(abe,a))return a}return new sbe(!1)},ube=ofe("iterator"),lbe=!1;try{var Abe=0,hbe={next:function(){return{done:!!Abe++}},return:function(){lbe=!0}};hbe[ube]=function(){return this},Array.from(hbe,(function(){throw 2}))}catch(e){}var fbe=mye,dbe=function(e,t){if(!t&&!lbe)return!1;var r=!1;try{var n={};n[ube]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},pbe=Tye.CONSTRUCTOR||!dbe((function(e){fbe.all(e).then(void 0,(function(){}))})),gbe=vAe,mbe=_he,ybe=Oye,vbe=dye,bbe=cbe;nge({target:"Promise",stat:!0,forced:pbe},{all:function(e){var t=this,r=ybe.f(t),n=r.resolve,i=r.reject,o=vbe((function(){var r=mbe(t.resolve),o=[],s=0,a=1;bbe(e,(function(e){var c=s++,u=!1;a++,gbe(r,t,e).then((function(e){u||(u=!0,o[c]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise}});var wbe=nge,xbe=Tye.CONSTRUCTOR,_be=mye,Bbe=ZAe,Ebe=GAe,Sbe=epe,Cbe=_be&&_be.prototype;if(wbe({target:"Promise",proto:!0,forced:xbe,real:!0},{catch:function(e){return this.then(void 0,e)}}),Ebe(_be)){var Ibe=Bbe("Promise").prototype.catch;Cbe.catch!==Ibe&&Sbe(Cbe,"catch",Ibe,{unsafe:!0})}var kbe=vAe,Pbe=_he,Tbe=Oye,Obe=dye,Lbe=cbe;nge({target:"Promise",stat:!0,forced:pbe},{race:function(e){var t=this,r=Tbe.f(t),n=r.reject,i=Obe((function(){var i=Pbe(t.resolve);Lbe(e,(function(e){kbe(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Nbe=vAe,Ube=Oye;nge({target:"Promise",stat:!0,forced:Tye.CONSTRUCTOR},{reject:function(e){var t=Ube.f(this);return Nbe(t.reject,void 0,e),t.promise}});var Fbe=Ffe,Mbe=$Ae,Rbe=Oye,Dbe=nge,jbe=Tye.CONSTRUCTOR,Qbe=function(e,t){if(Fbe(e),Mbe(t)&&t.constructor===e)return t;var r=Rbe.f(e);return(0,r.resolve)(t),r.promise};ZAe("Promise"),Dbe({target:"Promise",stat:!0,forced:jbe},{resolve:function(e){return Qbe(this,e)}});var Hbe={exports:{}};!function(e){function t(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var s=e.apply(r,n);function a(e){t(s,i,o,a,c,"next",e)}function c(e){t(s,i,o,a,c,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}(Hbe);var Kbe=tt(Hbe.exports),Vbe=kge,zbe=String,qbe=function(e){if("Symbol"===Vbe(e))throw TypeError("Cannot convert a Symbol value to a string");return zbe(e)},Gbe=Ffe,Wbe=function(){var e=Gbe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$be=dAe,Jbe=hAe.RegExp,Xbe=$be((function(){var e=Jbe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ybe=Xbe||$be((function(){return!Jbe("a","y").sticky})),Zbe=Xbe||$be((function(){var e=Jbe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ewe={BROKEN_CARET:Zbe,MISSED_STICKY:Ybe,UNSUPPORTED_Y:Xbe},twe={},rwe=Spe,nwe=Cpe,iwe=Object.keys||function(e){return rwe(e,nwe)},owe=pAe,swe=Ofe,awe=Tfe,cwe=Ffe,uwe=qAe,lwe=iwe;twe.f=owe&&!swe?Object.defineProperties:function(e,t){cwe(e);for(var r,n=uwe(t),i=lwe(t),o=i.length,s=0;o>s;)awe.f(e,r=i[s++],n[r]);return e};var Awe,hwe=Ffe,fwe=twe,dwe=Cpe,pwe=vde,gwe=lme,mwe=vfe,ywe=yde("IE_PROTO"),vwe=function(){},bwe=function(e){return"<script>"+e+"</"+"script>"},wwe=function(e){e.write(bwe("")),e.close();var t=e.parentWindow.Object;return e=null,t},xwe=function(){try{Awe=new ActiveXObject("htmlfile")}catch(e){}var e,t;xwe="undefined"!=typeof document?document.domain&&Awe?wwe(Awe):((t=mwe("iframe")).style.display="none",gwe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bwe("document.F=Object")),e.close(),e.F):wwe(Awe);for(var r=dwe.length;r--;)delete xwe.prototype[dwe[r]];return xwe()};pwe[ywe]=!0;var _we,Bwe,Ewe=Object.create||function(e,t){var r;return null!==e?(vwe.prototype=hwe(e),r=new vwe,vwe.prototype=null,r[ywe]=e):r=xwe(),void 0===t?r:fwe.f(r,t)},Swe=dAe,Cwe=hAe.RegExp,Iwe=Swe((function(){var e=Cwe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kwe=dAe,Pwe=hAe.RegExp,Twe=kwe((function(){var e=Pwe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Owe=vAe,Lwe=OAe,Nwe=qbe,Uwe=Wbe,Fwe=ewe,Mwe=Phe.exports,Rwe=Ewe,Dwe=Mde.get,jwe=Iwe,Qwe=Twe,Hwe=Mwe("native-string-replace",String.prototype.replace),Kwe=RegExp.prototype.exec,Vwe=Kwe,zwe=Lwe("".charAt),qwe=Lwe("".indexOf),Gwe=Lwe("".replace),Wwe=Lwe("".slice),$we=(Bwe=/b*/g,Owe(Kwe,_we=/a/,"a"),Owe(Kwe,Bwe,"a"),0!==_we.lastIndex||0!==Bwe.lastIndex),Jwe=Fwe.BROKEN_CARET,Xwe=void 0!==/()??/.exec("")[1];($we||Xwe||Jwe||jwe||Qwe)&&(Vwe=function(e){var t,r,n,i,o,s,a,c=this,u=Dwe(c),l=Nwe(e),A=u.raw;if(A)return A.lastIndex=c.lastIndex,t=Owe(Vwe,A,l),c.lastIndex=A.lastIndex,t;var h=u.groups,f=Jwe&&c.sticky,d=Owe(Uwe,c),p=c.source,g=0,m=l;if(f&&(d=Gwe(d,"y",""),-1===qwe(d,"g")&&(d+="g"),m=Wwe(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==zwe(l,c.lastIndex-1))&&(p="(?: "+p+")",m=" "+m,g++),r=new RegExp("^(?:"+p+")",d)),Xwe&&(r=new RegExp("^"+p+"$(?!\\s)",d)),$we&&(n=c.lastIndex),i=Owe(Kwe,f?r:c,m),f?i?(i.input=Wwe(i.input,g),i[0]=Wwe(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:$we&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),Xwe&&i&&i.length>1&&Owe(Hwe,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=s=Rwe(null),o=0;o<h.length;o++)s[(a=h[o])[0]]=i[a[1]];return i});var Ywe=Vwe;nge({target:"RegExp",proto:!0,forced:/./.exec!==Ywe},{exec:Ywe});var Zwe=OAe,exe=epe,txe=Ywe,rxe=dAe,nxe=ofe,ixe=Jfe,oxe=nxe("species"),sxe=RegExp.prototype,axe=function(e,t,r,n){var i=nxe(e),o=!rxe((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),s=o&&!rxe((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[oxe]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!s||r){var a=Zwe(/./[i]),c=t(i,""[e],(function(e,t,r,n,i){var s=Zwe(e),c=t.exec;return c===txe||c===sxe.exec?o&&!i?{done:!0,value:a(t,r,n)}:{done:!0,value:s(r,t,n)}:{done:!1}}));exe(String.prototype,e,c[0]),exe(sxe,i,c[1])}n&&ixe(sxe[i],"sham",!0)},cxe=OAe,uxe=spe,lxe=qbe,Axe=KAe,hxe=cxe("".charAt),fxe=cxe("".charCodeAt),dxe=cxe("".slice),pxe=function(e){return function(t,r){var n,i,o=lxe(Axe(t)),s=uxe(r),a=o.length;return s<0||s>=a?e?"":void 0:(n=fxe(o,s))<55296||n>56319||s+1===a||(i=fxe(o,s+1))<56320||i>57343?e?hxe(o,s):n:e?dxe(o,s,s+2):i-56320+(n-55296<<10)+65536}},gxe={codeAt:pxe(!1),charAt:pxe(!0)}.charAt,mxe=function(e,t,r){return t+(r?gxe(e,t).length:1)},yxe=vAe,vxe=Ffe,bxe=GAe,wxe=FAe,xxe=Ywe,_xe=TypeError,Bxe=function(e,t){var r=e.exec;if(bxe(r)){var n=yxe(r,e,t);return null!==n&&vxe(n),n}if("RegExp"===wxe(e))return yxe(xxe,e,t);throw _xe("RegExp#exec called on incompatible receiver")},Exe=vAe,Sxe=Ffe,Cxe=fpe,Ixe=qbe,kxe=KAe,Pxe=Ehe,Txe=mxe,Oxe=Bxe;axe("match",(function(e,t,r){return[function(t){var r=kxe(this),n=null==t?void 0:Pxe(t,e);return n?Exe(n,t,r):new RegExp(t)[e](Ixe(r))},function(e){var n=Sxe(this),i=Ixe(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return Oxe(n,i);var s=n.unicode;n.lastIndex=0;for(var a,c=[],u=0;null!==(a=Oxe(n,i));){var l=Ixe(a[0]);c[u]=l,""===l&&(n.lastIndex=Txe(i,Cxe(n.lastIndex),s)),u++}return 0===u?null:c}]}));var Lxe=OAe,Nxe=jhe,Uxe=Math.floor,Fxe=Lxe("".charAt),Mxe=Lxe("".replace),Rxe=Lxe("".slice),Dxe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jxe=/\$([$&'`]|\d{1,2})/g,Qxe=ome,Hxe=vAe,Kxe=OAe,Vxe=axe,zxe=dAe,qxe=Ffe,Gxe=GAe,Wxe=spe,$xe=fpe,Jxe=qbe,Xxe=KAe,Yxe=mxe,Zxe=Ehe,e_e=function(e,t,r,n,i,o){var s=r+e.length,a=n.length,c=jxe;return void 0!==i&&(i=Nxe(i),c=Dxe),Mxe(o,c,(function(o,c){var u;switch(Fxe(c,0)){case"$":return"$";case"&":return e;case"`":return Rxe(t,0,r);case"'":return Rxe(t,s);case"<":u=i[Rxe(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var A=Uxe(l/10);return 0===A?o:A<=a?void 0===n[A-1]?Fxe(c,1):n[A-1]+Fxe(c,1):o}u=n[l-1]}return void 0===u?"":u}))},t_e=Bxe,r_e=ofe("replace"),n_e=Math.max,i_e=Math.min,o_e=Kxe([].concat),s_e=Kxe([].push),a_e=Kxe("".indexOf),c_e=Kxe("".slice),u_e=function(e){return void 0===e?e:String(e)},l_e="$0"==="a".replace(/./,"$0"),A_e=!!/./[r_e]&&""===/./[r_e]("a","$0"),h_e=!zxe((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Vxe("replace",(function(e,t,r){var n=A_e?"$":"$0";return[function(e,r){var n=Xxe(this),i=null==e?void 0:Zxe(e,r_e);return i?Hxe(i,e,n,r):Hxe(t,Jxe(n),e,r)},function(e,i){var o=qxe(this),s=Jxe(e);if("string"==typeof i&&-1===a_e(i,n)&&-1===a_e(i,"$<")){var a=r(t,o,s,i);if(a.done)return a.value}var c=Gxe(i);c||(i=Jxe(i));var u=o.global;if(u){var l=o.unicode;o.lastIndex=0}for(var A=[];;){var h=t_e(o,s);if(null===h)break;if(s_e(A,h),!u)break;""===Jxe(h[0])&&(o.lastIndex=Yxe(s,$xe(o.lastIndex),l))}for(var f="",d=0,p=0;p<A.length;p++){for(var g=Jxe((h=A[p])[0]),m=n_e(i_e(Wxe(h.index),s.length),0),y=[],v=1;v<h.length;v++)s_e(y,u_e(h[v]));var b=h.groups;if(c){var w=o_e([g],y,m,s);void 0!==b&&s_e(w,b);var x=Jxe(Qxe(i,void 0,w))}else x=e_e(g,s,m,y,b,i);m>=d&&(f+=c_e(s,d,m)+x,d=m+g.length)}return f+c_e(s,d)}]}),!h_e||!l_e||A_e);var f_e,d_e=$Ae,p_e=FAe,g_e=ofe("match"),m_e=function(e){var t;return d_e(e)&&(void 0!==(t=e[g_e])?!!t:"RegExp"==p_e(e))},y_e=m_e,v_e=TypeError,b_e=function(e){if(y_e(e))throw v_e("The method doesn't accept regular expressions");return e},w_e=ofe("match"),x_e=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[w_e]=!1,"/./"[e](t)}catch(e){}}return!1},__e=nge,B_e=OAe,E_e=fAe.f,S_e=fpe,C_e=qbe,I_e=b_e,k_e=KAe,P_e=x_e,T_e=B_e("".startsWith),O_e=B_e("".slice),L_e=Math.min,N_e=P_e("startsWith");__e({target:"String",proto:!0,forced:!!(N_e||(f_e=E_e(String.prototype,"startsWith"),!f_e||f_e.writable))&&!N_e},{startsWith:function(e){var t=C_e(k_e(this));I_e(e);var r=S_e(L_e(arguments.length>1?arguments[1]:void 0,t.length)),n=C_e(e);return T_e?T_e(t,n,r):O_e(t,r,r+n.length)===n}});var U_e=ofe,F_e=Ewe,M_e=Tfe.f,R_e=U_e("unscopables"),D_e=Array.prototype;null==D_e[R_e]&&M_e(D_e,R_e,{configurable:!0,value:F_e(null)});var j_e,Q_e,H_e,K_e=!dAe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),V_e=Khe,z_e=GAe,q_e=jhe,G_e=K_e,W_e=yde("IE_PROTO"),$_e=Object,J_e=$_e.prototype,X_e=G_e?$_e.getPrototypeOf:function(e){var t=q_e(e);if(V_e(t,W_e))return t[W_e];var r=t.constructor;return z_e(r)&&t instanceof r?r.prototype:t instanceof $_e?J_e:null},Y_e=dAe,Z_e=GAe,eBe=X_e,tBe=epe,rBe=ofe("iterator"),nBe=!1;[].keys&&("next"in(H_e=[].keys())?(Q_e=eBe(eBe(H_e)))!==Object.prototype&&(j_e=Q_e):nBe=!0);var iBe=null==j_e||Y_e((function(){var e={};return j_e[rBe].call(e)!==e}));iBe&&(j_e={}),Z_e(j_e[rBe])||tBe(j_e,rBe,(function(){return this}));var oBe={IteratorPrototype:j_e,BUGGY_SAFARI_ITERATORS:nBe},sBe=oBe.IteratorPrototype,aBe=Ewe,cBe=SAe,uBe=pge,lBe=Tve,ABe=function(){return this},hBe=nge,fBe=vAe,dBe=GAe,pBe=function(e,t,r,n){var i=t+" Iterator";return e.prototype=aBe(sBe,{next:cBe(+!n,r)}),uBe(e,i,!1),lBe[i]=ABe,e},gBe=X_e,mBe=Age,yBe=pge,vBe=Jfe,bBe=epe,wBe=Tve,xBe=nde.PROPER,_Be=nde.CONFIGURABLE,BBe=oBe.IteratorPrototype,EBe=oBe.BUGGY_SAFARI_ITERATORS,SBe=ofe("iterator"),CBe="keys",IBe="values",kBe="entries",PBe=function(){return this},TBe=qAe,OBe=function(e){D_e[R_e][e]=!0},LBe=Tve,NBe=Mde,UBe=Tfe.f,FBe=function(e,t,r,n,i,o,s){pBe(r,t,n);var a,c,u,l=function(e){if(e===i&&p)return p;if(!EBe&&e in f)return f[e];switch(e){case CBe:case IBe:case kBe:return function(){return new r(this,e)}}return function(){return new r(this)}},A=t+" Iterator",h=!1,f=e.prototype,d=f[SBe]||f["@@iterator"]||i&&f[i],p=!EBe&&d||l(i),g="Array"==t&&f.entries||d;if(g&&(a=gBe(g.call(new e)))!==Object.prototype&&a.next&&(gBe(a)!==BBe&&(mBe?mBe(a,BBe):dBe(a[SBe])||bBe(a,SBe,PBe)),yBe(a,A,!0)),xBe&&i==IBe&&d&&d.name!==IBe&&(_Be?vBe(f,"name",IBe):(h=!0,p=function(){return fBe(d,this)})),i)if(c={values:l(IBe),keys:o?p:l(CBe),entries:l(kBe)},s)for(u in c)(EBe||h||!(u in f))&&bBe(f,u,c[u]);else hBe({target:t,proto:!0,forced:EBe||h},c);return f[SBe]!==p&&bBe(f,SBe,p,{name:i}),wBe[t]=p,c},MBe=pAe,RBe="Array Iterator",DBe=NBe.set,jBe=NBe.getterFor(RBe),QBe=FBe(Array,"Array",(function(e,t){DBe(this,{type:RBe,target:TBe(e),index:0,kind:t})}),(function(){var e=jBe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),HBe=LBe.Arguments=LBe.Array;if(OBe("keys"),OBe("values"),OBe("entries"),MBe&&"values"!==HBe.name)try{UBe(HBe,"name",{value:"values"})}catch(e){}var KBe=vfe("span").classList,VBe=KBe&&KBe.constructor&&KBe.constructor.prototype,zBe=VBe===Object.prototype?void 0:VBe,qBe=hAe,GBe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},WBe=zBe,$Be=QBe,JBe=Jfe,XBe=ofe,YBe=XBe("iterator"),ZBe=XBe("toStringTag"),eEe=$Be.values,tEe=function(e,t){if(e){if(e[YBe]!==eEe)try{JBe(e,YBe,eEe)}catch(t){e[YBe]=eEe}if(e[ZBe]||JBe(e,ZBe,t),GBe[t])for(var r in $Be)if(e[r]!==$Be[r])try{JBe(e,r,$Be[r])}catch(t){e[r]=$Be[r]}}};for(var rEe in GBe)tEe(qBe[rEe]&&qBe[rEe].prototype,rEe);tEe(WBe,"DOMTokenList");var nEe={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(nEe);var iEe=tt(nEe.exports),oEe=_he,sEe=jhe,aEe=QAe,cEe=ppe,uEe=TypeError,lEe=function(e){return function(t,r,n,i){oEe(r);var o=sEe(t),s=aEe(o),a=cEe(o),c=e?a-1:0,u=e?-1:1;if(n<2)for(;;){if(c in s){i=s[c],c+=u;break}if(c+=u,e?c<0:a<=c)throw uEe("Reduce of empty array with no initial value")}for(;e?c>=0:a>c;c+=u)c in s&&(i=r(i,s[c],c,o));return i}},AEe={left:lEe(!1),right:lEe(!0)},hEe=dAe,fEe=function(e,t){var r=[][e];return!!r&&hEe((function(){r.call(null,t||function(){return 1},1)}))},dEe=AEe.left,pEe=che,gEe=ige;nge({target:"Array",proto:!0,forced:!fEe("reduce")||!gEe&&pEe>79&&pEe<83},{reduce:function(e){var t=arguments.length;return dEe(this,e,t,t>1?arguments[1]:void 0)}});var mEe=nge,yEe=OAe,vEe=fAe.f,bEe=fpe,wEe=qbe,xEe=b_e,_Ee=KAe,BEe=x_e,EEe=yEe("".endsWith),SEe=yEe("".slice),CEe=Math.min,IEe=BEe("endsWith"),kEe=!IEe&&!!function(){var e=vEe(String.prototype,"endsWith");return e&&!e.writable}();mEe({target:"String",proto:!0,forced:!kEe&&!IEe},{endsWith:function(e){var t=wEe(_Ee(this));xEe(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:CEe(bEe(r),n),o=wEe(e);return EEe?EEe(t,o,i):SEe(t,i-o.length,i)===o}});var PEe=pfe,TEe=Tfe,OEe=SAe,LEe=lpe,NEe=ppe,UEe=function(e,t,r){var n=PEe(t);n in e?TEe.f(e,n,OEe(0,r)):e[n]=r},FEe=Array,MEe=Math.max,REe=ome,DEe=vAe,jEe=OAe,QEe=axe,HEe=m_e,KEe=Ffe,VEe=KAe,zEe=eme,qEe=mxe,GEe=fpe,WEe=qbe,$Ee=Ehe,JEe=function(e,t,r){for(var n=NEe(e),i=LEe(t,n),o=LEe(void 0===r?n:r,n),s=FEe(MEe(o-i,0)),a=0;i<o;i++,a++)UEe(s,a,e[i]);return s.length=a,s},XEe=Bxe,YEe=Ywe,ZEe=dAe,eSe=ewe.UNSUPPORTED_Y,tSe=4294967295,rSe=Math.min,nSe=[].push,iSe=jEe(/./.exec),oSe=jEe(nSe),sSe=jEe("".slice),aSe=!ZEe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));QEe("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=WEe(VEe(this)),i=void 0===r?tSe:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!HEe(e))return DEe(t,n,e,i);for(var o,s,a,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,A=new RegExp(e.source,u+"g");(o=DEe(YEe,A,n))&&!((s=A.lastIndex)>l&&(oSe(c,sSe(n,l,o.index)),o.length>1&&o.index<n.length&&REe(nSe,c,JEe(o,1)),a=o[0].length,l=s,c.length>=i));)A.lastIndex===o.index&&A.lastIndex++;return l===n.length?!a&&iSe(A,"")||oSe(c,""):oSe(c,sSe(n,l)),c.length>i?JEe(c,0,i):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:DEe(t,this,e,r)}:t,[function(t,r){var i=VEe(this),o=null==t?void 0:$Ee(t,e);return o?DEe(o,t,i,r):DEe(n,WEe(i),t,r)},function(e,i){var o=KEe(this),s=WEe(e),a=r(n,o,s,i,n!==t);if(a.done)return a.value;var c=zEe(o,RegExp),u=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(eSe?"g":"y"),A=new c(eSe?"^(?:"+o.source+")":o,l),h=void 0===i?tSe:i>>>0;if(0===h)return[];if(0===s.length)return null===XEe(A,s)?[s]:[];for(var f=0,d=0,p=[];d<s.length;){A.lastIndex=eSe?0:d;var g,m=XEe(A,eSe?sSe(s,d):s);if(null===m||(g=rSe(GEe(A.lastIndex+(eSe?d:0)),s.length))===f)d=qEe(s,d,u);else{if(oSe(p,sSe(s,f,d)),p.length===h)return p;for(var y=1;y<=m.length-1;y++)if(oSe(p,m[y]),p.length===h)return p;d=f=g}}return oSe(p,sSe(s,f)),p}]}),!aSe,eSe);var cSe={exports:{}},uSe={exports:{}};(function(){var e,t,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?uSe.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(uSe.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var e;return 1e9*(e=t())[0]+e[1]},n=e(),o=1e9*process.uptime(),i=n-o):Date.now?(uSe.exports=function(){return Date.now()-r},r=Date.now()):(uSe.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(et);for(var lSe=uSe.exports,ASe="undefined"==typeof window?et:window,hSe=["moz","webkit"],fSe="AnimationFrame",dSe=ASe["request"+fSe],pSe=ASe["cancel"+fSe]||ASe["cancelRequest"+fSe],gSe=0;!dSe&&gSe<hSe.length;gSe++)dSe=ASe[hSe[gSe]+"Request"+fSe],pSe=ASe[hSe[gSe]+"Cancel"+fSe]||ASe[hSe[gSe]+"CancelRequest"+fSe];if(!dSe||!pSe){var mSe=0,ySe=0,vSe=[];dSe=function(e){if(0===vSe.length){var t=lSe(),r=Math.max(0,16.666666666666668-(t-mSe));mSe=r+t,setTimeout((function(){var e=vSe.slice(0);vSe.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(mSe)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return vSe.push({handle:++ySe,callback:e,cancelled:!1}),ySe},pSe=function(e){for(var t=0;t<vSe.length;t++)vSe[t].handle===e&&(vSe[t].cancelled=!0)}}cSe.exports=function(e){return dSe.call(ASe,e)},cSe.exports.cancel=function(){pSe.apply(ASe,arguments)},cSe.exports.polyfill=function(e){e||(e=ASe),e.requestAnimationFrame=dSe,e.cancelAnimationFrame=pSe};var bSe="\t\n\v\f\r \u2028\u2029\ufeff",wSe=KAe,xSe=qbe,_Se=OAe("".replace),BSe="[\t\n\v\f\r \u2028\u2029\ufeff]",ESe=RegExp("^"+BSe+BSe+"*"),SSe=RegExp(BSe+BSe+"*$"),CSe=function(e){return function(t){var r=xSe(wSe(t));return 1&e&&(r=_Se(r,ESe,"")),2&e&&(r=_Se(r,SSe,"")),r}},ISe={start:CSe(1),end:CSe(2),trim:CSe(3)},kSe=nde.PROPER,PSe=dAe,TSe=bSe,OSe=ISe.trim;nge({target:"String",proto:!0,forced:function(e){return PSe((function(){return!!TSe[e]()||"
"!=="
"[e]()||kSe&&TSe[e].name!==e}))}("trim")},{trim:function(){return OSe(this)}});var LSe=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,s=i.exec(e);if(s){var a=o(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r},this.getHelpXML=function(){for(var e=new Array,n=0;n<r.length;n++)for(var i=r[n].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var s in t)e[e.length]=s;var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(n=0;n<e.length;n++)try{var c=document.createElement("li"),u=new RGBColor(e[n]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var A=document.createTextNode(" "+e[n]+" -> "+u.toRGB()+" -> "+u.toHex());c.appendChild(l),c.appendChild(A),a.appendChild(c)}catch(e){}return a}},NSe=nge,USe=bpe.indexOf,FSe=fEe,MSe=OAe([].indexOf),RSe=!!MSe&&1/MSe([1],1,-0)<0,DSe=FSe("indexOf");NSe({target:"Array",proto:!0,forced:RSe||!DSe},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return RSe?MSe(this,e,t)||0:USe(this,e,t)}});var jSe=nge,QSe=b_e,HSe=KAe,KSe=qbe,VSe=x_e,zSe=OAe("".indexOf);jSe({target:"String",proto:!0,forced:!VSe("includes")},{includes:function(e){return!!~zSe(KSe(HSe(this)),KSe(QSe(e)),arguments.length>1?arguments[1]:void 0)}});var qSe=FAe,GSe=nge,WSe=Array.isArray||function(e){return"Array"==qSe(e)},$Se=OAe([].reverse),JSe=[1,2];GSe({target:"Array",proto:!0,forced:String(JSe)===String(JSe.reverse())},{reverse:function(){return WSe(this)&&(this.length=this.length),$Se(this)}});
|
|
1186
|
+
/*! @license DOMPurify 2.3.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.8/LICENSE */!function(e,t){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,i,o){return n=r()?Reflect.construct:function(e,r,n){var i=[null];i.push.apply(i,r);var o=new(Function.bind.apply(e,i));return n&&t(o,n.prototype),o},n.apply(null,arguments)}function i(e){return o(e)||s(e)||a(e)||u()}function o(e){if(Array.isArray(e))return c(e)}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,A=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,p=Object.freeze,g=Object.seal,m=Object.create,y="undefined"!=typeof Reflect&&Reflect,v=y.apply,b=y.construct;v||(v=function(e,t,r){return e.apply(t,r)}),p||(p=function(e){return e}),g||(g=function(e){return e}),b||(b=function(e,t){return n(e,i(t))});var w=T(Array.prototype.forEach),x=T(Array.prototype.pop),_=T(Array.prototype.push),B=T(String.prototype.toLowerCase),E=T(String.prototype.match),S=T(String.prototype.replace),C=T(String.prototype.indexOf),I=T(String.prototype.trim),k=T(RegExp.prototype.test),P=O(TypeError);function T(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return v(e,t,n)}}function O(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return b(e,r)}}function L(e,t){A&&A(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var i=B(n);i!==n&&(h(t)||(t[r]=i),n=i)}e[n]=!0}return e}function N(e){var t,r=m(null);for(t in e)v(l,e,[t])&&(r[t]=e[t]);return r}function U(e,t){for(;null!==e;){var r=d(e,t);if(r){if(r.get)return T(r.get);if("function"==typeof r.value)return T(r.value)}e=f(e)}function n(e){return console.warn("fallback value for",e),null}return n}var F=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Q=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=p(["#text"]),K=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),V=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=g(/<%[\w\W]*|[\w\W]*%>/gm),$=g(/^data-[\-\w.\u00B7-\uFFFF]/),J=g(/^aria-[\-\w]+$/),X=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=g(/^(?:\w+script|data):/i),Z=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},re=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ne(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),r=function(e){return ne(e)};if(r.version="2.3.8",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n=t.document,o=t.document,s=t.DocumentFragment,a=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,A=t.NamedNodeMap,h=void 0===A?t.NamedNodeMap||t.MozNamedAttrMap:A,f=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,m=u.prototype,y=U(m,"cloneNode"),v=U(m,"nextSibling"),b=U(m,"childNodes"),T=U(m,"parentNode");if("function"==typeof a){var O=o.createElement("template");O.content&&O.content.ownerDocument&&(o=O.content.ownerDocument)}var ie=re(g,n),oe=ie?ie.createHTML(""):"",se=o,ae=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,le=se.getElementsByTagName,Ae=n.importNode,he={};try{he=N(o).documentMode?o.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof T&&ae&&void 0!==ae.createHTMLDocument&&9!==he;var de,pe,ge=G,me=W,ye=$,ve=J,be=Y,we=Z,xe=X,_e=null,Be=L({},[].concat(i(F),i(M),i(R),i(j),i(H))),Ee=null,Se=L({},[].concat(i(K),i(V),i(z),i(q))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,ke=null,Pe=!0,Te=!0,Oe=!1,Le=!1,Ne=!1,Ue=!1,Fe=!1,Me=!1,Re=!1,De=!1,je=!0,Qe=!0,He=!1,Ke={},Ve=null,ze=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ge=L({},["audio","video","img","source","image","track"]),We=null,$e=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ze=Ye,et=!1,tt=["application/xhtml+xml","text/html"],rt="text/html",nt=null,it=o.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){nt&&nt===t||(t&&"object"===e(t)||(t={}),t=N(t),_e="ALLOWED_TAGS"in t?L({},t.ALLOWED_TAGS):Be,Ee="ALLOWED_ATTR"in t?L({},t.ALLOWED_ATTR):Se,We="ADD_URI_SAFE_ATTR"in t?L(N($e),t.ADD_URI_SAFE_ATTR):$e,qe="ADD_DATA_URI_TAGS"in t?L(N(Ge),t.ADD_DATA_URI_TAGS):Ge,Ve="FORBID_CONTENTS"in t?L({},t.FORBID_CONTENTS):ze,Ie="FORBID_TAGS"in t?L({},t.FORBID_TAGS):{},ke="FORBID_ATTR"in t?L({},t.FORBID_ATTR):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,Te=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Me=t.RETURN_DOM||!1,Re=t.RETURN_DOM_FRAGMENT||!1,De=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,je=!1!==t.SANITIZE_DOM,Qe=!1!==t.KEEP_CONTENT,He=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,Ze=t.NAMESPACE||Ye,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de=de=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?rt:t.PARSER_MEDIA_TYPE,pe="application/xhtml+xml"===de?function(e){return e}:B,Le&&(Te=!1),Re&&(Me=!0),Ke&&(_e=L({},i(H)),Ee=[],!0===Ke.html&&(L(_e,F),L(Ee,K)),!0===Ke.svg&&(L(_e,M),L(Ee,V),L(Ee,q)),!0===Ke.svgFilters&&(L(_e,R),L(Ee,V),L(Ee,q)),!0===Ke.mathMl&&(L(_e,j),L(Ee,z),L(Ee,q))),t.ADD_TAGS&&(_e===Be&&(_e=N(_e)),L(_e,t.ADD_TAGS)),t.ADD_ATTR&&(Ee===Se&&(Ee=N(Ee)),L(Ee,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&L(We,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(Ve===ze&&(Ve=N(Ve)),L(Ve,t.FORBID_CONTENTS)),Qe&&(_e["#text"]=!0),Ne&&L(_e,["html","head","body"]),_e.table&&(L(_e,["tbody"]),delete Ie.tbody),p&&p(t),nt=t)},at=L({},["mi","mo","mn","ms","mtext"]),ct=L({},["foreignobject","desc","title","annotation-xml"]),ut=L({},["title","style","font","a","script"]),lt=L({},M);L(lt,R),L(lt,D);var At=L({},j);L(At,Q);var ht=function(e){var t=T(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var r=B(e.tagName),n=B(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Ye?"svg"===r:t.namespaceURI===Je?"svg"===r&&("annotation-xml"===n||at[n]):Boolean(lt[r]):e.namespaceURI===Je?t.namespaceURI===Ye?"math"===r:t.namespaceURI===Xe?"math"===r&&ct[n]:Boolean(At[r]):e.namespaceURI===Ye&&!(t.namespaceURI===Xe&&!ct[n])&&!(t.namespaceURI===Je&&!at[n])&&!At[r]&&(ut[r]||!lt[r])},ft=function(e){_(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},dt=function(e,t){try{_(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Me||Re)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){var t,r;if(Fe)e="<remove></remove>"+e;else{var n=E(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===de&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ie?ie.createHTML(e):e;if(Ze===Ye)try{t=(new d).parseFromString(i,de)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?"":i}catch(e){}}var s=t.body||t.documentElement;return e&&r&&s.insertBefore(o.createTextNode(r),s.childNodes[0]||null),Ze===Ye?le.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:s},gt=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},vt=function(e,t,n){fe[e]&&w(fe[e],(function(e){e.call(r,t,n,nt)}))},bt=function(e){var t;if(vt("beforeSanitizeElements",e,null),mt(e))return ft(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var n=pe(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:_e}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===n&&k(/<template/i,e.innerHTML))return ft(e),!0;if(!_e[n]||Ie[n]){if(!Ie[n]&&xt(n)){if(Ce.tagNameCheck instanceof RegExp&&k(Ce.tagNameCheck,n))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))return!1}if(Qe&&!Ve[n]){var i=T(e)||e.parentNode,o=b(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(y(o[s],!0),v(e))}return ft(e),!0}return e instanceof u&&!ht(e)?(ft(e),!0):"noscript"!==n&&"noembed"!==n||!k(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=S(t,ge," "),t=S(t,me," "),e.textContent!==t&&(_(r.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},wt=function(e,t,r){if(je&&("id"===t||"name"===t)&&(r in o||r in it))return!1;if(Te&&!ke[t]&&k(ye,t));else if(Pe&&k(ve,t));else if(!Ee[t]||ke[t]){if(!(xt(e)&&(Ce.tagNameCheck instanceof RegExp&&k(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&k(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&k(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(We[t]);else if(k(xe,S(r,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(r,"data:")||!qe[e])if(Oe&&!k(be,S(r,we,"")));else if(r)return!1;return!0},xt=function(e){return e.indexOf("-")>0},_t=function(e){var t,n,i,o;vt("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(o=s.length;o--;){var c=t=s[o],u=c.name,l=c.namespaceURI;if(n="value"===u?t.value:I(t.value),i=pe(u),a.attrName=i,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,a),n=a.attrValue,!a.forceKeepAttr&&(dt(u,e),a.keepAttr))if(k(/\/>/i,n))dt(u,e);else{Le&&(n=S(n,ge," "),n=S(n,me," "));var A=pe(e.nodeName);if(wt(A,i,n))try{l?e.setAttributeNS(l,u,n):e.setAttribute(u,n),x(r.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)}},Bt=function e(t){var r,n=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)vt("uponSanitizeShadowNode",r,null),bt(r)||(r.content instanceof s&&e(r.content),_t(r));vt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(i,o){var a,u,l,A,h;if((et=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!yt(i)){if("function"!=typeof i.toString)throw P("toString is not a function");if("string"!=typeof(i=i.toString()))throw P("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof i)return t.toStaticHTML(i);if(yt(i))return t.toStaticHTML(i.outerHTML)}return i}if(Ue||st(o),r.removed=[],"string"==typeof i&&(He=!1),He){if(i.nodeName){var f=pe(i.nodeName);if(!_e[f]||Ie[f])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof c)1===(u=(a=pt("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!Me&&!Le&&!Ne&&-1===i.indexOf("<"))return ie&&De?ie.createHTML(i):i;if(!(a=pt(i)))return Me?null:De?oe:""}a&&Fe&&ft(a.firstChild);for(var d=gt(He?i:a);l=d.nextNode();)3===l.nodeType&&l===A||bt(l)||(l.content instanceof s&&Bt(l.content),_t(l),A=l);if(A=null,He)return i;if(Me){if(Re)for(h=ue.call(a.ownerDocument);a.firstChild;)h.appendChild(a.firstChild);else h=a;return Ee.shadowroot&&(h=Ae.call(n,h,!0)),h}var p=Ne?a.outerHTML:a.innerHTML;return Ne&&_e["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&k(ee,a.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+p),Le&&(p=S(p,ge," "),p=S(p,me," ")),ie&&De?ie.createHTML(p):p},r.setConfig=function(e){st(e),Ue=!0},r.clearConfig=function(){nt=null,Ue=!1},r.isValidAttribute=function(e,t,r){nt||st({});var n=pe(e),i=pe(t);return wt(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],_(fe[e],t))},r.removeHook=function(e){if(fe[e])return x(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}return ne()}()}(uAe);var lAe=e({__proto__:null,default:uAe.exports},[uAe.exports]),AAe=function(e){return e&&e.Math==Math&&e},hAe=AAe("object"==typeof globalThis&&globalThis)||AAe("object"==typeof window&&window)||AAe("object"==typeof self&&self)||AAe("object"==typeof et&&et)||function(){return this}()||Function("return this")(),fAe={},dAe=function(e){try{return!!e()}catch(e){return!0}},pAe=!dAe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gAe=!dAe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),mAe=gAe,yAe=Function.prototype.call,vAe=mAe?yAe.bind(yAe):function(){return yAe.apply(yAe,arguments)},bAe={},wAe={}.propertyIsEnumerable,xAe=Object.getOwnPropertyDescriptor,_Ae=xAe&&!wAe.call({1:2},1);bAe.f=_Ae?function(e){var t=xAe(this,e);return!!t&&t.enumerable}:wAe;var BAe,EAe,SAe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},CAe=gAe,IAe=Function.prototype,kAe=IAe.bind,PAe=IAe.call,TAe=CAe&&kAe.bind(PAe,PAe),OAe=CAe?function(e){return e&&TAe(e)}:function(e){return e&&function(){return PAe.apply(e,arguments)}},LAe=OAe,NAe=LAe({}.toString),UAe=LAe("".slice),FAe=function(e){return UAe(NAe(e),8,-1)},MAe=dAe,RAe=FAe,DAe=Object,jAe=OAe("".split),QAe=MAe((function(){return!DAe("z").propertyIsEnumerable(0)}))?function(e){return"String"==RAe(e)?jAe(e,""):DAe(e)}:DAe,HAe=TypeError,KAe=function(e){if(null==e)throw HAe("Can't call method on "+e);return e},VAe=QAe,zAe=KAe,qAe=function(e){return VAe(zAe(e))},GAe=function(e){return"function"==typeof e},WAe=GAe,$Ae=function(e){return"object"==typeof e?null!==e:WAe(e)},JAe=hAe,XAe=GAe,YAe=function(e){return XAe(e)?e:void 0},ZAe=function(e,t){return arguments.length<2?YAe(JAe[e]):JAe[e]&&JAe[e][t]},ehe=OAe({}.isPrototypeOf),the=ZAe("navigator","userAgent")||"",rhe=hAe,nhe=the,ihe=rhe.process,ohe=rhe.Deno,she=ihe&&ihe.versions||ohe&&ohe.version,ahe=she&&she.v8;ahe&&(EAe=(BAe=ahe.split("."))[0]>0&&BAe[0]<4?1:+(BAe[0]+BAe[1])),!EAe&&nhe&&(!(BAe=nhe.match(/Edge\/(\d+)/))||BAe[1]>=74)&&(BAe=nhe.match(/Chrome\/(\d+)/))&&(EAe=+BAe[1]);var che=EAe,uhe=che,lhe=dAe,Ahe=!!Object.getOwnPropertySymbols&&!lhe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uhe&&uhe<41})),hhe=Ahe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fhe=ZAe,dhe=GAe,phe=ehe,ghe=Object,mhe=hhe?function(e){return"symbol"==typeof e}:function(e){var t=fhe("Symbol");return dhe(t)&&phe(t.prototype,ghe(e))},yhe=String,vhe=function(e){try{return yhe(e)}catch(e){return"Object"}},bhe=GAe,whe=vhe,xhe=TypeError,_he=function(e){if(bhe(e))return e;throw xhe(whe(e)+" is not a function")},Bhe=_he,Ehe=function(e,t){var r=e[t];return null==r?void 0:Bhe(r)},She=vAe,Che=GAe,Ihe=$Ae,khe=TypeError,Phe={exports:{}},The=hAe,Ohe=Object.defineProperty,Lhe=function(e,t){try{Ohe(The,e,{value:t,configurable:!0,writable:!0})}catch(r){The[e]=t}return t},Nhe=Lhe,Uhe="__core-js_shared__",Fhe=hAe[Uhe]||Nhe(Uhe,{}),Mhe=Fhe;(Phe.exports=function(e,t){return Mhe[e]||(Mhe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Rhe=KAe,Dhe=Object,jhe=function(e){return Dhe(Rhe(e))},Qhe=jhe,Hhe=OAe({}.hasOwnProperty),Khe=Object.hasOwn||function(e,t){return Hhe(Qhe(e),t)},Vhe=OAe,zhe=0,qhe=Math.random(),Ghe=Vhe(1..toString),Whe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ghe(++zhe+qhe,36)},$he=hAe,Jhe=Phe.exports,Xhe=Khe,Yhe=Whe,Zhe=Ahe,efe=hhe,tfe=Jhe("wks"),rfe=$he.Symbol,nfe=rfe&&rfe.for,ife=efe?rfe:rfe&&rfe.withoutSetter||Yhe,ofe=function(e){if(!Xhe(tfe,e)||!Zhe&&"string"!=typeof tfe[e]){var t="Symbol."+e;Zhe&&Xhe(rfe,e)?tfe[e]=rfe[e]:tfe[e]=efe&&nfe?nfe(t):ife(t)}return tfe[e]},sfe=vAe,afe=$Ae,cfe=mhe,ufe=Ehe,lfe=function(e,t){var r,n;if("string"===t&&Che(r=e.toString)&&!Ihe(n=She(r,e)))return n;if(Che(r=e.valueOf)&&!Ihe(n=She(r,e)))return n;if("string"!==t&&Che(r=e.toString)&&!Ihe(n=She(r,e)))return n;throw khe("Can't convert object to primitive value")},Afe=TypeError,hfe=ofe("toPrimitive"),ffe=function(e,t){if(!afe(e)||cfe(e))return e;var r,n=ufe(e,hfe);if(n){if(void 0===t&&(t="default"),r=sfe(n,e,t),!afe(r)||cfe(r))return r;throw Afe("Can't convert object to primitive value")}return void 0===t&&(t="number"),lfe(e,t)},dfe=mhe,pfe=function(e){var t=ffe(e,"string");return dfe(t)?t:t+""},gfe=$Ae,mfe=hAe.document,yfe=gfe(mfe)&&gfe(mfe.createElement),vfe=function(e){return yfe?mfe.createElement(e):{}},bfe=vfe,wfe=!pAe&&!dAe((function(){return 7!=Object.defineProperty(bfe("div"),"a",{get:function(){return 7}}).a})),xfe=pAe,_fe=vAe,Bfe=bAe,Efe=SAe,Sfe=qAe,Cfe=pfe,Ife=Khe,kfe=wfe,Pfe=Object.getOwnPropertyDescriptor;fAe.f=xfe?Pfe:function(e,t){if(e=Sfe(e),t=Cfe(t),kfe)try{return Pfe(e,t)}catch(e){}if(Ife(e,t))return Efe(!_fe(Bfe.f,e,t),e[t])};var Tfe={},Ofe=pAe&&dAe((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lfe=$Ae,Nfe=String,Ufe=TypeError,Ffe=function(e){if(Lfe(e))return e;throw Ufe(Nfe(e)+" is not an object")},Mfe=pAe,Rfe=wfe,Dfe=Ofe,jfe=Ffe,Qfe=pfe,Hfe=TypeError,Kfe=Object.defineProperty,Vfe=Object.getOwnPropertyDescriptor,zfe="enumerable",qfe="configurable",Gfe="writable";Tfe.f=Mfe?Dfe?function(e,t,r){if(jfe(e),t=Qfe(t),jfe(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Gfe in r&&!r.writable){var n=Vfe(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:qfe in r?r.configurable:n.configurable,enumerable:zfe in r?r.enumerable:n.enumerable,writable:!1})}return Kfe(e,t,r)}:Kfe:function(e,t,r){if(jfe(e),t=Qfe(t),jfe(r),Rfe)try{return Kfe(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Hfe("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wfe=Tfe,$fe=SAe,Jfe=pAe?function(e,t,r){return Wfe.f(e,t,$fe(1,r))}:function(e,t,r){return e[t]=r,e},Xfe={exports:{}},Yfe=pAe,Zfe=Khe,ede=Function.prototype,tde=Yfe&&Object.getOwnPropertyDescriptor,rde=Zfe(ede,"name"),nde={EXISTS:rde,PROPER:rde&&"something"===function(){}.name,CONFIGURABLE:rde&&(!Yfe||Yfe&&tde(ede,"name").configurable)},ide=GAe,ode=Fhe,sde=OAe(Function.toString);ide(ode.inspectSource)||(ode.inspectSource=function(e){return sde(e)});var ade,cde,ude,lde=ode.inspectSource,Ade=GAe,hde=lde,fde=hAe.WeakMap,dde=Ade(fde)&&/native code/.test(hde(fde)),pde=Phe.exports,gde=Whe,mde=pde("keys"),yde=function(e){return mde[e]||(mde[e]=gde(e))},vde={},bde=dde,wde=hAe,xde=OAe,_de=$Ae,Bde=Jfe,Ede=Khe,Sde=Fhe,Cde=yde,Ide=vde,kde="Object already initialized",Pde=wde.TypeError,Tde=wde.WeakMap;if(bde||Sde.state){var Ode=Sde.state||(Sde.state=new Tde),Lde=xde(Ode.get),Nde=xde(Ode.has),Ude=xde(Ode.set);ade=function(e,t){if(Nde(Ode,e))throw new Pde(kde);return t.facade=e,Ude(Ode,e,t),t},cde=function(e){return Lde(Ode,e)||{}},ude=function(e){return Nde(Ode,e)}}else{var Fde=Cde("state");Ide[Fde]=!0,ade=function(e,t){if(Ede(e,Fde))throw new Pde(kde);return t.facade=e,Bde(e,Fde,t),t},cde=function(e){return Ede(e,Fde)?e[Fde]:{}},ude=function(e){return Ede(e,Fde)}}var Mde={set:ade,get:cde,has:ude,enforce:function(e){return ude(e)?cde(e):ade(e,{})},getterFor:function(e){return function(t){var r;if(!_de(t)||(r=cde(t)).type!==e)throw Pde("Incompatible receiver, "+e+" required");return r}}},Rde=dAe,Dde=GAe,jde=Khe,Qde=pAe,Hde=nde.CONFIGURABLE,Kde=lde,Vde=Mde.enforce,zde=Mde.get,qde=Object.defineProperty,Gde=Qde&&!Rde((function(){return 8!==qde((function(){}),"length",{value:8}).length})),Wde=String(String).split("String"),$de=Xfe.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!jde(e,"name")||Hde&&e.name!==t)&&(Qde?qde(e,"name",{value:t,configurable:!0}):e.name=t),Gde&&r&&jde(r,"arity")&&e.length!==r.arity&&qde(e,"length",{value:r.arity});try{r&&jde(r,"constructor")&&r.constructor?Qde&&qde(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Vde(e);return jde(n,"source")||(n.source=Wde.join("string"==typeof t?t:"")),e};Function.prototype.toString=$de((function(){return Dde(this)&&zde(this).source||Kde(this)}),"toString");var Jde=GAe,Xde=Tfe,Yde=Xfe.exports,Zde=Lhe,epe=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Jde(r)&&Yde(r,o,n),n.global)i?e[t]=r:Zde(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Xde.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},tpe={},rpe=Math.ceil,npe=Math.floor,ipe=Math.trunc||function(e){var t=+e;return(t>0?npe:rpe)(t)},ope=ipe,spe=function(e){var t=+e;return t!=t||0===t?0:ope(t)},ape=spe,cpe=Math.max,upe=Math.min,lpe=function(e,t){var r=ape(e);return r<0?cpe(r+t,0):upe(r,t)},Ape=spe,hpe=Math.min,fpe=function(e){return e>0?hpe(Ape(e),9007199254740991):0},dpe=fpe,ppe=function(e){return dpe(e.length)},gpe=qAe,mpe=lpe,ype=ppe,vpe=function(e){return function(t,r,n){var i,o=gpe(t),s=ype(o),a=mpe(n,s);if(e&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},bpe={includes:vpe(!0),indexOf:vpe(!1)},wpe=Khe,xpe=qAe,_pe=bpe.indexOf,Bpe=vde,Epe=OAe([].push),Spe=function(e,t){var r,n=xpe(e),i=0,o=[];for(r in n)!wpe(Bpe,r)&&wpe(n,r)&&Epe(o,r);for(;t.length>i;)wpe(n,r=t[i++])&&(~_pe(o,r)||Epe(o,r));return o},Cpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ipe=Spe,kpe=Cpe.concat("length","prototype");tpe.f=Object.getOwnPropertyNames||function(e){return Ipe(e,kpe)};var Ppe={};Ppe.f=Object.getOwnPropertySymbols;var Tpe=ZAe,Ope=tpe,Lpe=Ppe,Npe=Ffe,Upe=OAe([].concat),Fpe=Tpe("Reflect","ownKeys")||function(e){var t=Ope.f(Npe(e)),r=Lpe.f;return r?Upe(t,r(e)):t},Mpe=Khe,Rpe=Fpe,Dpe=fAe,jpe=Tfe,Qpe=dAe,Hpe=GAe,Kpe=/#|\.prototype\./,Vpe=function(e,t){var r=qpe[zpe(e)];return r==Wpe||r!=Gpe&&(Hpe(t)?Qpe(t):!!t)},zpe=Vpe.normalize=function(e){return String(e).replace(Kpe,".").toLowerCase()},qpe=Vpe.data={},Gpe=Vpe.NATIVE="N",Wpe=Vpe.POLYFILL="P",$pe=Vpe,Jpe=hAe,Xpe=fAe.f,Ype=Jfe,Zpe=epe,ege=Lhe,tge=function(e,t,r){for(var n=Rpe(t),i=jpe.f,o=Dpe.f,s=0;s<n.length;s++){var a=n[s];Mpe(e,a)||r&&Mpe(r,a)||i(e,a,o(t,a))}},rge=$pe,nge=function(e,t){var r,n,i,o,s,a=e.target,c=e.global,u=e.stat;if(r=c?Jpe:u?Jpe[a]||ege(a,{}):(Jpe[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(s=Xpe(r,n))&&s.value:r[n],!rge(c?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;tge(o,i)}(e.sham||i&&i.sham)&&Ype(o,"sham",!0),Zpe(r,n,o,e)}},ige="process"==FAe(hAe.process),oge=GAe,sge=String,age=TypeError,cge=OAe,uge=Ffe,lge=function(e){if("object"==typeof e||oge(e))return e;throw age("Can't set "+sge(e)+" as a prototype")},Age=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=cge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return uge(r),lge(n),t?e(r,n):r.__proto__=n,r}}():void 0),hge=Tfe.f,fge=Khe,dge=ofe("toStringTag"),pge=function(e,t,r){e&&!r&&(e=e.prototype),e&&!fge(e,dge)&&hge(e,dge,{configurable:!0,value:t})},gge=ZAe,mge=Tfe,yge=pAe,vge=ofe("species"),bge=ehe,wge=TypeError,xge={};xge[ofe("toStringTag")]="z";var _ge="[object z]"===String(xge),Bge=GAe,Ege=FAe,Sge=ofe("toStringTag"),Cge=Object,Ige="Arguments"==Ege(function(){return arguments}()),kge=_ge?Ege:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Cge(e),Sge))?r:Ige?Ege(t):"Object"==(n=Ege(t))&&Bge(t.callee)?"Arguments":n},Pge=OAe,Tge=dAe,Oge=GAe,Lge=kge,Nge=lde,Uge=function(){},Fge=[],Mge=ZAe("Reflect","construct"),Rge=/^\s*(?:class|function)\b/,Dge=Pge(Rge.exec),jge=!Rge.exec(Uge),Qge=function(e){if(!Oge(e))return!1;try{return Mge(Uge,Fge,e),!0}catch(e){return!1}},Hge=function(e){if(!Oge(e))return!1;switch(Lge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jge||!!Dge(Rge,Nge(e))}catch(e){return!0}};Hge.sham=!0;var Kge,Vge,zge,qge,Gge=!Mge||Tge((function(){var e;return Qge(Qge.call)||!Qge(Object)||!Qge((function(){e=!0}))||e}))?Hge:Qge,Wge=Gge,$ge=vhe,Jge=TypeError,Xge=Ffe,Yge=function(e){if(Wge(e))return e;throw Jge($ge(e)+" is not a constructor")},Zge=ofe("species"),eme=function(e,t){var r,n=Xge(e).constructor;return void 0===n||null==(r=Xge(n)[Zge])?t:Yge(r)},tme=gAe,rme=Function.prototype,nme=rme.apply,ime=rme.call,ome="object"==typeof Reflect&&Reflect.apply||(tme?ime.bind(nme):function(){return ime.apply(nme,arguments)}),sme=_he,ame=gAe,cme=OAe(OAe.bind),ume=function(e,t){return sme(e),void 0===t?e:ame?cme(e,t):function(){return e.apply(t,arguments)}},lme=ZAe("document","documentElement"),Ame=OAe([].slice),hme=TypeError,fme=/(?:ipad|iphone|ipod).*applewebkit/i.test(the),dme=hAe,pme=ome,gme=ume,mme=GAe,yme=Khe,vme=dAe,bme=lme,wme=Ame,xme=vfe,_me=function(e,t){if(e<t)throw hme("Not enough arguments");return e},Bme=fme,Eme=ige,Sme=dme.setImmediate,Cme=dme.clearImmediate,Ime=dme.process,kme=dme.Dispatch,Pme=dme.Function,Tme=dme.MessageChannel,Ome=dme.String,Lme=0,Nme={},Ume="onreadystatechange";try{Kge=dme.location}catch(e){}var Fme=function(e){if(yme(Nme,e)){var t=Nme[e];delete Nme[e],t()}},Mme=function(e){return function(){Fme(e)}},Rme=function(e){Fme(e.data)},Dme=function(e){dme.postMessage(Ome(e),Kge.protocol+"//"+Kge.host)};Sme&&Cme||(Sme=function(e){_me(arguments.length,1);var t=mme(e)?e:Pme(e),r=wme(arguments,1);return Nme[++Lme]=function(){pme(t,void 0,r)},Vge(Lme),Lme},Cme=function(e){delete Nme[e]},Eme?Vge=function(e){Ime.nextTick(Mme(e))}:kme&&kme.now?Vge=function(e){kme.now(Mme(e))}:Tme&&!Bme?(qge=(zge=new Tme).port2,zge.port1.onmessage=Rme,Vge=gme(qge.postMessage,qge)):dme.addEventListener&&mme(dme.postMessage)&&!dme.importScripts&&Kge&&"file:"!==Kge.protocol&&!vme(Dme)?(Vge=Dme,dme.addEventListener("message",Rme,!1)):Vge=Ume in xme("script")?function(e){bme.appendChild(xme("script")).onreadystatechange=function(){bme.removeChild(this),Fme(e)}}:function(e){setTimeout(Mme(e),0)});var jme,Qme,Hme,Kme,Vme,zme,qme,Gme,Wme={set:Sme,clear:Cme},$me=hAe,Jme=/ipad|iphone|ipod/i.test(the)&&void 0!==$me.Pebble,Xme=/web0s(?!.*chrome)/i.test(the),Yme=hAe,Zme=ume,eye=fAe.f,tye=Wme.set,rye=fme,nye=Jme,iye=Xme,oye=ige,sye=Yme.MutationObserver||Yme.WebKitMutationObserver,aye=Yme.document,cye=Yme.process,uye=Yme.Promise,lye=eye(Yme,"queueMicrotask"),Aye=lye&&lye.value;Aye||(jme=function(){var e,t;for(oye&&(e=cye.domain)&&e.exit();Qme;){t=Qme.fn,Qme=Qme.next;try{t()}catch(e){throw Qme?Kme():Hme=void 0,e}}Hme=void 0,e&&e.enter()},rye||oye||iye||!sye||!aye?!nye&&uye&&uye.resolve?((qme=uye.resolve(void 0)).constructor=uye,Gme=Zme(qme.then,qme),Kme=function(){Gme(jme)}):oye?Kme=function(){cye.nextTick(jme)}:(tye=Zme(tye,Yme),Kme=function(){tye(jme)}):(Vme=!0,zme=aye.createTextNode(""),new sye(jme).observe(zme,{characterData:!0}),Kme=function(){zme.data=Vme=!Vme}));var hye=Aye||function(e){var t={fn:e,next:void 0};Hme&&(Hme.next=t),Qme||(Qme=t,Kme()),Hme=t},fye=hAe,dye=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},pye=function(){this.head=null,this.tail=null};pye.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var gye=pye,mye=hAe.Promise,yye="object"==typeof window&&"object"!=typeof Deno,vye=hAe,bye=mye,wye=GAe,xye=$pe,_ye=lde,Bye=ofe,Eye=yye,Sye=che;bye&&bye.prototype;var Cye=Bye("species"),Iye=!1,kye=wye(vye.PromiseRejectionEvent),Pye=xye("Promise",(function(){var e=_ye(bye),t=e!==String(bye);if(!t&&66===Sye)return!0;if(Sye>=51&&/native code/.test(e))return!1;var r=new bye((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[Cye]=n,!(Iye=r.then((function(){}))instanceof n)||!t&&Eye&&!kye})),Tye={CONSTRUCTOR:Pye,REJECTION_EVENT:kye,SUBCLASSING:Iye},Oye={},Lye=_he,Nye=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=Lye(t),this.reject=Lye(r)};Oye.f=function(e){return new Nye(e)};var Uye,Fye,Mye,Rye=nge,Dye=ige,jye=hAe,Qye=vAe,Hye=epe,Kye=Age,Vye=pge,zye=function(e){var t=gge(e),r=mge.f;yge&&t&&!t[vge]&&r(t,vge,{configurable:!0,get:function(){return this}})},qye=_he,Gye=GAe,Wye=$Ae,$ye=function(e,t){if(bge(t,e))return e;throw wge("Incorrect invocation")},Jye=eme,Xye=Wme.set,Yye=hye,Zye=function(e,t){var r=fye.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},eve=dye,tve=gye,rve=Mde,nve=mye,ive=Oye,ove="Promise",sve=Tye.CONSTRUCTOR,ave=Tye.REJECTION_EVENT,cve=Tye.SUBCLASSING,uve=rve.getterFor(ove),lve=rve.set,Ave=nve&&nve.prototype,hve=nve,fve=Ave,dve=jye.TypeError,pve=jye.document,gve=jye.process,mve=ive.f,yve=mve,vve=!!(pve&&pve.createEvent&&jye.dispatchEvent),bve="unhandledrejection",wve=function(e){var t;return!(!Wye(e)||!Gye(t=e.then))&&t},xve=function(e,t){var r,n,i,o=t.value,s=1==t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Cve(t),t.rejection=1),!0===a?r=o:(l&&l.enter(),r=a(o),l&&(l.exit(),i=!0)),r===e.promise?u(dve("Promise-chain cycle")):(n=wve(r))?Qye(n,r,c,u):c(r)):u(o)}catch(e){l&&!i&&l.exit(),u(e)}},_ve=function(e,t){e.notified||(e.notified=!0,Yye((function(){for(var r,n=e.reactions;r=n.get();)xve(r,e);e.notified=!1,t&&!e.rejection&&Eve(e)})))},Bve=function(e,t,r){var n,i;vve?((n=pve.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),jye.dispatchEvent(n)):n={promise:t,reason:r},!ave&&(i=jye["on"+e])?i(n):e===bve&&Zye("Unhandled promise rejection",r)},Eve=function(e){Qye(Xye,jye,(function(){var t,r=e.facade,n=e.value;if(Sve(e)&&(t=eve((function(){Dye?gve.emit("unhandledRejection",n,r):Bve(bve,r,n)})),e.rejection=Dye||Sve(e)?2:1,t.error))throw t.value}))},Sve=function(e){return 1!==e.rejection&&!e.parent},Cve=function(e){Qye(Xye,jye,(function(){var t=e.facade;Dye?gve.emit("rejectionHandled",t):Bve("rejectionhandled",t,e.value)}))},Ive=function(e,t,r){return function(n){e(t,n,r)}},kve=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,_ve(e,!0))},Pve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw dve("Promise can't be resolved itself");var n=wve(t);n?Yye((function(){var r={done:!1};try{Qye(n,t,Ive(Pve,r,e),Ive(kve,r,e))}catch(t){kve(r,t,e)}})):(e.value=t,e.state=1,_ve(e,!1))}catch(t){kve({done:!1},t,e)}}};if(sve&&(fve=(hve=function(e){$ye(this,fve),qye(e),Qye(Uye,this);var t=uve(this);try{e(Ive(Pve,t),Ive(kve,t))}catch(e){kve(t,e)}}).prototype,(Uye=function(e){lve(this,{type:ove,done:!1,notified:!1,parent:!1,reactions:new tve,rejection:!1,state:0,value:void 0})}).prototype=Hye(fve,"then",(function(e,t){var r=uve(this),n=mve(Jye(this,hve));return r.parent=!0,n.ok=!Gye(e)||e,n.fail=Gye(t)&&t,n.domain=Dye?gve.domain:void 0,0==r.state?r.reactions.add(n):Yye((function(){xve(n,r)})),n.promise})),Fye=function(){var e=new Uye,t=uve(e);this.promise=e,this.resolve=Ive(Pve,t),this.reject=Ive(kve,t)},ive.f=mve=function(e){return e===hve||undefined===e?new Fye(e):yve(e)},Gye(nve)&&Ave!==Object.prototype)){Mye=Ave.then,cve||Hye(Ave,"then",(function(e,t){var r=this;return new hve((function(e,t){Qye(Mye,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Ave.constructor}catch(e){}Kye&&Kye(Ave,fve)}Rye({global:!0,constructor:!0,wrap:!0,forced:sve},{Promise:hve}),Vye(hve,ove,!1),zye(ove);var Tve={},Ove=Tve,Lve=ofe("iterator"),Nve=Array.prototype,Uve=kge,Fve=Ehe,Mve=Tve,Rve=ofe("iterator"),Dve=function(e){if(null!=e)return Fve(e,Rve)||Fve(e,"@@iterator")||Mve[Uve(e)]},jve=vAe,Qve=_he,Hve=Ffe,Kve=vhe,Vve=Dve,zve=TypeError,qve=vAe,Gve=Ffe,Wve=Ehe,$ve=ume,Jve=vAe,Xve=Ffe,Yve=vhe,Zve=function(e){return void 0!==e&&(Ove.Array===e||Nve[Lve]===e)},ebe=ppe,tbe=ehe,rbe=function(e,t){var r=arguments.length<2?Vve(e):t;if(Qve(r))return Hve(jve(r,e));throw zve(Kve(e)+" is not iterable")},nbe=Dve,ibe=function(e,t,r){var n,i;Gve(e);try{if(!(n=Wve(e,"return"))){if("throw"===t)throw r;return r}n=qve(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Gve(n),r},obe=TypeError,sbe=function(e,t){this.stopped=e,this.result=t},abe=sbe.prototype,cbe=function(e,t,r){var n,i,o,s,a,c,u,l=r&&r.that,A=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),d=$ve(t,l),p=function(e){return n&&ibe(n,"normal",e),new sbe(!0,e)},g=function(e){return A?(Xve(e),f?d(e[0],e[1],p):d(e[0],e[1])):f?d(e,p):d(e)};if(h)n=e;else{if(!(i=nbe(e)))throw obe(Yve(e)+" is not iterable");if(Zve(i)){for(o=0,s=ebe(e);s>o;o++)if((a=g(e[o]))&&tbe(abe,a))return a;return new sbe(!1)}n=rbe(e,i)}for(c=n.next;!(u=Jve(c,n)).done;){try{a=g(u.value)}catch(e){ibe(n,"throw",e)}if("object"==typeof a&&a&&tbe(abe,a))return a}return new sbe(!1)},ube=ofe("iterator"),lbe=!1;try{var Abe=0,hbe={next:function(){return{done:!!Abe++}},return:function(){lbe=!0}};hbe[ube]=function(){return this},Array.from(hbe,(function(){throw 2}))}catch(e){}var fbe=mye,dbe=function(e,t){if(!t&&!lbe)return!1;var r=!1;try{var n={};n[ube]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},pbe=Tye.CONSTRUCTOR||!dbe((function(e){fbe.all(e).then(void 0,(function(){}))})),gbe=vAe,mbe=_he,ybe=Oye,vbe=dye,bbe=cbe;nge({target:"Promise",stat:!0,forced:pbe},{all:function(e){var t=this,r=ybe.f(t),n=r.resolve,i=r.reject,o=vbe((function(){var r=mbe(t.resolve),o=[],s=0,a=1;bbe(e,(function(e){var c=s++,u=!1;a++,gbe(r,t,e).then((function(e){u||(u=!0,o[c]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise}});var wbe=nge,xbe=Tye.CONSTRUCTOR,_be=mye,Bbe=ZAe,Ebe=GAe,Sbe=epe,Cbe=_be&&_be.prototype;if(wbe({target:"Promise",proto:!0,forced:xbe,real:!0},{catch:function(e){return this.then(void 0,e)}}),Ebe(_be)){var Ibe=Bbe("Promise").prototype.catch;Cbe.catch!==Ibe&&Sbe(Cbe,"catch",Ibe,{unsafe:!0})}var kbe=vAe,Pbe=_he,Tbe=Oye,Obe=dye,Lbe=cbe;nge({target:"Promise",stat:!0,forced:pbe},{race:function(e){var t=this,r=Tbe.f(t),n=r.reject,i=Obe((function(){var i=Pbe(t.resolve);Lbe(e,(function(e){kbe(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Nbe=vAe,Ube=Oye;nge({target:"Promise",stat:!0,forced:Tye.CONSTRUCTOR},{reject:function(e){var t=Ube.f(this);return Nbe(t.reject,void 0,e),t.promise}});var Fbe=Ffe,Mbe=$Ae,Rbe=Oye,Dbe=nge,jbe=Tye.CONSTRUCTOR,Qbe=function(e,t){if(Fbe(e),Mbe(t)&&t.constructor===e)return t;var r=Rbe.f(e);return(0,r.resolve)(t),r.promise};ZAe("Promise"),Dbe({target:"Promise",stat:!0,forced:jbe},{resolve:function(e){return Qbe(this,e)}});var Hbe={exports:{}};!function(e){function t(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var s=e.apply(r,n);function a(e){t(s,i,o,a,c,"next",e)}function c(e){t(s,i,o,a,c,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}(Hbe);var Kbe=tt(Hbe.exports),Vbe=kge,zbe=String,qbe=function(e){if("Symbol"===Vbe(e))throw TypeError("Cannot convert a Symbol value to a string");return zbe(e)},Gbe=Ffe,Wbe=function(){var e=Gbe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},$be=dAe,Jbe=hAe.RegExp,Xbe=$be((function(){var e=Jbe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ybe=Xbe||$be((function(){return!Jbe("a","y").sticky})),Zbe=Xbe||$be((function(){var e=Jbe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ewe={BROKEN_CARET:Zbe,MISSED_STICKY:Ybe,UNSUPPORTED_Y:Xbe},twe={},rwe=Spe,nwe=Cpe,iwe=Object.keys||function(e){return rwe(e,nwe)},owe=pAe,swe=Ofe,awe=Tfe,cwe=Ffe,uwe=qAe,lwe=iwe;twe.f=owe&&!swe?Object.defineProperties:function(e,t){cwe(e);for(var r,n=uwe(t),i=lwe(t),o=i.length,s=0;o>s;)awe.f(e,r=i[s++],n[r]);return e};var Awe,hwe=Ffe,fwe=twe,dwe=Cpe,pwe=vde,gwe=lme,mwe=vfe,ywe=yde("IE_PROTO"),vwe=function(){},bwe=function(e){return"<script>"+e+"</"+"script>"},wwe=function(e){e.write(bwe("")),e.close();var t=e.parentWindow.Object;return e=null,t},xwe=function(){try{Awe=new ActiveXObject("htmlfile")}catch(e){}var e,t;xwe="undefined"!=typeof document?document.domain&&Awe?wwe(Awe):((t=mwe("iframe")).style.display="none",gwe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bwe("document.F=Object")),e.close(),e.F):wwe(Awe);for(var r=dwe.length;r--;)delete xwe.prototype[dwe[r]];return xwe()};pwe[ywe]=!0;var _we,Bwe,Ewe=Object.create||function(e,t){var r;return null!==e?(vwe.prototype=hwe(e),r=new vwe,vwe.prototype=null,r[ywe]=e):r=xwe(),void 0===t?r:fwe.f(r,t)},Swe=dAe,Cwe=hAe.RegExp,Iwe=Swe((function(){var e=Cwe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kwe=dAe,Pwe=hAe.RegExp,Twe=kwe((function(){var e=Pwe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Owe=vAe,Lwe=OAe,Nwe=qbe,Uwe=Wbe,Fwe=ewe,Mwe=Phe.exports,Rwe=Ewe,Dwe=Mde.get,jwe=Iwe,Qwe=Twe,Hwe=Mwe("native-string-replace",String.prototype.replace),Kwe=RegExp.prototype.exec,Vwe=Kwe,zwe=Lwe("".charAt),qwe=Lwe("".indexOf),Gwe=Lwe("".replace),Wwe=Lwe("".slice),$we=(Bwe=/b*/g,Owe(Kwe,_we=/a/,"a"),Owe(Kwe,Bwe,"a"),0!==_we.lastIndex||0!==Bwe.lastIndex),Jwe=Fwe.BROKEN_CARET,Xwe=void 0!==/()??/.exec("")[1];($we||Xwe||Jwe||jwe||Qwe)&&(Vwe=function(e){var t,r,n,i,o,s,a,c=this,u=Dwe(c),l=Nwe(e),A=u.raw;if(A)return A.lastIndex=c.lastIndex,t=Owe(Vwe,A,l),c.lastIndex=A.lastIndex,t;var h=u.groups,f=Jwe&&c.sticky,d=Owe(Uwe,c),p=c.source,g=0,m=l;if(f&&(d=Gwe(d,"y",""),-1===qwe(d,"g")&&(d+="g"),m=Wwe(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==zwe(l,c.lastIndex-1))&&(p="(?: "+p+")",m=" "+m,g++),r=new RegExp("^(?:"+p+")",d)),Xwe&&(r=new RegExp("^"+p+"$(?!\\s)",d)),$we&&(n=c.lastIndex),i=Owe(Kwe,f?r:c,m),f?i?(i.input=Wwe(i.input,g),i[0]=Wwe(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:$we&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),Xwe&&i&&i.length>1&&Owe(Hwe,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=s=Rwe(null),o=0;o<h.length;o++)s[(a=h[o])[0]]=i[a[1]];return i});var Ywe=Vwe;nge({target:"RegExp",proto:!0,forced:/./.exec!==Ywe},{exec:Ywe});var Zwe=OAe,exe=epe,txe=Ywe,rxe=dAe,nxe=ofe,ixe=Jfe,oxe=nxe("species"),sxe=RegExp.prototype,axe=function(e,t,r,n){var i=nxe(e),o=!rxe((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),s=o&&!rxe((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[oxe]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!s||r){var a=Zwe(/./[i]),c=t(i,""[e],(function(e,t,r,n,i){var s=Zwe(e),c=t.exec;return c===txe||c===sxe.exec?o&&!i?{done:!0,value:a(t,r,n)}:{done:!0,value:s(r,t,n)}:{done:!1}}));exe(String.prototype,e,c[0]),exe(sxe,i,c[1])}n&&ixe(sxe[i],"sham",!0)},cxe=OAe,uxe=spe,lxe=qbe,Axe=KAe,hxe=cxe("".charAt),fxe=cxe("".charCodeAt),dxe=cxe("".slice),pxe=function(e){return function(t,r){var n,i,o=lxe(Axe(t)),s=uxe(r),a=o.length;return s<0||s>=a?e?"":void 0:(n=fxe(o,s))<55296||n>56319||s+1===a||(i=fxe(o,s+1))<56320||i>57343?e?hxe(o,s):n:e?dxe(o,s,s+2):i-56320+(n-55296<<10)+65536}},gxe={codeAt:pxe(!1),charAt:pxe(!0)}.charAt,mxe=function(e,t,r){return t+(r?gxe(e,t).length:1)},yxe=vAe,vxe=Ffe,bxe=GAe,wxe=FAe,xxe=Ywe,_xe=TypeError,Bxe=function(e,t){var r=e.exec;if(bxe(r)){var n=yxe(r,e,t);return null!==n&&vxe(n),n}if("RegExp"===wxe(e))return yxe(xxe,e,t);throw _xe("RegExp#exec called on incompatible receiver")},Exe=vAe,Sxe=Ffe,Cxe=fpe,Ixe=qbe,kxe=KAe,Pxe=Ehe,Txe=mxe,Oxe=Bxe;axe("match",(function(e,t,r){return[function(t){var r=kxe(this),n=null==t?void 0:Pxe(t,e);return n?Exe(n,t,r):new RegExp(t)[e](Ixe(r))},function(e){var n=Sxe(this),i=Ixe(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return Oxe(n,i);var s=n.unicode;n.lastIndex=0;for(var a,c=[],u=0;null!==(a=Oxe(n,i));){var l=Ixe(a[0]);c[u]=l,""===l&&(n.lastIndex=Txe(i,Cxe(n.lastIndex),s)),u++}return 0===u?null:c}]}));var Lxe=OAe,Nxe=jhe,Uxe=Math.floor,Fxe=Lxe("".charAt),Mxe=Lxe("".replace),Rxe=Lxe("".slice),Dxe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jxe=/\$([$&'`]|\d{1,2})/g,Qxe=ome,Hxe=vAe,Kxe=OAe,Vxe=axe,zxe=dAe,qxe=Ffe,Gxe=GAe,Wxe=spe,$xe=fpe,Jxe=qbe,Xxe=KAe,Yxe=mxe,Zxe=Ehe,e_e=function(e,t,r,n,i,o){var s=r+e.length,a=n.length,c=jxe;return void 0!==i&&(i=Nxe(i),c=Dxe),Mxe(o,c,(function(o,c){var u;switch(Fxe(c,0)){case"$":return"$";case"&":return e;case"`":return Rxe(t,0,r);case"'":return Rxe(t,s);case"<":u=i[Rxe(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var A=Uxe(l/10);return 0===A?o:A<=a?void 0===n[A-1]?Fxe(c,1):n[A-1]+Fxe(c,1):o}u=n[l-1]}return void 0===u?"":u}))},t_e=Bxe,r_e=ofe("replace"),n_e=Math.max,i_e=Math.min,o_e=Kxe([].concat),s_e=Kxe([].push),a_e=Kxe("".indexOf),c_e=Kxe("".slice),u_e=function(e){return void 0===e?e:String(e)},l_e="$0"==="a".replace(/./,"$0"),A_e=!!/./[r_e]&&""===/./[r_e]("a","$0"),h_e=!zxe((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Vxe("replace",(function(e,t,r){var n=A_e?"$":"$0";return[function(e,r){var n=Xxe(this),i=null==e?void 0:Zxe(e,r_e);return i?Hxe(i,e,n,r):Hxe(t,Jxe(n),e,r)},function(e,i){var o=qxe(this),s=Jxe(e);if("string"==typeof i&&-1===a_e(i,n)&&-1===a_e(i,"$<")){var a=r(t,o,s,i);if(a.done)return a.value}var c=Gxe(i);c||(i=Jxe(i));var u=o.global;if(u){var l=o.unicode;o.lastIndex=0}for(var A=[];;){var h=t_e(o,s);if(null===h)break;if(s_e(A,h),!u)break;""===Jxe(h[0])&&(o.lastIndex=Yxe(s,$xe(o.lastIndex),l))}for(var f="",d=0,p=0;p<A.length;p++){for(var g=Jxe((h=A[p])[0]),m=n_e(i_e(Wxe(h.index),s.length),0),y=[],v=1;v<h.length;v++)s_e(y,u_e(h[v]));var b=h.groups;if(c){var w=o_e([g],y,m,s);void 0!==b&&s_e(w,b);var x=Jxe(Qxe(i,void 0,w))}else x=e_e(g,s,m,y,b,i);m>=d&&(f+=c_e(s,d,m)+x,d=m+g.length)}return f+c_e(s,d)}]}),!h_e||!l_e||A_e);var f_e,d_e=$Ae,p_e=FAe,g_e=ofe("match"),m_e=function(e){var t;return d_e(e)&&(void 0!==(t=e[g_e])?!!t:"RegExp"==p_e(e))},y_e=m_e,v_e=TypeError,b_e=function(e){if(y_e(e))throw v_e("The method doesn't accept regular expressions");return e},w_e=ofe("match"),x_e=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[w_e]=!1,"/./"[e](t)}catch(e){}}return!1},__e=nge,B_e=OAe,E_e=fAe.f,S_e=fpe,C_e=qbe,I_e=b_e,k_e=KAe,P_e=x_e,T_e=B_e("".startsWith),O_e=B_e("".slice),L_e=Math.min,N_e=P_e("startsWith");__e({target:"String",proto:!0,forced:!!(N_e||(f_e=E_e(String.prototype,"startsWith"),!f_e||f_e.writable))&&!N_e},{startsWith:function(e){var t=C_e(k_e(this));I_e(e);var r=S_e(L_e(arguments.length>1?arguments[1]:void 0,t.length)),n=C_e(e);return T_e?T_e(t,n,r):O_e(t,r,r+n.length)===n}});var U_e=ofe,F_e=Ewe,M_e=Tfe.f,R_e=U_e("unscopables"),D_e=Array.prototype;null==D_e[R_e]&&M_e(D_e,R_e,{configurable:!0,value:F_e(null)});var j_e,Q_e,H_e,K_e=!dAe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),V_e=Khe,z_e=GAe,q_e=jhe,G_e=K_e,W_e=yde("IE_PROTO"),$_e=Object,J_e=$_e.prototype,X_e=G_e?$_e.getPrototypeOf:function(e){var t=q_e(e);if(V_e(t,W_e))return t[W_e];var r=t.constructor;return z_e(r)&&t instanceof r?r.prototype:t instanceof $_e?J_e:null},Y_e=dAe,Z_e=GAe,eBe=X_e,tBe=epe,rBe=ofe("iterator"),nBe=!1;[].keys&&("next"in(H_e=[].keys())?(Q_e=eBe(eBe(H_e)))!==Object.prototype&&(j_e=Q_e):nBe=!0);var iBe=null==j_e||Y_e((function(){var e={};return j_e[rBe].call(e)!==e}));iBe&&(j_e={}),Z_e(j_e[rBe])||tBe(j_e,rBe,(function(){return this}));var oBe={IteratorPrototype:j_e,BUGGY_SAFARI_ITERATORS:nBe},sBe=oBe.IteratorPrototype,aBe=Ewe,cBe=SAe,uBe=pge,lBe=Tve,ABe=function(){return this},hBe=nge,fBe=vAe,dBe=GAe,pBe=function(e,t,r,n){var i=t+" Iterator";return e.prototype=aBe(sBe,{next:cBe(+!n,r)}),uBe(e,i,!1),lBe[i]=ABe,e},gBe=X_e,mBe=Age,yBe=pge,vBe=Jfe,bBe=epe,wBe=Tve,xBe=nde.PROPER,_Be=nde.CONFIGURABLE,BBe=oBe.IteratorPrototype,EBe=oBe.BUGGY_SAFARI_ITERATORS,SBe=ofe("iterator"),CBe="keys",IBe="values",kBe="entries",PBe=function(){return this},TBe=qAe,OBe=function(e){D_e[R_e][e]=!0},LBe=Tve,NBe=Mde,UBe=Tfe.f,FBe=function(e,t,r,n,i,o,s){pBe(r,t,n);var a,c,u,l=function(e){if(e===i&&p)return p;if(!EBe&&e in f)return f[e];switch(e){case CBe:case IBe:case kBe:return function(){return new r(this,e)}}return function(){return new r(this)}},A=t+" Iterator",h=!1,f=e.prototype,d=f[SBe]||f["@@iterator"]||i&&f[i],p=!EBe&&d||l(i),g="Array"==t&&f.entries||d;if(g&&(a=gBe(g.call(new e)))!==Object.prototype&&a.next&&(gBe(a)!==BBe&&(mBe?mBe(a,BBe):dBe(a[SBe])||bBe(a,SBe,PBe)),yBe(a,A,!0)),xBe&&i==IBe&&d&&d.name!==IBe&&(_Be?vBe(f,"name",IBe):(h=!0,p=function(){return fBe(d,this)})),i)if(c={values:l(IBe),keys:o?p:l(CBe),entries:l(kBe)},s)for(u in c)(EBe||h||!(u in f))&&bBe(f,u,c[u]);else hBe({target:t,proto:!0,forced:EBe||h},c);return f[SBe]!==p&&bBe(f,SBe,p,{name:i}),wBe[t]=p,c},MBe=pAe,RBe="Array Iterator",DBe=NBe.set,jBe=NBe.getterFor(RBe),QBe=FBe(Array,"Array",(function(e,t){DBe(this,{type:RBe,target:TBe(e),index:0,kind:t})}),(function(){var e=jBe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),HBe=LBe.Arguments=LBe.Array;if(OBe("keys"),OBe("values"),OBe("entries"),MBe&&"values"!==HBe.name)try{UBe(HBe,"name",{value:"values"})}catch(e){}var KBe=vfe("span").classList,VBe=KBe&&KBe.constructor&&KBe.constructor.prototype,zBe=VBe===Object.prototype?void 0:VBe,qBe=hAe,GBe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},WBe=zBe,$Be=QBe,JBe=Jfe,XBe=ofe,YBe=XBe("iterator"),ZBe=XBe("toStringTag"),eEe=$Be.values,tEe=function(e,t){if(e){if(e[YBe]!==eEe)try{JBe(e,YBe,eEe)}catch(t){e[YBe]=eEe}if(e[ZBe]||JBe(e,ZBe,t),GBe[t])for(var r in $Be)if(e[r]!==$Be[r])try{JBe(e,r,$Be[r])}catch(t){e[r]=$Be[r]}}};for(var rEe in GBe)tEe(qBe[rEe]&&qBe[rEe].prototype,rEe);tEe(WBe,"DOMTokenList");var nEe={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(nEe);var iEe=tt(nEe.exports),oEe=_he,sEe=jhe,aEe=QAe,cEe=ppe,uEe=TypeError,lEe=function(e){return function(t,r,n,i){oEe(r);var o=sEe(t),s=aEe(o),a=cEe(o),c=e?a-1:0,u=e?-1:1;if(n<2)for(;;){if(c in s){i=s[c],c+=u;break}if(c+=u,e?c<0:a<=c)throw uEe("Reduce of empty array with no initial value")}for(;e?c>=0:a>c;c+=u)c in s&&(i=r(i,s[c],c,o));return i}},AEe={left:lEe(!1),right:lEe(!0)},hEe=dAe,fEe=function(e,t){var r=[][e];return!!r&&hEe((function(){r.call(null,t||function(){return 1},1)}))},dEe=AEe.left,pEe=che,gEe=ige;nge({target:"Array",proto:!0,forced:!fEe("reduce")||!gEe&&pEe>79&&pEe<83},{reduce:function(e){var t=arguments.length;return dEe(this,e,t,t>1?arguments[1]:void 0)}});var mEe=nge,yEe=OAe,vEe=fAe.f,bEe=fpe,wEe=qbe,xEe=b_e,_Ee=KAe,BEe=x_e,EEe=yEe("".endsWith),SEe=yEe("".slice),CEe=Math.min,IEe=BEe("endsWith"),kEe=!IEe&&!!function(){var e=vEe(String.prototype,"endsWith");return e&&!e.writable}();mEe({target:"String",proto:!0,forced:!kEe&&!IEe},{endsWith:function(e){var t=wEe(_Ee(this));xEe(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:CEe(bEe(r),n),o=wEe(e);return EEe?EEe(t,o,i):SEe(t,i-o.length,i)===o}});var PEe=pfe,TEe=Tfe,OEe=SAe,LEe=lpe,NEe=ppe,UEe=function(e,t,r){var n=PEe(t);n in e?TEe.f(e,n,OEe(0,r)):e[n]=r},FEe=Array,MEe=Math.max,REe=ome,DEe=vAe,jEe=OAe,QEe=axe,HEe=m_e,KEe=Ffe,VEe=KAe,zEe=eme,qEe=mxe,GEe=fpe,WEe=qbe,$Ee=Ehe,JEe=function(e,t,r){for(var n=NEe(e),i=LEe(t,n),o=LEe(void 0===r?n:r,n),s=FEe(MEe(o-i,0)),a=0;i<o;i++,a++)UEe(s,a,e[i]);return s.length=a,s},XEe=Bxe,YEe=Ywe,ZEe=dAe,eSe=ewe.UNSUPPORTED_Y,tSe=4294967295,rSe=Math.min,nSe=[].push,iSe=jEe(/./.exec),oSe=jEe(nSe),sSe=jEe("".slice),aSe=!ZEe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));QEe("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=WEe(VEe(this)),i=void 0===r?tSe:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!HEe(e))return DEe(t,n,e,i);for(var o,s,a,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,A=new RegExp(e.source,u+"g");(o=DEe(YEe,A,n))&&!((s=A.lastIndex)>l&&(oSe(c,sSe(n,l,o.index)),o.length>1&&o.index<n.length&&REe(nSe,c,JEe(o,1)),a=o[0].length,l=s,c.length>=i));)A.lastIndex===o.index&&A.lastIndex++;return l===n.length?!a&&iSe(A,"")||oSe(c,""):oSe(c,sSe(n,l)),c.length>i?JEe(c,0,i):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:DEe(t,this,e,r)}:t,[function(t,r){var i=VEe(this),o=null==t?void 0:$Ee(t,e);return o?DEe(o,t,i,r):DEe(n,WEe(i),t,r)},function(e,i){var o=KEe(this),s=WEe(e),a=r(n,o,s,i,n!==t);if(a.done)return a.value;var c=zEe(o,RegExp),u=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(eSe?"g":"y"),A=new c(eSe?"^(?:"+o.source+")":o,l),h=void 0===i?tSe:i>>>0;if(0===h)return[];if(0===s.length)return null===XEe(A,s)?[s]:[];for(var f=0,d=0,p=[];d<s.length;){A.lastIndex=eSe?0:d;var g,m=XEe(A,eSe?sSe(s,d):s);if(null===m||(g=rSe(GEe(A.lastIndex+(eSe?d:0)),s.length))===f)d=qEe(s,d,u);else{if(oSe(p,sSe(s,f,d)),p.length===h)return p;for(var y=1;y<=m.length-1;y++)if(oSe(p,m[y]),p.length===h)return p;d=f=g}}return oSe(p,sSe(s,f)),p}]}),!aSe,eSe);var cSe={exports:{}},uSe={exports:{}};(function(){var e,t,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?uSe.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(uSe.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var e;return 1e9*(e=t())[0]+e[1]},n=e(),o=1e9*process.uptime(),i=n-o):Date.now?(uSe.exports=function(){return Date.now()-r},r=Date.now()):(uSe.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(et);for(var lSe=uSe.exports,ASe="undefined"==typeof window?et:window,hSe=["moz","webkit"],fSe="AnimationFrame",dSe=ASe["request"+fSe],pSe=ASe["cancel"+fSe]||ASe["cancelRequest"+fSe],gSe=0;!dSe&&gSe<hSe.length;gSe++)dSe=ASe[hSe[gSe]+"Request"+fSe],pSe=ASe[hSe[gSe]+"Cancel"+fSe]||ASe[hSe[gSe]+"CancelRequest"+fSe];if(!dSe||!pSe){var mSe=0,ySe=0,vSe=[];dSe=function(e){if(0===vSe.length){var t=lSe(),r=Math.max(0,16.666666666666668-(t-mSe));mSe=r+t,setTimeout((function(){var e=vSe.slice(0);vSe.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(mSe)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return vSe.push({handle:++ySe,callback:e,cancelled:!1}),ySe},pSe=function(e){for(var t=0;t<vSe.length;t++)vSe[t].handle===e&&(vSe[t].cancelled=!0)}}cSe.exports=function(e){return dSe.call(ASe,e)},cSe.exports.cancel=function(){pSe.apply(ASe,arguments)},cSe.exports.polyfill=function(e){e||(e=ASe),e.requestAnimationFrame=dSe,e.cancelAnimationFrame=pSe};var bSe="\t\n\v\f\r \u2028\u2029\ufeff",wSe=KAe,xSe=qbe,_Se=OAe("".replace),BSe="[\t\n\v\f\r \u2028\u2029\ufeff]",ESe=RegExp("^"+BSe+BSe+"*"),SSe=RegExp(BSe+BSe+"*$"),CSe=function(e){return function(t){var r=xSe(wSe(t));return 1&e&&(r=_Se(r,ESe,"")),2&e&&(r=_Se(r,SSe,"")),r}},ISe={start:CSe(1),end:CSe(2),trim:CSe(3)},kSe=nde.PROPER,PSe=dAe,TSe=bSe,OSe=ISe.trim;nge({target:"String",proto:!0,forced:function(e){return PSe((function(){return!!TSe[e]()||"
"!=="
"[e]()||kSe&&TSe[e].name!==e}))}("trim")},{trim:function(){return OSe(this)}});var LSe=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,s=i.exec(e);if(s){var a=o(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r},this.getHelpXML=function(){for(var e=new Array,n=0;n<r.length;n++)for(var i=r[n].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var s in t)e[e.length]=s;var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(n=0;n<e.length;n++)try{var c=document.createElement("li"),u=new RGBColor(e[n]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var A=document.createTextNode(" "+e[n]+" -> "+u.toRGB()+" -> "+u.toHex());c.appendChild(l),c.appendChild(A),a.appendChild(c)}catch(e){}return a}},NSe=nge,USe=bpe.indexOf,FSe=fEe,MSe=OAe([].indexOf),RSe=!!MSe&&1/MSe([1],1,-0)<0,DSe=FSe("indexOf");NSe({target:"Array",proto:!0,forced:RSe||!DSe},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return RSe?MSe(this,e,t)||0:USe(this,e,t)}});var jSe=nge,QSe=b_e,HSe=KAe,KSe=qbe,VSe=x_e,zSe=OAe("".indexOf);jSe({target:"String",proto:!0,forced:!VSe("includes")},{includes:function(e){return!!~zSe(KSe(HSe(this)),KSe(QSe(e)),arguments.length>1?arguments[1]:void 0)}});var qSe=FAe,GSe=nge,WSe=Array.isArray||function(e){return"Array"==qSe(e)},$Se=OAe([].reverse),JSe=[1,2];GSe({target:"Array",proto:!0,forced:String(JSe)===String(JSe.reverse())},{reverse:function(){return WSe(this)&&(this.length=this.length),$Se(this)}});
|
|
1187
1187
|
/*! *****************************************************************************
|
|
1188
1188
|
Copyright (c) Microsoft Corporation.
|
|
1189
1189
|
|