@intlayer/backend 7.0.8 → 7.0.9-canary.2
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/README.md +6 -5
- package/dist/assets/utils/AI/askDocQuestion/embeddings/frequent_questions/en/package_version_error.json +3080 -0
- package/dist/cjs/controllers/dictionary.controller.cjs +64 -41
- package/dist/cjs/controllers/dictionary.controller.cjs.map +1 -1
- package/dist/cjs/emails/MagicLinkEmail.cjs +242 -0
- package/dist/cjs/emails/MagicLinkEmail.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/index.cjs +16 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.cjs +25 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.cjs.map +1 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.cjs +31 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.cjs.map +1 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/utils.cjs +38 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/utils.cjs.map +1 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/xmlenc.cjs +231 -0
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/xmlenc.cjs.map +1 -0
- package/dist/cjs/node_modules/@better-auth/sso/dist/index.cjs +1210 -0
- package/dist/cjs/node_modules/@better-auth/sso/dist/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@better-fetch/fetch/dist/index.cjs +362 -0
- package/dist/cjs/node_modules/@better-fetch/fetch/dist/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/is-dom-node/dist/index.cjs +89 -0
- package/dist/cjs/node_modules/@xmldom/is-dom-node/dist/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/conventions.cjs +110 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/conventions.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom-parser.cjs +248 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom-parser.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom.cjs +1309 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/entities.cjs +2176 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/entities.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/index.cjs +20 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/sax.cjs +499 -0
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/sax.cjs.map +1 -0
- package/dist/cjs/node_modules/asn1/lib/ber/errors.cjs +20 -0
- package/dist/cjs/node_modules/asn1/lib/ber/errors.cjs.map +1 -0
- package/dist/cjs/node_modules/asn1/lib/ber/index.cjs +28 -0
- package/dist/cjs/node_modules/asn1/lib/ber/index.cjs.map +1 -0
- package/dist/cjs/node_modules/asn1/lib/ber/reader.cjs +167 -0
- package/dist/cjs/node_modules/asn1/lib/ber/reader.cjs.map +1 -0
- package/dist/cjs/node_modules/asn1/lib/ber/types.cjs +47 -0
- package/dist/cjs/node_modules/asn1/lib/ber/types.cjs.map +1 -0
- package/dist/cjs/node_modules/asn1/lib/ber/writer.cjs +223 -0
- package/dist/cjs/node_modules/asn1/lib/ber/writer.cjs.map +1 -0
- package/dist/cjs/node_modules/asn1/lib/index.cjs +21 -0
- package/dist/cjs/node_modules/asn1/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/camelcase/index.cjs +78 -0
- package/dist/cjs/node_modules/camelcase/index.cjs.map +1 -0
- package/dist/cjs/node_modules/escape-html/index.cjs +71 -0
- package/dist/cjs/node_modules/escape-html/index.cjs.map +1 -0
- package/dist/cjs/node_modules/fast-xml-parser/src/fxp.cjs +9 -0
- package/dist/cjs/node_modules/fast-xml-parser/src/fxp.cjs.map +1 -0
- package/dist/cjs/node_modules/fast-xml-parser/src/util.cjs +29 -0
- package/dist/cjs/node_modules/fast-xml-parser/src/util.cjs.map +1 -0
- package/dist/cjs/node_modules/fast-xml-parser/src/validator.cjs +244 -0
- package/dist/cjs/node_modules/fast-xml-parser/src/validator.cjs.map +1 -0
- package/dist/cjs/node_modules/jose/dist/webapi/lib/base64.cjs +14 -0
- package/dist/cjs/node_modules/jose/dist/webapi/lib/base64.cjs.map +1 -0
- package/dist/cjs/node_modules/jose/dist/webapi/lib/buffer_utils.cjs +10 -0
- package/dist/cjs/node_modules/jose/dist/webapi/lib/buffer_utils.cjs.map +1 -0
- package/dist/cjs/node_modules/jose/dist/webapi/lib/is_object.cjs +17 -0
- package/dist/cjs/node_modules/jose/dist/webapi/lib/is_object.cjs.map +1 -0
- package/dist/cjs/node_modules/jose/dist/webapi/util/base64url.cjs +20 -0
- package/dist/cjs/node_modules/jose/dist/webapi/util/base64url.cjs.map +1 -0
- package/dist/cjs/node_modules/jose/dist/webapi/util/decode_jwt.cjs +32 -0
- package/dist/cjs/node_modules/jose/dist/webapi/util/decode_jwt.cjs.map +1 -0
- package/dist/cjs/node_modules/jose/dist/webapi/util/errors.cjs +28 -0
- package/dist/cjs/node_modules/jose/dist/webapi/util/errors.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/aes.cjs +604 -0
- package/dist/cjs/node_modules/node-forge/lib/aes.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/aesCipherSuites.cjs +202 -0
- package/dist/cjs/node_modules/node-forge/lib/aesCipherSuites.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/asn1-validator.cjs +83 -0
- package/dist/cjs/node_modules/node-forge/lib/asn1-validator.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/asn1.cjs +945 -0
- package/dist/cjs/node_modules/node-forge/lib/asn1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/baseN.cjs +144 -0
- package/dist/cjs/node_modules/node-forge/lib/baseN.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/cipher.cjs +193 -0
- package/dist/cjs/node_modules/node-forge/lib/cipher.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/cipherModes.cjs +604 -0
- package/dist/cjs/node_modules/node-forge/lib/cipherModes.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/des.cjs +1194 -0
- package/dist/cjs/node_modules/node-forge/lib/des.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/ed25519.cjs +1027 -0
- package/dist/cjs/node_modules/node-forge/lib/ed25519.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/forge.cjs +22 -0
- package/dist/cjs/node_modules/node-forge/lib/forge.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/hmac.cjs +114 -0
- package/dist/cjs/node_modules/node-forge/lib/hmac.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/index.cjs +73 -0
- package/dist/cjs/node_modules/node-forge/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/jsbn.cjs +1263 -0
- package/dist/cjs/node_modules/node-forge/lib/jsbn.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/kem.cjs +153 -0
- package/dist/cjs/node_modules/node-forge/lib/kem.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/log.cjs +248 -0
- package/dist/cjs/node_modules/node-forge/lib/log.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/md.all.cjs +31 -0
- package/dist/cjs/node_modules/node-forge/lib/md.all.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/md.cjs +25 -0
- package/dist/cjs/node_modules/node-forge/lib/md.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/md5.cjs +331 -0
- package/dist/cjs/node_modules/node-forge/lib/md5.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/mgf.cjs +27 -0
- package/dist/cjs/node_modules/node-forge/lib/mgf.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/mgf1.cjs +51 -0
- package/dist/cjs/node_modules/node-forge/lib/mgf1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/oids.cjs +160 -0
- package/dist/cjs/node_modules/node-forge/lib/oids.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pbe.cjs +822 -0
- package/dist/cjs/node_modules/node-forge/lib/pbe.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pbkdf2.cjs +132 -0
- package/dist/cjs/node_modules/node-forge/lib/pbkdf2.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pem.cjs +182 -0
- package/dist/cjs/node_modules/node-forge/lib/pem.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs1.cjs +207 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs12.cjs +730 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs12.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs7.cjs +648 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs7.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs7asn1.cjs +412 -0
- package/dist/cjs/node_modules/node-forge/lib/pkcs7asn1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pki.cjs +108 -0
- package/dist/cjs/node_modules/node-forge/lib/pki.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/prime.cjs +200 -0
- package/dist/cjs/node_modules/node-forge/lib/prime.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/prng.cjs +297 -0
- package/dist/cjs/node_modules/node-forge/lib/prng.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/pss.cjs +148 -0
- package/dist/cjs/node_modules/node-forge/lib/pss.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/random.cjs +148 -0
- package/dist/cjs/node_modules/node-forge/lib/random.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/rc2.cjs +545 -0
- package/dist/cjs/node_modules/node-forge/lib/rc2.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/rsa.cjs +1306 -0
- package/dist/cjs/node_modules/node-forge/lib/rsa.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/sha1.cjs +237 -0
- package/dist/cjs/node_modules/node-forge/lib/sha1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/sha256.cjs +274 -0
- package/dist/cjs/node_modules/node-forge/lib/sha256.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/sha512.cjs +420 -0
- package/dist/cjs/node_modules/node-forge/lib/sha512.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/ssh.cjs +201 -0
- package/dist/cjs/node_modules/node-forge/lib/ssh.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/tls.cjs +3662 -0
- package/dist/cjs/node_modules/node-forge/lib/tls.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/util.cjs +2124 -0
- package/dist/cjs/node_modules/node-forge/lib/util.cjs.map +1 -0
- package/dist/cjs/node_modules/node-forge/lib/x509.cjs +2171 -0
- package/dist/cjs/node_modules/node-forge/lib/x509.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/NodeRSA.cjs +341 -0
- package/dist/cjs/node_modules/node-rsa/src/NodeRSA.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/encryptEngines.cjs +26 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/encryptEngines.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/io.cjs +65 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/io.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/js.cjs +44 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/js.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/node12.cjs +49 -0
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/node12.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/components.cjs +55 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/components.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/formats.cjs +86 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/formats.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/openssh.cjs +177 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/openssh.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs1.cjs +104 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs8.cjs +131 -0
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs8.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/libs/jsbn.cjs +1347 -0
- package/dist/cjs/node_modules/node-rsa/src/libs/jsbn.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/libs/rsa.cjs +231 -0
- package/dist/cjs/node_modules/node-rsa/src/libs/rsa.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/oaep.cjs +123 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/oaep.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/pkcs1.cjs +175 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/pkcs1.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/pss.cjs +123 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/pss.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/schemes.cjs +28 -0
- package/dist/cjs/node_modules/node-rsa/src/schemes/schemes.cjs.map +1 -0
- package/dist/cjs/node_modules/node-rsa/src/utils.cjs +84 -0
- package/dist/cjs/node_modules/node-rsa/src/utils.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/index.cjs +25 -0
- package/dist/cjs/node_modules/pako/index.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/deflate.cjs +311 -0
- package/dist/cjs/node_modules/pako/lib/deflate.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/inflate.cjs +317 -0
- package/dist/cjs/node_modules/pako/lib/inflate.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/utils/common.cjs +77 -0
- package/dist/cjs/node_modules/pako/lib/utils/common.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/utils/strings.cjs +131 -0
- package/dist/cjs/node_modules/pako/lib/utils/strings.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/adler32.cjs +29 -0
- package/dist/cjs/node_modules/pako/lib/zlib/adler32.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/constants.cjs +43 -0
- package/dist/cjs/node_modules/pako/lib/zlib/constants.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/crc32.cjs +31 -0
- package/dist/cjs/node_modules/pako/lib/zlib/crc32.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/deflate.cjs +889 -0
- package/dist/cjs/node_modules/pako/lib/zlib/deflate.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/gzheader.cjs +27 -0
- package/dist/cjs/node_modules/pako/lib/zlib/gzheader.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/inffast.cjs +227 -0
- package/dist/cjs/node_modules/pako/lib/zlib/inffast.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/inflate.cjs +1038 -0
- package/dist/cjs/node_modules/pako/lib/zlib/inflate.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/inftrees.cjs +278 -0
- package/dist/cjs/node_modules/pako/lib/zlib/inftrees.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/messages.cjs +25 -0
- package/dist/cjs/node_modules/pako/lib/zlib/messages.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/trees.cjs +626 -0
- package/dist/cjs/node_modules/pako/lib/zlib/trees.cjs.map +1 -0
- package/dist/cjs/node_modules/pako/lib/zlib/zstream.cjs +29 -0
- package/dist/cjs/node_modules/pako/lib/zlib/zstream.cjs.map +1 -0
- package/dist/cjs/node_modules/safer-buffer/safer.cjs +52 -0
- package/dist/cjs/node_modules/safer-buffer/safer.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/index.cjs +120 -0
- package/dist/cjs/node_modules/samlify/build/index.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/api.cjs +36 -0
- package/dist/cjs/node_modules/samlify/build/src/api.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/binding-post.cjs +507 -0
- package/dist/cjs/node_modules/samlify/build/src/binding-post.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/binding-redirect.cjs +342 -0
- package/dist/cjs/node_modules/samlify/build/src/binding-redirect.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/binding-simplesign.cjs +361 -0
- package/dist/cjs/node_modules/samlify/build/src/binding-simplesign.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/entity-idp.cjs +282 -0
- package/dist/cjs/node_modules/samlify/build/src/entity-idp.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/entity-sp.cjs +145 -0
- package/dist/cjs/node_modules/samlify/build/src/entity-sp.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/entity.cjs +256 -0
- package/dist/cjs/node_modules/samlify/build/src/entity.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/extractor.cjs +355 -0
- package/dist/cjs/node_modules/samlify/build/src/extractor.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/flow.cjs +392 -0
- package/dist/cjs/node_modules/samlify/build/src/flow.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/libsaml.cjs +547 -0
- package/dist/cjs/node_modules/samlify/build/src/libsaml.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/metadata-idp.cjs +174 -0
- package/dist/cjs/node_modules/samlify/build/src/metadata-idp.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/metadata-sp.cjs +217 -0
- package/dist/cjs/node_modules/samlify/build/src/metadata-sp.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/metadata.cjs +203 -0
- package/dist/cjs/node_modules/samlify/build/src/metadata.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/urn.cjs +228 -0
- package/dist/cjs/node_modules/samlify/build/src/urn.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/utility.cjs +280 -0
- package/dist/cjs/node_modules/samlify/build/src/utility.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/build/src/validator.cjs +56 -0
- package/dist/cjs/node_modules/samlify/build/src/validator.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/index.cjs +50 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/index.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/md5.cjs +25 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/md5.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/nil.cjs +18 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/nil.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/parse.cjs +42 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/regex.cjs +18 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/regex.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/rng.cjs +28 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/rng.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/sha1.cjs +25 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/sha1.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/stringify.cjs +27 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/stringify.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v1.cjs +69 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v1.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v3.cjs +23 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v3.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v35.cjs +54 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v35.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v4.cjs +34 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v4.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v5.cjs +23 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v5.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/validate.cjs +23 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/validate.cjs.map +1 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/version.cjs +24 -0
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/version.cjs.map +1 -0
- package/dist/cjs/node_modules/xml/lib/escapeForXML.cjs +27 -0
- package/dist/cjs/node_modules/xml/lib/escapeForXML.cjs.map +1 -0
- package/dist/cjs/node_modules/xml/lib/xml.cjs +186 -0
- package/dist/cjs/node_modules/xml/lib/xml.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/c14n-canonicalization.cjs +202 -0
- package/dist/cjs/node_modules/xml-crypto/lib/c14n-canonicalization.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/enveloped-signature.cjs +52 -0
- package/dist/cjs/node_modules/xml-crypto/lib/enveloped-signature.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/exclusive-canonicalization.cjs +223 -0
- package/dist/cjs/node_modules/xml-crypto/lib/exclusive-canonicalization.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/hash-algorithms.cjs +56 -0
- package/dist/cjs/node_modules/xml-crypto/lib/hash-algorithms.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/index.cjs +73 -0
- package/dist/cjs/node_modules/xml-crypto/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/signature-algorithms.cjs +91 -0
- package/dist/cjs/node_modules/xml-crypto/lib/signature-algorithms.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/signed-xml.cjs +695 -0
- package/dist/cjs/node_modules/xml-crypto/lib/signed-xml.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/types.cjs +58 -0
- package/dist/cjs/node_modules/xml-crypto/lib/types.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/lib/utils.cjs +213 -0
- package/dist/cjs/node_modules/xml-crypto/lib/utils.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-crypto/node_modules/xpath/xpath.cjs +3445 -0
- package/dist/cjs/node_modules/xml-crypto/node_modules/xpath/xpath.cjs.map +1 -0
- package/dist/cjs/node_modules/xml-escape/index.cjs +30 -0
- package/dist/cjs/node_modules/xml-escape/index.cjs.map +1 -0
- package/dist/cjs/node_modules/xpath/xpath.cjs +3410 -0
- package/dist/cjs/node_modules/xpath/xpath.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/classic/errors.cjs +31 -0
- package/dist/cjs/node_modules/zod/v4/classic/errors.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/classic/iso.cjs +42 -0
- package/dist/cjs/node_modules/zod/v4/classic/iso.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/dist/cjs/node_modules/zod/v4/classic/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/classic/schemas.cjs +527 -0
- package/dist/cjs/node_modules/zod/v4/classic/schemas.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/api.cjs +443 -0
- package/dist/cjs/node_modules/zod/v4/core/api.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/checks.cjs +238 -0
- package/dist/cjs/node_modules/zod/v4/core/checks.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/core.cjs +63 -0
- package/dist/cjs/node_modules/zod/v4/core/core.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/doc.cjs +36 -0
- package/dist/cjs/node_modules/zod/v4/core/doc.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/errors.cjs +67 -0
- package/dist/cjs/node_modules/zod/v4/core/errors.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/parse.cjs +124 -0
- package/dist/cjs/node_modules/zod/v4/core/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/regexes.cjs +87 -0
- package/dist/cjs/node_modules/zod/v4/core/regexes.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/registries.cjs +55 -0
- package/dist/cjs/node_modules/zod/v4/core/registries.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/schemas.cjs +1115 -0
- package/dist/cjs/node_modules/zod/v4/core/schemas.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/util.cjs +333 -0
- package/dist/cjs/node_modules/zod/v4/core/util.cjs.map +1 -0
- package/dist/cjs/node_modules/zod/v4/core/versions.cjs +12 -0
- package/dist/cjs/node_modules/zod/v4/core/versions.cjs.map +1 -0
- package/dist/cjs/schemas/user.schema.cjs +17 -0
- package/dist/cjs/schemas/user.schema.cjs.map +1 -1
- package/dist/cjs/services/dictionary.service.cjs +7 -31
- package/dist/cjs/services/dictionary.service.cjs.map +1 -1
- package/dist/cjs/services/email.service.cjs +13 -0
- package/dist/cjs/services/email.service.cjs.map +1 -1
- package/dist/cjs/types/user.types.cjs.map +1 -1
- package/dist/cjs/utils/auth/getAuth.cjs +60 -26
- package/dist/cjs/utils/auth/getAuth.cjs.map +1 -1
- package/dist/cjs/utils/mongoDB/connectDB.cjs.map +1 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +43 -0
- package/dist/esm/controllers/dictionary.controller.mjs +65 -42
- package/dist/esm/controllers/dictionary.controller.mjs.map +1 -1
- package/dist/esm/emails/MagicLinkEmail.mjs +239 -0
- package/dist/esm/emails/MagicLinkEmail.mjs.map +1 -0
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/index.mjs +13 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.mjs +22 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.mjs.map +1 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.mjs +28 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.mjs.map +1 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/utils.mjs +35 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/utils.mjs.map +1 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/xmlenc.mjs +228 -0
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/xmlenc.mjs.map +1 -0
- package/dist/esm/node_modules/@better-auth/sso/dist/index.mjs +1210 -0
- package/dist/esm/node_modules/@better-auth/sso/dist/index.mjs.map +1 -0
- package/dist/esm/node_modules/@better-fetch/fetch/dist/index.mjs +359 -0
- package/dist/esm/node_modules/@better-fetch/fetch/dist/index.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/is-dom-node/dist/index.mjs +86 -0
- package/dist/esm/node_modules/@xmldom/is-dom-node/dist/index.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/conventions.mjs +107 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/conventions.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom-parser.mjs +245 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom-parser.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom.mjs +1306 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/entities.mjs +2173 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/entities.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/index.mjs +17 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/sax.mjs +496 -0
- package/dist/esm/node_modules/@xmldom/xmldom/lib/sax.mjs.map +1 -0
- package/dist/esm/node_modules/asn1/lib/ber/errors.mjs +17 -0
- package/dist/esm/node_modules/asn1/lib/ber/errors.mjs.map +1 -0
- package/dist/esm/node_modules/asn1/lib/ber/index.mjs +25 -0
- package/dist/esm/node_modules/asn1/lib/ber/index.mjs.map +1 -0
- package/dist/esm/node_modules/asn1/lib/ber/reader.mjs +164 -0
- package/dist/esm/node_modules/asn1/lib/ber/reader.mjs.map +1 -0
- package/dist/esm/node_modules/asn1/lib/ber/types.mjs +44 -0
- package/dist/esm/node_modules/asn1/lib/ber/types.mjs.map +1 -0
- package/dist/esm/node_modules/asn1/lib/ber/writer.mjs +220 -0
- package/dist/esm/node_modules/asn1/lib/ber/writer.mjs.map +1 -0
- package/dist/esm/node_modules/asn1/lib/index.mjs +18 -0
- package/dist/esm/node_modules/asn1/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/available-typed-arrays/index.mjs +20 -0
- package/dist/esm/node_modules/available-typed-arrays/index.mjs.map +1 -0
- package/dist/esm/node_modules/base64-js/index.mjs +95 -0
- package/dist/esm/node_modules/base64-js/index.mjs.map +1 -0
- package/dist/esm/node_modules/buffer/index.mjs +1114 -0
- package/dist/esm/node_modules/buffer/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind/index.mjs +26 -0
- package/dist/esm/node_modules/call-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs +21 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs +21 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs +13 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs +13 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs +24 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs +13 -0
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs.map +1 -0
- package/dist/esm/node_modules/call-bound/index.mjs +23 -0
- package/dist/esm/node_modules/call-bound/index.mjs.map +1 -0
- package/dist/esm/node_modules/camelcase/index.mjs +75 -0
- package/dist/esm/node_modules/camelcase/index.mjs.map +1 -0
- package/dist/esm/node_modules/define-data-property/index.mjs +41 -0
- package/dist/esm/node_modules/define-data-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/dunder-proto/get.mjs +28 -0
- package/dist/esm/node_modules/dunder-proto/get.mjs.map +1 -0
- package/dist/esm/node_modules/es-define-property/index.mjs +19 -0
- package/dist/esm/node_modules/es-define-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/eval.mjs +13 -0
- package/dist/esm/node_modules/es-errors/eval.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/index.mjs +13 -0
- package/dist/esm/node_modules/es-errors/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/range.mjs +13 -0
- package/dist/esm/node_modules/es-errors/range.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/ref.mjs +13 -0
- package/dist/esm/node_modules/es-errors/ref.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs +13 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/type.mjs +13 -0
- package/dist/esm/node_modules/es-errors/type.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/uri.mjs +13 -0
- package/dist/esm/node_modules/es-errors/uri.mjs.map +1 -0
- package/dist/esm/node_modules/es-object-atoms/index.mjs +13 -0
- package/dist/esm/node_modules/es-object-atoms/index.mjs.map +1 -0
- package/dist/esm/node_modules/escape-html/index.mjs +68 -0
- package/dist/esm/node_modules/escape-html/index.mjs.map +1 -0
- package/dist/esm/node_modules/fast-xml-parser/src/fxp.mjs +8 -0
- package/dist/esm/node_modules/fast-xml-parser/src/fxp.mjs.map +1 -0
- package/dist/esm/node_modules/fast-xml-parser/src/util.mjs +26 -0
- package/dist/esm/node_modules/fast-xml-parser/src/util.mjs.map +1 -0
- package/dist/esm/node_modules/fast-xml-parser/src/validator.mjs +243 -0
- package/dist/esm/node_modules/fast-xml-parser/src/validator.mjs.map +1 -0
- package/dist/esm/node_modules/for-each/index.mjs +43 -0
- package/dist/esm/node_modules/for-each/index.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs +59 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/index.mjs +14 -0
- package/dist/esm/node_modules/function-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/generator-function/index.mjs +14 -0
- package/dist/esm/node_modules/generator-function/index.mjs.map +1 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs +358 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs.map +1 -0
- package/dist/esm/node_modules/get-proto/Object.getPrototypeOf.mjs +15 -0
- package/dist/esm/node_modules/get-proto/Object.getPrototypeOf.mjs.map +1 -0
- package/dist/esm/node_modules/get-proto/Reflect.getPrototypeOf.mjs +13 -0
- package/dist/esm/node_modules/get-proto/Reflect.getPrototypeOf.mjs.map +1 -0
- package/dist/esm/node_modules/get-proto/index.mjs +26 -0
- package/dist/esm/node_modules/get-proto/index.mjs.map +1 -0
- package/dist/esm/node_modules/gopd/gOPD.mjs +13 -0
- package/dist/esm/node_modules/gopd/gOPD.mjs.map +1 -0
- package/dist/esm/node_modules/gopd/index.mjs +20 -0
- package/dist/esm/node_modules/gopd/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs +25 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/index.mjs +22 -0
- package/dist/esm/node_modules/has-symbols/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs +36 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs.map +1 -0
- package/dist/esm/node_modules/has-tostringtag/shams.mjs +17 -0
- package/dist/esm/node_modules/has-tostringtag/shams.mjs.map +1 -0
- package/dist/esm/node_modules/hasown/index.mjs +17 -0
- package/dist/esm/node_modules/hasown/index.mjs.map +1 -0
- package/dist/esm/node_modules/ieee754/index.mjs +80 -0
- package/dist/esm/node_modules/ieee754/index.mjs.map +1 -0
- package/dist/esm/node_modules/inherits/inherits_browser.mjs +31 -0
- package/dist/esm/node_modules/inherits/inherits_browser.mjs.map +1 -0
- package/dist/esm/node_modules/is-arguments/index.mjs +31 -0
- package/dist/esm/node_modules/is-arguments/index.mjs.map +1 -0
- package/dist/esm/node_modules/is-callable/index.mjs +87 -0
- package/dist/esm/node_modules/is-callable/index.mjs.map +1 -0
- package/dist/esm/node_modules/is-generator-function/index.mjs +32 -0
- package/dist/esm/node_modules/is-generator-function/index.mjs.map +1 -0
- package/dist/esm/node_modules/is-regex/index.mjs +58 -0
- package/dist/esm/node_modules/is-regex/index.mjs.map +1 -0
- package/dist/esm/node_modules/is-typed-array/index.mjs +17 -0
- package/dist/esm/node_modules/is-typed-array/index.mjs.map +1 -0
- package/dist/esm/node_modules/jose/dist/webapi/lib/base64.mjs +12 -0
- package/dist/esm/node_modules/jose/dist/webapi/lib/base64.mjs.map +1 -0
- package/dist/esm/node_modules/jose/dist/webapi/lib/buffer_utils.mjs +8 -0
- package/dist/esm/node_modules/jose/dist/webapi/lib/buffer_utils.mjs.map +1 -0
- package/dist/esm/node_modules/jose/dist/webapi/lib/is_object.mjs +15 -0
- package/dist/esm/node_modules/jose/dist/webapi/lib/is_object.mjs.map +1 -0
- package/dist/esm/node_modules/jose/dist/webapi/util/base64url.mjs +19 -0
- package/dist/esm/node_modules/jose/dist/webapi/util/base64url.mjs.map +1 -0
- package/dist/esm/node_modules/jose/dist/webapi/util/decode_jwt.mjs +31 -0
- package/dist/esm/node_modules/jose/dist/webapi/util/decode_jwt.mjs.map +1 -0
- package/dist/esm/node_modules/jose/dist/webapi/util/errors.mjs +26 -0
- package/dist/esm/node_modules/jose/dist/webapi/util/errors.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/abs.mjs +13 -0
- package/dist/esm/node_modules/math-intrinsics/abs.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/floor.mjs +13 -0
- package/dist/esm/node_modules/math-intrinsics/floor.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/isNaN.mjs +15 -0
- package/dist/esm/node_modules/math-intrinsics/isNaN.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/max.mjs +13 -0
- package/dist/esm/node_modules/math-intrinsics/max.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/min.mjs +13 -0
- package/dist/esm/node_modules/math-intrinsics/min.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/pow.mjs +13 -0
- package/dist/esm/node_modules/math-intrinsics/pow.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/round.mjs +13 -0
- package/dist/esm/node_modules/math-intrinsics/round.mjs.map +1 -0
- package/dist/esm/node_modules/math-intrinsics/sign.mjs +18 -0
- package/dist/esm/node_modules/math-intrinsics/sign.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/aes.mjs +601 -0
- package/dist/esm/node_modules/node-forge/lib/aes.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/aesCipherSuites.mjs +199 -0
- package/dist/esm/node_modules/node-forge/lib/aesCipherSuites.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/asn1-validator.mjs +80 -0
- package/dist/esm/node_modules/node-forge/lib/asn1-validator.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/asn1.mjs +942 -0
- package/dist/esm/node_modules/node-forge/lib/asn1.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/baseN.mjs +141 -0
- package/dist/esm/node_modules/node-forge/lib/baseN.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/cipher.mjs +190 -0
- package/dist/esm/node_modules/node-forge/lib/cipher.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/cipherModes.mjs +601 -0
- package/dist/esm/node_modules/node-forge/lib/cipherModes.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/des.mjs +1191 -0
- package/dist/esm/node_modules/node-forge/lib/des.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/ed25519.mjs +1024 -0
- package/dist/esm/node_modules/node-forge/lib/ed25519.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/forge.mjs +19 -0
- package/dist/esm/node_modules/node-forge/lib/forge.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/hmac.mjs +111 -0
- package/dist/esm/node_modules/node-forge/lib/hmac.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/index.mjs +70 -0
- package/dist/esm/node_modules/node-forge/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/jsbn.mjs +1260 -0
- package/dist/esm/node_modules/node-forge/lib/jsbn.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/kem.mjs +150 -0
- package/dist/esm/node_modules/node-forge/lib/kem.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/log.mjs +245 -0
- package/dist/esm/node_modules/node-forge/lib/log.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/md.all.mjs +28 -0
- package/dist/esm/node_modules/node-forge/lib/md.all.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/md.mjs +22 -0
- package/dist/esm/node_modules/node-forge/lib/md.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/md5.mjs +328 -0
- package/dist/esm/node_modules/node-forge/lib/md5.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/mgf.mjs +24 -0
- package/dist/esm/node_modules/node-forge/lib/mgf.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/mgf1.mjs +48 -0
- package/dist/esm/node_modules/node-forge/lib/mgf1.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/oids.mjs +157 -0
- package/dist/esm/node_modules/node-forge/lib/oids.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pbe.mjs +819 -0
- package/dist/esm/node_modules/node-forge/lib/pbe.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pbkdf2.mjs +130 -0
- package/dist/esm/node_modules/node-forge/lib/pbkdf2.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pem.mjs +179 -0
- package/dist/esm/node_modules/node-forge/lib/pem.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs1.mjs +204 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs1.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs12.mjs +727 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs12.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs7.mjs +645 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs7.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs7asn1.mjs +409 -0
- package/dist/esm/node_modules/node-forge/lib/pkcs7asn1.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pki.mjs +105 -0
- package/dist/esm/node_modules/node-forge/lib/pki.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/prime.mjs +197 -0
- package/dist/esm/node_modules/node-forge/lib/prime.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/prng.mjs +295 -0
- package/dist/esm/node_modules/node-forge/lib/prng.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/pss.mjs +145 -0
- package/dist/esm/node_modules/node-forge/lib/pss.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/random.mjs +145 -0
- package/dist/esm/node_modules/node-forge/lib/random.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/rc2.mjs +542 -0
- package/dist/esm/node_modules/node-forge/lib/rc2.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/rsa.mjs +1304 -0
- package/dist/esm/node_modules/node-forge/lib/rsa.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/sha1.mjs +234 -0
- package/dist/esm/node_modules/node-forge/lib/sha1.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/sha256.mjs +271 -0
- package/dist/esm/node_modules/node-forge/lib/sha256.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/sha512.mjs +417 -0
- package/dist/esm/node_modules/node-forge/lib/sha512.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/ssh.mjs +198 -0
- package/dist/esm/node_modules/node-forge/lib/ssh.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/tls.mjs +3659 -0
- package/dist/esm/node_modules/node-forge/lib/tls.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/util.mjs +2121 -0
- package/dist/esm/node_modules/node-forge/lib/util.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib/x509.mjs +2168 -0
- package/dist/esm/node_modules/node-forge/lib/x509.mjs.map +1 -0
- package/dist/esm/node_modules/node-forge/lib.mjs +10 -0
- package/dist/esm/node_modules/node-forge/lib.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/NodeRSA.mjs +338 -0
- package/dist/esm/node_modules/node-rsa/src/NodeRSA.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/encryptEngines.mjs +23 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/encryptEngines.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/io.mjs +62 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/io.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/js.mjs +41 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/js.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/node12.mjs +46 -0
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/node12.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/formats/components.mjs +52 -0
- package/dist/esm/node_modules/node-rsa/src/formats/components.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/formats/formats.mjs +83 -0
- package/dist/esm/node_modules/node-rsa/src/formats/formats.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/formats/openssh.mjs +174 -0
- package/dist/esm/node_modules/node-rsa/src/formats/openssh.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs1.mjs +101 -0
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs1.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs8.mjs +128 -0
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs8.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/libs/jsbn.mjs +1344 -0
- package/dist/esm/node_modules/node-rsa/src/libs/jsbn.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/libs/rsa.mjs +228 -0
- package/dist/esm/node_modules/node-rsa/src/libs/rsa.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/oaep.mjs +120 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/oaep.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/pkcs1.mjs +172 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/pkcs1.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/pss.mjs +120 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/pss.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/schemes.mjs +25 -0
- package/dist/esm/node_modules/node-rsa/src/schemes/schemes.mjs.map +1 -0
- package/dist/esm/node_modules/node-rsa/src/utils.mjs +81 -0
- package/dist/esm/node_modules/node-rsa/src/utils.mjs.map +1 -0
- package/dist/esm/node_modules/pako/index.mjs +22 -0
- package/dist/esm/node_modules/pako/index.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/deflate.mjs +308 -0
- package/dist/esm/node_modules/pako/lib/deflate.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/inflate.mjs +314 -0
- package/dist/esm/node_modules/pako/lib/inflate.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/utils/common.mjs +74 -0
- package/dist/esm/node_modules/pako/lib/utils/common.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/utils/strings.mjs +128 -0
- package/dist/esm/node_modules/pako/lib/utils/strings.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/adler32.mjs +26 -0
- package/dist/esm/node_modules/pako/lib/zlib/adler32.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/constants.mjs +40 -0
- package/dist/esm/node_modules/pako/lib/zlib/constants.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/crc32.mjs +28 -0
- package/dist/esm/node_modules/pako/lib/zlib/crc32.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/deflate.mjs +886 -0
- package/dist/esm/node_modules/pako/lib/zlib/deflate.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/gzheader.mjs +24 -0
- package/dist/esm/node_modules/pako/lib/zlib/gzheader.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/inffast.mjs +224 -0
- package/dist/esm/node_modules/pako/lib/zlib/inffast.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/inflate.mjs +1035 -0
- package/dist/esm/node_modules/pako/lib/zlib/inflate.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/inftrees.mjs +275 -0
- package/dist/esm/node_modules/pako/lib/zlib/inftrees.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/messages.mjs +22 -0
- package/dist/esm/node_modules/pako/lib/zlib/messages.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/trees.mjs +623 -0
- package/dist/esm/node_modules/pako/lib/zlib/trees.mjs.map +1 -0
- package/dist/esm/node_modules/pako/lib/zlib/zstream.mjs +26 -0
- package/dist/esm/node_modules/pako/lib/zlib/zstream.mjs.map +1 -0
- package/dist/esm/node_modules/possible-typed-array-names/index.mjs +26 -0
- package/dist/esm/node_modules/possible-typed-array-names/index.mjs.map +1 -0
- package/dist/esm/node_modules/safe-regex-test/index.mjs +25 -0
- package/dist/esm/node_modules/safe-regex-test/index.mjs.map +1 -0
- package/dist/esm/node_modules/safer-buffer/safer.mjs +50 -0
- package/dist/esm/node_modules/safer-buffer/safer.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/index.mjs +117 -0
- package/dist/esm/node_modules/samlify/build/index.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/api.mjs +33 -0
- package/dist/esm/node_modules/samlify/build/src/api.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/binding-post.mjs +504 -0
- package/dist/esm/node_modules/samlify/build/src/binding-post.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/binding-redirect.mjs +339 -0
- package/dist/esm/node_modules/samlify/build/src/binding-redirect.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/binding-simplesign.mjs +358 -0
- package/dist/esm/node_modules/samlify/build/src/binding-simplesign.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/entity-idp.mjs +279 -0
- package/dist/esm/node_modules/samlify/build/src/entity-idp.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/entity-sp.mjs +142 -0
- package/dist/esm/node_modules/samlify/build/src/entity-sp.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/entity.mjs +253 -0
- package/dist/esm/node_modules/samlify/build/src/entity.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/extractor.mjs +352 -0
- package/dist/esm/node_modules/samlify/build/src/extractor.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/flow.mjs +389 -0
- package/dist/esm/node_modules/samlify/build/src/flow.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/libsaml.mjs +544 -0
- package/dist/esm/node_modules/samlify/build/src/libsaml.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/metadata-idp.mjs +171 -0
- package/dist/esm/node_modules/samlify/build/src/metadata-idp.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/metadata-sp.mjs +214 -0
- package/dist/esm/node_modules/samlify/build/src/metadata-sp.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/metadata.mjs +200 -0
- package/dist/esm/node_modules/samlify/build/src/metadata.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/urn.mjs +225 -0
- package/dist/esm/node_modules/samlify/build/src/urn.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/utility.mjs +277 -0
- package/dist/esm/node_modules/samlify/build/src/utility.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/build/src/validator.mjs +53 -0
- package/dist/esm/node_modules/samlify/build/src/validator.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/index.mjs +39 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/index.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/md5.mjs +154 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/md5.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/nil.mjs +12 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/nil.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/parse.mjs +36 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/parse.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/regex.mjs +12 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/regex.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/rng.mjs +20 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/rng.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/sha1.mjs +101 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/sha1.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/stringify.mjs +22 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/stringify.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v1.mjs +63 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v1.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v3.mjs +17 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v3.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v35.mjs +48 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v35.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v4.mjs +28 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v4.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v5.mjs +17 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v5.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/validate.mjs +17 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/validate.mjs.map +1 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/version.mjs +18 -0
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/version.mjs.map +1 -0
- package/dist/esm/node_modules/set-function-length/index.mjs +38 -0
- package/dist/esm/node_modules/set-function-length/index.mjs.map +1 -0
- package/dist/esm/node_modules/util/support/isBufferBrowser.mjs +14 -0
- package/dist/esm/node_modules/util/support/isBufferBrowser.mjs.map +1 -0
- package/dist/esm/node_modules/util/support/types.mjs +218 -0
- package/dist/esm/node_modules/util/support/types.mjs.map +1 -0
- package/dist/esm/node_modules/util/util.mjs +443 -0
- package/dist/esm/node_modules/util/util.mjs.map +1 -0
- package/dist/esm/node_modules/which-typed-array/index.mjs +93 -0
- package/dist/esm/node_modules/which-typed-array/index.mjs.map +1 -0
- package/dist/esm/node_modules/xml/lib/escapeForXML.mjs +24 -0
- package/dist/esm/node_modules/xml/lib/escapeForXML.mjs.map +1 -0
- package/dist/esm/node_modules/xml/lib/xml.mjs +183 -0
- package/dist/esm/node_modules/xml/lib/xml.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/c14n-canonicalization.mjs +199 -0
- package/dist/esm/node_modules/xml-crypto/lib/c14n-canonicalization.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/enveloped-signature.mjs +49 -0
- package/dist/esm/node_modules/xml-crypto/lib/enveloped-signature.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/exclusive-canonicalization.mjs +220 -0
- package/dist/esm/node_modules/xml-crypto/lib/exclusive-canonicalization.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/hash-algorithms.mjs +53 -0
- package/dist/esm/node_modules/xml-crypto/lib/hash-algorithms.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/index.mjs +70 -0
- package/dist/esm/node_modules/xml-crypto/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/signature-algorithms.mjs +88 -0
- package/dist/esm/node_modules/xml-crypto/lib/signature-algorithms.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/signed-xml.mjs +693 -0
- package/dist/esm/node_modules/xml-crypto/lib/signed-xml.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/types.mjs +55 -0
- package/dist/esm/node_modules/xml-crypto/lib/types.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/lib/utils.mjs +210 -0
- package/dist/esm/node_modules/xml-crypto/lib/utils.mjs.map +1 -0
- package/dist/esm/node_modules/xml-crypto/node_modules/xpath/xpath.mjs +3442 -0
- package/dist/esm/node_modules/xml-crypto/node_modules/xpath/xpath.mjs.map +1 -0
- package/dist/esm/node_modules/xml-escape/index.mjs +27 -0
- package/dist/esm/node_modules/xml-escape/index.mjs.map +1 -0
- package/dist/esm/node_modules/xpath/xpath.mjs +3407 -0
- package/dist/esm/node_modules/xpath/xpath.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/classic/errors.mjs +30 -0
- package/dist/esm/node_modules/zod/v4/classic/errors.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/classic/iso.mjs +38 -0
- package/dist/esm/node_modules/zod/v4/classic/iso.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/classic/parse.mjs +20 -0
- package/dist/esm/node_modules/zod/v4/classic/parse.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/classic/schemas.mjs +519 -0
- package/dist/esm/node_modules/zod/v4/classic/schemas.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/api.mjs +395 -0
- package/dist/esm/node_modules/zod/v4/core/api.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/checks.mjs +226 -0
- package/dist/esm/node_modules/zod/v4/core/checks.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/core.mjs +57 -0
- package/dist/esm/node_modules/zod/v4/core/core.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/doc.mjs +34 -0
- package/dist/esm/node_modules/zod/v4/core/doc.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/errors.mjs +63 -0
- package/dist/esm/node_modules/zod/v4/core/errors.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/parse.mjs +110 -0
- package/dist/esm/node_modules/zod/v4/core/parse.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/regexes.mjs +60 -0
- package/dist/esm/node_modules/zod/v4/core/regexes.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/registries.mjs +53 -0
- package/dist/esm/node_modules/zod/v4/core/registries.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/schemas.mjs +1069 -0
- package/dist/esm/node_modules/zod/v4/core/schemas.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/util.mjs +302 -0
- package/dist/esm/node_modules/zod/v4/core/util.mjs.map +1 -0
- package/dist/esm/node_modules/zod/v4/core/versions.mjs +10 -0
- package/dist/esm/node_modules/zod/v4/core/versions.mjs.map +1 -0
- package/dist/esm/schemas/user.schema.mjs +17 -0
- package/dist/esm/schemas/user.schema.mjs.map +1 -1
- package/dist/esm/services/dictionary.service.mjs +8 -31
- package/dist/esm/services/dictionary.service.mjs.map +1 -1
- package/dist/esm/services/email.service.mjs +13 -0
- package/dist/esm/services/email.service.mjs.map +1 -1
- package/dist/esm/types/user.types.mjs.map +1 -1
- package/dist/esm/utils/auth/getAuth.mjs +61 -27
- package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
- package/dist/esm/utils/mongoDB/connectDB.mjs.map +1 -1
- package/dist/types/MagicLinkEmail.d.ts +8 -0
- package/dist/types/MagicLinkEmail.d.ts.map +1 -0
- package/dist/types/controllers/dictionary.controller.d.ts +18 -5
- package/dist/types/controllers/dictionary.controller.d.ts.map +1 -1
- package/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -1
- package/dist/types/controllers/tag.controller.d.ts.map +1 -1
- package/dist/types/emails/InviteUserEmail.d.ts +4 -4
- package/dist/types/emails/InviteUserEmail.d.ts.map +1 -1
- package/dist/types/emails/MagicLinkEmail.d.ts +31 -0
- package/dist/types/emails/MagicLinkEmail.d.ts.map +1 -0
- package/dist/types/emails/OAuthTokenCreatedEmail.d.ts +4 -4
- package/dist/types/emails/ResetUserPassword.d.ts +4 -4
- package/dist/types/emails/ResetUserPassword.d.ts.map +1 -1
- package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentCancellation.d.ts.map +1 -1
- package/dist/types/emails/SubscriptionPaymentError.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/emails/Welcome.d.ts.map +1 -1
- package/dist/types/export.d.ts +1 -3
- package/dist/types/models/dictionary.model.d.ts +4 -4
- package/dist/types/models/discussion.model.d.ts +2 -2
- package/dist/types/models/oAuth2.model.d.ts +3 -3
- package/dist/types/schemas/dictionary.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts.map +1 -1
- package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
- package/dist/types/schemas/oAuth2.schema.d.ts.map +1 -1
- package/dist/types/schemas/organization.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts.map +1 -1
- package/dist/types/schemas/session.schema.d.ts +6 -6
- package/dist/types/schemas/tag.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts.map +1 -1
- package/dist/types/services/dictionary.service.d.ts +1 -12
- package/dist/types/services/dictionary.service.d.ts.map +1 -1
- package/dist/types/services/email.service.d.ts +21 -10
- package/dist/types/services/email.service.d.ts.map +1 -1
- package/dist/types/types/dictionary.types.d.ts +1 -0
- package/dist/types/types/dictionary.types.d.ts.map +1 -1
- package/dist/types/types/user.types.d.ts +1 -0
- package/dist/types/types/user.types.d.ts.map +1 -1
- package/dist/types/utils/auth/getAuth.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/mongoDB/connectDB.d.ts +2 -2
- package/dist/types/utils/mongoDB/connectDB.d.ts.map +1 -1
- package/package.json +38 -33
- package/dist/assets/controllers/test.json +0 -4
- package/dist/cjs/routes/audit.routes.cjs +0 -35
- package/dist/cjs/routes/audit.routes.cjs.map +0 -1
- package/dist/cjs/schemas/audit.schema.cjs +0 -65
- package/dist/cjs/schemas/audit.schema.cjs.map +0 -1
- package/dist/cjs/services/audit.service.cjs +0 -49
- package/dist/cjs/services/audit.service.cjs.map +0 -1
- package/dist/cjs/types/audit.types.cjs +0 -0
- package/dist/esm/routes/audit.routes.mjs +0 -31
- package/dist/esm/routes/audit.routes.mjs.map +0 -1
- package/dist/esm/schemas/audit.schema.mjs +0 -63
- package/dist/esm/schemas/audit.schema.mjs.map +0 -1
- package/dist/esm/services/audit.service.mjs +0 -46
- package/dist/esm/services/audit.service.mjs.map +0 -1
- package/dist/esm/types/audit.types.mjs +0 -0
- package/dist/types/emails/index.d.ts.map +0 -1
- package/dist/types/export.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/routes/audit.routes.d.ts +0 -29
- package/dist/types/routes/audit.routes.d.ts.map +0 -1
- package/dist/types/schemas/audit.schema.d.ts +0 -19
- package/dist/types/schemas/audit.schema.d.ts.map +0 -1
- package/dist/types/services/audit.service.d.ts +0 -36
- package/dist/types/services/audit.service.d.ts.map +0 -1
- package/dist/types/types/audit.types.d.ts +0 -29
- package/dist/types/types/audit.types.d.ts.map +0 -1
- package/dist/types/utils/access.d.ts.map +0 -1
- package/dist/types/utils/errors/index.d.ts.map +0 -1
|
@@ -0,0 +1,1306 @@
|
|
|
1
|
+
import { __commonJS } from "../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_conventions } from "./conventions.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/@xmldom/xmldom/lib/dom.js
|
|
5
|
+
var require_dom = /* @__PURE__ */ __commonJS({ "../../node_modules/@xmldom/xmldom/lib/dom.js": ((exports) => {
|
|
6
|
+
var conventions = require_conventions();
|
|
7
|
+
var find = conventions.find;
|
|
8
|
+
var NAMESPACE = conventions.NAMESPACE;
|
|
9
|
+
/**
|
|
10
|
+
* A prerequisite for `[].filter`, to drop elements that are empty
|
|
11
|
+
* @param {string} input
|
|
12
|
+
* @returns {boolean}
|
|
13
|
+
*/
|
|
14
|
+
function notEmptyString(input) {
|
|
15
|
+
return input !== "";
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @see https://infra.spec.whatwg.org/#split-on-ascii-whitespace
|
|
19
|
+
* @see https://infra.spec.whatwg.org/#ascii-whitespace
|
|
20
|
+
*
|
|
21
|
+
* @param {string} input
|
|
22
|
+
* @returns {string[]} (can be empty)
|
|
23
|
+
*/
|
|
24
|
+
function splitOnASCIIWhitespace(input) {
|
|
25
|
+
return input ? input.split(/[\t\n\f\r ]+/).filter(notEmptyString) : [];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Adds element as a key to current if it is not already present.
|
|
29
|
+
*
|
|
30
|
+
* @param {Record<string, boolean | undefined>} current
|
|
31
|
+
* @param {string} element
|
|
32
|
+
* @returns {Record<string, boolean | undefined>}
|
|
33
|
+
*/
|
|
34
|
+
function orderedSetReducer(current, element) {
|
|
35
|
+
if (!current.hasOwnProperty(element)) current[element] = true;
|
|
36
|
+
return current;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @see https://infra.spec.whatwg.org/#ordered-set
|
|
40
|
+
* @param {string} input
|
|
41
|
+
* @returns {string[]}
|
|
42
|
+
*/
|
|
43
|
+
function toOrderedSet(input) {
|
|
44
|
+
if (!input) return [];
|
|
45
|
+
var list = splitOnASCIIWhitespace(input);
|
|
46
|
+
return Object.keys(list.reduce(orderedSetReducer, {}));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Uses `list.indexOf` to implement something like `Array.prototype.includes`,
|
|
50
|
+
* which we can not rely on being available.
|
|
51
|
+
*
|
|
52
|
+
* @param {any[]} list
|
|
53
|
+
* @returns {function(any): boolean}
|
|
54
|
+
*/
|
|
55
|
+
function arrayIncludes(list) {
|
|
56
|
+
return function(element) {
|
|
57
|
+
return list && list.indexOf(element) !== -1;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function copy(src, dest) {
|
|
61
|
+
for (var p in src) if (Object.prototype.hasOwnProperty.call(src, p)) dest[p] = src[p];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
^\w+\.prototype\.([_\w]+)\s*=\s*((?:.*\{\s*?[\r\n][\s\S]*?^})|\S.*?(?=[;\r\n]));?
|
|
65
|
+
^\w+\.prototype\.([_\w]+)\s*=\s*(\S.*?(?=[;\r\n]));?
|
|
66
|
+
*/
|
|
67
|
+
function _extends(Class, Super) {
|
|
68
|
+
var pt = Class.prototype;
|
|
69
|
+
if (!(pt instanceof Super)) {
|
|
70
|
+
function t() {}
|
|
71
|
+
t.prototype = Super.prototype;
|
|
72
|
+
t = new t();
|
|
73
|
+
copy(pt, t);
|
|
74
|
+
Class.prototype = pt = t;
|
|
75
|
+
}
|
|
76
|
+
if (pt.constructor != Class) {
|
|
77
|
+
if (typeof Class != "function") console.error("unknown Class:" + Class);
|
|
78
|
+
pt.constructor = Class;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
var NodeType = {};
|
|
82
|
+
var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;
|
|
83
|
+
var ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;
|
|
84
|
+
var TEXT_NODE = NodeType.TEXT_NODE = 3;
|
|
85
|
+
var CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;
|
|
86
|
+
var ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;
|
|
87
|
+
var ENTITY_NODE = NodeType.ENTITY_NODE = 6;
|
|
88
|
+
var PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;
|
|
89
|
+
var COMMENT_NODE = NodeType.COMMENT_NODE = 8;
|
|
90
|
+
var DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;
|
|
91
|
+
var DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;
|
|
92
|
+
var DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;
|
|
93
|
+
var NOTATION_NODE = NodeType.NOTATION_NODE = 12;
|
|
94
|
+
var ExceptionCode = {};
|
|
95
|
+
var ExceptionMessage = {};
|
|
96
|
+
ExceptionCode.INDEX_SIZE_ERR = (ExceptionMessage[1] = "Index size error", 1);
|
|
97
|
+
ExceptionCode.DOMSTRING_SIZE_ERR = (ExceptionMessage[2] = "DOMString size error", 2);
|
|
98
|
+
var HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = (ExceptionMessage[3] = "Hierarchy request error", 3);
|
|
99
|
+
ExceptionCode.WRONG_DOCUMENT_ERR = (ExceptionMessage[4] = "Wrong document", 4);
|
|
100
|
+
ExceptionCode.INVALID_CHARACTER_ERR = (ExceptionMessage[5] = "Invalid character", 5);
|
|
101
|
+
ExceptionCode.NO_DATA_ALLOWED_ERR = (ExceptionMessage[6] = "No data allowed", 6);
|
|
102
|
+
ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = (ExceptionMessage[7] = "No modification allowed", 7);
|
|
103
|
+
var NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = (ExceptionMessage[8] = "Not found", 8);
|
|
104
|
+
ExceptionCode.NOT_SUPPORTED_ERR = (ExceptionMessage[9] = "Not supported", 9);
|
|
105
|
+
var INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = (ExceptionMessage[10] = "Attribute in use", 10);
|
|
106
|
+
ExceptionCode.INVALID_STATE_ERR = (ExceptionMessage[11] = "Invalid state", 11);
|
|
107
|
+
ExceptionCode.SYNTAX_ERR = (ExceptionMessage[12] = "Syntax error", 12);
|
|
108
|
+
ExceptionCode.INVALID_MODIFICATION_ERR = (ExceptionMessage[13] = "Invalid modification", 13);
|
|
109
|
+
ExceptionCode.NAMESPACE_ERR = (ExceptionMessage[14] = "Invalid namespace", 14);
|
|
110
|
+
ExceptionCode.INVALID_ACCESS_ERR = (ExceptionMessage[15] = "Invalid access", 15);
|
|
111
|
+
/**
|
|
112
|
+
* DOM Level 2
|
|
113
|
+
* Object DOMException
|
|
114
|
+
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html
|
|
115
|
+
* @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html
|
|
116
|
+
*/
|
|
117
|
+
function DOMException(code, message) {
|
|
118
|
+
if (message instanceof Error) var error = message;
|
|
119
|
+
else {
|
|
120
|
+
error = this;
|
|
121
|
+
Error.call(this, ExceptionMessage[code]);
|
|
122
|
+
this.message = ExceptionMessage[code];
|
|
123
|
+
if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
|
|
124
|
+
}
|
|
125
|
+
error.code = code;
|
|
126
|
+
if (message) this.message = this.message + ": " + message;
|
|
127
|
+
return error;
|
|
128
|
+
}
|
|
129
|
+
DOMException.prototype = Error.prototype;
|
|
130
|
+
copy(ExceptionCode, DOMException);
|
|
131
|
+
/**
|
|
132
|
+
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177
|
|
133
|
+
* The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.
|
|
134
|
+
* The items in the NodeList are accessible via an integral index, starting from 0.
|
|
135
|
+
*/
|
|
136
|
+
function NodeList() {}
|
|
137
|
+
NodeList.prototype = {
|
|
138
|
+
length: 0,
|
|
139
|
+
item: function(index) {
|
|
140
|
+
return index >= 0 && index < this.length ? this[index] : null;
|
|
141
|
+
},
|
|
142
|
+
toString: function(isHTML, nodeFilter) {
|
|
143
|
+
for (var buf = [], i = 0; i < this.length; i++) serializeToString(this[i], buf, isHTML, nodeFilter);
|
|
144
|
+
return buf.join("");
|
|
145
|
+
},
|
|
146
|
+
filter: function(predicate) {
|
|
147
|
+
return Array.prototype.filter.call(this, predicate);
|
|
148
|
+
},
|
|
149
|
+
indexOf: function(item) {
|
|
150
|
+
return Array.prototype.indexOf.call(this, item);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
function LiveNodeList(node, refresh) {
|
|
154
|
+
this._node = node;
|
|
155
|
+
this._refresh = refresh;
|
|
156
|
+
_updateLiveList(this);
|
|
157
|
+
}
|
|
158
|
+
function _updateLiveList(list) {
|
|
159
|
+
var inc = list._node._inc || list._node.ownerDocument._inc;
|
|
160
|
+
if (list._inc !== inc) {
|
|
161
|
+
var ls = list._refresh(list._node);
|
|
162
|
+
__set__(list, "length", ls.length);
|
|
163
|
+
if (!list.$$length || ls.length < list.$$length) {
|
|
164
|
+
for (var i = ls.length; i in list; i++) if (Object.prototype.hasOwnProperty.call(list, i)) delete list[i];
|
|
165
|
+
}
|
|
166
|
+
copy(ls, list);
|
|
167
|
+
list._inc = inc;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
LiveNodeList.prototype.item = function(i) {
|
|
171
|
+
_updateLiveList(this);
|
|
172
|
+
return this[i] || null;
|
|
173
|
+
};
|
|
174
|
+
_extends(LiveNodeList, NodeList);
|
|
175
|
+
/**
|
|
176
|
+
* Objects implementing the NamedNodeMap interface are used
|
|
177
|
+
* to represent collections of nodes that can be accessed by name.
|
|
178
|
+
* Note that NamedNodeMap does not inherit from NodeList;
|
|
179
|
+
* NamedNodeMaps are not maintained in any particular order.
|
|
180
|
+
* Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index,
|
|
181
|
+
* but this is simply to allow convenient enumeration of the contents of a NamedNodeMap,
|
|
182
|
+
* and does not imply that the DOM specifies an order to these Nodes.
|
|
183
|
+
* NamedNodeMap objects in the DOM are live.
|
|
184
|
+
* used for attributes or DocumentType entities
|
|
185
|
+
*/
|
|
186
|
+
function NamedNodeMap() {}
|
|
187
|
+
function _findNodeIndex(list, node) {
|
|
188
|
+
var i = list.length;
|
|
189
|
+
while (i--) if (list[i] === node) return i;
|
|
190
|
+
}
|
|
191
|
+
function _addNamedNode(el, list, newAttr, oldAttr) {
|
|
192
|
+
if (oldAttr) list[_findNodeIndex(list, oldAttr)] = newAttr;
|
|
193
|
+
else list[list.length++] = newAttr;
|
|
194
|
+
if (el) {
|
|
195
|
+
newAttr.ownerElement = el;
|
|
196
|
+
var doc = el.ownerDocument;
|
|
197
|
+
if (doc) {
|
|
198
|
+
oldAttr && _onRemoveAttribute(doc, el, oldAttr);
|
|
199
|
+
_onAddAttribute(doc, el, newAttr);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
function _removeNamedNode(el, list, attr) {
|
|
204
|
+
var i = _findNodeIndex(list, attr);
|
|
205
|
+
if (i >= 0) {
|
|
206
|
+
var lastIndex = list.length - 1;
|
|
207
|
+
while (i < lastIndex) list[i] = list[++i];
|
|
208
|
+
list.length = lastIndex;
|
|
209
|
+
if (el) {
|
|
210
|
+
var doc = el.ownerDocument;
|
|
211
|
+
if (doc) {
|
|
212
|
+
_onRemoveAttribute(doc, el, attr);
|
|
213
|
+
attr.ownerElement = null;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
} else throw new DOMException(NOT_FOUND_ERR, /* @__PURE__ */ new Error(el.tagName + "@" + attr));
|
|
217
|
+
}
|
|
218
|
+
NamedNodeMap.prototype = {
|
|
219
|
+
length: 0,
|
|
220
|
+
item: NodeList.prototype.item,
|
|
221
|
+
getNamedItem: function(key) {
|
|
222
|
+
var i = this.length;
|
|
223
|
+
while (i--) {
|
|
224
|
+
var attr = this[i];
|
|
225
|
+
if (attr.nodeName == key) return attr;
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
setNamedItem: function(attr) {
|
|
229
|
+
var el = attr.ownerElement;
|
|
230
|
+
if (el && el != this._ownerElement) throw new DOMException(INUSE_ATTRIBUTE_ERR);
|
|
231
|
+
var oldAttr = this.getNamedItem(attr.nodeName);
|
|
232
|
+
_addNamedNode(this._ownerElement, this, attr, oldAttr);
|
|
233
|
+
return oldAttr;
|
|
234
|
+
},
|
|
235
|
+
setNamedItemNS: function(attr) {
|
|
236
|
+
var el = attr.ownerElement, oldAttr;
|
|
237
|
+
if (el && el != this._ownerElement) throw new DOMException(INUSE_ATTRIBUTE_ERR);
|
|
238
|
+
oldAttr = this.getNamedItemNS(attr.namespaceURI, attr.localName);
|
|
239
|
+
_addNamedNode(this._ownerElement, this, attr, oldAttr);
|
|
240
|
+
return oldAttr;
|
|
241
|
+
},
|
|
242
|
+
removeNamedItem: function(key) {
|
|
243
|
+
var attr = this.getNamedItem(key);
|
|
244
|
+
_removeNamedNode(this._ownerElement, this, attr);
|
|
245
|
+
return attr;
|
|
246
|
+
},
|
|
247
|
+
removeNamedItemNS: function(namespaceURI, localName) {
|
|
248
|
+
var attr = this.getNamedItemNS(namespaceURI, localName);
|
|
249
|
+
_removeNamedNode(this._ownerElement, this, attr);
|
|
250
|
+
return attr;
|
|
251
|
+
},
|
|
252
|
+
getNamedItemNS: function(namespaceURI, localName) {
|
|
253
|
+
var i = this.length;
|
|
254
|
+
while (i--) {
|
|
255
|
+
var node = this[i];
|
|
256
|
+
if (node.localName == localName && node.namespaceURI == namespaceURI) return node;
|
|
257
|
+
}
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* The DOMImplementation interface represents an object providing methods
|
|
263
|
+
* which are not dependent on any particular document.
|
|
264
|
+
* Such an object is returned by the `Document.implementation` property.
|
|
265
|
+
*
|
|
266
|
+
* __The individual methods describe the differences compared to the specs.__
|
|
267
|
+
*
|
|
268
|
+
* @constructor
|
|
269
|
+
*
|
|
270
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN
|
|
271
|
+
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core (Initial)
|
|
272
|
+
* @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core
|
|
273
|
+
* @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core
|
|
274
|
+
* @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard
|
|
275
|
+
*/
|
|
276
|
+
function DOMImplementation() {}
|
|
277
|
+
DOMImplementation.prototype = {
|
|
278
|
+
hasFeature: function(feature, version) {
|
|
279
|
+
return true;
|
|
280
|
+
},
|
|
281
|
+
createDocument: function(namespaceURI, qualifiedName, doctype) {
|
|
282
|
+
var doc = new Document();
|
|
283
|
+
doc.implementation = this;
|
|
284
|
+
doc.childNodes = new NodeList();
|
|
285
|
+
doc.doctype = doctype || null;
|
|
286
|
+
if (doctype) doc.appendChild(doctype);
|
|
287
|
+
if (qualifiedName) {
|
|
288
|
+
var root = doc.createElementNS(namespaceURI, qualifiedName);
|
|
289
|
+
doc.appendChild(root);
|
|
290
|
+
}
|
|
291
|
+
return doc;
|
|
292
|
+
},
|
|
293
|
+
createDocumentType: function(qualifiedName, publicId, systemId) {
|
|
294
|
+
var node = new DocumentType();
|
|
295
|
+
node.name = qualifiedName;
|
|
296
|
+
node.nodeName = qualifiedName;
|
|
297
|
+
node.publicId = publicId || "";
|
|
298
|
+
node.systemId = systemId || "";
|
|
299
|
+
return node;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247
|
|
304
|
+
*/
|
|
305
|
+
function Node() {}
|
|
306
|
+
Node.prototype = {
|
|
307
|
+
firstChild: null,
|
|
308
|
+
lastChild: null,
|
|
309
|
+
previousSibling: null,
|
|
310
|
+
nextSibling: null,
|
|
311
|
+
attributes: null,
|
|
312
|
+
parentNode: null,
|
|
313
|
+
childNodes: null,
|
|
314
|
+
ownerDocument: null,
|
|
315
|
+
nodeValue: null,
|
|
316
|
+
namespaceURI: null,
|
|
317
|
+
prefix: null,
|
|
318
|
+
localName: null,
|
|
319
|
+
insertBefore: function(newChild, refChild) {
|
|
320
|
+
return _insertBefore(this, newChild, refChild);
|
|
321
|
+
},
|
|
322
|
+
replaceChild: function(newChild, oldChild) {
|
|
323
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
324
|
+
if (oldChild) this.removeChild(oldChild);
|
|
325
|
+
},
|
|
326
|
+
removeChild: function(oldChild) {
|
|
327
|
+
return _removeChild(this, oldChild);
|
|
328
|
+
},
|
|
329
|
+
appendChild: function(newChild) {
|
|
330
|
+
return this.insertBefore(newChild, null);
|
|
331
|
+
},
|
|
332
|
+
hasChildNodes: function() {
|
|
333
|
+
return this.firstChild != null;
|
|
334
|
+
},
|
|
335
|
+
cloneNode: function(deep) {
|
|
336
|
+
return cloneNode(this.ownerDocument || this, this, deep);
|
|
337
|
+
},
|
|
338
|
+
normalize: function() {
|
|
339
|
+
var child = this.firstChild;
|
|
340
|
+
while (child) {
|
|
341
|
+
var next = child.nextSibling;
|
|
342
|
+
if (next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE) {
|
|
343
|
+
this.removeChild(next);
|
|
344
|
+
child.appendData(next.data);
|
|
345
|
+
} else {
|
|
346
|
+
child.normalize();
|
|
347
|
+
child = next;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
isSupported: function(feature, version) {
|
|
352
|
+
return this.ownerDocument.implementation.hasFeature(feature, version);
|
|
353
|
+
},
|
|
354
|
+
hasAttributes: function() {
|
|
355
|
+
return this.attributes.length > 0;
|
|
356
|
+
},
|
|
357
|
+
lookupPrefix: function(namespaceURI) {
|
|
358
|
+
var el = this;
|
|
359
|
+
while (el) {
|
|
360
|
+
var map = el._nsMap;
|
|
361
|
+
if (map) {
|
|
362
|
+
for (var n in map) if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) return n;
|
|
363
|
+
}
|
|
364
|
+
el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
|
|
365
|
+
}
|
|
366
|
+
return null;
|
|
367
|
+
},
|
|
368
|
+
lookupNamespaceURI: function(prefix) {
|
|
369
|
+
var el = this;
|
|
370
|
+
while (el) {
|
|
371
|
+
var map = el._nsMap;
|
|
372
|
+
if (map) {
|
|
373
|
+
if (Object.prototype.hasOwnProperty.call(map, prefix)) return map[prefix];
|
|
374
|
+
}
|
|
375
|
+
el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
|
|
376
|
+
}
|
|
377
|
+
return null;
|
|
378
|
+
},
|
|
379
|
+
isDefaultNamespace: function(namespaceURI) {
|
|
380
|
+
return this.lookupPrefix(namespaceURI) == null;
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
function _xmlEncoder(c) {
|
|
384
|
+
return c == "<" && "<" || c == ">" && ">" || c == "&" && "&" || c == "\"" && """ || "&#" + c.charCodeAt() + ";";
|
|
385
|
+
}
|
|
386
|
+
copy(NodeType, Node);
|
|
387
|
+
copy(NodeType, Node.prototype);
|
|
388
|
+
/**
|
|
389
|
+
* @param callback return true for continue,false for break
|
|
390
|
+
* @return boolean true: break visit;
|
|
391
|
+
*/
|
|
392
|
+
function _visitNode(node, callback) {
|
|
393
|
+
if (callback(node)) return true;
|
|
394
|
+
if (node = node.firstChild) do
|
|
395
|
+
if (_visitNode(node, callback)) return true;
|
|
396
|
+
while (node = node.nextSibling);
|
|
397
|
+
}
|
|
398
|
+
function Document() {
|
|
399
|
+
this.ownerDocument = this;
|
|
400
|
+
}
|
|
401
|
+
function _onAddAttribute(doc, el, newAttr) {
|
|
402
|
+
doc && doc._inc++;
|
|
403
|
+
if (newAttr.namespaceURI === NAMESPACE.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
|
|
404
|
+
}
|
|
405
|
+
function _onRemoveAttribute(doc, el, newAttr, remove) {
|
|
406
|
+
doc && doc._inc++;
|
|
407
|
+
if (newAttr.namespaceURI === NAMESPACE.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Updates `el.childNodes`, updating the indexed items and it's `length`.
|
|
411
|
+
* Passing `newChild` means it will be appended.
|
|
412
|
+
* Otherwise it's assumed that an item has been removed,
|
|
413
|
+
* and `el.firstNode` and it's `.nextSibling` are used
|
|
414
|
+
* to walk the current list of child nodes.
|
|
415
|
+
*
|
|
416
|
+
* @param {Document} doc
|
|
417
|
+
* @param {Node} el
|
|
418
|
+
* @param {Node} [newChild]
|
|
419
|
+
* @private
|
|
420
|
+
*/
|
|
421
|
+
function _onUpdateChild(doc, el, newChild) {
|
|
422
|
+
if (doc && doc._inc) {
|
|
423
|
+
doc._inc++;
|
|
424
|
+
var cs = el.childNodes;
|
|
425
|
+
if (newChild) cs[cs.length++] = newChild;
|
|
426
|
+
else {
|
|
427
|
+
var child = el.firstChild;
|
|
428
|
+
var i = 0;
|
|
429
|
+
while (child) {
|
|
430
|
+
cs[i++] = child;
|
|
431
|
+
child = child.nextSibling;
|
|
432
|
+
}
|
|
433
|
+
cs.length = i;
|
|
434
|
+
delete cs[cs.length];
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Removes the connections between `parentNode` and `child`
|
|
440
|
+
* and any existing `child.previousSibling` or `child.nextSibling`.
|
|
441
|
+
*
|
|
442
|
+
* @see https://github.com/xmldom/xmldom/issues/135
|
|
443
|
+
* @see https://github.com/xmldom/xmldom/issues/145
|
|
444
|
+
*
|
|
445
|
+
* @param {Node} parentNode
|
|
446
|
+
* @param {Node} child
|
|
447
|
+
* @returns {Node} the child that was removed.
|
|
448
|
+
* @private
|
|
449
|
+
*/
|
|
450
|
+
function _removeChild(parentNode, child) {
|
|
451
|
+
var previous = child.previousSibling;
|
|
452
|
+
var next = child.nextSibling;
|
|
453
|
+
if (previous) previous.nextSibling = next;
|
|
454
|
+
else parentNode.firstChild = next;
|
|
455
|
+
if (next) next.previousSibling = previous;
|
|
456
|
+
else parentNode.lastChild = previous;
|
|
457
|
+
child.parentNode = null;
|
|
458
|
+
child.previousSibling = null;
|
|
459
|
+
child.nextSibling = null;
|
|
460
|
+
_onUpdateChild(parentNode.ownerDocument, parentNode);
|
|
461
|
+
return child;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Returns `true` if `node` can be a parent for insertion.
|
|
465
|
+
* @param {Node} node
|
|
466
|
+
* @returns {boolean}
|
|
467
|
+
*/
|
|
468
|
+
function hasValidParentNodeType(node) {
|
|
469
|
+
return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Returns `true` if `node` can be inserted according to it's `nodeType`.
|
|
473
|
+
* @param {Node} node
|
|
474
|
+
* @returns {boolean}
|
|
475
|
+
*/
|
|
476
|
+
function hasInsertableNodeType(node) {
|
|
477
|
+
return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Returns true if `node` is a DOCTYPE node
|
|
481
|
+
* @param {Node} node
|
|
482
|
+
* @returns {boolean}
|
|
483
|
+
*/
|
|
484
|
+
function isDocTypeNode(node) {
|
|
485
|
+
return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Returns true if the node is an element
|
|
489
|
+
* @param {Node} node
|
|
490
|
+
* @returns {boolean}
|
|
491
|
+
*/
|
|
492
|
+
function isElementNode(node) {
|
|
493
|
+
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Returns true if `node` is a text node
|
|
497
|
+
* @param {Node} node
|
|
498
|
+
* @returns {boolean}
|
|
499
|
+
*/
|
|
500
|
+
function isTextNode(node) {
|
|
501
|
+
return node && node.nodeType === Node.TEXT_NODE;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Check if en element node can be inserted before `child`, or at the end if child is falsy,
|
|
505
|
+
* according to the presence and position of a doctype node on the same level.
|
|
506
|
+
*
|
|
507
|
+
* @param {Document} doc The document node
|
|
508
|
+
* @param {Node} child the node that would become the nextSibling if the element would be inserted
|
|
509
|
+
* @returns {boolean} `true` if an element can be inserted before child
|
|
510
|
+
* @private
|
|
511
|
+
* https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
512
|
+
*/
|
|
513
|
+
function isElementInsertionPossible(doc, child) {
|
|
514
|
+
var parentChildNodes = doc.childNodes || [];
|
|
515
|
+
if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) return false;
|
|
516
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
517
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Check if en element node can be inserted before `child`, or at the end if child is falsy,
|
|
521
|
+
* according to the presence and position of a doctype node on the same level.
|
|
522
|
+
*
|
|
523
|
+
* @param {Node} doc The document node
|
|
524
|
+
* @param {Node} child the node that would become the nextSibling if the element would be inserted
|
|
525
|
+
* @returns {boolean} `true` if an element can be inserted before child
|
|
526
|
+
* @private
|
|
527
|
+
* https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
528
|
+
*/
|
|
529
|
+
function isElementReplacementPossible(doc, child) {
|
|
530
|
+
var parentChildNodes = doc.childNodes || [];
|
|
531
|
+
function hasElementChildThatIsNotChild(node) {
|
|
532
|
+
return isElementNode(node) && node !== child;
|
|
533
|
+
}
|
|
534
|
+
if (find(parentChildNodes, hasElementChildThatIsNotChild)) return false;
|
|
535
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
536
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @private
|
|
540
|
+
* Steps 1-5 of the checks before inserting and before replacing a child are the same.
|
|
541
|
+
*
|
|
542
|
+
* @param {Node} parent the parent node to insert `node` into
|
|
543
|
+
* @param {Node} node the node to insert
|
|
544
|
+
* @param {Node=} child the node that should become the `nextSibling` of `node`
|
|
545
|
+
* @returns {Node}
|
|
546
|
+
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
547
|
+
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
548
|
+
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
549
|
+
* @see https://dom.spec.whatwg.org/#concept-node-replace
|
|
550
|
+
*/
|
|
551
|
+
function assertPreInsertionValidity1to5(parent, node, child) {
|
|
552
|
+
if (!hasValidParentNodeType(parent)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
|
|
553
|
+
if (child && child.parentNode !== parent) throw new DOMException(NOT_FOUND_ERR, "child not in parent");
|
|
554
|
+
if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType);
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* @private
|
|
558
|
+
* Step 6 of the checks before inserting and before replacing a child are different.
|
|
559
|
+
*
|
|
560
|
+
* @param {Document} parent the parent node to insert `node` into
|
|
561
|
+
* @param {Node} node the node to insert
|
|
562
|
+
* @param {Node | undefined} child the node that should become the `nextSibling` of `node`
|
|
563
|
+
* @returns {Node}
|
|
564
|
+
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
565
|
+
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
566
|
+
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
567
|
+
* @see https://dom.spec.whatwg.org/#concept-node-replace
|
|
568
|
+
*/
|
|
569
|
+
function assertPreInsertionValidityInDocument(parent, node, child) {
|
|
570
|
+
var parentChildNodes = parent.childNodes || [];
|
|
571
|
+
var nodeChildNodes = node.childNodes || [];
|
|
572
|
+
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
573
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
574
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
575
|
+
if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
576
|
+
}
|
|
577
|
+
if (isElementNode(node)) {
|
|
578
|
+
if (!isElementInsertionPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
579
|
+
}
|
|
580
|
+
if (isDocTypeNode(node)) {
|
|
581
|
+
if (find(parentChildNodes, isDocTypeNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
582
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
583
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
584
|
+
if (!child && parentElementChild) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* @private
|
|
589
|
+
* Step 6 of the checks before inserting and before replacing a child are different.
|
|
590
|
+
*
|
|
591
|
+
* @param {Document} parent the parent node to insert `node` into
|
|
592
|
+
* @param {Node} node the node to insert
|
|
593
|
+
* @param {Node | undefined} child the node that should become the `nextSibling` of `node`
|
|
594
|
+
* @returns {Node}
|
|
595
|
+
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
596
|
+
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
597
|
+
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
598
|
+
* @see https://dom.spec.whatwg.org/#concept-node-replace
|
|
599
|
+
*/
|
|
600
|
+
function assertPreReplacementValidityInDocument(parent, node, child) {
|
|
601
|
+
var parentChildNodes = parent.childNodes || [];
|
|
602
|
+
var nodeChildNodes = node.childNodes || [];
|
|
603
|
+
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
604
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
605
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
606
|
+
if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
607
|
+
}
|
|
608
|
+
if (isElementNode(node)) {
|
|
609
|
+
if (!isElementReplacementPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
610
|
+
}
|
|
611
|
+
if (isDocTypeNode(node)) {
|
|
612
|
+
function hasDoctypeChildThatIsNotChild(node$1) {
|
|
613
|
+
return isDocTypeNode(node$1) && node$1 !== child;
|
|
614
|
+
}
|
|
615
|
+
if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
616
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
617
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* @private
|
|
622
|
+
* @param {Node} parent the parent node to insert `node` into
|
|
623
|
+
* @param {Node} node the node to insert
|
|
624
|
+
* @param {Node=} child the node that should become the `nextSibling` of `node`
|
|
625
|
+
* @returns {Node}
|
|
626
|
+
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
627
|
+
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
628
|
+
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
629
|
+
*/
|
|
630
|
+
function _insertBefore(parent, node, child, _inDocumentAssertion) {
|
|
631
|
+
assertPreInsertionValidity1to5(parent, node, child);
|
|
632
|
+
if (parent.nodeType === Node.DOCUMENT_NODE) (_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);
|
|
633
|
+
var cp = node.parentNode;
|
|
634
|
+
if (cp) cp.removeChild(node);
|
|
635
|
+
if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
636
|
+
var newFirst = node.firstChild;
|
|
637
|
+
if (newFirst == null) return node;
|
|
638
|
+
var newLast = node.lastChild;
|
|
639
|
+
} else newFirst = newLast = node;
|
|
640
|
+
var pre = child ? child.previousSibling : parent.lastChild;
|
|
641
|
+
newFirst.previousSibling = pre;
|
|
642
|
+
newLast.nextSibling = child;
|
|
643
|
+
if (pre) pre.nextSibling = newFirst;
|
|
644
|
+
else parent.firstChild = newFirst;
|
|
645
|
+
if (child == null) parent.lastChild = newLast;
|
|
646
|
+
else child.previousSibling = newLast;
|
|
647
|
+
do {
|
|
648
|
+
newFirst.parentNode = parent;
|
|
649
|
+
var targetDoc = parent.ownerDocument || parent;
|
|
650
|
+
_updateOwnerDocument(newFirst, targetDoc);
|
|
651
|
+
} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
|
|
652
|
+
_onUpdateChild(parent.ownerDocument || parent, parent);
|
|
653
|
+
if (node.nodeType == DOCUMENT_FRAGMENT_NODE) node.firstChild = node.lastChild = null;
|
|
654
|
+
return node;
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Recursively updates the ownerDocument property for a node and all its descendants
|
|
658
|
+
* @param {Node} node
|
|
659
|
+
* @param {Document} newOwnerDocument
|
|
660
|
+
* @private
|
|
661
|
+
*/
|
|
662
|
+
function _updateOwnerDocument(node, newOwnerDocument) {
|
|
663
|
+
if (node.ownerDocument === newOwnerDocument) return;
|
|
664
|
+
node.ownerDocument = newOwnerDocument;
|
|
665
|
+
if (node.nodeType === ELEMENT_NODE && node.attributes) for (var i = 0; i < node.attributes.length; i++) {
|
|
666
|
+
var attr = node.attributes.item(i);
|
|
667
|
+
if (attr) attr.ownerDocument = newOwnerDocument;
|
|
668
|
+
}
|
|
669
|
+
var child = node.firstChild;
|
|
670
|
+
while (child) {
|
|
671
|
+
_updateOwnerDocument(child, newOwnerDocument);
|
|
672
|
+
child = child.nextSibling;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Appends `newChild` to `parentNode`.
|
|
677
|
+
* If `newChild` is already connected to a `parentNode` it is first removed from it.
|
|
678
|
+
*
|
|
679
|
+
* @see https://github.com/xmldom/xmldom/issues/135
|
|
680
|
+
* @see https://github.com/xmldom/xmldom/issues/145
|
|
681
|
+
* @param {Node} parentNode
|
|
682
|
+
* @param {Node} newChild
|
|
683
|
+
* @returns {Node}
|
|
684
|
+
* @private
|
|
685
|
+
*/
|
|
686
|
+
function _appendSingleChild(parentNode, newChild) {
|
|
687
|
+
if (newChild.parentNode) newChild.parentNode.removeChild(newChild);
|
|
688
|
+
newChild.parentNode = parentNode;
|
|
689
|
+
newChild.previousSibling = parentNode.lastChild;
|
|
690
|
+
newChild.nextSibling = null;
|
|
691
|
+
if (newChild.previousSibling) newChild.previousSibling.nextSibling = newChild;
|
|
692
|
+
else parentNode.firstChild = newChild;
|
|
693
|
+
parentNode.lastChild = newChild;
|
|
694
|
+
_onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
|
|
695
|
+
_updateOwnerDocument(newChild, parentNode.ownerDocument || parentNode);
|
|
696
|
+
return newChild;
|
|
697
|
+
}
|
|
698
|
+
Document.prototype = {
|
|
699
|
+
nodeName: "#document",
|
|
700
|
+
nodeType: DOCUMENT_NODE,
|
|
701
|
+
doctype: null,
|
|
702
|
+
documentElement: null,
|
|
703
|
+
_inc: 1,
|
|
704
|
+
insertBefore: function(newChild, refChild) {
|
|
705
|
+
if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
|
|
706
|
+
var child = newChild.firstChild;
|
|
707
|
+
while (child) {
|
|
708
|
+
var next = child.nextSibling;
|
|
709
|
+
this.insertBefore(child, refChild);
|
|
710
|
+
child = next;
|
|
711
|
+
}
|
|
712
|
+
return newChild;
|
|
713
|
+
}
|
|
714
|
+
_insertBefore(this, newChild, refChild);
|
|
715
|
+
_updateOwnerDocument(newChild, this);
|
|
716
|
+
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) this.documentElement = newChild;
|
|
717
|
+
return newChild;
|
|
718
|
+
},
|
|
719
|
+
removeChild: function(oldChild) {
|
|
720
|
+
if (this.documentElement == oldChild) this.documentElement = null;
|
|
721
|
+
return _removeChild(this, oldChild);
|
|
722
|
+
},
|
|
723
|
+
replaceChild: function(newChild, oldChild) {
|
|
724
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
725
|
+
_updateOwnerDocument(newChild, this);
|
|
726
|
+
if (oldChild) this.removeChild(oldChild);
|
|
727
|
+
if (isElementNode(newChild)) this.documentElement = newChild;
|
|
728
|
+
},
|
|
729
|
+
importNode: function(importedNode, deep) {
|
|
730
|
+
return importNode(this, importedNode, deep);
|
|
731
|
+
},
|
|
732
|
+
getElementById: function(id) {
|
|
733
|
+
var rtv = null;
|
|
734
|
+
_visitNode(this.documentElement, function(node) {
|
|
735
|
+
if (node.nodeType == ELEMENT_NODE) {
|
|
736
|
+
if (node.getAttribute("id") == id) {
|
|
737
|
+
rtv = node;
|
|
738
|
+
return true;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
return rtv;
|
|
743
|
+
},
|
|
744
|
+
getElementsByClassName: function(classNames) {
|
|
745
|
+
var classNamesSet = toOrderedSet(classNames);
|
|
746
|
+
return new LiveNodeList(this, function(base) {
|
|
747
|
+
var ls = [];
|
|
748
|
+
if (classNamesSet.length > 0) _visitNode(base.documentElement, function(node) {
|
|
749
|
+
if (node !== base && node.nodeType === ELEMENT_NODE) {
|
|
750
|
+
var nodeClassNames = node.getAttribute("class");
|
|
751
|
+
if (nodeClassNames) {
|
|
752
|
+
var matches = classNames === nodeClassNames;
|
|
753
|
+
if (!matches) {
|
|
754
|
+
var nodeClassNamesSet = toOrderedSet(nodeClassNames);
|
|
755
|
+
matches = classNamesSet.every(arrayIncludes(nodeClassNamesSet));
|
|
756
|
+
}
|
|
757
|
+
if (matches) ls.push(node);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
return ls;
|
|
762
|
+
});
|
|
763
|
+
},
|
|
764
|
+
createElement: function(tagName) {
|
|
765
|
+
var node = new Element();
|
|
766
|
+
node.ownerDocument = this;
|
|
767
|
+
node.nodeName = tagName;
|
|
768
|
+
node.tagName = tagName;
|
|
769
|
+
node.localName = tagName;
|
|
770
|
+
node.childNodes = new NodeList();
|
|
771
|
+
var attrs = node.attributes = new NamedNodeMap();
|
|
772
|
+
attrs._ownerElement = node;
|
|
773
|
+
return node;
|
|
774
|
+
},
|
|
775
|
+
createDocumentFragment: function() {
|
|
776
|
+
var node = new DocumentFragment();
|
|
777
|
+
node.ownerDocument = this;
|
|
778
|
+
node.childNodes = new NodeList();
|
|
779
|
+
return node;
|
|
780
|
+
},
|
|
781
|
+
createTextNode: function(data) {
|
|
782
|
+
var node = new Text();
|
|
783
|
+
node.ownerDocument = this;
|
|
784
|
+
node.appendData(data);
|
|
785
|
+
return node;
|
|
786
|
+
},
|
|
787
|
+
createComment: function(data) {
|
|
788
|
+
var node = new Comment();
|
|
789
|
+
node.ownerDocument = this;
|
|
790
|
+
node.appendData(data);
|
|
791
|
+
return node;
|
|
792
|
+
},
|
|
793
|
+
createCDATASection: function(data) {
|
|
794
|
+
var node = new CDATASection();
|
|
795
|
+
node.ownerDocument = this;
|
|
796
|
+
node.appendData(data);
|
|
797
|
+
return node;
|
|
798
|
+
},
|
|
799
|
+
createProcessingInstruction: function(target, data) {
|
|
800
|
+
var node = new ProcessingInstruction();
|
|
801
|
+
node.ownerDocument = this;
|
|
802
|
+
node.tagName = node.nodeName = node.target = target;
|
|
803
|
+
node.nodeValue = node.data = data;
|
|
804
|
+
return node;
|
|
805
|
+
},
|
|
806
|
+
createAttribute: function(name) {
|
|
807
|
+
var node = new Attr();
|
|
808
|
+
node.ownerDocument = this;
|
|
809
|
+
node.name = name;
|
|
810
|
+
node.nodeName = name;
|
|
811
|
+
node.localName = name;
|
|
812
|
+
node.specified = true;
|
|
813
|
+
return node;
|
|
814
|
+
},
|
|
815
|
+
createEntityReference: function(name) {
|
|
816
|
+
var node = new EntityReference();
|
|
817
|
+
node.ownerDocument = this;
|
|
818
|
+
node.nodeName = name;
|
|
819
|
+
return node;
|
|
820
|
+
},
|
|
821
|
+
createElementNS: function(namespaceURI, qualifiedName) {
|
|
822
|
+
var node = new Element();
|
|
823
|
+
var pl = qualifiedName.split(":");
|
|
824
|
+
var attrs = node.attributes = new NamedNodeMap();
|
|
825
|
+
node.childNodes = new NodeList();
|
|
826
|
+
node.ownerDocument = this;
|
|
827
|
+
node.nodeName = qualifiedName;
|
|
828
|
+
node.tagName = qualifiedName;
|
|
829
|
+
node.namespaceURI = namespaceURI;
|
|
830
|
+
if (pl.length == 2) {
|
|
831
|
+
node.prefix = pl[0];
|
|
832
|
+
node.localName = pl[1];
|
|
833
|
+
} else node.localName = qualifiedName;
|
|
834
|
+
attrs._ownerElement = node;
|
|
835
|
+
return node;
|
|
836
|
+
},
|
|
837
|
+
createAttributeNS: function(namespaceURI, qualifiedName) {
|
|
838
|
+
var node = new Attr();
|
|
839
|
+
var pl = qualifiedName.split(":");
|
|
840
|
+
node.ownerDocument = this;
|
|
841
|
+
node.nodeName = qualifiedName;
|
|
842
|
+
node.name = qualifiedName;
|
|
843
|
+
node.namespaceURI = namespaceURI;
|
|
844
|
+
node.specified = true;
|
|
845
|
+
if (pl.length == 2) {
|
|
846
|
+
node.prefix = pl[0];
|
|
847
|
+
node.localName = pl[1];
|
|
848
|
+
} else node.localName = qualifiedName;
|
|
849
|
+
return node;
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
_extends(Document, Node);
|
|
853
|
+
function Element() {
|
|
854
|
+
this._nsMap = {};
|
|
855
|
+
}
|
|
856
|
+
Element.prototype = {
|
|
857
|
+
nodeType: ELEMENT_NODE,
|
|
858
|
+
hasAttribute: function(name) {
|
|
859
|
+
return this.getAttributeNode(name) != null;
|
|
860
|
+
},
|
|
861
|
+
getAttribute: function(name) {
|
|
862
|
+
var attr = this.getAttributeNode(name);
|
|
863
|
+
return attr && attr.value || "";
|
|
864
|
+
},
|
|
865
|
+
getAttributeNode: function(name) {
|
|
866
|
+
return this.attributes.getNamedItem(name);
|
|
867
|
+
},
|
|
868
|
+
setAttribute: function(name, value) {
|
|
869
|
+
var attr = this.ownerDocument.createAttribute(name);
|
|
870
|
+
attr.value = attr.nodeValue = "" + value;
|
|
871
|
+
this.setAttributeNode(attr);
|
|
872
|
+
},
|
|
873
|
+
removeAttribute: function(name) {
|
|
874
|
+
var attr = this.getAttributeNode(name);
|
|
875
|
+
attr && this.removeAttributeNode(attr);
|
|
876
|
+
},
|
|
877
|
+
appendChild: function(newChild) {
|
|
878
|
+
if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) return this.insertBefore(newChild, null);
|
|
879
|
+
else return _appendSingleChild(this, newChild);
|
|
880
|
+
},
|
|
881
|
+
setAttributeNode: function(newAttr) {
|
|
882
|
+
return this.attributes.setNamedItem(newAttr);
|
|
883
|
+
},
|
|
884
|
+
setAttributeNodeNS: function(newAttr) {
|
|
885
|
+
return this.attributes.setNamedItemNS(newAttr);
|
|
886
|
+
},
|
|
887
|
+
removeAttributeNode: function(oldAttr) {
|
|
888
|
+
return this.attributes.removeNamedItem(oldAttr.nodeName);
|
|
889
|
+
},
|
|
890
|
+
removeAttributeNS: function(namespaceURI, localName) {
|
|
891
|
+
var old = this.getAttributeNodeNS(namespaceURI, localName);
|
|
892
|
+
old && this.removeAttributeNode(old);
|
|
893
|
+
},
|
|
894
|
+
hasAttributeNS: function(namespaceURI, localName) {
|
|
895
|
+
return this.getAttributeNodeNS(namespaceURI, localName) != null;
|
|
896
|
+
},
|
|
897
|
+
getAttributeNS: function(namespaceURI, localName) {
|
|
898
|
+
var attr = this.getAttributeNodeNS(namespaceURI, localName);
|
|
899
|
+
return attr && attr.value || "";
|
|
900
|
+
},
|
|
901
|
+
setAttributeNS: function(namespaceURI, qualifiedName, value) {
|
|
902
|
+
var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
|
|
903
|
+
attr.value = attr.nodeValue = "" + value;
|
|
904
|
+
this.setAttributeNode(attr);
|
|
905
|
+
},
|
|
906
|
+
getAttributeNodeNS: function(namespaceURI, localName) {
|
|
907
|
+
return this.attributes.getNamedItemNS(namespaceURI, localName);
|
|
908
|
+
},
|
|
909
|
+
getElementsByTagName: function(tagName) {
|
|
910
|
+
return new LiveNodeList(this, function(base) {
|
|
911
|
+
var ls = [];
|
|
912
|
+
_visitNode(base, function(node) {
|
|
913
|
+
if (node !== base && node.nodeType == ELEMENT_NODE && (tagName === "*" || node.tagName == tagName)) ls.push(node);
|
|
914
|
+
});
|
|
915
|
+
return ls;
|
|
916
|
+
});
|
|
917
|
+
},
|
|
918
|
+
getElementsByTagNameNS: function(namespaceURI, localName) {
|
|
919
|
+
return new LiveNodeList(this, function(base) {
|
|
920
|
+
var ls = [];
|
|
921
|
+
_visitNode(base, function(node) {
|
|
922
|
+
if (node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === "*" || node.namespaceURI === namespaceURI) && (localName === "*" || node.localName == localName)) ls.push(node);
|
|
923
|
+
});
|
|
924
|
+
return ls;
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
Document.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;
|
|
929
|
+
Document.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;
|
|
930
|
+
_extends(Element, Node);
|
|
931
|
+
function Attr() {}
|
|
932
|
+
Attr.prototype.nodeType = ATTRIBUTE_NODE;
|
|
933
|
+
_extends(Attr, Node);
|
|
934
|
+
function CharacterData() {}
|
|
935
|
+
CharacterData.prototype = {
|
|
936
|
+
data: "",
|
|
937
|
+
substringData: function(offset, count) {
|
|
938
|
+
return this.data.substring(offset, offset + count);
|
|
939
|
+
},
|
|
940
|
+
appendData: function(text) {
|
|
941
|
+
text = this.data + text;
|
|
942
|
+
this.nodeValue = this.data = text;
|
|
943
|
+
this.length = text.length;
|
|
944
|
+
},
|
|
945
|
+
insertData: function(offset, text) {
|
|
946
|
+
this.replaceData(offset, 0, text);
|
|
947
|
+
},
|
|
948
|
+
appendChild: function(newChild) {
|
|
949
|
+
throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);
|
|
950
|
+
},
|
|
951
|
+
deleteData: function(offset, count) {
|
|
952
|
+
this.replaceData(offset, count, "");
|
|
953
|
+
},
|
|
954
|
+
replaceData: function(offset, count, text) {
|
|
955
|
+
var start = this.data.substring(0, offset);
|
|
956
|
+
var end = this.data.substring(offset + count);
|
|
957
|
+
text = start + text + end;
|
|
958
|
+
this.nodeValue = this.data = text;
|
|
959
|
+
this.length = text.length;
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
_extends(CharacterData, Node);
|
|
963
|
+
function Text() {}
|
|
964
|
+
Text.prototype = {
|
|
965
|
+
nodeName: "#text",
|
|
966
|
+
nodeType: TEXT_NODE,
|
|
967
|
+
splitText: function(offset) {
|
|
968
|
+
var text = this.data;
|
|
969
|
+
var newText = text.substring(offset);
|
|
970
|
+
text = text.substring(0, offset);
|
|
971
|
+
this.data = this.nodeValue = text;
|
|
972
|
+
this.length = text.length;
|
|
973
|
+
var newNode = this.ownerDocument.createTextNode(newText);
|
|
974
|
+
if (this.parentNode) this.parentNode.insertBefore(newNode, this.nextSibling);
|
|
975
|
+
return newNode;
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
_extends(Text, CharacterData);
|
|
979
|
+
function Comment() {}
|
|
980
|
+
Comment.prototype = {
|
|
981
|
+
nodeName: "#comment",
|
|
982
|
+
nodeType: COMMENT_NODE
|
|
983
|
+
};
|
|
984
|
+
_extends(Comment, CharacterData);
|
|
985
|
+
function CDATASection() {}
|
|
986
|
+
CDATASection.prototype = {
|
|
987
|
+
nodeName: "#cdata-section",
|
|
988
|
+
nodeType: CDATA_SECTION_NODE
|
|
989
|
+
};
|
|
990
|
+
_extends(CDATASection, CharacterData);
|
|
991
|
+
function DocumentType() {}
|
|
992
|
+
DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;
|
|
993
|
+
_extends(DocumentType, Node);
|
|
994
|
+
function Notation() {}
|
|
995
|
+
Notation.prototype.nodeType = NOTATION_NODE;
|
|
996
|
+
_extends(Notation, Node);
|
|
997
|
+
function Entity() {}
|
|
998
|
+
Entity.prototype.nodeType = ENTITY_NODE;
|
|
999
|
+
_extends(Entity, Node);
|
|
1000
|
+
function EntityReference() {}
|
|
1001
|
+
EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;
|
|
1002
|
+
_extends(EntityReference, Node);
|
|
1003
|
+
function DocumentFragment() {}
|
|
1004
|
+
DocumentFragment.prototype.nodeName = "#document-fragment";
|
|
1005
|
+
DocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE;
|
|
1006
|
+
_extends(DocumentFragment, Node);
|
|
1007
|
+
function ProcessingInstruction() {}
|
|
1008
|
+
ProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;
|
|
1009
|
+
_extends(ProcessingInstruction, Node);
|
|
1010
|
+
function XMLSerializer() {}
|
|
1011
|
+
XMLSerializer.prototype.serializeToString = function(node, isHtml, nodeFilter) {
|
|
1012
|
+
return nodeSerializeToString.call(node, isHtml, nodeFilter);
|
|
1013
|
+
};
|
|
1014
|
+
Node.prototype.toString = nodeSerializeToString;
|
|
1015
|
+
function nodeSerializeToString(isHtml, nodeFilter) {
|
|
1016
|
+
var buf = [];
|
|
1017
|
+
var refNode = this.nodeType == 9 && this.documentElement || this;
|
|
1018
|
+
var prefix = refNode.prefix;
|
|
1019
|
+
var uri = refNode.namespaceURI;
|
|
1020
|
+
if (uri && prefix == null) {
|
|
1021
|
+
var prefix = refNode.lookupPrefix(uri);
|
|
1022
|
+
if (prefix == null) var visibleNamespaces = [{
|
|
1023
|
+
namespace: uri,
|
|
1024
|
+
prefix: null
|
|
1025
|
+
}];
|
|
1026
|
+
}
|
|
1027
|
+
serializeToString(this, buf, isHtml, nodeFilter, visibleNamespaces);
|
|
1028
|
+
return buf.join("");
|
|
1029
|
+
}
|
|
1030
|
+
function needNamespaceDefine(node, isHTML, visibleNamespaces) {
|
|
1031
|
+
var prefix = node.prefix || "";
|
|
1032
|
+
var uri = node.namespaceURI;
|
|
1033
|
+
if (!uri) return false;
|
|
1034
|
+
if (prefix === "xml" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) return false;
|
|
1035
|
+
var i = visibleNamespaces.length;
|
|
1036
|
+
while (i--) {
|
|
1037
|
+
var ns = visibleNamespaces[i];
|
|
1038
|
+
if (ns.prefix === prefix) return ns.namespace !== uri;
|
|
1039
|
+
}
|
|
1040
|
+
return true;
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Well-formed constraint: No < in Attribute Values
|
|
1044
|
+
* > The replacement text of any entity referred to directly or indirectly
|
|
1045
|
+
* > in an attribute value must not contain a <.
|
|
1046
|
+
* @see https://www.w3.org/TR/xml11/#CleanAttrVals
|
|
1047
|
+
* @see https://www.w3.org/TR/xml11/#NT-AttValue
|
|
1048
|
+
*
|
|
1049
|
+
* Literal whitespace other than space that appear in attribute values
|
|
1050
|
+
* are serialized as their entity references, so they will be preserved.
|
|
1051
|
+
* (In contrast to whitespace literals in the input which are normalized to spaces)
|
|
1052
|
+
* @see https://www.w3.org/TR/xml11/#AVNormalize
|
|
1053
|
+
* @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes
|
|
1054
|
+
*/
|
|
1055
|
+
function addSerializedAttribute(buf, qualifiedName, value) {
|
|
1056
|
+
buf.push(" ", qualifiedName, "=\"", value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), "\"");
|
|
1057
|
+
}
|
|
1058
|
+
function serializeToString(node, buf, isHTML, nodeFilter, visibleNamespaces) {
|
|
1059
|
+
if (!visibleNamespaces) visibleNamespaces = [];
|
|
1060
|
+
if (nodeFilter) {
|
|
1061
|
+
node = nodeFilter(node);
|
|
1062
|
+
if (node) {
|
|
1063
|
+
if (typeof node == "string") {
|
|
1064
|
+
buf.push(node);
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
} else return;
|
|
1068
|
+
}
|
|
1069
|
+
switch (node.nodeType) {
|
|
1070
|
+
case ELEMENT_NODE:
|
|
1071
|
+
var attrs = node.attributes;
|
|
1072
|
+
var len = attrs.length;
|
|
1073
|
+
var child = node.firstChild;
|
|
1074
|
+
var nodeName = node.tagName;
|
|
1075
|
+
isHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML;
|
|
1076
|
+
var prefixedNodeName = nodeName;
|
|
1077
|
+
if (!isHTML && !node.prefix && node.namespaceURI) {
|
|
1078
|
+
var defaultNS;
|
|
1079
|
+
for (var ai = 0; ai < attrs.length; ai++) if (attrs.item(ai).name === "xmlns") {
|
|
1080
|
+
defaultNS = attrs.item(ai).value;
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
if (!defaultNS) for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
|
|
1084
|
+
var namespace = visibleNamespaces[nsi];
|
|
1085
|
+
if (namespace.prefix === "" && namespace.namespace === node.namespaceURI) {
|
|
1086
|
+
defaultNS = namespace.namespace;
|
|
1087
|
+
break;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (defaultNS !== node.namespaceURI) for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
|
|
1091
|
+
var namespace = visibleNamespaces[nsi];
|
|
1092
|
+
if (namespace.namespace === node.namespaceURI) {
|
|
1093
|
+
if (namespace.prefix) prefixedNodeName = namespace.prefix + ":" + nodeName;
|
|
1094
|
+
break;
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
buf.push("<", prefixedNodeName);
|
|
1099
|
+
for (var i = 0; i < len; i++) {
|
|
1100
|
+
var attr = attrs.item(i);
|
|
1101
|
+
if (attr.prefix == "xmlns") visibleNamespaces.push({
|
|
1102
|
+
prefix: attr.localName,
|
|
1103
|
+
namespace: attr.value
|
|
1104
|
+
});
|
|
1105
|
+
else if (attr.nodeName == "xmlns") visibleNamespaces.push({
|
|
1106
|
+
prefix: "",
|
|
1107
|
+
namespace: attr.value
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
for (var i = 0; i < len; i++) {
|
|
1111
|
+
var attr = attrs.item(i);
|
|
1112
|
+
if (needNamespaceDefine(attr, isHTML, visibleNamespaces)) {
|
|
1113
|
+
var prefix = attr.prefix || "";
|
|
1114
|
+
var uri = attr.namespaceURI;
|
|
1115
|
+
addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
|
|
1116
|
+
visibleNamespaces.push({
|
|
1117
|
+
prefix,
|
|
1118
|
+
namespace: uri
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
serializeToString(attr, buf, isHTML, nodeFilter, visibleNamespaces);
|
|
1122
|
+
}
|
|
1123
|
+
if (nodeName === prefixedNodeName && needNamespaceDefine(node, isHTML, visibleNamespaces)) {
|
|
1124
|
+
var prefix = node.prefix || "";
|
|
1125
|
+
var uri = node.namespaceURI;
|
|
1126
|
+
addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
|
|
1127
|
+
visibleNamespaces.push({
|
|
1128
|
+
prefix,
|
|
1129
|
+
namespace: uri
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
if (child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)) {
|
|
1133
|
+
buf.push(">");
|
|
1134
|
+
if (isHTML && /^script$/i.test(nodeName)) while (child) {
|
|
1135
|
+
if (child.data) buf.push(child.data);
|
|
1136
|
+
else serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
|
|
1137
|
+
child = child.nextSibling;
|
|
1138
|
+
}
|
|
1139
|
+
else while (child) {
|
|
1140
|
+
serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
|
|
1141
|
+
child = child.nextSibling;
|
|
1142
|
+
}
|
|
1143
|
+
buf.push("</", prefixedNodeName, ">");
|
|
1144
|
+
} else buf.push("/>");
|
|
1145
|
+
return;
|
|
1146
|
+
case DOCUMENT_NODE:
|
|
1147
|
+
case DOCUMENT_FRAGMENT_NODE:
|
|
1148
|
+
var child = node.firstChild;
|
|
1149
|
+
while (child) {
|
|
1150
|
+
serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
|
|
1151
|
+
child = child.nextSibling;
|
|
1152
|
+
}
|
|
1153
|
+
return;
|
|
1154
|
+
case ATTRIBUTE_NODE: return addSerializedAttribute(buf, node.name, node.value);
|
|
1155
|
+
case TEXT_NODE:
|
|
1156
|
+
/**
|
|
1157
|
+
* The ampersand character (&) and the left angle bracket (<) must not appear in their literal form,
|
|
1158
|
+
* except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.
|
|
1159
|
+
* If they are needed elsewhere, they must be escaped using either numeric character references or the strings
|
|
1160
|
+
* `&` and `<` respectively.
|
|
1161
|
+
* The right angle bracket (>) may be represented using the string " > ", and must, for compatibility,
|
|
1162
|
+
* be escaped using either `>` or a character reference when it appears in the string `]]>` in content,
|
|
1163
|
+
* when that string is not marking the end of a CDATA section.
|
|
1164
|
+
*
|
|
1165
|
+
* In the content of elements, character data is any string of characters
|
|
1166
|
+
* which does not contain the start-delimiter of any markup
|
|
1167
|
+
* and does not include the CDATA-section-close delimiter, `]]>`.
|
|
1168
|
+
*
|
|
1169
|
+
* @see https://www.w3.org/TR/xml/#NT-CharData
|
|
1170
|
+
* @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node
|
|
1171
|
+
*/
|
|
1172
|
+
return buf.push(node.data.replace(/[<&>]/g, _xmlEncoder));
|
|
1173
|
+
case CDATA_SECTION_NODE: return buf.push("<![CDATA[", node.data, "]]>");
|
|
1174
|
+
case COMMENT_NODE: return buf.push("<!--", node.data, "-->");
|
|
1175
|
+
case DOCUMENT_TYPE_NODE:
|
|
1176
|
+
var pubid = node.publicId;
|
|
1177
|
+
var sysid = node.systemId;
|
|
1178
|
+
buf.push("<!DOCTYPE ", node.name);
|
|
1179
|
+
if (pubid) {
|
|
1180
|
+
buf.push(" PUBLIC ", pubid);
|
|
1181
|
+
if (sysid && sysid != ".") buf.push(" ", sysid);
|
|
1182
|
+
buf.push(">");
|
|
1183
|
+
} else if (sysid && sysid != ".") buf.push(" SYSTEM ", sysid, ">");
|
|
1184
|
+
else {
|
|
1185
|
+
var sub = node.internalSubset;
|
|
1186
|
+
if (sub) buf.push(" [", sub, "]");
|
|
1187
|
+
buf.push(">");
|
|
1188
|
+
}
|
|
1189
|
+
return;
|
|
1190
|
+
case PROCESSING_INSTRUCTION_NODE: return buf.push("<?", node.target, " ", node.data, "?>");
|
|
1191
|
+
case ENTITY_REFERENCE_NODE: return buf.push("&", node.nodeName, ";");
|
|
1192
|
+
default: buf.push("??", node.nodeName);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
function importNode(doc, node, deep) {
|
|
1196
|
+
var node2;
|
|
1197
|
+
switch (node.nodeType) {
|
|
1198
|
+
case ELEMENT_NODE:
|
|
1199
|
+
node2 = node.cloneNode(false);
|
|
1200
|
+
node2.ownerDocument = doc;
|
|
1201
|
+
case DOCUMENT_FRAGMENT_NODE: break;
|
|
1202
|
+
case ATTRIBUTE_NODE:
|
|
1203
|
+
deep = true;
|
|
1204
|
+
break;
|
|
1205
|
+
}
|
|
1206
|
+
if (!node2) node2 = node.cloneNode(false);
|
|
1207
|
+
node2.ownerDocument = doc;
|
|
1208
|
+
node2.parentNode = null;
|
|
1209
|
+
if (deep) {
|
|
1210
|
+
var child = node.firstChild;
|
|
1211
|
+
while (child) {
|
|
1212
|
+
node2.appendChild(importNode(doc, child, deep));
|
|
1213
|
+
child = child.nextSibling;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
return node2;
|
|
1217
|
+
}
|
|
1218
|
+
function cloneNode(doc, node, deep) {
|
|
1219
|
+
var node2 = new node.constructor();
|
|
1220
|
+
for (var n in node) if (Object.prototype.hasOwnProperty.call(node, n)) {
|
|
1221
|
+
var v = node[n];
|
|
1222
|
+
if (typeof v != "object") {
|
|
1223
|
+
if (v != node2[n]) node2[n] = v;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
if (node.childNodes) node2.childNodes = new NodeList();
|
|
1227
|
+
node2.ownerDocument = doc;
|
|
1228
|
+
switch (node2.nodeType) {
|
|
1229
|
+
case ELEMENT_NODE:
|
|
1230
|
+
var attrs = node.attributes;
|
|
1231
|
+
var attrs2 = node2.attributes = new NamedNodeMap();
|
|
1232
|
+
var len = attrs.length;
|
|
1233
|
+
attrs2._ownerElement = node2;
|
|
1234
|
+
for (var i = 0; i < len; i++) node2.setAttributeNode(cloneNode(doc, attrs.item(i), true));
|
|
1235
|
+
break;
|
|
1236
|
+
case ATTRIBUTE_NODE: deep = true;
|
|
1237
|
+
}
|
|
1238
|
+
if (deep) {
|
|
1239
|
+
var child = node.firstChild;
|
|
1240
|
+
while (child) {
|
|
1241
|
+
node2.appendChild(cloneNode(doc, child, deep));
|
|
1242
|
+
child = child.nextSibling;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
return node2;
|
|
1246
|
+
}
|
|
1247
|
+
function __set__(object, key, value) {
|
|
1248
|
+
object[key] = value;
|
|
1249
|
+
}
|
|
1250
|
+
try {
|
|
1251
|
+
if (Object.defineProperty) {
|
|
1252
|
+
Object.defineProperty(LiveNodeList.prototype, "length", { get: function() {
|
|
1253
|
+
_updateLiveList(this);
|
|
1254
|
+
return this.$$length;
|
|
1255
|
+
} });
|
|
1256
|
+
Object.defineProperty(Node.prototype, "textContent", {
|
|
1257
|
+
get: function() {
|
|
1258
|
+
return getTextContent(this);
|
|
1259
|
+
},
|
|
1260
|
+
set: function(data) {
|
|
1261
|
+
switch (this.nodeType) {
|
|
1262
|
+
case ELEMENT_NODE:
|
|
1263
|
+
case DOCUMENT_FRAGMENT_NODE:
|
|
1264
|
+
while (this.firstChild) this.removeChild(this.firstChild);
|
|
1265
|
+
if (data || String(data)) this.appendChild(this.ownerDocument.createTextNode(data));
|
|
1266
|
+
break;
|
|
1267
|
+
default:
|
|
1268
|
+
this.data = data;
|
|
1269
|
+
this.value = data;
|
|
1270
|
+
this.nodeValue = data;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
function getTextContent(node) {
|
|
1275
|
+
switch (node.nodeType) {
|
|
1276
|
+
case ELEMENT_NODE:
|
|
1277
|
+
case DOCUMENT_FRAGMENT_NODE:
|
|
1278
|
+
var buf = [];
|
|
1279
|
+
node = node.firstChild;
|
|
1280
|
+
while (node) {
|
|
1281
|
+
if (node.nodeType !== 7 && node.nodeType !== 8) buf.push(getTextContent(node));
|
|
1282
|
+
node = node.nextSibling;
|
|
1283
|
+
}
|
|
1284
|
+
return buf.join("");
|
|
1285
|
+
default: return node.nodeValue;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
__set__ = function(object, key, value) {
|
|
1289
|
+
object["$$" + key] = value;
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
} catch (e) {}
|
|
1293
|
+
exports.DocumentType = DocumentType;
|
|
1294
|
+
exports.DOMException = DOMException;
|
|
1295
|
+
exports.DOMImplementation = DOMImplementation;
|
|
1296
|
+
exports.Element = Element;
|
|
1297
|
+
exports.Node = Node;
|
|
1298
|
+
exports.NodeList = NodeList;
|
|
1299
|
+
exports.XMLSerializer = XMLSerializer;
|
|
1300
|
+
}) });
|
|
1301
|
+
|
|
1302
|
+
//#endregion
|
|
1303
|
+
export default require_dom();
|
|
1304
|
+
|
|
1305
|
+
export { require_dom };
|
|
1306
|
+
//# sourceMappingURL=dom.mjs.map
|