@blockcerts/blockcerts-verifier 1.60.0 → 1.61.0

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.
Files changed (39) hide show
  1. package/bundle-stats.html +1 -1
  2. package/dist/EcdsaSecp256k1Signature2019-Z9cbZqwb-BZqYyWXC.js +4 -0
  3. package/dist/{Ed25519Signature2020-PVto7akI-7D-o4uG8.js → Ed25519Signature2020-gHlOabgN-BQNMKhh-.js} +4 -4
  4. package/dist/{HashlinkVerifier-qOLUtyR6-bzhltPG4.js → HashlinkVerifier-JKby3RuX-Bn4E9EeP.js} +1 -1
  5. package/dist/{MerkleProof2017-MZJbBTpc-0GcGcIV-.js → MerkleProof2017-MZJbBTpc-B7HRJzRg.js} +1 -1
  6. package/dist/{MerkleProof2017-v-cug_ka-8h-1uHue.js → MerkleProof2017-qKpIAsVw-Diu6ftp6.js} +1 -1
  7. package/dist/MerkleProof2019-lYqSLW83-CdVVDNe8.js +3 -0
  8. package/dist/checkCredentialSchemaConformity-wYKX-T36-TKejNdGn.js +1 -0
  9. package/dist/{checkRevocationStatusList2021-NUr7Ungd-8lPXcMzr.js → checkRevocationStatusList2021-Zs7RTfS8-B_SBTuUQ.js} +1 -1
  10. package/dist/controlVerificationMethod-MnvnHDi1-BAzkUIZW.js +1 -0
  11. package/dist/{did-key-common.esm-2wmtjYcU-BR_8p3eV.js → did-key-common.esm-pD02457t-BaQe2n2J.js} +3 -3
  12. package/dist/{did-key-ed25519.esm-NX9dX9Vr-fZElVDYL.js → did-key-ed25519.esm-QkrYsBOv-KuYPtNeV.js} +1 -1
  13. package/dist/{did-key-secp256k1.esm-FBi5sg1U-hK5l_sjP.js → did-key-secp256k1.esm-byA8GFc3-AosubhwX.js} +1 -1
  14. package/dist/{downloadPDF-nmBhJVDh.js → downloadPDF-B1DL4u2a.js} +2 -2
  15. package/dist/{ensureNotRevoked-gui-UMnE-kFmYZEJe.js → ensureNotRevoked-gui-UMnE-CENgoep9.js} +1 -1
  16. package/dist/{index-UlvMASNZ.js → index-CfIOMbD1.js} +1 -1
  17. package/dist/index-qAZ-fmOX-CHN5LgUq.js +1 -0
  18. package/dist/{index-o5NaLUcd-9ST97EHw.js → index-zUaES8qy-CMAhMZvu.js} +2 -2
  19. package/dist/{index.es-wVskPDvK.js → index.es-D8QzgW47.js} +1 -1
  20. package/dist/{jsonld-signatures-mX3uMDo8-kWFWdwsD.js → jsonld-signatures-Lb-laFSH-v4kRGxlk.js} +8 -8
  21. package/dist/main.js +119 -119
  22. package/dist/{purify-W53PnvWj.js → purify-C5H8D62I.js} +1 -1
  23. package/dist/{x25519-X8M7VOup-2RynHlmX.js → x25519-axOdeC_8-BeczdkXC.js} +1 -1
  24. package/package.json +3 -3
  25. package/dist/EcdsaSecp256k1Signature2019-JXyaAxSS-p7r9wTPV.js +0 -4
  26. package/dist/MerkleProof2019-IxLr0Lr4-exvrsGAt.js +0 -3
  27. package/dist/controlVerificationMethod-Ai0yOkQs-GCeqYaBn.js +0 -1
  28. /package/dist/{Suite-Bhitn5l3-e2QgHGhx.js → Suite-Bhitn5l3-D1ucdMDB.js} +0 -0
  29. /package/dist/{_commonjs-dynamic-modules-F7P8sER7-fkA6S-_a.js → _commonjs-dynamic-modules-F7P8sER7-BHR_E30J.js} +0 -0
  30. /package/dist/{base64url-qi3FT6uz-yv4mTXpu.js → base64url-qi3FT6uz-vkTPfQOh.js} +0 -0
  31. /package/dist/{elliptic-xyZmv-oA-VPyWJbY1.js → elliptic-ycTr8sXF-D-NH8siB.js} +0 -0
  32. /package/dist/{ensureNotRevoked--X9grgJr-l9FjOXvf.js → ensureNotRevoked-EDQJmT-v-DvMIgM4L.js} +0 -0
  33. /package/dist/{ensureValidIssuingKey-U4G_F_Hm-UoJe_Wnf.js → ensureValidIssuingKey-_gUzjB7e-frafTbMl.js} +0 -0
  34. /package/dist/{index-CZOUZnn4-Lnb5-WZi.js → index-CZOUZnn4-ZifknGWx.js} +0 -0
  35. /package/dist/{index-aBVDu34R-o1HUYRUQ.js → index-tKimblBp-Dgus2xdV.js} +0 -0
  36. /package/dist/{jsonld-SAOezr4P-ioHKtwiZ.js → jsonld-8ujMRGin-D_C9ciG_.js} +0 -0
  37. /package/dist/{pako.esm-jjCKMBM4-RAILONW0.js → pako.esm-jjCKMBM4-HambcU-w.js} +0 -0
  38. /package/dist/{sha256-lGrd_b3t-9eo2gOQb.js → sha256-OznnmV9J-BYFBxJ7m.js} +0 -0
  39. /package/dist/{tslib.es6-M1zqH4el-x9kNW1T_.js → tslib.es6-M1zqH4el-CmLYFWVC.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{c as t,_ as e,g as r}from"./downloadPDF-nmBhJVDh.js";import"./main.js";var i=function(t){return t&&t.Math==Math&&t},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a={},s=function(t){try{return!!t()}catch(t){return!0}},o=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=h,l=Function.prototype.call,c=u?l.bind(l):function(){return l.apply(l,arguments)},f={},g={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d=p&&!g.call({1:2},1);f.f=d?function(t){var e=p(this,t);return!!e&&e.enumerable}:g;var v,y,m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=h,b=Function.prototype,S=b.bind,w=b.call,T=x&&S.bind(w,w),O=x?function(t){return t&&T(t)}:function(t){return t&&function(){return w.apply(t,arguments)}},A=O,C=A({}.toString),P=A("".slice),E=function(t){return P(C(t),8,-1)},M=s,N=E,R=Object,_=O("".split),V=M((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?_(t,""):R(t)}:R,I=TypeError,k=function(t){if(null==t)throw I("Can't call method on "+t);return t},L=V,D=k,j=function(t){return L(D(t))},z=function(t){return"function"==typeof t},B=z,F=function(t){return"object"==typeof t?null!==t:B(t)},U=n,H=z,X=function(t,e){return arguments.length<2?(r=U[t],H(r)?r:void 0):U[t]&&U[t][e];var r},Y=O({}.isPrototypeOf),W=X("navigator","userAgent")||"",q=n,$=W,G=q.process,Q=q.Deno,Z=G&&G.versions||Q&&Q.version,K=Z&&Z.v8;K&&(y=(v=K.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!y&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(y=+v[1]);var J=y,tt=J,et=s,rt=!!Object.getOwnPropertySymbols&&!et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),it=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nt=X,at=z,st=Y,ot=Object,ht=it?function(t){return"symbol"==typeof t}:function(t){var e=nt("Symbol");return at(e)&&st(e.prototype,ot(t))},ut=String,lt=function(t){try{return ut(t)}catch(t){return"Object"}},ct=z,ft=lt,gt=TypeError,pt=function(t){if(ct(t))return t;throw gt(ft(t)+" is not a function")},dt=pt,vt=function(t,e){var r=t[e];return null==r?void 0:dt(r)},yt=c,mt=z,xt=F,bt=TypeError,St={exports:{}},wt=n,Tt=Object.defineProperty,Ot=function(t,e){try{Tt(wt,t,{value:e,configurable:!0,writable:!0})}catch(r){wt[t]=e}return e},At=Ot,Ct="__core-js_shared__",Pt=n[Ct]||At(Ct,{}),Et=Pt;(St.exports=function(t,e){return Et[t]||(Et[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Mt=St.exports,Nt=k,Rt=Object,_t=function(t){return Rt(Nt(t))},Vt=_t,It=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return It(Vt(t),e)},Lt=O,Dt=0,jt=Math.random(),zt=Lt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Dt+jt,36)},Ft=n,Ut=kt,Ht=Bt,Xt=rt,Yt=it,Wt=Mt("wks"),qt=Ft.Symbol,$t=qt&&qt.for,Gt=Yt?qt:qt&&qt.withoutSetter||Ht,Qt=function(t){if(!Ut(Wt,t)||!Xt&&"string"!=typeof Wt[t]){var e="Symbol."+t;Xt&&Ut(qt,t)?Wt[t]=qt[t]:Wt[t]=Yt&&$t?$t(e):Gt(e)}return Wt[t]},Zt=c,Kt=F,Jt=ht,te=vt,ee=function(t,e){var r,i;if("string"===e&&mt(r=t.toString)&&!xt(i=yt(r,t)))return i;if(mt(r=t.valueOf)&&!xt(i=yt(r,t)))return i;if("string"!==e&&mt(r=t.toString)&&!xt(i=yt(r,t)))return i;throw bt("Can't convert object to primitive value")},re=TypeError,ie=Qt("toPrimitive"),ne=function(t,e){if(!Kt(t)||Jt(t))return t;var r,i=te(t,ie);if(i){if(void 0===e&&(e="default"),r=Zt(i,t,e),!Kt(r)||Jt(r))return r;throw re("Can't convert object to primitive value")}return void 0===e&&(e="number"),ee(t,e)},ae=ht,se=function(t){var e=ne(t,"string");return ae(e)?e:e+""},oe=F,he=n.document,ue=oe(he)&&oe(he.createElement),le=function(t){return ue?he.createElement(t):{}},ce=le,fe=!o&&!s((function(){return 7!=Object.defineProperty(ce("div"),"a",{get:function(){return 7}}).a})),ge=o,pe=c,de=f,ve=m,ye=j,me=se,xe=kt,be=fe,Se=Object.getOwnPropertyDescriptor;a.f=ge?Se:function(t,e){if(t=ye(t),e=me(e),be)try{return Se(t,e)}catch(t){}if(xe(t,e))return ve(!pe(de.f,t,e),t[e])};var we={},Te=o&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Oe=F,Ae=String,Ce=TypeError,Pe=function(t){if(Oe(t))return t;throw Ce(Ae(t)+" is not an object")},Ee=o,Me=fe,Ne=Te,Re=Pe,_e=se,Ve=TypeError,Ie=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Le="enumerable",De="configurable",je="writable";we.f=Ee?Ne?function(t,e,r){if(Re(t),e=_e(e),Re(r),"function"==typeof t&&"prototype"===e&&"value"in r&&je in r&&!r[je]){var i=ke(t,e);i&&i[je]&&(t[e]=r.value,r={configurable:De in r?r[De]:i[De],enumerable:Le in r?r[Le]:i[Le],writable:!1})}return Ie(t,e,r)}:Ie:function(t,e,r){if(Re(t),e=_e(e),Re(r),Me)try{return Ie(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ve("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var ze=we,Be=m,Fe=o?function(t,e,r){return ze.f(t,e,Be(1,r))}:function(t,e,r){return t[e]=r,t},Ue={exports:{}},He=o,Xe=kt,Ye=Function.prototype,We=He&&Object.getOwnPropertyDescriptor,qe=Xe(Ye,"name"),$e={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!He||He&&We(Ye,"name").configurable)},Ge=z,Qe=Pt,Ze=O(Function.toString);Ge(Qe.inspectSource)||(Qe.inspectSource=function(t){return Ze(t)});var Ke,Je,tr,er=Qe.inspectSource,rr=z,ir=er,nr=n.WeakMap,ar=rr(nr)&&/native code/.test(ir(nr)),sr=Bt,or=Mt("keys"),hr=function(t){return or[t]||(or[t]=sr(t))},ur={},lr=ar,cr=n,fr=O,gr=F,pr=Fe,dr=kt,vr=Pt,yr=hr,mr=ur,xr="Object already initialized",br=cr.TypeError,Sr=cr.WeakMap;if(lr||vr.state){var wr=vr.state||(vr.state=new Sr),Tr=fr(wr.get),Or=fr(wr.has),Ar=fr(wr.set);Ke=function(t,e){if(Or(wr,t))throw new br(xr);return e.facade=t,Ar(wr,t,e),e},Je=function(t){return Tr(wr,t)||{}},tr=function(t){return Or(wr,t)}}else{var Cr=yr("state");mr[Cr]=!0,Ke=function(t,e){if(dr(t,Cr))throw new br(xr);return e.facade=t,pr(t,Cr,e),e},Je=function(t){return dr(t,Cr)?t[Cr]:{}},tr=function(t){return dr(t,Cr)}}var Pr={set:Ke,get:Je,has:tr,enforce:function(t){return tr(t)?Je(t):Ke(t,{})},getterFor:function(t){return function(e){var r;if(!gr(e)||(r=Je(e)).type!==t)throw br("Incompatible receiver, "+t+" required");return r}}},Er=s,Mr=z,Nr=kt,Rr=o,_r=$e.CONFIGURABLE,Vr=er,Ir=Pr.enforce,kr=Pr.get,Lr=Object.defineProperty,Dr=Rr&&!Er((function(){return 8!==Lr((function(){}),"length",{value:8}).length})),jr=String(String).split("String"),zr=Ue.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Nr(t,"name")||_r&&t.name!==e)&&(Rr?Lr(t,"name",{value:e,configurable:!0}):t.name=e),Dr&&r&&Nr(r,"arity")&&t.length!==r.arity&&Lr(t,"length",{value:r.arity});try{r&&Nr(r,"constructor")&&r.constructor?Rr&&Lr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Ir(t);return Nr(i,"source")||(i.source=jr.join("string"==typeof e?e:"")),t};Function.prototype.toString=zr((function(){return Mr(this)&&kr(this).source||Vr(this)}),"toString");var Br=Ue.exports,Fr=z,Ur=we,Hr=Br,Xr=Ot,Yr=function(t,e,r,i){i||(i={});var n=i.enumerable,a=void 0!==i.name?i.name:e;if(Fr(r)&&Hr(r,a,i),i.global)n?t[e]=r:Xr(e,r);else{try{i.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=r:Ur.f(t,e,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},Wr={},qr=Math.ceil,$r=Math.floor,Gr=Math.trunc||function(t){var e=+t;return(e>0?$r:qr)(e)},Qr=Gr,Zr=function(t){var e=+t;return e!=e||0===e?0:Qr(e)},Kr=Zr,Jr=Math.max,ti=Math.min,ei=function(t,e){var r=Kr(t);return r<0?Jr(r+e,0):ti(r,e)},ri=Zr,ii=Math.min,ni=function(t){return t>0?ii(ri(t),9007199254740991):0},ai=ni,si=function(t){return ai(t.length)},oi=j,hi=ei,ui=si,li=function(t){return function(e,r,i){var n,a=oi(e),s=ui(a),o=hi(i,s);if(t&&r!=r){for(;s>o;)if((n=a[o++])!=n)return!0}else for(;s>o;o++)if((t||o in a)&&a[o]===r)return t||o||0;return!t&&-1}},ci={includes:li(!0),indexOf:li(!1)},fi=kt,gi=j,pi=ci.indexOf,di=ur,vi=O([].push),yi=function(t,e){var r,i=gi(t),n=0,a=[];for(r in i)!fi(di,r)&&fi(i,r)&&vi(a,r);for(;e.length>n;)fi(i,r=e[n++])&&(~pi(a,r)||vi(a,r));return a},mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xi=yi,bi=mi.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return xi(t,bi)};var Si={};Si.f=Object.getOwnPropertySymbols;var wi=X,Ti=Wr,Oi=Si,Ai=Pe,Ci=O([].concat),Pi=wi("Reflect","ownKeys")||function(t){var e=Ti.f(Ai(t)),r=Oi.f;return r?Ci(e,r(t)):e},Ei=kt,Mi=Pi,Ni=a,Ri=we,_i=s,Vi=z,Ii=/#|\.prototype\./,ki=function(t,e){var r=Di[Li(t)];return r==zi||r!=ji&&(Vi(e)?_i(e):!!e)},Li=ki.normalize=function(t){return String(t).replace(Ii,".").toLowerCase()},Di=ki.data={},ji=ki.NATIVE="N",zi=ki.POLYFILL="P",Bi=ki,Fi=n,Ui=a.f,Hi=Fe,Xi=Yr,Yi=Ot,Wi=function(t,e,r){for(var i=Mi(e),n=Ri.f,a=Ni.f,s=0;s<i.length;s++){var o=i[s];Ei(t,o)||r&&Ei(r,o)||n(t,o,a(e,o))}},qi=Bi,$i=function(t,e){var r,i,n,a,s,o=t.target,h=t.global,u=t.stat;if(r=h?Fi:u?Fi[o]||Yi(o,{}):(Fi[o]||{}).prototype)for(i in e){if(a=e[i],n=t.dontCallGetSet?(s=Ui(r,i))&&s.value:r[i],!qi(h?i:o+(u?".":"#")+i,t.forced)&&void 0!==n){if(typeof a==typeof n)continue;Wi(a,n)}(t.sham||n&&n.sham)&&Hi(a,"sham",!0),Xi(r,i,a,t)}},Gi="process"==E(n.process),Qi=z,Zi=String,Ki=TypeError,Ji=O,tn=Pe,en=function(t){if("object"==typeof t||Qi(t))return t;throw Ki("Can't set "+Zi(t)+" as a prototype")},rn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Ji(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return tn(r),en(i),e?t(r,i):r.__proto__=i,r}}():void 0),nn=we.f,an=kt,sn=Qt("toStringTag"),on=function(t,e,r){t&&!r&&(t=t.prototype),t&&!an(t,sn)&&nn(t,sn,{configurable:!0,value:e})},hn=X,un=we,ln=o,cn=Qt("species"),fn=Y,gn=TypeError,pn={};pn[Qt("toStringTag")]="z";var dn="[object z]"===String(pn),vn=z,yn=E,mn=Qt("toStringTag"),xn=Object,bn="Arguments"==yn(function(){return arguments}()),Sn=dn?yn:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=xn(t),mn))?r:bn?yn(e):"Object"==(i=yn(e))&&vn(e.callee)?"Arguments":i},wn=O,Tn=s,On=z,An=Sn,Cn=er,Pn=function(){},En=[],Mn=X("Reflect","construct"),Nn=/^\s*(?:class|function)\b/,Rn=wn(Nn.exec),_n=!Nn.exec(Pn),Vn=function(t){if(!On(t))return!1;try{return Mn(Pn,En,t),!0}catch(t){return!1}},In=function(t){if(!On(t))return!1;switch(An(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _n||!!Rn(Nn,Cn(t))}catch(t){return!0}};In.sham=!0;var kn,Ln,Dn,jn,zn=!Mn||Tn((function(){var t;return Vn(Vn.call)||!Vn(Object)||!Vn((function(){t=!0}))||t}))?In:Vn,Bn=zn,Fn=lt,Un=TypeError,Hn=Pe,Xn=function(t){if(Bn(t))return t;throw Un(Fn(t)+" is not a constructor")},Yn=Qt("species"),Wn=function(t,e){var r,i=Hn(t).constructor;return void 0===i||null==(r=Hn(i)[Yn])?e:Xn(r)},qn=h,$n=Function.prototype,Gn=$n.apply,Qn=$n.call,Zn="object"==typeof Reflect&&Reflect.apply||(qn?Qn.bind(Gn):function(){return Qn.apply(Gn,arguments)}),Kn=pt,Jn=h,ta=O(O.bind),ea=function(t,e){return Kn(t),void 0===e?t:Jn?ta(t,e):function(){return t.apply(e,arguments)}},ra=X("document","documentElement"),ia=O([].slice),na=TypeError,aa=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),sa=n,oa=Zn,ha=ea,ua=z,la=kt,ca=s,fa=ra,ga=ia,pa=le,da=function(t,e){if(t<e)throw na("Not enough arguments");return t},va=aa,ya=Gi,ma=sa.setImmediate,xa=sa.clearImmediate,ba=sa.process,Sa=sa.Dispatch,wa=sa.Function,Ta=sa.MessageChannel,Oa=sa.String,Aa=0,Ca={},Pa="onreadystatechange";try{kn=sa.location}catch(t){}var Ea=function(t){if(la(Ca,t)){var e=Ca[t];delete Ca[t],e()}},Ma=function(t){return function(){Ea(t)}},Na=function(t){Ea(t.data)},Ra=function(t){sa.postMessage(Oa(t),kn.protocol+"//"+kn.host)};ma&&xa||(ma=function(t){da(arguments.length,1);var e=ua(t)?t:wa(t),r=ga(arguments,1);return Ca[++Aa]=function(){oa(e,void 0,r)},Ln(Aa),Aa},xa=function(t){delete Ca[t]},ya?Ln=function(t){ba.nextTick(Ma(t))}:Sa&&Sa.now?Ln=function(t){Sa.now(Ma(t))}:Ta&&!va?(jn=(Dn=new Ta).port2,Dn.port1.onmessage=Na,Ln=ha(jn.postMessage,jn)):sa.addEventListener&&ua(sa.postMessage)&&!sa.importScripts&&kn&&"file:"!==kn.protocol&&!ca(Ra)?(Ln=Ra,sa.addEventListener("message",Na,!1)):Ln=Pa in pa("script")?function(t){fa.appendChild(pa("script"))[Pa]=function(){fa.removeChild(this),Ea(t)}}:function(t){setTimeout(Ma(t),0)});var _a,Va,Ia,ka,La,Da,ja,za,Ba={set:ma,clear:xa},Fa=n,Ua=/ipad|iphone|ipod/i.test(W)&&void 0!==Fa.Pebble,Ha=/web0s(?!.*chrome)/i.test(W),Xa=n,Ya=ea,Wa=a.f,qa=Ba.set,$a=aa,Ga=Ua,Qa=Ha,Za=Gi,Ka=Xa.MutationObserver||Xa.WebKitMutationObserver,Ja=Xa.document,ts=Xa.process,es=Xa.Promise,rs=Wa(Xa,"queueMicrotask"),is=rs&&rs.value;is||(_a=function(){var t,e;for(Za&&(t=ts.domain)&&t.exit();Va;){e=Va.fn,Va=Va.next;try{e()}catch(t){throw Va?ka():Ia=void 0,t}}Ia=void 0,t&&t.enter()},$a||Za||Qa||!Ka||!Ja?!Ga&&es&&es.resolve?((ja=es.resolve(void 0)).constructor=es,za=Ya(ja.then,ja),ka=function(){za(_a)}):Za?ka=function(){ts.nextTick(_a)}:(qa=Ya(qa,Xa),ka=function(){qa(_a)}):(La=!0,Da=Ja.createTextNode(""),new Ka(_a).observe(Da,{characterData:!0}),ka=function(){Da.data=La=!La}));var ns=is||function(t){var e={fn:t,next:void 0};Ia&&(Ia.next=e),Va||(Va=e,ka()),Ia=e},as=n,ss=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},os=function(){this.head=null,this.tail=null};os.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var hs=os,us=n.Promise,ls="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,cs=!ls&&!Gi&&"object"==typeof window&&"object"==typeof document,fs=n,gs=us,ps=z,ds=Bi,vs=er,ys=Qt,ms=cs,xs=ls,bs=J;gs&&gs.prototype;var Ss=ys("species"),ws=!1,Ts=ps(fs.PromiseRejectionEvent),Os=ds("Promise",(function(){var t=vs(gs),e=t!==String(gs);if(!e&&66===bs)return!0;if(!bs||bs<51||!/native code/.test(t)){var r=new gs((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Ss]=i,!(ws=r.then((function(){}))instanceof i))return!0}return!e&&(ms||xs)&&!Ts})),As={CONSTRUCTOR:Os,REJECTION_EVENT:Ts,SUBCLASSING:ws},Cs={},Ps=pt,Es=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=i})),this.resolve=Ps(e),this.reject=Ps(r)};Cs.f=function(t){return new Es(t)};var Ms,Ns,Rs,_s=$i,Vs=Gi,Is=n,ks=c,Ls=Yr,Ds=rn,js=on,zs=function(t){var e=hn(t),r=un.f;ln&&e&&!e[cn]&&r(e,cn,{configurable:!0,get:function(){return this}})},Bs=pt,Fs=z,Us=F,Hs=function(t,e){if(fn(e,t))return t;throw gn("Incorrect invocation")},Xs=Wn,Ys=Ba.set,Ws=ns,qs=function(t,e){var r=as.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},$s=ss,Gs=hs,Qs=Pr,Zs=us,Ks=Cs,Js="Promise",to=As.CONSTRUCTOR,eo=As.REJECTION_EVENT,ro=As.SUBCLASSING,io=Qs.getterFor(Js),no=Qs.set,ao=Zs&&Zs.prototype,so=Zs,oo=ao,ho=Is.TypeError,uo=Is.document,lo=Is.process,co=Ks.f,fo=co,go=!!(uo&&uo.createEvent&&Is.dispatchEvent),po="unhandledrejection",vo=function(t){var e;return!(!Us(t)||!Fs(e=t.then))&&e},yo=function(t,e){var r,i,n,a=e.value,s=1==e.state,o=s?t.ok:t.fail,h=t.resolve,u=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&wo(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?u(ho("Promise-chain cycle")):(i=vo(r))?ks(i,r,h,u):h(r)):u(a)}catch(t){l&&!n&&l.exit(),u(t)}},mo=function(t,e){t.notified||(t.notified=!0,Ws((function(){for(var r,i=t.reactions;r=i.get();)yo(r,t);t.notified=!1,e&&!t.rejection&&bo(t)})))},xo=function(t,e,r){var i,n;go?((i=uo.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),Is.dispatchEvent(i)):i={promise:e,reason:r},!eo&&(n=Is["on"+t])?n(i):t===po&&qs("Unhandled promise rejection",r)},bo=function(t){ks(Ys,Is,(function(){var e,r=t.facade,i=t.value;if(So(t)&&(e=$s((function(){Vs?lo.emit("unhandledRejection",i,r):xo(po,r,i)})),t.rejection=Vs||So(t)?2:1,e.error))throw e.value}))},So=function(t){return 1!==t.rejection&&!t.parent},wo=function(t){ks(Ys,Is,(function(){var e=t.facade;Vs?lo.emit("rejectionHandled",e):xo("rejectionhandled",e,t.value)}))},To=function(t,e,r){return function(i){t(e,i,r)}},Oo=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,mo(t,!0))},Ao=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ho("Promise can't be resolved itself");var i=vo(e);i?Ws((function(){var r={done:!1};try{ks(i,e,To(Ao,r,t),To(Oo,r,t))}catch(e){Oo(r,e,t)}})):(t.value=e,t.state=1,mo(t,!1))}catch(e){Oo({done:!1},e,t)}}};if(to&&(oo=(so=function(t){Hs(this,oo),Bs(t),ks(Ms,this);var e=io(this);try{t(To(Ao,e),To(Oo,e))}catch(t){Oo(e,t)}}).prototype,(Ms=function(t){no(this,{type:Js,done:!1,notified:!1,parent:!1,reactions:new Gs,rejection:!1,state:0,value:void 0})}).prototype=Ls(oo,"then",(function(t,e){var r=io(this),i=co(Xs(this,so));return r.parent=!0,i.ok=!Fs(t)||t,i.fail=Fs(e)&&e,i.domain=Vs?lo.domain:void 0,0==r.state?r.reactions.add(i):Ws((function(){yo(i,r)})),i.promise})),Ns=function(){var t=new Ms,e=io(t);this.promise=t,this.resolve=To(Ao,e),this.reject=To(Oo,e)},Ks.f=co=function(t){return t===so||undefined===t?new Ns(t):fo(t)},Fs(Zs)&&ao!==Object.prototype)){Rs=ao.then,ro||Ls(ao,"then",(function(t,e){var r=this;return new so((function(t,e){ks(Rs,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete ao.constructor}catch(t){}Ds&&Ds(ao,oo)}_s({global:!0,constructor:!0,wrap:!0,forced:to},{Promise:so}),js(so,Js,!1),zs(Js);var Co={},Po=Co,Eo=Qt("iterator"),Mo=Array.prototype,No=Sn,Ro=vt,_o=Co,Vo=Qt("iterator"),Io=function(t){if(null!=t)return Ro(t,Vo)||Ro(t,"@@iterator")||_o[No(t)]},ko=c,Lo=pt,Do=Pe,jo=lt,zo=Io,Bo=TypeError,Fo=c,Uo=Pe,Ho=vt,Xo=ea,Yo=c,Wo=Pe,qo=lt,$o=function(t){return void 0!==t&&(Po.Array===t||Mo[Eo]===t)},Go=si,Qo=Y,Zo=function(t,e){var r=arguments.length<2?zo(t):e;if(Lo(r))return Do(ko(r,t));throw Bo(jo(t)+" is not iterable")},Ko=Io,Jo=function(t,e,r){var i,n;Uo(t);try{if(!(i=Ho(t,"return"))){if("throw"===e)throw r;return r}i=Fo(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw r;if(n)throw i;return Uo(i),r},th=TypeError,eh=function(t,e){this.stopped=t,this.result=e},rh=eh.prototype,ih=function(t,e,r){var i,n,a,s,o,h,u,l=r&&r.that,c=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),g=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=Xo(e,l),v=function(t){return i&&Jo(i,"normal",t),new eh(!0,t)},y=function(t){return c?(Wo(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(f)i=t.iterator;else if(g)i=t;else{if(!(n=Ko(t)))throw th(qo(t)+" is not iterable");if($o(n)){for(a=0,s=Go(t);s>a;a++)if((o=y(t[a]))&&Qo(rh,o))return o;return new eh(!1)}i=Zo(t,n)}for(h=f?t.next:i.next;!(u=Yo(h,i)).done;){try{o=y(u.value)}catch(t){Jo(i,"throw",t)}if("object"==typeof o&&o&&Qo(rh,o))return o}return new eh(!1)},nh=Qt("iterator"),ah=!1;try{var sh=0,oh={next:function(){return{done:!!sh++}},return:function(){ah=!0}};oh[nh]=function(){return this},Array.from(oh,(function(){throw 2}))}catch(t){}var hh=us,uh=function(t,e){if(!e&&!ah)return!1;var r=!1;try{var i={};i[nh]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r},lh=As.CONSTRUCTOR||!uh((function(t){hh.all(t).then(void 0,(function(){}))})),ch=c,fh=pt,gh=Cs,ph=ss,dh=ih;$i({target:"Promise",stat:!0,forced:lh},{all:function(t){var e=this,r=gh.f(e),i=r.resolve,n=r.reject,a=ph((function(){var r=fh(e.resolve),a=[],s=0,o=1;dh(t,(function(t){var h=s++,u=!1;o++,ch(r,e,t).then((function(t){u||(u=!0,a[h]=t,--o||i(a))}),n)})),--o||i(a)}));return a.error&&n(a.value),r.promise}});var vh=$i,yh=As.CONSTRUCTOR,mh=us,xh=X,bh=z,Sh=Yr,wh=mh&&mh.prototype;if(vh({target:"Promise",proto:!0,forced:yh,real:!0},{catch:function(t){return this.then(void 0,t)}}),bh(mh)){var Th=xh("Promise").prototype.catch;wh.catch!==Th&&Sh(wh,"catch",Th,{unsafe:!0})}var Oh=c,Ah=pt,Ch=Cs,Ph=ss,Eh=ih;$i({target:"Promise",stat:!0,forced:lh},{race:function(t){var e=this,r=Ch.f(e),i=r.reject,n=Ph((function(){var n=Ah(e.resolve);Eh(t,(function(t){Oh(n,e,t).then(r.resolve,i)}))}));return n.error&&i(n.value),r.promise}});var Mh=c,Nh=Cs;$i({target:"Promise",stat:!0,forced:As.CONSTRUCTOR},{reject:function(t){var e=Nh.f(this);return Mh(e.reject,void 0,t),e.promise}});var Rh=Pe,_h=F,Vh=Cs,Ih=$i,kh=As.CONSTRUCTOR,Lh=function(t,e){if(Rh(t),_h(e)&&e.constructor===t)return e;var r=Vh.f(t);return(0,r.resolve)(e),r.promise};function Dh(t,e,r,i,n,a,s){try{var o=t[a](s),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function jh(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){Dh(a,i,n,s,o,"next",t)}function o(t){Dh(a,i,n,s,o,"throw",t)}s(void 0)}))}}X("Promise"),Ih({target:"Promise",stat:!0,forced:kh},{resolve:function(t){return Lh(this,t)}});var zh=Sn,Bh=String,Fh=function(t){if("Symbol"===zh(t))throw TypeError("Cannot convert a Symbol value to a string");return Bh(t)},Uh=Pe,Hh=function(){var t=Uh(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Xh=s,Yh=n.RegExp,Wh=Xh((function(){var t=Yh("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),qh=Wh||Xh((function(){return!Yh("a","y").sticky})),$h={BROKEN_CARET:Wh||Xh((function(){var t=Yh("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:qh,UNSUPPORTED_Y:Wh},Gh={},Qh=yi,Zh=mi,Kh=Object.keys||function(t){return Qh(t,Zh)},Jh=o,tu=Te,eu=we,ru=Pe,iu=j,nu=Kh;Gh.f=Jh&&!tu?Object.defineProperties:function(t,e){ru(t);for(var r,i=iu(e),n=nu(e),a=n.length,s=0;a>s;)eu.f(t,r=n[s++],i[r]);return t};var au,su=Pe,ou=Gh,hu=mi,uu=ur,lu=ra,cu=le,fu="prototype",gu="script",pu=hr("IE_PROTO"),du=function(){},vu=function(t){return"<"+gu+">"+t+"</"+gu+">"},yu=function(t){t.write(vu("")),t.close();var e=t.parentWindow.Object;return t=null,e},mu=function(){try{au=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;mu="undefined"!=typeof document?document.domain&&au?yu(au):(e=cu("iframe"),r="java"+gu+":",e.style.display="none",lu.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(vu("document.F=Object")),t.close(),t.F):yu(au);for(var i=hu.length;i--;)delete mu[fu][hu[i]];return mu()};uu[pu]=!0;var xu,bu,Su=Object.create||function(t,e){var r;return null!==t?(du[fu]=su(t),r=new du,du[fu]=null,r[pu]=t):r=mu(),void 0===e?r:ou.f(r,e)},wu=s,Tu=n.RegExp,Ou=wu((function(){var t=Tu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Au=s,Cu=n.RegExp,Pu=Au((function(){var t=Cu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Eu=c,Mu=O,Nu=Fh,Ru=Hh,_u=$h,Vu=Su,Iu=Pr.get,ku=Ou,Lu=Pu,Du=Mt("native-string-replace",String.prototype.replace),ju=RegExp.prototype.exec,zu=ju,Bu=Mu("".charAt),Fu=Mu("".indexOf),Uu=Mu("".replace),Hu=Mu("".slice),Xu=(bu=/b*/g,Eu(ju,xu=/a/,"a"),Eu(ju,bu,"a"),0!==xu.lastIndex||0!==bu.lastIndex),Yu=_u.BROKEN_CARET,Wu=void 0!==/()??/.exec("")[1];(Xu||Wu||Yu||ku||Lu)&&(zu=function(t){var e,r,i,n,a,s,o,h=this,u=Iu(h),l=Nu(t),c=u.raw;if(c)return c.lastIndex=h.lastIndex,e=Eu(zu,c,l),h.lastIndex=c.lastIndex,e;var f=u.groups,g=Yu&&h.sticky,p=Eu(Ru,h),d=h.source,v=0,y=l;if(g&&(p=Uu(p,"y",""),-1===Fu(p,"g")&&(p+="g"),y=Hu(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Bu(l,h.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,v++),r=new RegExp("^(?:"+d+")",p)),Wu&&(r=new RegExp("^"+d+"$(?!\\s)",p)),Xu&&(i=h.lastIndex),n=Eu(ju,g?r:h,y),g?n?(n.input=Hu(n.input,v),n[0]=Hu(n[0],v),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Xu&&n&&(h.lastIndex=h.global?n.index+n[0].length:i),Wu&&n&&n.length>1&&Eu(Du,n[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n&&f)for(n.groups=s=Vu(null),a=0;a<f.length;a++)s[(o=f[a])[0]]=n[o[1]];return n});var qu=zu;$i({target:"RegExp",proto:!0,forced:/./.exec!==qu},{exec:qu});var $u=O,Gu=Yr,Qu=qu,Zu=s,Ku=Qt,Ju=Fe,tl=Ku("species"),el=RegExp.prototype,rl=function(t,e,r,i){var n=Ku(t),a=!Zu((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),s=a&&!Zu((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[tl]=function(){return r},r.flags="",r[n]=/./[n]),r.exec=function(){return e=!0,null},r[n](""),!e}));if(!a||!s||r){var o=$u(/./[n]),h=e(n,""[t],(function(t,e,r,i,n){var s=$u(t),h=e.exec;return h===Qu||h===el.exec?a&&!n?{done:!0,value:o(e,r,i)}:{done:!0,value:s(r,e,i)}:{done:!1}}));Gu(String.prototype,t,h[0]),Gu(el,n,h[1])}i&&Ju(el[n],"sham",!0)},il=O,nl=Zr,al=Fh,sl=k,ol=il("".charAt),hl=il("".charCodeAt),ul=il("".slice),ll=function(t){return function(e,r){var i,n,a=al(sl(e)),s=nl(r),o=a.length;return s<0||s>=o?t?"":void 0:(i=hl(a,s))<55296||i>56319||s+1===o||(n=hl(a,s+1))<56320||n>57343?t?ol(a,s):i:t?ul(a,s,s+2):n-56320+(i-55296<<10)+65536}},cl={codeAt:ll(!1),charAt:ll(!0)}.charAt,fl=function(t,e,r){return e+(r?cl(t,e).length:1)},gl=c,pl=Pe,dl=z,vl=E,yl=qu,ml=TypeError,xl=function(t,e){var r=t.exec;if(dl(r)){var i=gl(r,t,e);return null!==i&&pl(i),i}if("RegExp"===vl(t))return gl(yl,t,e);throw ml("RegExp#exec called on incompatible receiver")},bl=c,Sl=Pe,wl=ni,Tl=Fh,Ol=k,Al=vt,Cl=fl,Pl=xl;rl("match",(function(t,e,r){return[function(e){var r=Ol(this),i=null==e?void 0:Al(e,t);return i?bl(i,e,r):new RegExp(e)[t](Tl(r))},function(t){var i=Sl(this),n=Tl(t),a=r(e,i,n);if(a.done)return a.value;if(!i.global)return Pl(i,n);var s=i.unicode;i.lastIndex=0;for(var o,h=[],u=0;null!==(o=Pl(i,n));){var l=Tl(o[0]);h[u]=l,""===l&&(i.lastIndex=Cl(n,wl(i.lastIndex),s)),u++}return 0===u?null:h}]}));var El=O,Ml=_t,Nl=Math.floor,Rl=El("".charAt),_l=El("".replace),Vl=El("".slice),Il=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kl=/\$([$&'`]|\d{1,2})/g,Ll=Zn,Dl=c,jl=O,zl=rl,Bl=s,Fl=Pe,Ul=z,Hl=Zr,Xl=ni,Yl=Fh,Wl=k,ql=fl,$l=vt,Gl=function(t,e,r,i,n,a){var s=r+t.length,o=i.length,h=kl;return void 0!==n&&(n=Ml(n),h=Il),_l(a,h,(function(a,h){var u;switch(Rl(h,0)){case"$":return"$";case"&":return t;case"`":return Vl(e,0,r);case"'":return Vl(e,s);case"<":u=n[Vl(h,1,-1)];break;default:var l=+h;if(0===l)return a;if(l>o){var c=Nl(l/10);return 0===c?a:c<=o?void 0===i[c-1]?Rl(h,1):i[c-1]+Rl(h,1):a}u=i[l-1]}return void 0===u?"":u}))},Ql=xl,Zl=Qt("replace"),Kl=Math.max,Jl=Math.min,tc=jl([].concat),ec=jl([].push),rc=jl("".indexOf),ic=jl("".slice),nc="$0"==="a".replace(/./,"$0"),ac=!!/./[Zl]&&""===/./[Zl]("a","$0");zl("replace",(function(t,e,r){var i=ac?"$":"$0";return[function(t,r){var i=Wl(this),n=null==t?void 0:$l(t,Zl);return n?Dl(n,t,i,r):Dl(e,Yl(i),t,r)},function(t,n){var a=Fl(this),s=Yl(t);if("string"==typeof n&&-1===rc(n,i)&&-1===rc(n,"$<")){var o=r(e,a,s,n);if(o.done)return o.value}var h=Ul(n);h||(n=Yl(n));var u=a.global;if(u){var l=a.unicode;a.lastIndex=0}for(var c=[];;){var f=Ql(a,s);if(null===f)break;if(ec(c,f),!u)break;""===Yl(f[0])&&(a.lastIndex=ql(s,Xl(a.lastIndex),l))}for(var g,p="",d=0,v=0;v<c.length;v++){for(var y=Yl((f=c[v])[0]),m=Kl(Jl(Hl(f.index),s.length),0),x=[],b=1;b<f.length;b++)ec(x,void 0===(g=f[b])?g:String(g));var S=f.groups;if(h){var w=tc([y],x,m,s);void 0!==S&&ec(w,S);var T=Yl(Ll(n,void 0,w))}else T=Gl(y,s,m,x,S,n);m>=d&&(p+=ic(s,d,m)+T,d=m+y.length)}return p+ic(s,d)}]}),!!Bl((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!nc||ac);var sc,oc=F,hc=E,uc=Qt("match"),lc=function(t){var e;return oc(t)&&(void 0!==(e=t[uc])?!!e:"RegExp"==hc(t))},cc=lc,fc=TypeError,gc=function(t){if(cc(t))throw fc("The method doesn't accept regular expressions");return t},pc=Qt("match"),dc=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[pc]=!1,"/./"[t](e)}catch(t){}}return!1},vc=$i,yc=O,mc=a.f,xc=ni,bc=Fh,Sc=gc,wc=k,Tc=dc,Oc=yc("".startsWith),Ac=yc("".slice),Cc=Math.min,Pc=Tc("startsWith");vc({target:"String",proto:!0,forced:!!(Pc||(sc=mc(String.prototype,"startsWith"),!sc||sc.writable))&&!Pc},{startsWith:function(t){var e=bc(wc(this));Sc(t);var r=xc(Cc(arguments.length>1?arguments[1]:void 0,e.length)),i=bc(t);return Oc?Oc(e,i,r):Ac(e,r,r+i.length)===i}});var Ec=Qt,Mc=Su,Nc=we.f,Rc=Ec("unscopables"),_c=Array.prototype;null==_c[Rc]&&Nc(_c,Rc,{configurable:!0,value:Mc(null)});var Vc,Ic,kc,Lc=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dc=kt,jc=z,zc=_t,Bc=Lc,Fc=hr("IE_PROTO"),Uc=Object,Hc=Uc.prototype,Xc=Bc?Uc.getPrototypeOf:function(t){var e=zc(t);if(Dc(e,Fc))return e[Fc];var r=e.constructor;return jc(r)&&e instanceof r?r.prototype:e instanceof Uc?Hc:null},Yc=s,Wc=z,qc=Xc,$c=Yr,Gc=Qt("iterator"),Qc=!1;[].keys&&("next"in(kc=[].keys())?(Ic=qc(qc(kc)))!==Object.prototype&&(Vc=Ic):Qc=!0);var Zc=null==Vc||Yc((function(){var t={};return Vc[Gc].call(t)!==t}));Zc&&(Vc={}),Wc(Vc[Gc])||$c(Vc,Gc,(function(){return this}));var Kc={IteratorPrototype:Vc,BUGGY_SAFARI_ITERATORS:Qc},Jc=Kc.IteratorPrototype,tf=Su,ef=m,rf=on,nf=Co,af=function(){return this},sf=$i,of=c,hf=z,uf=function(t,e,r,i){var n=e+" Iterator";return t.prototype=tf(Jc,{next:ef(+!i,r)}),rf(t,n,!1),nf[n]=af,t},lf=Xc,cf=rn,ff=on,gf=Fe,pf=Yr,df=Co,vf=$e.PROPER,yf=$e.CONFIGURABLE,mf=Kc.IteratorPrototype,xf=Kc.BUGGY_SAFARI_ITERATORS,bf=Qt("iterator"),Sf="keys",wf="values",Tf="entries",Of=function(){return this},Af=j,Cf=function(t){_c[Rc][t]=!0},Pf=Co,Ef=Pr,Mf=we.f,Nf=function(t,e,r,i,n,a,s){uf(r,e,i);var o,h,u,l=function(t){if(t===n&&d)return d;if(!xf&&t in g)return g[t];switch(t){case Sf:case wf:case Tf:return function(){return new r(this,t)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,g=t.prototype,p=g[bf]||g["@@iterator"]||n&&g[n],d=!xf&&p||l(n),v="Array"==e&&g.entries||p;if(v&&(o=lf(v.call(new t)))!==Object.prototype&&o.next&&(lf(o)!==mf&&(cf?cf(o,mf):hf(o[bf])||pf(o,bf,Of)),ff(o,c,!0)),vf&&n==wf&&p&&p.name!==wf&&(yf?gf(g,"name",wf):(f=!0,d=function(){return of(p,this)})),n)if(h={values:l(wf),keys:a?d:l(Sf),entries:l(Tf)},s)for(u in h)(xf||f||!(u in g))&&pf(g,u,h[u]);else sf({target:e,proto:!0,forced:xf||f},h);return g[bf]!==d&&pf(g,bf,d,{name:n}),df[e]=d,h},Rf=o,_f="Array Iterator",Vf=Ef.set,If=Ef.getterFor(_f),kf=Nf(Array,"Array",(function(t,e){Vf(this,{type:_f,target:Af(t),index:0,kind:e})}),(function(){var t=If(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),Lf=Pf.Arguments=Pf.Array;if(Cf("keys"),Cf("values"),Cf("entries"),Rf&&"values"!==Lf.name)try{Mf(Lf,"name",{value:"values"})}catch(t){}var Df=le("span").classList,jf=Df&&Df.constructor&&Df.constructor.prototype,zf=jf===Object.prototype?void 0:jf,Bf=n,Ff={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},Uf=zf,Hf=kf,Xf=Fe,Yf=Qt,Wf=Yf("iterator"),qf=Yf("toStringTag"),$f=Hf.values,Gf=function(t,e){if(t){if(t[Wf]!==$f)try{Xf(t,Wf,$f)}catch(e){t[Wf]=$f}if(t[qf]||Xf(t,qf,e),Ff[e])for(var r in Hf)if(t[r]!==Hf[r])try{Xf(t,r,Hf[r])}catch(e){t[r]=Hf[r]}}};for(var Qf in Ff)Gf(Bf[Qf]&&Bf[Qf].prototype,Qf);function Zf(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,r||"default");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}function Kf(t,e,r){return(e=Zf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Gf(Uf,"DOMTokenList");var Jf=pt,tg=_t,eg=V,rg=si,ig=TypeError,ng=function(t){return function(e,r,i,n){Jf(r);var a=tg(e),s=eg(a),o=rg(a),h=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(h in s){n=s[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw ig("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in s&&(n=r(n,s[h],h,a));return n}},ag={left:ng(!1),right:ng(!0)},sg=s,og=function(t,e){var r=[][t];return!!r&&sg((function(){r.call(null,e||function(){return 1},1)}))},hg=ag.left,ug=J,lg=Gi;$i({target:"Array",proto:!0,forced:!og("reduce")||!lg&&ug>79&&ug<83},{reduce:function(t){var e=arguments.length;return hg(this,t,e,e>1?arguments[1]:void 0)}});var cg=$i,fg=O,gg=a.f,pg=ni,dg=Fh,vg=gc,yg=k,mg=dc,xg=fg("".endsWith),bg=fg("".slice),Sg=Math.min,wg=mg("endsWith"),Tg=!wg&&!!function(){var t=gg(String.prototype,"endsWith");return t&&!t.writable}();cg({target:"String",proto:!0,forced:!Tg&&!wg},{endsWith:function(t){var e=dg(yg(this));vg(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:Sg(pg(r),i),a=dg(t);return xg?xg(e,a,n):bg(e,n-a.length,n)===a}});var Og=se,Ag=we,Cg=m,Pg=ei,Eg=si,Mg=function(t,e,r){var i=Og(e);i in t?Ag.f(t,i,Cg(0,r)):t[i]=r},Ng=Array,Rg=Math.max,_g=Zn,Vg=c,Ig=O,kg=rl,Lg=lc,Dg=Pe,jg=k,zg=Wn,Bg=fl,Fg=ni,Ug=Fh,Hg=vt,Xg=function(t,e,r){for(var i=Eg(t),n=Pg(e,i),a=Pg(void 0===r?i:r,i),s=Ng(Rg(a-n,0)),o=0;n<a;n++,o++)Mg(s,o,t[n]);return s.length=o,s},Yg=xl,Wg=qu,qg=s,$g=$h.UNSUPPORTED_Y,Gg=4294967295,Qg=Math.min,Zg=[].push,Kg=Ig(/./.exec),Jg=Ig(Zg),tp=Ig("".slice);kg("split",(function(t,e,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var i=Ug(jg(this)),n=void 0===r?Gg:r>>>0;if(0===n)return[];if(void 0===t)return[i];if(!Lg(t))return Vg(e,i,t,n);for(var a,s,o,h=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,c=new RegExp(t.source,u+"g");(a=Vg(Wg,c,i))&&!((s=c.lastIndex)>l&&(Jg(h,tp(i,l,a.index)),a.length>1&&a.index<i.length&&_g(Zg,h,Xg(a,1)),o=a[0].length,l=s,h.length>=n));)c.lastIndex===a.index&&c.lastIndex++;return l===i.length?!o&&Kg(c,"")||Jg(h,""):Jg(h,tp(i,l)),h.length>n?Xg(h,0,n):h}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:Vg(e,this,t,r)}:e,[function(e,r){var n=jg(this),a=null==e?void 0:Hg(e,t);return a?Vg(a,e,n,r):Vg(i,Ug(n),e,r)},function(t,n){var a=Dg(this),s=Ug(t),o=r(i,a,s,n,i!==e);if(o.done)return o.value;var h=zg(a,RegExp),u=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+($g?"g":"y"),c=new h($g?"^(?:"+a.source+")":a,l),f=void 0===n?Gg:n>>>0;if(0===f)return[];if(0===s.length)return null===Yg(c,s)?[s]:[];for(var g=0,p=0,d=[];p<s.length;){c.lastIndex=$g?0:p;var v,y=Yg(c,$g?tp(s,p):s);if(null===y||(v=Qg(Fg(c.lastIndex+($g?p:0)),s.length))===g)p=Bg(s,p,u);else{if(Jg(d,tp(s,g,p)),d.length===f)return d;for(var m=1;m<=y.length-1;m++)if(Jg(d,y[m]),d.length===f)return d;p=g=v}}return Jg(d,tp(s,g)),d}]}),!!qg((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),$g);var ep={exports:{}},rp={exports:{}};(function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?rp.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(rp.exports=function(){return(t()-n)/1e6},e=process.hrtime,i=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),a=1e9*process.uptime(),n=i-a):Date.now?(rp.exports=function(){return Date.now()-r},r=Date.now()):(rp.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(t);for(var ip=rp.exports,np="undefined"==typeof window?t:window,ap=["moz","webkit"],sp="AnimationFrame",op=np["request"+sp],hp=np["cancel"+sp]||np["cancelRequest"+sp],up=0;!op&&up<ap.length;up++)op=np[ap[up]+"Request"+sp],hp=np[ap[up]+"Cancel"+sp]||np[ap[up]+"CancelRequest"+sp];if(!op||!hp){var lp=0,cp=0,fp=[];op=function(t){if(0===fp.length){var e=ip(),r=Math.max(0,16.666666666666668-(e-lp));lp=r+e,setTimeout((function(){var t=fp.slice(0);fp.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(lp)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return fp.push({handle:++cp,callback:t,cancelled:!1}),cp},hp=function(t){for(var e=0;e<fp.length;e++)fp[e].handle===t&&(fp[e].cancelled=!0)}}ep.exports=function(t){return op.call(np,t)},ep.exports.cancel=function(){hp.apply(np,arguments)},ep.exports.polyfill=function(t){t||(t=np),t.requestAnimationFrame=op,t.cancelAnimationFrame=hp};var gp=r(ep.exports),pp="\t\n\v\f\r                 \u2028\u2029\ufeff",dp=k,vp=Fh,yp=pp,mp=O("".replace),xp="["+yp+"]",bp=RegExp("^"+xp+xp+"*"),Sp=RegExp(xp+xp+"*$"),wp=function(t){return function(e){var r=vp(dp(e));return 1&t&&(r=mp(r,bp,"")),2&t&&(r=mp(r,Sp,"")),r}},Tp={start:wp(1),end:wp(2),trim:wp(3)},Op=$e.PROPER,Ap=s,Cp=pp,Pp=Tp.trim;$i({target:"String",proto:!0,forced:function(t){return Ap((function(){return!!Cp[t]()||"​…᠎"!=="​…᠎"[t]()||Op&&Cp[t].name!==t}))}("trim")},{trim:function(){return Pp(this)}});var Ep=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={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"};t=e[t]||t;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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,a=r[i].process,s=n.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[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 t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),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 c=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(l),h.appendChild(c),o.appendChild(h)}catch(t){}return o}},Mp=r(Ep),Np=$i,Rp=ci.indexOf,_p=og,Vp=O([].indexOf),Ip=!!Vp&&1/Vp([1],1,-0)<0,kp=_p("indexOf");Np({target:"Array",proto:!0,forced:Ip||!kp},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ip?Vp(this,t,e)||0:Rp(this,t,e)}});var Lp=$i,Dp=gc,jp=k,zp=Fh,Bp=dc,Fp=O("".indexOf);Lp({target:"String",proto:!0,forced:!Bp("includes")},{includes:function(t){return!!~Fp(zp(jp(this)),zp(Dp(t)),arguments.length>1?arguments[1]:void 0)}});var Up=E,Hp=$i,Xp=Array.isArray||function(t){return"Array"==Up(t)},Yp=O([].reverse),Wp=[1,2];Hp({target:"Array",proto:!0,forced:String(Wp)===String(Wp.reverse())},{reverse:function(){return Xp(this)&&(this.length=this.length),Yp(this)}});
1
+ import{c as t,_ as e,g as r}from"./downloadPDF-B1DL4u2a.js";import"./main.js";var i=function(t){return t&&t.Math==Math&&t},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a={},s=function(t){try{return!!t()}catch(t){return!0}},o=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=h,l=Function.prototype.call,c=u?l.bind(l):function(){return l.apply(l,arguments)},f={},g={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d=p&&!g.call({1:2},1);f.f=d?function(t){var e=p(this,t);return!!e&&e.enumerable}:g;var v,y,m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=h,b=Function.prototype,S=b.bind,w=b.call,T=x&&S.bind(w,w),O=x?function(t){return t&&T(t)}:function(t){return t&&function(){return w.apply(t,arguments)}},A=O,C=A({}.toString),P=A("".slice),E=function(t){return P(C(t),8,-1)},M=s,N=E,R=Object,_=O("".split),V=M((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?_(t,""):R(t)}:R,I=TypeError,k=function(t){if(null==t)throw I("Can't call method on "+t);return t},L=V,D=k,j=function(t){return L(D(t))},z=function(t){return"function"==typeof t},B=z,F=function(t){return"object"==typeof t?null!==t:B(t)},U=n,H=z,X=function(t,e){return arguments.length<2?(r=U[t],H(r)?r:void 0):U[t]&&U[t][e];var r},Y=O({}.isPrototypeOf),W=X("navigator","userAgent")||"",q=n,$=W,G=q.process,Q=q.Deno,Z=G&&G.versions||Q&&Q.version,K=Z&&Z.v8;K&&(y=(v=K.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!y&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(y=+v[1]);var J=y,tt=J,et=s,rt=!!Object.getOwnPropertySymbols&&!et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),it=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nt=X,at=z,st=Y,ot=Object,ht=it?function(t){return"symbol"==typeof t}:function(t){var e=nt("Symbol");return at(e)&&st(e.prototype,ot(t))},ut=String,lt=function(t){try{return ut(t)}catch(t){return"Object"}},ct=z,ft=lt,gt=TypeError,pt=function(t){if(ct(t))return t;throw gt(ft(t)+" is not a function")},dt=pt,vt=function(t,e){var r=t[e];return null==r?void 0:dt(r)},yt=c,mt=z,xt=F,bt=TypeError,St={exports:{}},wt=n,Tt=Object.defineProperty,Ot=function(t,e){try{Tt(wt,t,{value:e,configurable:!0,writable:!0})}catch(r){wt[t]=e}return e},At=Ot,Ct="__core-js_shared__",Pt=n[Ct]||At(Ct,{}),Et=Pt;(St.exports=function(t,e){return Et[t]||(Et[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Mt=St.exports,Nt=k,Rt=Object,_t=function(t){return Rt(Nt(t))},Vt=_t,It=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return It(Vt(t),e)},Lt=O,Dt=0,jt=Math.random(),zt=Lt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Dt+jt,36)},Ft=n,Ut=kt,Ht=Bt,Xt=rt,Yt=it,Wt=Mt("wks"),qt=Ft.Symbol,$t=qt&&qt.for,Gt=Yt?qt:qt&&qt.withoutSetter||Ht,Qt=function(t){if(!Ut(Wt,t)||!Xt&&"string"!=typeof Wt[t]){var e="Symbol."+t;Xt&&Ut(qt,t)?Wt[t]=qt[t]:Wt[t]=Yt&&$t?$t(e):Gt(e)}return Wt[t]},Zt=c,Kt=F,Jt=ht,te=vt,ee=function(t,e){var r,i;if("string"===e&&mt(r=t.toString)&&!xt(i=yt(r,t)))return i;if(mt(r=t.valueOf)&&!xt(i=yt(r,t)))return i;if("string"!==e&&mt(r=t.toString)&&!xt(i=yt(r,t)))return i;throw bt("Can't convert object to primitive value")},re=TypeError,ie=Qt("toPrimitive"),ne=function(t,e){if(!Kt(t)||Jt(t))return t;var r,i=te(t,ie);if(i){if(void 0===e&&(e="default"),r=Zt(i,t,e),!Kt(r)||Jt(r))return r;throw re("Can't convert object to primitive value")}return void 0===e&&(e="number"),ee(t,e)},ae=ht,se=function(t){var e=ne(t,"string");return ae(e)?e:e+""},oe=F,he=n.document,ue=oe(he)&&oe(he.createElement),le=function(t){return ue?he.createElement(t):{}},ce=le,fe=!o&&!s((function(){return 7!=Object.defineProperty(ce("div"),"a",{get:function(){return 7}}).a})),ge=o,pe=c,de=f,ve=m,ye=j,me=se,xe=kt,be=fe,Se=Object.getOwnPropertyDescriptor;a.f=ge?Se:function(t,e){if(t=ye(t),e=me(e),be)try{return Se(t,e)}catch(t){}if(xe(t,e))return ve(!pe(de.f,t,e),t[e])};var we={},Te=o&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Oe=F,Ae=String,Ce=TypeError,Pe=function(t){if(Oe(t))return t;throw Ce(Ae(t)+" is not an object")},Ee=o,Me=fe,Ne=Te,Re=Pe,_e=se,Ve=TypeError,Ie=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Le="enumerable",De="configurable",je="writable";we.f=Ee?Ne?function(t,e,r){if(Re(t),e=_e(e),Re(r),"function"==typeof t&&"prototype"===e&&"value"in r&&je in r&&!r[je]){var i=ke(t,e);i&&i[je]&&(t[e]=r.value,r={configurable:De in r?r[De]:i[De],enumerable:Le in r?r[Le]:i[Le],writable:!1})}return Ie(t,e,r)}:Ie:function(t,e,r){if(Re(t),e=_e(e),Re(r),Me)try{return Ie(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ve("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var ze=we,Be=m,Fe=o?function(t,e,r){return ze.f(t,e,Be(1,r))}:function(t,e,r){return t[e]=r,t},Ue={exports:{}},He=o,Xe=kt,Ye=Function.prototype,We=He&&Object.getOwnPropertyDescriptor,qe=Xe(Ye,"name"),$e={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!He||He&&We(Ye,"name").configurable)},Ge=z,Qe=Pt,Ze=O(Function.toString);Ge(Qe.inspectSource)||(Qe.inspectSource=function(t){return Ze(t)});var Ke,Je,tr,er=Qe.inspectSource,rr=z,ir=er,nr=n.WeakMap,ar=rr(nr)&&/native code/.test(ir(nr)),sr=Bt,or=Mt("keys"),hr=function(t){return or[t]||(or[t]=sr(t))},ur={},lr=ar,cr=n,fr=O,gr=F,pr=Fe,dr=kt,vr=Pt,yr=hr,mr=ur,xr="Object already initialized",br=cr.TypeError,Sr=cr.WeakMap;if(lr||vr.state){var wr=vr.state||(vr.state=new Sr),Tr=fr(wr.get),Or=fr(wr.has),Ar=fr(wr.set);Ke=function(t,e){if(Or(wr,t))throw new br(xr);return e.facade=t,Ar(wr,t,e),e},Je=function(t){return Tr(wr,t)||{}},tr=function(t){return Or(wr,t)}}else{var Cr=yr("state");mr[Cr]=!0,Ke=function(t,e){if(dr(t,Cr))throw new br(xr);return e.facade=t,pr(t,Cr,e),e},Je=function(t){return dr(t,Cr)?t[Cr]:{}},tr=function(t){return dr(t,Cr)}}var Pr={set:Ke,get:Je,has:tr,enforce:function(t){return tr(t)?Je(t):Ke(t,{})},getterFor:function(t){return function(e){var r;if(!gr(e)||(r=Je(e)).type!==t)throw br("Incompatible receiver, "+t+" required");return r}}},Er=s,Mr=z,Nr=kt,Rr=o,_r=$e.CONFIGURABLE,Vr=er,Ir=Pr.enforce,kr=Pr.get,Lr=Object.defineProperty,Dr=Rr&&!Er((function(){return 8!==Lr((function(){}),"length",{value:8}).length})),jr=String(String).split("String"),zr=Ue.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Nr(t,"name")||_r&&t.name!==e)&&(Rr?Lr(t,"name",{value:e,configurable:!0}):t.name=e),Dr&&r&&Nr(r,"arity")&&t.length!==r.arity&&Lr(t,"length",{value:r.arity});try{r&&Nr(r,"constructor")&&r.constructor?Rr&&Lr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Ir(t);return Nr(i,"source")||(i.source=jr.join("string"==typeof e?e:"")),t};Function.prototype.toString=zr((function(){return Mr(this)&&kr(this).source||Vr(this)}),"toString");var Br=Ue.exports,Fr=z,Ur=we,Hr=Br,Xr=Ot,Yr=function(t,e,r,i){i||(i={});var n=i.enumerable,a=void 0!==i.name?i.name:e;if(Fr(r)&&Hr(r,a,i),i.global)n?t[e]=r:Xr(e,r);else{try{i.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=r:Ur.f(t,e,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},Wr={},qr=Math.ceil,$r=Math.floor,Gr=Math.trunc||function(t){var e=+t;return(e>0?$r:qr)(e)},Qr=Gr,Zr=function(t){var e=+t;return e!=e||0===e?0:Qr(e)},Kr=Zr,Jr=Math.max,ti=Math.min,ei=function(t,e){var r=Kr(t);return r<0?Jr(r+e,0):ti(r,e)},ri=Zr,ii=Math.min,ni=function(t){return t>0?ii(ri(t),9007199254740991):0},ai=ni,si=function(t){return ai(t.length)},oi=j,hi=ei,ui=si,li=function(t){return function(e,r,i){var n,a=oi(e),s=ui(a),o=hi(i,s);if(t&&r!=r){for(;s>o;)if((n=a[o++])!=n)return!0}else for(;s>o;o++)if((t||o in a)&&a[o]===r)return t||o||0;return!t&&-1}},ci={includes:li(!0),indexOf:li(!1)},fi=kt,gi=j,pi=ci.indexOf,di=ur,vi=O([].push),yi=function(t,e){var r,i=gi(t),n=0,a=[];for(r in i)!fi(di,r)&&fi(i,r)&&vi(a,r);for(;e.length>n;)fi(i,r=e[n++])&&(~pi(a,r)||vi(a,r));return a},mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xi=yi,bi=mi.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return xi(t,bi)};var Si={};Si.f=Object.getOwnPropertySymbols;var wi=X,Ti=Wr,Oi=Si,Ai=Pe,Ci=O([].concat),Pi=wi("Reflect","ownKeys")||function(t){var e=Ti.f(Ai(t)),r=Oi.f;return r?Ci(e,r(t)):e},Ei=kt,Mi=Pi,Ni=a,Ri=we,_i=s,Vi=z,Ii=/#|\.prototype\./,ki=function(t,e){var r=Di[Li(t)];return r==zi||r!=ji&&(Vi(e)?_i(e):!!e)},Li=ki.normalize=function(t){return String(t).replace(Ii,".").toLowerCase()},Di=ki.data={},ji=ki.NATIVE="N",zi=ki.POLYFILL="P",Bi=ki,Fi=n,Ui=a.f,Hi=Fe,Xi=Yr,Yi=Ot,Wi=function(t,e,r){for(var i=Mi(e),n=Ri.f,a=Ni.f,s=0;s<i.length;s++){var o=i[s];Ei(t,o)||r&&Ei(r,o)||n(t,o,a(e,o))}},qi=Bi,$i=function(t,e){var r,i,n,a,s,o=t.target,h=t.global,u=t.stat;if(r=h?Fi:u?Fi[o]||Yi(o,{}):(Fi[o]||{}).prototype)for(i in e){if(a=e[i],n=t.dontCallGetSet?(s=Ui(r,i))&&s.value:r[i],!qi(h?i:o+(u?".":"#")+i,t.forced)&&void 0!==n){if(typeof a==typeof n)continue;Wi(a,n)}(t.sham||n&&n.sham)&&Hi(a,"sham",!0),Xi(r,i,a,t)}},Gi="process"==E(n.process),Qi=z,Zi=String,Ki=TypeError,Ji=O,tn=Pe,en=function(t){if("object"==typeof t||Qi(t))return t;throw Ki("Can't set "+Zi(t)+" as a prototype")},rn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Ji(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return tn(r),en(i),e?t(r,i):r.__proto__=i,r}}():void 0),nn=we.f,an=kt,sn=Qt("toStringTag"),on=function(t,e,r){t&&!r&&(t=t.prototype),t&&!an(t,sn)&&nn(t,sn,{configurable:!0,value:e})},hn=X,un=we,ln=o,cn=Qt("species"),fn=Y,gn=TypeError,pn={};pn[Qt("toStringTag")]="z";var dn="[object z]"===String(pn),vn=z,yn=E,mn=Qt("toStringTag"),xn=Object,bn="Arguments"==yn(function(){return arguments}()),Sn=dn?yn:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=xn(t),mn))?r:bn?yn(e):"Object"==(i=yn(e))&&vn(e.callee)?"Arguments":i},wn=O,Tn=s,On=z,An=Sn,Cn=er,Pn=function(){},En=[],Mn=X("Reflect","construct"),Nn=/^\s*(?:class|function)\b/,Rn=wn(Nn.exec),_n=!Nn.exec(Pn),Vn=function(t){if(!On(t))return!1;try{return Mn(Pn,En,t),!0}catch(t){return!1}},In=function(t){if(!On(t))return!1;switch(An(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _n||!!Rn(Nn,Cn(t))}catch(t){return!0}};In.sham=!0;var kn,Ln,Dn,jn,zn=!Mn||Tn((function(){var t;return Vn(Vn.call)||!Vn(Object)||!Vn((function(){t=!0}))||t}))?In:Vn,Bn=zn,Fn=lt,Un=TypeError,Hn=Pe,Xn=function(t){if(Bn(t))return t;throw Un(Fn(t)+" is not a constructor")},Yn=Qt("species"),Wn=function(t,e){var r,i=Hn(t).constructor;return void 0===i||null==(r=Hn(i)[Yn])?e:Xn(r)},qn=h,$n=Function.prototype,Gn=$n.apply,Qn=$n.call,Zn="object"==typeof Reflect&&Reflect.apply||(qn?Qn.bind(Gn):function(){return Qn.apply(Gn,arguments)}),Kn=pt,Jn=h,ta=O(O.bind),ea=function(t,e){return Kn(t),void 0===e?t:Jn?ta(t,e):function(){return t.apply(e,arguments)}},ra=X("document","documentElement"),ia=O([].slice),na=TypeError,aa=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),sa=n,oa=Zn,ha=ea,ua=z,la=kt,ca=s,fa=ra,ga=ia,pa=le,da=function(t,e){if(t<e)throw na("Not enough arguments");return t},va=aa,ya=Gi,ma=sa.setImmediate,xa=sa.clearImmediate,ba=sa.process,Sa=sa.Dispatch,wa=sa.Function,Ta=sa.MessageChannel,Oa=sa.String,Aa=0,Ca={},Pa="onreadystatechange";try{kn=sa.location}catch(t){}var Ea=function(t){if(la(Ca,t)){var e=Ca[t];delete Ca[t],e()}},Ma=function(t){return function(){Ea(t)}},Na=function(t){Ea(t.data)},Ra=function(t){sa.postMessage(Oa(t),kn.protocol+"//"+kn.host)};ma&&xa||(ma=function(t){da(arguments.length,1);var e=ua(t)?t:wa(t),r=ga(arguments,1);return Ca[++Aa]=function(){oa(e,void 0,r)},Ln(Aa),Aa},xa=function(t){delete Ca[t]},ya?Ln=function(t){ba.nextTick(Ma(t))}:Sa&&Sa.now?Ln=function(t){Sa.now(Ma(t))}:Ta&&!va?(jn=(Dn=new Ta).port2,Dn.port1.onmessage=Na,Ln=ha(jn.postMessage,jn)):sa.addEventListener&&ua(sa.postMessage)&&!sa.importScripts&&kn&&"file:"!==kn.protocol&&!ca(Ra)?(Ln=Ra,sa.addEventListener("message",Na,!1)):Ln=Pa in pa("script")?function(t){fa.appendChild(pa("script"))[Pa]=function(){fa.removeChild(this),Ea(t)}}:function(t){setTimeout(Ma(t),0)});var _a,Va,Ia,ka,La,Da,ja,za,Ba={set:ma,clear:xa},Fa=n,Ua=/ipad|iphone|ipod/i.test(W)&&void 0!==Fa.Pebble,Ha=/web0s(?!.*chrome)/i.test(W),Xa=n,Ya=ea,Wa=a.f,qa=Ba.set,$a=aa,Ga=Ua,Qa=Ha,Za=Gi,Ka=Xa.MutationObserver||Xa.WebKitMutationObserver,Ja=Xa.document,ts=Xa.process,es=Xa.Promise,rs=Wa(Xa,"queueMicrotask"),is=rs&&rs.value;is||(_a=function(){var t,e;for(Za&&(t=ts.domain)&&t.exit();Va;){e=Va.fn,Va=Va.next;try{e()}catch(t){throw Va?ka():Ia=void 0,t}}Ia=void 0,t&&t.enter()},$a||Za||Qa||!Ka||!Ja?!Ga&&es&&es.resolve?((ja=es.resolve(void 0)).constructor=es,za=Ya(ja.then,ja),ka=function(){za(_a)}):Za?ka=function(){ts.nextTick(_a)}:(qa=Ya(qa,Xa),ka=function(){qa(_a)}):(La=!0,Da=Ja.createTextNode(""),new Ka(_a).observe(Da,{characterData:!0}),ka=function(){Da.data=La=!La}));var ns=is||function(t){var e={fn:t,next:void 0};Ia&&(Ia.next=e),Va||(Va=e,ka()),Ia=e},as=n,ss=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},os=function(){this.head=null,this.tail=null};os.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var hs=os,us=n.Promise,ls="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,cs=!ls&&!Gi&&"object"==typeof window&&"object"==typeof document,fs=n,gs=us,ps=z,ds=Bi,vs=er,ys=Qt,ms=cs,xs=ls,bs=J;gs&&gs.prototype;var Ss=ys("species"),ws=!1,Ts=ps(fs.PromiseRejectionEvent),Os=ds("Promise",(function(){var t=vs(gs),e=t!==String(gs);if(!e&&66===bs)return!0;if(!bs||bs<51||!/native code/.test(t)){var r=new gs((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Ss]=i,!(ws=r.then((function(){}))instanceof i))return!0}return!e&&(ms||xs)&&!Ts})),As={CONSTRUCTOR:Os,REJECTION_EVENT:Ts,SUBCLASSING:ws},Cs={},Ps=pt,Es=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=i})),this.resolve=Ps(e),this.reject=Ps(r)};Cs.f=function(t){return new Es(t)};var Ms,Ns,Rs,_s=$i,Vs=Gi,Is=n,ks=c,Ls=Yr,Ds=rn,js=on,zs=function(t){var e=hn(t),r=un.f;ln&&e&&!e[cn]&&r(e,cn,{configurable:!0,get:function(){return this}})},Bs=pt,Fs=z,Us=F,Hs=function(t,e){if(fn(e,t))return t;throw gn("Incorrect invocation")},Xs=Wn,Ys=Ba.set,Ws=ns,qs=function(t,e){var r=as.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},$s=ss,Gs=hs,Qs=Pr,Zs=us,Ks=Cs,Js="Promise",to=As.CONSTRUCTOR,eo=As.REJECTION_EVENT,ro=As.SUBCLASSING,io=Qs.getterFor(Js),no=Qs.set,ao=Zs&&Zs.prototype,so=Zs,oo=ao,ho=Is.TypeError,uo=Is.document,lo=Is.process,co=Ks.f,fo=co,go=!!(uo&&uo.createEvent&&Is.dispatchEvent),po="unhandledrejection",vo=function(t){var e;return!(!Us(t)||!Fs(e=t.then))&&e},yo=function(t,e){var r,i,n,a=e.value,s=1==e.state,o=s?t.ok:t.fail,h=t.resolve,u=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&wo(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?u(ho("Promise-chain cycle")):(i=vo(r))?ks(i,r,h,u):h(r)):u(a)}catch(t){l&&!n&&l.exit(),u(t)}},mo=function(t,e){t.notified||(t.notified=!0,Ws((function(){for(var r,i=t.reactions;r=i.get();)yo(r,t);t.notified=!1,e&&!t.rejection&&bo(t)})))},xo=function(t,e,r){var i,n;go?((i=uo.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),Is.dispatchEvent(i)):i={promise:e,reason:r},!eo&&(n=Is["on"+t])?n(i):t===po&&qs("Unhandled promise rejection",r)},bo=function(t){ks(Ys,Is,(function(){var e,r=t.facade,i=t.value;if(So(t)&&(e=$s((function(){Vs?lo.emit("unhandledRejection",i,r):xo(po,r,i)})),t.rejection=Vs||So(t)?2:1,e.error))throw e.value}))},So=function(t){return 1!==t.rejection&&!t.parent},wo=function(t){ks(Ys,Is,(function(){var e=t.facade;Vs?lo.emit("rejectionHandled",e):xo("rejectionhandled",e,t.value)}))},To=function(t,e,r){return function(i){t(e,i,r)}},Oo=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,mo(t,!0))},Ao=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ho("Promise can't be resolved itself");var i=vo(e);i?Ws((function(){var r={done:!1};try{ks(i,e,To(Ao,r,t),To(Oo,r,t))}catch(e){Oo(r,e,t)}})):(t.value=e,t.state=1,mo(t,!1))}catch(e){Oo({done:!1},e,t)}}};if(to&&(oo=(so=function(t){Hs(this,oo),Bs(t),ks(Ms,this);var e=io(this);try{t(To(Ao,e),To(Oo,e))}catch(t){Oo(e,t)}}).prototype,(Ms=function(t){no(this,{type:Js,done:!1,notified:!1,parent:!1,reactions:new Gs,rejection:!1,state:0,value:void 0})}).prototype=Ls(oo,"then",(function(t,e){var r=io(this),i=co(Xs(this,so));return r.parent=!0,i.ok=!Fs(t)||t,i.fail=Fs(e)&&e,i.domain=Vs?lo.domain:void 0,0==r.state?r.reactions.add(i):Ws((function(){yo(i,r)})),i.promise})),Ns=function(){var t=new Ms,e=io(t);this.promise=t,this.resolve=To(Ao,e),this.reject=To(Oo,e)},Ks.f=co=function(t){return t===so||undefined===t?new Ns(t):fo(t)},Fs(Zs)&&ao!==Object.prototype)){Rs=ao.then,ro||Ls(ao,"then",(function(t,e){var r=this;return new so((function(t,e){ks(Rs,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete ao.constructor}catch(t){}Ds&&Ds(ao,oo)}_s({global:!0,constructor:!0,wrap:!0,forced:to},{Promise:so}),js(so,Js,!1),zs(Js);var Co={},Po=Co,Eo=Qt("iterator"),Mo=Array.prototype,No=Sn,Ro=vt,_o=Co,Vo=Qt("iterator"),Io=function(t){if(null!=t)return Ro(t,Vo)||Ro(t,"@@iterator")||_o[No(t)]},ko=c,Lo=pt,Do=Pe,jo=lt,zo=Io,Bo=TypeError,Fo=c,Uo=Pe,Ho=vt,Xo=ea,Yo=c,Wo=Pe,qo=lt,$o=function(t){return void 0!==t&&(Po.Array===t||Mo[Eo]===t)},Go=si,Qo=Y,Zo=function(t,e){var r=arguments.length<2?zo(t):e;if(Lo(r))return Do(ko(r,t));throw Bo(jo(t)+" is not iterable")},Ko=Io,Jo=function(t,e,r){var i,n;Uo(t);try{if(!(i=Ho(t,"return"))){if("throw"===e)throw r;return r}i=Fo(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw r;if(n)throw i;return Uo(i),r},th=TypeError,eh=function(t,e){this.stopped=t,this.result=e},rh=eh.prototype,ih=function(t,e,r){var i,n,a,s,o,h,u,l=r&&r.that,c=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),g=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=Xo(e,l),v=function(t){return i&&Jo(i,"normal",t),new eh(!0,t)},y=function(t){return c?(Wo(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(f)i=t.iterator;else if(g)i=t;else{if(!(n=Ko(t)))throw th(qo(t)+" is not iterable");if($o(n)){for(a=0,s=Go(t);s>a;a++)if((o=y(t[a]))&&Qo(rh,o))return o;return new eh(!1)}i=Zo(t,n)}for(h=f?t.next:i.next;!(u=Yo(h,i)).done;){try{o=y(u.value)}catch(t){Jo(i,"throw",t)}if("object"==typeof o&&o&&Qo(rh,o))return o}return new eh(!1)},nh=Qt("iterator"),ah=!1;try{var sh=0,oh={next:function(){return{done:!!sh++}},return:function(){ah=!0}};oh[nh]=function(){return this},Array.from(oh,(function(){throw 2}))}catch(t){}var hh=us,uh=function(t,e){if(!e&&!ah)return!1;var r=!1;try{var i={};i[nh]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r},lh=As.CONSTRUCTOR||!uh((function(t){hh.all(t).then(void 0,(function(){}))})),ch=c,fh=pt,gh=Cs,ph=ss,dh=ih;$i({target:"Promise",stat:!0,forced:lh},{all:function(t){var e=this,r=gh.f(e),i=r.resolve,n=r.reject,a=ph((function(){var r=fh(e.resolve),a=[],s=0,o=1;dh(t,(function(t){var h=s++,u=!1;o++,ch(r,e,t).then((function(t){u||(u=!0,a[h]=t,--o||i(a))}),n)})),--o||i(a)}));return a.error&&n(a.value),r.promise}});var vh=$i,yh=As.CONSTRUCTOR,mh=us,xh=X,bh=z,Sh=Yr,wh=mh&&mh.prototype;if(vh({target:"Promise",proto:!0,forced:yh,real:!0},{catch:function(t){return this.then(void 0,t)}}),bh(mh)){var Th=xh("Promise").prototype.catch;wh.catch!==Th&&Sh(wh,"catch",Th,{unsafe:!0})}var Oh=c,Ah=pt,Ch=Cs,Ph=ss,Eh=ih;$i({target:"Promise",stat:!0,forced:lh},{race:function(t){var e=this,r=Ch.f(e),i=r.reject,n=Ph((function(){var n=Ah(e.resolve);Eh(t,(function(t){Oh(n,e,t).then(r.resolve,i)}))}));return n.error&&i(n.value),r.promise}});var Mh=c,Nh=Cs;$i({target:"Promise",stat:!0,forced:As.CONSTRUCTOR},{reject:function(t){var e=Nh.f(this);return Mh(e.reject,void 0,t),e.promise}});var Rh=Pe,_h=F,Vh=Cs,Ih=$i,kh=As.CONSTRUCTOR,Lh=function(t,e){if(Rh(t),_h(e)&&e.constructor===t)return e;var r=Vh.f(t);return(0,r.resolve)(e),r.promise};function Dh(t,e,r,i,n,a,s){try{var o=t[a](s),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function jh(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){Dh(a,i,n,s,o,"next",t)}function o(t){Dh(a,i,n,s,o,"throw",t)}s(void 0)}))}}X("Promise"),Ih({target:"Promise",stat:!0,forced:kh},{resolve:function(t){return Lh(this,t)}});var zh=Sn,Bh=String,Fh=function(t){if("Symbol"===zh(t))throw TypeError("Cannot convert a Symbol value to a string");return Bh(t)},Uh=Pe,Hh=function(){var t=Uh(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Xh=s,Yh=n.RegExp,Wh=Xh((function(){var t=Yh("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),qh=Wh||Xh((function(){return!Yh("a","y").sticky})),$h={BROKEN_CARET:Wh||Xh((function(){var t=Yh("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:qh,UNSUPPORTED_Y:Wh},Gh={},Qh=yi,Zh=mi,Kh=Object.keys||function(t){return Qh(t,Zh)},Jh=o,tu=Te,eu=we,ru=Pe,iu=j,nu=Kh;Gh.f=Jh&&!tu?Object.defineProperties:function(t,e){ru(t);for(var r,i=iu(e),n=nu(e),a=n.length,s=0;a>s;)eu.f(t,r=n[s++],i[r]);return t};var au,su=Pe,ou=Gh,hu=mi,uu=ur,lu=ra,cu=le,fu="prototype",gu="script",pu=hr("IE_PROTO"),du=function(){},vu=function(t){return"<"+gu+">"+t+"</"+gu+">"},yu=function(t){t.write(vu("")),t.close();var e=t.parentWindow.Object;return t=null,e},mu=function(){try{au=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;mu="undefined"!=typeof document?document.domain&&au?yu(au):(e=cu("iframe"),r="java"+gu+":",e.style.display="none",lu.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(vu("document.F=Object")),t.close(),t.F):yu(au);for(var i=hu.length;i--;)delete mu[fu][hu[i]];return mu()};uu[pu]=!0;var xu,bu,Su=Object.create||function(t,e){var r;return null!==t?(du[fu]=su(t),r=new du,du[fu]=null,r[pu]=t):r=mu(),void 0===e?r:ou.f(r,e)},wu=s,Tu=n.RegExp,Ou=wu((function(){var t=Tu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Au=s,Cu=n.RegExp,Pu=Au((function(){var t=Cu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Eu=c,Mu=O,Nu=Fh,Ru=Hh,_u=$h,Vu=Su,Iu=Pr.get,ku=Ou,Lu=Pu,Du=Mt("native-string-replace",String.prototype.replace),ju=RegExp.prototype.exec,zu=ju,Bu=Mu("".charAt),Fu=Mu("".indexOf),Uu=Mu("".replace),Hu=Mu("".slice),Xu=(bu=/b*/g,Eu(ju,xu=/a/,"a"),Eu(ju,bu,"a"),0!==xu.lastIndex||0!==bu.lastIndex),Yu=_u.BROKEN_CARET,Wu=void 0!==/()??/.exec("")[1];(Xu||Wu||Yu||ku||Lu)&&(zu=function(t){var e,r,i,n,a,s,o,h=this,u=Iu(h),l=Nu(t),c=u.raw;if(c)return c.lastIndex=h.lastIndex,e=Eu(zu,c,l),h.lastIndex=c.lastIndex,e;var f=u.groups,g=Yu&&h.sticky,p=Eu(Ru,h),d=h.source,v=0,y=l;if(g&&(p=Uu(p,"y",""),-1===Fu(p,"g")&&(p+="g"),y=Hu(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Bu(l,h.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,v++),r=new RegExp("^(?:"+d+")",p)),Wu&&(r=new RegExp("^"+d+"$(?!\\s)",p)),Xu&&(i=h.lastIndex),n=Eu(ju,g?r:h,y),g?n?(n.input=Hu(n.input,v),n[0]=Hu(n[0],v),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Xu&&n&&(h.lastIndex=h.global?n.index+n[0].length:i),Wu&&n&&n.length>1&&Eu(Du,n[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n&&f)for(n.groups=s=Vu(null),a=0;a<f.length;a++)s[(o=f[a])[0]]=n[o[1]];return n});var qu=zu;$i({target:"RegExp",proto:!0,forced:/./.exec!==qu},{exec:qu});var $u=O,Gu=Yr,Qu=qu,Zu=s,Ku=Qt,Ju=Fe,tl=Ku("species"),el=RegExp.prototype,rl=function(t,e,r,i){var n=Ku(t),a=!Zu((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),s=a&&!Zu((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[tl]=function(){return r},r.flags="",r[n]=/./[n]),r.exec=function(){return e=!0,null},r[n](""),!e}));if(!a||!s||r){var o=$u(/./[n]),h=e(n,""[t],(function(t,e,r,i,n){var s=$u(t),h=e.exec;return h===Qu||h===el.exec?a&&!n?{done:!0,value:o(e,r,i)}:{done:!0,value:s(r,e,i)}:{done:!1}}));Gu(String.prototype,t,h[0]),Gu(el,n,h[1])}i&&Ju(el[n],"sham",!0)},il=O,nl=Zr,al=Fh,sl=k,ol=il("".charAt),hl=il("".charCodeAt),ul=il("".slice),ll=function(t){return function(e,r){var i,n,a=al(sl(e)),s=nl(r),o=a.length;return s<0||s>=o?t?"":void 0:(i=hl(a,s))<55296||i>56319||s+1===o||(n=hl(a,s+1))<56320||n>57343?t?ol(a,s):i:t?ul(a,s,s+2):n-56320+(i-55296<<10)+65536}},cl={codeAt:ll(!1),charAt:ll(!0)}.charAt,fl=function(t,e,r){return e+(r?cl(t,e).length:1)},gl=c,pl=Pe,dl=z,vl=E,yl=qu,ml=TypeError,xl=function(t,e){var r=t.exec;if(dl(r)){var i=gl(r,t,e);return null!==i&&pl(i),i}if("RegExp"===vl(t))return gl(yl,t,e);throw ml("RegExp#exec called on incompatible receiver")},bl=c,Sl=Pe,wl=ni,Tl=Fh,Ol=k,Al=vt,Cl=fl,Pl=xl;rl("match",(function(t,e,r){return[function(e){var r=Ol(this),i=null==e?void 0:Al(e,t);return i?bl(i,e,r):new RegExp(e)[t](Tl(r))},function(t){var i=Sl(this),n=Tl(t),a=r(e,i,n);if(a.done)return a.value;if(!i.global)return Pl(i,n);var s=i.unicode;i.lastIndex=0;for(var o,h=[],u=0;null!==(o=Pl(i,n));){var l=Tl(o[0]);h[u]=l,""===l&&(i.lastIndex=Cl(n,wl(i.lastIndex),s)),u++}return 0===u?null:h}]}));var El=O,Ml=_t,Nl=Math.floor,Rl=El("".charAt),_l=El("".replace),Vl=El("".slice),Il=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kl=/\$([$&'`]|\d{1,2})/g,Ll=Zn,Dl=c,jl=O,zl=rl,Bl=s,Fl=Pe,Ul=z,Hl=Zr,Xl=ni,Yl=Fh,Wl=k,ql=fl,$l=vt,Gl=function(t,e,r,i,n,a){var s=r+t.length,o=i.length,h=kl;return void 0!==n&&(n=Ml(n),h=Il),_l(a,h,(function(a,h){var u;switch(Rl(h,0)){case"$":return"$";case"&":return t;case"`":return Vl(e,0,r);case"'":return Vl(e,s);case"<":u=n[Vl(h,1,-1)];break;default:var l=+h;if(0===l)return a;if(l>o){var c=Nl(l/10);return 0===c?a:c<=o?void 0===i[c-1]?Rl(h,1):i[c-1]+Rl(h,1):a}u=i[l-1]}return void 0===u?"":u}))},Ql=xl,Zl=Qt("replace"),Kl=Math.max,Jl=Math.min,tc=jl([].concat),ec=jl([].push),rc=jl("".indexOf),ic=jl("".slice),nc="$0"==="a".replace(/./,"$0"),ac=!!/./[Zl]&&""===/./[Zl]("a","$0");zl("replace",(function(t,e,r){var i=ac?"$":"$0";return[function(t,r){var i=Wl(this),n=null==t?void 0:$l(t,Zl);return n?Dl(n,t,i,r):Dl(e,Yl(i),t,r)},function(t,n){var a=Fl(this),s=Yl(t);if("string"==typeof n&&-1===rc(n,i)&&-1===rc(n,"$<")){var o=r(e,a,s,n);if(o.done)return o.value}var h=Ul(n);h||(n=Yl(n));var u=a.global;if(u){var l=a.unicode;a.lastIndex=0}for(var c=[];;){var f=Ql(a,s);if(null===f)break;if(ec(c,f),!u)break;""===Yl(f[0])&&(a.lastIndex=ql(s,Xl(a.lastIndex),l))}for(var g,p="",d=0,v=0;v<c.length;v++){for(var y=Yl((f=c[v])[0]),m=Kl(Jl(Hl(f.index),s.length),0),x=[],b=1;b<f.length;b++)ec(x,void 0===(g=f[b])?g:String(g));var S=f.groups;if(h){var w=tc([y],x,m,s);void 0!==S&&ec(w,S);var T=Yl(Ll(n,void 0,w))}else T=Gl(y,s,m,x,S,n);m>=d&&(p+=ic(s,d,m)+T,d=m+y.length)}return p+ic(s,d)}]}),!!Bl((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!nc||ac);var sc,oc=F,hc=E,uc=Qt("match"),lc=function(t){var e;return oc(t)&&(void 0!==(e=t[uc])?!!e:"RegExp"==hc(t))},cc=lc,fc=TypeError,gc=function(t){if(cc(t))throw fc("The method doesn't accept regular expressions");return t},pc=Qt("match"),dc=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[pc]=!1,"/./"[t](e)}catch(t){}}return!1},vc=$i,yc=O,mc=a.f,xc=ni,bc=Fh,Sc=gc,wc=k,Tc=dc,Oc=yc("".startsWith),Ac=yc("".slice),Cc=Math.min,Pc=Tc("startsWith");vc({target:"String",proto:!0,forced:!!(Pc||(sc=mc(String.prototype,"startsWith"),!sc||sc.writable))&&!Pc},{startsWith:function(t){var e=bc(wc(this));Sc(t);var r=xc(Cc(arguments.length>1?arguments[1]:void 0,e.length)),i=bc(t);return Oc?Oc(e,i,r):Ac(e,r,r+i.length)===i}});var Ec=Qt,Mc=Su,Nc=we.f,Rc=Ec("unscopables"),_c=Array.prototype;null==_c[Rc]&&Nc(_c,Rc,{configurable:!0,value:Mc(null)});var Vc,Ic,kc,Lc=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dc=kt,jc=z,zc=_t,Bc=Lc,Fc=hr("IE_PROTO"),Uc=Object,Hc=Uc.prototype,Xc=Bc?Uc.getPrototypeOf:function(t){var e=zc(t);if(Dc(e,Fc))return e[Fc];var r=e.constructor;return jc(r)&&e instanceof r?r.prototype:e instanceof Uc?Hc:null},Yc=s,Wc=z,qc=Xc,$c=Yr,Gc=Qt("iterator"),Qc=!1;[].keys&&("next"in(kc=[].keys())?(Ic=qc(qc(kc)))!==Object.prototype&&(Vc=Ic):Qc=!0);var Zc=null==Vc||Yc((function(){var t={};return Vc[Gc].call(t)!==t}));Zc&&(Vc={}),Wc(Vc[Gc])||$c(Vc,Gc,(function(){return this}));var Kc={IteratorPrototype:Vc,BUGGY_SAFARI_ITERATORS:Qc},Jc=Kc.IteratorPrototype,tf=Su,ef=m,rf=on,nf=Co,af=function(){return this},sf=$i,of=c,hf=z,uf=function(t,e,r,i){var n=e+" Iterator";return t.prototype=tf(Jc,{next:ef(+!i,r)}),rf(t,n,!1),nf[n]=af,t},lf=Xc,cf=rn,ff=on,gf=Fe,pf=Yr,df=Co,vf=$e.PROPER,yf=$e.CONFIGURABLE,mf=Kc.IteratorPrototype,xf=Kc.BUGGY_SAFARI_ITERATORS,bf=Qt("iterator"),Sf="keys",wf="values",Tf="entries",Of=function(){return this},Af=j,Cf=function(t){_c[Rc][t]=!0},Pf=Co,Ef=Pr,Mf=we.f,Nf=function(t,e,r,i,n,a,s){uf(r,e,i);var o,h,u,l=function(t){if(t===n&&d)return d;if(!xf&&t in g)return g[t];switch(t){case Sf:case wf:case Tf:return function(){return new r(this,t)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,g=t.prototype,p=g[bf]||g["@@iterator"]||n&&g[n],d=!xf&&p||l(n),v="Array"==e&&g.entries||p;if(v&&(o=lf(v.call(new t)))!==Object.prototype&&o.next&&(lf(o)!==mf&&(cf?cf(o,mf):hf(o[bf])||pf(o,bf,Of)),ff(o,c,!0)),vf&&n==wf&&p&&p.name!==wf&&(yf?gf(g,"name",wf):(f=!0,d=function(){return of(p,this)})),n)if(h={values:l(wf),keys:a?d:l(Sf),entries:l(Tf)},s)for(u in h)(xf||f||!(u in g))&&pf(g,u,h[u]);else sf({target:e,proto:!0,forced:xf||f},h);return g[bf]!==d&&pf(g,bf,d,{name:n}),df[e]=d,h},Rf=o,_f="Array Iterator",Vf=Ef.set,If=Ef.getterFor(_f),kf=Nf(Array,"Array",(function(t,e){Vf(this,{type:_f,target:Af(t),index:0,kind:e})}),(function(){var t=If(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),Lf=Pf.Arguments=Pf.Array;if(Cf("keys"),Cf("values"),Cf("entries"),Rf&&"values"!==Lf.name)try{Mf(Lf,"name",{value:"values"})}catch(t){}var Df=le("span").classList,jf=Df&&Df.constructor&&Df.constructor.prototype,zf=jf===Object.prototype?void 0:jf,Bf=n,Ff={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},Uf=zf,Hf=kf,Xf=Fe,Yf=Qt,Wf=Yf("iterator"),qf=Yf("toStringTag"),$f=Hf.values,Gf=function(t,e){if(t){if(t[Wf]!==$f)try{Xf(t,Wf,$f)}catch(e){t[Wf]=$f}if(t[qf]||Xf(t,qf,e),Ff[e])for(var r in Hf)if(t[r]!==Hf[r])try{Xf(t,r,Hf[r])}catch(e){t[r]=Hf[r]}}};for(var Qf in Ff)Gf(Bf[Qf]&&Bf[Qf].prototype,Qf);function Zf(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,r||"default");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}function Kf(t,e,r){return(e=Zf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Gf(Uf,"DOMTokenList");var Jf=pt,tg=_t,eg=V,rg=si,ig=TypeError,ng=function(t){return function(e,r,i,n){Jf(r);var a=tg(e),s=eg(a),o=rg(a),h=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(h in s){n=s[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw ig("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in s&&(n=r(n,s[h],h,a));return n}},ag={left:ng(!1),right:ng(!0)},sg=s,og=function(t,e){var r=[][t];return!!r&&sg((function(){r.call(null,e||function(){return 1},1)}))},hg=ag.left,ug=J,lg=Gi;$i({target:"Array",proto:!0,forced:!og("reduce")||!lg&&ug>79&&ug<83},{reduce:function(t){var e=arguments.length;return hg(this,t,e,e>1?arguments[1]:void 0)}});var cg=$i,fg=O,gg=a.f,pg=ni,dg=Fh,vg=gc,yg=k,mg=dc,xg=fg("".endsWith),bg=fg("".slice),Sg=Math.min,wg=mg("endsWith"),Tg=!wg&&!!function(){var t=gg(String.prototype,"endsWith");return t&&!t.writable}();cg({target:"String",proto:!0,forced:!Tg&&!wg},{endsWith:function(t){var e=dg(yg(this));vg(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:Sg(pg(r),i),a=dg(t);return xg?xg(e,a,n):bg(e,n-a.length,n)===a}});var Og=se,Ag=we,Cg=m,Pg=ei,Eg=si,Mg=function(t,e,r){var i=Og(e);i in t?Ag.f(t,i,Cg(0,r)):t[i]=r},Ng=Array,Rg=Math.max,_g=Zn,Vg=c,Ig=O,kg=rl,Lg=lc,Dg=Pe,jg=k,zg=Wn,Bg=fl,Fg=ni,Ug=Fh,Hg=vt,Xg=function(t,e,r){for(var i=Eg(t),n=Pg(e,i),a=Pg(void 0===r?i:r,i),s=Ng(Rg(a-n,0)),o=0;n<a;n++,o++)Mg(s,o,t[n]);return s.length=o,s},Yg=xl,Wg=qu,qg=s,$g=$h.UNSUPPORTED_Y,Gg=4294967295,Qg=Math.min,Zg=[].push,Kg=Ig(/./.exec),Jg=Ig(Zg),tp=Ig("".slice);kg("split",(function(t,e,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var i=Ug(jg(this)),n=void 0===r?Gg:r>>>0;if(0===n)return[];if(void 0===t)return[i];if(!Lg(t))return Vg(e,i,t,n);for(var a,s,o,h=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,c=new RegExp(t.source,u+"g");(a=Vg(Wg,c,i))&&!((s=c.lastIndex)>l&&(Jg(h,tp(i,l,a.index)),a.length>1&&a.index<i.length&&_g(Zg,h,Xg(a,1)),o=a[0].length,l=s,h.length>=n));)c.lastIndex===a.index&&c.lastIndex++;return l===i.length?!o&&Kg(c,"")||Jg(h,""):Jg(h,tp(i,l)),h.length>n?Xg(h,0,n):h}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:Vg(e,this,t,r)}:e,[function(e,r){var n=jg(this),a=null==e?void 0:Hg(e,t);return a?Vg(a,e,n,r):Vg(i,Ug(n),e,r)},function(t,n){var a=Dg(this),s=Ug(t),o=r(i,a,s,n,i!==e);if(o.done)return o.value;var h=zg(a,RegExp),u=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+($g?"g":"y"),c=new h($g?"^(?:"+a.source+")":a,l),f=void 0===n?Gg:n>>>0;if(0===f)return[];if(0===s.length)return null===Yg(c,s)?[s]:[];for(var g=0,p=0,d=[];p<s.length;){c.lastIndex=$g?0:p;var v,y=Yg(c,$g?tp(s,p):s);if(null===y||(v=Qg(Fg(c.lastIndex+($g?p:0)),s.length))===g)p=Bg(s,p,u);else{if(Jg(d,tp(s,g,p)),d.length===f)return d;for(var m=1;m<=y.length-1;m++)if(Jg(d,y[m]),d.length===f)return d;p=g=v}}return Jg(d,tp(s,g)),d}]}),!!qg((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),$g);var ep={exports:{}},rp={exports:{}};(function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?rp.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(rp.exports=function(){return(t()-n)/1e6},e=process.hrtime,i=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),a=1e9*process.uptime(),n=i-a):Date.now?(rp.exports=function(){return Date.now()-r},r=Date.now()):(rp.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(t);for(var ip=rp.exports,np="undefined"==typeof window?t:window,ap=["moz","webkit"],sp="AnimationFrame",op=np["request"+sp],hp=np["cancel"+sp]||np["cancelRequest"+sp],up=0;!op&&up<ap.length;up++)op=np[ap[up]+"Request"+sp],hp=np[ap[up]+"Cancel"+sp]||np[ap[up]+"CancelRequest"+sp];if(!op||!hp){var lp=0,cp=0,fp=[];op=function(t){if(0===fp.length){var e=ip(),r=Math.max(0,16.666666666666668-(e-lp));lp=r+e,setTimeout((function(){var t=fp.slice(0);fp.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(lp)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return fp.push({handle:++cp,callback:t,cancelled:!1}),cp},hp=function(t){for(var e=0;e<fp.length;e++)fp[e].handle===t&&(fp[e].cancelled=!0)}}ep.exports=function(t){return op.call(np,t)},ep.exports.cancel=function(){hp.apply(np,arguments)},ep.exports.polyfill=function(t){t||(t=np),t.requestAnimationFrame=op,t.cancelAnimationFrame=hp};var gp=r(ep.exports),pp="\t\n\v\f\r                 \u2028\u2029\ufeff",dp=k,vp=Fh,yp=pp,mp=O("".replace),xp="["+yp+"]",bp=RegExp("^"+xp+xp+"*"),Sp=RegExp(xp+xp+"*$"),wp=function(t){return function(e){var r=vp(dp(e));return 1&t&&(r=mp(r,bp,"")),2&t&&(r=mp(r,Sp,"")),r}},Tp={start:wp(1),end:wp(2),trim:wp(3)},Op=$e.PROPER,Ap=s,Cp=pp,Pp=Tp.trim;$i({target:"String",proto:!0,forced:function(t){return Ap((function(){return!!Cp[t]()||"​…᠎"!=="​…᠎"[t]()||Op&&Cp[t].name!==t}))}("trim")},{trim:function(){return Pp(this)}});var Ep=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={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"};t=e[t]||t;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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,a=r[i].process,s=n.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[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 t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),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 c=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(l),h.appendChild(c),o.appendChild(h)}catch(t){}return o}},Mp=r(Ep),Np=$i,Rp=ci.indexOf,_p=og,Vp=O([].indexOf),Ip=!!Vp&&1/Vp([1],1,-0)<0,kp=_p("indexOf");Np({target:"Array",proto:!0,forced:Ip||!kp},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ip?Vp(this,t,e)||0:Rp(this,t,e)}});var Lp=$i,Dp=gc,jp=k,zp=Fh,Bp=dc,Fp=O("".indexOf);Lp({target:"String",proto:!0,forced:!Bp("includes")},{includes:function(t){return!!~Fp(zp(jp(this)),zp(Dp(t)),arguments.length>1?arguments[1]:void 0)}});var Up=E,Hp=$i,Xp=Array.isArray||function(t){return"Array"==Up(t)},Yp=O([].reverse),Wp=[1,2];Hp({target:"Array",proto:!0,forced:String(Wp)===String(Wp.reverse())},{reverse:function(){return Xp(this)&&(this.length=this.length),Yp(this)}});
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -1,4 +1,4 @@
1
- import{g as e,u as t,B as r,i as o}from"./main.js";import{a as n}from"./jsonld-SAOezr4P-ioHKtwiZ.js";var i,a,s=(function(e,t){!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){
1
+ import{g as e,u as t,B as r,i as o}from"./main.js";import{a as n}from"./jsonld-8ujMRGin-D_C9ciG_.js";var i,a,s=(function(e,t){!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){
2
2
  /*!
3
3
  * Copyright (c) 2021 Digital Bazaar, Inc. All rights reserved.
4
4
  */
@@ -28,24 +28,24 @@ const{constants:y}=m;var w={SECURITY_CONTEXT_URL:y.SECURITY_CONTEXT_V2_URL,SECUR
28
28
  const T=new Map([[v.SECURITY_CONTEXT_V1_URL,g.get(v.SECURITY_CONTEXT_V1_URL)],[v.SECURITY_CONTEXT_V2_URL,g.get(v.SECURITY_CONTEXT_V2_URL)]]),E={};var x=E;E.extendContextLoader=e=>async t=>{const r=T.get(t);return void 0!==r?{contextUrl:null,documentUrl:t,document:r,tag:"static"}:e(t)},E.strictDocumentLoader=E.extendContextLoader((e=>{throw new Error(`${e} not found.`)}));class b extends Error{constructor(e){super(b._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,b)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}}const S=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],L=Symbol(".toJSON called"),_=({from:e,seen:t,to_:n,forceEnumerable:i,maxDepth:a,depth:s})=>{const c=n||(Array.isArray(e)?[]:{});if(t.push(e),s>=a)return c;if("function"==typeof e.toJSON&&!0!==e[L])return(e=>{e[L]=!0;const t=e.toJSON();return delete e[L],t})(e);for(const[n,p]of Object.entries(e))"function"==typeof r&&o(p)?c[n]="[object Buffer]":"function"!=typeof p&&(p&&"object"==typeof p?t.includes(e[n])?c[n]="[Circular]":(s++,c[n]=_({from:e[n],seen:t.slice(),forceEnumerable:i,maxDepth:a,depth:s})):c[n]=p);for(const{property:t,enumerable:r}of S)"string"==typeof e[t]&&Object.defineProperty(c,t,{value:e[t],enumerable:!!i||r,configurable:!0,writable:!0});return c};var M={serializeError:(e,t={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return"object"==typeof e&&null!==e?_({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e},deserializeError:(e,t={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if("object"==typeof e&&null!==e&&!Array.isArray(e)){const t=new Error;return _({from:e,seen:[],to_:t,maxDepth:r,depth:0}),t}return new b(e)}};
29
29
  /*!
30
30
  * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
31
- */const C=w,O=n,{extendContextLoader:R,strictDocumentLoader:U}=x,{serializeError:K}=M;function D({document:e}){let t;t=O.getValues(e,"proof");const r=e["@context"]||C.SECURITY_CONTEXT_URL;return t=t.map((e=>({"@context":r,...e}))),t}function P(e){Object.defineProperty(e,"toJSON",{value:function(){return K(this)},configurable:!0,writable:!0})}var N=class extends Error{constructor(e){super("Verification error(s)."),this.name="VerificationError",this.errors=[].concat(e)}},A=class{constructor({type:e}={}){if("string"!=typeof e)throw new TypeError('A LinkedDataProof must have a "type".');this.type=e}async createProof({}){throw new Error('"createProof" must be implemented in a derived class.')}async derive({}){throw new Error('"deriveProof" must be implemented in a derived class.')}async verifyProof({}){throw new Error('"verifyProof" must be implemented in a derived class.')}async matchProof({proof:e}){return e.type===this.type}};
31
+ */const C=w,O=n,{extendContextLoader:R,strictDocumentLoader:U}=x,{serializeError:K}=M;function D({document:e}){let t;t=O.getValues(e,"proof");const r=e["@context"]||C.SECURITY_CONTEXT_URL;return t=t.map((e=>({"@context":r,...e}))),t}function N(e){Object.defineProperty(e,"toJSON",{value:function(){return K(this)},configurable:!0,writable:!0})}var P=class extends Error{constructor(e){super("Verification error(s)."),this.name="VerificationError",this.errors=[].concat(e)}},A=class{constructor({type:e}={}){if("string"!=typeof e)throw new TypeError('A LinkedDataProof must have a "type".');this.type=e}async createProof({}){throw new Error('"createProof" must be implemented in a derived class.')}async derive({}){throw new Error('"deriveProof" must be implemented in a derived class.')}async verifyProof({}){throw new Error('"verifyProof" must be implemented in a derived class.')}async matchProof({proof:e}){return e.type===this.type}};
32
32
  /*!
33
33
  * Copyright (c) 2018-2023 Digital Bazaar, Inc. All rights reserved.
34
34
  */const V={};var I=V;V.w3cDate=e=>{null==e?e=new Date:"number"!=typeof e&&"string"!=typeof e||(e=new Date(e));const t=e.toISOString();return t.substr(0,t.length-5)+"Z"},V.concat=(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r};const j=self&&(self.crypto||self.msCrypto);var k={async sha256digest({string:e}){const t=(new TextEncoder).encode(e);return new Uint8Array(await j.subtle.digest("SHA-256",t))}};
35
35
  /*!
36
36
  * Copyright (c) 2017-2023 Digital Bazaar, Inc. All rights reserved.
37
- */const X=w,z=n,Y=I,{sha256digest:q}=k,$=A;
37
+ */const X=w,Y=n,z=I,{sha256digest:q}=k,$=A;
38
38
  /*!
39
39
  * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
40
40
  */
41
- const B={};var W=B;B.suites={LinkedDataProof:A,LinkedDataSignature:class extends ${constructor({type:e,proof:t,LDKeyClass:r,date:o,key:n,signer:i,verifier:a,useNativeCanonize:s,canonizeOptions:c,contextUrl:p}={}){super({type:e}),this.LDKeyClass=r,this.contextUrl=p,this.proof=t;const d=function({key:e,signer:t,verifier:r}){const o={};if(e){if(o.key=e,o.verificationMethod=e.id,"function"==typeof e.signer&&(o.signer=e.signer()),"function"==typeof e.verifier&&(o.verifier=e.verifier()),!o.signer&&!o.verifier)throw new TypeError('The "key" parameter must contain a "signer" or "verifier" method.')}else o.verificationMethod=t&&t.id||r&&r.id,o.signer=t,o.verifier=r;if(o.signer&&"function"!=typeof o.signer.sign)throw new TypeError("A signer API has not been specified.");if(o.verifier&&"function"!=typeof o.verifier.verify)throw new TypeError("A verifier API has not been specified.");return o}({key:n,signer:i,verifier:a});if(this.verificationMethod=d.verificationMethod,this.key=d.key,this.signer=d.signer,this.verifier=d.verifier,this.canonizeOptions=c,o&&(this.date=new Date(o),isNaN(this.date)))throw TypeError(`"date" "${o}" is not a valid date.`);this.useNativeCanonize=s,this._hashCache=null}async createProof({document:e,purpose:t,proofSet:r,documentLoader:o,expansionMap:n}){if(n)throw new Error('"expansionMap" not supported.');let i;i=this.proof?{...this.proof}:{},i.type=this.type;let a=this.date;void 0===i.created&&void 0===a&&(a=new Date),a&&"string"!=typeof a&&(a=Y.w3cDate(a)),a&&(i.created=a),i.verificationMethod=this.verificationMethod,i=await this.updateProof({document:e,proof:i,proofSet:r,purpose:t,documentLoader:o}),i=await t.update(i,{document:e,suite:this,documentLoader:o});const s=await this.createVerifyData({document:e,proof:i,proofSet:r,documentLoader:o});return i=await this.sign({verifyData:s,document:e,proof:i,documentLoader:o}),i}async updateProof({proof:e,expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');return e}async verifyProof({proof:e,document:t,proofSet:r,documentLoader:o,expansionMap:n}){if(n)throw new Error('"expansionMap" not supported.');try{const i=await this.createVerifyData({document:t,proof:e,proofSet:r,documentLoader:o,expansionMap:n}),a=await this.getVerificationMethod({proof:e,document:t,documentLoader:o,expansionMap:n});if(!await this.verifySignature({verifyData:i,verificationMethod:a,document:t,proof:e,documentLoader:o,expansionMap:n}))throw new Error("Invalid signature.");return{verified:!0,verificationMethod:a}}catch(e){return{verified:!1,error:e}}}async canonize(e,{documentLoader:t,expansionMap:r,skipExpansion:o}){if(r)throw new Error('"expansionMap" not supported.');return z.canonize(e,{algorithm:"URDNA2015",base:null,format:"application/n-quads",documentLoader:t,safe:!0,skipExpansion:o,useNative:this.useNativeCanonize,...this.canonizeOptions})}async canonizeProof(e,{document:t,documentLoader:r,expansionMap:o}){if(o)throw new Error('"expansionMap" not supported.');return delete(e={"@context":t["@context"]||X.SECURITY_CONTEXT_URL,...e}).jws,delete e.signatureValue,delete e.proofValue,this.canonize(e,{documentLoader:r,expansionMap:o,skipExpansion:!1,...this.canonizeOptions})}async createVerifyData({document:e,proof:t,documentLoader:r,expansionMap:o}){if(o)throw new Error('"expansionMap" not supported.');let n;const{_hashCache:i}=this;i&&i.document===e?n=i.hash:this._hashCache={document:e,hash:n=this.canonize(e,{documentLoader:r,expansionMap:o}).then((e=>q({string:e})))};const[a,s]=await Promise.all([this.canonizeProof(t,{document:e,documentLoader:r,expansionMap:o}).then((e=>q({string:e}))),n]);return Y.concat(a,s)}async derive(){throw new Error("Must be implemented by a derived class.")}async getVerificationMethod({proof:e,documentLoader:t}){let{verificationMethod:r}=e;if("object"==typeof r&&(r=r.id),!r)throw new Error('No "verificationMethod" found in proof.');const o=await z.frame(r,{"@context":X.SECURITY_CONTEXT_URL,"@embed":"@always",id:r},{documentLoader:t,compactToRelative:!1,safe:!0});if(!o)throw new Error(`Verification method ${r} not found.`);if(void 0!==o.revoked)throw new Error("The verification method has been revoked.");return o}async sign(){throw new Error("Must be implemented by a derived class.")}async verifySignature(){throw new Error("Must be implemented by a derived class.")}ensureSuiteContext({document:e,addSuiteContext:t}){const{contextUrl:r}=this;if(function({document:e,contextUrl:t}){const r=e["@context"];return r===t||Array.isArray(r)&&r.includes(t)}({document:e,contextUrl:r}))return;if(!t)throw new TypeError(`The document to be signed must contain this suite's @context, "${r}".`);const o=e["@context"]||[];e["@context"]=Array.isArray(o)?[...o,r]:[o,r]}}};
41
+ const B={};var G=B;B.suites={LinkedDataProof:A,LinkedDataSignature:class extends ${constructor({type:e,proof:t,LDKeyClass:r,date:o,key:n,signer:i,verifier:a,useNativeCanonize:s,canonizeOptions:c,contextUrl:p}={}){super({type:e}),this.LDKeyClass=r,this.contextUrl=p,this.proof=t;const d=function({key:e,signer:t,verifier:r}){const o={};if(e){if(o.key=e,o.verificationMethod=e.id,"function"==typeof e.signer&&(o.signer=e.signer()),"function"==typeof e.verifier&&(o.verifier=e.verifier()),!o.signer&&!o.verifier)throw new TypeError('The "key" parameter must contain a "signer" or "verifier" method.')}else o.verificationMethod=t&&t.id||r&&r.id,o.signer=t,o.verifier=r;if(o.signer&&"function"!=typeof o.signer.sign)throw new TypeError("A signer API has not been specified.");if(o.verifier&&"function"!=typeof o.verifier.verify)throw new TypeError("A verifier API has not been specified.");return o}({key:n,signer:i,verifier:a});if(this.verificationMethod=d.verificationMethod,this.key=d.key,this.signer=d.signer,this.verifier=d.verifier,this.canonizeOptions=c,o&&(this.date=new Date(o),isNaN(this.date)))throw TypeError(`"date" "${o}" is not a valid date.`);this.useNativeCanonize=s,this._hashCache=null}async createProof({document:e,purpose:t,proofSet:r,documentLoader:o,expansionMap:n}){if(n)throw new Error('"expansionMap" not supported.');let i;i=this.proof?{...this.proof}:{},i.type=this.type;let a=this.date;void 0===i.created&&void 0===a&&(a=new Date),a&&"string"!=typeof a&&(a=z.w3cDate(a)),a&&(i.created=a),i.verificationMethod=this.verificationMethod,i=await this.updateProof({document:e,proof:i,proofSet:r,purpose:t,documentLoader:o}),i=await t.update(i,{document:e,suite:this,documentLoader:o});const s=await this.createVerifyData({document:e,proof:i,proofSet:r,documentLoader:o});return i=await this.sign({verifyData:s,document:e,proof:i,documentLoader:o}),i}async updateProof({proof:e,expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');return e}async verifyProof({proof:e,document:t,proofSet:r,documentLoader:o,expansionMap:n}){if(n)throw new Error('"expansionMap" not supported.');try{const i=await this.createVerifyData({document:t,proof:e,proofSet:r,documentLoader:o,expansionMap:n}),a=await this.getVerificationMethod({proof:e,document:t,documentLoader:o,expansionMap:n});if(!await this.verifySignature({verifyData:i,verificationMethod:a,document:t,proof:e,documentLoader:o,expansionMap:n}))throw new Error("Invalid signature.");return{verified:!0,verificationMethod:a}}catch(e){return{verified:!1,error:e}}}async canonize(e,{documentLoader:t,expansionMap:r,skipExpansion:o}){if(r)throw new Error('"expansionMap" not supported.');return Y.canonize(e,{algorithm:"URDNA2015",base:null,format:"application/n-quads",documentLoader:t,safe:!0,skipExpansion:o,useNative:this.useNativeCanonize,...this.canonizeOptions})}async canonizeProof(e,{document:t,documentLoader:r,expansionMap:o}){if(o)throw new Error('"expansionMap" not supported.');return delete(e={"@context":t["@context"]||X.SECURITY_CONTEXT_URL,...e}).jws,delete e.signatureValue,delete e.proofValue,this.canonize(e,{documentLoader:r,expansionMap:o,skipExpansion:!1,...this.canonizeOptions})}async createVerifyData({document:e,proof:t,documentLoader:r,expansionMap:o}){if(o)throw new Error('"expansionMap" not supported.');let n;const{_hashCache:i}=this;i&&i.document===e?n=i.hash:this._hashCache={document:e,hash:n=this.canonize(e,{documentLoader:r,expansionMap:o}).then((e=>q({string:e})))};const[a,s]=await Promise.all([this.canonizeProof(t,{document:e,documentLoader:r,expansionMap:o}).then((e=>q({string:e}))),n]);return z.concat(a,s)}async derive(){throw new Error("Must be implemented by a derived class.")}async getVerificationMethod({proof:e,documentLoader:t}){let{verificationMethod:r}=e;if("object"==typeof r&&(r=r.id),!r)throw new Error('No "verificationMethod" found in proof.');const o=await Y.frame(r,{"@context":X.SECURITY_CONTEXT_URL,"@embed":"@always",id:r},{documentLoader:t,compactToRelative:!1,safe:!0});if(!o)throw new Error(`Verification method ${r} not found.`);if(void 0!==o.revoked)throw new Error("The verification method has been revoked.");return o}async sign(){throw new Error("Must be implemented by a derived class.")}async verifySignature(){throw new Error("Must be implemented by a derived class.")}ensureSuiteContext({document:e,addSuiteContext:t}){const{contextUrl:r}=this;if(function({document:e,contextUrl:t}){const r=e["@context"];return r===t||Array.isArray(r)&&r.includes(t)}({document:e,contextUrl:r}))return;if(!t)throw new TypeError(`The document to be signed must contain this suite's @context, "${r}".`);const o=e["@context"]||[];e["@context"]=Array.isArray(o)?[...o,r]:[o,r]}}};
42
42
  /*!
43
43
  * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
44
44
  */
45
- var F=class{constructor({term:e,date:t,maxTimestampDelta:r=1/0}={}){if(void 0===e)throw new Error('"term" is required.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxTimestampDelta" must be a number.');if(this.term=e,void 0!==t&&(this.date=new Date(t),isNaN(this.date)))throw TypeError(`"date" "${t}" is not a valid date.`);this.maxTimestampDelta=r}async validate(e,{expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');try{if(this.maxTimestampDelta!==1/0){const t=(this.date||new Date).getTime(),r=1e3*this.maxTimestampDelta,o=new Date(e.created).getTime();if(!(o>=t-r&&o<=t+r))throw new Error("The proof's created timestamp is out of range.")}return{valid:!0}}catch(e){return{valid:!1,error:e}}}async update(e,{expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');return e.proofPurpose=this.term,e}async match(e,{expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');return e.proofPurpose===this.term}};
45
+ var W=class{constructor({term:e,date:t,maxTimestampDelta:r=1/0}={}){if(void 0===e)throw new Error('"term" is required.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxTimestampDelta" must be a number.');if(this.term=e,void 0!==t&&(this.date=new Date(t),isNaN(this.date)))throw TypeError(`"date" "${t}" is not a valid date.`);this.maxTimestampDelta=r}async validate(e,{expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');try{if(this.maxTimestampDelta!==1/0){const t=(this.date||new Date).getTime(),r=1e3*this.maxTimestampDelta,o=new Date(e.created).getTime();if(!(o>=t-r&&o<=t+r))throw new Error("The proof's created timestamp is out of range.")}return{valid:!0}}catch(e){return{valid:!1,error:e}}}async update(e,{expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');return e.proofPurpose=this.term,e}async match(e,{expansionMap:t}){if(t)throw new Error('"expansionMap" not supported.');return e.proofPurpose===this.term}};
46
46
  /*!
47
47
  * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
48
- */const G=w,J=n,H=F,Q="https://www.w3.org/ns/did/v1",Z=["assertionMethod","authentication","capabilityInvocation","capabilityDelegation","keyAgreement","verificationMethod"];var ee=class extends H{constructor({term:e,controller:t,date:r,maxTimestampDelta:o=1/0}={}){if(super({term:e,date:r,maxTimestampDelta:o}),void 0!==t){if("object"!=typeof t)throw new TypeError('"controller" must be an object.');this.controller=t}this._termDefinedByDIDContext=Z.includes(e)}async validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o}){try{const n=await super.validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o});if(!n.valid)throw n.error;const{id:i}=t,{term:a,_termDefinedByDIDContext:s}=this;if(this.controller)n.controller=this.controller;else{const{controller:e}=t;let o;if(e)if("object"==typeof e)o=e.id;else{if("string"!=typeof e)throw new TypeError('"controller" must be a string representing a URL.');o=e}let{document:c}=await r(o);!(s&&c["@context"]===Q||Array.isArray(c["@context"])&&c["@context"][0]===Q)&&(c=await J.frame(c,{"@context":G.SECURITY_CONTEXT_URL,id:o,[a]:{"@embed":"@never",id:i}},{documentLoader:r,compactToRelative:!1,safe:!0})),n.controller=c}const c=J.getValues(n.controller,a);if(n.valid=c.some((e=>e===i||"object"==typeof e&&e.id===i)),!n.valid)throw new Error(`Verification method "${t.id}" not authorized by controller for proof purpose "${this.term}".`);return n}catch(e){return{valid:!1,error:e}}}};
48
+ */const F=w,J=n,H=W,Q="https://www.w3.org/ns/did/v1",Z=["assertionMethod","authentication","capabilityInvocation","capabilityDelegation","keyAgreement","verificationMethod"];var ee=class extends H{constructor({term:e,controller:t,date:r,maxTimestampDelta:o=1/0}={}){if(super({term:e,date:r,maxTimestampDelta:o}),void 0!==t){if("object"!=typeof t)throw new TypeError('"controller" must be an object.');this.controller=t}this._termDefinedByDIDContext=Z.includes(e)}async validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o}){try{const n=await super.validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o});if(!n.valid)throw n.error;const{id:i}=t,{term:a,_termDefinedByDIDContext:s}=this;if(this.controller)n.controller=this.controller;else{const{controller:e}=t;let o;if(e)if("object"==typeof e)o=e.id;else{if("string"!=typeof e)throw new TypeError('"controller" must be a string representing a URL.');o=e}let{document:c}=await r(o);!(s&&c["@context"]===Q||Array.isArray(c["@context"])&&c["@context"][0]===Q)&&(c=await J.frame(c,{"@context":F.SECURITY_CONTEXT_URL,id:o,[a]:{"@embed":"@never",id:i}},{documentLoader:r,compactToRelative:!1,safe:!0})),n.controller=c}const c=J.getValues(n.controller,a);if(n.valid=c.some((e=>e===i||"object"==typeof e&&e.id===i)),!n.valid)throw new Error(`Verification method "${t.id}" not authorized by controller for proof purpose "${this.term}".`);return n}catch(e){return{valid:!1,error:e}}}};
49
49
  /*!
50
50
  * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
51
51
  */const te=ee;
@@ -56,11 +56,11 @@ const re=ee;
56
56
  /*!
57
57
  * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
58
58
  */
59
- const oe={};var ne=oe;oe.purposes={AssertionProofPurpose:class extends te{constructor({term:e="assertionMethod",controller:t,date:r,maxTimestampDelta:o=1/0}={}){super({term:e,controller:t,date:r,maxTimestampDelta:o})}},AuthenticationProofPurpose:class extends re{constructor({term:e="authentication",controller:t,challenge:r,date:o,domain:n,maxTimestampDelta:i=1/0}={}){if(super({term:e,controller:t,date:o,maxTimestampDelta:i}),"string"!=typeof r)throw new TypeError('"challenge" must be a string.');if(void 0!==n&&"string"!=typeof n)throw new TypeError('"domain" must be a string.');this.challenge=r,this.domain=n}async validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o}){try{if(e.challenge!==this.challenge)throw new Error(`The challenge is not as expected; challenge="${e.challenge}", expected="${this.challenge}"`);if(void 0!==this.domain&&e.domain!==this.domain)throw new Error(`The domain is not as expected; domain="${e.domain}", expected="${this.domain}"`);return super.validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o})}catch(e){return{valid:!1,error:e}}}async update(e,{document:t,suite:r,documentLoader:o,expansionMap:n}){return(e=await super.update(e,{document:t,suite:r,documentLoader:o,expansionMap:n})).challenge=this.challenge,void 0!==this.domain&&(e.domain=this.domain),e}},ControllerProofPurpose:ee,ProofPurpose:F};
59
+ const oe={};var ne=oe;oe.purposes={AssertionProofPurpose:class extends te{constructor({term:e="assertionMethod",controller:t,date:r,maxTimestampDelta:o=1/0}={}){super({term:e,controller:t,date:r,maxTimestampDelta:o})}},AuthenticationProofPurpose:class extends re{constructor({term:e="authentication",controller:t,challenge:r,date:o,domain:n,maxTimestampDelta:i=1/0}={}){if(super({term:e,controller:t,date:o,maxTimestampDelta:i}),"string"!=typeof r)throw new TypeError('"challenge" must be a string.');if(void 0!==n&&"string"!=typeof n)throw new TypeError('"domain" must be a string.');this.challenge=r,this.domain=n}async validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o}){try{if(e.challenge!==this.challenge)throw new Error(`The challenge is not as expected; challenge="${e.challenge}", expected="${this.challenge}"`);if(void 0!==this.domain&&e.domain!==this.domain)throw new Error(`The domain is not as expected; domain="${e.domain}", expected="${this.domain}"`);return super.validate(e,{verificationMethod:t,documentLoader:r,expansionMap:o})}catch(e){return{valid:!1,error:e}}}async update(e,{document:t,suite:r,documentLoader:o,expansionMap:n}){return(e=await super.update(e,{document:t,suite:r,documentLoader:o,expansionMap:n})).challenge=this.challenge,void 0!==this.domain&&(e.domain=this.domain),e}},ControllerProofPurpose:ee,ProofPurpose:W};
60
60
  /*!
61
61
  * Copyright (c) 2010-2023 Digital Bazaar, Inc. All rights reserved.
62
62
  */
63
63
  const ie={};var ae=ie;const se=w;Object.assign(ie,se);const ce=class{async add(e,{suite:t,purpose:r,documentLoader:o}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!r)throw new TypeError('"options.purpose" is required.');o=o?R(o):U;const n={...e};delete n.proof;const i=D({document:e}),a=await t.createProof({document:n,purpose:r,proofSet:i,documentLoader:o});return O.addValue(e,"proof",a),e}async derive(e,{suite:t,purpose:r,documentLoader:o}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!r)throw new TypeError('"options.purpose" is required.');o=o?R(o):U;const n={...e};delete n.proof;const i=D({document:e});return await t.derive({document:n,purpose:r,proofSet:i,documentLoader:o})}async verify(e,{suite:t,purpose:r,documentLoader:o}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!r)throw new TypeError('"options.purpose" is required.');const n=Array.isArray(t)?t:[t];if(0===n.length)throw new TypeError("At least one suite is required.");o=o?R(o):U;try{const t=D({document:e={...e}});if(0===t.length)throw new Error("No matching proofs found in the given document.");delete e.proof;const i=await async function({document:e,suites:t,proofSet:r,purpose:o,documentLoader:n}){const i=Array.isArray(o)?o:[o],a=new Map,s=new Map,c=new Map;if(await Promise.all(i.map((o=>async function({purposeToProofs:e,proofToSuite:t,purpose:r,proofSet:o,suites:n,suiteMatchQueue:i,document:a,documentLoader:s}){for(const c of o){if(!await r.match(c,{document:a,documentLoader:s}))continue;let o=!1;for(const e of n){let r=i.get(e);r||i.set(e,r=new Map);let n=r.get(c);if(n||(n=e.matchProof({proof:c,document:a,documentLoader:s}),r.set(c,n)),await n){o=!0,t.set(c,e);break}}if(o){const t=e.get(r);t?t.push(c):e.set(r,[c])}}}
64
64
  /*!
65
65
  * Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved.
66
- */({purposeToProofs:a,proofToSuite:s,purpose:o,proofSet:r,suites:t,suiteMatchQueue:c,document:e,documentLoader:n})))),a.size<i.length)return[];const p=new Map;return await Promise.all([...s.entries()].map((async([t,o])=>{let i;try{let a;const s={validate:async(e,{verificationMethod:t})=>(a=t,{valid:!0})},{verified:c,verificationMethod:p,error:d}=await o.verifyProof({proof:t,document:e,purpose:s,proofSet:r,documentLoader:n});a||(a=p),i={proof:t,verified:c,verificationMethod:a,error:d}}catch(e){i={proof:t,verified:!1,error:e}}i.error&&P(i.error),p.set(t,i)}))),await Promise.all([...a.entries()].map((async([t,r])=>{for(const o of r){const r=p.get(o);if(!r.verified)continue;const{verificationMethod:i}=r,a=s.get(o);let c;try{c=await t.validate(o,{document:e,suite:a,verificationMethod:i,documentLoader:n})}catch(e){c={valid:!1,error:e}}r.purposeResult?Array.isArray(r.purposeResult)?r.purposeResult.push(c):r.purposeResult=[r.purposeResult,c]:r.purposeResult=c,c.valid||(P(c.error),r.error||(r.verified=!1,r.error=c.error))}}))),[...p.values()]}({document:e,suites:n,proofSet:t,purpose:r,documentLoader:o});if(0===i.length){const e=new Error("Did not verify any proofs; insufficient proofs matched the acceptable suite(s) and required purpose(s).");throw e.name="NotFoundError",e}const a=i.some((e=>e.verified));if(!a){const e=[].concat(...i.filter((e=>e.error)).map((e=>e.error))),t={verified:a,results:i};return e.length>0&&(t.error=e),t}return{verified:a,results:i}}catch(e){return P(e),{verified:!1,error:e}}}},pe=N;ie.derive=async function(e,{suite:t,purpose:r,documentLoader:o,addSuiteContext:n=!0}={}){if("object"!=typeof e)throw new TypeError('The "document" parameter must be an object.');t.ensureSuiteContext({document:e,addSuiteContext:n});try{return await(new ce).derive(e,{suite:t,purpose:r,documentLoader:o})}catch(e){if(!o&&"jsonld.InvalidUrl"===e.name){const{details:{url:t}}=e,r=new Error(`A URL "${t}" could not be fetched; you need to pass "documentLoader" or resolve the URL before calling "derive".`);throw r.cause=e,r}throw e}},ie.sign=async function(e,{suite:t,purpose:r,documentLoader:o,expansionMap:n,addSuiteContext:i=!0}={}){if(n)throw new Error('"expansionMap" not supported.');if("object"!=typeof e)throw new TypeError('The "document" parameter must be an object.');t.ensureSuiteContext({document:e,addSuiteContext:i});try{return await(new ce).add(e,{suite:t,purpose:r,documentLoader:o})}catch(e){if(!o&&"jsonld.InvalidUrl"===e.name){const{details:{url:t}}=e,r=new Error(`A URL "${t}" could not be fetched; you need to pass "documentLoader" or resolve the URL before calling "sign".`);throw r.cause=e,r}throw e}},ie.verify=async function(e,{suite:t,purpose:r,documentLoader:o,expansionMap:n}={}){if(n)throw new Error('"expansionMap" not supported.');if("object"!=typeof e)throw new TypeError('The "document" parameter must be an object.');const i=await(new ce).verify(e,{suite:t,purpose:r,documentLoader:o}),{error:a}=i;if(a)if(o||"jsonld.InvalidUrl"!==a.name)i.error=new pe(a);else{const{details:{url:e}}=a,t=new Error(`A URL "${e}" could not be fetched; you need to pass "documentLoader" or resolve the URL before calling "verify".`);i.error=new pe(t)}return i},ie.suites=W.suites,ie.purposes=ne.purposes,Object.assign(ie,x);var de=e(ae);export{de as j};
66
+ */({purposeToProofs:a,proofToSuite:s,purpose:o,proofSet:r,suites:t,suiteMatchQueue:c,document:e,documentLoader:n})))),a.size<i.length)return[];const p=new Map;return await Promise.all([...s.entries()].map((async([t,o])=>{let i;try{let a;const s={validate:async(e,{verificationMethod:t})=>(a=t,{valid:!0})},{verified:c,verificationMethod:p,error:d}=await o.verifyProof({proof:t,document:e,purpose:s,proofSet:r,documentLoader:n});a||(a=p),i={proof:t,verified:c,verificationMethod:a,error:d}}catch(e){i={proof:t,verified:!1,error:e}}i.error&&N(i.error),p.set(t,i)}))),await Promise.all([...a.entries()].map((async([t,r])=>{for(const o of r){const r=p.get(o);if(!r.verified)continue;const{verificationMethod:i}=r,a=s.get(o);let c;try{c=await t.validate(o,{document:e,suite:a,verificationMethod:i,documentLoader:n})}catch(e){c={valid:!1,error:e}}r.purposeResult?Array.isArray(r.purposeResult)?r.purposeResult.push(c):r.purposeResult=[r.purposeResult,c]:r.purposeResult=c,c.valid||(N(c.error),r.error||(r.verified=!1,r.error=c.error))}}))),[...p.values()]}({document:e,suites:n,proofSet:t,purpose:r,documentLoader:o});if(0===i.length){const e=new Error("Did not verify any proofs; insufficient proofs matched the acceptable suite(s) and required purpose(s).");throw e.name="NotFoundError",e}const a=i.some((e=>e.verified));if(!a){const e=[].concat(...i.filter((e=>e.error)).map((e=>e.error))),t={verified:a,results:i};return e.length>0&&(t.error=e),t}return{verified:a,results:i}}catch(e){return N(e),{verified:!1,error:e}}}},pe=P;ie.derive=async function(e,{suite:t,purpose:r,documentLoader:o,addSuiteContext:n=!0}={}){if("object"!=typeof e)throw new TypeError('The "document" parameter must be an object.');t.ensureSuiteContext({document:e,addSuiteContext:n});try{return await(new ce).derive(e,{suite:t,purpose:r,documentLoader:o})}catch(e){if(!o&&"jsonld.InvalidUrl"===e.name){const{details:{url:t}}=e,r=new Error(`A URL "${t}" could not be fetched; you need to pass "documentLoader" or resolve the URL before calling "derive".`);throw r.cause=e,r}throw e}},ie.sign=async function(e,{suite:t,purpose:r,documentLoader:o,expansionMap:n,addSuiteContext:i=!0}={}){if(n)throw new Error('"expansionMap" not supported.');if("object"!=typeof e)throw new TypeError('The "document" parameter must be an object.');t.ensureSuiteContext({document:e,addSuiteContext:i});try{return await(new ce).add(e,{suite:t,purpose:r,documentLoader:o})}catch(e){if(!o&&"jsonld.InvalidUrl"===e.name){const{details:{url:t}}=e,r=new Error(`A URL "${t}" could not be fetched; you need to pass "documentLoader" or resolve the URL before calling "sign".`);throw r.cause=e,r}throw e}},ie.verify=async function(e,{suite:t,purpose:r,documentLoader:o,expansionMap:n}={}){if(n)throw new Error('"expansionMap" not supported.');if("object"!=typeof e)throw new TypeError('The "document" parameter must be an object.');const i=await(new ce).verify(e,{suite:t,purpose:r,documentLoader:o}),{error:a}=i;if(a)if(o||"jsonld.InvalidUrl"!==a.name)i.error=new pe(a);else{const{details:{url:e}}=a,t=new Error(`A URL "${e}" could not be fetched; you need to pass "documentLoader" or resolve the URL before calling "verify".`);i.error=new pe(t)}return i},ie.suites=G.suites,ie.purposes=ne.purposes,Object.assign(ie,x);var de=e(ae);export{de as j};