@blockcerts/blockcerts-verifier 1.72.4 → 1.74.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 (52) hide show
  1. package/README.md +8 -0
  2. package/bundle-stats.html +1 -1
  3. package/codecov +0 -0
  4. package/codecov.SHA256SUM +1 -0
  5. package/codecov.SHA256SUM.sig +16 -0
  6. package/coverage/lcov.info +469 -466
  7. package/dist/{DataIntegrityProof-x-pKdBCc-B_YUlE0Z.js → DataIntegrityProof-DRK-bLb_-CItV0ZXY.js} +1 -1
  8. package/dist/EcdsaSd2023-CdilbQE4-BlaeM9K_.js +26 -0
  9. package/dist/EcdsaSecp256k1Signature2019-rfxWS2XE-C73WHAtH.js +1 -0
  10. package/dist/{Ed25519Signature2020-B6yblwC5-BRlzT2Yc.js → Ed25519Signature2020-CDbX0d2Z-Dc1L-exZ.js} +7 -7
  11. package/dist/{EddsaRdfc2022-Csk9U_qt-B798omlR.js → EddsaRdfc2022-Do0HFpDb-BcV_n8Fk.js} +4 -4
  12. package/dist/{HashlinkVerifier-Bi7nn19S-DMjUYzMR.js → HashlinkVerifier-Cdnza1Dw-A9htzw7A.js} +1 -1
  13. package/dist/MerkleProof2017-5uQFQKSe-dtmePIpg.js +1 -0
  14. package/dist/MerkleProof2019-DraC60XD-B9XV8wNx.js +5 -0
  15. package/dist/Suite-BmP2Qu19-D1ucdMDB.js +1 -0
  16. package/dist/_polyfill-node.path-hKwMKLNw-B7aPtphV.js +1 -0
  17. package/dist/checkBitStringStatusList-CKk6xxUL-D99R7EXK.js +1 -0
  18. package/dist/checkCredentialSchemaConformity-U2NlIuJZ-swOY09NS.js +1 -0
  19. package/dist/controlVerificationMethod-Blm4pE1t-BYBRLxNP.js +1 -0
  20. package/dist/{downloadPDF-UAsY-nU_.js → downloadPDF-C-y2U2YC.js} +3 -3
  21. package/dist/ensureValidIssuingKey-D7OT4D35--HN0afRq.js +1 -0
  22. package/dist/index-BNsIYV4r-BnYxKy2f.js +14 -0
  23. package/dist/{index-D7PA_QcD-CyttRwCk.js → index-C4ZZHHRx-BOdwDnYa.js} +1 -1
  24. package/dist/index-CVS5Gn9h-DNgvq6Wk.js +7 -0
  25. package/dist/index-D2bS6rRi-D_ppNIsb.js +66 -0
  26. package/dist/index-Dr7MpiEc-D5LHgMik.js +30 -0
  27. package/dist/{index-DNlz8u7B-CYTlxhyY.js → index-uKBVup0_-Dh4-8Ruv.js} +1 -1
  28. package/dist/{index.es-CnYWLNZV.js → index.es-BmC2s_4v.js} +1 -1
  29. package/dist/{Suite-CBLHluYK-Dmvbh142.js → jsonld-DOUjwF6J-dtl20tiV.js} +1 -1
  30. package/dist/{jsonld-signatures-BtZPa7MV-DTekMXP5.js → jsonld-signatures-BJXipuab-CB799Kkm.js} +7 -7
  31. package/dist/main.js +122 -122
  32. package/dist/purify.es-C6IIzwyE.js +2 -0
  33. package/dist/retrieveVerificationMethodPublicKey-CT9YA_Wr-Djl8Ri41.js +1 -0
  34. package/dist/verifyIssuerProfile-BG-odQrl-0JjZhiiC.js +1 -0
  35. package/package.json +9 -9
  36. package/dist/EcdsaSd2023-CU35O_1w-CISk0lEt.js +0 -30
  37. package/dist/EcdsaSecp256k1Signature2019-DiXIv8yq-B2kEN_Qo.js +0 -1
  38. package/dist/MerkleProof2017-BIJKwMk5-CLYAJK4G.js +0 -1
  39. package/dist/MerkleProof2019-CeAt2OGM-DOuISx_E.js +0 -5
  40. package/dist/checkCredentialSchemaConformity-CECtM4WI-C1vg05zb.js +0 -1
  41. package/dist/checkRevocationStatusList2021-B7NFlV-5-C3Zng1tA.js +0 -13
  42. package/dist/controlVerificationMethod-Cuyek_Vk-C_Uq2iA5.js +0 -1
  43. package/dist/ensureValidIssuingKey-DN2kpCwj-DY8BTObG.js +0 -1
  44. package/dist/index-DFOHyoZq-BCuOIg2Z.js +0 -29
  45. package/dist/pako.esm-BGRKTPxS-Bodm4Eha.js +0 -2
  46. package/dist/purify.es-Om653OSQ.js +0 -2
  47. package/dist/retrieveVerificationMethodPublicKey-DcEGtx_h-D1zuvtQB.js +0 -1
  48. package/dist/sha2-JcCWfgvE-By1_saxP.js +0 -2
  49. package/dist/verifyIssuerProfile-DQji41Fc-l31-7imR.js +0 -1
  50. /package/dist/{ensureNotRevoked-CNUfpW4F-BheL-ZKZ.js → ensureNotRevoked-DrQAPfcJ-BheL-ZKZ.js} +0 -0
  51. /package/dist/{index-6G1g4ypj-Dgus2xdV.js → index-yOIIz7AL-Dgus2xdV.js} +0 -0
  52. /package/dist/{webcrypto.es-aoUxIxUm-gGk5JRJH.js → webcrypto.es-FKUHCUj--gGk5JRJH.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{c as t,_ as e,g as r}from"./downloadPDF-UAsY-nU_.js";import"./main.js";var i,n,a={};function s(){if(n)return i;n=1;var e=function(t){return t&&t.Math===Math&&t};return i=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var o,u,h,c,l,f,g,p,d={};function v(){return u?o:(u=1,o=function(t){try{return!!t()}catch(t){return!0}})}function y(){if(c)return h;c=1;var t=v();return h=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function m(){if(f)return l;f=1;var t=v();return l=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function x(){if(p)return g;p=1;var t=m(),e=Function.prototype.call;return g=t?e.bind(e):function(){return e.apply(e,arguments)},g}var b,w,S,T,O,A,C,P,E,N,M,R,_,V,I,k,L,D,j,B,z,U,F,H,X,Y,W,q,$,G,Q,Z,K,J,tt,et,rt,it,nt,at,st,ot={};function ut(){return S?w:(S=1,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function ht(){if(O)return T;O=1;var t=m(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return T=t?i:function(t){return function(){return r.apply(t,arguments)}},T}function ct(){if(C)return A;C=1;var t=ht(),e=t({}.toString),r=t("".slice);return A=function(t){return r(e(t),8,-1)}}function lt(){if(E)return P;E=1;var t=ht(),e=v(),r=ct(),i=Object,n=t("".split);return P=e(function(){return!i("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?n(t,""):i(t)}:i}function ft(){return M?N:(M=1,N=function(t){return null==t})}function gt(){if(_)return R;_=1;var t=ft(),e=TypeError;return R=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function pt(){if(I)return V;I=1;var t=lt(),e=gt();return V=function(r){return t(e(r))}}function dt(){if(L)return k;L=1;var t="object"==typeof document&&document.all;return k=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function vt(){if(j)return D;j=1;var t=dt();return D=function(e){return"object"==typeof e?null!==e:t(e)}}function yt(){if(z)return B;z=1;var t=s(),e=dt();return B=function(r,i){return arguments.length<2?(n=t[r],e(n)?n:void 0):t[r]&&t[r][i];var n},B}function mt(){if(F)return U;F=1;var t=ht();return U=t({}.isPrototypeOf)}function xt(){if(X)return H;X=1;var t=s().navigator,e=t&&t.userAgent;return H=e?String(e):""}function bt(){if(W)return Y;W=1;var t,e,r=s(),i=xt(),n=r.process,a=r.Deno,o=n&&n.versions||a&&a.version,u=o&&o.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(e=+t[1]),Y=e}function wt(){if($)return q;$=1;var t=bt(),e=v(),r=s().String;return q=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function St(){if(Q)return G;Q=1;var t=wt();return G=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Tt(){if(K)return Z;K=1;var t=yt(),e=dt(),r=mt(),i=St(),n=Object;return Z=i?function(t){return"symbol"==typeof t}:function(i){var a=t("Symbol");return e(a)&&r(a.prototype,n(i))}}function Ot(){if(tt)return J;tt=1;var t=String;return J=function(e){try{return t(e)}catch(t){return"Object"}}}function At(){if(rt)return et;rt=1;var t=dt(),e=Ot(),r=TypeError;return et=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")}}function Ct(){if(nt)return it;nt=1;var t=At(),e=ft();return it=function(r,i){var n=r[i];return e(n)?void 0:t(n)}}function Pt(){if(st)return at;st=1;var t=x(),e=dt(),r=vt(),i=TypeError;return at=function(n,a){var s,o;if("string"===a&&e(s=n.toString)&&!r(o=t(s,n)))return o;if(e(s=n.valueOf)&&!r(o=t(s,n)))return o;if("string"!==a&&e(s=n.toString)&&!r(o=t(s,n)))return o;throw new i("Can't convert object to primitive value")}}var Et,Nt,Mt,Rt,_t,Vt,It,kt,Lt,Dt,jt,Bt,zt,Ut,Ft,Ht,Xt,Yt,Wt,qt,$t,Gt,Qt,Zt,Kt={exports:{}};function Jt(){return Nt?Et:(Nt=1,Et=!1)}function te(){if(Rt)return Mt;Rt=1;var t=s(),e=Object.defineProperty;return Mt=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch(e){t[r]=i}return i}}function ee(){if(_t)return Kt.exports;_t=1;var t=Jt(),e=s(),r=te(),i="__core-js_shared__",n=Kt.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kt.exports}function re(){if(It)return Vt;It=1;var t=ee();return Vt=function(e,r){return t[e]||(t[e]=r||{})}}function ie(){if(Lt)return kt;Lt=1;var t=gt(),e=Object;return kt=function(r){return e(t(r))}}function ne(){if(jt)return Dt;jt=1;var t=ht(),e=ie(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,i){return r(e(t),i)}}function ae(){if(zt)return Bt;zt=1;var t=ht(),e=0,r=Math.random(),i=t(1.1.toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++e+r,36)}}function se(){if(Ft)return Ut;Ft=1;var t=s(),e=re(),r=ne(),i=ae(),n=wt(),a=St(),o=t.Symbol,u=e("wks"),h=a?o.for||o:o&&o.withoutSetter||i;return Ut=function(t){return r(u,t)||(u[t]=n&&r(o,t)?o[t]:h("Symbol."+t)),u[t]}}function oe(){if(Wt)return Yt;Wt=1;var t=function(){if(Xt)return Ht;Xt=1;var t=x(),e=vt(),r=Tt(),i=Ct(),n=Pt(),a=se(),s=TypeError,o=a("toPrimitive");return Ht=function(a,u){if(!e(a)||r(a))return a;var h,c=i(a,o);if(c){if(void 0===u&&(u="default"),h=t(c,a,u),!e(h)||r(h))return h;throw new s("Can't convert object to primitive value")}return void 0===u&&(u="number"),n(a,u)}}(),e=Tt();return Yt=function(r){var i=t(r,"string");return e(i)?i:i+""}}function ue(){if($t)return qt;$t=1;var t=s(),e=vt(),r=t.document,i=e(r)&&e(r.createElement);return qt=function(t){return i?r.createElement(t):{}}}function he(){if(Qt)return Gt;Qt=1;var t=y(),e=v(),r=ue();return Gt=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function ce(){if(Zt)return d;Zt=1;var t=y(),e=x(),r=function(){if(b)return ot;b=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return ot.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,ot}(),i=ut(),n=pt(),a=oe(),s=ne(),o=he(),u=Object.getOwnPropertyDescriptor;return d.f=t?u:function(t,h){if(t=n(t),h=a(h),o)try{return u(t,h)}catch(t){}if(s(t,h))return i(!e(r.f,t,h),t[h])},d}var le,fe,ge,pe,de,ve,ye,me={};function xe(){if(fe)return le;fe=1;var t=y(),e=v();return le=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function be(){if(pe)return ge;pe=1;var t=vt(),e=String,r=TypeError;return ge=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")}}function we(){if(de)return me;de=1;var t=y(),e=he(),r=xe(),i=be(),n=oe(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",c="writable";return me.f=t?r?function(t,e,r){if(i(t),e=n(e),i(r),"function"==typeof t&&"prototype"===e&&"value"in r&&c in r&&!r[c]){var a=o(t,e);a&&a[c]&&(t[e]=r.value,r={configurable:h in r?r[h]:a[h],enumerable:u in r?r[u]:a[u],writable:!1})}return s(t,e,r)}:s:function(t,r,o){if(i(t),r=n(r),i(o),e)try{return s(t,r,o)}catch(t){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(t[r]=o.value),t},me}function Se(){if(ye)return ve;ye=1;var t=y(),e=we(),r=ut();return ve=t?function(t,i,n){return e.f(t,i,r(1,n))}:function(t,e,r){return t[e]=r,t}}var Te,Oe,Ae,Ce,Pe,Ee,Ne,Me,Re,_e,Ve,Ie,ke,Le,De,je={exports:{}};function Be(){if(Oe)return Te;Oe=1;var t=y(),e=ne(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),a=n&&"something"===function(){}.name,s=n&&(!t||t&&i(r,"name").configurable);return Te={EXISTS:n,PROPER:a,CONFIGURABLE:s}}function ze(){if(Ce)return Ae;Ce=1;var t=ht(),e=dt(),r=ee(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return i(t)}),Ae=r.inspectSource}function Ue(){if(Me)return Ne;Me=1;var t=re(),e=ae(),r=t("keys");return Ne=function(t){return r[t]||(r[t]=e(t))}}function Fe(){return _e?Re:(_e=1,Re={})}function He(){if(Ie)return Ve;Ie=1;var t,e,r,i=function(){if(Ee)return Pe;Ee=1;var t=s(),e=dt(),r=t.WeakMap;return Pe=e(r)&&/native code/.test(String(r))}(),n=s(),a=vt(),o=Se(),u=ne(),h=ee(),c=Ue(),l=Fe(),f="Object already initialized",g=n.TypeError,p=n.WeakMap;if(i||h.state){var d=h.state||(h.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,e){if(d.has(t))throw new g(f);return e.facade=t,d.set(t,e),e},e=function(t){return d.get(t)||{}},r=function(t){return d.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(u(t,v))throw new g(f);return e.facade=t,o(t,v,e),e},e=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}return Ve={set:t,get:e,has:r,enforce:function(i){return r(i)?e(i):t(i,{})},getterFor:function(t){return function(r){var i;if(!a(r)||(i=e(r)).type!==t)throw new g("Incompatible receiver, "+t+" required");return i}}}}function Xe(){if(ke)return je.exports;ke=1;var t=ht(),e=v(),r=dt(),i=ne(),n=y(),a=Be().CONFIGURABLE,s=ze(),o=He(),u=o.enforce,h=o.get,c=String,l=Object.defineProperty,f=t("".slice),g=t("".replace),p=t([].join),d=n&&!e(function(){return 8!==l(function(){},"length",{value:8}).length}),m=String(String).split("String"),x=je.exports=function(t,e,r){"Symbol("===f(c(e),0,7)&&(e="["+g(c(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(n?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&i(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?n&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=u(t);return i(s,"source")||(s.source=p(m,"string"==typeof e?e:"")),t};return Function.prototype.toString=x(function(){return r(this)&&h(this).source||s(this)},"toString"),je.exports}function Ye(){if(De)return Le;De=1;var t=dt(),e=we(),r=Xe(),i=te();return Le=function(n,a,s,o){o||(o={});var u=o.enumerable,h=void 0!==o.name?o.name:a;if(t(s)&&r(s,h,o),o.global)u?n[a]=s:i(a,s);else{try{o.unsafe?n[a]&&(u=!0):delete n[a]}catch(t){}u?n[a]=s:e.f(n,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return n},Le}var We,qe,$e,Ge,Qe,Ze,Ke,Je,tr,er,rr,ir,nr,ar,sr,or,ur,hr={};function cr(){if(Ge)return $e;Ge=1;var t=function(){if(qe)return We;qe=1;var t=Math.ceil,e=Math.floor;return We=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)},We}();return $e=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function lr(){if(Ze)return Qe;Ze=1;var t=cr(),e=Math.max,r=Math.min;return Qe=function(i,n){var a=t(i);return a<0?e(a+n,0):r(a,n)},Qe}function fr(){if(Je)return Ke;Je=1;var t=cr(),e=Math.min;return Ke=function(r){var i=t(r);return i>0?e(i,9007199254740991):0}}function gr(){if(er)return tr;er=1;var t=fr();return tr=function(e){return t(e.length)}}function pr(){if(ir)return rr;ir=1;var t=pt(),e=lr(),r=gr(),i=function(i){return function(n,a,s){var o=t(n),u=r(o);if(0===u)return!i&&-1;var h,c=e(s,u);if(i&&a!=a){for(;u>c;)if((h=o[c++])!=h)return!0}else for(;u>c;c++)if((i||c in o)&&o[c]===a)return i||c||0;return!i&&-1}};return rr={includes:i(!0),indexOf:i(!1)}}function dr(){if(ar)return nr;ar=1;var t=ht(),e=ne(),r=pt(),i=pr().indexOf,n=Fe(),a=t([].push);return nr=function(t,s){var o,u=r(t),h=0,c=[];for(o in u)!e(n,o)&&e(u,o)&&a(c,o);for(;s.length>h;)e(u,o=s[h++])&&(~i(c,o)||a(c,o));return c},nr}function vr(){return or?sr:(or=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var yr,mr,xr,br,wr,Sr,Tr,Or,Ar,Cr,Pr,Er,Nr,Mr,Rr,_r,Vr,Ir,kr,Lr,Dr,jr,Br,zr,Ur,Fr,Hr,Xr,Yr,Wr,qr,$r,Gr,Qr,Zr,Kr,Jr,ti,ei,ri,ii,ni,ai,si,oi,ui,hi,ci,li,fi,gi,pi,di,vi,yi,mi,xi,bi,wi,Si,Ti,Oi,Ai,Ci,Pi,Ei,Ni,Mi,Ri,_i,Vi,Ii,ki,Li,Di,ji={};function Bi(){if(xr)return mr;xr=1;var t=yt(),e=ht(),r=function(){if(ur)return hr;ur=1;var t=dr(),e=vr().concat("length","prototype");return hr.f=Object.getOwnPropertyNames||function(r){return t(r,e)},hr}(),i=(yr||(yr=1,ji.f=Object.getOwnPropertySymbols),ji),n=be(),a=e([].concat);return mr=t("Reflect","ownKeys")||function(t){var e=r.f(n(t)),s=i.f;return s?a(e,s(t)):e}}function zi(){if(wr)return br;wr=1;var t=ne(),e=Bi(),r=ce(),i=we();return br=function(n,a,s){for(var o=e(a),u=i.f,h=r.f,c=0;c<o.length;c++){var l=o[c];t(n,l)||s&&t(s,l)||u(n,l,h(a,l))}},br}function Ui(){if(Tr)return Sr;Tr=1;var t=v(),e=dt(),r=/#|\.prototype\./,i=function(r,i){var u=a[n(r)];return u===o||u!==s&&(e(i)?t(i):!!i)},n=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",o=i.POLYFILL="P";return Sr=i}function Fi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=zi(),o=Ui();return Or=function(s,u){var h,c,l,f,g,p=s.target,d=s.global,v=s.stat;if(h=d?t:v?t[p]||n(p,{}):t[p]&&t[p].prototype)for(c in u){if(f=u[c],l=s.dontCallGetSet?(g=e(h,c))&&g.value:h[c],!o(d?c:p+(v?".":"#")+c,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&r(f,"sham",!0),i(h,c,f,s)}}}function Hi(){if(Pr)return Cr;Pr=1;var t=s(),e=xt(),r=ct(),i=function(t){return e.slice(0,t.length)===t};return Cr=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Xi(){if(Nr)return Er;Nr=1;var t=Hi();return Er="NODE"===t}function Yi(){if(Rr)return Mr;Rr=1;var t=s();return Mr=t}function Wi(){if(kr)return Ir;kr=1;var t=vt();return Ir=function(e){return t(e)||null===e}}function qi(){if(Dr)return Lr;Dr=1;var t=Wi(),e=String,r=TypeError;return Lr=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function $i(){if(Br)return jr;Br=1;var t=function(){if(Vr)return _r;Vr=1;var t=ht(),e=At();return _r=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=qi();return jr=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,s={};try{(n=t(Object.prototype,"__proto__","set"))(s,[]),a=s instanceof Array}catch(t){}return function(t,s){return r(t),i(s),e(t)?(a?n(t,s):t.__proto__=s,t):t}}():void 0),jr}function Gi(){if(Ur)return zr;Ur=1;var t=we().f,e=ne(),r=se()("toStringTag");return zr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function Qi(){if(Hr)return Fr;Hr=1;var t=Xe(),e=we();return Fr=function(r,i,n){return n.get&&t(n.get,i,{getter:!0}),n.set&&t(n.set,i,{setter:!0}),e.f(r,i,n)}}function Zi(){if(Yr)return Xr;Yr=1;var t=yt(),e=Qi(),r=se(),i=y(),n=r("species");return Xr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Ki(){if(qr)return Wr;qr=1;var t=mt(),e=TypeError;return Wr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Ji(){if(Zr)return Qr;Zr=1;var t=function(){if(Gr)return $r;Gr=1;var t={};return t[se()("toStringTag")]="z",$r="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return Qr=t?r:function(t){var s,o,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(s=n(t),i))?o:a?r(s):"Object"===(u=r(s))&&e(s.callee)?"Arguments":u},Qr}function tn(){if(Jr)return Kr;Jr=1;var t=ht(),e=v(),r=dt(),i=Ji(),n=yt(),a=ze(),s=function(){},o=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,h=t(u.exec),c=!u.test(s),l=function(t){if(!r(t))return!1;try{return o(s,[],t),!0}catch(t){return!1}},f=function(t){if(!r(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!h(u,a(t))}catch(t){return!0}};return f.sham=!0,Kr=!o||e(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?f:l}function en(){if(ei)return ti;ei=1;var t=tn(),e=Ot(),r=TypeError;return ti=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function rn(){if(ii)return ri;ii=1;var t=be(),e=en(),r=ft(),i=se()("species");return ri=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ri}function nn(){if(ai)return ni;ai=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ni="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ni}function an(){if(oi)return si;oi=1;var t=ct(),e=ht();return si=function(r){if("Function"===t(r))return e(r)}}function sn(){if(hi)return ui;hi=1;var t=an(),e=At(),r=m(),i=t(t.bind);return ui=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},ui}function on(){if(li)return ci;li=1;var t=yt();return ci=t("document","documentElement")}function un(){if(gi)return fi;gi=1;var t=ht();return fi=t([].slice)}function hn(){if(di)return pi;di=1;var t=TypeError;return pi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function cn(){if(yi)return vi;yi=1;var t=xt();return vi=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function ln(){if(xi)return mi;xi=1;var t,e,r,i,n=s(),a=nn(),o=sn(),u=dt(),h=ne(),c=v(),l=on(),f=un(),g=ue(),p=hn(),d=cn(),y=Xi(),m=n.setImmediate,x=n.clearImmediate,b=n.process,w=n.Dispatch,S=n.Function,T=n.MessageChannel,O=n.String,A=0,C={},P="onreadystatechange";c(function(){t=n.location});var E=function(t){if(h(C,t)){var e=C[t];delete C[t],e()}},N=function(t){return function(){E(t)}},M=function(t){E(t.data)},R=function(e){n.postMessage(O(e),t.protocol+"//"+t.host)};return m&&x||(m=function(t){p(arguments.length,1);var r=u(t)?t:S(t),i=f(arguments,1);return C[++A]=function(){a(r,void 0,i)},e(A),A},x=function(t){delete C[t]},y?e=function(t){b.nextTick(N(t))}:w&&w.now?e=function(t){w.now(N(t))}:T&&!d?(i=(r=new T).port2,r.port1.onmessage=M,e=o(i.postMessage,i)):n.addEventListener&&u(n.postMessage)&&!n.importScripts&&t&&"file:"!==t.protocol&&!c(R)?(e=R,n.addEventListener("message",M,!1)):e=P in g("script")?function(t){l.appendChild(g("script"))[P]=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(N(t),0)}),mi={set:m,clear:x}}function fn(){if(wi)return bi;wi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return bi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function gn(){if(Ti)return Si;Ti=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},Si=t}function pn(){if(Ni)return Ei;Ni=1;var t,e,r,i,n,a=s(),o=fn(),u=sn(),h=ln().set,c=gn(),l=cn(),f=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Pi)return Ci;Pi=1;var t=xt();return Ci=/web0s(?!.*chrome)/i.test(t)}(),p=Xi(),d=a.MutationObserver||a.WebKitMutationObserver,v=a.document,y=a.process,m=a.Promise,x=o("queueMicrotask");if(!x){var b=new c,w=function(){var e,r;for(p&&(e=y.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||g||!d||!v?!f&&m&&m.resolve?((i=m.resolve(void 0)).constructor=m,n=u(i.then,i),t=function(){n(w)}):p?t=function(){y.nextTick(w)}:(h=u(h,a),t=function(){h(w)}):(e=!0,r=v.createTextNode(""),new d(w).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),x=function(e){b.head||t(),b.add(e)}}return Ei=x}function dn(){return Ri||(Ri=1,Mi=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Mi}function vn(){return Vi?_i:(Vi=1,_i=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function yn(){if(ki)return Ii;ki=1;var t=s();return Ii=t.Promise}function mn(){if(Di)return Li;Di=1;var t=s(),e=yn(),r=dt(),i=Ui(),n=ze(),a=se(),o=Hi(),u=Jt(),h=bt(),c=e&&e.prototype,l=a("species"),f=!1,g=r(t.PromiseRejectionEvent),p=i("Promise",function(){var t=n(e),r=t!==String(e);if(!r&&66===h)return!0;if(u&&(!c.catch||!c.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new e(function(t){t(1)}),a=function(t){t(function(){},function(){})};if((i.constructor={})[l]=a,!(f=i.then(function(){})instanceof a))return!0}return!(r||"BROWSER"!==o&&"DENO"!==o||g)});return Li={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var xn,bn,wn={};function Sn(){if(xn)return wn;xn=1;var t=At(),e=TypeError,r=function(r){var i,n;this.promise=new r(function(t,r){if(void 0!==i||void 0!==n)throw new e("Bad Promise constructor");i=t,n=r}),this.resolve=t(i),this.reject=t(n)};return wn.f=function(t){return new r(t)},wn}var Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn,jn,Bn,zn={};function Un(){return On?Tn:(On=1,Tn={})}function Fn(){if(Cn)return An;Cn=1;var t=se(),e=Un(),r=t("iterator"),i=Array.prototype;return An=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function Hn(){if(En)return Pn;En=1;var t=Ji(),e=Ct(),r=ft(),i=Un(),n=se()("iterator");return Pn=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Xn(){if(Mn)return Nn;Mn=1;var t=x(),e=At(),r=be(),i=Ot(),n=Hn(),a=TypeError;return Nn=function(s,o){var u=arguments.length<2?n(s):o;if(e(u))return r(t(u,s));throw new a(i(s)+" is not iterable")},Nn}function Yn(){if(_n)return Rn;_n=1;var t=x(),e=be(),r=Ct();return Rn=function(i,n,a){var s,o;e(i);try{if(!(s=r(i,"return"))){if("throw"===n)throw a;return a}s=t(s,i)}catch(t){o=!0,s=t}if("throw"===n)throw a;if(o)throw s;return e(s),a}}function Wn(){if(In)return Vn;In=1;var t=sn(),e=x(),r=be(),i=Ot(),n=Fn(),a=gr(),s=mt(),o=Xn(),u=Hn(),h=Yn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Vn=function(g,p,d){var v,y,m,x,b,w,S,T=d&&d.that,O=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_RECORD),C=!(!d||!d.IS_ITERATOR),P=!(!d||!d.INTERRUPTED),E=t(p,T),N=function(t){var e=v;return v=void 0,e&&h(e,"normal"),new l(!0,t)},M=function(t){return O?(r(t),P?E(t[0],t[1],N):E(t[0],t[1])):P?E(t,N):E(t)};if(A)v=g.iterator;else if(C)v=g;else{if(!(y=u(g)))throw new c(i(g)+" is not iterable");if(n(y)){for(m=0,x=a(g);x>m;m++)if((b=M(g[m]))&&s(f,b))return b;return new l(!1)}v=o(g,y)}for(w=A?g.next:v.next;!(S=e(w,v)).done;){var R=S.value;try{b=M(R)}catch(t){if(!v)throw t;h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Vn}function qn(){if(Ln)return kn;Ln=1;var t=se()("iterator"),e=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){e=!0}};i[t]=function(){return this},Array.from(i,function(){throw 2})}catch(t){}return kn=function(r,i){try{if(!i&&!e)return!1}catch(t){return!1}var n=!1;try{var a={};a[t]=function(){return{next:function(){return{done:n=!0}}}},r(a)}catch(t){}return n}}function $n(){if(jn)return Dn;jn=1;var t=yn(),e=qn(),r=mn().CONSTRUCTOR;return Dn=r||!e(function(e){t.all(e).then(void 0,function(){})})}var Gn,Qn={};var Zn,Kn={};var Jn,ta={};var ea,ra,ia,na,aa={};function sa(){if(ra)return ea;ra=1;var t=be(),e=vt(),r=Sn();return ea=function(i,n){if(t(i),e(n)&&n.constructor===i)return n;var a=r.f(i);return(0,a.resolve)(n),a.promise}}function oa(t,e,r,i,n,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(i,n)}function ua(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){oa(a,i,n,s,o,"next",t)}function o(t){oa(a,i,n,s,o,"throw",t)}s(void 0)})}}na||(na=1,function(){if(bn)return a;bn=1;var t,e,r,i,n=Fi(),o=Jt(),u=Xi(),h=s(),c=Yi(),l=x(),f=Ye(),g=$i(),p=Gi(),d=Zi(),v=At(),y=dt(),m=vt(),b=Ki(),w=rn(),S=ln().set,T=pn(),O=dn(),A=vn(),C=gn(),P=He(),E=yn(),N=mn(),M=Sn(),R="Promise",_=N.CONSTRUCTOR,V=N.REJECTION_EVENT,I=N.SUBCLASSING,k=P.getterFor(R),L=P.set,D=E&&E.prototype,j=E,B=D,z=h.TypeError,U=h.document,F=h.process,H=M.f,X=H,Y=!!(U&&U.createEvent&&h.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},$=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,h=t.reject,c=t.domain;try{o?(s||(2===e.rejection&&J(e),e.rejection=1),!0===o?r=a:(c&&c.enter(),r=o(a),c&&(c.exit(),n=!0)),r===t.promise?h(new z("Promise-chain cycle")):(i=q(r))?l(i,r,u,h):u(r)):h(a)}catch(t){c&&!n&&c.exit(),h(t)}},G=function(t,e){t.notified||(t.notified=!0,T(function(){for(var r,i=t.reactions;r=i.get();)$(r,t);t.notified=!1,e&&!t.rejection&&Z(t)}))},Q=function(t,e,r){var i,n;Y?((i=U.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:r},!V&&(n=h["on"+t])?n(i):t===W&&O("Unhandled promise rejection",r)},Z=function(t){l(S,h,function(){var e,r=t.facade,i=t.value;if(K(t)&&(e=A(function(){u?F.emit("unhandledRejection",i,r):Q(W,r,i)}),t.rejection=u||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(S,h,function(){var e=t.facade;u?F.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)})},tt=function(t,e,r){return function(i){t(e,i,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,G(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var i=q(e);i?T(function(){var r={done:!1};try{l(i,e,tt(rt,r,t),tt(et,r,t))}catch(e){et(r,e,t)}}):(t.value=e,t.state=1,G(t,!1))}catch(e){et({done:!1},e,t)}}};if(_&&(B=(j=function(e){b(this,B),v(e),l(t,this);var r=k(this);try{e(tt(rt,r),tt(et,r))}catch(t){et(r,t)}}).prototype,(t=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=f(B,"then",function(t,e){var r=k(this),i=H(w(this,j));return r.parent=!0,i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=u?F.domain:void 0,0===r.state?r.reactions.add(i):T(function(){$(i,r)}),i.promise}),e=function(){var e=new t,r=k(e);this.promise=e,this.resolve=tt(rt,r),this.reject=tt(et,r)},M.f=H=function(t){return t===j||t===r?new e(t):X(t)},!o&&y(E)&&D!==Object.prototype)){i=D.then,I||f(D,"then",function(t,e){var r=this;return new j(function(t,e){l(i,r,t,e)}).then(t,e)},{unsafe:!0});try{delete D.constructor}catch(t){}g&&g(D,B)}n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:j}),r=c.Promise,p(j,R,!1,!0),d(R)}(),function(){if(Bn)return zn;Bn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{all:function(t){var s=this,o=i.f(s),u=o.resolve,h=o.reject,c=n(function(){var i=r(s.resolve),n=[],o=0,c=1;a(t,function(t){var r=o++,a=!1;c++,e(i,s,t).then(function(t){a||(a=!0,n[r]=t,--c||u(n))},h)}),--c||u(n)});return c.error&&h(c.value),o.promise}})}(),function(){if(Gn)return Qn;Gn=1;var t=Fi(),e=Jt(),r=mn().CONSTRUCTOR,i=yn(),n=yt(),a=dt(),s=Ye(),o=i&&i.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&a(i)){var u=n("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}}(),function(){if(Zn)return Kn;Zn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{race:function(t){var s=this,o=i.f(s),u=o.reject,h=n(function(){var i=r(s.resolve);a(t,function(t){e(i,s,t).then(o.resolve,u)})});return h.error&&u(h.value),o.promise}})}(),function(){if(Jn)return ta;Jn=1;var t=Fi(),e=Sn();t({target:"Promise",stat:!0,forced:mn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ia)return aa;ia=1;var t=Fi(),e=yt(),r=Jt(),i=yn(),n=mn().CONSTRUCTOR,a=sa(),s=e("Promise"),o=r&&!n;t({target:"Promise",stat:!0,forced:r||n},{resolve:function(t){return a(o&&this===s?i:this,t)}})}());var ha,ca,la,fa,ga,pa,da={},va={};function ya(){if(ca)return ha;ca=1;var t=Ji(),e=String;return ha=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function ma(){if(fa)return la;fa=1;var t=be();return la=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function xa(){if(pa)return ga;pa=1;var t=v(),e=s().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),i=r||t(function(){return!e("a","y").sticky}),n=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return ga={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja,Ba,za,Ua,Fa,Ha,Xa,Ya={};function Wa(){if(wa)return ba;wa=1;var t=dr(),e=vr();return ba=Object.keys||function(r){return t(r,e)},ba}function qa(){if(Oa)return Ta;Oa=1;var t,e=be(),r=function(){if(Sa)return Ya;Sa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Wa();return Ya.f=t&&!e?Object.defineProperties:function(t,e){i(t);for(var s,o=n(e),u=a(e),h=u.length,c=0;h>c;)r.f(t,s=u[c++],o[s]);return t},Ya}(),i=vr(),n=Fe(),a=on(),s=ue(),o=Ue(),u="prototype",h="script",c=o("IE_PROTO"),l=function(){},f=function(t){return"<"+h+">"+t+"</"+h+">"},g=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,r,n;p="undefined"!=typeof document?document.domain&&t?g(t):(r=s("iframe"),n="java"+h+":",r.style.display="none",a.appendChild(r),r.src=String(n),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):g(t);for(var o=i.length;o--;)delete p[u][i[o]];return p()};return n[c]=!0,Ta=Object.create||function(t,i){var n;return null!==t?(l[u]=e(t),n=new l,l[u]=null,n[c]=t):n=p(),void 0===i?n:r.f(n,i)},Ta}function $a(){if(Ma)return Na;Ma=1;var t,e,r=x(),i=ht(),n=ya(),a=ma(),o=xa(),u=re(),h=qa(),c=He().get,l=function(){if(Ca)return Aa;Ca=1;var t=v(),e=s().RegExp;return Aa=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Ea)return Pa;Ea=1;var t=v(),e=s().RegExp;return Pa=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),g=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,y=i("".charAt),m=i("".indexOf),b=i("".replace),w=i("".slice),S=(e=/b*/g,r(p,t=/a/,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),T=o.BROKEN_CARET,O=void 0!==/()??/.exec("")[1],A=function(t,e){for(var r=t.groups=h(null),i=0;i<e.length;i++){var n=e[i];r[n[0]]=t[n[1]]}};return(S||O||T||l||f)&&(d=function(t){var e,i,s,o=this,u=c(o),h=n(t),l=u.raw;if(l)return l.lastIndex=o.lastIndex,e=r(d,l,h),o.lastIndex=l.lastIndex,e&&u.groups&&A(e,u.groups),e;var f=u.groups,v=T&&o.sticky,x=r(a,o),C=o.source,P=0,E=h;if(v){x=b(x,"y",""),-1===m(x,"g")&&(x+="g"),E=w(h,o.lastIndex);var N=o.lastIndex>0&&y(h,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==N&&"\r"!==N&&"\u2028"!==N&&"\u2029"!==N)&&(C="(?: (?:"+C+"))",E=" "+E,P++),i=new RegExp("^(?:"+C+")",x)}O&&(i=new RegExp("^"+C+"$(?!\\s)",x)),S&&(s=o.lastIndex);var M=r(p,v?i:o,E);return v?M?(M.input=h,M[0]=w(M[0],P),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:S&&M&&(o.lastIndex=o.global?M.index+M[0].length:s),O&&M&&M.length>1&&r(g,M[0],i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&f&&A(M,f),M}),Na=d}function Ga(){if(Va)return _a;Va=1,function(){if(Ra)return va;Ra=1;var t=Fi(),e=$a();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=$a(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return _a=function(u,h,c,l){var f=n(u),g=!i(function(){var t={};return t[f]=function(){return 7},7!==""[u](t)}),p=g&&!i(function(){var t=!1,e=/a/;if("split"===u){var r={};r[s]=function(){return e},(e={constructor:r,flags:""})[f]=/./[f]}return e.exec=function(){return t=!0,null},e[f](""),!t});if(!g||!p||c){var d=/./[f],v=h(f,""[u],function(e,i,n,a,s){var u=i.exec;return u===r||u===o.exec?g&&!s?{done:!0,value:t(d,i,n,a)}:{done:!0,value:t(e,n,i,a)}:{done:!1}});e(String.prototype,u,v[0]),e(o,f,v[1])}l&&a(o[f],"sham",!0)},_a}function Qa(){if(Da)return La;Da=1;var t=function(){if(ka)return Ia;ka=1;var t=ht(),e=cr(),r=ya(),i=gt(),n=t("".charAt),a=t("".charCodeAt),s=t("".slice),o=function(t){return function(o,u){var h,c,l=r(i(o)),f=e(u),g=l.length;return f<0||f>=g?t?"":void 0:(h=a(l,f))<55296||h>56319||f+1===g||(c=a(l,f+1))<56320||c>57343?t?n(l,f):h:t?s(l,f,f+2):c-56320+(h-55296<<10)+65536}};return Ia={codeAt:o(!1),charAt:o(!0)}}().charAt;return La=function(e,r,i){return r+(i&&t(e,r).length||1)},La}function Za(){if(Ua)return za;Ua=1;var t=x(),e=ne(),r=mt(),i=function(){if(Ba)return ja;Ba=1;var t=s(),e=v(),r=t.RegExp,i=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",a=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)a(o,s[o]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==n||i!==n});return ja={correct:i}}(),n=ma(),a=RegExp.prototype;return za=i.correct?function(t){return t.flags}:function(s){return i.correct||!r(a,s)||e(s,"flags")?s.flags:t(n,s)}}function Ka(){if(Ha)return Fa;Ha=1;var t=x(),e=be(),r=dt(),i=ct(),n=$a(),a=TypeError;return Fa=function(s,o){var u=s.exec;if(r(u)){var h=t(u,s,o);return null!==h&&e(h),h}if("RegExp"===i(s))return t(n,s,o);throw new a("RegExp#exec called on incompatible receiver")}}!function(){if(Xa)return da;Xa=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=fr(),s=ya(),o=gt(),u=Ct(),h=Qa(),c=Za(),l=Ka(),f=e("".indexOf);r("match",function(e,r,g){return[function(r){var i=o(this),a=n(r)?u(r,e):void 0;return a?t(a,r,i):new RegExp(r)[e](s(i))},function(t){var e=i(this),n=s(t),o=g(r,e,n);if(o.done)return o.value;var u=s(c(e));if(!~f(u,"g"))return l(e,n);var p=!!~f(u,"u")||!!~f(u,"v");e.lastIndex=0;for(var d,v=[],y=0;null!==(d=l(e,n));){var m=s(d[0]);v[y]=m,""===m&&(e.lastIndex=h(n,a(e.lastIndex),p)),y++}return 0===y?null:v}]})}();var Ja,ts,es,rs={};function is(){if(ts)return Ja;ts=1;var t=ht(),e=ie(),r=Math.floor,i=t("".charAt),n=t("".replace),a=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return Ja=function(t,u,h,c,l,f){var g=h+t.length,p=c.length,d=o;return void 0!==l&&(l=e(l),d=s),n(f,d,function(e,n){var s;switch(i(n,0)){case"$":return"$";case"&":return t;case"`":return a(u,0,h);case"'":return a(u,g);case"<":s=l[a(n,1,-1)];break;default:var o=+n;if(0===o)return e;if(o>p){var f=r(o/10);return 0===f?e:f<=p?void 0===c[f-1]?i(n,1):c[f-1]+i(n,1):e}s=c[o-1]}return void 0===s?"":s})},Ja}!function(){if(es)return rs;es=1;var t=nn(),e=x(),r=ht(),i=Ga(),n=v(),a=be(),s=dt(),o=vt(),u=cr(),h=fr(),c=ya(),l=gt(),f=Qa(),g=Ct(),p=is(),d=Za(),y=Ka(),m=se()("replace"),b=Math.max,w=Math.min,S=r([].concat),T=r([].push),O=r("".indexOf),A=r("".slice),C=function(t){return void 0===t?t:String(t)},P="$0"==="a".replace(/./,"$0"),E=!!/./[m]&&""===/./[m]("a","$0");i("replace",function(r,i,n){var v=E?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?g(t,m):void 0;return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e),g=s(r);g||(r=c(r));var m=c(d(o));if("string"==typeof r&&!~O(r,v)&&!~O(r,"$<")&&!~O(m,"y")){var x=n(i,o,l,r);if(x.done)return x.value}var P,E=!!~O(m,"g");E&&(P=!!~O(m,"u")||!!~O(m,"v"),o.lastIndex=0);for(var N,M=[];null!==(N=y(o,l))&&(T(M,N),E);){""===c(N[0])&&(o.lastIndex=f(l,h(o.lastIndex),P))}for(var R="",_=0,V=0;V<M.length;V++){for(var I,k=c((N=M[V])[0]),L=b(w(u(N.index),l.length),0),D=[],j=1;j<N.length;j++)T(D,C(N[j]));var B=N.groups;if(g){var z=S([k],D,L,l);void 0!==B&&T(z,B),I=c(t(r,void 0,z))}else I=p(k,l,L,D,B,r);L>=_&&(R+=A(l,_,L)+I,_=L+k.length)}return R+A(l,_)}]},!!n(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||E)}();var ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs,bs,ws,Ss,Ts,Os,As,Cs,Ps={};function Es(){if(os)return ss;os=1;var t=function(){if(as)return ns;as=1;var t=vt(),e=ct(),r=se()("match");return ns=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return ss=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function Ns(){if(hs)return us;hs=1;var t=se()("match");return us=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ms(){if(fs)return ls;fs=1;var t=se(),e=qa(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),ls=function(t){n[i][t]=!0}}function Rs(){if(vs)return ds;vs=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ps)return gs;ps=1;var t=v();return gs=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),a=i("IE_PROTO"),s=Object,o=s.prototype;return ds=n?s.getPrototypeOf:function(i){var n=r(i);if(t(n,a))return n[a];var u=n.constructor;return e(u)&&n instanceof u?u.prototype:n instanceof s?o:null},ds}function _s(){if(ms)return ys;ms=1;var t,e,r,i=v(),n=dt(),a=vt(),s=qa(),o=Rs(),u=Ye(),h=se(),c=Jt(),l=h("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(e=o(o(r)))!==Object.prototype&&(t=e):f=!0),!a(t)||i(function(){var e={};return t[l].call(e)!==e})?t={}:c&&(t=s(t)),n(t[l])||u(t,l,function(){return this}),ys={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function Vs(){if(Ss)return ws;Ss=1;var t=Fi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(bs)return xs;bs=1;var t=_s().IteratorPrototype,e=qa(),r=ut(),i=Gi(),n=Un(),a=function(){return this};return xs=function(s,o,u,h){var c=o+" Iterator";return s.prototype=e(t,{next:r(+!h,u)}),i(s,c,!1,!0),n[c]=a,s}}(),s=Rs(),o=$i(),u=Gi(),h=Se(),c=Ye(),l=se(),f=Un(),g=_s(),p=i.PROPER,d=i.CONFIGURABLE,v=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",T=function(){return this};return ws=function(i,l,g,x,O,A,C){a(g,l,x);var P,E,N,M=function(t){if(t===O&&k)return k;if(!y&&t&&t in V)return V[t];switch(t){case b:case w:case S:return function(){return new g(this,t)}}return function(){return new g(this)}},R=l+" Iterator",_=!1,V=i.prototype,I=V[m]||V["@@iterator"]||O&&V[O],k=!y&&I||M(O),L="Array"===l&&V.entries||I;if(L&&(P=s(L.call(new i)))!==Object.prototype&&P.next&&(r||s(P)===v||(o?o(P,v):n(P[m])||c(P,m,T)),u(P,R,!0,!0),r&&(f[R]=T)),p&&O===w&&I&&I.name!==w&&(!r&&d?h(V,"name",w):(_=!0,k=function(){return e(I,this)})),O)if(E={values:M(w),keys:A?k:M(b),entries:M(S)},C)for(N in E)(y||_||!(N in V))&&c(V,N,E[N]);else t({target:l,proto:!0,forced:y||_},E);return r&&!C||V[m]===k||c(V,m,k,{name:O}),f[l]=k,E}}function Is(){return Os?Ts:(Os=1,Ts=function(t,e){return{value:t,done:e}})}function ks(){if(Cs)return As;Cs=1;var t=pt(),e=Ms(),r=Un(),i=He(),n=we().f,a=Vs(),s=Is(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);As=a(Array,"Array",function(e,r){c(this,{type:h,target:t(e),index:0,kind:r})},function(){var t=l(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)},"values");var f=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&"values"!==f.name)try{n(f,"name",{value:"values"})}catch(t){}return As}!function(){if(cs)return Ps;cs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),h=Jt(),c=r("".slice),l=Math.min,f=u("startsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"startsWith"),!t||t.writable))&&!f},{startsWith:function(t){var e=a(o(this));s(t);var r=a(t),i=n(l(arguments.length>1?arguments[1]:void 0,e.length));return c(e,i,i+r.length)===r}})}(),ks();var Ls,Ds,js,Bs,zs,Us={};function Fs(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,r);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:r+""}function Hs(t,e,r){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(zs)return Us;zs=1;var t=s(),e=Ds?Ls:(Ds=1,Ls={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}),r=function(){if(Bs)return js;Bs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return js=e===Object.prototype?void 0:e}(),i=ks(),n=Se(),a=Gi(),o=se()("iterator"),u=i.values,h=function(t,r){if(t){if(t[o]!==u)try{n(t,o,u)}catch(e){t[o]=u}if(a(t,r,!0),e[r])for(var s in i)if(t[s]!==i[s])try{n(t,s,i[s])}catch(e){t[s]=i[s]}}};for(var c in e)h(t[c]&&t[c].prototype,c);h(r,"DOMTokenList")}();var Xs,Ys,Ws,qs,$s,Gs={};function Qs(){if(qs)return Ws;qs=1;var t=v();return Ws=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})}}!function(){if($s)return Gs;$s=1;var t=Fi(),e=function(){if(Ys)return Xs;Ys=1;var t=At(),e=ie(),r=lt(),i=gr(),n=TypeError,a="Reduce of empty array with no initial value",s=function(s){return function(o,u,h,c){var l=e(o),f=r(l),g=i(l);if(t(u),0===g&&h<2)throw new n(a);var p=s?g-1:0,d=s?-1:1;if(h<2)for(;;){if(p in f){c=f[p],p+=d;break}if(p+=d,s?p<0:g<=p)throw new n(a)}for(;s?p>=0:g>p;p+=d)p in f&&(c=u(c,f[p],p,l));return c}};return Xs={left:s(!1),right:s(!0)}}().left,r=Qs(),i=bt();t({target:"Array",proto:!0,forced:!Xi()&&i>79&&i<83||!r("reduce")},{reduce:function(t){var r=arguments.length;return e(this,t,r,r>1?arguments[1]:void 0)}})}();var Zs,Ks={};!function(){if(Zs)return Ks;Zs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),h=Jt(),c=r("".slice),l=Math.min,f=u("endsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"endsWith"),!t||t.writable))&&!f},{endsWith:function(t){var e=a(o(this));s(t);var r=a(t),i=arguments.length>1?arguments[1]:void 0,u=e.length,h=void 0===i?u:l(n(i),u);return c(e,h-r.length,h)===r}})}();var Js,to={};!function(){if(Js)return to;Js=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=gt(),s=rn(),o=Qa(),u=fr(),h=ya(),c=Ct(),l=Za(),f=Ka(),g=xa(),p=v(),d=g.UNSUPPORTED_Y,y=Math.min,m=e([].push),b=e("".slice),w=e("".indexOf),S=!p(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]}),T="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(e,r,g){var p="0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t(r,this,e,i)}:r;return[function(r,i){var s=a(this),o=n(r)?c(r,e):void 0;return o?t(o,r,s,i):t(p,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!T){var c=g(p,n,a,e,p!==r);if(c.done)return c.value}var v=s(n,RegExp),x=h(l(n)),S=!!~w(x,"u")||!!~w(x,"v");d?~w(x,"g")||(x+="g"):~w(x,"y")||(x+="y");var O=new v(d?"^(?:"+n.source+")":n,x),A=void 0===e?4294967295:e>>>0;if(0===A)return[];if(0===a.length)return null===f(O,a)?[a]:[];for(var C=0,P=0,E=[];P<a.length;){O.lastIndex=d?0:P;var N,M=f(O,d?b(a,P):a);if(null===M||(N=y(u(O.lastIndex+(d?P:0)),a.length))===C)P=o(a,P,S);else{if(m(E,b(a,C,P)),E.length===A)return E;for(var R=1;R<=M.length-1;R++)if(m(E,M[R]),E.length===A)return E;P=C=N}}return m(E,b(a,C)),E}]},T||!S,d)}();var eo,ro,io={exports:{}},no={exports:{}},ao=no.exports;var so,oo,uo,ho,co,lo,fo,go,po,vo=function(){if(ro)return io.exports;ro=1;for(var e=(eo||(eo=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?no.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(no.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?(no.exports=function(){return Date.now()-r},r=Date.now()):(no.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(ao)),no.exports),r="undefined"==typeof window?t:window,i=["moz","webkit"],n="AnimationFrame",a=r["request"+n],s=r["cancel"+n]||r["cancelRequest"+n],o=0;!a&&o<i.length;o++)a=r[i[o]+"Request"+n],s=r[i[o]+"Cancel"+n]||r[i[o]+"CancelRequest"+n];if(!a||!s){var u=0,h=0,c=[],l=1e3/60;a=function(t){if(0===c.length){var r=e(),i=Math.max(0,l-(r-u));u=i+r,setTimeout(function(){var t=c.slice(0);c.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return c.push({handle:++h,callback:t,cancelled:!1}),h},s=function(t){for(var e=0;e<c.length;e++)c[e].handle===t&&(c[e].cancelled=!0)}}return io.exports=function(t){return a.call(r,t)},io.exports.cancel=function(){s.apply(r,arguments)},io.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},io.exports}(),yo=r(vo),mo={};function xo(){return oo?so:(oo=1,so="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(fo)return mo;fo=1;var t=Fi(),e=function(){if(ho)return uo;ho=1;var t=ht(),e=gt(),r=ya(),i=xo(),n=t("".replace),a=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),o=function(t){return function(i){var o=r(e(i));return 1&t&&(o=n(o,a,"")),2&t&&(o=n(o,s,"$1")),o}};return uo={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(lo)return co;lo=1;var t=Be().PROPER,e=v(),r=xo();return co=function(i){return e(function(){return!!r[i]()||"​…᠎"!=="​…᠎"[i]()||t&&r[i].name!==i})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var bo,wo=(po||(po=1,go=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");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var u=document.createElement("li"),h=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[i]+" -> "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}),go),So=r(wo),To={};!function(){if(bo)return To;bo=1;var t=Fi(),e=an(),r=pr().indexOf,i=Qs(),n=e([].indexOf),a=!!n&&1/n([1],1,-0)<0;t({target:"Array",proto:!0,forced:a||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?n(this,t,e)||0:r(this,t,e)}})}();var Oo,Ao={};!function(){if(Oo)return Ao;Oo=1;var t=Fi(),e=ht(),r=Es(),i=gt(),n=ya(),a=Ns(),s=e("".indexOf);t({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(n(i(this)),n(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var Co,Po,Eo,No={};function Mo(){if(Po)return Co;Po=1;var t=ct();return Co=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(Eo)return No;Eo=1;var t=Fi(),e=ht(),r=Mo(),i=e([].reverse),n=[1,2];t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}})}();
1
+ import{c as t,_ as e,g as r}from"./downloadPDF-C-y2U2YC.js";import"./main.js";var i,n,a={};function s(){if(n)return i;n=1;var e=function(t){return t&&t.Math===Math&&t};return i=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var o,u,h,c,l,f,g,p,d={};function v(){return u?o:(u=1,o=function(t){try{return!!t()}catch(t){return!0}})}function y(){if(c)return h;c=1;var t=v();return h=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function m(){if(f)return l;f=1;var t=v();return l=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function x(){if(p)return g;p=1;var t=m(),e=Function.prototype.call;return g=t?e.bind(e):function(){return e.apply(e,arguments)},g}var b,w,S,T,O,A,C,P,E,N,M,R,_,V,I,k,L,D,j,B,z,U,F,H,X,Y,W,q,$,G,Q,Z,K,J,tt,et,rt,it,nt,at,st,ot={};function ut(){return S?w:(S=1,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function ht(){if(O)return T;O=1;var t=m(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return T=t?i:function(t){return function(){return r.apply(t,arguments)}},T}function ct(){if(C)return A;C=1;var t=ht(),e=t({}.toString),r=t("".slice);return A=function(t){return r(e(t),8,-1)}}function lt(){if(E)return P;E=1;var t=ht(),e=v(),r=ct(),i=Object,n=t("".split);return P=e(function(){return!i("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?n(t,""):i(t)}:i}function ft(){return M?N:(M=1,N=function(t){return null==t})}function gt(){if(_)return R;_=1;var t=ft(),e=TypeError;return R=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function pt(){if(I)return V;I=1;var t=lt(),e=gt();return V=function(r){return t(e(r))}}function dt(){if(L)return k;L=1;var t="object"==typeof document&&document.all;return k=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function vt(){if(j)return D;j=1;var t=dt();return D=function(e){return"object"==typeof e?null!==e:t(e)}}function yt(){if(z)return B;z=1;var t=s(),e=dt();return B=function(r,i){return arguments.length<2?(n=t[r],e(n)?n:void 0):t[r]&&t[r][i];var n},B}function mt(){if(F)return U;F=1;var t=ht();return U=t({}.isPrototypeOf)}function xt(){if(X)return H;X=1;var t=s().navigator,e=t&&t.userAgent;return H=e?String(e):""}function bt(){if(W)return Y;W=1;var t,e,r=s(),i=xt(),n=r.process,a=r.Deno,o=n&&n.versions||a&&a.version,u=o&&o.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(e=+t[1]),Y=e}function wt(){if($)return q;$=1;var t=bt(),e=v(),r=s().String;return q=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function St(){if(Q)return G;Q=1;var t=wt();return G=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Tt(){if(K)return Z;K=1;var t=yt(),e=dt(),r=mt(),i=St(),n=Object;return Z=i?function(t){return"symbol"==typeof t}:function(i){var a=t("Symbol");return e(a)&&r(a.prototype,n(i))}}function Ot(){if(tt)return J;tt=1;var t=String;return J=function(e){try{return t(e)}catch(t){return"Object"}}}function At(){if(rt)return et;rt=1;var t=dt(),e=Ot(),r=TypeError;return et=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")}}function Ct(){if(nt)return it;nt=1;var t=At(),e=ft();return it=function(r,i){var n=r[i];return e(n)?void 0:t(n)}}function Pt(){if(st)return at;st=1;var t=x(),e=dt(),r=vt(),i=TypeError;return at=function(n,a){var s,o;if("string"===a&&e(s=n.toString)&&!r(o=t(s,n)))return o;if(e(s=n.valueOf)&&!r(o=t(s,n)))return o;if("string"!==a&&e(s=n.toString)&&!r(o=t(s,n)))return o;throw new i("Can't convert object to primitive value")}}var Et,Nt,Mt,Rt,_t,Vt,It,kt,Lt,Dt,jt,Bt,zt,Ut,Ft,Ht,Xt,Yt,Wt,qt,$t,Gt,Qt,Zt,Kt={exports:{}};function Jt(){return Nt?Et:(Nt=1,Et=!1)}function te(){if(Rt)return Mt;Rt=1;var t=s(),e=Object.defineProperty;return Mt=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch(e){t[r]=i}return i}}function ee(){if(_t)return Kt.exports;_t=1;var t=Jt(),e=s(),r=te(),i="__core-js_shared__",n=Kt.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kt.exports}function re(){if(It)return Vt;It=1;var t=ee();return Vt=function(e,r){return t[e]||(t[e]=r||{})}}function ie(){if(Lt)return kt;Lt=1;var t=gt(),e=Object;return kt=function(r){return e(t(r))}}function ne(){if(jt)return Dt;jt=1;var t=ht(),e=ie(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,i){return r(e(t),i)}}function ae(){if(zt)return Bt;zt=1;var t=ht(),e=0,r=Math.random(),i=t(1.1.toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++e+r,36)}}function se(){if(Ft)return Ut;Ft=1;var t=s(),e=re(),r=ne(),i=ae(),n=wt(),a=St(),o=t.Symbol,u=e("wks"),h=a?o.for||o:o&&o.withoutSetter||i;return Ut=function(t){return r(u,t)||(u[t]=n&&r(o,t)?o[t]:h("Symbol."+t)),u[t]}}function oe(){if(Wt)return Yt;Wt=1;var t=function(){if(Xt)return Ht;Xt=1;var t=x(),e=vt(),r=Tt(),i=Ct(),n=Pt(),a=se(),s=TypeError,o=a("toPrimitive");return Ht=function(a,u){if(!e(a)||r(a))return a;var h,c=i(a,o);if(c){if(void 0===u&&(u="default"),h=t(c,a,u),!e(h)||r(h))return h;throw new s("Can't convert object to primitive value")}return void 0===u&&(u="number"),n(a,u)}}(),e=Tt();return Yt=function(r){var i=t(r,"string");return e(i)?i:i+""}}function ue(){if($t)return qt;$t=1;var t=s(),e=vt(),r=t.document,i=e(r)&&e(r.createElement);return qt=function(t){return i?r.createElement(t):{}}}function he(){if(Qt)return Gt;Qt=1;var t=y(),e=v(),r=ue();return Gt=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function ce(){if(Zt)return d;Zt=1;var t=y(),e=x(),r=function(){if(b)return ot;b=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return ot.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,ot}(),i=ut(),n=pt(),a=oe(),s=ne(),o=he(),u=Object.getOwnPropertyDescriptor;return d.f=t?u:function(t,h){if(t=n(t),h=a(h),o)try{return u(t,h)}catch(t){}if(s(t,h))return i(!e(r.f,t,h),t[h])},d}var le,fe,ge,pe,de,ve,ye,me={};function xe(){if(fe)return le;fe=1;var t=y(),e=v();return le=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function be(){if(pe)return ge;pe=1;var t=vt(),e=String,r=TypeError;return ge=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")}}function we(){if(de)return me;de=1;var t=y(),e=he(),r=xe(),i=be(),n=oe(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",c="writable";return me.f=t?r?function(t,e,r){if(i(t),e=n(e),i(r),"function"==typeof t&&"prototype"===e&&"value"in r&&c in r&&!r[c]){var a=o(t,e);a&&a[c]&&(t[e]=r.value,r={configurable:h in r?r[h]:a[h],enumerable:u in r?r[u]:a[u],writable:!1})}return s(t,e,r)}:s:function(t,r,o){if(i(t),r=n(r),i(o),e)try{return s(t,r,o)}catch(t){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(t[r]=o.value),t},me}function Se(){if(ye)return ve;ye=1;var t=y(),e=we(),r=ut();return ve=t?function(t,i,n){return e.f(t,i,r(1,n))}:function(t,e,r){return t[e]=r,t}}var Te,Oe,Ae,Ce,Pe,Ee,Ne,Me,Re,_e,Ve,Ie,ke,Le,De,je={exports:{}};function Be(){if(Oe)return Te;Oe=1;var t=y(),e=ne(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),a=n&&"something"===function(){}.name,s=n&&(!t||t&&i(r,"name").configurable);return Te={EXISTS:n,PROPER:a,CONFIGURABLE:s}}function ze(){if(Ce)return Ae;Ce=1;var t=ht(),e=dt(),r=ee(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return i(t)}),Ae=r.inspectSource}function Ue(){if(Me)return Ne;Me=1;var t=re(),e=ae(),r=t("keys");return Ne=function(t){return r[t]||(r[t]=e(t))}}function Fe(){return _e?Re:(_e=1,Re={})}function He(){if(Ie)return Ve;Ie=1;var t,e,r,i=function(){if(Ee)return Pe;Ee=1;var t=s(),e=dt(),r=t.WeakMap;return Pe=e(r)&&/native code/.test(String(r))}(),n=s(),a=vt(),o=Se(),u=ne(),h=ee(),c=Ue(),l=Fe(),f="Object already initialized",g=n.TypeError,p=n.WeakMap;if(i||h.state){var d=h.state||(h.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,e){if(d.has(t))throw new g(f);return e.facade=t,d.set(t,e),e},e=function(t){return d.get(t)||{}},r=function(t){return d.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(u(t,v))throw new g(f);return e.facade=t,o(t,v,e),e},e=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}return Ve={set:t,get:e,has:r,enforce:function(i){return r(i)?e(i):t(i,{})},getterFor:function(t){return function(r){var i;if(!a(r)||(i=e(r)).type!==t)throw new g("Incompatible receiver, "+t+" required");return i}}}}function Xe(){if(ke)return je.exports;ke=1;var t=ht(),e=v(),r=dt(),i=ne(),n=y(),a=Be().CONFIGURABLE,s=ze(),o=He(),u=o.enforce,h=o.get,c=String,l=Object.defineProperty,f=t("".slice),g=t("".replace),p=t([].join),d=n&&!e(function(){return 8!==l(function(){},"length",{value:8}).length}),m=String(String).split("String"),x=je.exports=function(t,e,r){"Symbol("===f(c(e),0,7)&&(e="["+g(c(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(n?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&i(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?n&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=u(t);return i(s,"source")||(s.source=p(m,"string"==typeof e?e:"")),t};return Function.prototype.toString=x(function(){return r(this)&&h(this).source||s(this)},"toString"),je.exports}function Ye(){if(De)return Le;De=1;var t=dt(),e=we(),r=Xe(),i=te();return Le=function(n,a,s,o){o||(o={});var u=o.enumerable,h=void 0!==o.name?o.name:a;if(t(s)&&r(s,h,o),o.global)u?n[a]=s:i(a,s);else{try{o.unsafe?n[a]&&(u=!0):delete n[a]}catch(t){}u?n[a]=s:e.f(n,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return n},Le}var We,qe,$e,Ge,Qe,Ze,Ke,Je,tr,er,rr,ir,nr,ar,sr,or,ur,hr={};function cr(){if(Ge)return $e;Ge=1;var t=function(){if(qe)return We;qe=1;var t=Math.ceil,e=Math.floor;return We=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)},We}();return $e=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function lr(){if(Ze)return Qe;Ze=1;var t=cr(),e=Math.max,r=Math.min;return Qe=function(i,n){var a=t(i);return a<0?e(a+n,0):r(a,n)},Qe}function fr(){if(Je)return Ke;Je=1;var t=cr(),e=Math.min;return Ke=function(r){var i=t(r);return i>0?e(i,9007199254740991):0}}function gr(){if(er)return tr;er=1;var t=fr();return tr=function(e){return t(e.length)}}function pr(){if(ir)return rr;ir=1;var t=pt(),e=lr(),r=gr(),i=function(i){return function(n,a,s){var o=t(n),u=r(o);if(0===u)return!i&&-1;var h,c=e(s,u);if(i&&a!=a){for(;u>c;)if((h=o[c++])!=h)return!0}else for(;u>c;c++)if((i||c in o)&&o[c]===a)return i||c||0;return!i&&-1}};return rr={includes:i(!0),indexOf:i(!1)}}function dr(){if(ar)return nr;ar=1;var t=ht(),e=ne(),r=pt(),i=pr().indexOf,n=Fe(),a=t([].push);return nr=function(t,s){var o,u=r(t),h=0,c=[];for(o in u)!e(n,o)&&e(u,o)&&a(c,o);for(;s.length>h;)e(u,o=s[h++])&&(~i(c,o)||a(c,o));return c},nr}function vr(){return or?sr:(or=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var yr,mr,xr,br,wr,Sr,Tr,Or,Ar,Cr,Pr,Er,Nr,Mr,Rr,_r,Vr,Ir,kr,Lr,Dr,jr,Br,zr,Ur,Fr,Hr,Xr,Yr,Wr,qr,$r,Gr,Qr,Zr,Kr,Jr,ti,ei,ri,ii,ni,ai,si,oi,ui,hi,ci,li,fi,gi,pi,di,vi,yi,mi,xi,bi,wi,Si,Ti,Oi,Ai,Ci,Pi,Ei,Ni,Mi,Ri,_i,Vi,Ii,ki,Li,Di,ji={};function Bi(){if(xr)return mr;xr=1;var t=yt(),e=ht(),r=function(){if(ur)return hr;ur=1;var t=dr(),e=vr().concat("length","prototype");return hr.f=Object.getOwnPropertyNames||function(r){return t(r,e)},hr}(),i=(yr||(yr=1,ji.f=Object.getOwnPropertySymbols),ji),n=be(),a=e([].concat);return mr=t("Reflect","ownKeys")||function(t){var e=r.f(n(t)),s=i.f;return s?a(e,s(t)):e}}function zi(){if(wr)return br;wr=1;var t=ne(),e=Bi(),r=ce(),i=we();return br=function(n,a,s){for(var o=e(a),u=i.f,h=r.f,c=0;c<o.length;c++){var l=o[c];t(n,l)||s&&t(s,l)||u(n,l,h(a,l))}},br}function Ui(){if(Tr)return Sr;Tr=1;var t=v(),e=dt(),r=/#|\.prototype\./,i=function(r,i){var u=a[n(r)];return u===o||u!==s&&(e(i)?t(i):!!i)},n=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",o=i.POLYFILL="P";return Sr=i}function Fi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=zi(),o=Ui();return Or=function(s,u){var h,c,l,f,g,p=s.target,d=s.global,v=s.stat;if(h=d?t:v?t[p]||n(p,{}):t[p]&&t[p].prototype)for(c in u){if(f=u[c],l=s.dontCallGetSet?(g=e(h,c))&&g.value:h[c],!o(d?c:p+(v?".":"#")+c,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&r(f,"sham",!0),i(h,c,f,s)}}}function Hi(){if(Pr)return Cr;Pr=1;var t=s(),e=xt(),r=ct(),i=function(t){return e.slice(0,t.length)===t};return Cr=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Xi(){if(Nr)return Er;Nr=1;var t=Hi();return Er="NODE"===t}function Yi(){if(Rr)return Mr;Rr=1;var t=s();return Mr=t}function Wi(){if(kr)return Ir;kr=1;var t=vt();return Ir=function(e){return t(e)||null===e}}function qi(){if(Dr)return Lr;Dr=1;var t=Wi(),e=String,r=TypeError;return Lr=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function $i(){if(Br)return jr;Br=1;var t=function(){if(Vr)return _r;Vr=1;var t=ht(),e=At();return _r=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=qi();return jr=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,s={};try{(n=t(Object.prototype,"__proto__","set"))(s,[]),a=s instanceof Array}catch(t){}return function(t,s){return r(t),i(s),e(t)?(a?n(t,s):t.__proto__=s,t):t}}():void 0),jr}function Gi(){if(Ur)return zr;Ur=1;var t=we().f,e=ne(),r=se()("toStringTag");return zr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function Qi(){if(Hr)return Fr;Hr=1;var t=Xe(),e=we();return Fr=function(r,i,n){return n.get&&t(n.get,i,{getter:!0}),n.set&&t(n.set,i,{setter:!0}),e.f(r,i,n)}}function Zi(){if(Yr)return Xr;Yr=1;var t=yt(),e=Qi(),r=se(),i=y(),n=r("species");return Xr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Ki(){if(qr)return Wr;qr=1;var t=mt(),e=TypeError;return Wr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Ji(){if(Zr)return Qr;Zr=1;var t=function(){if(Gr)return $r;Gr=1;var t={};return t[se()("toStringTag")]="z",$r="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return Qr=t?r:function(t){var s,o,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(s=n(t),i))?o:a?r(s):"Object"===(u=r(s))&&e(s.callee)?"Arguments":u},Qr}function tn(){if(Jr)return Kr;Jr=1;var t=ht(),e=v(),r=dt(),i=Ji(),n=yt(),a=ze(),s=function(){},o=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,h=t(u.exec),c=!u.test(s),l=function(t){if(!r(t))return!1;try{return o(s,[],t),!0}catch(t){return!1}},f=function(t){if(!r(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!h(u,a(t))}catch(t){return!0}};return f.sham=!0,Kr=!o||e(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?f:l}function en(){if(ei)return ti;ei=1;var t=tn(),e=Ot(),r=TypeError;return ti=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function rn(){if(ii)return ri;ii=1;var t=be(),e=en(),r=ft(),i=se()("species");return ri=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ri}function nn(){if(ai)return ni;ai=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ni="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ni}function an(){if(oi)return si;oi=1;var t=ct(),e=ht();return si=function(r){if("Function"===t(r))return e(r)}}function sn(){if(hi)return ui;hi=1;var t=an(),e=At(),r=m(),i=t(t.bind);return ui=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},ui}function on(){if(li)return ci;li=1;var t=yt();return ci=t("document","documentElement")}function un(){if(gi)return fi;gi=1;var t=ht();return fi=t([].slice)}function hn(){if(di)return pi;di=1;var t=TypeError;return pi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function cn(){if(yi)return vi;yi=1;var t=xt();return vi=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function ln(){if(xi)return mi;xi=1;var t,e,r,i,n=s(),a=nn(),o=sn(),u=dt(),h=ne(),c=v(),l=on(),f=un(),g=ue(),p=hn(),d=cn(),y=Xi(),m=n.setImmediate,x=n.clearImmediate,b=n.process,w=n.Dispatch,S=n.Function,T=n.MessageChannel,O=n.String,A=0,C={},P="onreadystatechange";c(function(){t=n.location});var E=function(t){if(h(C,t)){var e=C[t];delete C[t],e()}},N=function(t){return function(){E(t)}},M=function(t){E(t.data)},R=function(e){n.postMessage(O(e),t.protocol+"//"+t.host)};return m&&x||(m=function(t){p(arguments.length,1);var r=u(t)?t:S(t),i=f(arguments,1);return C[++A]=function(){a(r,void 0,i)},e(A),A},x=function(t){delete C[t]},y?e=function(t){b.nextTick(N(t))}:w&&w.now?e=function(t){w.now(N(t))}:T&&!d?(i=(r=new T).port2,r.port1.onmessage=M,e=o(i.postMessage,i)):n.addEventListener&&u(n.postMessage)&&!n.importScripts&&t&&"file:"!==t.protocol&&!c(R)?(e=R,n.addEventListener("message",M,!1)):e=P in g("script")?function(t){l.appendChild(g("script"))[P]=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(N(t),0)}),mi={set:m,clear:x}}function fn(){if(wi)return bi;wi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return bi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function gn(){if(Ti)return Si;Ti=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},Si=t}function pn(){if(Ni)return Ei;Ni=1;var t,e,r,i,n,a=s(),o=fn(),u=sn(),h=ln().set,c=gn(),l=cn(),f=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Pi)return Ci;Pi=1;var t=xt();return Ci=/web0s(?!.*chrome)/i.test(t)}(),p=Xi(),d=a.MutationObserver||a.WebKitMutationObserver,v=a.document,y=a.process,m=a.Promise,x=o("queueMicrotask");if(!x){var b=new c,w=function(){var e,r;for(p&&(e=y.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||g||!d||!v?!f&&m&&m.resolve?((i=m.resolve(void 0)).constructor=m,n=u(i.then,i),t=function(){n(w)}):p?t=function(){y.nextTick(w)}:(h=u(h,a),t=function(){h(w)}):(e=!0,r=v.createTextNode(""),new d(w).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),x=function(e){b.head||t(),b.add(e)}}return Ei=x}function dn(){return Ri||(Ri=1,Mi=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Mi}function vn(){return Vi?_i:(Vi=1,_i=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function yn(){if(ki)return Ii;ki=1;var t=s();return Ii=t.Promise}function mn(){if(Di)return Li;Di=1;var t=s(),e=yn(),r=dt(),i=Ui(),n=ze(),a=se(),o=Hi(),u=Jt(),h=bt(),c=e&&e.prototype,l=a("species"),f=!1,g=r(t.PromiseRejectionEvent),p=i("Promise",function(){var t=n(e),r=t!==String(e);if(!r&&66===h)return!0;if(u&&(!c.catch||!c.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new e(function(t){t(1)}),a=function(t){t(function(){},function(){})};if((i.constructor={})[l]=a,!(f=i.then(function(){})instanceof a))return!0}return!(r||"BROWSER"!==o&&"DENO"!==o||g)});return Li={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var xn,bn,wn={};function Sn(){if(xn)return wn;xn=1;var t=At(),e=TypeError,r=function(r){var i,n;this.promise=new r(function(t,r){if(void 0!==i||void 0!==n)throw new e("Bad Promise constructor");i=t,n=r}),this.resolve=t(i),this.reject=t(n)};return wn.f=function(t){return new r(t)},wn}var Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn,jn,Bn,zn={};function Un(){return On?Tn:(On=1,Tn={})}function Fn(){if(Cn)return An;Cn=1;var t=se(),e=Un(),r=t("iterator"),i=Array.prototype;return An=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function Hn(){if(En)return Pn;En=1;var t=Ji(),e=Ct(),r=ft(),i=Un(),n=se()("iterator");return Pn=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Xn(){if(Mn)return Nn;Mn=1;var t=x(),e=At(),r=be(),i=Ot(),n=Hn(),a=TypeError;return Nn=function(s,o){var u=arguments.length<2?n(s):o;if(e(u))return r(t(u,s));throw new a(i(s)+" is not iterable")},Nn}function Yn(){if(_n)return Rn;_n=1;var t=x(),e=be(),r=Ct();return Rn=function(i,n,a){var s,o;e(i);try{if(!(s=r(i,"return"))){if("throw"===n)throw a;return a}s=t(s,i)}catch(t){o=!0,s=t}if("throw"===n)throw a;if(o)throw s;return e(s),a}}function Wn(){if(In)return Vn;In=1;var t=sn(),e=x(),r=be(),i=Ot(),n=Fn(),a=gr(),s=mt(),o=Xn(),u=Hn(),h=Yn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Vn=function(g,p,d){var v,y,m,x,b,w,S,T=d&&d.that,O=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_RECORD),C=!(!d||!d.IS_ITERATOR),P=!(!d||!d.INTERRUPTED),E=t(p,T),N=function(t){var e=v;return v=void 0,e&&h(e,"normal"),new l(!0,t)},M=function(t){return O?(r(t),P?E(t[0],t[1],N):E(t[0],t[1])):P?E(t,N):E(t)};if(A)v=g.iterator;else if(C)v=g;else{if(!(y=u(g)))throw new c(i(g)+" is not iterable");if(n(y)){for(m=0,x=a(g);x>m;m++)if((b=M(g[m]))&&s(f,b))return b;return new l(!1)}v=o(g,y)}for(w=A?g.next:v.next;!(S=e(w,v)).done;){var R=S.value;try{b=M(R)}catch(t){if(!v)throw t;h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Vn}function qn(){if(Ln)return kn;Ln=1;var t=se()("iterator"),e=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){e=!0}};i[t]=function(){return this},Array.from(i,function(){throw 2})}catch(t){}return kn=function(r,i){try{if(!i&&!e)return!1}catch(t){return!1}var n=!1;try{var a={};a[t]=function(){return{next:function(){return{done:n=!0}}}},r(a)}catch(t){}return n}}function $n(){if(jn)return Dn;jn=1;var t=yn(),e=qn(),r=mn().CONSTRUCTOR;return Dn=r||!e(function(e){t.all(e).then(void 0,function(){})})}var Gn,Qn={};var Zn,Kn={};var Jn,ta={};var ea,ra,ia,na,aa={};function sa(){if(ra)return ea;ra=1;var t=be(),e=vt(),r=Sn();return ea=function(i,n){if(t(i),e(n)&&n.constructor===i)return n;var a=r.f(i);return(0,a.resolve)(n),a.promise}}function oa(t,e,r,i,n,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(i,n)}function ua(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){oa(a,i,n,s,o,"next",t)}function o(t){oa(a,i,n,s,o,"throw",t)}s(void 0)})}}na||(na=1,function(){if(bn)return a;bn=1;var t,e,r,i,n=Fi(),o=Jt(),u=Xi(),h=s(),c=Yi(),l=x(),f=Ye(),g=$i(),p=Gi(),d=Zi(),v=At(),y=dt(),m=vt(),b=Ki(),w=rn(),S=ln().set,T=pn(),O=dn(),A=vn(),C=gn(),P=He(),E=yn(),N=mn(),M=Sn(),R="Promise",_=N.CONSTRUCTOR,V=N.REJECTION_EVENT,I=N.SUBCLASSING,k=P.getterFor(R),L=P.set,D=E&&E.prototype,j=E,B=D,z=h.TypeError,U=h.document,F=h.process,H=M.f,X=H,Y=!!(U&&U.createEvent&&h.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},$=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,h=t.reject,c=t.domain;try{o?(s||(2===e.rejection&&J(e),e.rejection=1),!0===o?r=a:(c&&c.enter(),r=o(a),c&&(c.exit(),n=!0)),r===t.promise?h(new z("Promise-chain cycle")):(i=q(r))?l(i,r,u,h):u(r)):h(a)}catch(t){c&&!n&&c.exit(),h(t)}},G=function(t,e){t.notified||(t.notified=!0,T(function(){for(var r,i=t.reactions;r=i.get();)$(r,t);t.notified=!1,e&&!t.rejection&&Z(t)}))},Q=function(t,e,r){var i,n;Y?((i=U.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:r},!V&&(n=h["on"+t])?n(i):t===W&&O("Unhandled promise rejection",r)},Z=function(t){l(S,h,function(){var e,r=t.facade,i=t.value;if(K(t)&&(e=A(function(){u?F.emit("unhandledRejection",i,r):Q(W,r,i)}),t.rejection=u||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(S,h,function(){var e=t.facade;u?F.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)})},tt=function(t,e,r){return function(i){t(e,i,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,G(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var i=q(e);i?T(function(){var r={done:!1};try{l(i,e,tt(rt,r,t),tt(et,r,t))}catch(e){et(r,e,t)}}):(t.value=e,t.state=1,G(t,!1))}catch(e){et({done:!1},e,t)}}};if(_&&(B=(j=function(e){b(this,B),v(e),l(t,this);var r=k(this);try{e(tt(rt,r),tt(et,r))}catch(t){et(r,t)}}).prototype,(t=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=f(B,"then",function(t,e){var r=k(this),i=H(w(this,j));return r.parent=!0,i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=u?F.domain:void 0,0===r.state?r.reactions.add(i):T(function(){$(i,r)}),i.promise}),e=function(){var e=new t,r=k(e);this.promise=e,this.resolve=tt(rt,r),this.reject=tt(et,r)},M.f=H=function(t){return t===j||t===r?new e(t):X(t)},!o&&y(E)&&D!==Object.prototype)){i=D.then,I||f(D,"then",function(t,e){var r=this;return new j(function(t,e){l(i,r,t,e)}).then(t,e)},{unsafe:!0});try{delete D.constructor}catch(t){}g&&g(D,B)}n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:j}),r=c.Promise,p(j,R,!1,!0),d(R)}(),function(){if(Bn)return zn;Bn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{all:function(t){var s=this,o=i.f(s),u=o.resolve,h=o.reject,c=n(function(){var i=r(s.resolve),n=[],o=0,c=1;a(t,function(t){var r=o++,a=!1;c++,e(i,s,t).then(function(t){a||(a=!0,n[r]=t,--c||u(n))},h)}),--c||u(n)});return c.error&&h(c.value),o.promise}})}(),function(){if(Gn)return Qn;Gn=1;var t=Fi(),e=Jt(),r=mn().CONSTRUCTOR,i=yn(),n=yt(),a=dt(),s=Ye(),o=i&&i.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&a(i)){var u=n("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}}(),function(){if(Zn)return Kn;Zn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{race:function(t){var s=this,o=i.f(s),u=o.reject,h=n(function(){var i=r(s.resolve);a(t,function(t){e(i,s,t).then(o.resolve,u)})});return h.error&&u(h.value),o.promise}})}(),function(){if(Jn)return ta;Jn=1;var t=Fi(),e=Sn();t({target:"Promise",stat:!0,forced:mn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ia)return aa;ia=1;var t=Fi(),e=yt(),r=Jt(),i=yn(),n=mn().CONSTRUCTOR,a=sa(),s=e("Promise"),o=r&&!n;t({target:"Promise",stat:!0,forced:r||n},{resolve:function(t){return a(o&&this===s?i:this,t)}})}());var ha,ca,la,fa,ga,pa,da={},va={};function ya(){if(ca)return ha;ca=1;var t=Ji(),e=String;return ha=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function ma(){if(fa)return la;fa=1;var t=be();return la=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function xa(){if(pa)return ga;pa=1;var t=v(),e=s().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),i=r||t(function(){return!e("a","y").sticky}),n=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return ga={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja,Ba,za,Ua,Fa,Ha,Xa,Ya={};function Wa(){if(wa)return ba;wa=1;var t=dr(),e=vr();return ba=Object.keys||function(r){return t(r,e)},ba}function qa(){if(Oa)return Ta;Oa=1;var t,e=be(),r=function(){if(Sa)return Ya;Sa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Wa();return Ya.f=t&&!e?Object.defineProperties:function(t,e){i(t);for(var s,o=n(e),u=a(e),h=u.length,c=0;h>c;)r.f(t,s=u[c++],o[s]);return t},Ya}(),i=vr(),n=Fe(),a=on(),s=ue(),o=Ue(),u="prototype",h="script",c=o("IE_PROTO"),l=function(){},f=function(t){return"<"+h+">"+t+"</"+h+">"},g=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,r,n;p="undefined"!=typeof document?document.domain&&t?g(t):(r=s("iframe"),n="java"+h+":",r.style.display="none",a.appendChild(r),r.src=String(n),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):g(t);for(var o=i.length;o--;)delete p[u][i[o]];return p()};return n[c]=!0,Ta=Object.create||function(t,i){var n;return null!==t?(l[u]=e(t),n=new l,l[u]=null,n[c]=t):n=p(),void 0===i?n:r.f(n,i)},Ta}function $a(){if(Ma)return Na;Ma=1;var t,e,r=x(),i=ht(),n=ya(),a=ma(),o=xa(),u=re(),h=qa(),c=He().get,l=function(){if(Ca)return Aa;Ca=1;var t=v(),e=s().RegExp;return Aa=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Ea)return Pa;Ea=1;var t=v(),e=s().RegExp;return Pa=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),g=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,y=i("".charAt),m=i("".indexOf),b=i("".replace),w=i("".slice),S=(e=/b*/g,r(p,t=/a/,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),T=o.BROKEN_CARET,O=void 0!==/()??/.exec("")[1],A=function(t,e){for(var r=t.groups=h(null),i=0;i<e.length;i++){var n=e[i];r[n[0]]=t[n[1]]}};return(S||O||T||l||f)&&(d=function(t){var e,i,s,o=this,u=c(o),h=n(t),l=u.raw;if(l)return l.lastIndex=o.lastIndex,e=r(d,l,h),o.lastIndex=l.lastIndex,e&&u.groups&&A(e,u.groups),e;var f=u.groups,v=T&&o.sticky,x=r(a,o),C=o.source,P=0,E=h;if(v){x=b(x,"y",""),-1===m(x,"g")&&(x+="g"),E=w(h,o.lastIndex);var N=o.lastIndex>0&&y(h,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==N&&"\r"!==N&&"\u2028"!==N&&"\u2029"!==N)&&(C="(?: (?:"+C+"))",E=" "+E,P++),i=new RegExp("^(?:"+C+")",x)}O&&(i=new RegExp("^"+C+"$(?!\\s)",x)),S&&(s=o.lastIndex);var M=r(p,v?i:o,E);return v?M?(M.input=h,M[0]=w(M[0],P),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:S&&M&&(o.lastIndex=o.global?M.index+M[0].length:s),O&&M&&M.length>1&&r(g,M[0],i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&f&&A(M,f),M}),Na=d}function Ga(){if(Va)return _a;Va=1,function(){if(Ra)return va;Ra=1;var t=Fi(),e=$a();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=$a(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return _a=function(u,h,c,l){var f=n(u),g=!i(function(){var t={};return t[f]=function(){return 7},7!==""[u](t)}),p=g&&!i(function(){var t=!1,e=/a/;if("split"===u){var r={};r[s]=function(){return e},(e={constructor:r,flags:""})[f]=/./[f]}return e.exec=function(){return t=!0,null},e[f](""),!t});if(!g||!p||c){var d=/./[f],v=h(f,""[u],function(e,i,n,a,s){var u=i.exec;return u===r||u===o.exec?g&&!s?{done:!0,value:t(d,i,n,a)}:{done:!0,value:t(e,n,i,a)}:{done:!1}});e(String.prototype,u,v[0]),e(o,f,v[1])}l&&a(o[f],"sham",!0)},_a}function Qa(){if(Da)return La;Da=1;var t=function(){if(ka)return Ia;ka=1;var t=ht(),e=cr(),r=ya(),i=gt(),n=t("".charAt),a=t("".charCodeAt),s=t("".slice),o=function(t){return function(o,u){var h,c,l=r(i(o)),f=e(u),g=l.length;return f<0||f>=g?t?"":void 0:(h=a(l,f))<55296||h>56319||f+1===g||(c=a(l,f+1))<56320||c>57343?t?n(l,f):h:t?s(l,f,f+2):c-56320+(h-55296<<10)+65536}};return Ia={codeAt:o(!1),charAt:o(!0)}}().charAt;return La=function(e,r,i){return r+(i&&t(e,r).length||1)},La}function Za(){if(Ua)return za;Ua=1;var t=x(),e=ne(),r=mt(),i=function(){if(Ba)return ja;Ba=1;var t=s(),e=v(),r=t.RegExp,i=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",a=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)a(o,s[o]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==n||i!==n});return ja={correct:i}}(),n=ma(),a=RegExp.prototype;return za=i.correct?function(t){return t.flags}:function(s){return i.correct||!r(a,s)||e(s,"flags")?s.flags:t(n,s)}}function Ka(){if(Ha)return Fa;Ha=1;var t=x(),e=be(),r=dt(),i=ct(),n=$a(),a=TypeError;return Fa=function(s,o){var u=s.exec;if(r(u)){var h=t(u,s,o);return null!==h&&e(h),h}if("RegExp"===i(s))return t(n,s,o);throw new a("RegExp#exec called on incompatible receiver")}}!function(){if(Xa)return da;Xa=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=fr(),s=ya(),o=gt(),u=Ct(),h=Qa(),c=Za(),l=Ka(),f=e("".indexOf);r("match",function(e,r,g){return[function(r){var i=o(this),a=n(r)?u(r,e):void 0;return a?t(a,r,i):new RegExp(r)[e](s(i))},function(t){var e=i(this),n=s(t),o=g(r,e,n);if(o.done)return o.value;var u=s(c(e));if(!~f(u,"g"))return l(e,n);var p=!!~f(u,"u")||!!~f(u,"v");e.lastIndex=0;for(var d,v=[],y=0;null!==(d=l(e,n));){var m=s(d[0]);v[y]=m,""===m&&(e.lastIndex=h(n,a(e.lastIndex),p)),y++}return 0===y?null:v}]})}();var Ja,ts,es,rs={};function is(){if(ts)return Ja;ts=1;var t=ht(),e=ie(),r=Math.floor,i=t("".charAt),n=t("".replace),a=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return Ja=function(t,u,h,c,l,f){var g=h+t.length,p=c.length,d=o;return void 0!==l&&(l=e(l),d=s),n(f,d,function(e,n){var s;switch(i(n,0)){case"$":return"$";case"&":return t;case"`":return a(u,0,h);case"'":return a(u,g);case"<":s=l[a(n,1,-1)];break;default:var o=+n;if(0===o)return e;if(o>p){var f=r(o/10);return 0===f?e:f<=p?void 0===c[f-1]?i(n,1):c[f-1]+i(n,1):e}s=c[o-1]}return void 0===s?"":s})},Ja}!function(){if(es)return rs;es=1;var t=nn(),e=x(),r=ht(),i=Ga(),n=v(),a=be(),s=dt(),o=vt(),u=cr(),h=fr(),c=ya(),l=gt(),f=Qa(),g=Ct(),p=is(),d=Za(),y=Ka(),m=se()("replace"),b=Math.max,w=Math.min,S=r([].concat),T=r([].push),O=r("".indexOf),A=r("".slice),C=function(t){return void 0===t?t:String(t)},P="$0"==="a".replace(/./,"$0"),E=!!/./[m]&&""===/./[m]("a","$0");i("replace",function(r,i,n){var v=E?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?g(t,m):void 0;return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e),g=s(r);g||(r=c(r));var m=c(d(o));if("string"==typeof r&&!~O(r,v)&&!~O(r,"$<")&&!~O(m,"y")){var x=n(i,o,l,r);if(x.done)return x.value}var P,E=!!~O(m,"g");E&&(P=!!~O(m,"u")||!!~O(m,"v"),o.lastIndex=0);for(var N,M=[];null!==(N=y(o,l))&&(T(M,N),E);){""===c(N[0])&&(o.lastIndex=f(l,h(o.lastIndex),P))}for(var R="",_=0,V=0;V<M.length;V++){for(var I,k=c((N=M[V])[0]),L=b(w(u(N.index),l.length),0),D=[],j=1;j<N.length;j++)T(D,C(N[j]));var B=N.groups;if(g){var z=S([k],D,L,l);void 0!==B&&T(z,B),I=c(t(r,void 0,z))}else I=p(k,l,L,D,B,r);L>=_&&(R+=A(l,_,L)+I,_=L+k.length)}return R+A(l,_)}]},!!n(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||E)}();var ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs,bs,ws,Ss,Ts,Os,As,Cs,Ps={};function Es(){if(os)return ss;os=1;var t=function(){if(as)return ns;as=1;var t=vt(),e=ct(),r=se()("match");return ns=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return ss=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function Ns(){if(hs)return us;hs=1;var t=se()("match");return us=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ms(){if(fs)return ls;fs=1;var t=se(),e=qa(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),ls=function(t){n[i][t]=!0}}function Rs(){if(vs)return ds;vs=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ps)return gs;ps=1;var t=v();return gs=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),a=i("IE_PROTO"),s=Object,o=s.prototype;return ds=n?s.getPrototypeOf:function(i){var n=r(i);if(t(n,a))return n[a];var u=n.constructor;return e(u)&&n instanceof u?u.prototype:n instanceof s?o:null},ds}function _s(){if(ms)return ys;ms=1;var t,e,r,i=v(),n=dt(),a=vt(),s=qa(),o=Rs(),u=Ye(),h=se(),c=Jt(),l=h("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(e=o(o(r)))!==Object.prototype&&(t=e):f=!0),!a(t)||i(function(){var e={};return t[l].call(e)!==e})?t={}:c&&(t=s(t)),n(t[l])||u(t,l,function(){return this}),ys={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function Vs(){if(Ss)return ws;Ss=1;var t=Fi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(bs)return xs;bs=1;var t=_s().IteratorPrototype,e=qa(),r=ut(),i=Gi(),n=Un(),a=function(){return this};return xs=function(s,o,u,h){var c=o+" Iterator";return s.prototype=e(t,{next:r(+!h,u)}),i(s,c,!1,!0),n[c]=a,s}}(),s=Rs(),o=$i(),u=Gi(),h=Se(),c=Ye(),l=se(),f=Un(),g=_s(),p=i.PROPER,d=i.CONFIGURABLE,v=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",T=function(){return this};return ws=function(i,l,g,x,O,A,C){a(g,l,x);var P,E,N,M=function(t){if(t===O&&k)return k;if(!y&&t&&t in V)return V[t];switch(t){case b:case w:case S:return function(){return new g(this,t)}}return function(){return new g(this)}},R=l+" Iterator",_=!1,V=i.prototype,I=V[m]||V["@@iterator"]||O&&V[O],k=!y&&I||M(O),L="Array"===l&&V.entries||I;if(L&&(P=s(L.call(new i)))!==Object.prototype&&P.next&&(r||s(P)===v||(o?o(P,v):n(P[m])||c(P,m,T)),u(P,R,!0,!0),r&&(f[R]=T)),p&&O===w&&I&&I.name!==w&&(!r&&d?h(V,"name",w):(_=!0,k=function(){return e(I,this)})),O)if(E={values:M(w),keys:A?k:M(b),entries:M(S)},C)for(N in E)(y||_||!(N in V))&&c(V,N,E[N]);else t({target:l,proto:!0,forced:y||_},E);return r&&!C||V[m]===k||c(V,m,k,{name:O}),f[l]=k,E}}function Is(){return Os?Ts:(Os=1,Ts=function(t,e){return{value:t,done:e}})}function ks(){if(Cs)return As;Cs=1;var t=pt(),e=Ms(),r=Un(),i=He(),n=we().f,a=Vs(),s=Is(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);As=a(Array,"Array",function(e,r){c(this,{type:h,target:t(e),index:0,kind:r})},function(){var t=l(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)},"values");var f=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&"values"!==f.name)try{n(f,"name",{value:"values"})}catch(t){}return As}!function(){if(cs)return Ps;cs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),h=Jt(),c=r("".slice),l=Math.min,f=u("startsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"startsWith"),!t||t.writable))&&!f},{startsWith:function(t){var e=a(o(this));s(t);var r=a(t),i=n(l(arguments.length>1?arguments[1]:void 0,e.length));return c(e,i,i+r.length)===r}})}(),ks();var Ls,Ds,js,Bs,zs,Us={};function Fs(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,r);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:r+""}function Hs(t,e,r){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(zs)return Us;zs=1;var t=s(),e=Ds?Ls:(Ds=1,Ls={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}),r=function(){if(Bs)return js;Bs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return js=e===Object.prototype?void 0:e}(),i=ks(),n=Se(),a=Gi(),o=se()("iterator"),u=i.values,h=function(t,r){if(t){if(t[o]!==u)try{n(t,o,u)}catch(e){t[o]=u}if(a(t,r,!0),e[r])for(var s in i)if(t[s]!==i[s])try{n(t,s,i[s])}catch(e){t[s]=i[s]}}};for(var c in e)h(t[c]&&t[c].prototype,c);h(r,"DOMTokenList")}();var Xs,Ys,Ws,qs,$s,Gs={};function Qs(){if(qs)return Ws;qs=1;var t=v();return Ws=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})}}!function(){if($s)return Gs;$s=1;var t=Fi(),e=function(){if(Ys)return Xs;Ys=1;var t=At(),e=ie(),r=lt(),i=gr(),n=TypeError,a="Reduce of empty array with no initial value",s=function(s){return function(o,u,h,c){var l=e(o),f=r(l),g=i(l);if(t(u),0===g&&h<2)throw new n(a);var p=s?g-1:0,d=s?-1:1;if(h<2)for(;;){if(p in f){c=f[p],p+=d;break}if(p+=d,s?p<0:g<=p)throw new n(a)}for(;s?p>=0:g>p;p+=d)p in f&&(c=u(c,f[p],p,l));return c}};return Xs={left:s(!1),right:s(!0)}}().left,r=Qs(),i=bt();t({target:"Array",proto:!0,forced:!Xi()&&i>79&&i<83||!r("reduce")},{reduce:function(t){var r=arguments.length;return e(this,t,r,r>1?arguments[1]:void 0)}})}();var Zs,Ks={};!function(){if(Zs)return Ks;Zs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),h=Jt(),c=r("".slice),l=Math.min,f=u("endsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"endsWith"),!t||t.writable))&&!f},{endsWith:function(t){var e=a(o(this));s(t);var r=a(t),i=arguments.length>1?arguments[1]:void 0,u=e.length,h=void 0===i?u:l(n(i),u);return c(e,h-r.length,h)===r}})}();var Js,to={};!function(){if(Js)return to;Js=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=gt(),s=rn(),o=Qa(),u=fr(),h=ya(),c=Ct(),l=Za(),f=Ka(),g=xa(),p=v(),d=g.UNSUPPORTED_Y,y=Math.min,m=e([].push),b=e("".slice),w=e("".indexOf),S=!p(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]}),T="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(e,r,g){var p="0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t(r,this,e,i)}:r;return[function(r,i){var s=a(this),o=n(r)?c(r,e):void 0;return o?t(o,r,s,i):t(p,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!T){var c=g(p,n,a,e,p!==r);if(c.done)return c.value}var v=s(n,RegExp),x=h(l(n)),S=!!~w(x,"u")||!!~w(x,"v");d?~w(x,"g")||(x+="g"):~w(x,"y")||(x+="y");var O=new v(d?"^(?:"+n.source+")":n,x),A=void 0===e?4294967295:e>>>0;if(0===A)return[];if(0===a.length)return null===f(O,a)?[a]:[];for(var C=0,P=0,E=[];P<a.length;){O.lastIndex=d?0:P;var N,M=f(O,d?b(a,P):a);if(null===M||(N=y(u(O.lastIndex+(d?P:0)),a.length))===C)P=o(a,P,S);else{if(m(E,b(a,C,P)),E.length===A)return E;for(var R=1;R<=M.length-1;R++)if(m(E,M[R]),E.length===A)return E;P=C=N}}return m(E,b(a,C)),E}]},T||!S,d)}();var eo,ro,io={exports:{}},no={exports:{}},ao=no.exports;var so,oo,uo,ho,co,lo,fo,go,po,vo=function(){if(ro)return io.exports;ro=1;for(var e=(eo||(eo=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?no.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(no.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?(no.exports=function(){return Date.now()-r},r=Date.now()):(no.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(ao)),no.exports),r="undefined"==typeof window?t:window,i=["moz","webkit"],n="AnimationFrame",a=r["request"+n],s=r["cancel"+n]||r["cancelRequest"+n],o=0;!a&&o<i.length;o++)a=r[i[o]+"Request"+n],s=r[i[o]+"Cancel"+n]||r[i[o]+"CancelRequest"+n];if(!a||!s){var u=0,h=0,c=[],l=1e3/60;a=function(t){if(0===c.length){var r=e(),i=Math.max(0,l-(r-u));u=i+r,setTimeout(function(){var t=c.slice(0);c.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return c.push({handle:++h,callback:t,cancelled:!1}),h},s=function(t){for(var e=0;e<c.length;e++)c[e].handle===t&&(c[e].cancelled=!0)}}return io.exports=function(t){return a.call(r,t)},io.exports.cancel=function(){s.apply(r,arguments)},io.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},io.exports}(),yo=r(vo),mo={};function xo(){return oo?so:(oo=1,so="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(fo)return mo;fo=1;var t=Fi(),e=function(){if(ho)return uo;ho=1;var t=ht(),e=gt(),r=ya(),i=xo(),n=t("".replace),a=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),o=function(t){return function(i){var o=r(e(i));return 1&t&&(o=n(o,a,"")),2&t&&(o=n(o,s,"$1")),o}};return uo={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(lo)return co;lo=1;var t=Be().PROPER,e=v(),r=xo();return co=function(i){return e(function(){return!!r[i]()||"​…᠎"!=="​…᠎"[i]()||t&&r[i].name!==i})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var bo,wo=(po||(po=1,go=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");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var u=document.createElement("li"),h=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[i]+" -> "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}),go),So=r(wo),To={};!function(){if(bo)return To;bo=1;var t=Fi(),e=an(),r=pr().indexOf,i=Qs(),n=e([].indexOf),a=!!n&&1/n([1],1,-0)<0;t({target:"Array",proto:!0,forced:a||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?n(this,t,e)||0:r(this,t,e)}})}();var Oo,Ao={};!function(){if(Oo)return Ao;Oo=1;var t=Fi(),e=ht(),r=Es(),i=gt(),n=ya(),a=Ns(),s=e("".indexOf);t({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(n(i(this)),n(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var Co,Po,Eo,No={};function Mo(){if(Po)return Co;Po=1;var t=ct();return Co=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(Eo)return No;Eo=1;var t=Fi(),e=ht(),r=Mo(),i=e([].reverse),n=[1,2];t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}})}();
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -30,4 +30,4 @@ const I=x["@id"];if("@context"===I||"@preserve"===I)throw new t("Invalid JSON-LD
30
30
  // remove @preserve
31
31
  if("@preserve"in e)return e["@preserve"][0];if(t.isValue(e))return e;if(t.isList(e))return e["@list"]=v(e["@list"],o),e;if("@id"in e){const t=e["@id"];if(o.link.hasOwnProperty(t)){const n=o.link[t].indexOf(e);if(-1!==n)return o.link[t][n];o.link[t].push(e)}else o.link[t]=[e]}for(const t in e)"@id"===t&&o.bnodesToClear.includes(e[t])?delete e["@id"]:e[t]=v(e[t],o)}return e}function g(e,t,r){n.isObject(e)?o.addValue(e,t,r,{propertyIsArray:!0}):e.push(r)}function y(e,t,n,o){if(!("@id"in n))return!1;const r=e.subjects[n["@id"]];return r&&f(e,r,t,o)}function m(e,t){const o=t["@value"],r=t["@type"],i=t["@language"],a=e["@value"]?n.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],s=e["@type"]?n.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],l=e["@language"]?n.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===a.length&&0===s.length&&0===l.length||!(!a.includes(o)&&!n.isEmptyObject(a[0]))&&(!!(!r&&0===s.length||s.includes(r)||r&&n.isEmptyObject(s[0]))&&!!(!i&&0===l.length||l.includes(i)||i&&n.isEmptyObject(l[0])))}return ue=l,l.frameMergedOrDefault=(e,t,n)=>{const r={options:n,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},i=new o.IdentifierIssuer("_:b");a(e,r.graphMap,"@default",i),n.merged&&(r.graphMap["@merged"]=s(r.graphMap),r.graph="@merged"),r.subjects=r.graphMap[r.graph];const c=[];return l.frame(r,Object.keys(r.subjects).sort(),t,c),n.pruneBlankNodeIdentifiers&&(n.bnodesToClear=Object.keys(r.bnodeMap).filter(e=>1===r.bnodeMap[e].length)),
32
32
  // remove @preserve from results
33
- n.link={},v(c,n)},l.frame=(r,a,s,v,y=null)=>{p(s),s=s[0];const x=r.options,b={embed:u(s,x,"embed"),explicit:u(s,x,"explicit"),requireAll:u(s,x,"requireAll")};r.link.hasOwnProperty(r.graph)||(r.link[r.graph]={});const w=r.link[r.graph],I=function(e,t,n,o){const r={};for(const i of t){const t=e.graphMap[e.graph][i];f(e,t,n,o)&&(r[i]=t)}return r}(r,a,s,b),j=Object.keys(I).sort();for(const p of j){const f=I[p];if(null===y?r.uniqueEmbeds={[r.graph]:{}}:r.uniqueEmbeds[r.graph]=r.uniqueEmbeds[r.graph]||{},"@link"===b.embed&&p in w){g(v,y,w[p]);continue}const j={"@id":p};if(0===p.indexOf("_:")&&o.addValue(r.bnodeMap,p,j,{propertyIsArray:!0}),w[p]=j,("@first"===b.embed||"@last"===b.embed)&&r.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:s});if(r.embedded||!r.uniqueEmbeds[r.graph].hasOwnProperty(p))if(!r.embedded||"@never"!==b.embed&&!d(f,r.graph,r.subjectStack))if(!r.embedded||"@first"!=b.embed&&"@once"!=b.embed||!r.uniqueEmbeds[r.graph].hasOwnProperty(p)){if("@last"===b.embed&&p in r.uniqueEmbeds[r.graph]&&h(r,p),r.uniqueEmbeds[r.graph][p]={parent:v,property:y},r.subjectStack.push({subject:f,graph:r.graph}),p in r.graphMap){let e=!1,t=null;"@graph"in s?(t=s["@graph"][0],e=!("@merged"===p||"@default"===p),n.isObject(t)||(t={})):(e="@merged"!==r.graph,t={}),e&&l.frame({...r,graph:p,embedded:!1},Object.keys(r.graphMap[p]).sort(),[t],j,"@graph")}"@included"in s&&l.frame({...r,embedded:!1},a,s["@included"],j,"@included");for(const n of Object.keys(f).sort())if(e(n)){if(j[n]=o.clone(f[n]),"@type"===n)for(const e of f["@type"])0===e.indexOf("_:")&&o.addValue(r.bnodeMap,e,j,{propertyIsArray:!0})}else if(!b.explicit||n in s)for(const e of f[n]){const i=n in s?s[n]:c(b);if(t.isList(e)){const i=s[n]&&s[n][0]&&s[n][0]["@list"]?s[n][0]["@list"]:c(b),a={"@list":[]};g(j,n,a);const d=e["@list"];for(const e of d)t.isSubjectReference(e)?l.frame({...r,embedded:!0},[e["@id"]],i,a,"@list"):g(a,"@list",o.clone(e))}else t.isSubjectReference(e)?l.frame({...r,embedded:!0},[e["@id"]],i,j,n):m(i[0],e)&&g(j,n,o.clone(e))}for(const t of Object.keys(s).sort()){if("@type"===t){if(!n.isObject(s[t][0])||!("@default"in s[t][0]))continue}else if(e(t))continue;const r=s[t][0]||{};if(!u(r,x,"omitDefault")&&!(t in j)){let e="@null";"@default"in r&&(e=o.clone(r["@default"])),n.isArray(e)||(e=[e]),j[t]=[{"@preserve":e}]}}for(const e of Object.keys(s["@reverse"]||{}).sort()){const t=s["@reverse"][e];for(const n of Object.keys(r.subjects)){o.getValues(r.subjects[n],e).some(e=>e["@id"]===p)&&(j["@reverse"]=j["@reverse"]||{},o.addValue(j["@reverse"],e,[],{propertyIsArray:!0}),l.frame({...r,embedded:!0},[n],t,j["@reverse"][e],y))}}g(v,y,j),r.subjectStack.pop()}else g(v,y,j);else g(v,y,j)}},l.cleanupNull=(e,t)=>{if(n.isArray(e)){return e.map(e=>l.cleanupNull(e,t)).filter(e=>e)}if("@null"===e)return null;if(n.isObject(e)){if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)e[n]=l.cleanupNull(e[n],t)}return e},ue}function $e(){if(he)return fe;he=1;const e=Ee(),{isArray:t,isObject:n,isString:o,isUndefined:r}=Ne(),{isList:i,isValue:a,isGraph:s,isSimpleGraph:l,isSubjectReference:c}=Oe(),{expandIri:d,getContextValue:u,isKeyword:p,process:f,processingMode:h}=Fe(),{removeBase:v,prependBase:g}=Ae(),{REGEX_KEYWORD:y,addValue:m,asArray:x,compareShortestLeast:b}=Ce(),w={};function I(t,n,o){if("@nest"!==d(t,n,{vocab:!0},o))throw new e("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}return fe=w,w.compact=async({activeCtx:d,activeProperty:v=null,element:g,options:y={}})=>{if(t(g)){let e=[];for(let t=0;t<g.length;++t){const n=await w.compact({activeCtx:d,activeProperty:v,element:g[t],options:y});null!==n&&e.push(n)}if(y.compactArrays&&1===e.length){0===(u(d,v,"@container")||[]).length&&(e=e[0])}return e}const b=u(d,v,"@context");if(r(b)||(d=await f({activeCtx:d,localCtx:b,propagate:!0,overrideProtected:!0,options:y})),n(g)){if(y.link&&"@id"in g&&y.link.hasOwnProperty(g["@id"])){const e=y.link[g["@id"]];for(let t=0;t<e.length;++t)if(e[t].expanded===g)return e[t].compacted}if(a(g)||c(g)){const e=w.compactValue({activeCtx:d,activeProperty:v,value:g,options:y});return y.link&&c(g)&&(y.link.hasOwnProperty(g["@id"])||(y.link[g["@id"]]=[]),y.link[g["@id"]].push({expanded:g,compacted:e})),e}if(i(g)){if((u(d,v,"@container")||[]).includes("@list"))return w.compact({activeCtx:d,activeProperty:v,element:g["@list"],options:y})}const b="@reverse"===v,j={},S=d;a(g)||c(g)||(d=d.revertToPreviousContext());const D=u(S,v,"@context");r(D)||(d=await f({activeCtx:d,localCtx:D,propagate:!0,overrideProtected:!0,options:y})),y.link&&"@id"in g&&(y.link.hasOwnProperty(g["@id"])||(y.link[g["@id"]]=[]),y.link[g["@id"]].push({expanded:g,compacted:j}));let N=g["@type"]||[];N.length>1&&(N=Array.from(N).sort());const O=d;for(const e of N){const t=w.compactIri({activeCtx:O,iri:e,relativeTo:{vocab:!0}}),n=u(S,t,"@context");r(n)||(d=await f({activeCtx:d,localCtx:n,options:y,propagate:!1}))}const E=Object.keys(g).sort();for(const r of E){const c=g[r];if("@id"===r){let e=x(c).map(e=>w.compactIri({activeCtx:d,iri:e,relativeTo:{vocab:!1},base:y.base}));1===e.length&&(e=e[0]);j[w.compactIri({activeCtx:d,iri:"@id",relativeTo:{vocab:!0}})]=e;continue}if("@type"===r){let e=x(c).map(e=>w.compactIri({activeCtx:S,iri:e,relativeTo:{vocab:!0}}));1===e.length&&(e=e[0]);const n=w.compactIri({activeCtx:d,iri:"@type",relativeTo:{vocab:!0}}),o=(u(d,n,"@container")||[]).includes("@set")&&h(d,1.1)||t(e)&&0===c.length;m(j,n,e,{propertyIsArray:o});continue}if("@reverse"===r){const e=await w.compact({activeCtx:d,activeProperty:"@reverse",element:c,options:y});for(const t in e)if(d.mappings.has(t)&&d.mappings.get(t).reverse){const n=e[t],o=(u(d,t,"@container")||[]).includes("@set")||!y.compactArrays;m(j,t,n,{propertyIsArray:o}),delete e[t]}if(Object.keys(e).length>0){const t=w.compactIri({activeCtx:d,iri:r,relativeTo:{vocab:!0}});m(j,t,e)}continue}if("@preserve"===r){const e=await w.compact({activeCtx:d,activeProperty:v,element:c,options:y});t(e)&&0===e.length||m(j,r,e);continue}if("@index"===r){if((u(d,v,"@container")||[]).includes("@index"))continue;const e=w.compactIri({activeCtx:d,iri:r,relativeTo:{vocab:!0}});m(j,e,c);continue}if("@graph"!==r&&"@list"!==r&&"@included"!==r&&p(r)){const e=w.compactIri({activeCtx:d,iri:r,relativeTo:{vocab:!0}});m(j,e,c);continue}if(!t(c))throw new e("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===c.length){const e=w.compactIri({activeCtx:d,iri:r,value:c,relativeTo:{vocab:!0},reverse:b}),t=d.mappings.has(e)?d.mappings.get(e)["@nest"]:null;let o=j;t&&(I(d,t,y),n(j[t])||(j[t]={}),o=j[t]),m(o,e,c,{propertyIsArray:!0})}for(const e of c){const c=w.compactIri({activeCtx:d,iri:r,value:e,relativeTo:{vocab:!0},reverse:b}),p=d.mappings.has(c)?d.mappings.get(c)["@nest"]:null;let f=j;p&&(I(d,p,y),n(j[p])||(j[p]={}),f=j[p]);const h=u(d,c,"@container")||[],v=s(e),g=i(e);let S;g?S=e["@list"]:v&&(S=e["@graph"]);let D=await w.compact({activeCtx:d,activeProperty:c,element:g||v?S:e,options:y});if(g){if(t(D)||(D=[D]),h.includes("@list")){m(f,c,D,{valueIsArray:!0,allowDuplicate:!0});continue}D={[w.compactIri({activeCtx:d,iri:"@list",relativeTo:{vocab:!0}})]:D},"@index"in e&&(D[w.compactIri({activeCtx:d,iri:"@index",relativeTo:{vocab:!0}})]=e["@index"])}if(v)if(h.includes("@graph")&&(h.includes("@id")||h.includes("@index")&&l(e))){let t;f.hasOwnProperty(c)?t=f[c]:f[c]=t={};const n=(h.includes("@id")?e["@id"]:e["@index"])||w.compactIri({activeCtx:d,iri:"@none",relativeTo:{vocab:!0}});m(t,n,D,{propertyIsArray:!y.compactArrays||h.includes("@set")})}else h.includes("@graph")&&l(e)?(t(D)&&D.length>1&&(D={"@included":D}),m(f,c,D,{propertyIsArray:!y.compactArrays||h.includes("@set")})):(t(D)&&1===D.length&&y.compactArrays&&(D=D[0]),D={[w.compactIri({activeCtx:d,iri:"@graph",relativeTo:{vocab:!0}})]:D},"@id"in e&&(D[w.compactIri({activeCtx:d,iri:"@id",relativeTo:{vocab:!0}})]=e["@id"]),"@index"in e&&(D[w.compactIri({activeCtx:d,iri:"@index",relativeTo:{vocab:!0}})]=e["@index"]),m(f,c,D,{propertyIsArray:!y.compactArrays||h.includes("@set")}));else if(h.includes("@language")||h.includes("@index")||h.includes("@id")||h.includes("@type")){let t,n;if(f.hasOwnProperty(c)?t=f[c]:f[c]=t={},h.includes("@language"))a(D)&&(D=D["@value"]),n=e["@language"];else if(h.includes("@index")){const t=u(d,c,"@index")||"@index",r=w.compactIri({activeCtx:d,iri:t,relativeTo:{vocab:!0}});if("@index"===t)n=e["@index"],delete D[r];else{let e;if([n,...e]=x(D[t]||[]),o(n))switch(e.length){case 0:delete D[t];break;case 1:D[t]=e[0];break;default:D[t]=e}else n=null}}else if(h.includes("@id")){const e=w.compactIri({activeCtx:d,iri:"@id",relativeTo:{vocab:!0}});n=D[e],delete D[e]}else if(h.includes("@type")){const t=w.compactIri({activeCtx:d,iri:"@type",relativeTo:{vocab:!0}});let o;switch([n,...o]=x(D[t]||[]),o.length){case 0:delete D[t];break;case 1:D[t]=o[0];break;default:D[t]=o}1===Object.keys(D).length&&"@id"in e&&(D=await w.compact({activeCtx:d,activeProperty:c,element:{"@id":e["@id"]},options:y}))}n||(n=w.compactIri({activeCtx:d,iri:"@none",relativeTo:{vocab:!0}})),m(t,n,D,{propertyIsArray:h.includes("@set")})}else{const e=!y.compactArrays||h.includes("@set")||h.includes("@list")||t(D)&&0===D.length||"@list"===r||"@graph"===r;m(f,c,D,{propertyIsArray:e})}}}return j}return g},w.compactIri=({activeCtx:t,iri:o,value:r=null,relativeTo:l={vocab:!1},reverse:c=!1,base:d=null})=>{if(null===o)return o;t.isPropertyTermScoped&&t.previousContext&&(t=t.previousContext);const u=t.getInverse();if(p(o)&&o in u&&"@none"in u[o]&&"@type"in u[o]["@none"]&&"@none"in u[o]["@none"]["@type"])return u[o]["@none"]["@type"]["@none"];if(l.vocab&&o in u){const e=t["@language"]||"@none",l=[];n(r)&&"@index"in r&&!("@graph"in r)&&l.push("@index","@index@set"),n(r)&&"@preserve"in r&&(r=r["@preserve"][0]),s(r)?("@index"in r&&l.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in r&&l.push("@graph@id","@graph@id@set"),l.push("@graph","@graph@set","@set"),"@index"in r||l.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in r||l.push("@graph@id","@graph@id@set")):n(r)&&!a(r)&&l.push("@id","@id@set","@type","@set@type");let d="@language",u="@null";if(c)d="@type",u="@reverse",l.push("@set");else if(i(r)){"@index"in r||l.push("@list");const t=r["@list"];if(0===t.length)d="@any",u="@none";else{let n=0===t.length?e:null,o=null;for(let e=0;e<t.length;++e){const r=t[e];let i="@none",s="@none";if(a(r))if("@direction"in r){i=`${(r["@language"]||"").toLowerCase()}_${r["@direction"]}`}else"@language"in r?i=r["@language"].toLowerCase():"@type"in r?s=r["@type"]:i="@null";else s="@id";if(null===n?n=i:i!==n&&a(r)&&(n="@none"),null===o?o=s:s!==o&&(o="@none"),"@none"===n&&"@none"===o)break}n=n||"@none",o=o||"@none","@none"!==o?(d="@type",u=o):u=n}}else{if(a(r))if("@language"in r&&!("@index"in r)){l.push("@language","@language@set"),u=r["@language"];const e=r["@direction"];e&&(u=`${u}_${e}`)}else"@direction"in r&&!("@index"in r)?u=`_${r["@direction"]}`:"@type"in r&&(d="@type",u=r["@type"]);else d="@type",u="@id";l.push("@set")}l.push("@none"),n(r)&&!("@index"in r)&&l.push("@index","@index@set"),a(r)&&1===Object.keys(r).length&&l.push("@language","@language@set");const p=function(e,t,o,r,i,a){null===a&&(a="@null");const s=[];if(("@id"===a||"@reverse"===a)&&n(o)&&"@id"in o){"@reverse"===a&&s.push("@reverse");const t=w.compactIri({activeCtx:e,iri:o["@id"],relativeTo:{vocab:!0}});e.mappings.has(t)&&e.mappings.get(t)&&e.mappings.get(t)["@id"]===o["@id"]?s.push.apply(s,["@vocab","@id"]):s.push.apply(s,["@id","@vocab"])}else{s.push(a);const e=s.find(e=>e.includes("_"));e&&s.push(e.replace(/^[^_]+_/,"_"))}s.push("@none");const l=e.inverse[t];for(const e of r){if(!(e in l))continue;const t=l[e][i];for(const e of s)if(e in t)return t[e]}return null}(t,o,r,l,d,u);if(null!==p)return p}if(l.vocab&&"@vocab"in t){const e=t["@vocab"];if(0===o.indexOf(e)&&o!==e){const n=o.substr(e.length);if(!t.mappings.has(n))return n}}let f=null;const h=[];let m=t.fastCurieMap;const x=o.length-1;for(let e=0;e<x&&o[e]in m;++e)m=m[o[e]],""in m&&h.push(m[""][0]);for(let e=h.length-1;e>=0;--e){const n=h[e],i=n.terms;for(const e of i){const i=e+":"+o.substr(n.iri.length);t.mappings.get(e)._prefix&&(!t.mappings.has(i)||null===r&&t.mappings.get(i)["@id"]===o)&&(null===f||b(i,f)<0)&&(f=i)}}if(null!==f)return f;for(const[n,r]of t.mappings)if(r&&r._prefix&&o.startsWith(n+":"))throw new e(`Absolute IRI "${o}" confused with prefix "${n}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:t});if(!l.vocab){if("@base"in t){if(t["@base"]){const e=v(g(d,t["@base"]),o);return y.test(e)?`./${e}`:e}return o}return v(d,o)}return o},w.compactValue=({activeCtx:e,activeProperty:t,value:n,options:r})=>{if(a(n)){const r=u(e,t,"@type"),i=u(e,t,"@language"),a=u(e,t,"@direction"),s=u(e,t,"@container")||[],l="@index"in n&&!s.includes("@index");if(!l&&"@none"!==r){if(n["@type"]===r)return n["@value"];if("@language"in n&&n["@language"]===i&&"@direction"in n&&n["@direction"]===a)return n["@value"];if("@language"in n&&n["@language"]===i)return n["@value"];if("@direction"in n&&n["@direction"]===a)return n["@value"]}const c=Object.keys(n).length,d=1===c||2===c&&"@index"in n&&!l,p="@language"in e,f=o(n["@value"]),h=e.mappings.has(t)&&null===e.mappings.get(t)["@language"];if(d&&"@none"!==r&&(!p||!f||h))return n["@value"];const v={};return l&&(v[w.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?v[w.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}})]=w.compactIri({activeCtx:e,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(v[w.compactIri({activeCtx:e,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(v[w.compactIri({activeCtx:e,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),v[w.compactIri({activeCtx:e,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],v}const i=d(e,t,{vocab:!0},r),s=u(e,t,"@type"),l=w.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:"@vocab"===s},base:r.base});return"@id"===s||"@vocab"===s||"@graph"===i?l:{[w.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]:l}},fe}function Ve(){if(me)return ye;me=1;const e=De(),t=function(){if(J)return _;J=1;const e=Re(),t={};return _=t,t.setupDocumentLoaders=function(t){"undefined"!=typeof XMLHttpRequest&&(t.documentLoaders.xhr=e,t.useDocumentLoader("xhr"))},t.setupGlobals=function(e){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})},_}(),n=Ce(),o=Je(),r=n.IdentifierIssuer,i=Ee(),a=_e(),s=Pe(),{expand:l}=He(),{flatten:c}=function(){if(re)return oe;re=1;const{isSubjectReference:e}=Oe(),{createMergedNodeMap:t}=Be(),n={};return oe=n,n.flatten=n=>{const o=t(n),r=[],i=Object.keys(o).sort();for(let t=0;t<i.length;++t){const n=o[i[t]];e(n)||r.push(n)}return r},oe}(),{fromRDF:d}=function(){if(ae)return ie;ae=1;const e=Ee(),t=Oe(),n=Ne(),{REGEX_BCP47:o,addValue:r}=Ce(),{handleEvent:i}=Me(),{RDF_LIST:a,RDF_FIRST:s,RDF_REST:l,RDF_NIL:c,RDF_TYPE:d,RDF_JSON_LITERAL:u,XSD_BOOLEAN:p,XSD_DOUBLE:f,XSD_INTEGER:h,XSD_STRING:v}=ke(),g={};function y(t,r,a,s){const l=m(t);if(l)return{"@id":l};const c={"@value":t.value};if(t.language)t.language.match(o)||s.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:t.language}},options:s}),c["@language"]=t.language;else{let l=t.datatype.value;if(l||(l=v),l===u){l="@json";try{c["@value"]=JSON.parse(c["@value"])}catch(t){throw new e("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:c["@value"],cause:t})}}if(r)if(l===p)"true"===c["@value"]||"1"===c["@value"]?c["@value"]=!0:"false"===c["@value"]||"0"===c["@value"]?c["@value"]=!1:c["@type"]=l;else if(l===h)if(n.isNumeric(c["@value"])){const e=parseInt(c["@value"],10);e.toFixed(0)===c["@value"]&&(c["@value"]=e)}else c["@type"]=l;else l===f&&n.isNumeric(c["@value"])?c["@value"]=parseFloat(c["@value"]):c["@type"]=l;else if("i18n-datatype"===a&&l.startsWith("https://www.w3.org/ns/i18n#")){const[,e,t]=l.split(/[#_]/);e.length>0&&(c["@language"]=e,e.match(o)||s.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:s})),c["@direction"]=t}else l!==v&&(c["@type"]=l)}return c}function m(e){return"NamedNode"===e.termType?e.value:"BlankNode"===e.termType?"_:"+e.value:null}return ie=g,g.fromRDF=async(o,i)=>{const{useRdfType:u=!1,useNativeTypes:p=!1,rdfDirection:f=null}=i,h={},v={"@default":h},g={};if(f){if("compound-literal"===f)throw new e("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:f});if("i18n-datatype"!==f)throw new e("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:f})}for(const e of o){const t="DefaultGraph"===e.graph.termType?"@default":e.graph.value;t in v||(v[t]={}),"@default"===t||t in h||(h[t]={"@id":t});const n=v[t],o=m(e.subject),a=e.predicate.value,s=e.object;o in n||(n[o]={"@id":o});const l=n[o],x=m(s),b=!!x;if(b&&!(x in n)&&(n[x]={"@id":x}),a===d&&!u&&b){r(l,"@type",x,{propertyIsArray:!0});continue}const w=y(s,p,f,i);if(r(l,a,w,{propertyIsArray:!0}),b)if(x===c){const e=n[x];"usages"in e||(e.usages=[]),e.usages.push({node:l,property:a,value:w})}else g[x]=!(x in g)&&{node:l,property:a,value:w}}for(const e in v){const o=v[e];if(!(c in o))continue;const r=o[c];if(r.usages){for(let e of r.usages){let r=e.node,i=e.property,c=e.value;const d=[],u=[];let p=Object.keys(r).length;for(;i===l&&n.isObject(g[r["@id"]])&&n.isArray(r[s])&&1===r[s].length&&n.isArray(r[l])&&1===r[l].length&&(3===p||4===p&&n.isArray(r["@type"])&&1===r["@type"].length&&r["@type"][0]===a)&&(d.push(r[s][0]),u.push(r["@id"]),e=g[r["@id"]],r=e.node,i=e.property,c=e.value,p=Object.keys(r).length,t.isBlankNode(r)););delete c["@id"],c["@list"]=d.reverse();for(const e of u)delete o[e]}delete r.usages}}const x=[],b=Object.keys(h).sort();for(const e of b){const n=h[e];if(e in v){const o=n["@graph"]=[],r=v[e],i=Object.keys(r).sort();for(const e of i){const n=r[e];t.isSubjectReference(n)||o.push(n)}}t.isSubjectReference(n)||x.push(n)}return x},ie}(),{toRDF:u}=qe(),{frameMergedOrDefault:p,cleanupNull:f}=Ue(),{isArray:h,isObject:v,isString:g}=Ne(),{isSubjectReference:y}=Oe(),{expandIri:m,getInitialContext:x,process:b,processingMode:w}=Fe(),{compact:I,compactIri:j}=$e(),{createNodeMap:S,createMergedNodeMap:D,mergeNodeMaps:N}=Be(),{logEventHandler:O,logWarningEventHandler:E,safeEventHandler:C,setDefaultEventHandler:k,setupEventHandler:L,strictEventHandler:A,unhandledEventHandler:R}=Me(),T=function(T){const _={},J=new a({max:100});function P(e,{documentLoader:t=T.documentLoader,...n}){if(e&&"compactionMap"in e)throw new i('"compactionMap" not supported.',"jsonld.OptionsError");if(e&&"expansionMap"in e)throw new i('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:t},n,e,{eventHandler:L({options:e})})}return T.compact=async function(e,t,a){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(null===t)throw new i("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(null===e)return null;let s;(a=P(a,{base:g(e)?e:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new r("_:b"),contextResolver:new o({sharedCache:J})})).link&&(a.skipExpansion=!0),a.compactToRelative||delete a.base,s=a.skipExpansion?e:await T.expand(e,a);const l=await T.processContext(x(a),t,a);let c=await I({activeCtx:l,element:s,options:a});a.compactArrays&&!a.graph&&h(c)?1===c.length?c=c[0]:0===c.length&&(c={}):a.graph&&v(c)&&(c=[c]),v(t)&&"@context"in t&&(t=t["@context"]),t=n.clone(t),h(t)||(t=[t]);const d=t;t=[];for(let e=0;e<d.length;++e)(!v(d[e])||Object.keys(d[e]).length>0)&&t.push(d[e]);const u=t.length>0;if(1===t.length&&(t=t[0]),h(c)){const e=j({activeCtx:l,iri:"@graph",relativeTo:{vocab:!0}}),n=c;c={},u&&(c["@context"]=t),c[e]=n}else if(v(c)&&u){const e=c;c={"@context":t};for(const t in e)c[t]=e[t]}return c},T.expand=async function(e,t){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const r={},i=[];if("expandContext"in(t=P(t,{keepFreeFloatingNodes:!1,contextResolver:new o({sharedCache:J})}))){const e=n.clone(t.expandContext);v(e)&&"@context"in e?r.expandContext=e:r.expandContext={"@context":e},i.push(r.expandContext)}let a;if(g(e)){const n=await T.get(e,t);a=n.documentUrl,r.input=n.document,n.contextUrl&&(r.remoteContext={"@context":n.contextUrl},i.push(r.remoteContext))}else r.input=n.clone(e);"base"in t||(t.base=a||"");let s=x(t);for(const e of i)s=await b({activeCtx:s,localCtx:e,options:t});let c=await l({activeCtx:s,element:r.input,options:t});return v(c)&&"@graph"in c&&1===Object.keys(c).length?c=c["@graph"]:null===c&&(c=[]),h(c)||(c=[c]),c},T.flatten=async function(e,t,n){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");t="function"==typeof t?null:t||null,n=P(n,{base:g(e)?e:"",contextResolver:new o({sharedCache:J})});const r=await T.expand(e,n),i=c(r);if(null===t)return i;n.graph=!0,n.skipExpansion=!0;return await T.compact(i,t,n)},T.frame=async function(e,t,n){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(n=P(n,{base:g(e)?e:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new o({sharedCache:J})}),g(t)){const e=await T.get(t,n);if(t=e.document,e.contextUrl){let n=t["@context"];n?h(n)?n.push(e.contextUrl):n=[n,e.contextUrl]:n=e.contextUrl,t["@context"]=n}}const r=t&&t["@context"]||{},i=await T.processContext(x(n),r,n);n.hasOwnProperty("omitGraph")||(n.omitGraph=w(i,1.1)),n.hasOwnProperty("pruneBlankNodeIdentifiers")||(n.pruneBlankNodeIdentifiers=w(i,1.1));const a=await T.expand(e,n),s={...n};s.isFrame=!0,s.keepFreeFloatingNodes=!0;const l=await T.expand(t,s),c=Object.keys(t).map(e=>m(i,e,{vocab:!0}));s.merged=!c.includes("@graph"),s.is11=w(i,1.1);const d=p(a,l,s);s.graph=!n.omitGraph,s.skipExpansion=!0,s.link={},s.framing=!0;let u=await T.compact(d,r,s);return s.link={},u=f(u,s),u},T.link=async function(e,t,n){const o={};return t&&(o["@context"]=t),o["@embed"]="@link",T.frame(e,o,n)},T.normalize=T.canonize=async function(t,n){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");n=P(n,{skipExpansion:!1,safe:!0,contextResolver:new o({sharedCache:J})});const r=Object.assign({},{algorithm:"RDFC-1.0"},n.canonizeOptions||null);if("inputFormat"in n){if("application/n-quads"!==n.inputFormat)throw new i("Unknown canonicalization input format.","jsonld.CanonizeError");const o=s.parse(t);return e.canonize(o,r)}const a={...n};delete a.format,delete a.canonizeOptions,a.produceGeneralizedRdf=!1;const l=await T.toRDF(t,a);return e.canonize(l,r)},T.fromRDF=async function(e,t){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");t=P(t,{format:g(e)?"application/n-quads":void 0});const{format:n}=t;let{rdfParser:o}=t;if(n){if(o=o||_[n],!o)throw new i("Unknown input format.","jsonld.UnknownFormat",{format:n})}else o=()=>e;const r=await o(e);return d(r,t)},T.toRDF=async function(e,t){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let n;n=(t=P(t,{skipExpansion:!1,contextResolver:new o({sharedCache:J})})).skipExpansion?e:await T.expand(e,t);const r=u(n,t);if(t.format){if("application/n-quads"===t.format)return s.serialize(r);throw new i("Unknown output format.","jsonld.UnknownFormat",{format:t.format})}return r},T.createNodeMap=async function(e,t){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");t=P(t,{base:g(e)?e:"",contextResolver:new o({sharedCache:J})});const n=await T.expand(e,t);return D(n,t)},T.merge=async function(e,t,i){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!h(e))throw new TypeError('Could not merge, "docs" must be an array.');t="function"==typeof t?null:t||null,i=P(i,{contextResolver:new o({sharedCache:J})});const a=await Promise.all(e.map(e=>{const t={...i};return T.expand(e,t)}));let s=!0;"mergeNodes"in i&&(s=i.mergeNodes);const l=i.issuer||new r("_:b"),c={"@default":{}};for(let e=0;e<a.length;++e){const t=n.relabelBlankNodes(a[e],{issuer:new r("_:b"+e+"-")}),o=s||0===e?c:{"@default":{}};if(S(t,o,"@default",l),o!==c)for(const e in o){const t=o[e];if(!(e in c)){c[e]=t;continue}const n=c[e];for(const e in t)e in n||(n[e]=t[e])}}const d=N(c),u=[],p=Object.keys(d).sort();for(let e=0;e<p.length;++e){const t=d[p[e]];y(t)||u.push(t)}if(null===t)return u;i.graph=!0,i.skipExpansion=!0;return await T.compact(u,t,i)},Object.defineProperty(T,"documentLoader",{get:()=>T._documentLoader,set:e=>T._documentLoader=e}),T.documentLoader=async e=>{throw new i("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:e})},T.get=async function(e,t){let n;n="function"==typeof t.documentLoader?t.documentLoader:T.documentLoader;const o=await n(e);try{if(!o.document)throw new i("No remote document found at the given URL.","jsonld.NullRemoteDocument");g(o.document)&&(o.document=JSON.parse(o.document))}catch(e){throw new i("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:e,remoteDoc:o})}return o},T.processContext=async function(e,t,r){return r=P(r,{base:"",contextResolver:new o({sharedCache:J})}),null===t?x(r):(t=n.clone(t),v(t)&&"@context"in t||(t={"@context":t}),b({activeCtx:e,localCtx:t,options:r}))},T.getContextValue=Fe().getContextValue,T.documentLoaders={},T.useDocumentLoader=function(e){if(!(e in T.documentLoaders))throw new i('Unknown document loader type: "'+e+'"',"jsonld.UnknownDocumentLoader",{type:e});T.documentLoader=T.documentLoaders[e].apply(T,Array.prototype.slice.call(arguments,1))},T.registerRDFParser=function(e,t){_[e]=t},T.unregisterRDFParser=function(e){delete _[e]},T.registerRDFParser("application/n-quads",s.parse),T.url=Ae(),T.logEventHandler=O,T.logWarningEventHandler=E,T.safeEventHandler=C,T.setDefaultEventHandler=k,T.strictEventHandler=A,T.unhandledEventHandler=R,T.util=n,Object.assign(T,n),T.promises=T,T.RequestQueue=Le(),T.JsonLdProcessor=(ge||(ge=1,ve=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(t,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,n)},t.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(t)},t.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(t)},t}),ve)(T),t.setupGlobals(T),t.setupDocumentLoaders(T),T},P=function(){return T(function(){return P()})};return T(P),ye=P}var ze=e(Ve());class Ge{constructor(e){}}export{Ge as S,Ve as a,ze as j,De as r};
33
+ n.link={},v(c,n)},l.frame=(r,a,s,v,y=null)=>{p(s),s=s[0];const x=r.options,b={embed:u(s,x,"embed"),explicit:u(s,x,"explicit"),requireAll:u(s,x,"requireAll")};r.link.hasOwnProperty(r.graph)||(r.link[r.graph]={});const w=r.link[r.graph],I=function(e,t,n,o){const r={};for(const i of t){const t=e.graphMap[e.graph][i];f(e,t,n,o)&&(r[i]=t)}return r}(r,a,s,b),j=Object.keys(I).sort();for(const p of j){const f=I[p];if(null===y?r.uniqueEmbeds={[r.graph]:{}}:r.uniqueEmbeds[r.graph]=r.uniqueEmbeds[r.graph]||{},"@link"===b.embed&&p in w){g(v,y,w[p]);continue}const j={"@id":p};if(0===p.indexOf("_:")&&o.addValue(r.bnodeMap,p,j,{propertyIsArray:!0}),w[p]=j,("@first"===b.embed||"@last"===b.embed)&&r.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:s});if(r.embedded||!r.uniqueEmbeds[r.graph].hasOwnProperty(p))if(!r.embedded||"@never"!==b.embed&&!d(f,r.graph,r.subjectStack))if(!r.embedded||"@first"!=b.embed&&"@once"!=b.embed||!r.uniqueEmbeds[r.graph].hasOwnProperty(p)){if("@last"===b.embed&&p in r.uniqueEmbeds[r.graph]&&h(r,p),r.uniqueEmbeds[r.graph][p]={parent:v,property:y},r.subjectStack.push({subject:f,graph:r.graph}),p in r.graphMap){let e=!1,t=null;"@graph"in s?(t=s["@graph"][0],e=!("@merged"===p||"@default"===p),n.isObject(t)||(t={})):(e="@merged"!==r.graph,t={}),e&&l.frame({...r,graph:p,embedded:!1},Object.keys(r.graphMap[p]).sort(),[t],j,"@graph")}"@included"in s&&l.frame({...r,embedded:!1},a,s["@included"],j,"@included");for(const n of Object.keys(f).sort())if(e(n)){if(j[n]=o.clone(f[n]),"@type"===n)for(const e of f["@type"])0===e.indexOf("_:")&&o.addValue(r.bnodeMap,e,j,{propertyIsArray:!0})}else if(!b.explicit||n in s)for(const e of f[n]){const i=n in s?s[n]:c(b);if(t.isList(e)){const i=s[n]&&s[n][0]&&s[n][0]["@list"]?s[n][0]["@list"]:c(b),a={"@list":[]};g(j,n,a);const d=e["@list"];for(const e of d)t.isSubjectReference(e)?l.frame({...r,embedded:!0},[e["@id"]],i,a,"@list"):g(a,"@list",o.clone(e))}else t.isSubjectReference(e)?l.frame({...r,embedded:!0},[e["@id"]],i,j,n):m(i[0],e)&&g(j,n,o.clone(e))}for(const t of Object.keys(s).sort()){if("@type"===t){if(!n.isObject(s[t][0])||!("@default"in s[t][0]))continue}else if(e(t))continue;const r=s[t][0]||{};if(!u(r,x,"omitDefault")&&!(t in j)){let e="@null";"@default"in r&&(e=o.clone(r["@default"])),n.isArray(e)||(e=[e]),j[t]=[{"@preserve":e}]}}for(const e of Object.keys(s["@reverse"]||{}).sort()){const t=s["@reverse"][e];for(const n of Object.keys(r.subjects)){o.getValues(r.subjects[n],e).some(e=>e["@id"]===p)&&(j["@reverse"]=j["@reverse"]||{},o.addValue(j["@reverse"],e,[],{propertyIsArray:!0}),l.frame({...r,embedded:!0},[n],t,j["@reverse"][e],y))}}g(v,y,j),r.subjectStack.pop()}else g(v,y,j);else g(v,y,j)}},l.cleanupNull=(e,t)=>{if(n.isArray(e)){return e.map(e=>l.cleanupNull(e,t)).filter(e=>e)}if("@null"===e)return null;if(n.isObject(e)){if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)e[n]=l.cleanupNull(e[n],t)}return e},ue}function $e(){if(he)return fe;he=1;const e=Ee(),{isArray:t,isObject:n,isString:o,isUndefined:r}=Ne(),{isList:i,isValue:a,isGraph:s,isSimpleGraph:l,isSubjectReference:c}=Oe(),{expandIri:d,getContextValue:u,isKeyword:p,process:f,processingMode:h}=Fe(),{removeBase:v,prependBase:g}=Ae(),{REGEX_KEYWORD:y,addValue:m,asArray:x,compareShortestLeast:b}=Ce(),w={};function I(t,n,o){if("@nest"!==d(t,n,{vocab:!0},o))throw new e("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}return fe=w,w.compact=async({activeCtx:d,activeProperty:v=null,element:g,options:y={}})=>{if(t(g)){let e=[];for(let t=0;t<g.length;++t){const n=await w.compact({activeCtx:d,activeProperty:v,element:g[t],options:y});null!==n&&e.push(n)}if(y.compactArrays&&1===e.length){0===(u(d,v,"@container")||[]).length&&(e=e[0])}return e}const b=u(d,v,"@context");if(r(b)||(d=await f({activeCtx:d,localCtx:b,propagate:!0,overrideProtected:!0,options:y})),n(g)){if(y.link&&"@id"in g&&y.link.hasOwnProperty(g["@id"])){const e=y.link[g["@id"]];for(let t=0;t<e.length;++t)if(e[t].expanded===g)return e[t].compacted}if(a(g)||c(g)){const e=w.compactValue({activeCtx:d,activeProperty:v,value:g,options:y});return y.link&&c(g)&&(y.link.hasOwnProperty(g["@id"])||(y.link[g["@id"]]=[]),y.link[g["@id"]].push({expanded:g,compacted:e})),e}if(i(g)){if((u(d,v,"@container")||[]).includes("@list"))return w.compact({activeCtx:d,activeProperty:v,element:g["@list"],options:y})}const b="@reverse"===v,j={},S=d;a(g)||c(g)||(d=d.revertToPreviousContext());const D=u(S,v,"@context");r(D)||(d=await f({activeCtx:d,localCtx:D,propagate:!0,overrideProtected:!0,options:y})),y.link&&"@id"in g&&(y.link.hasOwnProperty(g["@id"])||(y.link[g["@id"]]=[]),y.link[g["@id"]].push({expanded:g,compacted:j}));let N=g["@type"]||[];N.length>1&&(N=Array.from(N).sort());const O=d;for(const e of N){const t=w.compactIri({activeCtx:O,iri:e,relativeTo:{vocab:!0}}),n=u(S,t,"@context");r(n)||(d=await f({activeCtx:d,localCtx:n,options:y,propagate:!1}))}const E=Object.keys(g).sort();for(const r of E){const c=g[r];if("@id"===r){let e=x(c).map(e=>w.compactIri({activeCtx:d,iri:e,relativeTo:{vocab:!1},base:y.base}));1===e.length&&(e=e[0]);j[w.compactIri({activeCtx:d,iri:"@id",relativeTo:{vocab:!0}})]=e;continue}if("@type"===r){let e=x(c).map(e=>w.compactIri({activeCtx:S,iri:e,relativeTo:{vocab:!0}}));1===e.length&&(e=e[0]);const n=w.compactIri({activeCtx:d,iri:"@type",relativeTo:{vocab:!0}}),o=(u(d,n,"@container")||[]).includes("@set")&&h(d,1.1)||t(e)&&0===c.length;m(j,n,e,{propertyIsArray:o});continue}if("@reverse"===r){const e=await w.compact({activeCtx:d,activeProperty:"@reverse",element:c,options:y});for(const t in e)if(d.mappings.has(t)&&d.mappings.get(t).reverse){const n=e[t],o=(u(d,t,"@container")||[]).includes("@set")||!y.compactArrays;m(j,t,n,{propertyIsArray:o}),delete e[t]}if(Object.keys(e).length>0){const t=w.compactIri({activeCtx:d,iri:r,relativeTo:{vocab:!0}});m(j,t,e)}continue}if("@preserve"===r){const e=await w.compact({activeCtx:d,activeProperty:v,element:c,options:y});t(e)&&0===e.length||m(j,r,e);continue}if("@index"===r){if((u(d,v,"@container")||[]).includes("@index"))continue;const e=w.compactIri({activeCtx:d,iri:r,relativeTo:{vocab:!0}});m(j,e,c);continue}if("@graph"!==r&&"@list"!==r&&"@included"!==r&&p(r)){const e=w.compactIri({activeCtx:d,iri:r,relativeTo:{vocab:!0}});m(j,e,c);continue}if(!t(c))throw new e("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===c.length){const e=w.compactIri({activeCtx:d,iri:r,value:c,relativeTo:{vocab:!0},reverse:b}),t=d.mappings.has(e)?d.mappings.get(e)["@nest"]:null;let o=j;t&&(I(d,t,y),n(j[t])||(j[t]={}),o=j[t]),m(o,e,c,{propertyIsArray:!0})}for(const e of c){const c=w.compactIri({activeCtx:d,iri:r,value:e,relativeTo:{vocab:!0},reverse:b}),p=d.mappings.has(c)?d.mappings.get(c)["@nest"]:null;let f=j;p&&(I(d,p,y),n(j[p])||(j[p]={}),f=j[p]);const h=u(d,c,"@container")||[],v=s(e),g=i(e);let S;g?S=e["@list"]:v&&(S=e["@graph"]);let D=await w.compact({activeCtx:d,activeProperty:c,element:g||v?S:e,options:y});if(g){if(t(D)||(D=[D]),h.includes("@list")){m(f,c,D,{valueIsArray:!0,allowDuplicate:!0});continue}D={[w.compactIri({activeCtx:d,iri:"@list",relativeTo:{vocab:!0}})]:D},"@index"in e&&(D[w.compactIri({activeCtx:d,iri:"@index",relativeTo:{vocab:!0}})]=e["@index"])}if(v)if(h.includes("@graph")&&(h.includes("@id")||h.includes("@index")&&l(e))){let t;f.hasOwnProperty(c)?t=f[c]:f[c]=t={};const n=(h.includes("@id")?e["@id"]:e["@index"])||w.compactIri({activeCtx:d,iri:"@none",relativeTo:{vocab:!0}});m(t,n,D,{propertyIsArray:!y.compactArrays||h.includes("@set")})}else h.includes("@graph")&&l(e)?(t(D)&&D.length>1&&(D={"@included":D}),m(f,c,D,{propertyIsArray:!y.compactArrays||h.includes("@set")})):(t(D)&&1===D.length&&y.compactArrays&&(D=D[0]),D={[w.compactIri({activeCtx:d,iri:"@graph",relativeTo:{vocab:!0}})]:D},"@id"in e&&(D[w.compactIri({activeCtx:d,iri:"@id",relativeTo:{vocab:!0}})]=e["@id"]),"@index"in e&&(D[w.compactIri({activeCtx:d,iri:"@index",relativeTo:{vocab:!0}})]=e["@index"]),m(f,c,D,{propertyIsArray:!y.compactArrays||h.includes("@set")}));else if(h.includes("@language")||h.includes("@index")||h.includes("@id")||h.includes("@type")){let t,n;if(f.hasOwnProperty(c)?t=f[c]:f[c]=t={},h.includes("@language"))a(D)&&(D=D["@value"]),n=e["@language"];else if(h.includes("@index")){const t=u(d,c,"@index")||"@index",r=w.compactIri({activeCtx:d,iri:t,relativeTo:{vocab:!0}});if("@index"===t)n=e["@index"],delete D[r];else{let e;if([n,...e]=x(D[t]||[]),o(n))switch(e.length){case 0:delete D[t];break;case 1:D[t]=e[0];break;default:D[t]=e}else n=null}}else if(h.includes("@id")){const e=w.compactIri({activeCtx:d,iri:"@id",relativeTo:{vocab:!0}});n=D[e],delete D[e]}else if(h.includes("@type")){const t=w.compactIri({activeCtx:d,iri:"@type",relativeTo:{vocab:!0}});let o;switch([n,...o]=x(D[t]||[]),o.length){case 0:delete D[t];break;case 1:D[t]=o[0];break;default:D[t]=o}1===Object.keys(D).length&&"@id"in e&&(D=await w.compact({activeCtx:d,activeProperty:c,element:{"@id":e["@id"]},options:y}))}n||(n=w.compactIri({activeCtx:d,iri:"@none",relativeTo:{vocab:!0}})),m(t,n,D,{propertyIsArray:h.includes("@set")})}else{const e=!y.compactArrays||h.includes("@set")||h.includes("@list")||t(D)&&0===D.length||"@list"===r||"@graph"===r;m(f,c,D,{propertyIsArray:e})}}}return j}return g},w.compactIri=({activeCtx:t,iri:o,value:r=null,relativeTo:l={vocab:!1},reverse:c=!1,base:d=null})=>{if(null===o)return o;t.isPropertyTermScoped&&t.previousContext&&(t=t.previousContext);const u=t.getInverse();if(p(o)&&o in u&&"@none"in u[o]&&"@type"in u[o]["@none"]&&"@none"in u[o]["@none"]["@type"])return u[o]["@none"]["@type"]["@none"];if(l.vocab&&o in u){const e=t["@language"]||"@none",l=[];n(r)&&"@index"in r&&!("@graph"in r)&&l.push("@index","@index@set"),n(r)&&"@preserve"in r&&(r=r["@preserve"][0]),s(r)?("@index"in r&&l.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in r&&l.push("@graph@id","@graph@id@set"),l.push("@graph","@graph@set","@set"),"@index"in r||l.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in r||l.push("@graph@id","@graph@id@set")):n(r)&&!a(r)&&l.push("@id","@id@set","@type","@set@type");let d="@language",u="@null";if(c)d="@type",u="@reverse",l.push("@set");else if(i(r)){"@index"in r||l.push("@list");const t=r["@list"];if(0===t.length)d="@any",u="@none";else{let n=0===t.length?e:null,o=null;for(let e=0;e<t.length;++e){const r=t[e];let i="@none",s="@none";if(a(r))if("@direction"in r){i=`${(r["@language"]||"").toLowerCase()}_${r["@direction"]}`}else"@language"in r?i=r["@language"].toLowerCase():"@type"in r?s=r["@type"]:i="@null";else s="@id";if(null===n?n=i:i!==n&&a(r)&&(n="@none"),null===o?o=s:s!==o&&(o="@none"),"@none"===n&&"@none"===o)break}n=n||"@none",o=o||"@none","@none"!==o?(d="@type",u=o):u=n}}else{if(a(r))if("@language"in r&&!("@index"in r)){l.push("@language","@language@set"),u=r["@language"];const e=r["@direction"];e&&(u=`${u}_${e}`)}else"@direction"in r&&!("@index"in r)?u=`_${r["@direction"]}`:"@type"in r&&(d="@type",u=r["@type"]);else d="@type",u="@id";l.push("@set")}l.push("@none"),n(r)&&!("@index"in r)&&l.push("@index","@index@set"),a(r)&&1===Object.keys(r).length&&l.push("@language","@language@set");const p=function(e,t,o,r,i,a){null===a&&(a="@null");const s=[];if(("@id"===a||"@reverse"===a)&&n(o)&&"@id"in o){"@reverse"===a&&s.push("@reverse");const t=w.compactIri({activeCtx:e,iri:o["@id"],relativeTo:{vocab:!0}});e.mappings.has(t)&&e.mappings.get(t)&&e.mappings.get(t)["@id"]===o["@id"]?s.push.apply(s,["@vocab","@id"]):s.push.apply(s,["@id","@vocab"])}else{s.push(a);const e=s.find(e=>e.includes("_"));e&&s.push(e.replace(/^[^_]+_/,"_"))}s.push("@none");const l=e.inverse[t];for(const e of r){if(!(e in l))continue;const t=l[e][i];for(const e of s)if(e in t)return t[e]}return null}(t,o,r,l,d,u);if(null!==p)return p}if(l.vocab&&"@vocab"in t){const e=t["@vocab"];if(0===o.indexOf(e)&&o!==e){const n=o.substr(e.length);if(!t.mappings.has(n))return n}}let f=null;const h=[];let m=t.fastCurieMap;const x=o.length-1;for(let e=0;e<x&&o[e]in m;++e)m=m[o[e]],""in m&&h.push(m[""][0]);for(let e=h.length-1;e>=0;--e){const n=h[e],i=n.terms;for(const e of i){const i=e+":"+o.substr(n.iri.length);t.mappings.get(e)._prefix&&(!t.mappings.has(i)||null===r&&t.mappings.get(i)["@id"]===o)&&(null===f||b(i,f)<0)&&(f=i)}}if(null!==f)return f;for(const[n,r]of t.mappings)if(r&&r._prefix&&o.startsWith(n+":"))throw new e(`Absolute IRI "${o}" confused with prefix "${n}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:t});if(!l.vocab){if("@base"in t){if(t["@base"]){const e=v(g(d,t["@base"]),o);return y.test(e)?`./${e}`:e}return o}return v(d,o)}return o},w.compactValue=({activeCtx:e,activeProperty:t,value:n,options:r})=>{if(a(n)){const r=u(e,t,"@type"),i=u(e,t,"@language"),a=u(e,t,"@direction"),s=u(e,t,"@container")||[],l="@index"in n&&!s.includes("@index");if(!l&&"@none"!==r){if(n["@type"]===r)return n["@value"];if("@language"in n&&n["@language"]===i&&"@direction"in n&&n["@direction"]===a)return n["@value"];if("@language"in n&&n["@language"]===i)return n["@value"];if("@direction"in n&&n["@direction"]===a)return n["@value"]}const c=Object.keys(n).length,d=1===c||2===c&&"@index"in n&&!l,p="@language"in e,f=o(n["@value"]),h=e.mappings.has(t)&&null===e.mappings.get(t)["@language"];if(d&&"@none"!==r&&(!p||!f||h))return n["@value"];const v={};return l&&(v[w.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?v[w.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}})]=w.compactIri({activeCtx:e,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(v[w.compactIri({activeCtx:e,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(v[w.compactIri({activeCtx:e,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),v[w.compactIri({activeCtx:e,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],v}const i=d(e,t,{vocab:!0},r),s=u(e,t,"@type"),l=w.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:"@vocab"===s},base:r.base});return"@id"===s||"@vocab"===s||"@graph"===i?l:{[w.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]:l}},fe}function Ve(){if(me)return ye;me=1;const e=De(),t=function(){if(J)return _;J=1;const e=Re(),t={};return _=t,t.setupDocumentLoaders=function(t){"undefined"!=typeof XMLHttpRequest&&(t.documentLoaders.xhr=e,t.useDocumentLoader("xhr"))},t.setupGlobals=function(e){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})},_}(),n=Ce(),o=Je(),r=n.IdentifierIssuer,i=Ee(),a=_e(),s=Pe(),{expand:l}=He(),{flatten:c}=function(){if(re)return oe;re=1;const{isSubjectReference:e}=Oe(),{createMergedNodeMap:t}=Be(),n={};return oe=n,n.flatten=n=>{const o=t(n),r=[],i=Object.keys(o).sort();for(let t=0;t<i.length;++t){const n=o[i[t]];e(n)||r.push(n)}return r},oe}(),{fromRDF:d}=function(){if(ae)return ie;ae=1;const e=Ee(),t=Oe(),n=Ne(),{REGEX_BCP47:o,addValue:r}=Ce(),{handleEvent:i}=Me(),{RDF_LIST:a,RDF_FIRST:s,RDF_REST:l,RDF_NIL:c,RDF_TYPE:d,RDF_JSON_LITERAL:u,XSD_BOOLEAN:p,XSD_DOUBLE:f,XSD_INTEGER:h,XSD_STRING:v}=ke(),g={};function y(t,r,a,s){const l=m(t);if(l)return{"@id":l};const c={"@value":t.value};if(t.language)t.language.match(o)||s.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:t.language}},options:s}),c["@language"]=t.language;else{let l=t.datatype.value;if(l||(l=v),l===u){l="@json";try{c["@value"]=JSON.parse(c["@value"])}catch(t){throw new e("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:c["@value"],cause:t})}}if(r)if(l===p)"true"===c["@value"]||"1"===c["@value"]?c["@value"]=!0:"false"===c["@value"]||"0"===c["@value"]?c["@value"]=!1:c["@type"]=l;else if(l===h)if(n.isNumeric(c["@value"])){const e=parseInt(c["@value"],10);e.toFixed(0)===c["@value"]&&(c["@value"]=e)}else c["@type"]=l;else l===f&&n.isNumeric(c["@value"])?c["@value"]=parseFloat(c["@value"]):c["@type"]=l;else if("i18n-datatype"===a&&l.startsWith("https://www.w3.org/ns/i18n#")){const[,e,t]=l.split(/[#_]/);e.length>0&&(c["@language"]=e,e.match(o)||s.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:s})),c["@direction"]=t}else l!==v&&(c["@type"]=l)}return c}function m(e){return"NamedNode"===e.termType?e.value:"BlankNode"===e.termType?"_:"+e.value:null}return ie=g,g.fromRDF=async(o,i)=>{const{useRdfType:u=!1,useNativeTypes:p=!1,rdfDirection:f=null}=i,h={},v={"@default":h},g={};if(f){if("compound-literal"===f)throw new e("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:f});if("i18n-datatype"!==f)throw new e("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:f})}for(const e of o){const t="DefaultGraph"===e.graph.termType?"@default":e.graph.value;t in v||(v[t]={}),"@default"===t||t in h||(h[t]={"@id":t});const n=v[t],o=m(e.subject),a=e.predicate.value,s=e.object;o in n||(n[o]={"@id":o});const l=n[o],x=m(s),b=!!x;if(b&&!(x in n)&&(n[x]={"@id":x}),a===d&&!u&&b){r(l,"@type",x,{propertyIsArray:!0});continue}const w=y(s,p,f,i);if(r(l,a,w,{propertyIsArray:!0}),b)if(x===c){const e=n[x];"usages"in e||(e.usages=[]),e.usages.push({node:l,property:a,value:w})}else g[x]=!(x in g)&&{node:l,property:a,value:w}}for(const e in v){const o=v[e];if(!(c in o))continue;const r=o[c];if(r.usages){for(let e of r.usages){let r=e.node,i=e.property,c=e.value;const d=[],u=[];let p=Object.keys(r).length;for(;i===l&&n.isObject(g[r["@id"]])&&n.isArray(r[s])&&1===r[s].length&&n.isArray(r[l])&&1===r[l].length&&(3===p||4===p&&n.isArray(r["@type"])&&1===r["@type"].length&&r["@type"][0]===a)&&(d.push(r[s][0]),u.push(r["@id"]),e=g[r["@id"]],r=e.node,i=e.property,c=e.value,p=Object.keys(r).length,t.isBlankNode(r)););delete c["@id"],c["@list"]=d.reverse();for(const e of u)delete o[e]}delete r.usages}}const x=[],b=Object.keys(h).sort();for(const e of b){const n=h[e];if(e in v){const o=n["@graph"]=[],r=v[e],i=Object.keys(r).sort();for(const e of i){const n=r[e];t.isSubjectReference(n)||o.push(n)}}t.isSubjectReference(n)||x.push(n)}return x},ie}(),{toRDF:u}=qe(),{frameMergedOrDefault:p,cleanupNull:f}=Ue(),{isArray:h,isObject:v,isString:g}=Ne(),{isSubjectReference:y}=Oe(),{expandIri:m,getInitialContext:x,process:b,processingMode:w}=Fe(),{compact:I,compactIri:j}=$e(),{createNodeMap:S,createMergedNodeMap:D,mergeNodeMaps:N}=Be(),{logEventHandler:O,logWarningEventHandler:E,safeEventHandler:C,setDefaultEventHandler:k,setupEventHandler:L,strictEventHandler:A,unhandledEventHandler:R}=Me(),T=function(T){const _={},J=new a({max:100});function P(e,{documentLoader:t=T.documentLoader,...n}){if(e&&"compactionMap"in e)throw new i('"compactionMap" not supported.',"jsonld.OptionsError");if(e&&"expansionMap"in e)throw new i('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:t},n,e,{eventHandler:L({options:e})})}return T.compact=async function(e,t,a){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(null===t)throw new i("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(null===e)return null;let s;(a=P(a,{base:g(e)?e:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new r("_:b"),contextResolver:new o({sharedCache:J})})).link&&(a.skipExpansion=!0),a.compactToRelative||delete a.base,s=a.skipExpansion?e:await T.expand(e,a);const l=await T.processContext(x(a),t,a);let c=await I({activeCtx:l,element:s,options:a});a.compactArrays&&!a.graph&&h(c)?1===c.length?c=c[0]:0===c.length&&(c={}):a.graph&&v(c)&&(c=[c]),v(t)&&"@context"in t&&(t=t["@context"]),t=n.clone(t),h(t)||(t=[t]);const d=t;t=[];for(let e=0;e<d.length;++e)(!v(d[e])||Object.keys(d[e]).length>0)&&t.push(d[e]);const u=t.length>0;if(1===t.length&&(t=t[0]),h(c)){const e=j({activeCtx:l,iri:"@graph",relativeTo:{vocab:!0}}),n=c;c={},u&&(c["@context"]=t),c[e]=n}else if(v(c)&&u){const e=c;c={"@context":t};for(const t in e)c[t]=e[t]}return c},T.expand=async function(e,t){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const r={},i=[];if("expandContext"in(t=P(t,{keepFreeFloatingNodes:!1,contextResolver:new o({sharedCache:J})}))){const e=n.clone(t.expandContext);v(e)&&"@context"in e?r.expandContext=e:r.expandContext={"@context":e},i.push(r.expandContext)}let a;if(g(e)){const n=await T.get(e,t);a=n.documentUrl,r.input=n.document,n.contextUrl&&(r.remoteContext={"@context":n.contextUrl},i.push(r.remoteContext))}else r.input=n.clone(e);"base"in t||(t.base=a||"");let s=x(t);for(const e of i)s=await b({activeCtx:s,localCtx:e,options:t});let c=await l({activeCtx:s,element:r.input,options:t});return v(c)&&"@graph"in c&&1===Object.keys(c).length?c=c["@graph"]:null===c&&(c=[]),h(c)||(c=[c]),c},T.flatten=async function(e,t,n){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");t="function"==typeof t?null:t||null,n=P(n,{base:g(e)?e:"",contextResolver:new o({sharedCache:J})});const r=await T.expand(e,n),i=c(r);if(null===t)return i;n.graph=!0,n.skipExpansion=!0;return await T.compact(i,t,n)},T.frame=async function(e,t,n){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(n=P(n,{base:g(e)?e:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new o({sharedCache:J})}),g(t)){const e=await T.get(t,n);if(t=e.document,e.contextUrl){let n=t["@context"];n?h(n)?n.push(e.contextUrl):n=[n,e.contextUrl]:n=e.contextUrl,t["@context"]=n}}const r=t&&t["@context"]||{},i=await T.processContext(x(n),r,n);n.hasOwnProperty("omitGraph")||(n.omitGraph=w(i,1.1)),n.hasOwnProperty("pruneBlankNodeIdentifiers")||(n.pruneBlankNodeIdentifiers=w(i,1.1));const a=await T.expand(e,n),s={...n};s.isFrame=!0,s.keepFreeFloatingNodes=!0;const l=await T.expand(t,s),c=Object.keys(t).map(e=>m(i,e,{vocab:!0}));s.merged=!c.includes("@graph"),s.is11=w(i,1.1);const d=p(a,l,s);s.graph=!n.omitGraph,s.skipExpansion=!0,s.link={},s.framing=!0;let u=await T.compact(d,r,s);return s.link={},u=f(u,s),u},T.link=async function(e,t,n){const o={};return t&&(o["@context"]=t),o["@embed"]="@link",T.frame(e,o,n)},T.normalize=T.canonize=async function(t,n){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");n=P(n,{skipExpansion:!1,safe:!0,contextResolver:new o({sharedCache:J})});const r=Object.assign({},{algorithm:"RDFC-1.0"},n.canonizeOptions||null);if("inputFormat"in n){if("application/n-quads"!==n.inputFormat)throw new i("Unknown canonicalization input format.","jsonld.CanonizeError");const o=s.parse(t);return e.canonize(o,r)}const a={...n};delete a.format,delete a.canonizeOptions,a.produceGeneralizedRdf=!1;const l=await T.toRDF(t,a);return e.canonize(l,r)},T.fromRDF=async function(e,t){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");t=P(t,{format:g(e)?"application/n-quads":void 0});const{format:n}=t;let{rdfParser:o}=t;if(n){if(o=o||_[n],!o)throw new i("Unknown input format.","jsonld.UnknownFormat",{format:n})}else o=()=>e;const r=await o(e);return d(r,t)},T.toRDF=async function(e,t){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let n;n=(t=P(t,{skipExpansion:!1,contextResolver:new o({sharedCache:J})})).skipExpansion?e:await T.expand(e,t);const r=u(n,t);if(t.format){if("application/n-quads"===t.format)return s.serialize(r);throw new i("Unknown output format.","jsonld.UnknownFormat",{format:t.format})}return r},T.createNodeMap=async function(e,t){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");t=P(t,{base:g(e)?e:"",contextResolver:new o({sharedCache:J})});const n=await T.expand(e,t);return D(n,t)},T.merge=async function(e,t,i){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!h(e))throw new TypeError('Could not merge, "docs" must be an array.');t="function"==typeof t?null:t||null,i=P(i,{contextResolver:new o({sharedCache:J})});const a=await Promise.all(e.map(e=>{const t={...i};return T.expand(e,t)}));let s=!0;"mergeNodes"in i&&(s=i.mergeNodes);const l=i.issuer||new r("_:b"),c={"@default":{}};for(let e=0;e<a.length;++e){const t=n.relabelBlankNodes(a[e],{issuer:new r("_:b"+e+"-")}),o=s||0===e?c:{"@default":{}};if(S(t,o,"@default",l),o!==c)for(const e in o){const t=o[e];if(!(e in c)){c[e]=t;continue}const n=c[e];for(const e in t)e in n||(n[e]=t[e])}}const d=N(c),u=[],p=Object.keys(d).sort();for(let e=0;e<p.length;++e){const t=d[p[e]];y(t)||u.push(t)}if(null===t)return u;i.graph=!0,i.skipExpansion=!0;return await T.compact(u,t,i)},Object.defineProperty(T,"documentLoader",{get:()=>T._documentLoader,set:e=>T._documentLoader=e}),T.documentLoader=async e=>{throw new i("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:e})},T.get=async function(e,t){let n;n="function"==typeof t.documentLoader?t.documentLoader:T.documentLoader;const o=await n(e);try{if(!o.document)throw new i("No remote document found at the given URL.","jsonld.NullRemoteDocument");g(o.document)&&(o.document=JSON.parse(o.document))}catch(e){throw new i("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:e,remoteDoc:o})}return o},T.processContext=async function(e,t,r){return r=P(r,{base:"",contextResolver:new o({sharedCache:J})}),null===t?x(r):(t=n.clone(t),v(t)&&"@context"in t||(t={"@context":t}),b({activeCtx:e,localCtx:t,options:r}))},T.getContextValue=Fe().getContextValue,T.documentLoaders={},T.useDocumentLoader=function(e){if(!(e in T.documentLoaders))throw new i('Unknown document loader type: "'+e+'"',"jsonld.UnknownDocumentLoader",{type:e});T.documentLoader=T.documentLoaders[e].apply(T,Array.prototype.slice.call(arguments,1))},T.registerRDFParser=function(e,t){_[e]=t},T.unregisterRDFParser=function(e){delete _[e]},T.registerRDFParser("application/n-quads",s.parse),T.url=Ae(),T.logEventHandler=O,T.logWarningEventHandler=E,T.safeEventHandler=C,T.setDefaultEventHandler=k,T.strictEventHandler=A,T.unhandledEventHandler=R,T.util=n,Object.assign(T,n),T.promises=T,T.RequestQueue=Le(),T.JsonLdProcessor=(ge||(ge=1,ve=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(t,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,n)},t.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(t)},t.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(t)},t}),ve)(T),t.setupGlobals(T),t.setupDocumentLoaders(T),T},P=function(){return T(function(){return P()})};return T(P),ye=P}var ze=e(Ve());export{Ve as a,ze as j,De as r};
@@ -1,4 +1,4 @@
1
- import{h as e,y as t,B as r}from"./main.js";import{a as o,r as n}from"./Suite-CBLHluYK-Dmvbh142.js";var i,a,s,c,p,u,d,f,l,h,y,m,w,g,v,T,E,x,b,S,L,_,C,M,O,R,U,D,K,N,P,A,V,I,j,k,X=(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{h as e,K as t,B as r}from"./main.js";import{a as o,r as n}from"./jsonld-DOUjwF6J-dtl20tiV.js";var i,a,s,c,p,d,u,f,l,h,y,m,w,g,v,T,E,x,b,S,L,_,C,M,O,R,U,D,K,N,P,A,V,I,j,k,X=(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
  */
@@ -14,28 +14,28 @@ e.exports={"@context":[{"@version":1.1},"https://w3id.org/security/v1",{AesKeyWr
14
14
  /*!
15
15
  * Copyright (c) 2021 Digital Bazaar, Inc. All rights reserved.
16
16
  */
17
- e.exports={SECURITY_CONTEXT_V1_URL:"https://w3id.org/security/v1",SECURITY_CONTEXT_V2_URL:"https://w3id.org/security/v2",CONTEXT_URL:"https://w3id.org/security/v2"}}]))}(i={exports:{}},i.exports),i.exports),Y=(a=X)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,z=X.contexts,q=X.constants,$=X.CONTEXT,B=X.CONTEXT_URL,F=X.SECURITY_CONTEXT_V1_URL,J=X.SECURITY_CONTEXT_V2_URL,G=t(Object.freeze({__proto__:null,CONTEXT:$,CONTEXT_URL:B,SECURITY_CONTEXT_V1_URL:F,SECURITY_CONTEXT_V2_URL:J,constants:q,contexts:z,default:Y}));function W(){if(c)return s;c=1;const{constants:e}=G;return s={SECURITY_CONTEXT_URL:e.SECURITY_CONTEXT_V2_URL,SECURITY_CONTEXT_V1_URL:e.SECURITY_CONTEXT_V1_URL,SECURITY_CONTEXT_V2_URL:e.SECURITY_CONTEXT_V2_URL,SECURITY_PROOF_URL:"https://w3id.org/security#proof",SECURITY_SIGNATURE_URL:"https://w3id.org/security#signature"}}
17
+ e.exports={SECURITY_CONTEXT_V1_URL:"https://w3id.org/security/v1",SECURITY_CONTEXT_V2_URL:"https://w3id.org/security/v2",CONTEXT_URL:"https://w3id.org/security/v2"}}]))}(i={exports:{}},i.exports),i.exports),z=(a=X)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,Y=X.contexts,q=X.constants,$=X.CONTEXT,F=X.CONTEXT_URL,J=X.SECURITY_CONTEXT_V1_URL,B=X.SECURITY_CONTEXT_V2_URL,G=t(Object.freeze({__proto__:null,CONTEXT:$,CONTEXT_URL:F,SECURITY_CONTEXT_V1_URL:J,SECURITY_CONTEXT_V2_URL:B,constants:q,contexts:Y,default:z}));function W(){if(c)return s;c=1;const{constants:e}=G;return s={SECURITY_CONTEXT_URL:e.SECURITY_CONTEXT_V2_URL,SECURITY_CONTEXT_V1_URL:e.SECURITY_CONTEXT_V1_URL,SECURITY_CONTEXT_V2_URL:e.SECURITY_CONTEXT_V2_URL,SECURITY_PROOF_URL:"https://w3id.org/security#proof",SECURITY_SIGNATURE_URL:"https://w3id.org/security#signature"}}
18
18
  /*!
19
19
  * Copyright (c) 2017-2023 Digital Bazaar, Inc. All rights reserved.
20
- */function H(){if(u)return p;u=1;const e=W(),{contexts:t}=G;return p=new Map([[e.SECURITY_CONTEXT_V1_URL,t.get(e.SECURITY_CONTEXT_V1_URL)],[e.SECURITY_CONTEXT_V2_URL,t.get(e.SECURITY_CONTEXT_V2_URL)]])}
20
+ */function H(){if(d)return p;d=1;const e=W(),{contexts:t}=G;return p=new Map([[e.SECURITY_CONTEXT_V1_URL,t.get(e.SECURITY_CONTEXT_V1_URL)],[e.SECURITY_CONTEXT_V2_URL,t.get(e.SECURITY_CONTEXT_V2_URL)]])}
21
21
  /*!
22
22
  * Copyright (c) 2018-2021 Digital Bazaar, Inc. All rights reserved.
23
- */function Q(){if(f)return d;f=1;const e=H(),t={};return d=t,t.extendContextLoader=t=>async r=>{const o=e.get(r);return void 0!==o?{contextUrl:null,documentUrl:r,document:o,tag:"static"}:t(r)},t.strictDocumentLoader=t.extendContextLoader(e=>{throw new Error(`${e} not found.`)}),d}function Z(){if(h)return l;h=1;class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}}const t=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],o=Symbol(".toJSON called"),n=({from:e,seen:i,to_:a,forceEnumerable:s,maxDepth:c,depth:p})=>{const u=a||(Array.isArray(e)?[]:{});if(i.push(e),p>=c)return u;if("function"==typeof e.toJSON&&!0!==e[o])return(e=>{e[o]=!0;const t=e.toJSON();return delete e[o],t})(e);for(const[t,o]of Object.entries(e))"function"==typeof r&&r.isBuffer(o)?u[t]="[object Buffer]":"function"!=typeof o&&(o&&"object"==typeof o?i.includes(e[t])?u[t]="[Circular]":(p++,u[t]=n({from:e[t],seen:i.slice(),forceEnumerable:s,maxDepth:c,depth:p})):u[t]=o);for(const{property:r,enumerable:o}of t)"string"==typeof e[r]&&Object.defineProperty(u,r,{value:e[r],enumerable:!!s||o,configurable:!0,writable:!0});return u};return l={serializeError:(e,t={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return"object"==typeof e&&null!==e?n({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e},deserializeError:(t,r={})=>{const{maxDepth:o=Number.POSITIVE_INFINITY}=r;if(t instanceof Error)return t;if("object"==typeof t&&null!==t&&!Array.isArray(t)){const e=new Error;return n({from:t,seen:[],to_:e,maxDepth:o,depth:0}),e}return new e(t)}}}
23
+ */function Q(){if(f)return u;f=1;const e=H(),t={};return u=t,t.extendContextLoader=t=>async r=>{const o=e.get(r);return void 0!==o?{contextUrl:null,documentUrl:r,document:o,tag:"static"}:t(r)},t.strictDocumentLoader=t.extendContextLoader(e=>{throw new Error(`${e} not found.`)}),u}function Z(){if(h)return l;h=1;class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}}const t=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],o=Symbol(".toJSON called"),n=({from:e,seen:i,to_:a,forceEnumerable:s,maxDepth:c,depth:p})=>{const d=a||(Array.isArray(e)?[]:{});if(i.push(e),p>=c)return d;if("function"==typeof e.toJSON&&!0!==e[o])return(e=>{e[o]=!0;const t=e.toJSON();return delete e[o],t})(e);for(const[t,o]of Object.entries(e))"function"==typeof r&&r.isBuffer(o)?d[t]="[object Buffer]":"function"!=typeof o&&(o&&"object"==typeof o?i.includes(e[t])?d[t]="[Circular]":(p++,d[t]=n({from:e[t],seen:i.slice(),forceEnumerable:s,maxDepth:c,depth:p})):d[t]=o);for(const{property:r,enumerable:o}of t)"string"==typeof e[r]&&Object.defineProperty(d,r,{value:e[r],enumerable:!!s||o,configurable:!0,writable:!0});return d};return l={serializeError:(e,t={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return"object"==typeof e&&null!==e?n({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e},deserializeError:(t,r={})=>{const{maxDepth:o=Number.POSITIVE_INFINITY}=r;if(t instanceof Error)return t;if("object"==typeof t&&null!==t&&!Array.isArray(t)){const e=new Error;return n({from:t,seen:[],to_:e,maxDepth:o,depth:0}),e}return new e(t)}}}
24
24
  /*!
25
25
  * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
26
- */function ee(){if(m)return y;m=1;const e=W(),t=o(),{extendContextLoader:r,strictDocumentLoader:n}=Q(),{serializeError:i}=Z();function a({document:r}){let o;o=t.getValues(r,"proof");const n=r["@context"]||e.SECURITY_CONTEXT_URL;return o=o.map(e=>{const{cryptosuite:t}=e;return t?.includes?.("-jcs-")?e:{"@context":n,...e}}),o}function s(e){Object.defineProperty(e,"toJSON",{value:function(){return i(this)},configurable:!0,writable:!0})}return y=class{async add(e,{suite:o,purpose:i,documentLoader:s}={}){if(!o)throw new TypeError('"options.suite" is required.');if(!i)throw new TypeError('"options.purpose" is required.');s=s?r(s):n;const c={...e};delete c.proof;const p=a({document:e}),u=await o.createProof({document:c,purpose:i,proofSet:p,documentLoader:s});return t.addValue(e,"proof",u),e}async derive(e,{suite:t,purpose:o,documentLoader:i}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!o)throw new TypeError('"options.purpose" is required.');i=i?r(i):n;const s={...e};delete s.proof;const c=a({document:e});return await t.derive({document:s,purpose:o,proofSet:c,documentLoader:i})}async verify(e,{suite:t,purpose:o,documentLoader:i}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!o)throw new TypeError('"options.purpose" is required.');const c=Array.isArray(t)?t:[t];if(0===c.length)throw new TypeError("At least one suite is required.");i=i?r(i):n;try{const t=a({document:e={...e}});if(0===t.length)throw new Error("No matching proofs found in the given document.");delete e.proof;const r=await async function({document:e,suites:t,proofSet:r,purpose:o,documentLoader:n}){const i=Array.isArray(o)?o:[o],a=new Map,c=new Map,p=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])}}}({purposeToProofs:a,proofToSuite:c,purpose:o,proofSet:r,suites:t,suiteMatchQueue:p,document:e,documentLoader:n}))),a.size<i.length)return[];const u=new Map;return await Promise.all([...c.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:u}=await o.verifyProof({proof:t,document:e,purpose:s,proofSet:r,documentLoader:n});a||(a=p),i={proof:t,verified:c,verificationMethod:a,error:u}}catch(e){i={proof:t,verified:!1,error:e}}i.error&&s(i.error),u.set(t,i)})),await Promise.all([...a.entries()].map(async([t,r])=>{for(const o of r){const r=u.get(o);if(!r.verified)continue;const{verificationMethod:i}=r,a=c.get(o);let p;try{p=await t.validate(o,{document:e,suite:a,verificationMethod:i,documentLoader:n})}catch(e){p={valid:!1,error:e}}r.purposeResult?Array.isArray(r.purposeResult)?r.purposeResult.push(p):r.purposeResult=[r.purposeResult,p]:r.purposeResult=p,p.valid||(s(p.error),r.error||(r.verified=!1,r.error=p.error))}})),[...u.values()]}({document:e,suites:c,proofSet:t,purpose:o,documentLoader:i});if(0===r.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 n=r.some(e=>e.verified);if(!n){const e=[].concat(...r.filter(e=>e.error).map(e=>e.error)),t={verified:n,results:r};return e.length>0&&(t.error=e),t}return{verified:n,results:r}}catch(e){return s(e),{verified:!1,error:e}}}},y}
26
+ */function ee(){if(m)return y;m=1;const e=W(),t=o(),{extendContextLoader:r,strictDocumentLoader:n}=Q(),{serializeError:i}=Z();function a({document:r}){let o;o=t.getValues(r,"proof");const n=r["@context"]||e.SECURITY_CONTEXT_URL;return o=o.map(e=>{const{cryptosuite:t}=e;return t?.includes?.("-jcs-")?e:{"@context":n,...e}}),o}function s(e){Object.defineProperty(e,"toJSON",{value:function(){return i(this)},configurable:!0,writable:!0})}return y=class{async add(e,{suite:o,purpose:i,documentLoader:s}={}){if(!o)throw new TypeError('"options.suite" is required.');if(!i)throw new TypeError('"options.purpose" is required.');s=s?r(s):n;const c={...e};delete c.proof;const p=a({document:e}),d=await o.createProof({document:c,purpose:i,proofSet:p,documentLoader:s});return t.addValue(e,"proof",d),e}async derive(e,{suite:t,purpose:o,documentLoader:i}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!o)throw new TypeError('"options.purpose" is required.');i=i?r(i):n;const s={...e};delete s.proof;const c=a({document:e});return await t.derive({document:s,purpose:o,proofSet:c,documentLoader:i})}async verify(e,{suite:t,purpose:o,documentLoader:i}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!o)throw new TypeError('"options.purpose" is required.');const c=Array.isArray(t)?t:[t];if(0===c.length)throw new TypeError("At least one suite is required.");i=i?r(i):n;try{const t=a({document:e={...e}});if(0===t.length)throw new Error("No matching proofs found in the given document.");delete e.proof;const r=await async function({document:e,suites:t,proofSet:r,purpose:o,documentLoader:n}){const i=Array.isArray(o)?o:[o],a=new Map,c=new Map,p=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])}}}({purposeToProofs:a,proofToSuite:c,purpose:o,proofSet:r,suites:t,suiteMatchQueue:p,document:e,documentLoader:n}))),a.size<i.length)return[];const d=new Map;return await Promise.all([...c.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&&s(i.error),d.set(t,i)})),await Promise.all([...a.entries()].map(async([t,r])=>{for(const o of r){const r=d.get(o);if(!r.verified)continue;const{verificationMethod:i}=r,a=c.get(o);let p;try{p=await t.validate(o,{document:e,suite:a,verificationMethod:i,documentLoader:n})}catch(e){p={valid:!1,error:e}}r.purposeResult?Array.isArray(r.purposeResult)?r.purposeResult.push(p):r.purposeResult=[r.purposeResult,p]:r.purposeResult=p,p.valid||(s(p.error),r.error||(r.verified=!1,r.error=p.error))}})),[...d.values()]}({document:e,suites:c,proofSet:t,purpose:o,documentLoader:i});if(0===r.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 n=r.some(e=>e.verified);if(!n){const e=[].concat(...r.filter(e=>e.error).map(e=>e.error)),t={verified:n,results:r};return e.length>0&&(t.error=e),t}return{verified:n,results:r}}catch(e){return s(e),{verified:!1,error:e}}}},y}
27
27
  /*!
28
28
  * Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved.
29
29
  */function te(){return T?v:(T=1,v=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}})}function re(){if(x)return E;x=1;const e={};return E=e,e.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"},e.concat=(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r},E}function oe(){if(_)return L;_=1;const e=W(),t=o(),r=n(),i=re(),{sha256digest:a}=function(){if(S)return b;S=1;const e=self&&(self.crypto||self.msCrypto);return b={async sha256digest({string:t}){const r=(new TextEncoder).encode(t);return new Uint8Array(await e.subtle.digest("SHA-256",r))}}}
30
30
  /*!
31
31
  * Copyright (c) 2017-2024 Digital Bazaar, Inc. All rights reserved.
32
- */(),s=te();return L=class extends s{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 u=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=u.verificationMethod,this.key=u.key,this.signer=u.signer,this.verifier=u.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 a;a=this.proof?{...this.proof}:{},a.type=this.type;let s=this.date;void 0===a.created&&void 0===s&&(s=new Date),s&&"string"!=typeof s&&(s=i.w3cDate(s)),s&&(a.created=s),a.verificationMethod=this.verificationMethod,a=await this.updateProof({document:e,proof:a,proofSet:r,purpose:t,documentLoader:o}),a=await t.update(a,{document:e,suite:this,documentLoader:o});const c=await this.createVerifyData({document:e,proof:a,proofSet:r,documentLoader:o});return a=await this.sign({verifyData:c,document:e,proof:a,documentLoader:o}),a}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:o,expansionMap:n,skipExpansion:i}){if(n)throw new Error('"expansionMap" not supported.');return async function(e,o){const n={rdfDirection:"i18n-datatype",...o,produceGeneralizedRdf:!1};delete n.format;const i=await t.toRDF(e,n);return r.canonize(i,o)}(e,{algorithm:"RDFC-1.0",base:null,format:"application/n-quads",documentLoader:o,safe:!0,skipExpansion:i,useNative:this.useNativeCanonize,...this.canonizeOptions})}async canonizeProof(t,{document:r,documentLoader:o,expansionMap:n}){if(n)throw new Error('"expansionMap" not supported.');return delete(t={"@context":r["@context"]||e.SECURITY_CONTEXT_URL,...t}).jws,delete t.signatureValue,delete t.proofValue,this.canonize(t,{documentLoader:o,expansionMap:n,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:s}=this;s&&s.document===e?n=s.hash:this._hashCache={document:e,hash:n=this.canonize(e,{documentLoader:r,expansionMap:o}).then(e=>a({string:e}))};const[c,p]=await Promise.all([this.canonizeProof(t,{document:e,documentLoader:r,expansionMap:o}).then(e=>a({string:e})),n]);return i.concat(c,p)}async derive(){throw new Error("Must be implemented by a derived class.")}async getVerificationMethod({proof:r,documentLoader:o}){let{verificationMethod:n}=r;if("object"==typeof n&&(n=n.id),!n)throw new Error('No "verificationMethod" found in proof.');const i=await t.frame(n,{"@context":e.SECURITY_CONTEXT_URL,"@embed":"@always",id:n},{documentLoader:o,compactToRelative:!1,safe:!0});if(!i)throw new Error(`Verification method ${n} not found.`);if(void 0!==i.revoked)throw new Error("The verification method has been revoked.");return i}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]}},L}
32
+ */(),s=te();return L=class extends s{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 a;a=this.proof?{...this.proof}:{},a.type=this.type;let s=this.date;void 0===a.created&&void 0===s&&(s=new Date),s&&"string"!=typeof s&&(s=i.w3cDate(s)),s&&(a.created=s),a.verificationMethod=this.verificationMethod,a=await this.updateProof({document:e,proof:a,proofSet:r,purpose:t,documentLoader:o}),a=await t.update(a,{document:e,suite:this,documentLoader:o});const c=await this.createVerifyData({document:e,proof:a,proofSet:r,documentLoader:o});return a=await this.sign({verifyData:c,document:e,proof:a,documentLoader:o}),a}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:o,expansionMap:n,skipExpansion:i}){if(n)throw new Error('"expansionMap" not supported.');return async function(e,o){const n={rdfDirection:"i18n-datatype",...o,produceGeneralizedRdf:!1};delete n.format;const i=await t.toRDF(e,n);return r.canonize(i,o)}(e,{algorithm:"RDFC-1.0",base:null,format:"application/n-quads",documentLoader:o,safe:!0,skipExpansion:i,useNative:this.useNativeCanonize,...this.canonizeOptions})}async canonizeProof(t,{document:r,documentLoader:o,expansionMap:n}){if(n)throw new Error('"expansionMap" not supported.');return delete(t={"@context":r["@context"]||e.SECURITY_CONTEXT_URL,...t}).jws,delete t.signatureValue,delete t.proofValue,this.canonize(t,{documentLoader:o,expansionMap:n,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:s}=this;s&&s.document===e?n=s.hash:this._hashCache={document:e,hash:n=this.canonize(e,{documentLoader:r,expansionMap:o}).then(e=>a({string:e}))};const[c,p]=await Promise.all([this.canonizeProof(t,{document:e,documentLoader:r,expansionMap:o}).then(e=>a({string:e})),n]);return i.concat(c,p)}async derive(){throw new Error("Must be implemented by a derived class.")}async getVerificationMethod({proof:r,documentLoader:o}){let{verificationMethod:n}=r;if("object"==typeof n&&(n=n.id),!n)throw new Error('No "verificationMethod" found in proof.');const i=await t.frame(n,{"@context":e.SECURITY_CONTEXT_URL,"@embed":"@always",id:n},{documentLoader:o,compactToRelative:!1,safe:!0});if(!i)throw new Error(`Verification method ${n} not found.`);if(void 0!==i.revoked)throw new Error("The verification method has been revoked.");return i}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]}},L}
33
33
  /*!
34
34
  * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
35
35
  */function ne(){return R?O:(R=1,O=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}})}
36
36
  /*!
37
37
  * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
38
- */function ie(){if(D)return U;D=1;const e=W(),t=o(),r=ne(),n="https://www.w3.org/ns/did/v1",i=["assertionMethod","authentication","capabilityInvocation","capabilityDelegation","keyAgreement","verificationMethod"];return U=class extends r{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=i.includes(e)}async validate(r,{verificationMethod:o,documentLoader:i,expansionMap:a}){try{const s=await super.validate(r,{verificationMethod:o,documentLoader:i,expansionMap:a});if(!s.valid)throw s.error;const{id:c}=o;if("string"!=typeof c)throw new Error(`Verification method ID "${o.id}" must be a string.`);const{term:p,_termDefinedByDIDContext:u}=this;if(this.controller)s.controller=this.controller;else{const{controller:r}=o;let a;if(r)if("object"==typeof r)a=r.id;else{if("string"!=typeof r)throw new TypeError('"controller" must be a string representing a URL.');a=r}let{document:d}=await i(a);!(u&&d["@context"]===n||Array.isArray(d["@context"])&&d["@context"][0]===n)&&(d=await t.frame(d,{"@context":e.SECURITY_CONTEXT_URL,id:a,[p]:{"@embed":"@never",id:c}},{documentLoader:i,compactToRelative:!1,safe:!0})),s.controller=d}const d=t.getValues(s.controller,p);if(s.valid=d.some(e=>e===c||"object"==typeof e&&e.id===c),!s.valid)throw new Error(`Verification method "${o.id}" not authorized by controller for proof purpose "${this.term}".`);return s}catch(e){return{valid:!1,error:e}}}},U}
38
+ */function ie(){if(D)return U;D=1;const e=W(),t=o(),r=ne(),n="https://www.w3.org/ns/did/v1",i=["assertionMethod","authentication","capabilityInvocation","capabilityDelegation","keyAgreement","verificationMethod"];return U=class extends r{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=i.includes(e)}async validate(r,{verificationMethod:o,documentLoader:i,expansionMap:a}){try{const s=await super.validate(r,{verificationMethod:o,documentLoader:i,expansionMap:a});if(!s.valid)throw s.error;const{id:c}=o;if("string"!=typeof c)throw new Error(`Verification method ID "${o.id}" must be a string.`);const{term:p,_termDefinedByDIDContext:d}=this;if(this.controller)s.controller=this.controller;else{const{controller:r}=o;let a;if(r)if("object"==typeof r)a=r.id;else{if("string"!=typeof r)throw new TypeError('"controller" must be a string representing a URL.');a=r}let{document:u}=await i(a);!(d&&u["@context"]===n||Array.isArray(u["@context"])&&u["@context"][0]===n)&&(u=await t.frame(u,{"@context":e.SECURITY_CONTEXT_URL,id:a,[p]:{"@embed":"@never",id:c}},{documentLoader:i,compactToRelative:!1,safe:!0})),s.controller=u}const u=t.getValues(s.controller,p);if(s.valid=u.some(e=>e===c||"object"==typeof e&&e.id===c),!s.valid)throw new Error(`Verification method "${o.id}" not authorized by controller for proof purpose "${this.term}".`);return s}catch(e){return{valid:!1,error:e}}}},U}
39
39
  /*!
40
40
  * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
41
41
  */function ae(){if(N)return K;N=1;const e=ie();return K=class extends e{constructor({term:e="assertionMethod",controller:t,date:r,maxTimestampDelta:o=1/0}={}){super({term:e,controller:t,date:r,maxTimestampDelta:o})}}}