@blockcerts/blockcerts-verifier 1.71.0 → 1.72.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.
- package/bundle-stats.html +1 -1
- package/dist/{DataIntegrityProof-elCNKq16-DBDuaDNt.js → DataIntegrityProof-CsicZNrL-BkSRjzkI.js} +1 -1
- package/dist/{EcdsaSd2023-B0XPAIp6-K61axvBA.js → EcdsaSd2023-DN9HBdgh-Bc0hVwTd.js} +4 -4
- package/dist/EcdsaSecp256k1Signature2019-C3F03t_M-DAJeMTpu.js +1 -0
- package/dist/{Ed25519Signature2020-BQsESRnS-TKZI_1AX.js → Ed25519Signature2020-CglkQLKN-CQ6lMzyG.js} +2 -2
- package/dist/{EddsaRdfc2022-DQKzWHK4-BILzDBp-.js → EddsaRdfc2022-CfoLi-PP-l7ITLQQT.js} +2 -2
- package/dist/{MerkleProof2017-CYM8CJHB-FYpMvld0.js → MerkleProof2017-B_EJmYja-CYd4dJc1.js} +1 -1
- package/dist/{MerkleProof2019-BLrywo8h-Bo9rH2Eq.js → MerkleProof2019-B7t13hOo-D8n9YrUw.js} +1 -1
- package/dist/{checkCredentialSchemaConformity-CKNtOu_t-B9iaCRUE.js → checkCredentialSchemaConformity-BiggGGMP-Dx992E4t.js} +1 -1
- package/dist/{controlVerificationMethod-B4TgLED0-BGpxLjMq.js → controlVerificationMethod-Bh_-e0Fd-BUCC8ctY.js} +1 -1
- package/dist/{did-key-common.esm-BIftA62j-hVrUMxjy.js → did-key-common.esm-BELyYVSE-Cqrpf7cy.js} +3 -3
- package/dist/{did-key-ed25519.esm-Drn3Y7PF-CqD0ifNk.js → did-key-ed25519.esm-C3GUddDp-BJdBgNDg.js} +1 -1
- package/dist/{did-key-secp256k1.esm-DH-f3o5q-C66E7IxB.js → did-key-secp256k1.esm-D-R266jM-BTxlD5VW.js} +1 -1
- package/dist/downloadPDF-D2qwT_DJ.js +297 -0
- package/dist/{ed25519-key-pair.esm-DPOFpdJ2-BrwuS0Ia.js → ed25519-key-pair.esm-DQF2kkXh-XX5BXBcl.js} +3 -3
- package/dist/{elliptic-BYqApR8Y-CKp7atgR.js → elliptic-6I21PEnR-CsYseRX1.js} +1 -1
- package/dist/{index-BgTFEYQ4-DMaz98iZ.js → index-DXh-XAic-B2gT500V.js} +5 -5
- package/dist/{index-lyuTDW_o-nyi7dklX.js → index-fQcSLZgh-DpptYyN8.js} +1 -1
- package/dist/{index.es-B7xY76Pb.js → index.es-BIiEi3w5.js} +1 -1
- package/dist/{jsonld-signatures-BbILf-Q7-DTp6__ud.js → jsonld-signatures-BbHr1fSN-BSospRuX.js} +5 -5
- package/dist/{keyUtils-ExMI0fmg-NVOmd8LH.js → keyUtils-ue8EY3Op-DoHdKWgN.js} +1 -1
- package/dist/main.js +45 -45
- package/dist/{retrieveVerificationMethodPublicKey-C5Gafl1E-Lv4waRy7.js → retrieveVerificationMethodPublicKey-CLBY4G8P-CagFGnNt.js} +1 -1
- package/dist/verifyIssuerProfile-BaiZaU2c-Zcu1X0PY.js +1 -0
- package/package.json +5 -5
- package/dist/EcdsaSecp256k1Signature2019-BHgoxmKI-DT2qHZod.js +0 -1
- package/dist/downloadPDF-eGAsbwF0.js +0 -346
- package/dist/verifyIssuerProfile-DCJyz3ho-BwuCK9F3.js +0 -1
- /package/dist/{HashlinkVerifier-BsVlaml5-B4Niv2-b.js → HashlinkVerifier-CTG-OS14-B4Niv2-b.js} +0 -0
- /package/dist/{checkRevocationStatusList2021-CMAVXAVE-BEBD8TO8.js → checkRevocationStatusList2021-BDBFhnz6-BEBD8TO8.js} +0 -0
- /package/dist/{elliptic-4aZS_cwf-BpaNaVm0.js → elliptic-mDX7fQQx-BpaNaVm0.js} +0 -0
- /package/dist/{ensureNotRevoked-hGps0prO-DvMIgM4L.js → ensureNotRevoked-Dc6VA2bO-DvMIgM4L.js} +0 -0
- /package/dist/{ensureValidIssuingKey-BMVCi2T2-BdV46XBb.js → ensureValidIssuingKey-wTUvNuDH-BdV46XBb.js} +0 -0
- /package/dist/{index-CQYVZlSE-C0eXpZGn.js → index-BrurC4Vt-C0eXpZGn.js} +0 -0
- /package/dist/{index-BS134367-Dgus2xdV.js → index-Gr4i_Ned-Dgus2xdV.js} +0 -0
- /package/dist/{jsonld-B_Q2jvnp-BJ5uVeOU.js → jsonld-BAMY2WqE-BJ5uVeOU.js} +0 -0
- /package/dist/{sha256-u2xsd4MQ-C1PUWFZm.js → sha256-Bwge_vjI-C1PUWFZm.js} +0 -0
- /package/dist/{webcrypto.es-DpqeDikX-BnVhHKeM.js → webcrypto.es-DptGOl2T-BnVhHKeM.js} +0 -0
- /package/dist/{x25519-Kp6t9B5a-Dh8L0KYb.js → x25519-hG3WOzPe-Dh8L0KYb.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e,e as t}from"./index-DZLKRa_V-D_IQzjvG.js";import{d as r}from"./base64url-Cy03LJLt-vkTPfQOh.js";import{g as i}from"./main.js";import{r as n}from"./elliptic-
|
|
1
|
+
import{d as e,e as t}from"./index-DZLKRa_V-D_IQzjvG.js";import{d as r}from"./base64url-Cy03LJLt-vkTPfQOh.js";import{g as i}from"./main.js";import{r as n}from"./elliptic-mDX7fQQx-BpaNaVm0.js";
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
@@ -9,14 +9,14 @@ const c="ECDSA",u=!0,y="https://w3id.org/security/suites/ecdsa-2019/v1",o="https
|
|
|
9
9
|
/*!
|
|
10
10
|
* Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
|
|
11
11
|
*/
|
|
12
|
-
const D=new Map([[m,{secret:new Uint8Array([48,103,2,1,0,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,4,77,48,75,2,1,1,4,32]),public:new Uint8Array([161,36,3,34,0])}],[d,{secret:new Uint8Array([48,129,132,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,4,109,48,107,2,1,1,4,48]),public:new Uint8Array([161,52,3,50,0])}],[h,{secret:new Uint8Array([48,129,170,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,35,4,129,146,48,129,143,2,1,1,4,66]),public:new Uint8Array([161,70,3,68,0])}],[g,{secret:new Uint8Array([48,129,132,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10,4,109,48,107,2,1,1,4,32]),public:new Uint8Array([161,68,3,66,0])}]]),S=new Map([[m,new Uint8Array([48,57,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,34,0])],[d,new Uint8Array([48,70,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,3,50,0])],[h,new Uint8Array([48,88,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,35,3,68,0])],[g,new Uint8Array([48,86,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10,3,66,0])]]);function
|
|
12
|
+
const D=new Map([[m,{secret:new Uint8Array([48,103,2,1,0,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,4,77,48,75,2,1,1,4,32]),public:new Uint8Array([161,36,3,34,0])}],[d,{secret:new Uint8Array([48,129,132,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,4,109,48,107,2,1,1,4,48]),public:new Uint8Array([161,52,3,50,0])}],[h,{secret:new Uint8Array([48,129,170,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,35,4,129,146,48,129,143,2,1,1,4,66]),public:new Uint8Array([161,70,3,68,0])}],[g,{secret:new Uint8Array([48,129,132,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10,4,109,48,107,2,1,1,4,32]),public:new Uint8Array([161,68,3,66,0])}]]),S=new Map([[m,new Uint8Array([48,57,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,34,0])],[d,new Uint8Array([48,70,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,3,50,0])],[h,new Uint8Array([48,88,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,35,3,68,0])],[g,new Uint8Array([48,86,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10,3,66,0])]]);function $(e){const t=new P.ec("secp256k1");return Uint8Array.from(t.keyFromPublic(e).getPublic(!1,"array"))}async function O({id:t,controller:r,secretKeyMultibase:i,publicKeyMultibase:n,keyAgreement:y=!1}){if(!n)throw new TypeError('The "publicKeyMultibase" property is required.');const o={id:t,controller:r};if(!n||"string"!=typeof n||n[0]!==s)throw new TypeError('"publicKeyMultibase" must be a multibase, base58-encoded string.');const a=e(n.slice(1)),l={name:y?"ECDH":c,namedCurve:j({publicMultikey:a})},p=function({publicMultikey:e}){const t=j({publicMultikey:e});let r=e.subarray(2);t===g&&(r=$(r));return function({curve:e,publicKey:t}){const r=S.get(e),i=new Uint8Array(r.length+t.length);let n=0;return i.set(r,n),n+=r.length,i.set(t,n),i}
|
|
13
13
|
/*!
|
|
14
14
|
* Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
|
|
15
|
-
*/({curve:t,publicKey:r})}({publicMultikey:a}),w=y?[]:["verify"];if(l.namedCurve===g){const{Crypto:e}=await import("./webcrypto.es-
|
|
15
|
+
*/({curve:t,publicKey:r})}({publicMultikey:a}),w=y?[]:["verify"];if(l.namedCurve===g){const{Crypto:e}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js"),t=new e;o.publicKey=await t.subtle.importKey("spki",p,l,u,w)}else o.publicKey=await E.subtle.importKey("spki",p,l,u,w);if(i){if("string"!=typeof i||i[0]!==s)throw new TypeError('"secretKeyMultibase" must be a multibase, base58-encoded string.');const t=e(i.slice(1));!function({secretMultikey:e,publicMultikey:t}){const r=j({publicMultikey:t}),i=x({secretMultikey:e});if(r!==i)throw new Error(`Public key curve ('${r}') does not match secret key curve ('${i}').`)}({secretMultikey:t,publicMultikey:a});const r=function({secretMultikey:e,publicMultikey:t}){const r=x({secretMultikey:e}),i=e.subarray(2),n=t.subarray(2);return function({curve:e,secretKey:t,publicKey:r}){const i=D.get(e);if(!i)throw new Error(`Unsupported curve "${e}".`);e===g&&(r=$(r));const n=new Uint8Array(i.secret.length+t.length+i.public.length+r.length);let c=0;return n.set(i.secret,c),c+=i.secret.length,n.set(t,c),c+=t.length,n.set(i.public,c),c+=i.public.length,n.set(r,c),n}({curve:r,secretKey:i,publicKey:n})}({secretMultikey:t,publicMultikey:a}),n=y?["deriveBits"]:["sign"];if(l.namedCurve===g){const{Crypto:e}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js"),t=new e;o.secretKey=await t.subtle.importKey("pkcs8",r,l,u,n)}else o.secretKey=await E.subtle.importKey("pkcs8",r,l,u,n)}return o}function G({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:i}=e,n=T({curve:i}),c=r(e.x),u=r(e.y),y=new Uint8Array(2+(n+1));!function({curve:e,buffer:t}){if(e===m)t[0]=l[0],t[1]=l[1];else if(e===d)t[0]=p[0],t[1]=p[1];else if(e===h)t[0]=w[0],t[1]=w[1];else{if(e!==g)throw new TypeError(`Unsupported curve "${e}".`);t[0]=a[0],t[1]=a[1]}}({curve:i,buffer:y});const o=u[u.length-1]%2==0;y[2]=o?2:3,y.set(c,y.length-c.length);return s+t(y)}function H({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:i}=e,n=T({curve:i}),c=r(e.d),u=new Uint8Array(2+n);!function({curve:e,buffer:t}){if(e===m)t[0]=f[0],t[1]=f[1];else if(e===d)t[0]=k[0],t[1]=k[1];else if(e===h)t[0]=K[0],t[1]=K[1];else{if(e!==g)throw new TypeError(`Unsupported curve "${e}".`);t[0]=b[0],t[1]=b[1]}}({curve:e.crv,buffer:u}),u.set(c,u.length-c.length);return s+t(u)}const q=new Set(["EcdsaSecp256r1VerificationKey2019","EcdsaSecp384r1VerificationKey2019","EcdsaSecp521r1VerificationKey2019","EcdsaSecp256k1VerificationKey2019"]);async function V({keyPair:e}){if(!q.has(e.type))throw new TypeError(`Unsupported key type "${e.type}".`);if(e["@context"]||(e["@context"]=y),!function({document:e,contextUrl:t}){const r=e["@context"];return r===t||Array.isArray(r)&&r.includes(t)}
|
|
16
16
|
/*!
|
|
17
17
|
* Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
|
|
18
|
-
*/({document:e,contextUrl:y}))throw new TypeError(`Context not supported "${e["@context"]}".`);return{"@context":o,id:e.id,type:"Multikey",controller:e.controller,publicKeyMultibase:e.publicKeyMultibase,secretKeyMultibase:e.secretKeyMultibase}}async function
|
|
18
|
+
*/({document:e,contextUrl:y}))throw new TypeError(`Context not supported "${e["@context"]}".`);return{"@context":o,id:e.id,type:"Multikey",controller:e.controller,publicKeyMultibase:e.publicKeyMultibase,secretKeyMultibase:e.secretKeyMultibase}}async function B(e,t={}){"boolean"==typeof t&&(t={keyAgreement:t});const{keyAgreement:r}=t;let i={...e};if("Multikey"!==i.type){if(i.publicKeyJwk)return async function({jwk:e,secretKey:t=!1}={}){const r={"@context":o,type:"Multikey",publicKeyMultibase:G({jwk:e})};t&&e.d&&(r.secretKeyMultibase=H({jwk:e}));const i=!e.key_ops||e.key_ops.includes("deriveBits");return B(r,i)}({jwk:i.publicKeyJwk,secretKey:!1});if(i.type)return i=await V({keyPair:i}),L({keyPair:i,keyAgreement:r})}return i.type||(i.type="Multikey"),i["@context"]||(i["@context"]=o),i.controller&&!i.id&&(i.id=`${e.controller}#${e.publicKeyMultibase}`),function(e){if(!e||"object"!=typeof e)throw new TypeError('"key" must be an object.');if("Multikey"!==e.type)throw new TypeError('"key" must be a Multikey with type "Multikey".');if(!(e["@context"]===o||Array.isArray(e["@context"])&&e["@context"].includes(o)))throw new TypeError(`"key" must be a Multikey with context "${o}".`)}(i),L({keyPair:i,keyAgreement:r})}async function J({keyPair:e,secretKey:t=!1}={}){e?.publicKey instanceof U||(e=await O(e));const r=t&&!!e.secretKey?e.secretKey:e.publicKey;let i;if(e.publicKey.algorithm.namedCurve===g){const{Crypto:e}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js"),t=new e;i=await t.subtle.exportKey("jwk",r)}else i=await E.subtle.exportKey("jwk",r);return i}async function L({keyPair:e,keyAgreement:t=!1}){e?.publicKey instanceof U||e.publicKey?.algorithm.namedCurve===g||(e=await O(e));const i=async({publicKey:t=!0,secretKey:i=!1,includeContext:n=!0,raw:c=!1}={})=>{if(c){const n=await J({keyPair:e,secretKey:i}),c={};return t&&(c.publicKey=function({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=T({curve:t}),n=r(e.x),c=r(e.y),u=new Uint8Array(i+1),y=c[c.length-1]%2==0;return u[0]=y?2:3,u.set(n,u.length-n.length),u}({jwk:n})),i&&(c.secretKey=function({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=T({curve:t}),n=r(e.d),c=new Uint8Array(i);return c.set(n,c.length-n.length),c}({jwk:n})),c}return async function({keyPair:e,secretKey:t,publicKey:r,includeContext:i}={}){if(!r&&!t)throw new TypeError('Export requires specifying either "publicKey" or "secretKey".');const n=t&&!!e.secretKey,c=n?e.secretKey:e.publicKey;let u;if(c.algorithm.namedCurve===g){const{Crypto:e}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js"),t=new e;u=await t.subtle.exportKey("jwk",c)}else u=await E.subtle.exportKey("jwk",c);const y={};return i&&(y["@context"]=o),y.id=e.id,y.type="Multikey",y.controller=e.controller,r&&(y.publicKeyMultibase=G({jwk:u})),n&&(y.secretKeyMultibase=H({jwk:u})),y}({keyPair:e,publicKey:t,secretKey:i,includeContext:n})},{publicKeyMultibase:n,secretKeyMultibase:u}=await i({publicKey:!0,secretKey:!0,includeContext:!0});return e={...e,publicKeyMultibase:n,secretKeyMultibase:u,keyAgreement:t,export:i,signer(){const{id:t,secretKey:r}=e;
|
|
19
19
|
/*!
|
|
20
20
|
* Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
|
|
21
21
|
*/
|
|
22
|
-
return function({id:e,secretKey:t}){if(!t)throw new Error('"secretKey" is required for signing.');const{namedCurve:r}=t.algorithm,i={name:c,hash:{name:C({curve:r})}};return{algorithm:r,id:e,async sign({data:e}={}){if(r===g){const{Crypto:r}=await import("./webcrypto.es-
|
|
22
|
+
return function({id:e,secretKey:t}){if(!t)throw new Error('"secretKey" is required for signing.');const{namedCurve:r}=t.algorithm,i={name:c,hash:{name:C({curve:r})}};return{algorithm:r,id:e,async sign({data:e}={}){if(r===g){const{Crypto:r}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js"),n=new r;return new Uint8Array(await n.subtle.sign(i,t,e))}return new Uint8Array(await E.subtle.sign(i,t,e))}}}({id:t,secretKey:r})},verifier(){const{id:t,publicKey:r}=e;return function({id:e,publicKey:t}){if(!t)throw new Error('"publicKey" is required for verifying.');const{namedCurve:r}=t.algorithm,i={name:c,hash:{name:C({curve:r})}};return{algorithm:r,id:e,async verify({data:e,signature:n}={}){if(r===g){const{Crypto:r}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js");return(new r).subtle.verify(i,t,n,e)}return E.subtle.verify(i,t,n,e)}}}({id:t,publicKey:r})},async deriveSecret({publicKey:t,remotePublicKey:r}={}){if(r&&t)throw new Error('Only one of "remotePublicKey" and "publicKey" must be given.');if(!e.keyAgreement){const e=Error('"keyAgreement" is not supported by this keypair.');throw e.name="NotSupportedError",e}return async function({localKeyPair:e,remoteKeyPair:t}){if(!e.secretKey){const e=Error('"secretKey" required to derive secret.');throw e.name="NotSupportedError",e}e=await O({...e,keyAgreement:!0}),t=await O({...t,keyAgreement:!0});const{namedCurve:r}=e.secretKey.algorithm,i=T({curve:r});if(r===g){const{Crypto:n}=await import("./webcrypto.es-DptGOl2T-BnVhHKeM.js"),c=new n,u=await c.subtle.deriveBits({name:"ECDH",namedCurve:r,public:t.publicKey},e.secretKey,8*i);return new Uint8Array(u,0,i)}const n=await E.subtle.deriveBits({name:"ECDH",namedCurve:r,public:t.publicKey},e.secretKey,8*i);return new Uint8Array(n,0,i)}({localKeyPair:this,remoteKeyPair:r||t})}}}export{B as f,J as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r,q as e,v as o,w as t}from"./main.js";import{a as n}from"./elliptic-
|
|
1
|
+
import{g as r,q as e,v as o,w as t}from"./main.js";import{a as n}from"./elliptic-mDX7fQQx-BpaNaVm0.js";import{r as f}from"./elliptic-6I21PEnR-CsYseRX1.js";var a,u=e(o),i=e(t),m={exports:{}};function s(){return a||(a=1,function(r,e){var o=n,t=o.Buffer;function f(r,e){for(var o in r)e[o]=r[o]}function a(r,e,o){return t(r,e,o)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?r.exports=o:(f(o,e),e.Buffer=a),a.prototype=Object.create(t.prototype),f(t,a),a.from=function(r,e,o){if("number"==typeof r)throw new TypeError("Argument must not be a number");return t(r,e,o)},a.alloc=function(r,e,o){if("number"!=typeof r)throw new TypeError("Argument must be a number");var n=t(r);return void 0!==e?"string"==typeof o?n.fill(e,o):n.fill(e):n.fill(0),n},a.allocUnsafe=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return t(r)},a.allocUnsafeSlow=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return o.SlowBuffer(r)}}(m,m.exports)),m.exports}var l=r(f());export{i as a,s as b,l as c,u as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,_ as e,g as r}from"./downloadPDF-eGAsbwF0.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.41.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.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..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={};function Di(){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,Li.f=Object.getOwnPropertySymbols),Li),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 ji(){if(wr)return br;wr=1;var t=ne(),e=Di(),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 Bi(){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 zi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=ji(),o=Bi();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 Ui(){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 Fi(){if(Nr)return Er;Nr=1;var t=Ui();return Er="NODE"===t}function Hi(){if(Vr)return _r;Vr=1;var t=vt();return _r=function(e){return t(e)||null===e}}function Xi(){if(kr)return Ir;kr=1;var t=Hi(),e=String,r=TypeError;return Ir=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function Yi(){if(Dr)return Lr;Dr=1;var t=function(){if(Rr)return Mr;Rr=1;var t=ht(),e=At();return Mr=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=Xi();return Lr=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),Lr}function Wi(){if(Br)return jr;Br=1;var t=we().f,e=ne(),r=se()("toStringTag");return jr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function qi(){if(Ur)return zr;Ur=1;var t=Xe(),e=we();return zr=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 $i(){if(Hr)return Fr;Hr=1;var t=yt(),e=qi(),r=se(),i=y(),n=r("species");return Fr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Gi(){if(Yr)return Xr;Yr=1;var t=mt(),e=TypeError;return Xr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Qi(){if(Gr)return $r;Gr=1;var t=function(){if(qr)return Wr;qr=1;var t={};return t[se()("toStringTag")]="z",Wr="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return $r=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},$r}function Zi(){if(Zr)return Qr;Zr=1;var t=ht(),e=v(),r=dt(),i=Qi(),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,Qr=!o||e((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?f:l}function Ki(){if(Jr)return Kr;Jr=1;var t=Zi(),e=Ot(),r=TypeError;return Kr=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function Ji(){if(ei)return ti;ei=1;var t=be(),e=Ki(),r=ft(),i=se()("species");return ti=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ti}function tn(){if(ii)return ri;ii=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ri="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ri}function en(){if(ai)return ni;ai=1;var t=ct(),e=ht();return ni=function(r){if("Function"===t(r))return e(r)}}function rn(){if(oi)return si;oi=1;var t=en(),e=At(),r=m(),i=t(t.bind);return si=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},si}function nn(){if(hi)return ui;hi=1;var t=yt();return ui=t("document","documentElement")}function an(){if(li)return ci;li=1;var t=ht();return ci=t([].slice)}function sn(){if(gi)return fi;gi=1;var t=TypeError;return fi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function on(){if(di)return pi;di=1;var t=xt();return pi=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function un(){if(yi)return vi;yi=1;var t,e,r,i,n=s(),a=tn(),o=rn(),u=dt(),h=ne(),c=v(),l=nn(),f=an(),g=ue(),p=sn(),d=on(),y=Fi(),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)}),vi={set:m,clear:x}}function hn(){if(xi)return mi;xi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return mi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function cn(){if(wi)return bi;wi=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}},bi=t}function ln(){if(Pi)return Ci;Pi=1;var t,e,r,i,n,a=s(),o=hn(),u=rn(),h=un().set,c=cn(),l=on(),f=function(){if(Ti)return Si;Ti=1;var t=xt();return Si=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/web0s(?!.*chrome)/i.test(t)}(),p=Fi(),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 Ci=x}function fn(){return Ni||(Ni=1,Ei=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Ei}function gn(){return Ri?Mi:(Ri=1,Mi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function pn(){if(Vi)return _i;Vi=1;var t=s();return _i=t.Promise}function dn(){if(ki)return Ii;ki=1;var t=s(),e=pn(),r=dt(),i=Bi(),n=ze(),a=se(),o=Ui(),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 Ii={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var vn,yn,mn={};function xn(){if(vn)return mn;vn=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 mn.f=function(t){return new r(t)},mn}var bn,wn,Sn,Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn={};function jn(){return wn?bn:(wn=1,bn={})}function Bn(){if(Tn)return Sn;Tn=1;var t=se(),e=jn(),r=t("iterator"),i=Array.prototype;return Sn=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function zn(){if(An)return On;An=1;var t=Qi(),e=Ct(),r=ft(),i=jn(),n=se()("iterator");return On=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Un(){if(Pn)return Cn;Pn=1;var t=x(),e=At(),r=be(),i=Ot(),n=zn(),a=TypeError;return Cn=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")},Cn}function Fn(){if(Nn)return En;Nn=1;var t=x(),e=be(),r=Ct();return En=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 Hn(){if(Rn)return Mn;Rn=1;var t=rn(),e=x(),r=be(),i=Ot(),n=Bn(),a=gr(),s=mt(),o=Un(),u=zn(),h=Fn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Mn=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){return v&&h(v,"normal",t),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;){try{b=M(S.value)}catch(t){h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Mn}function Xn(){if(Vn)return _n;Vn=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 _n=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 Yn(){if(kn)return In;kn=1;var t=pn(),e=Xn(),r=dn().CONSTRUCTOR;return In=r||!e((function(e){t.all(e).then(void 0,(function(){}))}))}var Wn,qn={};var $n,Gn={};var Qn,Zn={};var Kn,Jn,ta,ea,ra={};function ia(){if(Jn)return Kn;Jn=1;var t=be(),e=vt(),r=xn();return Kn=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 na(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 aa(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){na(a,i,n,s,o,"next",t)}function o(t){na(a,i,n,s,o,"throw",t)}s(void 0)}))}}ea||(ea=1,function(){if(yn)return a;yn=1;var t,e,r,i=zi(),n=Jt(),o=Fi(),u=s(),h=x(),c=Ye(),l=Yi(),f=Wi(),g=$i(),p=At(),d=dt(),v=vt(),y=Gi(),m=Ji(),b=un().set,w=ln(),S=fn(),T=gn(),O=cn(),A=He(),C=pn(),P=dn(),E=xn(),N="Promise",M=P.CONSTRUCTOR,R=P.REJECTION_EVENT,_=P.SUBCLASSING,V=A.getterFor(N),I=A.set,k=C&&C.prototype,L=C,D=k,j=u.TypeError,B=u.document,z=u.process,U=E.f,F=U,H=!!(B&&B.createEvent&&u.dispatchEvent),X="unhandledrejection",Y=function(t){var e;return!(!v(t)||!d(e=t.then))&&e},W=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?c(new j("Promise-chain cycle")):(i=Y(r))?h(i,r,u,c):u(r)):c(a)}catch(t){l&&!n&&l.exit(),c(t)}},q=function(t,e){t.notified||(t.notified=!0,w((function(){for(var r,i=t.reactions;r=i.get();)W(r,t);t.notified=!1,e&&!t.rejection&&G(t)})))},$=function(t,e,r){var i,n;H?((i=B.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:r},!R&&(n=u["on"+t])?n(i):t===X&&S("Unhandled promise rejection",r)},G=function(t){h(b,u,(function(){var e,r=t.facade,i=t.value;if(Q(t)&&(e=T((function(){o?z.emit("unhandledRejection",i,r):$(X,r,i)})),t.rejection=o||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){h(b,u,(function(){var e=t.facade;o?z.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(i){t(e,i,r)}},J=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var i=Y(e);i?w((function(){var r={done:!1};try{h(i,e,K(tt,r,t),K(J,r,t))}catch(e){J(r,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(D=(L=function(e){y(this,D),p(e),h(t,this);var r=V(this);try{e(K(tt,r),K(J,r))}catch(t){J(r,t)}}).prototype,(t=function(t){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=c(D,"then",(function(t,e){var r=V(this),i=U(m(this,L));return r.parent=!0,i.ok=!d(t)||t,i.fail=d(e)&&e,i.domain=o?z.domain:void 0,0===r.state?r.reactions.add(i):w((function(){W(i,r)})),i.promise})),e=function(){var e=new t,r=V(e);this.promise=e,this.resolve=K(tt,r),this.reject=K(J,r)},E.f=U=function(t){return t===L||void 0===t?new e(t):F(t)},!n&&d(C)&&k!==Object.prototype)){r=k.then,_||c(k,"then",(function(t,e){var i=this;return new L((function(t,e){h(r,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete k.constructor}catch(t){}l&&l(k,D)}i({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:L}),f(L,N,!1,!0),g(N)}(),function(){if(Ln)return Dn;Ln=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{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(Wn)return qn;Wn=1;var t=zi(),e=Jt(),r=dn().CONSTRUCTOR,i=pn(),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($n)return Gn;$n=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{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(Qn)return Zn;Qn=1;var t=zi(),e=xn();t({target:"Promise",stat:!0,forced:dn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ta)return ra;ta=1;var t=zi(),e=yt(),r=Jt(),i=pn(),n=dn().CONSTRUCTOR,a=ia(),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 sa,oa,ua,ha,ca,la,fa={},ga={};function pa(){if(oa)return sa;oa=1;var t=Qi(),e=String;return sa=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function da(){if(ha)return ua;ha=1;var t=be();return ua=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 va(){if(la)return ca;la=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 ca={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ya,ma,xa,ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja={};function Ba(){if(ma)return ya;ma=1;var t=dr(),e=vr();return ya=Object.keys||function(r){return t(r,e)},ya}function za(){if(wa)return ba;wa=1;var t,e=be(),r=function(){if(xa)return ja;xa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Ba();return ja.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},ja}(),i=vr(),n=Fe(),a=nn(),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,ba=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)},ba}function Ua(){if(Pa)return Ca;Pa=1;var t,e,r=x(),i=ht(),n=pa(),a=da(),o=va(),u=re(),h=za(),c=He().get,l=function(){if(Ta)return Sa;Ta=1;var t=v(),e=s().RegExp;return Sa=t((function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))}(),f=function(){if(Aa)return Oa;Aa=1;var t=v(),e=s().RegExp;return Oa=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];return(S||O||T||l||f)&&(d=function(t){var e,i,s,o,u,l,f,v=this,x=c(v),A=n(t),C=x.raw;if(C)return C.lastIndex=v.lastIndex,e=r(d,C,A),v.lastIndex=C.lastIndex,e;var P=x.groups,E=T&&v.sticky,N=r(a,v),M=v.source,R=0,_=A;if(E&&(N=b(N,"y",""),-1===m(N,"g")&&(N+="g"),_=w(A,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==y(A,v.lastIndex-1))&&(M="(?: "+M+")",_=" "+_,R++),i=new RegExp("^(?:"+M+")",N)),O&&(i=new RegExp("^"+M+"$(?!\\s)",N)),S&&(s=v.lastIndex),o=r(p,E?i:v,_),E?o?(o.input=w(o.input,R),o[0]=w(o[0],R),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:s),O&&o&&o.length>1&&r(g,o[0],i,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&P)for(o.groups=l=h(null),u=0;u<P.length;u++)l[(f=P[u])[0]]=o[f[1]];return o}),Ca=d}function Fa(){if(Ma)return Na;Ma=1,function(){if(Ea)return ga;Ea=1;var t=zi(),e=Ua();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=Ua(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return Na=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/;return"split"===u&&((e={}).constructor={},e.constructor[s]=function(){return e},e.flags="",e[f]=/./[f]),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)},Na}function Ha(){if(Ia)return Va;Ia=1;var t=function(){if(_a)return Ra;_a=1;var t=ht(),e=cr(),r=pa(),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 Ra={codeAt:o(!1),charAt:o(!0)}}().charAt;return Va=function(e,r,i){return r+(i?t(e,r).length:1)},Va}function Xa(){if(La)return ka;La=1;var t=x(),e=be(),r=dt(),i=ct(),n=Ua(),a=TypeError;return ka=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(Da)return fa;Da=1;var t=x(),e=Fa(),r=be(),i=ft(),n=fr(),a=pa(),s=gt(),o=Ct(),u=Ha(),h=Xa();e("match",(function(e,c,l){return[function(r){var n=s(this),u=i(r)?void 0:o(r,e);return u?t(u,r,n):new RegExp(r)[e](a(n))},function(t){var e=r(this),i=a(t),s=l(c,e,i);if(s.done)return s.value;if(!e.global)return h(e,i);var o=e.unicode;e.lastIndex=0;for(var f,g=[],p=0;null!==(f=h(e,i));){var d=a(f[0]);g[p]=d,""===d&&(e.lastIndex=u(i,n(e.lastIndex),o)),p++}return 0===p?null:g}]}))}();var Ya,Wa,qa,$a={};function Ga(){if(Wa)return Ya;Wa=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 Ya=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}))},Ya}!function(){if(qa)return $a;qa=1;var t=tn(),e=x(),r=ht(),i=Fa(),n=v(),a=be(),s=dt(),o=ft(),u=cr(),h=fr(),c=pa(),l=gt(),f=Ha(),g=Ct(),p=Ga(),d=Xa(),y=se()("replace"),m=Math.max,b=Math.min,w=r([].concat),S=r([].push),T=r("".indexOf),O=r("".slice),A="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");i("replace",(function(r,i,n){var v=C?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?void 0:g(t,y);return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e);if("string"==typeof r&&-1===T(r,v)&&-1===T(r,"$<")){var g=n(i,o,l,r);if(g.done)return g.value}var y=s(r);y||(r=c(r));var x,A=o.global;A&&(x=o.unicode,o.lastIndex=0);for(var C,P=[];null!==(C=d(o,l))&&(S(P,C),A);){""===c(C[0])&&(o.lastIndex=f(l,h(o.lastIndex),x))}for(var E,N="",M=0,R=0;R<P.length;R++){for(var _,V=c((C=P[R])[0]),I=m(b(u(C.index),l.length),0),k=[],L=1;L<C.length;L++)S(k,void 0===(E=C[L])?E:String(E));var D=C.groups;if(y){var j=w([V],k,I,l);void 0!==D&&S(j,D),_=c(t(r,void 0,j))}else _=p(V,l,I,k,D,r);I>=M&&(N+=O(l,M,I)+_,M=I+V.length)}return N+O(l,M)}]}),!!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!A||C)}();var Qa,Za,Ka,Ja,ts,es,rs,is,ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs={};function bs(){if(Ja)return Ka;Ja=1;var t=function(){if(Za)return Qa;Za=1;var t=vt(),e=ct(),r=se()("match");return Qa=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return Ka=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function ws(){if(es)return ts;es=1;var t=se()("match");return ts=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ss(){if(ns)return is;ns=1;var t=se(),e=za(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),is=function(t){n[i][t]=!0}}function Ts(){if(us)return os;us=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ss)return as;ss=1;var t=v();return as=!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 os=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},os}function Os(){if(cs)return hs;cs=1;var t,e,r,i=v(),n=dt(),a=vt(),s=za(),o=Ts(),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})),hs={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function As(){if(ps)return gs;ps=1;var t=zi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(fs)return ls;fs=1;var t=Os().IteratorPrototype,e=za(),r=ut(),i=Wi(),n=jn(),a=function(){return this};return ls=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=Ts(),o=Yi(),u=Wi(),h=Se(),c=Ye(),l=se(),f=jn(),g=Os(),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 gs=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 Cs(){return vs?ds:(vs=1,ds=function(t,e){return{value:t,done:e}})}function Ps(){if(ms)return ys;ms=1;var t=pt(),e=Ss(),r=jn(),i=He(),n=we().f,a=As(),s=Cs(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);ys=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 ys}!function(){if(rs)return xs;rs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),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=n(l(arguments.length>1?arguments[1]:void 0,e.length)),i=a(t);return c(e,r,r+i.length)===i}})}(),Ps();var Es,Ns,Ms,Rs,_s,Vs={};function Is(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 ks(t,e,r){return(e=Is(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(_s)return Vs;_s=1;var t=s(),e=Ns?Es:(Ns=1,Es={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(Rs)return Ms;Rs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Ms=e===Object.prototype?void 0:e}(),i=Ps(),n=Se(),a=Wi(),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 Ls,Ds,js,Bs,zs,Us={};function Fs(){if(Bs)return js;Bs=1;var t=v();return js=function(e,r){var i=[][e];return!!i&&t((function(){i.call(null,r||function(){return 1},1)}))}}!function(){if(zs)return Us;zs=1;var t=zi(),e=function(){if(Ds)return Ls;Ds=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 Ls={left:s(!1),right:s(!0)}}().left,r=Fs(),i=bt();t({target:"Array",proto:!0,forced:!Fi()&&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 Hs,Xs={};!function(){if(Hs)return Xs;Hs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),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=arguments.length>1?arguments[1]:void 0,i=e.length,u=void 0===r?i:l(n(r),i),h=a(t);return c(e,u-h.length,u)===h}})}();var Ys,Ws={};!function(){if(Ys)return Ws;Ys=1;var t=x(),e=ht(),r=Fa(),i=be(),n=ft(),a=gt(),s=Ji(),o=Ha(),u=fr(),h=pa(),c=Ct(),l=Xa(),f=va(),g=v(),p=f.UNSUPPORTED_Y,d=Math.min,y=e([].push),m=e("".slice),b=!g((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]})),w="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,f){var g="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)?void 0:c(r,e);return o?t(o,r,s,i):t(g,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!w){var c=f(g,n,a,e,g!==r);if(c.done)return c.value}var v=s(n,RegExp),x=n.unicode,b=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(p?"g":"y"),S=new v(p?"^(?:"+n.source+")":n,b),T=void 0===e?4294967295:e>>>0;if(0===T)return[];if(0===a.length)return null===l(S,a)?[a]:[];for(var O=0,A=0,C=[];A<a.length;){S.lastIndex=p?0:A;var P,E=l(S,p?m(a,A):a);if(null===E||(P=d(u(S.lastIndex+(p?A:0)),a.length))===O)A=o(a,A,x);else{if(y(C,m(a,O,A)),C.length===T)return C;for(var N=1;N<=E.length-1;N++)if(y(C,E[N]),C.length===T)return C;A=O=P}}return y(C,m(a,O)),C}]}),w||!b,p)}();var qs,$s,Gs={exports:{}},Qs={exports:{}},Zs=Qs.exports;var Ks,Js,to,eo,ro,io,no,ao,so,oo=function(){if($s)return Gs.exports;$s=1;for(var e=(qs||(qs=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?Qs.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Qs.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?(Qs.exports=function(){return Date.now()-r},r=Date.now()):(Qs.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(Zs)),Qs.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 Gs.exports=function(t){return a.call(r,t)},Gs.exports.cancel=function(){s.apply(r,arguments)},Gs.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},Gs.exports}(),uo=r(oo),ho={};function co(){return Js?Ks:(Js=1,Ks="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(no)return ho;no=1;var t=zi(),e=function(){if(eo)return to;eo=1;var t=ht(),e=gt(),r=pa(),i=co(),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 to={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(io)return ro;io=1;var t=Be().PROPER,e=v(),r=co();return ro=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 lo,fo=(so||(so=1,ao=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}}),ao),go=r(fo),po={};!function(){if(lo)return po;lo=1;var t=zi(),e=en(),r=pr().indexOf,i=Fs(),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 vo,yo={};!function(){if(vo)return yo;vo=1;var t=zi(),e=ht(),r=bs(),i=gt(),n=pa(),a=ws(),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 mo,xo,bo,wo={};function So(){if(xo)return mo;xo=1;var t=ct();return mo=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(bo)return wo;bo=1;var t=zi(),e=ht(),r=So(),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-D2qwT_DJ.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.41.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.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..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={};function Di(){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,Li.f=Object.getOwnPropertySymbols),Li),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 ji(){if(wr)return br;wr=1;var t=ne(),e=Di(),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 Bi(){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 zi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=ji(),o=Bi();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 Ui(){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 Fi(){if(Nr)return Er;Nr=1;var t=Ui();return Er="NODE"===t}function Hi(){if(Vr)return _r;Vr=1;var t=vt();return _r=function(e){return t(e)||null===e}}function Xi(){if(kr)return Ir;kr=1;var t=Hi(),e=String,r=TypeError;return Ir=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function Yi(){if(Dr)return Lr;Dr=1;var t=function(){if(Rr)return Mr;Rr=1;var t=ht(),e=At();return Mr=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=Xi();return Lr=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),Lr}function Wi(){if(Br)return jr;Br=1;var t=we().f,e=ne(),r=se()("toStringTag");return jr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function qi(){if(Ur)return zr;Ur=1;var t=Xe(),e=we();return zr=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 $i(){if(Hr)return Fr;Hr=1;var t=yt(),e=qi(),r=se(),i=y(),n=r("species");return Fr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Gi(){if(Yr)return Xr;Yr=1;var t=mt(),e=TypeError;return Xr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Qi(){if(Gr)return $r;Gr=1;var t=function(){if(qr)return Wr;qr=1;var t={};return t[se()("toStringTag")]="z",Wr="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return $r=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},$r}function Zi(){if(Zr)return Qr;Zr=1;var t=ht(),e=v(),r=dt(),i=Qi(),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,Qr=!o||e((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?f:l}function Ki(){if(Jr)return Kr;Jr=1;var t=Zi(),e=Ot(),r=TypeError;return Kr=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function Ji(){if(ei)return ti;ei=1;var t=be(),e=Ki(),r=ft(),i=se()("species");return ti=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ti}function tn(){if(ii)return ri;ii=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ri="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ri}function en(){if(ai)return ni;ai=1;var t=ct(),e=ht();return ni=function(r){if("Function"===t(r))return e(r)}}function rn(){if(oi)return si;oi=1;var t=en(),e=At(),r=m(),i=t(t.bind);return si=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},si}function nn(){if(hi)return ui;hi=1;var t=yt();return ui=t("document","documentElement")}function an(){if(li)return ci;li=1;var t=ht();return ci=t([].slice)}function sn(){if(gi)return fi;gi=1;var t=TypeError;return fi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function on(){if(di)return pi;di=1;var t=xt();return pi=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function un(){if(yi)return vi;yi=1;var t,e,r,i,n=s(),a=tn(),o=rn(),u=dt(),h=ne(),c=v(),l=nn(),f=an(),g=ue(),p=sn(),d=on(),y=Fi(),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)}),vi={set:m,clear:x}}function hn(){if(xi)return mi;xi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return mi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function cn(){if(wi)return bi;wi=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}},bi=t}function ln(){if(Pi)return Ci;Pi=1;var t,e,r,i,n,a=s(),o=hn(),u=rn(),h=un().set,c=cn(),l=on(),f=function(){if(Ti)return Si;Ti=1;var t=xt();return Si=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/web0s(?!.*chrome)/i.test(t)}(),p=Fi(),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 Ci=x}function fn(){return Ni||(Ni=1,Ei=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Ei}function gn(){return Ri?Mi:(Ri=1,Mi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function pn(){if(Vi)return _i;Vi=1;var t=s();return _i=t.Promise}function dn(){if(ki)return Ii;ki=1;var t=s(),e=pn(),r=dt(),i=Bi(),n=ze(),a=se(),o=Ui(),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 Ii={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var vn,yn,mn={};function xn(){if(vn)return mn;vn=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 mn.f=function(t){return new r(t)},mn}var bn,wn,Sn,Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn={};function jn(){return wn?bn:(wn=1,bn={})}function Bn(){if(Tn)return Sn;Tn=1;var t=se(),e=jn(),r=t("iterator"),i=Array.prototype;return Sn=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function zn(){if(An)return On;An=1;var t=Qi(),e=Ct(),r=ft(),i=jn(),n=se()("iterator");return On=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Un(){if(Pn)return Cn;Pn=1;var t=x(),e=At(),r=be(),i=Ot(),n=zn(),a=TypeError;return Cn=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")},Cn}function Fn(){if(Nn)return En;Nn=1;var t=x(),e=be(),r=Ct();return En=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 Hn(){if(Rn)return Mn;Rn=1;var t=rn(),e=x(),r=be(),i=Ot(),n=Bn(),a=gr(),s=mt(),o=Un(),u=zn(),h=Fn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Mn=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){return v&&h(v,"normal",t),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;){try{b=M(S.value)}catch(t){h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Mn}function Xn(){if(Vn)return _n;Vn=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 _n=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 Yn(){if(kn)return In;kn=1;var t=pn(),e=Xn(),r=dn().CONSTRUCTOR;return In=r||!e((function(e){t.all(e).then(void 0,(function(){}))}))}var Wn,qn={};var $n,Gn={};var Qn,Zn={};var Kn,Jn,ta,ea,ra={};function ia(){if(Jn)return Kn;Jn=1;var t=be(),e=vt(),r=xn();return Kn=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 na(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 aa(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){na(a,i,n,s,o,"next",t)}function o(t){na(a,i,n,s,o,"throw",t)}s(void 0)}))}}ea||(ea=1,function(){if(yn)return a;yn=1;var t,e,r,i=zi(),n=Jt(),o=Fi(),u=s(),h=x(),c=Ye(),l=Yi(),f=Wi(),g=$i(),p=At(),d=dt(),v=vt(),y=Gi(),m=Ji(),b=un().set,w=ln(),S=fn(),T=gn(),O=cn(),A=He(),C=pn(),P=dn(),E=xn(),N="Promise",M=P.CONSTRUCTOR,R=P.REJECTION_EVENT,_=P.SUBCLASSING,V=A.getterFor(N),I=A.set,k=C&&C.prototype,L=C,D=k,j=u.TypeError,B=u.document,z=u.process,U=E.f,F=U,H=!!(B&&B.createEvent&&u.dispatchEvent),X="unhandledrejection",Y=function(t){var e;return!(!v(t)||!d(e=t.then))&&e},W=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?c(new j("Promise-chain cycle")):(i=Y(r))?h(i,r,u,c):u(r)):c(a)}catch(t){l&&!n&&l.exit(),c(t)}},q=function(t,e){t.notified||(t.notified=!0,w((function(){for(var r,i=t.reactions;r=i.get();)W(r,t);t.notified=!1,e&&!t.rejection&&G(t)})))},$=function(t,e,r){var i,n;H?((i=B.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:r},!R&&(n=u["on"+t])?n(i):t===X&&S("Unhandled promise rejection",r)},G=function(t){h(b,u,(function(){var e,r=t.facade,i=t.value;if(Q(t)&&(e=T((function(){o?z.emit("unhandledRejection",i,r):$(X,r,i)})),t.rejection=o||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){h(b,u,(function(){var e=t.facade;o?z.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(i){t(e,i,r)}},J=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var i=Y(e);i?w((function(){var r={done:!1};try{h(i,e,K(tt,r,t),K(J,r,t))}catch(e){J(r,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(D=(L=function(e){y(this,D),p(e),h(t,this);var r=V(this);try{e(K(tt,r),K(J,r))}catch(t){J(r,t)}}).prototype,(t=function(t){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=c(D,"then",(function(t,e){var r=V(this),i=U(m(this,L));return r.parent=!0,i.ok=!d(t)||t,i.fail=d(e)&&e,i.domain=o?z.domain:void 0,0===r.state?r.reactions.add(i):w((function(){W(i,r)})),i.promise})),e=function(){var e=new t,r=V(e);this.promise=e,this.resolve=K(tt,r),this.reject=K(J,r)},E.f=U=function(t){return t===L||void 0===t?new e(t):F(t)},!n&&d(C)&&k!==Object.prototype)){r=k.then,_||c(k,"then",(function(t,e){var i=this;return new L((function(t,e){h(r,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete k.constructor}catch(t){}l&&l(k,D)}i({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:L}),f(L,N,!1,!0),g(N)}(),function(){if(Ln)return Dn;Ln=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{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(Wn)return qn;Wn=1;var t=zi(),e=Jt(),r=dn().CONSTRUCTOR,i=pn(),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($n)return Gn;$n=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{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(Qn)return Zn;Qn=1;var t=zi(),e=xn();t({target:"Promise",stat:!0,forced:dn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ta)return ra;ta=1;var t=zi(),e=yt(),r=Jt(),i=pn(),n=dn().CONSTRUCTOR,a=ia(),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 sa,oa,ua,ha,ca,la,fa={},ga={};function pa(){if(oa)return sa;oa=1;var t=Qi(),e=String;return sa=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function da(){if(ha)return ua;ha=1;var t=be();return ua=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 va(){if(la)return ca;la=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 ca={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ya,ma,xa,ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja={};function Ba(){if(ma)return ya;ma=1;var t=dr(),e=vr();return ya=Object.keys||function(r){return t(r,e)},ya}function za(){if(wa)return ba;wa=1;var t,e=be(),r=function(){if(xa)return ja;xa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Ba();return ja.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},ja}(),i=vr(),n=Fe(),a=nn(),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,ba=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)},ba}function Ua(){if(Pa)return Ca;Pa=1;var t,e,r=x(),i=ht(),n=pa(),a=da(),o=va(),u=re(),h=za(),c=He().get,l=function(){if(Ta)return Sa;Ta=1;var t=v(),e=s().RegExp;return Sa=t((function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))}(),f=function(){if(Aa)return Oa;Aa=1;var t=v(),e=s().RegExp;return Oa=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];return(S||O||T||l||f)&&(d=function(t){var e,i,s,o,u,l,f,v=this,x=c(v),A=n(t),C=x.raw;if(C)return C.lastIndex=v.lastIndex,e=r(d,C,A),v.lastIndex=C.lastIndex,e;var P=x.groups,E=T&&v.sticky,N=r(a,v),M=v.source,R=0,_=A;if(E&&(N=b(N,"y",""),-1===m(N,"g")&&(N+="g"),_=w(A,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==y(A,v.lastIndex-1))&&(M="(?: "+M+")",_=" "+_,R++),i=new RegExp("^(?:"+M+")",N)),O&&(i=new RegExp("^"+M+"$(?!\\s)",N)),S&&(s=v.lastIndex),o=r(p,E?i:v,_),E?o?(o.input=w(o.input,R),o[0]=w(o[0],R),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:s),O&&o&&o.length>1&&r(g,o[0],i,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&P)for(o.groups=l=h(null),u=0;u<P.length;u++)l[(f=P[u])[0]]=o[f[1]];return o}),Ca=d}function Fa(){if(Ma)return Na;Ma=1,function(){if(Ea)return ga;Ea=1;var t=zi(),e=Ua();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=Ua(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return Na=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/;return"split"===u&&((e={}).constructor={},e.constructor[s]=function(){return e},e.flags="",e[f]=/./[f]),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)},Na}function Ha(){if(Ia)return Va;Ia=1;var t=function(){if(_a)return Ra;_a=1;var t=ht(),e=cr(),r=pa(),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 Ra={codeAt:o(!1),charAt:o(!0)}}().charAt;return Va=function(e,r,i){return r+(i?t(e,r).length:1)},Va}function Xa(){if(La)return ka;La=1;var t=x(),e=be(),r=dt(),i=ct(),n=Ua(),a=TypeError;return ka=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(Da)return fa;Da=1;var t=x(),e=Fa(),r=be(),i=ft(),n=fr(),a=pa(),s=gt(),o=Ct(),u=Ha(),h=Xa();e("match",(function(e,c,l){return[function(r){var n=s(this),u=i(r)?void 0:o(r,e);return u?t(u,r,n):new RegExp(r)[e](a(n))},function(t){var e=r(this),i=a(t),s=l(c,e,i);if(s.done)return s.value;if(!e.global)return h(e,i);var o=e.unicode;e.lastIndex=0;for(var f,g=[],p=0;null!==(f=h(e,i));){var d=a(f[0]);g[p]=d,""===d&&(e.lastIndex=u(i,n(e.lastIndex),o)),p++}return 0===p?null:g}]}))}();var Ya,Wa,qa,$a={};function Ga(){if(Wa)return Ya;Wa=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 Ya=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}))},Ya}!function(){if(qa)return $a;qa=1;var t=tn(),e=x(),r=ht(),i=Fa(),n=v(),a=be(),s=dt(),o=ft(),u=cr(),h=fr(),c=pa(),l=gt(),f=Ha(),g=Ct(),p=Ga(),d=Xa(),y=se()("replace"),m=Math.max,b=Math.min,w=r([].concat),S=r([].push),T=r("".indexOf),O=r("".slice),A="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");i("replace",(function(r,i,n){var v=C?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?void 0:g(t,y);return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e);if("string"==typeof r&&-1===T(r,v)&&-1===T(r,"$<")){var g=n(i,o,l,r);if(g.done)return g.value}var y=s(r);y||(r=c(r));var x,A=o.global;A&&(x=o.unicode,o.lastIndex=0);for(var C,P=[];null!==(C=d(o,l))&&(S(P,C),A);){""===c(C[0])&&(o.lastIndex=f(l,h(o.lastIndex),x))}for(var E,N="",M=0,R=0;R<P.length;R++){for(var _,V=c((C=P[R])[0]),I=m(b(u(C.index),l.length),0),k=[],L=1;L<C.length;L++)S(k,void 0===(E=C[L])?E:String(E));var D=C.groups;if(y){var j=w([V],k,I,l);void 0!==D&&S(j,D),_=c(t(r,void 0,j))}else _=p(V,l,I,k,D,r);I>=M&&(N+=O(l,M,I)+_,M=I+V.length)}return N+O(l,M)}]}),!!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!A||C)}();var Qa,Za,Ka,Ja,ts,es,rs,is,ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs={};function bs(){if(Ja)return Ka;Ja=1;var t=function(){if(Za)return Qa;Za=1;var t=vt(),e=ct(),r=se()("match");return Qa=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return Ka=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function ws(){if(es)return ts;es=1;var t=se()("match");return ts=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ss(){if(ns)return is;ns=1;var t=se(),e=za(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),is=function(t){n[i][t]=!0}}function Ts(){if(us)return os;us=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ss)return as;ss=1;var t=v();return as=!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 os=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},os}function Os(){if(cs)return hs;cs=1;var t,e,r,i=v(),n=dt(),a=vt(),s=za(),o=Ts(),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})),hs={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function As(){if(ps)return gs;ps=1;var t=zi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(fs)return ls;fs=1;var t=Os().IteratorPrototype,e=za(),r=ut(),i=Wi(),n=jn(),a=function(){return this};return ls=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=Ts(),o=Yi(),u=Wi(),h=Se(),c=Ye(),l=se(),f=jn(),g=Os(),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 gs=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 Cs(){return vs?ds:(vs=1,ds=function(t,e){return{value:t,done:e}})}function Ps(){if(ms)return ys;ms=1;var t=pt(),e=Ss(),r=jn(),i=He(),n=we().f,a=As(),s=Cs(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);ys=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 ys}!function(){if(rs)return xs;rs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),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=n(l(arguments.length>1?arguments[1]:void 0,e.length)),i=a(t);return c(e,r,r+i.length)===i}})}(),Ps();var Es,Ns,Ms,Rs,_s,Vs={};function Is(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 ks(t,e,r){return(e=Is(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(_s)return Vs;_s=1;var t=s(),e=Ns?Es:(Ns=1,Es={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(Rs)return Ms;Rs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Ms=e===Object.prototype?void 0:e}(),i=Ps(),n=Se(),a=Wi(),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 Ls,Ds,js,Bs,zs,Us={};function Fs(){if(Bs)return js;Bs=1;var t=v();return js=function(e,r){var i=[][e];return!!i&&t((function(){i.call(null,r||function(){return 1},1)}))}}!function(){if(zs)return Us;zs=1;var t=zi(),e=function(){if(Ds)return Ls;Ds=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 Ls={left:s(!1),right:s(!0)}}().left,r=Fs(),i=bt();t({target:"Array",proto:!0,forced:!Fi()&&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 Hs,Xs={};!function(){if(Hs)return Xs;Hs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),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=arguments.length>1?arguments[1]:void 0,i=e.length,u=void 0===r?i:l(n(r),i),h=a(t);return c(e,u-h.length,u)===h}})}();var Ys,Ws={};!function(){if(Ys)return Ws;Ys=1;var t=x(),e=ht(),r=Fa(),i=be(),n=ft(),a=gt(),s=Ji(),o=Ha(),u=fr(),h=pa(),c=Ct(),l=Xa(),f=va(),g=v(),p=f.UNSUPPORTED_Y,d=Math.min,y=e([].push),m=e("".slice),b=!g((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]})),w="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,f){var g="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)?void 0:c(r,e);return o?t(o,r,s,i):t(g,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!w){var c=f(g,n,a,e,g!==r);if(c.done)return c.value}var v=s(n,RegExp),x=n.unicode,b=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(p?"g":"y"),S=new v(p?"^(?:"+n.source+")":n,b),T=void 0===e?4294967295:e>>>0;if(0===T)return[];if(0===a.length)return null===l(S,a)?[a]:[];for(var O=0,A=0,C=[];A<a.length;){S.lastIndex=p?0:A;var P,E=l(S,p?m(a,A):a);if(null===E||(P=d(u(S.lastIndex+(p?A:0)),a.length))===O)A=o(a,A,x);else{if(y(C,m(a,O,A)),C.length===T)return C;for(var N=1;N<=E.length-1;N++)if(y(C,E[N]),C.length===T)return C;A=O=P}}return y(C,m(a,O)),C}]}),w||!b,p)}();var qs,$s,Gs={exports:{}},Qs={exports:{}},Zs=Qs.exports;var Ks,Js,to,eo,ro,io,no,ao,so,oo=function(){if($s)return Gs.exports;$s=1;for(var e=(qs||(qs=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?Qs.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Qs.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?(Qs.exports=function(){return Date.now()-r},r=Date.now()):(Qs.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(Zs)),Qs.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 Gs.exports=function(t){return a.call(r,t)},Gs.exports.cancel=function(){s.apply(r,arguments)},Gs.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},Gs.exports}(),uo=r(oo),ho={};function co(){return Js?Ks:(Js=1,Ks="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(no)return ho;no=1;var t=zi(),e=function(){if(eo)return to;eo=1;var t=ht(),e=gt(),r=pa(),i=co(),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 to={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(io)return ro;io=1;var t=Be().PROPER,e=v(),r=co();return ro=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 lo,fo=(so||(so=1,ao=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}}),ao),go=r(fo),po={};!function(){if(lo)return po;lo=1;var t=zi(),e=en(),r=pr().indexOf,i=Fs(),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 vo,yo={};!function(){if(vo)return yo;vo=1;var t=zi(),e=ht(),r=bs(),i=gt(),n=pa(),a=ws(),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 mo,xo,bo,wo={};function So(){if(xo)return mo;xo=1;var t=ct();return mo=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(bo)return wo;bo=1;var t=zi(),e=ht(),r=So(),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
|
|
package/dist/{jsonld-signatures-BbILf-Q7-DTp6__ud.js → jsonld-signatures-BbHr1fSN-BSospRuX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,q as t,B as r,i as o}from"./main.js";import{a as n,b as a,c as i}from"./jsonld-
|
|
1
|
+
import{g as e,q as t,B as r,i as o}from"./main.js";import{a as n,b as a,c as i}from"./jsonld-BAMY2WqE-BJ5uVeOU.js";var s,c,u,d,p,h,l,f,m,g,y,w,v,T,b,x,E=(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
|
*/
|
|
@@ -26,19 +26,19 @@ e.exports={SECURITY_CONTEXT_V1_URL:"https://w3id.org/security/v1",SECURITY_CONTE
|
|
|
26
26
|
*/function U(){if(w)return y;w=1;const e=k(),t=n(),{extendContextLoader:r,strictDocumentLoader:o}=L(),{serializeError:a}=j();function i({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 a(this)},configurable:!0,writable:!0})}return y=class{async add(e,{suite:n,purpose:a,documentLoader:s}={}){if(!n)throw new TypeError('"options.suite" is required.');if(!a)throw new TypeError('"options.purpose" is required.');s=s?r(s):o;const c={...e};delete c.proof;const u=i({document:e}),d=await n.createProof({document:c,purpose:a,proofSet:u,documentLoader:s});return t.addValue(e,"proof",d),e}async derive(e,{suite:t,purpose:n,documentLoader:a}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!n)throw new TypeError('"options.purpose" is required.');a=a?r(a):o;const s={...e};delete s.proof;const c=i({document:e});return await t.derive({document:s,purpose:n,proofSet:c,documentLoader:a})}async verify(e,{suite:t,purpose:n,documentLoader:a}={}){if(!t)throw new TypeError('"options.suite" is required.');if(!n)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.");a=a?r(a):o;try{const t=i({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 a=Array.isArray(o)?o:[o],i=new Map,c=new Map,u=new Map;if(await Promise.all(a.map((o=>async function({purposeToProofs:e,proofToSuite:t,purpose:r,proofSet:o,suites:n,suiteMatchQueue:a,document:i,documentLoader:s}){for(const c of o){if(!await r.match(c,{document:i,documentLoader:s}))continue;let o=!1;for(const e of n){let r=a.get(e);r||a.set(e,r=new Map);let n=r.get(c);if(n||(n=e.matchProof({proof:c,document:i,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:i,proofToSuite:c,purpose:o,proofSet:r,suites:t,suiteMatchQueue:u,document:e,documentLoader:n})))),i.size<a.length)return[];const d=new Map;return await Promise.all([...c.entries()].map((async([t,o])=>{let a;try{let i;const s={validate:async(e,{verificationMethod:t})=>(i=t,{valid:!0})},{verified:c,verificationMethod:u,error:d}=await o.verifyProof({proof:t,document:e,purpose:s,proofSet:r,documentLoader:n});i||(i=u),a={proof:t,verified:c,verificationMethod:i,error:d}}catch(e){a={proof:t,verified:!1,error:e}}a.error&&s(a.error),d.set(t,a)}))),await Promise.all([...i.entries()].map((async([t,r])=>{for(const o of r){const r=d.get(o);if(!r.verified)continue;const{verificationMethod:a}=r,i=c.get(o);let u;try{u=await t.validate(o,{document:e,suite:i,verificationMethod:a,documentLoader:n})}catch(e){u={valid:!1,error:e}}r.purposeResult?Array.isArray(r.purposeResult)?r.purposeResult.push(u):r.purposeResult=[r.purposeResult,u]:r.purposeResult=u,u.valid||(s(u.error),r.error||(r.verified=!1,r.error=u.error))}}))),[...d.values()]}({document:e,suites:c,proofSet:t,purpose:n,documentLoader:a});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 o=r.some((e=>e.verified));if(!o){const e=[].concat(...r.filter((e=>e.error)).map((e=>e.error))),t={verified:o,results:r};return e.length>0&&(t.error=e),t}return{verified:o,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
|
-
*/function O(){return x?b:(x=1,b=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}})}var P,K,z={};function V(){return K?P:(K=1,P=class e{constructor(e,t=new Map,r=0){this.prefix=e,this._existing=t,this.counter=r}clone(){const{prefix:t,_existing:r,counter:o}=this;return new e(t,new Map(r),o)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const r=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,r),r}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}})}var F,
|
|
29
|
+
*/function O(){return x?b:(x=1,b=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}})}var P,K,z={};function V(){return K?P:(K=1,P=class e{constructor(e,t=new Map,r=0){this.prefix=e,this._existing=t,this.counter=r}clone(){const{prefix:t,_existing:r,counter:o}=this;return new e(t,new Map(r),o)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const r=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,r),r}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}})}var q,F,B,$,X,H,Q,Y,W,G,J,Z,ee,te,re,oe,ne,ae,ie,se,ce,ue,de,pe,he,le,fe,me,ge,ye,we,ve,Te,be,xe={};
|
|
30
30
|
/*!
|
|
31
31
|
* Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
|
|
32
|
-
*/function Ee(){if(
|
|
32
|
+
*/function Ee(){if(q)return xe;q=1,i(),xe.setImmediate=setImmediate,xe.crypto=globalThis.crypto;const e=[];for(let t=0;t<=255;++t)e.push(t.toString(16).padStart(2,"0"));return xe.bufferToHex=function(t){let r="";const o=new Uint8Array(t);for(let t=0;t<o.length;++t)r+=e[o[t]];return r},xe}
|
|
33
33
|
/*!
|
|
34
34
|
* Copyright (c) 2016-2023 Digital Bazaar, Inc. All rights reserved.
|
|
35
|
-
*/function Ie(){if(B)return
|
|
35
|
+
*/function Ie(){if(B)return F;B=1;const{bufferToHex:e,crypto:t}=Ee(),r=new Map([["sha256","SHA-256"],["SHA256","SHA-256"],["SHA-256","SHA-256"],["sha384","SHA-384"],["SHA384","SHA-384"],["SHA-384","SHA-384"],["sha512","SHA-512"],["SHA512","SHA-512"],["SHA-512","SHA-512"]]);return F=class{constructor(e){if(!t||!t.subtle)throw new Error("crypto.subtle not found.");if(!r.has(e))throw new Error(`Unsupported algorithm "${e}".`);this.algorithm=r.get(e),this._content=""}update(e){this._content+=e}async digest(){const r=(new TextEncoder).encode(this._content),o=await t.subtle.digest(this.algorithm,r);return e(o)}}}
|
|
36
36
|
/*!
|
|
37
37
|
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
38
38
|
*/function _e(){return X?$:(X=1,$=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;t<e.length;++t)this.dir.set(e[t],!0)}hasNext(){return!this.done}next(){const{current:e,dir:t}=this,r=e.slice();let o=null,n=0;const a=e.length;for(let r=0;r<a;++r){const i=e[r],s=t.get(i);(null===o||i>o)&&(s&&r>0&&i>e[r-1]||!s&&r<a-1&&i>e[r+1])&&(o=i,n=r)}if(null===o)this.done=!0;else{const r=t.get(o)?n-1:n+1;e[n]=e[r],e[r]=o;for(const r of e)r>o&&t.set(r,!t.get(r))}return r}})}
|
|
39
39
|
/*!
|
|
40
40
|
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
41
|
-
*/function De(){if(
|
|
41
|
+
*/function De(){if(Q)return H;Q=1;const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",t="http://www.w3.org/2001/XMLSchema#string",r="NamedNode",o="BlankNode",n="Literal",a={};function i(e,t){return e.subject.termType===t.subject.termType&&e.object.termType===t.object.termType&&(e.subject.value===t.subject.value&&e.predicate.value===t.predicate.value&&e.object.value===t.object.value&&(e.object.termType!==n||e.object.datatype.termType===t.object.datatype.termType&&e.object.language===t.object.language&&e.object.datatype.value===t.object.datatype.value))}(()=>{const e="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_",t=e+"0-9-·̀-ͯ‿-⁀",r="_:((?:["+e+"0-9])(?:(?:["+t+".])*(?:["+t+"]))?)",o='(?:<((?:[^\0- <>"{}|^`\\\\]|\\\\u[0-9A-Fa-f]{4}|\\\\U[0-9A-Fa-f]{8})*)>)',n="[ \\t]+",i="[ \\t]*",s="(?:"+o+"|"+r+")"+n,c=o+n,u="(?:"+o+"|"+r+"|"+('(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:'+("(?:\\^\\^"+o+")")+"|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?)")+")"+i,d="(?:\\.|(?:(?:"+o+"|"+r+")"+i+"\\.))";a.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,a.empty=new RegExp("^"+i+"$"),a.quad=new RegExp("^"+i+s+c+u+d+i+"$")})(),H=class u{static parse(s){const c=[],u={},p=s.split(a.eoln);let h=0;for(const s of p){if(h++,a.empty.test(s))continue;const p=s.match(a.quad);if(null===p)throw new Error("N-Quads parse error on line "+h+".");const l={subject:null,predicate:null,object:null,graph:null};if(void 0!==p[1]?l.subject={termType:r,value:m(p[1])}:l.subject={termType:o,value:p[2]},l.predicate={termType:r,value:m(p[3])},void 0!==p[4]?l.object={termType:r,value:m(p[4])}:void 0!==p[5]?l.object={termType:o,value:p[5]}:(l.object={termType:n,value:void 0,datatype:{termType:r}},void 0!==p[7]?l.object.datatype.value=m(p[7]):void 0!==p[8]?(l.object.datatype.value=e,l.object.language=p[8]):l.object.datatype.value=t,l.object.value=d(p[6])),void 0!==p[9]?l.graph={termType:r,value:m(p[9])}:void 0!==p[10]?l.graph={termType:o,value:p[10]}:l.graph={termType:"DefaultGraph",value:""},l.graph.value in u){let e=!0;const t=u[l.graph.value];for(const r of t)if(i(r,l)){e=!1;break}e&&(t.push(l),c.push(l))}else u[l.graph.value]=[l],c.push(l)}return c}static serialize(e){const t=[];for(const r of e)t.push(u.serializeQuad(r));return t.sort().join("")}static serializeQuadComponents(n,a,i,u){let d="";return n.termType===r?d+=`<${l(n.value)}>`:d+=`_:${n.value}`,a.termType===r?d+=` <${l(a.value)}> `:d+=` _:${a.value} `,i.termType===r?d+=`<${l(i.value)}>`:i.termType===o?d+=`_:${i.value}`:(d+=`"${function(e){if(!s.test(e))return e;return e.replace(s,(function(e){return c[e.codePointAt(0)]}))}(i.value)}"`,i.datatype.value===e?i.language&&(d+=`@${i.language}`):i.datatype.value!==t&&(d+=`^^<${l(i.datatype.value)}>`)),u.termType===r?d+=` <${l(u.value)}>`:u.termType===o&&(d+=` _:${u.value}`),d+=" .\n",d}static serializeQuad(e){return u.serializeQuadComponents(e.subject,e.predicate,e.object,e.graph)}};const s=/[\u0000-\u001F\u007F"\\]/g,c=[];for(let e=0;e<=127;++e)s.test(String.fromCharCode(e))&&(c[e]="\\u"+e.toString(16).toUpperCase().padStart(4,"0"),s.lastIndex=0);c["\b".codePointAt(0)]="\\b",c["\t".codePointAt(0)]="\\t",c["\n".codePointAt(0)]="\\n",c["\f".codePointAt(0)]="\\f",c["\r".codePointAt(0)]="\\r",c['"'.codePointAt(0)]='\\"',c["\\".codePointAt(0)]="\\\\";const u=/(?:\\([btnfr"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function d(e){return u.test(e)?e.replace(u,(function(e,t,r,o){if(t)switch(t){case"b":return"\b";case"t":return"\t";case"n":return"\n";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"\\":return"\\"}return r?String.fromCharCode(parseInt(r,16)):o?String.fromCodePoint(parseInt(o,16)):void 0})):e}const p=/[\u0000-\u0020<>"{}|^`\\]/g,h=[];for(let e=0;e<=127;++e)p.test(String.fromCharCode(e))&&(h[e]="\\u"+e.toString(16).toUpperCase().padStart(4,"0"),p.lastIndex=0);function l(e){return p.test(e)?e.replace(p,(function(e){return h[e.codePointAt(0)]})):e}const f=/(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function m(e){return f.test(e)?e.replace(f,(function(e,t,r){return t?String.fromCharCode(parseInt(t,16)):r?String.fromCodePoint(parseInt(r,16)):void 0})):e}return H}
|
|
42
42
|
/*!
|
|
43
43
|
* Copyright (c) 2016-2023 Digital Bazaar, Inc. All rights reserved.
|
|
44
44
|
*/function Ne(){return Z||(Z=1,function(e){const t=function(){if(W)return Y;W=1;const e=V(),t=Ie(),r=_e(),o=De(),{setImmediate:n}=Ee();function a(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}return Y=class{constructor({createMessageDigest:r=null,messageDigestAlgorithm:o="sha256",canonicalIdMap:n=new Map,maxWorkFactor:a=1,maxDeepIterations:i=-1,signal:s=null}={}){this.name="RDFC-1.0",this.blankNodeInfo=new Map,this.canonicalIssuer=new e("c14n",n),this.createMessageDigest=r||(()=>new t(o)),this.maxWorkFactor=a,this.maxDeepIterations=i,this.remainingDeepIterations=0,this.signal=s,this.quads=null}async main(t){this.quads=t;for(const e of t)this._addBlankNodeQuadInfo({quad:e,component:e.subject}),this._addBlankNodeQuadInfo({quad:e,component:e.object}),this._addBlankNodeQuadInfo({quad:e,component:e.graph});const r=new Map,n=[...this.blankNodeInfo.keys()];let i=0;for(const e of n)++i%100==0&&await this._yield(),await this._hashAndTrackBlankNode({id:e,hashToBlankNodes:r});const s=[...r.keys()].sort(),c=[];for(const e of s){const t=r.get(e);if(t.length>1){c.push(t);continue}const o=t[0];this.canonicalIssuer.getId(o)}if(this.maxDeepIterations<0)if(0===this.maxWorkFactor)this.maxDeepIterations=0;else if(this.maxWorkFactor===1/0)this.maxDeepIterations=1/0;else{const e=c.reduce(((e,t)=>e+t.length),0);this.maxDeepIterations=e**this.maxWorkFactor}this.maxDeepIterations>Number.MAX_SAFE_INTEGER&&(this.maxDeepIterations=1/0),this.remainingDeepIterations=this.maxDeepIterations;for(const t of c){const r=[];for(const o of t){if(this.canonicalIssuer.hasId(o))continue;const t=new e("b");t.getId(o);const n=await this.hashNDegreeQuads(o,t);r.push(n)}r.sort(a);for(const e of r){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const u=[];for(const e of this.quads){const t=o.serializeQuadComponents(this._componentWithCanonicalId(e.subject),e.predicate,this._componentWithCanonicalId(e.object),this._componentWithCanonicalId(e.graph));u.push(t)}return u.sort(),u.join("")}async hashFirstDegreeQuads(e){const t=[],r=this.blankNodeInfo.get(e),n=r.quads;for(const r of n)t.push(o.serializeQuadComponents(this.modifyFirstDegreeComponent(e,r.subject,"subject"),r.predicate,this.modifyFirstDegreeComponent(e,r.object,"object"),this.modifyFirstDegreeComponent(e,r.graph,"graph")));t.sort();const a=this.createMessageDigest();for(const e of t)a.update(e);return r.hash=await a.digest(),r.hash}async hashRelatedBlankNode(e,t,r,o){const n=this.createMessageDigest();let a;return n.update(o),"g"!==o&&n.update(this.getRelatedPredicate(t)),a=this.canonicalIssuer.hasId(e)?"_:"+this.canonicalIssuer.getId(e):r.hasId(e)?"_:"+r.getId(e):this.blankNodeInfo.get(e).hash,n.update(a),n.digest()}async hashNDegreeQuads(e,t){if(0===this.remainingDeepIterations)throw new Error(`Maximum deep iterations exceeded (${this.maxDeepIterations}).`);this.remainingDeepIterations--;const o=this.createMessageDigest(),n=await this.createHashToRelated(e,t),a=[...n.keys()].sort();for(const e of a){o.update(e);let a,i="";const s=new r(n.get(e));let c=0;for(;s.hasNext();){const e=s.next();if(++c%3==0){if(this.signal&&this.signal.aborted)throw new Error(`Abort signal received: "${this.signal.reason}".`);await this._yield()}let r=t.clone(),o="";const n=[];let u=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?o+="_:"+this.canonicalIssuer.getId(t):(r.hasId(t)||n.push(t),o+="_:"+r.getId(t)),0!==i.length&&o>i){u=!0;break}if(!u){for(const e of n){const t=await this.hashNDegreeQuads(e,r);if(o+="_:"+r.getId(e),o+=`<${t.hash}>`,r=t.issuer,0!==i.length&&o>i){u=!0;break}}u||(0===i.length||o<i)&&(i=o,a=r)}}o.update(i),t=a}return{hash:await o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"a":"z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}async createHashToRelated(e,t){const r=new Map,o=this.blankNodeInfo.get(e).quads;let n=0;for(const a of o)++n%100==0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:a,component:a.subject,position:"s",id:e,issuer:t,hashToRelated:r}),this._addRelatedBlankNodeHash({quad:a,component:a.object,position:"o",id:e,issuer:t,hashToRelated:r}),this._addRelatedBlankNodeHash({quad:a,component:a.graph,position:"g",id:e,issuer:t,hashToRelated:r})]);return r}async _hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const r=await this.hashFirstDegreeQuads(e),o=t.get(r);o?o.push(e):t.set(r,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const r=t.value,o=this.blankNodeInfo.get(r);o?o.quads.add(e):this.blankNodeInfo.set(r,{quads:new Set([e]),hash:null})}async _addRelatedBlankNodeHash({quad:e,component:t,position:r,id:o,issuer:n,hashToRelated:a}){if("BlankNode"!==t.termType||t.value===o)return;const i=t.value,s=await this.hashRelatedBlankNode(i,e,n,r),c=a.get(s);c?c.push(i):a.set(s,[i])}_componentWithCanonicalId(e){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}async _yield(){return new Promise((e=>n(e)))}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as r,s as e,b as t}from"./elliptic-
|
|
1
|
+
import{k as r,s as e,b as t}from"./elliptic-6I21PEnR-CsYseRX1.js";import{B as n}from"./main.js";import{d as o}from"./base64url-Cy03LJLt-vkTPfQOh.js";const s="undefined"==typeof Buffer?n:Buffer,i=t=>{const n=r.from({...t,crv:"K-256"},"jwk").toString("blk","public"),o=e.publicKeyConvert(s.from(n,"hex"),!0);return s.from(o).toString("hex")},f=r=>t.encode(s.from(r,"hex"));const c=r=>{const e=new Uint8Array([237,1]),n=function(r){const{kty:e,crv:t,x:n}=r;if("OKP"!==e)throw new TypeError('"jwk.kty" must be "OKP".');if("Ed25519"!==t)throw new TypeError('"jwk.crv" must be "Ed25519".');if("string"!=typeof n)throw new TypeError('"jwk.x" must be a string.');const s=o(r.x);if(32!==s.length)throw new Error(`Invalid public key size (${s.length}); expected 32.`);return s}(r),s=new Uint8Array(e.length+n.length);s.set(e),s.set(n,e.length);var i;return`z${i=s,t.encode(i)}`};export{f as a,c as j,i as p};
|