2021-07-23 13:33:33 +00:00
/******/ ( ( ) => { // webpackBootstrap
/******/ var _ _webpack _modules _ _ = ( {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 382 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-05-14 09:15:39 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fetchValidChecksums = void 0 ;
const httpm = _ _importStar ( _ _nccwpck _require _ _ ( 538 ) ) ;
const httpc = new httpm . HttpClient ( 'gradle/wrapper-validation-action' , undefined , { allowRetries : true , maxRetries : 3 } ) ;
function fetchValidChecksums ( allowSnapshots ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const all = yield httpGetJsonArray ( 'https://services.gradle.org/versions/all' ) ;
const withChecksum = all . filter ( entry => typeof entry === 'object' &&
entry != null &&
entry . hasOwnProperty ( 'wrapperChecksumUrl' ) ) ;
const allowed = withChecksum . filter (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
( entry ) => allowSnapshots || ! entry . snapshot ) ;
const checksumUrls = allowed . map (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
( entry ) => entry . wrapperChecksumUrl ) ;
const checksums = yield Promise . all ( checksumUrls . map ( ( url ) => _ _awaiter ( this , void 0 , void 0 , function * ( ) { return httpGetText ( url ) ; } ) ) ) ;
return [ ... new Set ( checksums ) ] ;
} ) ;
}
exports . fetchValidChecksums = fetchValidChecksums ;
function httpGetJsonArray ( url ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
return JSON . parse ( yield httpGetText ( url ) ) ;
} ) ;
}
function httpGetText ( url ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const response = yield httpc . get ( url ) ;
return yield response . readBody ( ) ;
} ) ;
2021-05-14 09:15:39 +00:00
}
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 548 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-05-14 09:15:39 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
2021-05-14 09:15:39 +00:00
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
2021-07-23 13:33:33 +00:00
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
2021-05-14 09:15:39 +00:00
return result ;
} ;
2021-07-23 13:33:33 +00:00
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . findWrapperJars = void 0 ;
const util = _ _importStar ( _ _nccwpck _require _ _ ( 669 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 622 ) ) ;
const fs = _ _importStar ( _ _nccwpck _require _ _ ( 747 ) ) ;
const unhomoglyph _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 708 ) ) ;
const readdir = util . promisify ( fs . readdir ) ;
function findWrapperJars ( baseDir ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const files = yield recursivelyListFiles ( baseDir ) ;
return files
. filter ( file => unhomoglyph _1 . default ( file ) . endsWith ( 'gradle-wrapper.jar' ) )
. map ( wrapperJar => path . relative ( baseDir , wrapperJar ) )
. sort ( ( a , b ) => a . localeCompare ( b ) ) ;
2021-05-14 09:15:39 +00:00
} ) ;
}
2021-07-23 13:33:33 +00:00
exports . findWrapperJars = findWrapperJars ;
function recursivelyListFiles ( baseDir ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const childrenNames = yield readdir ( baseDir ) ;
const childrenPaths = yield Promise . all ( childrenNames . map ( ( childName ) => _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const childPath = path . resolve ( baseDir , childName ) ;
return fs . lstatSync ( childPath ) . isDirectory ( )
? recursivelyListFiles ( childPath )
: new Promise ( resolve => resolve ( [ childPath ] ) ) ;
} ) ) ) ;
return Array . prototype . concat ( ... childrenPaths ) ;
} ) ;
}
2021-05-14 09:15:39 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 859 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-06 10:37:12 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . sha256File = void 0 ;
const crypto = _ _importStar ( _ _nccwpck _require _ _ ( 417 ) ) ;
const fs = _ _importStar ( _ _nccwpck _require _ _ ( 747 ) ) ;
function sha256File ( path ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
return new Promise ( ( resolve , reject ) => {
const hash = crypto . createHash ( 'sha256' ) ;
const stream = fs . createReadStream ( path ) ;
stream . on ( 'data' , data => hash . update ( data ) ) ;
stream . on ( 'end' , ( ) => {
stream . destroy ( ) ;
resolve ( hash . digest ( 'hex' ) ) ;
} ) ;
stream . on ( 'error' , error => {
stream . destroy ( ) ;
reject ( error ) ;
} ) ;
} ) ;
} ) ;
2020-01-06 11:03:18 +00:00
}
2021-07-23 13:33:33 +00:00
exports . sha256File = sha256File ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 109 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
2020-01-05 11:04:24 +00:00
2020-09-22 16:02:50 +00:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
2020-01-05 11:04:24 +00:00
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
2021-07-23 13:33:33 +00:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2020-09-22 16:02:50 +00:00
exports . run = void 0 ;
2021-07-23 13:33:33 +00:00
const path = _ _importStar ( _ _nccwpck _require _ _ ( 622 ) ) ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 186 ) ) ;
const validate = _ _importStar ( _ _nccwpck _require _ _ ( 997 ) ) ;
2020-01-05 11:04:24 +00:00
function run ( ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
try {
2020-01-11 14:35:28 +00:00
const result = yield validate . findInvalidWrapperJars ( path . resolve ( '.' ) , + core . getInput ( 'min-wrapper-count' ) , core . getInput ( 'allow-snapshots' ) === 'true' , core . getInput ( 'allow-checksums' ) . split ( ',' ) ) ;
if ( result . isValid ( ) ) {
core . info ( result . toDisplayString ( ) ) ;
}
else {
2020-01-16 09:07:36 +00:00
core . setFailed ( ` Gradle Wrapper Validation Failed! \n See https://github.com/gradle/wrapper-validation-action#reporting-failures \n ${ result . toDisplayString ( ) } ` ) ;
2020-01-06 10:37:12 +00:00
}
2020-01-05 11:04:24 +00:00
}
catch ( error ) {
core . setFailed ( error . message ) ;
}
} ) ;
}
2020-01-06 10:37:12 +00:00
exports . run = run ;
2020-01-05 11:04:24 +00:00
run ( ) ;
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 997 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-05 11:04:24 +00:00
2020-01-06 10:37:12 +00:00
"use strict" ;
2020-01-05 11:04:24 +00:00
2021-07-23 13:33:33 +00:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
2020-01-06 10:37:12 +00:00
} ;
2021-07-23 13:33:33 +00:00
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
2020-01-06 10:37:12 +00:00
} ) ;
} ;
2021-07-23 13:33:33 +00:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . WrapperJar = exports . ValidationResult = exports . findInvalidWrapperJars = void 0 ;
const find = _ _importStar ( _ _nccwpck _require _ _ ( 548 ) ) ;
const checksums = _ _importStar ( _ _nccwpck _require _ _ ( 382 ) ) ;
const hash = _ _importStar ( _ _nccwpck _require _ _ ( 859 ) ) ;
function findInvalidWrapperJars ( gitRepoRoot , minWrapperCount , allowSnapshots , allowChecksums ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const wrapperJars = yield find . findWrapperJars ( gitRepoRoot ) ;
const result = new ValidationResult ( [ ] , [ ] ) ;
if ( wrapperJars . length < minWrapperCount ) {
result . errors . push ( ` Expected to find at least ${ minWrapperCount } Gradle Wrapper JARs but got only ${ wrapperJars . length } ` ) ;
}
if ( wrapperJars . length > 0 ) {
const validChecksums = yield checksums . fetchValidChecksums ( allowSnapshots ) ;
validChecksums . push ( ... allowChecksums ) ;
for ( const wrapperJar of wrapperJars ) {
const sha = yield hash . sha256File ( wrapperJar ) ;
if ( ! validChecksums . includes ( sha ) ) {
result . invalid . push ( new WrapperJar ( wrapperJar , sha ) ) ;
}
else {
result . valid . push ( new WrapperJar ( wrapperJar , sha ) ) ;
2020-01-06 10:37:12 +00:00
}
}
}
2021-07-23 13:33:33 +00:00
return result ;
} ) ;
}
exports . findInvalidWrapperJars = findInvalidWrapperJars ;
class ValidationResult {
constructor ( valid , invalid ) {
this . errors = [ ] ;
this . valid = valid ;
this . invalid = invalid ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
isValid ( ) {
return this . invalid . length === 0 && this . errors . length === 0 ;
}
toDisplayString ( ) {
let displayString = '' ;
if ( this . invalid . length > 0 ) {
displayString += ` ✗ Found unknown Gradle Wrapper JAR files: \n ${ ValidationResult . toDisplayList ( this . invalid ) } ` ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
if ( this . errors . length > 0 ) {
if ( displayString . length > 0 )
displayString += '\n' ;
displayString += ` ✗ Other validation errors: \n ${ this . errors . join ( ` \n ` ) } ` ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
if ( this . valid . length > 0 ) {
if ( displayString . length > 0 )
displayString += '\n' ;
displayString += ` ✓ Found known Gradle Wrapper JAR files: \n ${ ValidationResult . toDisplayList ( this . valid ) } ` ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
return displayString ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
static toDisplayList ( wrapperJars ) {
return ` ${ wrapperJars . map ( wj => wj . toDisplayString ( ) ) . join ( ` \n ` ) } ` ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
}
exports . ValidationResult = ValidationResult ;
class WrapperJar {
constructor ( path , checksum ) {
this . path = path ;
this . checksum = checksum ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
toDisplayString ( ) {
return ` ${ this . checksum } ${ this . path } ` ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
}
exports . WrapperJar = WrapperJar ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 351 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-06 10:37:12 +00:00
"use strict" ;
2020-04-07 13:47:45 +00:00
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
result [ "default" ] = mod ;
return result ;
} ;
2021-07-23 13:33:33 +00:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const os = _ _importStar ( _ _nccwpck _require _ _ ( 87 ) ) ;
const utils _1 = _ _nccwpck _require _ _ ( 278 ) ;
2020-01-06 10:37:12 +00:00
/ * *
* Commands
*
* Command Format :
2020-04-07 13:47:45 +00:00
* : : name key = value , key = value : : message
2020-01-06 10:37:12 +00:00
*
* Examples :
2020-04-07 13:47:45 +00:00
* : : warning : : This is the message
* : : set - env name = MY _VAR : : some value
2020-01-06 10:37:12 +00:00
* /
function issueCommand ( command , properties , message ) {
const cmd = new Command ( command , properties , message ) ;
process . stdout . write ( cmd . toString ( ) + os . EOL ) ;
}
exports . issueCommand = issueCommand ;
function issue ( name , message = '' ) {
issueCommand ( name , { } , message ) ;
}
exports . issue = issue ;
const CMD _STRING = '::' ;
class Command {
constructor ( command , properties , message ) {
if ( ! command ) {
command = 'missing.command' ;
}
this . command = command ;
this . properties = properties ;
this . message = message ;
}
toString ( ) {
let cmdStr = CMD _STRING + this . command ;
if ( this . properties && Object . keys ( this . properties ) . length > 0 ) {
cmdStr += ' ' ;
2020-04-07 13:47:45 +00:00
let first = true ;
2020-01-06 10:37:12 +00:00
for ( const key in this . properties ) {
if ( this . properties . hasOwnProperty ( key ) ) {
const val = this . properties [ key ] ;
if ( val ) {
2020-04-07 13:47:45 +00:00
if ( first ) {
first = false ;
}
else {
cmdStr += ',' ;
}
cmdStr += ` ${ key } = ${ escapeProperty ( val ) } ` ;
2020-01-06 10:37:12 +00:00
}
}
}
}
2020-04-07 13:47:45 +00:00
cmdStr += ` ${ CMD _STRING } ${ escapeData ( this . message ) } ` ;
2020-01-06 10:37:12 +00:00
return cmdStr ;
}
}
function escapeData ( s ) {
2021-05-14 09:15:39 +00:00
return utils _1 . toCommandValue ( s )
2020-04-07 13:47:45 +00:00
. replace ( /%/g , '%25' )
. replace ( /\r/g , '%0D' )
. replace ( /\n/g , '%0A' ) ;
2020-01-06 10:37:12 +00:00
}
2020-04-07 13:47:45 +00:00
function escapeProperty ( s ) {
2021-05-14 09:15:39 +00:00
return utils _1 . toCommandValue ( s )
2020-04-07 13:47:45 +00:00
. replace ( /%/g , '%25' )
2020-01-06 10:37:12 +00:00
. replace ( /\r/g , '%0D' )
. replace ( /\n/g , '%0A' )
2020-04-07 13:47:45 +00:00
. replace ( /:/g , '%3A' )
. replace ( /,/g , '%2C' ) ;
2020-01-06 10:37:12 +00:00
}
//# sourceMappingURL=command.js.map
2021-05-14 09:15:39 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 186 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-06 10:37:12 +00:00
"use strict" ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
2020-04-07 13:47:45 +00:00
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
result [ "default" ] = mod ;
return result ;
} ;
2021-07-23 13:33:33 +00:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const command _1 = _ _nccwpck _require _ _ ( 351 ) ;
const file _command _1 = _ _nccwpck _require _ _ ( 717 ) ;
const utils _1 = _ _nccwpck _require _ _ ( 278 ) ;
const os = _ _importStar ( _ _nccwpck _require _ _ ( 87 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 622 ) ) ;
2020-01-06 10:37:12 +00:00
/ * *
* The code to exit an action
* /
var ExitCode ;
( function ( ExitCode ) {
/ * *
* A code indicating that the action was successful
* /
ExitCode [ ExitCode [ "Success" ] = 0 ] = "Success" ;
/ * *
* A code indicating that the action was a failure
* /
ExitCode [ ExitCode [ "Failure" ] = 1 ] = "Failure" ;
} ) ( ExitCode = exports . ExitCode || ( exports . ExitCode = { } ) ) ;
//-----------------------------------------------------------------------
// Variables
//-----------------------------------------------------------------------
/ * *
* Sets env variable for this action and future actions in the job
* @ param name the name of the variable to set
2020-09-22 16:02:50 +00:00
* @ param val the value of the variable . Non - string values will be converted to a string via JSON . stringify
2020-01-06 10:37:12 +00:00
* /
2020-09-22 16:02:50 +00:00
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2020-01-06 10:37:12 +00:00
function exportVariable ( name , val ) {
2021-05-14 09:15:39 +00:00
const convertedVal = utils _1 . toCommandValue ( val ) ;
2020-09-22 16:02:50 +00:00
process . env [ name ] = convertedVal ;
2021-05-14 09:15:39 +00:00
const filePath = process . env [ 'GITHUB_ENV' ] || '' ;
if ( filePath ) {
const delimiter = '_GitHubActionsFileCommandDelimeter_' ;
const commandValue = ` ${ name } << ${ delimiter } ${ os . EOL } ${ convertedVal } ${ os . EOL } ${ delimiter } ` ;
file _command _1 . issueCommand ( 'ENV' , commandValue ) ;
}
else {
command _1 . issueCommand ( 'set-env' , { name } , convertedVal ) ;
}
2020-01-06 10:37:12 +00:00
}
exports . exportVariable = exportVariable ;
/ * *
* Registers a secret which will get masked from logs
* @ param secret value of the secret
* /
function setSecret ( secret ) {
command _1 . issueCommand ( 'add-mask' , { } , secret ) ;
}
exports . setSecret = setSecret ;
/ * *
* Prepends inputPath to the PATH ( for this action and future actions )
* @ param inputPath
* /
function addPath ( inputPath ) {
2021-05-14 09:15:39 +00:00
const filePath = process . env [ 'GITHUB_PATH' ] || '' ;
if ( filePath ) {
file _command _1 . issueCommand ( 'PATH' , inputPath ) ;
}
else {
command _1 . issueCommand ( 'add-path' , { } , inputPath ) ;
}
2020-01-06 10:37:12 +00:00
process . env [ 'PATH' ] = ` ${ inputPath } ${ path . delimiter } ${ process . env [ 'PATH' ] } ` ;
}
exports . addPath = addPath ;
/ * *
* Gets the value of an input . The value is also trimmed .
*
* @ param name name of the input to get
* @ param options optional . See InputOptions .
* @ returns string
* /
function getInput ( name , options ) {
const val = process . env [ ` INPUT_ ${ name . replace ( / /g , '_' ) . toUpperCase ( ) } ` ] || '' ;
if ( options && options . required && ! val ) {
throw new Error ( ` Input required and not supplied: ${ name } ` ) ;
}
return val . trim ( ) ;
}
exports . getInput = getInput ;
/ * *
* Sets the value of an output .
*
* @ param name name of the output to set
2020-09-22 16:02:50 +00:00
* @ param value value to store . Non - string values will be converted to a string via JSON . stringify
2020-01-06 10:37:12 +00:00
* /
2020-09-22 16:02:50 +00:00
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2020-01-06 10:37:12 +00:00
function setOutput ( name , value ) {
command _1 . issueCommand ( 'set-output' , { name } , value ) ;
}
exports . setOutput = setOutput ;
2020-09-22 16:02:50 +00:00
/ * *
* Enables or disables the echoing of commands into stdout for the rest of the step .
* Echoing is disabled by default if ACTIONS _STEP _DEBUG is not set .
*
* /
function setCommandEcho ( enabled ) {
command _1 . issue ( 'echo' , enabled ? 'on' : 'off' ) ;
}
exports . setCommandEcho = setCommandEcho ;
2020-01-06 10:37:12 +00:00
//-----------------------------------------------------------------------
// Results
//-----------------------------------------------------------------------
/ * *
* Sets the action status to failed .
* When the action exits it will be with an exit code of 1
* @ param message add error issue message
* /
function setFailed ( message ) {
process . exitCode = ExitCode . Failure ;
error ( message ) ;
}
exports . setFailed = setFailed ;
//-----------------------------------------------------------------------
// Logging Commands
//-----------------------------------------------------------------------
2020-04-07 13:47:45 +00:00
/ * *
* Gets whether Actions Step Debug is on or not
* /
function isDebug ( ) {
return process . env [ 'RUNNER_DEBUG' ] === '1' ;
}
exports . isDebug = isDebug ;
2020-01-06 10:37:12 +00:00
/ * *
* Writes debug message to user log
* @ param message debug message
* /
function debug ( message ) {
command _1 . issueCommand ( 'debug' , { } , message ) ;
}
exports . debug = debug ;
/ * *
* Adds an error issue
2020-09-22 16:02:50 +00:00
* @ param message error issue message . Errors will be converted to string via toString ( )
2020-01-06 10:37:12 +00:00
* /
function error ( message ) {
2020-09-22 16:02:50 +00:00
command _1 . issue ( 'error' , message instanceof Error ? message . toString ( ) : message ) ;
2020-01-06 10:37:12 +00:00
}
exports . error = error ;
/ * *
* Adds an warning issue
2020-09-22 16:02:50 +00:00
* @ param message warning issue message . Errors will be converted to string via toString ( )
2020-01-06 10:37:12 +00:00
* /
function warning ( message ) {
2020-09-22 16:02:50 +00:00
command _1 . issue ( 'warning' , message instanceof Error ? message . toString ( ) : message ) ;
2020-01-06 10:37:12 +00:00
}
exports . warning = warning ;
/ * *
* Writes info to log with console . log .
* @ param message info message
* /
function info ( message ) {
process . stdout . write ( message + os . EOL ) ;
}
exports . info = info ;
/ * *
* Begin an output group .
*
* Output until the next ` groupEnd ` will be foldable in this group
*
* @ param name The name of the output group
* /
function startGroup ( name ) {
command _1 . issue ( 'group' , name ) ;
}
exports . startGroup = startGroup ;
/ * *
* End an output group .
* /
function endGroup ( ) {
command _1 . issue ( 'endgroup' ) ;
}
exports . endGroup = endGroup ;
/ * *
* Wrap an asynchronous function call in a group .
*
* Returns the same type as the function itself .
*
* @ param name The name of the group
* @ param fn The function to wrap in the group
* /
function group ( name , fn ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
startGroup ( name ) ;
let result ;
try {
result = yield fn ( ) ;
}
finally {
endGroup ( ) ;
}
return result ;
} ) ;
}
exports . group = group ;
//-----------------------------------------------------------------------
// Wrapper action state
//-----------------------------------------------------------------------
/ * *
* Saves state for current action , the state can only be retrieved by this action ' s post job execution .
*
* @ param name name of the state to store
2020-09-22 16:02:50 +00:00
* @ param value value to store . Non - string values will be converted to a string via JSON . stringify
2020-01-06 10:37:12 +00:00
* /
2020-09-22 16:02:50 +00:00
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2020-01-06 10:37:12 +00:00
function saveState ( name , value ) {
command _1 . issueCommand ( 'save-state' , { name } , value ) ;
}
exports . saveState = saveState ;
/ * *
* Gets the value of an state set by this action ' s main execution .
*
* @ param name name of the state to get
* @ returns string
* /
function getState ( name ) {
return process . env [ ` STATE_ ${ name } ` ] || '' ;
}
exports . getState = getState ;
//# sourceMappingURL=core.js.map
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 717 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-06 10:37:12 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
// For internal use, subject to change.
2020-09-22 16:02:50 +00:00
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
2021-07-23 13:33:33 +00:00
if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
result [ "default" ] = mod ;
2020-09-22 16:02:50 +00:00
return result ;
} ;
2021-07-23 13:33:33 +00:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
const fs = _ _importStar ( _ _nccwpck _require _ _ ( 747 ) ) ;
const os = _ _importStar ( _ _nccwpck _require _ _ ( 87 ) ) ;
const utils _1 = _ _nccwpck _require _ _ ( 278 ) ;
function issueCommand ( command , message ) {
const filePath = process . env [ ` GITHUB_ ${ command } ` ] ;
if ( ! filePath ) {
throw new Error ( ` Unable to find environment variable for file command ${ command } ` ) ;
}
if ( ! fs . existsSync ( filePath ) ) {
throw new Error ( ` Missing file at path: ${ filePath } ` ) ;
}
fs . appendFileSync ( filePath , ` ${ utils _1 . toCommandValue ( message ) } ${ os . EOL } ` , {
encoding : 'utf8'
2020-01-06 10:37:12 +00:00
} ) ;
}
2021-07-23 13:33:33 +00:00
exports . issueCommand = issueCommand ;
//# sourceMappingURL=file-command.js.map
/***/ } ) ,
/***/ 278 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
"use strict" ;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
/ * *
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @ param input input to sanitize into a string
* /
function toCommandValue ( input ) {
if ( input === null || input === undefined ) {
return '' ;
2020-01-11 14:35:28 +00:00
}
2021-07-23 13:33:33 +00:00
else if ( typeof input === 'string' || input instanceof String ) {
return input ;
2020-01-11 14:35:28 +00:00
}
2021-07-23 13:33:33 +00:00
return JSON . stringify ( input ) ;
2020-01-06 12:50:19 +00:00
}
2021-07-23 13:33:33 +00:00
exports . toCommandValue = toCommandValue ;
//# sourceMappingURL=utils.js.map
2020-01-06 10:37:12 +00:00
2021-05-14 09:15:39 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 803 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2021-05-14 09:15:39 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
var GetIntrinsic = _ _nccwpck _require _ _ ( 159 ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var callBind = _ _nccwpck _require _ _ ( 977 ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var $indexOf = callBind ( GetIntrinsic ( 'String.prototype.indexOf' ) ) ;
module . exports = function callBoundIntrinsic ( name , allowMissing ) {
var intrinsic = GetIntrinsic ( name , ! ! allowMissing ) ;
if ( typeof intrinsic === 'function' && $indexOf ( name , '.prototype.' ) > - 1 ) {
return callBind ( intrinsic ) ;
}
return intrinsic ;
2021-05-14 09:15:39 +00:00
} ;
2020-01-13 17:39:40 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 977 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2020-01-13 17:39:40 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
2020-01-13 17:39:40 +00:00
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var bind = _ _nccwpck _require _ _ ( 200 ) ;
var GetIntrinsic = _ _nccwpck _require _ _ ( 159 ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var $apply = GetIntrinsic ( '%Function.prototype.apply%' ) ;
var $call = GetIntrinsic ( '%Function.prototype.call%' ) ;
var $reflectApply = GetIntrinsic ( '%Reflect.apply%' , true ) || bind . call ( $call , $apply ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var $gOPD = GetIntrinsic ( '%Object.getOwnPropertyDescriptor%' , true ) ;
var $defineProperty = GetIntrinsic ( '%Object.defineProperty%' , true ) ;
var $max = GetIntrinsic ( '%Math.max%' ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( $defineProperty ) {
try {
$defineProperty ( { } , 'a' , { value : 1 } ) ;
} catch ( e ) {
// IE 8 has a broken defineProperty
$defineProperty = null ;
}
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
module . exports = function callBind ( originalFunction ) {
var func = $reflectApply ( bind , $call , arguments ) ;
if ( $gOPD && $defineProperty ) {
var desc = $gOPD ( func , 'length' ) ;
if ( desc . configurable ) {
// original length, plus the receiver, minus any additional arguments (after the receiver)
$defineProperty (
func ,
'length' ,
{ value : 1 + $max ( 0 , originalFunction . length - ( arguments . length - 1 ) ) }
) ;
}
}
return func ;
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var applyBind = function applyBind ( ) {
return $reflectApply ( bind , $apply , arguments ) ;
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( $defineProperty ) {
$defineProperty ( module . exports , 'apply' , { value : applyBind } ) ;
} else {
module . exports . apply = applyBind ;
}
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 320 :
/***/ ( ( module ) => {
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
"use strict" ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/* eslint no-invalid-this: 1 */
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var ERROR _MESSAGE = 'Function.prototype.bind called on incompatible ' ;
var slice = Array . prototype . slice ;
var toStr = Object . prototype . toString ;
var funcType = '[object Function]' ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
module . exports = function bind ( that ) {
var target = this ;
if ( typeof target !== 'function' || toStr . call ( target ) !== funcType ) {
throw new TypeError ( ERROR _MESSAGE + target ) ;
}
var args = slice . call ( arguments , 1 ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var bound ;
var binder = function ( ) {
if ( this instanceof bound ) {
var result = target . apply (
this ,
args . concat ( slice . call ( arguments ) )
) ;
if ( Object ( result ) === result ) {
return result ;
}
return this ;
} else {
return target . apply (
that ,
args . concat ( slice . call ( arguments ) )
) ;
}
} ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var boundLength = Math . max ( 0 , target . length - args . length ) ;
var boundArgs = [ ] ;
for ( var i = 0 ; i < boundLength ; i ++ ) {
boundArgs . push ( '$' + i ) ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
bound = Function ( 'binder' , 'return function (' + boundArgs . join ( ',' ) + '){ return binder.apply(this,arguments); }' ) ( binder ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
if ( target . prototype ) {
var Empty = function Empty ( ) { } ;
Empty . prototype = target . prototype ;
bound . prototype = new Empty ( ) ;
Empty . prototype = null ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
return bound ;
2021-05-14 09:15:39 +00:00
} ;
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 200 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
"use strict" ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var implementation = _ _nccwpck _require _ _ ( 320 ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
module . exports = Function . prototype . bind || implementation ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 159 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
2020-01-06 11:03:18 +00:00
2021-07-23 13:33:33 +00:00
var undefined ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var $SyntaxError = SyntaxError ;
var $Function = Function ;
var $TypeError = TypeError ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
// eslint-disable-next-line consistent-return
var getEvalledConstructor = function ( expressionSyntax ) {
try {
return $Function ( '"use strict"; return (' + expressionSyntax + ').constructor;' ) ( ) ;
} catch ( e ) { }
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var $gOPD = Object . getOwnPropertyDescriptor ;
if ( $gOPD ) {
try {
$gOPD ( { } , '' ) ;
} catch ( e ) {
$gOPD = null ; // this is IE 8, which has a broken gOPD
}
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var throwTypeError = function ( ) {
throw new $TypeError ( ) ;
} ;
var ThrowTypeError = $gOPD
? ( function ( ) {
try {
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
arguments . callee ; // IE 8 does not throw here
return throwTypeError ;
} catch ( calleeThrows ) {
try {
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
return $gOPD ( arguments , 'callee' ) . get ;
} catch ( gOPDthrows ) {
return throwTypeError ;
}
}
} ( ) )
: throwTypeError ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var hasSymbols = _ _nccwpck _require _ _ ( 587 ) ( ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var getProto = Object . getPrototypeOf || function ( x ) { return x . _ _proto _ _ ; } ; // eslint-disable-line no-proto
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var needsEval = { } ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto ( Uint8Array ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var INTRINSICS = {
'%AggregateError%' : typeof AggregateError === 'undefined' ? undefined : AggregateError ,
'%Array%' : Array ,
'%ArrayBuffer%' : typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer ,
'%ArrayIteratorPrototype%' : hasSymbols ? getProto ( [ ] [ Symbol . iterator ] ( ) ) : undefined ,
'%AsyncFromSyncIteratorPrototype%' : undefined ,
'%AsyncFunction%' : needsEval ,
'%AsyncGenerator%' : needsEval ,
'%AsyncGeneratorFunction%' : needsEval ,
'%AsyncIteratorPrototype%' : needsEval ,
'%Atomics%' : typeof Atomics === 'undefined' ? undefined : Atomics ,
'%BigInt%' : typeof BigInt === 'undefined' ? undefined : BigInt ,
'%Boolean%' : Boolean ,
'%DataView%' : typeof DataView === 'undefined' ? undefined : DataView ,
'%Date%' : Date ,
'%decodeURI%' : decodeURI ,
'%decodeURIComponent%' : decodeURIComponent ,
'%encodeURI%' : encodeURI ,
'%encodeURIComponent%' : encodeURIComponent ,
'%Error%' : Error ,
'%eval%' : eval , // eslint-disable-line no-eval
'%EvalError%' : EvalError ,
'%Float32Array%' : typeof Float32Array === 'undefined' ? undefined : Float32Array ,
'%Float64Array%' : typeof Float64Array === 'undefined' ? undefined : Float64Array ,
'%FinalizationRegistry%' : typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry ,
'%Function%' : $Function ,
'%GeneratorFunction%' : needsEval ,
'%Int8Array%' : typeof Int8Array === 'undefined' ? undefined : Int8Array ,
'%Int16Array%' : typeof Int16Array === 'undefined' ? undefined : Int16Array ,
'%Int32Array%' : typeof Int32Array === 'undefined' ? undefined : Int32Array ,
'%isFinite%' : isFinite ,
'%isNaN%' : isNaN ,
'%IteratorPrototype%' : hasSymbols ? getProto ( getProto ( [ ] [ Symbol . iterator ] ( ) ) ) : undefined ,
'%JSON%' : typeof JSON === 'object' ? JSON : undefined ,
'%Map%' : typeof Map === 'undefined' ? undefined : Map ,
'%MapIteratorPrototype%' : typeof Map === 'undefined' || ! hasSymbols ? undefined : getProto ( new Map ( ) [ Symbol . iterator ] ( ) ) ,
'%Math%' : Math ,
'%Number%' : Number ,
'%Object%' : Object ,
'%parseFloat%' : parseFloat ,
'%parseInt%' : parseInt ,
'%Promise%' : typeof Promise === 'undefined' ? undefined : Promise ,
'%Proxy%' : typeof Proxy === 'undefined' ? undefined : Proxy ,
'%RangeError%' : RangeError ,
'%ReferenceError%' : ReferenceError ,
'%Reflect%' : typeof Reflect === 'undefined' ? undefined : Reflect ,
'%RegExp%' : RegExp ,
'%Set%' : typeof Set === 'undefined' ? undefined : Set ,
'%SetIteratorPrototype%' : typeof Set === 'undefined' || ! hasSymbols ? undefined : getProto ( new Set ( ) [ Symbol . iterator ] ( ) ) ,
'%SharedArrayBuffer%' : typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer ,
'%String%' : String ,
'%StringIteratorPrototype%' : hasSymbols ? getProto ( '' [ Symbol . iterator ] ( ) ) : undefined ,
'%Symbol%' : hasSymbols ? Symbol : undefined ,
'%SyntaxError%' : $SyntaxError ,
'%ThrowTypeError%' : ThrowTypeError ,
'%TypedArray%' : TypedArray ,
'%TypeError%' : $TypeError ,
'%Uint8Array%' : typeof Uint8Array === 'undefined' ? undefined : Uint8Array ,
'%Uint8ClampedArray%' : typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray ,
'%Uint16Array%' : typeof Uint16Array === 'undefined' ? undefined : Uint16Array ,
'%Uint32Array%' : typeof Uint32Array === 'undefined' ? undefined : Uint32Array ,
'%URIError%' : URIError ,
'%WeakMap%' : typeof WeakMap === 'undefined' ? undefined : WeakMap ,
'%WeakRef%' : typeof WeakRef === 'undefined' ? undefined : WeakRef ,
'%WeakSet%' : typeof WeakSet === 'undefined' ? undefined : WeakSet
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var doEval = function doEval ( name ) {
var value ;
if ( name === '%AsyncFunction%' ) {
value = getEvalledConstructor ( 'async function () {}' ) ;
} else if ( name === '%GeneratorFunction%' ) {
value = getEvalledConstructor ( 'function* () {}' ) ;
} else if ( name === '%AsyncGeneratorFunction%' ) {
value = getEvalledConstructor ( 'async function* () {}' ) ;
} else if ( name === '%AsyncGenerator%' ) {
var fn = doEval ( '%AsyncGeneratorFunction%' ) ;
if ( fn ) {
value = fn . prototype ;
}
} else if ( name === '%AsyncIteratorPrototype%' ) {
var gen = doEval ( '%AsyncGenerator%' ) ;
if ( gen ) {
value = getProto ( gen . prototype ) ;
}
}
INTRINSICS [ name ] = value ;
return value ;
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var LEGACY _ALIASES = {
'%ArrayBufferPrototype%' : [ 'ArrayBuffer' , 'prototype' ] ,
'%ArrayPrototype%' : [ 'Array' , 'prototype' ] ,
'%ArrayProto_entries%' : [ 'Array' , 'prototype' , 'entries' ] ,
'%ArrayProto_forEach%' : [ 'Array' , 'prototype' , 'forEach' ] ,
'%ArrayProto_keys%' : [ 'Array' , 'prototype' , 'keys' ] ,
'%ArrayProto_values%' : [ 'Array' , 'prototype' , 'values' ] ,
'%AsyncFunctionPrototype%' : [ 'AsyncFunction' , 'prototype' ] ,
'%AsyncGenerator%' : [ 'AsyncGeneratorFunction' , 'prototype' ] ,
'%AsyncGeneratorPrototype%' : [ 'AsyncGeneratorFunction' , 'prototype' , 'prototype' ] ,
'%BooleanPrototype%' : [ 'Boolean' , 'prototype' ] ,
'%DataViewPrototype%' : [ 'DataView' , 'prototype' ] ,
'%DatePrototype%' : [ 'Date' , 'prototype' ] ,
'%ErrorPrototype%' : [ 'Error' , 'prototype' ] ,
'%EvalErrorPrototype%' : [ 'EvalError' , 'prototype' ] ,
'%Float32ArrayPrototype%' : [ 'Float32Array' , 'prototype' ] ,
'%Float64ArrayPrototype%' : [ 'Float64Array' , 'prototype' ] ,
'%FunctionPrototype%' : [ 'Function' , 'prototype' ] ,
'%Generator%' : [ 'GeneratorFunction' , 'prototype' ] ,
'%GeneratorPrototype%' : [ 'GeneratorFunction' , 'prototype' , 'prototype' ] ,
'%Int8ArrayPrototype%' : [ 'Int8Array' , 'prototype' ] ,
'%Int16ArrayPrototype%' : [ 'Int16Array' , 'prototype' ] ,
'%Int32ArrayPrototype%' : [ 'Int32Array' , 'prototype' ] ,
'%JSONParse%' : [ 'JSON' , 'parse' ] ,
'%JSONStringify%' : [ 'JSON' , 'stringify' ] ,
'%MapPrototype%' : [ 'Map' , 'prototype' ] ,
'%NumberPrototype%' : [ 'Number' , 'prototype' ] ,
'%ObjectPrototype%' : [ 'Object' , 'prototype' ] ,
'%ObjProto_toString%' : [ 'Object' , 'prototype' , 'toString' ] ,
'%ObjProto_valueOf%' : [ 'Object' , 'prototype' , 'valueOf' ] ,
'%PromisePrototype%' : [ 'Promise' , 'prototype' ] ,
'%PromiseProto_then%' : [ 'Promise' , 'prototype' , 'then' ] ,
'%Promise_all%' : [ 'Promise' , 'all' ] ,
'%Promise_reject%' : [ 'Promise' , 'reject' ] ,
'%Promise_resolve%' : [ 'Promise' , 'resolve' ] ,
'%RangeErrorPrototype%' : [ 'RangeError' , 'prototype' ] ,
'%ReferenceErrorPrototype%' : [ 'ReferenceError' , 'prototype' ] ,
'%RegExpPrototype%' : [ 'RegExp' , 'prototype' ] ,
'%SetPrototype%' : [ 'Set' , 'prototype' ] ,
'%SharedArrayBufferPrototype%' : [ 'SharedArrayBuffer' , 'prototype' ] ,
'%StringPrototype%' : [ 'String' , 'prototype' ] ,
'%SymbolPrototype%' : [ 'Symbol' , 'prototype' ] ,
'%SyntaxErrorPrototype%' : [ 'SyntaxError' , 'prototype' ] ,
'%TypedArrayPrototype%' : [ 'TypedArray' , 'prototype' ] ,
'%TypeErrorPrototype%' : [ 'TypeError' , 'prototype' ] ,
'%Uint8ArrayPrototype%' : [ 'Uint8Array' , 'prototype' ] ,
'%Uint8ClampedArrayPrototype%' : [ 'Uint8ClampedArray' , 'prototype' ] ,
'%Uint16ArrayPrototype%' : [ 'Uint16Array' , 'prototype' ] ,
'%Uint32ArrayPrototype%' : [ 'Uint32Array' , 'prototype' ] ,
'%URIErrorPrototype%' : [ 'URIError' , 'prototype' ] ,
'%WeakMapPrototype%' : [ 'WeakMap' , 'prototype' ] ,
'%WeakSetPrototype%' : [ 'WeakSet' , 'prototype' ]
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var bind = _ _nccwpck _require _ _ ( 200 ) ;
var hasOwn = _ _nccwpck _require _ _ ( 339 ) ;
var $concat = bind . call ( Function . call , Array . prototype . concat ) ;
var $spliceApply = bind . call ( Function . apply , Array . prototype . splice ) ;
var $replace = bind . call ( Function . call , String . prototype . replace ) ;
var $strSlice = bind . call ( Function . call , String . prototype . slice ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g ;
var reEscapeChar = /\\(\\)?/g ; /** Used to match backslashes in property paths. */
var stringToPath = function stringToPath ( string ) {
var first = $strSlice ( string , 0 , 1 ) ;
var last = $strSlice ( string , - 1 ) ;
if ( first === '%' && last !== '%' ) {
throw new $SyntaxError ( 'invalid intrinsic syntax, expected closing `%`' ) ;
} else if ( last === '%' && first !== '%' ) {
throw new $SyntaxError ( 'invalid intrinsic syntax, expected opening `%`' ) ;
}
var result = [ ] ;
$replace ( string , rePropName , function ( match , number , quote , subString ) {
result [ result . length ] = quote ? $replace ( subString , reEscapeChar , '$1' ) : number || match ;
} ) ;
return result ;
} ;
/* end adaptation */
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var getBaseIntrinsic = function getBaseIntrinsic ( name , allowMissing ) {
var intrinsicName = name ;
var alias ;
if ( hasOwn ( LEGACY _ALIASES , intrinsicName ) ) {
alias = LEGACY _ALIASES [ intrinsicName ] ;
intrinsicName = '%' + alias [ 0 ] + '%' ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( hasOwn ( INTRINSICS , intrinsicName ) ) {
var value = INTRINSICS [ intrinsicName ] ;
if ( value === needsEval ) {
value = doEval ( intrinsicName ) ;
}
if ( typeof value === 'undefined' && ! allowMissing ) {
throw new $TypeError ( 'intrinsic ' + name + ' exists, but is not available. Please file an issue!' ) ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
return {
alias : alias ,
name : intrinsicName ,
value : value
} ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
throw new $SyntaxError ( 'intrinsic ' + name + ' does not exist!' ) ;
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
module . exports = function GetIntrinsic ( name , allowMissing ) {
if ( typeof name !== 'string' || name . length === 0 ) {
throw new $TypeError ( 'intrinsic name must be a non-empty string' ) ;
}
if ( arguments . length > 1 && typeof allowMissing !== 'boolean' ) {
throw new $TypeError ( '"allowMissing" argument must be a boolean' ) ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var parts = stringToPath ( name ) ;
var intrinsicBaseName = parts . length > 0 ? parts [ 0 ] : '' ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var intrinsic = getBaseIntrinsic ( '%' + intrinsicBaseName + '%' , allowMissing ) ;
var intrinsicRealName = intrinsic . name ;
var value = intrinsic . value ;
var skipFurtherCaching = false ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var alias = intrinsic . alias ;
if ( alias ) {
intrinsicBaseName = alias [ 0 ] ;
$spliceApply ( parts , $concat ( [ 0 , 1 ] , alias ) ) ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
for ( var i = 1 , isOwn = true ; i < parts . length ; i += 1 ) {
var part = parts [ i ] ;
var first = $strSlice ( part , 0 , 1 ) ;
var last = $strSlice ( part , - 1 ) ;
if (
(
( first === '"' || first === "'" || first === '`' )
|| ( last === '"' || last === "'" || last === '`' )
)
&& first !== last
) {
throw new $SyntaxError ( 'property names with quotes must have matching quotes' ) ;
}
if ( part === 'constructor' || ! isOwn ) {
skipFurtherCaching = true ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
intrinsicBaseName += '.' + part ;
intrinsicRealName = '%' + intrinsicBaseName + '%' ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( hasOwn ( INTRINSICS , intrinsicRealName ) ) {
value = INTRINSICS [ intrinsicRealName ] ;
} else if ( value != null ) {
if ( ! ( part in value ) ) {
if ( ! allowMissing ) {
throw new $TypeError ( 'base intrinsic for ' + name + ' exists, but the property is not available.' ) ;
}
return void undefined ;
}
if ( $gOPD && ( i + 1 ) >= parts . length ) {
var desc = $gOPD ( value , part ) ;
isOwn = ! ! desc ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
// By convention, when a data property is converted to an accessor
// property to emulate a data property that does not suffer from
// the override mistake, that accessor's getter is marked with
// an `originalValue` property. Here, when we detect this, we
// uphold the illusion by pretending to see that original data
// property, i.e., returning the value rather than the getter
// itself.
if ( isOwn && 'get' in desc && ! ( 'originalValue' in desc . get ) ) {
value = desc . get ;
} else {
value = value [ part ] ;
}
} else {
isOwn = hasOwn ( value , part ) ;
value = value [ part ] ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( isOwn && ! skipFurtherCaching ) {
INTRINSICS [ intrinsicRealName ] = value ;
}
}
}
return value ;
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 587 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
2020-01-06 10:37:12 +00:00
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var origSymbol = global . Symbol ;
var hasSymbolSham = _ _nccwpck _require _ _ ( 81 ) ;
module . exports = function hasNativeSymbols ( ) {
if ( typeof origSymbol !== 'function' ) { return false ; }
if ( typeof Symbol !== 'function' ) { return false ; }
if ( typeof origSymbol ( 'foo' ) !== 'symbol' ) { return false ; }
if ( typeof Symbol ( 'bar' ) !== 'symbol' ) { return false ; }
return hasSymbolSham ( ) ;
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 81 :
/***/ ( ( module ) => {
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
"use strict" ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/* eslint complexity: [2, 18], max-statements: [2, 33] */
module . exports = function hasSymbols ( ) {
if ( typeof Symbol !== 'function' || typeof Object . getOwnPropertySymbols !== 'function' ) { return false ; }
if ( typeof Symbol . iterator === 'symbol' ) { return true ; }
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var obj = { } ;
var sym = Symbol ( 'test' ) ;
var symObj = Object ( sym ) ;
if ( typeof sym === 'string' ) { return false ; }
if ( Object . prototype . toString . call ( sym ) !== '[object Symbol]' ) { return false ; }
if ( Object . prototype . toString . call ( symObj ) !== '[object Symbol]' ) { return false ; }
// temp disabled per https://github.com/ljharb/object.assign/issues/17
// if (sym instanceof Symbol) { return false; }
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
// if (!(symObj instanceof Symbol)) { return false; }
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
var symVal = 42 ;
obj [ sym ] = symVal ;
for ( sym in obj ) { return false ; } // eslint-disable-line no-restricted-syntax
if ( typeof Object . keys === 'function' && Object . keys ( obj ) . length !== 0 ) { return false ; }
if ( typeof Object . getOwnPropertyNames === 'function' && Object . getOwnPropertyNames ( obj ) . length !== 0 ) { return false ; }
var syms = Object . getOwnPropertySymbols ( obj ) ;
if ( syms . length !== 1 || syms [ 0 ] !== sym ) { return false ; }
if ( ! Object . prototype . propertyIsEnumerable . call ( obj , sym ) ) { return false ; }
if ( typeof Object . getOwnPropertyDescriptor === 'function' ) {
var descriptor = Object . getOwnPropertyDescriptor ( obj , sym ) ;
if ( descriptor . value !== symVal || descriptor . enumerable !== true ) { return false ; }
}
return true ;
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 339 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
"use strict" ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var bind = _ _nccwpck _require _ _ ( 200 ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
module . exports = bind . call ( Function . call , Object . prototype . hasOwnProperty ) ;
2020-01-06 10:37:12 +00:00
2021-05-14 09:15:39 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 334 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2021-05-14 09:15:39 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
var GetIntrinsic = _ _nccwpck _require _ _ ( 159 ) ;
var callBound = _ _nccwpck _require _ _ ( 803 ) ;
var inspect = _ _nccwpck _require _ _ ( 909 ) ;
2021-05-14 09:15:39 +00:00
var $TypeError = GetIntrinsic ( '%TypeError%' ) ;
var $WeakMap = GetIntrinsic ( '%WeakMap%' , true ) ;
var $Map = GetIntrinsic ( '%Map%' , true ) ;
var $weakMapGet = callBound ( 'WeakMap.prototype.get' , true ) ;
var $weakMapSet = callBound ( 'WeakMap.prototype.set' , true ) ;
var $weakMapHas = callBound ( 'WeakMap.prototype.has' , true ) ;
var $mapGet = callBound ( 'Map.prototype.get' , true ) ;
var $mapSet = callBound ( 'Map.prototype.set' , true ) ;
var $mapHas = callBound ( 'Map.prototype.has' , true ) ;
/ *
* This function traverses the list returning the node corresponding to the
* given key .
*
* That node is also moved to the head of the list , so that if it ' s accessed
* again we don ' t need to traverse the whole list . By doing so , all the recently
* used nodes can be accessed relatively quickly .
* /
var listGetNode = function ( list , key ) { // eslint-disable-line consistent-return
for ( var prev = list , curr ; ( curr = prev . next ) !== null ; prev = curr ) {
if ( curr . key === key ) {
prev . next = curr . next ;
curr . next = list . next ;
list . next = curr ; // eslint-disable-line no-param-reassign
return curr ;
}
}
} ;
var listGet = function ( objects , key ) {
var node = listGetNode ( objects , key ) ;
return node && node . value ;
} ;
var listSet = function ( objects , key , value ) {
var node = listGetNode ( objects , key ) ;
if ( node ) {
node . value = value ;
} else {
// Prepend the new node to the beginning of the list
objects . next = { // eslint-disable-line no-param-reassign
key : key ,
next : objects . next ,
value : value
} ;
}
} ;
var listHas = function ( objects , key ) {
return ! ! listGetNode ( objects , key ) ;
} ;
module . exports = function getSideChannel ( ) {
var $wm ;
var $m ;
var $o ;
var channel = {
assert : function ( key ) {
if ( ! channel . has ( key ) ) {
throw new $TypeError ( 'Side channel does not contain ' + inspect ( key ) ) ;
}
} ,
get : function ( key ) { // eslint-disable-line consistent-return
if ( $WeakMap && key && ( typeof key === 'object' || typeof key === 'function' ) ) {
if ( $wm ) {
return $weakMapGet ( $wm , key ) ;
}
} else if ( $Map ) {
if ( $m ) {
return $mapGet ( $m , key ) ;
}
} else {
if ( $o ) { // eslint-disable-line no-lonely-if
return listGet ( $o , key ) ;
}
}
} ,
has : function ( key ) {
if ( $WeakMap && key && ( typeof key === 'object' || typeof key === 'function' ) ) {
if ( $wm ) {
return $weakMapHas ( $wm , key ) ;
}
} else if ( $Map ) {
if ( $m ) {
return $mapHas ( $m , key ) ;
}
} else {
if ( $o ) { // eslint-disable-line no-lonely-if
return listHas ( $o , key ) ;
}
}
return false ;
} ,
set : function ( key , value ) {
if ( $WeakMap && key && ( typeof key === 'object' || typeof key === 'function' ) ) {
if ( ! $wm ) {
$wm = new $WeakMap ( ) ;
}
$weakMapSet ( $wm , key , value ) ;
} else if ( $Map ) {
if ( ! $m ) {
$m = new $Map ( ) ;
}
$mapSet ( $m , key , value ) ;
} else {
if ( ! $o ) {
/ *
* Initialize the linked list as an empty node , so that we don ' t have
* to special - case handling of the first node : we can always refer to
* it as ( previous node ) . next , instead of something like ( list ) . head
* /
$o = { key : { } , next : null } ;
}
listSet ( $o , key , value ) ;
}
}
} ;
return channel ;
} ;
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 909 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var hasMap = typeof Map === 'function' && Map . prototype ;
var mapSizeDescriptor = Object . getOwnPropertyDescriptor && hasMap ? Object . getOwnPropertyDescriptor ( Map . prototype , 'size' ) : null ;
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor . get === 'function' ? mapSizeDescriptor . get : null ;
var mapForEach = hasMap && Map . prototype . forEach ;
var hasSet = typeof Set === 'function' && Set . prototype ;
var setSizeDescriptor = Object . getOwnPropertyDescriptor && hasSet ? Object . getOwnPropertyDescriptor ( Set . prototype , 'size' ) : null ;
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor . get === 'function' ? setSizeDescriptor . get : null ;
var setForEach = hasSet && Set . prototype . forEach ;
var hasWeakMap = typeof WeakMap === 'function' && WeakMap . prototype ;
var weakMapHas = hasWeakMap ? WeakMap . prototype . has : null ;
var hasWeakSet = typeof WeakSet === 'function' && WeakSet . prototype ;
var weakSetHas = hasWeakSet ? WeakSet . prototype . has : null ;
var hasWeakRef = typeof WeakRef === 'function' && WeakRef . prototype ;
var weakRefDeref = hasWeakRef ? WeakRef . prototype . deref : null ;
var booleanValueOf = Boolean . prototype . valueOf ;
var objectToString = Object . prototype . toString ;
var functionToString = Function . prototype . toString ;
var match = String . prototype . match ;
var bigIntValueOf = typeof BigInt === 'function' ? BigInt . prototype . valueOf : null ;
var gOPS = Object . getOwnPropertySymbols ;
var symToString = typeof Symbol === 'function' && typeof Symbol . iterator === 'symbol' ? Symbol . prototype . toString : null ;
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol . iterator === 'object' ;
var isEnumerable = Object . prototype . propertyIsEnumerable ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var gPO = ( typeof Reflect === 'function' ? Reflect . getPrototypeOf : Object . getPrototypeOf ) || (
[ ] . _ _proto _ _ === Array . prototype // eslint-disable-line no-proto
? function ( O ) {
return O . _ _proto _ _ ; // eslint-disable-line no-proto
}
: null
) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var inspectCustom = _ _nccwpck _require _ _ ( 284 ) . custom ;
var inspectSymbol = inspectCustom && isSymbol ( inspectCustom ) ? inspectCustom : null ;
var toStringTag = typeof Symbol === 'function' && typeof Symbol . toStringTag !== 'undefined' ? Symbol . toStringTag : null ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
module . exports = function inspect _ ( obj , options , depth , seen ) {
var opts = options || { } ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
if ( has ( opts , 'quoteStyle' ) && ( opts . quoteStyle !== 'single' && opts . quoteStyle !== 'double' ) ) {
throw new TypeError ( 'option "quoteStyle" must be "single" or "double"' ) ;
}
if (
has ( opts , 'maxStringLength' ) && ( typeof opts . maxStringLength === 'number'
? opts . maxStringLength < 0 && opts . maxStringLength !== Infinity
: opts . maxStringLength !== null
)
) {
throw new TypeError ( 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' ) ;
}
var customInspect = has ( opts , 'customInspect' ) ? opts . customInspect : true ;
if ( typeof customInspect !== 'boolean' ) {
throw new TypeError ( 'option "customInspect", if provided, must be `true` or `false`' ) ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
if (
has ( opts , 'indent' )
&& opts . indent !== null
&& opts . indent !== '\t'
&& ! ( parseInt ( opts . indent , 10 ) === opts . indent && opts . indent > 0 )
) {
throw new TypeError ( 'options "indent" must be "\\t", an integer > 0, or `null`' ) ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
if ( typeof obj === 'undefined' ) {
return 'undefined' ;
}
if ( obj === null ) {
return 'null' ;
}
if ( typeof obj === 'boolean' ) {
return obj ? 'true' : 'false' ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
if ( typeof obj === 'string' ) {
return inspectString ( obj , opts ) ;
}
if ( typeof obj === 'number' ) {
if ( obj === 0 ) {
return Infinity / obj > 0 ? '0' : '-0' ;
}
return String ( obj ) ;
}
if ( typeof obj === 'bigint' ) {
return String ( obj ) + 'n' ;
}
2021-05-14 09:15:39 +00:00
var maxDepth = typeof opts . depth === 'undefined' ? 5 : opts . depth ;
if ( typeof depth === 'undefined' ) { depth = 0 ; }
if ( depth >= maxDepth && maxDepth > 0 && typeof obj === 'object' ) {
return isArray ( obj ) ? '[Array]' : '[Object]' ;
}
var indent = getIndent ( opts , depth ) ;
if ( typeof seen === 'undefined' ) {
seen = [ ] ;
} else if ( indexOf ( seen , obj ) >= 0 ) {
return '[Circular]' ;
}
function inspect ( value , from , noIndent ) {
if ( from ) {
seen = seen . slice ( ) ;
seen . push ( from ) ;
}
if ( noIndent ) {
var newOpts = {
depth : opts . depth
} ;
if ( has ( opts , 'quoteStyle' ) ) {
newOpts . quoteStyle = opts . quoteStyle ;
}
return inspect _ ( value , newOpts , depth + 1 , seen ) ;
}
return inspect _ ( value , opts , depth + 1 , seen ) ;
}
if ( typeof obj === 'function' ) {
var name = nameOf ( obj ) ;
var keys = arrObjKeys ( obj , inspect ) ;
return '[Function' + ( name ? ': ' + name : ' (anonymous)' ) + ']' + ( keys . length > 0 ? ' { ' + keys . join ( ', ' ) + ' }' : '' ) ;
}
if ( isSymbol ( obj ) ) {
var symString = hasShammedSymbols ? String ( obj ) . replace ( /^(Symbol\(.*\))_[^)]*$/ , '$1' ) : symToString . call ( obj ) ;
return typeof obj === 'object' && ! hasShammedSymbols ? markBoxed ( symString ) : symString ;
}
if ( isElement ( obj ) ) {
var s = '<' + String ( obj . nodeName ) . toLowerCase ( ) ;
var attrs = obj . attributes || [ ] ;
for ( var i = 0 ; i < attrs . length ; i ++ ) {
s += ' ' + attrs [ i ] . name + '=' + wrapQuotes ( quote ( attrs [ i ] . value ) , 'double' , opts ) ;
}
s += '>' ;
if ( obj . childNodes && obj . childNodes . length ) { s += '...' ; }
s += '</' + String ( obj . nodeName ) . toLowerCase ( ) + '>' ;
return s ;
}
if ( isArray ( obj ) ) {
if ( obj . length === 0 ) { return '[]' ; }
var xs = arrObjKeys ( obj , inspect ) ;
if ( indent && ! singleLineValues ( xs ) ) {
return '[' + indentedJoin ( xs , indent ) + ']' ;
}
return '[ ' + xs . join ( ', ' ) + ' ]' ;
}
if ( isError ( obj ) ) {
var parts = arrObjKeys ( obj , inspect ) ;
if ( parts . length === 0 ) { return '[' + String ( obj ) + ']' ; }
return '{ [' + String ( obj ) + '] ' + parts . join ( ', ' ) + ' }' ;
}
if ( typeof obj === 'object' && customInspect ) {
if ( inspectSymbol && typeof obj [ inspectSymbol ] === 'function' ) {
return obj [ inspectSymbol ] ( ) ;
} else if ( typeof obj . inspect === 'function' ) {
return obj . inspect ( ) ;
}
}
if ( isMap ( obj ) ) {
var mapParts = [ ] ;
mapForEach . call ( obj , function ( value , key ) {
mapParts . push ( inspect ( key , obj , true ) + ' => ' + inspect ( value , obj ) ) ;
} ) ;
return collectionOf ( 'Map' , mapSize . call ( obj ) , mapParts , indent ) ;
}
if ( isSet ( obj ) ) {
var setParts = [ ] ;
setForEach . call ( obj , function ( value ) {
setParts . push ( inspect ( value , obj ) ) ;
} ) ;
return collectionOf ( 'Set' , setSize . call ( obj ) , setParts , indent ) ;
}
if ( isWeakMap ( obj ) ) {
return weakCollectionOf ( 'WeakMap' ) ;
}
if ( isWeakSet ( obj ) ) {
return weakCollectionOf ( 'WeakSet' ) ;
}
if ( isWeakRef ( obj ) ) {
return weakCollectionOf ( 'WeakRef' ) ;
}
if ( isNumber ( obj ) ) {
return markBoxed ( inspect ( Number ( obj ) ) ) ;
}
if ( isBigInt ( obj ) ) {
return markBoxed ( inspect ( bigIntValueOf . call ( obj ) ) ) ;
}
if ( isBoolean ( obj ) ) {
return markBoxed ( booleanValueOf . call ( obj ) ) ;
}
if ( isString ( obj ) ) {
return markBoxed ( inspect ( String ( obj ) ) ) ;
}
if ( ! isDate ( obj ) && ! isRegExp ( obj ) ) {
var ys = arrObjKeys ( obj , inspect ) ;
var isPlainObject = gPO ? gPO ( obj ) === Object . prototype : obj instanceof Object || obj . constructor === Object ;
var protoTag = obj instanceof Object ? '' : 'null prototype' ;
var stringTag = ! isPlainObject && toStringTag && Object ( obj ) === obj && toStringTag in obj ? toStr ( obj ) . slice ( 8 , - 1 ) : protoTag ? 'Object' : '' ;
var constructorTag = isPlainObject || typeof obj . constructor !== 'function' ? '' : obj . constructor . name ? obj . constructor . name + ' ' : '' ;
var tag = constructorTag + ( stringTag || protoTag ? '[' + [ ] . concat ( stringTag || [ ] , protoTag || [ ] ) . join ( ': ' ) + '] ' : '' ) ;
if ( ys . length === 0 ) { return tag + '{}' ; }
if ( indent ) {
return tag + '{' + indentedJoin ( ys , indent ) + '}' ;
}
return tag + '{ ' + ys . join ( ', ' ) + ' }' ;
}
return String ( obj ) ;
} ;
function wrapQuotes ( s , defaultStyle , opts ) {
var quoteChar = ( opts . quoteStyle || defaultStyle ) === 'double' ? '"' : "'" ;
return quoteChar + s + quoteChar ;
}
function quote ( s ) {
return String ( s ) . replace ( /"/g , '"' ) ;
}
function isArray ( obj ) { return toStr ( obj ) === '[object Array]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
function isDate ( obj ) { return toStr ( obj ) === '[object Date]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
function isRegExp ( obj ) { return toStr ( obj ) === '[object RegExp]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
function isError ( obj ) { return toStr ( obj ) === '[object Error]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
function isString ( obj ) { return toStr ( obj ) === '[object String]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
function isNumber ( obj ) { return toStr ( obj ) === '[object Number]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
function isBoolean ( obj ) { return toStr ( obj ) === '[object Boolean]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
function isSymbol ( obj ) {
if ( hasShammedSymbols ) {
return obj && typeof obj === 'object' && obj instanceof Symbol ;
}
if ( typeof obj === 'symbol' ) {
return true ;
}
if ( ! obj || typeof obj !== 'object' || ! symToString ) {
return false ;
}
try {
symToString . call ( obj ) ;
return true ;
} catch ( e ) { }
return false ;
}
function isBigInt ( obj ) {
if ( ! obj || typeof obj !== 'object' || ! bigIntValueOf ) {
return false ;
}
try {
bigIntValueOf . call ( obj ) ;
return true ;
} catch ( e ) { }
return false ;
}
var hasOwn = Object . prototype . hasOwnProperty || function ( key ) { return key in this ; } ;
function has ( obj , key ) {
return hasOwn . call ( obj , key ) ;
}
function toStr ( obj ) {
return objectToString . call ( obj ) ;
}
function nameOf ( f ) {
if ( f . name ) { return f . name ; }
var m = match . call ( functionToString . call ( f ) , /^function\s*([\w$]+)/ ) ;
if ( m ) { return m [ 1 ] ; }
return null ;
}
function indexOf ( xs , x ) {
if ( xs . indexOf ) { return xs . indexOf ( x ) ; }
for ( var i = 0 , l = xs . length ; i < l ; i ++ ) {
if ( xs [ i ] === x ) { return i ; }
}
return - 1 ;
}
function isMap ( x ) {
if ( ! mapSize || ! x || typeof x !== 'object' ) {
return false ;
}
try {
mapSize . call ( x ) ;
try {
setSize . call ( x ) ;
} catch ( s ) {
return true ;
}
return x instanceof Map ; // core-js workaround, pre-v2.5.0
} catch ( e ) { }
return false ;
}
function isWeakMap ( x ) {
if ( ! weakMapHas || ! x || typeof x !== 'object' ) {
return false ;
}
try {
weakMapHas . call ( x , weakMapHas ) ;
try {
weakSetHas . call ( x , weakSetHas ) ;
} catch ( s ) {
return true ;
}
return x instanceof WeakMap ; // core-js workaround, pre-v2.5.0
} catch ( e ) { }
return false ;
}
function isWeakRef ( x ) {
if ( ! weakRefDeref || ! x || typeof x !== 'object' ) {
return false ;
}
try {
weakRefDeref . call ( x ) ;
return true ;
} catch ( e ) { }
return false ;
}
function isSet ( x ) {
if ( ! setSize || ! x || typeof x !== 'object' ) {
return false ;
}
try {
setSize . call ( x ) ;
try {
mapSize . call ( x ) ;
} catch ( m ) {
return true ;
}
return x instanceof Set ; // core-js workaround, pre-v2.5.0
} catch ( e ) { }
return false ;
}
function isWeakSet ( x ) {
if ( ! weakSetHas || ! x || typeof x !== 'object' ) {
return false ;
}
try {
weakSetHas . call ( x , weakSetHas ) ;
try {
weakMapHas . call ( x , weakMapHas ) ;
} catch ( s ) {
return true ;
}
return x instanceof WeakSet ; // core-js workaround, pre-v2.5.0
} catch ( e ) { }
return false ;
}
function isElement ( x ) {
if ( ! x || typeof x !== 'object' ) { return false ; }
if ( typeof HTMLElement !== 'undefined' && x instanceof HTMLElement ) {
return true ;
}
return typeof x . nodeName === 'string' && typeof x . getAttribute === 'function' ;
}
function inspectString ( str , opts ) {
if ( str . length > opts . maxStringLength ) {
var remaining = str . length - opts . maxStringLength ;
var trailer = '... ' + remaining + ' more character' + ( remaining > 1 ? 's' : '' ) ;
return inspectString ( str . slice ( 0 , opts . maxStringLength ) , opts ) + trailer ;
}
// eslint-disable-next-line no-control-regex
var s = str . replace ( /(['\\])/g , '\\$1' ) . replace ( /[\x00-\x1f]/g , lowbyte ) ;
return wrapQuotes ( s , 'single' , opts ) ;
}
function lowbyte ( c ) {
var n = c . charCodeAt ( 0 ) ;
var x = {
8 : 'b' ,
9 : 't' ,
10 : 'n' ,
12 : 'f' ,
13 : 'r'
} [ n ] ;
if ( x ) { return '\\' + x ; }
return '\\x' + ( n < 0x10 ? '0' : '' ) + n . toString ( 16 ) . toUpperCase ( ) ;
}
function markBoxed ( str ) {
return 'Object(' + str + ')' ;
}
function weakCollectionOf ( type ) {
return type + ' { ? }' ;
}
function collectionOf ( type , size , entries , indent ) {
var joinedEntries = indent ? indentedJoin ( entries , indent ) : entries . join ( ', ' ) ;
return type + ' (' + size + ') {' + joinedEntries + '}' ;
}
function singleLineValues ( xs ) {
for ( var i = 0 ; i < xs . length ; i ++ ) {
if ( indexOf ( xs [ i ] , '\n' ) >= 0 ) {
return false ;
}
}
return true ;
}
function getIndent ( opts , depth ) {
var baseIndent ;
if ( opts . indent === '\t' ) {
baseIndent = '\t' ;
} else if ( typeof opts . indent === 'number' && opts . indent > 0 ) {
baseIndent = Array ( opts . indent + 1 ) . join ( ' ' ) ;
} else {
return null ;
}
return {
base : baseIndent ,
prev : Array ( depth + 1 ) . join ( baseIndent )
} ;
}
function indentedJoin ( xs , indent ) {
if ( xs . length === 0 ) { return '' ; }
var lineJoiner = '\n' + indent . prev + indent . base ;
return lineJoiner + xs . join ( ',' + lineJoiner ) + '\n' + indent . prev ;
}
function arrObjKeys ( obj , inspect ) {
var isArr = isArray ( obj ) ;
var xs = [ ] ;
if ( isArr ) {
xs . length = obj . length ;
for ( var i = 0 ; i < obj . length ; i ++ ) {
xs [ i ] = has ( obj , i ) ? inspect ( obj [ i ] , obj ) : '' ;
}
}
var syms = typeof gOPS === 'function' ? gOPS ( obj ) : [ ] ;
var symMap ;
if ( hasShammedSymbols ) {
symMap = { } ;
for ( var k = 0 ; k < syms . length ; k ++ ) {
symMap [ '$' + syms [ k ] ] = syms [ k ] ;
}
}
for ( var key in obj ) { // eslint-disable-line no-restricted-syntax
if ( ! has ( obj , key ) ) { continue ; } // eslint-disable-line no-restricted-syntax, no-continue
if ( isArr && String ( Number ( key ) ) === key && key < obj . length ) { continue ; } // eslint-disable-line no-restricted-syntax, no-continue
if ( hasShammedSymbols && symMap [ '$' + key ] instanceof Symbol ) {
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
continue ; // eslint-disable-line no-restricted-syntax, no-continue
} else if ( ( /[^\w$]/ ) . test ( key ) ) {
xs . push ( inspect ( key , obj ) + ': ' + inspect ( obj [ key ] , obj ) ) ;
} else {
xs . push ( key + ': ' + inspect ( obj [ key ] , obj ) ) ;
}
}
if ( typeof gOPS === 'function' ) {
for ( var j = 0 ; j < syms . length ; j ++ ) {
if ( isEnumerable . call ( obj , syms [ j ] ) ) {
xs . push ( '[' + inspect ( syms [ j ] ) + ']: ' + inspect ( obj [ syms [ j ] ] , obj ) ) ;
}
}
}
return xs ;
}
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 284 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
module . exports = _ _nccwpck _require _ _ ( 669 ) . inspect ;
/***/ } ) ,
/***/ 294 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
module . exports = _ _nccwpck _require _ _ ( 219 ) ;
/***/ } ) ,
/***/ 219 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
"use strict" ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var net = _ _nccwpck _require _ _ ( 631 ) ;
var tls = _ _nccwpck _require _ _ ( 16 ) ;
var http = _ _nccwpck _require _ _ ( 605 ) ;
var https = _ _nccwpck _require _ _ ( 211 ) ;
var events = _ _nccwpck _require _ _ ( 614 ) ;
var assert = _ _nccwpck _require _ _ ( 357 ) ;
var util = _ _nccwpck _require _ _ ( 669 ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
exports . httpOverHttp = httpOverHttp ;
exports . httpsOverHttp = httpsOverHttp ;
exports . httpOverHttps = httpOverHttps ;
exports . httpsOverHttps = httpsOverHttps ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function httpOverHttp ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = http . request ;
return agent ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function httpsOverHttp ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = http . request ;
agent . createSocket = createSecureSocket ;
agent . defaultPort = 443 ;
return agent ;
}
2020-01-06 11:03:18 +00:00
2021-07-23 13:33:33 +00:00
function httpOverHttps ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = https . request ;
return agent ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
function httpsOverHttps ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = https . request ;
agent . createSocket = createSecureSocket ;
agent . defaultPort = 443 ;
return agent ;
}
2021-05-14 09:15:39 +00:00
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function TunnelingAgent ( options ) {
var self = this ;
self . options = options || { } ;
self . proxyOptions = self . options . proxy || { } ;
self . maxSockets = self . options . maxSockets || http . Agent . defaultMaxSockets ;
self . requests = [ ] ;
self . sockets = [ ] ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
self . on ( 'free' , function onFree ( socket , host , port , localAddress ) {
var options = toOptions ( host , port , localAddress ) ;
for ( var i = 0 , len = self . requests . length ; i < len ; ++ i ) {
var pending = self . requests [ i ] ;
if ( pending . host === options . host && pending . port === options . port ) {
// Detect the request to connect same origin server,
// reuse the connection.
self . requests . splice ( i , 1 ) ;
pending . request . onSocket ( socket ) ;
return ;
}
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
socket . destroy ( ) ;
self . removeSocket ( socket ) ;
} ) ;
}
util . inherits ( TunnelingAgent , events . EventEmitter ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
TunnelingAgent . prototype . addRequest = function addRequest ( req , host , port , localAddress ) {
var self = this ;
var options = mergeOptions ( { request : req } , self . options , toOptions ( host , port , localAddress ) ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( self . sockets . length >= this . maxSockets ) {
// We are over limit so we'll add it to the queue.
self . requests . push ( options ) ;
return ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
// If we are under maxSockets create a new one.
self . createSocket ( options , function ( socket ) {
socket . on ( 'free' , onFree ) ;
socket . on ( 'close' , onCloseOrRemove ) ;
socket . on ( 'agentRemove' , onCloseOrRemove ) ;
req . onSocket ( socket ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function onFree ( ) {
self . emit ( 'free' , socket , options ) ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
function onCloseOrRemove ( err ) {
self . removeSocket ( socket ) ;
socket . removeListener ( 'free' , onFree ) ;
socket . removeListener ( 'close' , onCloseOrRemove ) ;
socket . removeListener ( 'agentRemove' , onCloseOrRemove ) ;
2020-01-06 11:03:18 +00:00
}
2021-07-23 13:33:33 +00:00
} ) ;
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
TunnelingAgent . prototype . createSocket = function createSocket ( options , cb ) {
var self = this ;
var placeholder = { } ;
self . sockets . push ( placeholder ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var connectOptions = mergeOptions ( { } , self . proxyOptions , {
method : 'CONNECT' ,
path : options . host + ':' + options . port ,
agent : false ,
headers : {
host : options . host + ':' + options . port
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
} ) ;
if ( options . localAddress ) {
connectOptions . localAddress = options . localAddress ;
}
if ( connectOptions . proxyAuth ) {
connectOptions . headers = connectOptions . headers || { } ;
connectOptions . headers [ 'Proxy-Authorization' ] = 'Basic ' +
new Buffer ( connectOptions . proxyAuth ) . toString ( 'base64' ) ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
debug ( 'making CONNECT request' ) ;
var connectReq = self . request ( connectOptions ) ;
connectReq . useChunkedEncodingByDefault = false ; // for v0.6
connectReq . once ( 'response' , onResponse ) ; // for v0.6
connectReq . once ( 'upgrade' , onUpgrade ) ; // for v0.6
connectReq . once ( 'connect' , onConnect ) ; // for v0.7 or later
connectReq . once ( 'error' , onError ) ;
connectReq . end ( ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function onResponse ( res ) {
// Very hacky. This is necessary to avoid http-parser leaks.
res . upgrade = true ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function onUpgrade ( res , socket , head ) {
// Hacky.
process . nextTick ( function ( ) {
onConnect ( res , socket , head ) ;
} ) ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function onConnect ( res , socket , head ) {
connectReq . removeAllListeners ( ) ;
socket . removeAllListeners ( ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
if ( res . statusCode !== 200 ) {
debug ( 'tunneling socket could not be established, statusCode=%d' ,
res . statusCode ) ;
socket . destroy ( ) ;
var error = new Error ( 'tunneling socket could not be established, ' +
'statusCode=' + res . statusCode ) ;
error . code = 'ECONNRESET' ;
options . request . emit ( 'error' , error ) ;
self . removeSocket ( placeholder ) ;
return ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
if ( head . length > 0 ) {
debug ( 'got illegal response body from proxy' ) ;
socket . destroy ( ) ;
var error = new Error ( 'got illegal response body from proxy' ) ;
error . code = 'ECONNRESET' ;
options . request . emit ( 'error' , error ) ;
self . removeSocket ( placeholder ) ;
return ;
2020-01-06 10:37:12 +00:00
}
2021-07-23 13:33:33 +00:00
debug ( 'tunneling connection has established' ) ;
self . sockets [ self . sockets . indexOf ( placeholder ) ] = socket ;
return cb ( socket ) ;
}
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
function onError ( cause ) {
connectReq . removeAllListeners ( ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
debug ( 'tunneling socket could not be established, cause=%s\n' ,
cause . message , cause . stack ) ;
var error = new Error ( 'tunneling socket could not be established, ' +
'cause=' + cause . message ) ;
error . code = 'ECONNRESET' ;
options . request . emit ( 'error' , error ) ;
self . removeSocket ( placeholder ) ;
}
2020-01-06 11:03:18 +00:00
} ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
TunnelingAgent . prototype . removeSocket = function removeSocket ( socket ) {
var pos = this . sockets . indexOf ( socket )
if ( pos === - 1 ) {
return ;
}
this . sockets . splice ( pos , 1 ) ;
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var pending = this . requests . shift ( ) ;
if ( pending ) {
// If we have pending requests and a socket gets closed a new one
// needs to be created to take over in the pool for the one that closed.
this . createSocket ( pending , function ( socket ) {
pending . request . onSocket ( socket ) ;
} ) ;
}
} ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
function createSecureSocket ( options , cb ) {
var self = this ;
TunnelingAgent . prototype . createSocket . call ( self , options , function ( socket ) {
var hostHeader = options . request . getHeader ( 'host' ) ;
var tlsOptions = mergeOptions ( { } , self . options , {
socket : socket ,
servername : hostHeader ? hostHeader . replace ( /:.*$/ , '' ) : options . host
} ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
// 0 is dummy port for v0.6
var secureSocket = tls . connect ( 0 , tlsOptions ) ;
self . sockets [ self . sockets . indexOf ( socket ) ] = secureSocket ;
cb ( secureSocket ) ;
} ) ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
function toOptions ( host , port , localAddress ) {
if ( typeof host === 'string' ) { // since v0.10
return {
host : host ,
port : port ,
localAddress : localAddress
} ;
}
return host ; // for v0.11 or later
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
function mergeOptions ( target ) {
for ( var i = 1 , len = arguments . length ; i < len ; ++ i ) {
var overrides = arguments [ i ] ;
if ( typeof overrides === 'object' ) {
var keys = Object . keys ( overrides ) ;
for ( var j = 0 , keyLen = keys . length ; j < keyLen ; ++ j ) {
var k = keys [ j ] ;
if ( overrides [ k ] !== undefined ) {
target [ k ] = overrides [ k ] ;
}
}
}
}
return target ;
}
2021-05-14 09:15:39 +00:00
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
var debug ;
if ( process . env . NODE _DEBUG && /\btunnel\b/ . test ( process . env . NODE _DEBUG ) ) {
debug = function ( ) {
var args = Array . prototype . slice . call ( arguments ) ;
if ( typeof args [ 0 ] === 'string' ) {
args [ 0 ] = 'TUNNEL: ' + args [ 0 ] ;
} else {
args . unshift ( 'TUNNEL:' ) ;
}
console . error . apply ( console , args ) ;
}
} else {
debug = function ( ) { } ;
}
exports . debug = debug ; // for test
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
/***/ } ) ,
2020-01-06 10:37:12 +00:00
2021-07-23 13:33:33 +00:00
/***/ 538 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-01-06 10:37:12 +00:00
2020-01-06 11:03:18 +00:00
"use strict" ;
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : new P ( function ( resolve ) { resolve ( result . value ) ; } ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
2021-07-23 13:33:33 +00:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const url = _ _nccwpck _require _ _ ( 835 ) ;
const http = _ _nccwpck _require _ _ ( 605 ) ;
const https = _ _nccwpck _require _ _ ( 211 ) ;
const util = _ _nccwpck _require _ _ ( 470 ) ;
2020-01-06 11:03:18 +00:00
let fs ;
let tunnel ;
var HttpCodes ;
( function ( HttpCodes ) {
HttpCodes [ HttpCodes [ "OK" ] = 200 ] = "OK" ;
HttpCodes [ HttpCodes [ "MultipleChoices" ] = 300 ] = "MultipleChoices" ;
HttpCodes [ HttpCodes [ "MovedPermanently" ] = 301 ] = "MovedPermanently" ;
HttpCodes [ HttpCodes [ "ResourceMoved" ] = 302 ] = "ResourceMoved" ;
HttpCodes [ HttpCodes [ "SeeOther" ] = 303 ] = "SeeOther" ;
HttpCodes [ HttpCodes [ "NotModified" ] = 304 ] = "NotModified" ;
HttpCodes [ HttpCodes [ "UseProxy" ] = 305 ] = "UseProxy" ;
HttpCodes [ HttpCodes [ "SwitchProxy" ] = 306 ] = "SwitchProxy" ;
HttpCodes [ HttpCodes [ "TemporaryRedirect" ] = 307 ] = "TemporaryRedirect" ;
HttpCodes [ HttpCodes [ "PermanentRedirect" ] = 308 ] = "PermanentRedirect" ;
HttpCodes [ HttpCodes [ "BadRequest" ] = 400 ] = "BadRequest" ;
HttpCodes [ HttpCodes [ "Unauthorized" ] = 401 ] = "Unauthorized" ;
HttpCodes [ HttpCodes [ "PaymentRequired" ] = 402 ] = "PaymentRequired" ;
HttpCodes [ HttpCodes [ "Forbidden" ] = 403 ] = "Forbidden" ;
HttpCodes [ HttpCodes [ "NotFound" ] = 404 ] = "NotFound" ;
HttpCodes [ HttpCodes [ "MethodNotAllowed" ] = 405 ] = "MethodNotAllowed" ;
HttpCodes [ HttpCodes [ "NotAcceptable" ] = 406 ] = "NotAcceptable" ;
HttpCodes [ HttpCodes [ "ProxyAuthenticationRequired" ] = 407 ] = "ProxyAuthenticationRequired" ;
HttpCodes [ HttpCodes [ "RequestTimeout" ] = 408 ] = "RequestTimeout" ;
HttpCodes [ HttpCodes [ "Conflict" ] = 409 ] = "Conflict" ;
HttpCodes [ HttpCodes [ "Gone" ] = 410 ] = "Gone" ;
HttpCodes [ HttpCodes [ "TooManyRequests" ] = 429 ] = "TooManyRequests" ;
HttpCodes [ HttpCodes [ "InternalServerError" ] = 500 ] = "InternalServerError" ;
HttpCodes [ HttpCodes [ "NotImplemented" ] = 501 ] = "NotImplemented" ;
HttpCodes [ HttpCodes [ "BadGateway" ] = 502 ] = "BadGateway" ;
HttpCodes [ HttpCodes [ "ServiceUnavailable" ] = 503 ] = "ServiceUnavailable" ;
HttpCodes [ HttpCodes [ "GatewayTimeout" ] = 504 ] = "GatewayTimeout" ;
} ) ( HttpCodes = exports . HttpCodes || ( exports . HttpCodes = { } ) ) ;
const HttpRedirectCodes = [ HttpCodes . MovedPermanently , HttpCodes . ResourceMoved , HttpCodes . SeeOther , HttpCodes . TemporaryRedirect , HttpCodes . PermanentRedirect ] ;
const HttpResponseRetryCodes = [ HttpCodes . BadGateway , HttpCodes . ServiceUnavailable , HttpCodes . GatewayTimeout ] ;
2021-05-14 09:15:39 +00:00
const NetworkRetryErrors = [ 'ECONNRESET' , 'ENOTFOUND' , 'ESOCKETTIMEDOUT' , 'ETIMEDOUT' , 'ECONNREFUSED' ] ;
2020-01-06 11:03:18 +00:00
const RetryableHttpVerbs = [ 'OPTIONS' , 'GET' , 'DELETE' , 'HEAD' ] ;
const ExponentialBackoffCeiling = 10 ;
const ExponentialBackoffTimeSlice = 5 ;
class HttpClientResponse {
constructor ( message ) {
this . message = message ;
}
readBody ( ) {
return new Promise ( ( resolve , reject ) => _ _awaiter ( this , void 0 , void 0 , function * ( ) {
let buffer = Buffer . alloc ( 0 ) ;
const encodingCharset = util . obtainContentCharset ( this ) ;
// Extract Encoding from header: 'content-encoding'
// Match `gzip`, `gzip, deflate` variations of GZIP encoding
const contentEncoding = this . message . headers [ 'content-encoding' ] || '' ;
const isGzippedEncoded = new RegExp ( '(gzip$)|(gzip, *deflate)' ) . test ( contentEncoding ) ;
this . message . on ( 'data' , function ( data ) {
const chunk = ( typeof data === 'string' ) ? Buffer . from ( data , encodingCharset ) : data ;
buffer = Buffer . concat ( [ buffer , chunk ] ) ;
} ) . on ( 'end' , function ( ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( isGzippedEncoded ) { // Process GZipped Response Body HERE
const gunzippedBody = yield util . decompressGzippedContent ( buffer , encodingCharset ) ;
resolve ( gunzippedBody ) ;
}
2020-04-07 13:47:45 +00:00
else {
resolve ( buffer . toString ( encodingCharset ) ) ;
}
2020-01-06 11:03:18 +00:00
} ) ;
} ) . on ( 'error' , function ( err ) {
reject ( err ) ;
} ) ;
} ) ) ;
}
}
exports . HttpClientResponse = HttpClientResponse ;
function isHttps ( requestUrl ) {
let parsedUrl = url . parse ( requestUrl ) ;
return parsedUrl . protocol === 'https:' ;
}
exports . isHttps = isHttps ;
var EnvironmentVariables ;
( function ( EnvironmentVariables ) {
EnvironmentVariables [ "HTTP_PROXY" ] = "HTTP_PROXY" ;
EnvironmentVariables [ "HTTPS_PROXY" ] = "HTTPS_PROXY" ;
EnvironmentVariables [ "NO_PROXY" ] = "NO_PROXY" ;
} ) ( EnvironmentVariables || ( EnvironmentVariables = { } ) ) ;
class HttpClient {
constructor ( userAgent , handlers , requestOptions ) {
this . _ignoreSslError = false ;
this . _allowRedirects = true ;
this . _allowRedirectDowngrade = false ;
this . _maxRedirects = 50 ;
this . _allowRetries = false ;
this . _maxRetries = 1 ;
this . _keepAlive = false ;
this . _disposed = false ;
this . userAgent = userAgent ;
this . handlers = handlers || [ ] ;
let no _proxy = process . env [ EnvironmentVariables . NO _PROXY ] ;
if ( no _proxy ) {
this . _httpProxyBypassHosts = [ ] ;
no _proxy . split ( ',' ) . forEach ( bypass => {
2021-05-14 09:15:39 +00:00
this . _httpProxyBypassHosts . push ( util . buildProxyBypassRegexFromEnv ( bypass ) ) ;
2020-01-06 11:03:18 +00:00
} ) ;
}
this . requestOptions = requestOptions ;
if ( requestOptions ) {
if ( requestOptions . ignoreSslError != null ) {
this . _ignoreSslError = requestOptions . ignoreSslError ;
}
this . _socketTimeout = requestOptions . socketTimeout ;
this . _httpProxy = requestOptions . proxy ;
if ( requestOptions . proxy && requestOptions . proxy . proxyBypassHosts ) {
this . _httpProxyBypassHosts = [ ] ;
requestOptions . proxy . proxyBypassHosts . forEach ( bypass => {
this . _httpProxyBypassHosts . push ( new RegExp ( bypass , 'i' ) ) ;
} ) ;
}
this . _certConfig = requestOptions . cert ;
if ( this . _certConfig ) {
// If using cert, need fs
2021-07-23 13:33:33 +00:00
fs = _ _nccwpck _require _ _ ( 747 ) ;
2020-01-06 11:03:18 +00:00
// cache the cert content into memory, so we don't have to read it from disk every time
if ( this . _certConfig . caFile && fs . existsSync ( this . _certConfig . caFile ) ) {
this . _ca = fs . readFileSync ( this . _certConfig . caFile , 'utf8' ) ;
}
if ( this . _certConfig . certFile && fs . existsSync ( this . _certConfig . certFile ) ) {
this . _cert = fs . readFileSync ( this . _certConfig . certFile , 'utf8' ) ;
}
if ( this . _certConfig . keyFile && fs . existsSync ( this . _certConfig . keyFile ) ) {
this . _key = fs . readFileSync ( this . _certConfig . keyFile , 'utf8' ) ;
}
}
if ( requestOptions . allowRedirects != null ) {
this . _allowRedirects = requestOptions . allowRedirects ;
}
if ( requestOptions . allowRedirectDowngrade != null ) {
this . _allowRedirectDowngrade = requestOptions . allowRedirectDowngrade ;
}
if ( requestOptions . maxRedirects != null ) {
this . _maxRedirects = Math . max ( requestOptions . maxRedirects , 0 ) ;
}
if ( requestOptions . keepAlive != null ) {
this . _keepAlive = requestOptions . keepAlive ;
}
if ( requestOptions . allowRetries != null ) {
this . _allowRetries = requestOptions . allowRetries ;
}
if ( requestOptions . maxRetries != null ) {
this . _maxRetries = requestOptions . maxRetries ;
}
}
}
options ( requestUrl , additionalHeaders ) {
return this . request ( 'OPTIONS' , requestUrl , null , additionalHeaders || { } ) ;
}
get ( requestUrl , additionalHeaders ) {
return this . request ( 'GET' , requestUrl , null , additionalHeaders || { } ) ;
}
del ( requestUrl , additionalHeaders ) {
return this . request ( 'DELETE' , requestUrl , null , additionalHeaders || { } ) ;
}
post ( requestUrl , data , additionalHeaders ) {
return this . request ( 'POST' , requestUrl , data , additionalHeaders || { } ) ;
}
patch ( requestUrl , data , additionalHeaders ) {
return this . request ( 'PATCH' , requestUrl , data , additionalHeaders || { } ) ;
}
put ( requestUrl , data , additionalHeaders ) {
return this . request ( 'PUT' , requestUrl , data , additionalHeaders || { } ) ;
}
head ( requestUrl , additionalHeaders ) {
return this . request ( 'HEAD' , requestUrl , null , additionalHeaders || { } ) ;
}
sendStream ( verb , requestUrl , stream , additionalHeaders ) {
return this . request ( verb , requestUrl , stream , additionalHeaders ) ;
}
/ * *
* Makes a raw http request .
* All other methods such as get , post , patch , and request ultimately call this .
* Prefer get , del , post and patch
* /
request ( verb , requestUrl , data , headers ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( this . _disposed ) {
throw new Error ( "Client has already been disposed." ) ;
}
let parsedUrl = url . parse ( requestUrl ) ;
let info = this . _prepareRequest ( verb , parsedUrl , headers ) ;
// Only perform retries on reads since writes may not be idempotent.
let maxTries = ( this . _allowRetries && RetryableHttpVerbs . indexOf ( verb ) != - 1 ) ? this . _maxRetries + 1 : 1 ;
let numTries = 0 ;
let response ;
while ( numTries < maxTries ) {
2021-05-14 09:15:39 +00:00
try {
response = yield this . requestRaw ( info , data ) ;
}
catch ( err ) {
numTries ++ ;
if ( err && err . code && NetworkRetryErrors . indexOf ( err . code ) > - 1 && numTries < maxTries ) {
yield this . _performExponentialBackoff ( numTries ) ;
continue ;
}
throw err ;
}
2020-01-06 11:03:18 +00:00
// Check if it's an authentication challenge
if ( response && response . message && response . message . statusCode === HttpCodes . Unauthorized ) {
let authenticationHandler ;
for ( let i = 0 ; i < this . handlers . length ; i ++ ) {
if ( this . handlers [ i ] . canHandleAuthentication ( response ) ) {
authenticationHandler = this . handlers [ i ] ;
break ;
}
}
if ( authenticationHandler ) {
return authenticationHandler . handleAuthentication ( this , info , data ) ;
}
else {
// We have received an unauthorized response but have no handlers to handle it.
// Let the response return to the caller.
return response ;
}
}
let redirectsRemaining = this . _maxRedirects ;
while ( HttpRedirectCodes . indexOf ( response . message . statusCode ) != - 1
&& this . _allowRedirects
&& redirectsRemaining > 0 ) {
const redirectUrl = response . message . headers [ "location" ] ;
if ( ! redirectUrl ) {
// if there's no location to redirect to, we won't
break ;
}
let parsedRedirectUrl = url . parse ( redirectUrl ) ;
if ( parsedUrl . protocol == 'https:' && parsedUrl . protocol != parsedRedirectUrl . protocol && ! this . _allowRedirectDowngrade ) {
throw new Error ( "Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true." ) ;
}
// we need to finish reading the response before reassigning response
// which will leak the open socket.
yield response . readBody ( ) ;
// let's make the request with the new redirectUrl
info = this . _prepareRequest ( verb , parsedRedirectUrl , headers ) ;
response = yield this . requestRaw ( info , data ) ;
redirectsRemaining -- ;
}
if ( HttpResponseRetryCodes . indexOf ( response . message . statusCode ) == - 1 ) {
// If not a retry code, return immediately instead of retrying
return response ;
}
numTries += 1 ;
if ( numTries < maxTries ) {
yield response . readBody ( ) ;
yield this . _performExponentialBackoff ( numTries ) ;
}
}
return response ;
} ) ;
}
/ * *
* Needs to be called if keepAlive is set to true in request options .
* /
dispose ( ) {
if ( this . _agent ) {
this . _agent . destroy ( ) ;
}
this . _disposed = true ;
}
/ * *
* Raw request .
* @ param info
* @ param data
* /
requestRaw ( info , data ) {
return new Promise ( ( resolve , reject ) => {
let callbackForResult = function ( err , res ) {
if ( err ) {
reject ( err ) ;
}
resolve ( res ) ;
} ;
this . requestRawWithCallback ( info , data , callbackForResult ) ;
} ) ;
}
/ * *
* Raw request with callback .
* @ param info
* @ param data
* @ param onResult
* /
requestRawWithCallback ( info , data , onResult ) {
let socket ;
if ( typeof ( data ) === 'string' ) {
info . options . headers [ "Content-Length" ] = Buffer . byteLength ( data , 'utf8' ) ;
}
let callbackCalled = false ;
let handleResult = ( err , res ) => {
if ( ! callbackCalled ) {
callbackCalled = true ;
onResult ( err , res ) ;
}
} ;
let req = info . httpModule . request ( info . options , ( msg ) => {
let res = new HttpClientResponse ( msg ) ;
handleResult ( null , res ) ;
} ) ;
req . on ( 'socket' , ( sock ) => {
socket = sock ;
} ) ;
// If we ever get disconnected, we want the socket to timeout eventually
req . setTimeout ( this . _socketTimeout || 3 * 60000 , ( ) => {
if ( socket ) {
2020-04-07 13:47:45 +00:00
socket . destroy ( ) ;
2020-01-06 11:03:18 +00:00
}
handleResult ( new Error ( 'Request timeout: ' + info . options . path ) , null ) ;
} ) ;
req . on ( 'error' , function ( err ) {
// err has statusCode property
// res should have headers
handleResult ( err , null ) ;
} ) ;
if ( data && typeof ( data ) === 'string' ) {
req . write ( data , 'utf8' ) ;
}
if ( data && typeof ( data ) !== 'string' ) {
data . on ( 'close' , function ( ) {
req . end ( ) ;
} ) ;
data . pipe ( req ) ;
}
else {
req . end ( ) ;
}
}
_prepareRequest ( method , requestUrl , headers ) {
const info = { } ;
info . parsedUrl = requestUrl ;
const usingSsl = info . parsedUrl . protocol === 'https:' ;
info . httpModule = usingSsl ? https : http ;
const defaultPort = usingSsl ? 443 : 80 ;
info . options = { } ;
info . options . host = info . parsedUrl . hostname ;
info . options . port = info . parsedUrl . port ? parseInt ( info . parsedUrl . port ) : defaultPort ;
info . options . path = ( info . parsedUrl . pathname || '' ) + ( info . parsedUrl . search || '' ) ;
info . options . method = method ;
2021-05-14 09:15:39 +00:00
info . options . timeout = ( this . requestOptions && this . requestOptions . socketTimeout ) || this . _socketTimeout ;
this . _socketTimeout = info . options . timeout ;
2020-01-06 11:03:18 +00:00
info . options . headers = this . _mergeHeaders ( headers ) ;
if ( this . userAgent != null ) {
info . options . headers [ "user-agent" ] = this . userAgent ;
}
info . options . agent = this . _getAgent ( info . parsedUrl ) ;
// gives handlers an opportunity to participate
if ( this . handlers && ! this . _isPresigned ( url . format ( requestUrl ) ) ) {
this . handlers . forEach ( ( handler ) => {
handler . prepareRequest ( info . options ) ;
} ) ;
}
return info ;
}
_isPresigned ( requestUrl ) {
if ( this . requestOptions && this . requestOptions . presignedUrlPatterns ) {
const patterns = this . requestOptions . presignedUrlPatterns ;
for ( let i = 0 ; i < patterns . length ; i ++ ) {
if ( requestUrl . match ( patterns [ i ] ) ) {
return true ;
}
}
}
return false ;
}
_mergeHeaders ( headers ) {
const lowercaseKeys = obj => Object . keys ( obj ) . reduce ( ( c , k ) => ( c [ k . toLowerCase ( ) ] = obj [ k ] , c ) , { } ) ;
if ( this . requestOptions && this . requestOptions . headers ) {
return Object . assign ( { } , lowercaseKeys ( this . requestOptions . headers ) , lowercaseKeys ( headers ) ) ;
}
return lowercaseKeys ( headers || { } ) ;
}
_getAgent ( parsedUrl ) {
let agent ;
let proxy = this . _getProxy ( parsedUrl ) ;
let useProxy = proxy . proxyUrl && proxy . proxyUrl . hostname && ! this . _isMatchInBypassProxyList ( parsedUrl ) ;
if ( this . _keepAlive && useProxy ) {
agent = this . _proxyAgent ;
}
if ( this . _keepAlive && ! useProxy ) {
agent = this . _agent ;
}
// if agent is already assigned use that agent.
if ( ! ! agent ) {
return agent ;
}
const usingSsl = parsedUrl . protocol === 'https:' ;
let maxSockets = 100 ;
if ( ! ! this . requestOptions ) {
maxSockets = this . requestOptions . maxSockets || http . globalAgent . maxSockets ;
}
if ( useProxy ) {
// If using proxy, need tunnel
if ( ! tunnel ) {
2021-07-23 13:33:33 +00:00
tunnel = _ _nccwpck _require _ _ ( 294 ) ;
2020-01-06 11:03:18 +00:00
}
const agentOptions = {
maxSockets : maxSockets ,
keepAlive : this . _keepAlive ,
proxy : {
proxyAuth : proxy . proxyAuth ,
host : proxy . proxyUrl . hostname ,
port : proxy . proxyUrl . port
} ,
} ;
let tunnelAgent ;
const overHttps = proxy . proxyUrl . protocol === 'https:' ;
if ( usingSsl ) {
tunnelAgent = overHttps ? tunnel . httpsOverHttps : tunnel . httpsOverHttp ;
}
else {
tunnelAgent = overHttps ? tunnel . httpOverHttps : tunnel . httpOverHttp ;
}
agent = tunnelAgent ( agentOptions ) ;
this . _proxyAgent = agent ;
}
// if reusing agent across request and tunneling agent isn't assigned create a new agent
if ( this . _keepAlive && ! agent ) {
const options = { keepAlive : this . _keepAlive , maxSockets : maxSockets } ;
agent = usingSsl ? new https . Agent ( options ) : new http . Agent ( options ) ;
this . _agent = agent ;
}
// if not using private agent and tunnel agent isn't setup then use global agent
if ( ! agent ) {
agent = usingSsl ? https . globalAgent : http . globalAgent ;
}
if ( usingSsl && this . _ignoreSslError ) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
// we have to cast it to any and change it directly
agent . options = Object . assign ( agent . options || { } , { rejectUnauthorized : false } ) ;
}
if ( usingSsl && this . _certConfig ) {
agent . options = Object . assign ( agent . options || { } , { ca : this . _ca , cert : this . _cert , key : this . _key , passphrase : this . _certConfig . passphrase } ) ;
}
return agent ;
}
_getProxy ( parsedUrl ) {
let usingSsl = parsedUrl . protocol === 'https:' ;
let proxyConfig = this . _httpProxy ;
// fallback to http_proxy and https_proxy env
let https _proxy = process . env [ EnvironmentVariables . HTTPS _PROXY ] ;
let http _proxy = process . env [ EnvironmentVariables . HTTP _PROXY ] ;
if ( ! proxyConfig ) {
if ( https _proxy && usingSsl ) {
proxyConfig = {
proxyUrl : https _proxy
} ;
}
else if ( http _proxy ) {
proxyConfig = {
proxyUrl : http _proxy
} ;
}
}
let proxyUrl ;
let proxyAuth ;
if ( proxyConfig ) {
if ( proxyConfig . proxyUrl . length > 0 ) {
proxyUrl = url . parse ( proxyConfig . proxyUrl ) ;
}
if ( proxyConfig . proxyUsername || proxyConfig . proxyPassword ) {
proxyAuth = proxyConfig . proxyUsername + ":" + proxyConfig . proxyPassword ;
}
}
return { proxyUrl : proxyUrl , proxyAuth : proxyAuth } ;
}
_isMatchInBypassProxyList ( parsedUrl ) {
if ( ! this . _httpProxyBypassHosts ) {
return false ;
}
let bypass = false ;
this . _httpProxyBypassHosts . forEach ( bypassHost => {
if ( bypassHost . test ( parsedUrl . href ) ) {
bypass = true ;
}
} ) ;
return bypass ;
}
_performExponentialBackoff ( retryNumber ) {
retryNumber = Math . min ( ExponentialBackoffCeiling , retryNumber ) ;
const ms = ExponentialBackoffTimeSlice * Math . pow ( 2 , retryNumber ) ;
return new Promise ( resolve => setTimeout ( ( ) => resolve ( ) , ms ) ) ;
}
}
exports . HttpClient = HttpClient ;
2020-01-06 10:37:12 +00:00
2021-05-14 09:15:39 +00:00
/***/ } ) ,
2021-07-23 13:33:33 +00:00
/***/ 470 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : new P ( function ( resolve ) { resolve ( result . value ) ; } ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const qs = _ _nccwpck _require _ _ ( 615 ) ;
const url = _ _nccwpck _require _ _ ( 835 ) ;
const path = _ _nccwpck _require _ _ ( 622 ) ;
const zlib = _ _nccwpck _require _ _ ( 761 ) ;
/ * *
* creates an url from a request url and optional base url ( http : //server:8080)
* @ param { string } resource - a fully qualified url or relative path
* @ param { string } baseUrl - an optional baseUrl ( http : //server:8080)
* @ param { IRequestOptions } options - an optional options object , could include QueryParameters e . g .
* @ return { string } - resultant url
* /
function getUrl ( resource , baseUrl , queryParams ) {
const pathApi = path . posix || path ;
let requestUrl = '' ;
if ( ! baseUrl ) {
requestUrl = resource ;
}
else if ( ! resource ) {
requestUrl = baseUrl ;
}
else {
const base = url . parse ( baseUrl ) ;
const resultantUrl = url . parse ( resource ) ;
// resource (specific per request) elements take priority
resultantUrl . protocol = resultantUrl . protocol || base . protocol ;
resultantUrl . auth = resultantUrl . auth || base . auth ;
resultantUrl . host = resultantUrl . host || base . host ;
resultantUrl . pathname = pathApi . resolve ( base . pathname , resultantUrl . pathname ) ;
if ( ! resultantUrl . pathname . endsWith ( '/' ) && resource . endsWith ( '/' ) ) {
resultantUrl . pathname += '/' ;
}
requestUrl = url . format ( resultantUrl ) ;
}
return queryParams ?
getUrlWithParsedQueryParams ( requestUrl , queryParams ) :
requestUrl ;
}
exports . getUrl = getUrl ;
/ * *
*
* @ param { string } requestUrl
* @ param { IRequestQueryParams } queryParams
* @ return { string } - Request ' s URL with Query Parameters appended / parsed .
* /
function getUrlWithParsedQueryParams ( requestUrl , queryParams ) {
const url = requestUrl . replace ( /\?$/g , '' ) ; // Clean any extra end-of-string "?" character
const parsedQueryParams = qs . stringify ( queryParams . params , buildParamsStringifyOptions ( queryParams ) ) ;
return ` ${ url } ${ parsedQueryParams } ` ;
}
/ * *
* Build options for QueryParams Stringifying .
*
* @ param { IRequestQueryParams } queryParams
* @ return { object }
* /
function buildParamsStringifyOptions ( queryParams ) {
let options = {
addQueryPrefix : true ,
delimiter : ( queryParams . options || { } ) . separator || '&' ,
allowDots : ( queryParams . options || { } ) . shouldAllowDots || false ,
arrayFormat : ( queryParams . options || { } ) . arrayFormat || 'repeat' ,
encodeValuesOnly : ( queryParams . options || { } ) . shouldOnlyEncodeValues || true
} ;
return options ;
}
/ * *
* Decompress / Decode gzip encoded JSON
* Using Node . js built - in zlib module
*
* @ param { Buffer } buffer
* @ param { string } charset ? - optional ; defaults to 'utf-8'
* @ return { Promise < string > }
* /
function decompressGzippedContent ( buffer , charset ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
return new Promise ( ( resolve , reject ) => _ _awaiter ( this , void 0 , void 0 , function * ( ) {
zlib . gunzip ( buffer , function ( error , buffer ) {
if ( error ) {
reject ( error ) ;
}
resolve ( buffer . toString ( charset || 'utf-8' ) ) ;
} ) ;
} ) ) ;
} ) ;
}
exports . decompressGzippedContent = decompressGzippedContent ;
/ * *
* Builds a RegExp to test urls against for deciding
* wether to bypass proxy from an entry of the
* environment variable setting NO _PROXY
*
* @ param { string } bypass
* @ return { RegExp }
* /
function buildProxyBypassRegexFromEnv ( bypass ) {
try {
// We need to keep this around for back-compat purposes
return new RegExp ( bypass , 'i' ) ;
}
catch ( err ) {
if ( err instanceof SyntaxError && ( bypass || "" ) . startsWith ( "*" ) ) {
let wildcardEscaped = bypass . replace ( '*' , '(.*)' ) ;
return new RegExp ( wildcardEscaped , 'i' ) ;
}
throw err ;
}
}
exports . buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv ;
/ * *
* Obtain Response ' s Content Charset .
* Through inspecting ` content-type ` response header .
* It Returns 'utf-8' if NO charset specified / matched .
*
* @ param { IHttpClientResponse } response
* @ return { string } - Content Encoding Charset ; Default = utf - 8
* /
function obtainContentCharset ( response ) {
// Find the charset, if specified.
// Search for the `charset=CHARSET` string, not including `;,\r\n`
// Example: content-type: 'application/json;charset=utf-8'
// |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
// |_____ matches[1] would have the charset :tada: , in our example it's utf-8
// However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
const nodeSupportedEncodings = [ 'ascii' , 'utf8' , 'utf16le' , 'ucs2' , 'base64' , 'binary' , 'hex' ] ;
const contentType = response . message . headers [ 'content-type' ] || '' ;
const matches = contentType . match ( /charset=([^;,\r\n]+)/i ) ;
return ( matches && matches [ 1 ] && nodeSupportedEncodings . indexOf ( matches [ 1 ] ) != - 1 ) ? matches [ 1 ] : 'utf-8' ;
}
exports . obtainContentCharset = obtainContentCharset ;
/***/ } ) ,
/***/ 864 :
/***/ ( ( module ) => {
"use strict" ;
var replace = String . prototype . replace ;
var percentTwenties = /%20/g ;
var Format = {
RFC1738 : 'RFC1738' ,
RFC3986 : 'RFC3986'
} ;
module . exports = {
'default' : Format . RFC3986 ,
formatters : {
RFC1738 : function ( value ) {
return replace . call ( value , percentTwenties , '+' ) ;
} ,
RFC3986 : function ( value ) {
return String ( value ) ;
}
} ,
RFC1738 : Format . RFC1738 ,
RFC3986 : Format . RFC3986
} ;
/***/ } ) ,
/***/ 615 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
var stringify = _ _nccwpck _require _ _ ( 599 ) ;
var parse = _ _nccwpck _require _ _ ( 748 ) ;
var formats = _ _nccwpck _require _ _ ( 864 ) ;
module . exports = {
formats : formats ,
parse : parse ,
stringify : stringify
} ;
/***/ } ) ,
/***/ 748 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
var utils = _ _nccwpck _require _ _ ( 154 ) ;
var has = Object . prototype . hasOwnProperty ;
var isArray = Array . isArray ;
var defaults = {
allowDots : false ,
allowPrototypes : false ,
allowSparse : false ,
arrayLimit : 20 ,
charset : 'utf-8' ,
charsetSentinel : false ,
comma : false ,
decoder : utils . decode ,
delimiter : '&' ,
depth : 5 ,
ignoreQueryPrefix : false ,
interpretNumericEntities : false ,
parameterLimit : 1000 ,
parseArrays : true ,
plainObjects : false ,
strictNullHandling : false
} ;
var interpretNumericEntities = function ( str ) {
return str . replace ( /&#(\d+);/g , function ( $0 , numberStr ) {
return String . fromCharCode ( parseInt ( numberStr , 10 ) ) ;
} ) ;
} ;
var parseArrayValue = function ( val , options ) {
if ( val && typeof val === 'string' && options . comma && val . indexOf ( ',' ) > - 1 ) {
return val . split ( ',' ) ;
}
return val ;
} ;
// This is what browsers will submit when the ✓ character occurs in an
// application/x-www-form-urlencoded body and the encoding of the page containing
// the form is iso-8859-1, or when the submitted form has an accept-charset
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
// the ✓ character, such as us-ascii.
var isoSentinel = 'utf8=%26%2310003%3B' ; // encodeURIComponent('✓')
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
var charsetSentinel = 'utf8=%E2%9C%93' ; // encodeURIComponent('✓')
var parseValues = function parseQueryStringValues ( str , options ) {
var obj = { } ;
var cleanStr = options . ignoreQueryPrefix ? str . replace ( /^\?/ , '' ) : str ;
var limit = options . parameterLimit === Infinity ? undefined : options . parameterLimit ;
var parts = cleanStr . split ( options . delimiter , limit ) ;
var skipIndex = - 1 ; // Keep track of where the utf8 sentinel was found
var i ;
var charset = options . charset ;
if ( options . charsetSentinel ) {
for ( i = 0 ; i < parts . length ; ++ i ) {
if ( parts [ i ] . indexOf ( 'utf8=' ) === 0 ) {
if ( parts [ i ] === charsetSentinel ) {
charset = 'utf-8' ;
} else if ( parts [ i ] === isoSentinel ) {
charset = 'iso-8859-1' ;
}
skipIndex = i ;
i = parts . length ; // The eslint settings do not allow break;
}
}
}
for ( i = 0 ; i < parts . length ; ++ i ) {
if ( i === skipIndex ) {
continue ;
}
var part = parts [ i ] ;
var bracketEqualsPos = part . indexOf ( ']=' ) ;
var pos = bracketEqualsPos === - 1 ? part . indexOf ( '=' ) : bracketEqualsPos + 1 ;
var key , val ;
if ( pos === - 1 ) {
key = options . decoder ( part , defaults . decoder , charset , 'key' ) ;
val = options . strictNullHandling ? null : '' ;
} else {
key = options . decoder ( part . slice ( 0 , pos ) , defaults . decoder , charset , 'key' ) ;
val = utils . maybeMap (
parseArrayValue ( part . slice ( pos + 1 ) , options ) ,
function ( encodedVal ) {
return options . decoder ( encodedVal , defaults . decoder , charset , 'value' ) ;
}
) ;
}
if ( val && options . interpretNumericEntities && charset === 'iso-8859-1' ) {
val = interpretNumericEntities ( val ) ;
}
if ( part . indexOf ( '[]=' ) > - 1 ) {
val = isArray ( val ) ? [ val ] : val ;
}
if ( has . call ( obj , key ) ) {
obj [ key ] = utils . combine ( obj [ key ] , val ) ;
} else {
obj [ key ] = val ;
}
}
return obj ;
} ;
var parseObject = function ( chain , val , options , valuesParsed ) {
var leaf = valuesParsed ? val : parseArrayValue ( val , options ) ;
for ( var i = chain . length - 1 ; i >= 0 ; -- i ) {
var obj ;
var root = chain [ i ] ;
if ( root === '[]' && options . parseArrays ) {
obj = [ ] . concat ( leaf ) ;
} else {
obj = options . plainObjects ? Object . create ( null ) : { } ;
var cleanRoot = root . charAt ( 0 ) === '[' && root . charAt ( root . length - 1 ) === ']' ? root . slice ( 1 , - 1 ) : root ;
var index = parseInt ( cleanRoot , 10 ) ;
if ( ! options . parseArrays && cleanRoot === '' ) {
obj = { 0 : leaf } ;
} else if (
! isNaN ( index )
&& root !== cleanRoot
&& String ( index ) === cleanRoot
&& index >= 0
&& ( options . parseArrays && index <= options . arrayLimit )
) {
obj = [ ] ;
obj [ index ] = leaf ;
} else {
obj [ cleanRoot ] = leaf ;
}
}
leaf = obj ;
}
return leaf ;
} ;
var parseKeys = function parseQueryStringKeys ( givenKey , val , options , valuesParsed ) {
if ( ! givenKey ) {
return ;
}
// Transform dot notation to bracket notation
var key = options . allowDots ? givenKey . replace ( /\.([^.[]+)/g , '[$1]' ) : givenKey ;
// The regex chunks
var brackets = /(\[[^[\]]*])/ ;
var child = /(\[[^[\]]*])/g ;
// Get the parent
var segment = options . depth > 0 && brackets . exec ( key ) ;
var parent = segment ? key . slice ( 0 , segment . index ) : key ;
// Stash the parent if it exists
var keys = [ ] ;
if ( parent ) {
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
if ( ! options . plainObjects && has . call ( Object . prototype , parent ) ) {
if ( ! options . allowPrototypes ) {
return ;
}
}
keys . push ( parent ) ;
}
// Loop through children appending to the array until we hit depth
var i = 0 ;
while ( options . depth > 0 && ( segment = child . exec ( key ) ) !== null && i < options . depth ) {
i += 1 ;
if ( ! options . plainObjects && has . call ( Object . prototype , segment [ 1 ] . slice ( 1 , - 1 ) ) ) {
if ( ! options . allowPrototypes ) {
return ;
}
}
keys . push ( segment [ 1 ] ) ;
}
// If there's a remainder, just add whatever is left
if ( segment ) {
keys . push ( '[' + key . slice ( segment . index ) + ']' ) ;
}
return parseObject ( keys , val , options , valuesParsed ) ;
} ;
var normalizeParseOptions = function normalizeParseOptions ( opts ) {
if ( ! opts ) {
return defaults ;
}
if ( opts . decoder !== null && opts . decoder !== undefined && typeof opts . decoder !== 'function' ) {
throw new TypeError ( 'Decoder has to be a function.' ) ;
}
if ( typeof opts . charset !== 'undefined' && opts . charset !== 'utf-8' && opts . charset !== 'iso-8859-1' ) {
throw new TypeError ( 'The charset option must be either utf-8, iso-8859-1, or undefined' ) ;
}
var charset = typeof opts . charset === 'undefined' ? defaults . charset : opts . charset ;
return {
allowDots : typeof opts . allowDots === 'undefined' ? defaults . allowDots : ! ! opts . allowDots ,
allowPrototypes : typeof opts . allowPrototypes === 'boolean' ? opts . allowPrototypes : defaults . allowPrototypes ,
allowSparse : typeof opts . allowSparse === 'boolean' ? opts . allowSparse : defaults . allowSparse ,
arrayLimit : typeof opts . arrayLimit === 'number' ? opts . arrayLimit : defaults . arrayLimit ,
charset : charset ,
charsetSentinel : typeof opts . charsetSentinel === 'boolean' ? opts . charsetSentinel : defaults . charsetSentinel ,
comma : typeof opts . comma === 'boolean' ? opts . comma : defaults . comma ,
decoder : typeof opts . decoder === 'function' ? opts . decoder : defaults . decoder ,
delimiter : typeof opts . delimiter === 'string' || utils . isRegExp ( opts . delimiter ) ? opts . delimiter : defaults . delimiter ,
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
depth : ( typeof opts . depth === 'number' || opts . depth === false ) ? + opts . depth : defaults . depth ,
ignoreQueryPrefix : opts . ignoreQueryPrefix === true ,
interpretNumericEntities : typeof opts . interpretNumericEntities === 'boolean' ? opts . interpretNumericEntities : defaults . interpretNumericEntities ,
parameterLimit : typeof opts . parameterLimit === 'number' ? opts . parameterLimit : defaults . parameterLimit ,
parseArrays : opts . parseArrays !== false ,
plainObjects : typeof opts . plainObjects === 'boolean' ? opts . plainObjects : defaults . plainObjects ,
strictNullHandling : typeof opts . strictNullHandling === 'boolean' ? opts . strictNullHandling : defaults . strictNullHandling
} ;
} ;
module . exports = function ( str , opts ) {
var options = normalizeParseOptions ( opts ) ;
if ( str === '' || str === null || typeof str === 'undefined' ) {
return options . plainObjects ? Object . create ( null ) : { } ;
}
var tempObj = typeof str === 'string' ? parseValues ( str , options ) : str ;
var obj = options . plainObjects ? Object . create ( null ) : { } ;
// Iterate over the keys and setup the new object
var keys = Object . keys ( tempObj ) ;
for ( var i = 0 ; i < keys . length ; ++ i ) {
var key = keys [ i ] ;
var newObj = parseKeys ( key , tempObj [ key ] , options , typeof str === 'string' ) ;
obj = utils . merge ( obj , newObj , options ) ;
}
if ( options . allowSparse === true ) {
return obj ;
}
return utils . compact ( obj ) ;
} ;
/***/ } ) ,
/***/ 599 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
var getSideChannel = _ _nccwpck _require _ _ ( 334 ) ;
var utils = _ _nccwpck _require _ _ ( 154 ) ;
var formats = _ _nccwpck _require _ _ ( 864 ) ;
var has = Object . prototype . hasOwnProperty ;
var arrayPrefixGenerators = {
brackets : function brackets ( prefix ) {
return prefix + '[]' ;
} ,
comma : 'comma' ,
indices : function indices ( prefix , key ) {
return prefix + '[' + key + ']' ;
} ,
repeat : function repeat ( prefix ) {
return prefix ;
}
} ;
var isArray = Array . isArray ;
var push = Array . prototype . push ;
var pushToArray = function ( arr , valueOrArray ) {
push . apply ( arr , isArray ( valueOrArray ) ? valueOrArray : [ valueOrArray ] ) ;
} ;
var toISO = Date . prototype . toISOString ;
var defaultFormat = formats [ 'default' ] ;
var defaults = {
addQueryPrefix : false ,
allowDots : false ,
charset : 'utf-8' ,
charsetSentinel : false ,
delimiter : '&' ,
encode : true ,
encoder : utils . encode ,
encodeValuesOnly : false ,
format : defaultFormat ,
formatter : formats . formatters [ defaultFormat ] ,
// deprecated
indices : false ,
serializeDate : function serializeDate ( date ) {
return toISO . call ( date ) ;
} ,
skipNulls : false ,
strictNullHandling : false
} ;
var isNonNullishPrimitive = function isNonNullishPrimitive ( v ) {
return typeof v === 'string'
|| typeof v === 'number'
|| typeof v === 'boolean'
|| typeof v === 'symbol'
|| typeof v === 'bigint' ;
} ;
var stringify = function stringify (
object ,
prefix ,
generateArrayPrefix ,
strictNullHandling ,
skipNulls ,
encoder ,
filter ,
sort ,
allowDots ,
serializeDate ,
format ,
formatter ,
encodeValuesOnly ,
charset ,
sideChannel
) {
var obj = object ;
if ( sideChannel . has ( object ) ) {
throw new RangeError ( 'Cyclic object value' ) ;
}
if ( typeof filter === 'function' ) {
obj = filter ( prefix , obj ) ;
} else if ( obj instanceof Date ) {
obj = serializeDate ( obj ) ;
} else if ( generateArrayPrefix === 'comma' && isArray ( obj ) ) {
obj = utils . maybeMap ( obj , function ( value ) {
if ( value instanceof Date ) {
return serializeDate ( value ) ;
}
return value ;
} ) ;
}
if ( obj === null ) {
if ( strictNullHandling ) {
return encoder && ! encodeValuesOnly ? encoder ( prefix , defaults . encoder , charset , 'key' , format ) : prefix ;
}
obj = '' ;
}
if ( isNonNullishPrimitive ( obj ) || utils . isBuffer ( obj ) ) {
if ( encoder ) {
var keyValue = encodeValuesOnly ? prefix : encoder ( prefix , defaults . encoder , charset , 'key' , format ) ;
return [ formatter ( keyValue ) + '=' + formatter ( encoder ( obj , defaults . encoder , charset , 'value' , format ) ) ] ;
}
return [ formatter ( prefix ) + '=' + formatter ( String ( obj ) ) ] ;
}
var values = [ ] ;
if ( typeof obj === 'undefined' ) {
return values ;
}
var objKeys ;
if ( generateArrayPrefix === 'comma' && isArray ( obj ) ) {
// we need to join elements in
objKeys = [ { value : obj . length > 0 ? obj . join ( ',' ) || null : undefined } ] ;
} else if ( isArray ( filter ) ) {
objKeys = filter ;
} else {
var keys = Object . keys ( obj ) ;
objKeys = sort ? keys . sort ( sort ) : keys ;
}
for ( var i = 0 ; i < objKeys . length ; ++ i ) {
var key = objKeys [ i ] ;
var value = typeof key === 'object' && key . value !== undefined ? key . value : obj [ key ] ;
if ( skipNulls && value === null ) {
continue ;
}
var keyPrefix = isArray ( obj )
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix ( prefix , key ) : prefix
: prefix + ( allowDots ? '.' + key : '[' + key + ']' ) ;
sideChannel . set ( object , true ) ;
var valueSideChannel = getSideChannel ( ) ;
pushToArray ( values , stringify (
value ,
keyPrefix ,
generateArrayPrefix ,
strictNullHandling ,
skipNulls ,
encoder ,
filter ,
sort ,
allowDots ,
serializeDate ,
format ,
formatter ,
encodeValuesOnly ,
charset ,
valueSideChannel
) ) ;
}
return values ;
} ;
var normalizeStringifyOptions = function normalizeStringifyOptions ( opts ) {
if ( ! opts ) {
return defaults ;
}
if ( opts . encoder !== null && opts . encoder !== undefined && typeof opts . encoder !== 'function' ) {
throw new TypeError ( 'Encoder has to be a function.' ) ;
}
var charset = opts . charset || defaults . charset ;
if ( typeof opts . charset !== 'undefined' && opts . charset !== 'utf-8' && opts . charset !== 'iso-8859-1' ) {
throw new TypeError ( 'The charset option must be either utf-8, iso-8859-1, or undefined' ) ;
}
var format = formats [ 'default' ] ;
if ( typeof opts . format !== 'undefined' ) {
if ( ! has . call ( formats . formatters , opts . format ) ) {
throw new TypeError ( 'Unknown format option provided.' ) ;
}
format = opts . format ;
}
var formatter = formats . formatters [ format ] ;
var filter = defaults . filter ;
if ( typeof opts . filter === 'function' || isArray ( opts . filter ) ) {
filter = opts . filter ;
}
return {
addQueryPrefix : typeof opts . addQueryPrefix === 'boolean' ? opts . addQueryPrefix : defaults . addQueryPrefix ,
allowDots : typeof opts . allowDots === 'undefined' ? defaults . allowDots : ! ! opts . allowDots ,
charset : charset ,
charsetSentinel : typeof opts . charsetSentinel === 'boolean' ? opts . charsetSentinel : defaults . charsetSentinel ,
delimiter : typeof opts . delimiter === 'undefined' ? defaults . delimiter : opts . delimiter ,
encode : typeof opts . encode === 'boolean' ? opts . encode : defaults . encode ,
encoder : typeof opts . encoder === 'function' ? opts . encoder : defaults . encoder ,
encodeValuesOnly : typeof opts . encodeValuesOnly === 'boolean' ? opts . encodeValuesOnly : defaults . encodeValuesOnly ,
filter : filter ,
format : format ,
formatter : formatter ,
serializeDate : typeof opts . serializeDate === 'function' ? opts . serializeDate : defaults . serializeDate ,
skipNulls : typeof opts . skipNulls === 'boolean' ? opts . skipNulls : defaults . skipNulls ,
sort : typeof opts . sort === 'function' ? opts . sort : null ,
strictNullHandling : typeof opts . strictNullHandling === 'boolean' ? opts . strictNullHandling : defaults . strictNullHandling
} ;
} ;
module . exports = function ( object , opts ) {
var obj = object ;
var options = normalizeStringifyOptions ( opts ) ;
var objKeys ;
var filter ;
if ( typeof options . filter === 'function' ) {
filter = options . filter ;
obj = filter ( '' , obj ) ;
} else if ( isArray ( options . filter ) ) {
filter = options . filter ;
objKeys = filter ;
}
var keys = [ ] ;
if ( typeof obj !== 'object' || obj === null ) {
return '' ;
}
var arrayFormat ;
if ( opts && opts . arrayFormat in arrayPrefixGenerators ) {
arrayFormat = opts . arrayFormat ;
} else if ( opts && 'indices' in opts ) {
arrayFormat = opts . indices ? 'indices' : 'repeat' ;
} else {
arrayFormat = 'indices' ;
}
var generateArrayPrefix = arrayPrefixGenerators [ arrayFormat ] ;
if ( ! objKeys ) {
objKeys = Object . keys ( obj ) ;
}
if ( options . sort ) {
objKeys . sort ( options . sort ) ;
}
var sideChannel = getSideChannel ( ) ;
for ( var i = 0 ; i < objKeys . length ; ++ i ) {
var key = objKeys [ i ] ;
if ( options . skipNulls && obj [ key ] === null ) {
continue ;
}
pushToArray ( keys , stringify (
obj [ key ] ,
key ,
generateArrayPrefix ,
options . strictNullHandling ,
options . skipNulls ,
options . encode ? options . encoder : null ,
options . filter ,
options . sort ,
options . allowDots ,
options . serializeDate ,
options . format ,
options . formatter ,
options . encodeValuesOnly ,
options . charset ,
sideChannel
) ) ;
}
var joined = keys . join ( options . delimiter ) ;
var prefix = options . addQueryPrefix === true ? '?' : '' ;
if ( options . charsetSentinel ) {
if ( options . charset === 'iso-8859-1' ) {
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
prefix += 'utf8=%26%2310003%3B&' ;
} else {
// encodeURIComponent('✓')
prefix += 'utf8=%E2%9C%93&' ;
}
}
return joined . length > 0 ? prefix + joined : '' ;
} ;
/***/ } ) ,
/***/ 154 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
var formats = _ _nccwpck _require _ _ ( 864 ) ;
var has = Object . prototype . hasOwnProperty ;
var isArray = Array . isArray ;
var hexTable = ( function ( ) {
var array = [ ] ;
for ( var i = 0 ; i < 256 ; ++ i ) {
array . push ( '%' + ( ( i < 16 ? '0' : '' ) + i . toString ( 16 ) ) . toUpperCase ( ) ) ;
}
return array ;
} ( ) ) ;
var compactQueue = function compactQueue ( queue ) {
while ( queue . length > 1 ) {
var item = queue . pop ( ) ;
var obj = item . obj [ item . prop ] ;
if ( isArray ( obj ) ) {
var compacted = [ ] ;
for ( var j = 0 ; j < obj . length ; ++ j ) {
if ( typeof obj [ j ] !== 'undefined' ) {
compacted . push ( obj [ j ] ) ;
}
}
item . obj [ item . prop ] = compacted ;
}
}
} ;
var arrayToObject = function arrayToObject ( source , options ) {
var obj = options && options . plainObjects ? Object . create ( null ) : { } ;
for ( var i = 0 ; i < source . length ; ++ i ) {
if ( typeof source [ i ] !== 'undefined' ) {
obj [ i ] = source [ i ] ;
}
}
return obj ;
} ;
var merge = function merge ( target , source , options ) {
/* eslint no-param-reassign: 0 */
if ( ! source ) {
return target ;
}
if ( typeof source !== 'object' ) {
if ( isArray ( target ) ) {
target . push ( source ) ;
} else if ( target && typeof target === 'object' ) {
if ( ( options && ( options . plainObjects || options . allowPrototypes ) ) || ! has . call ( Object . prototype , source ) ) {
target [ source ] = true ;
}
} else {
return [ target , source ] ;
}
return target ;
}
if ( ! target || typeof target !== 'object' ) {
return [ target ] . concat ( source ) ;
}
var mergeTarget = target ;
if ( isArray ( target ) && ! isArray ( source ) ) {
mergeTarget = arrayToObject ( target , options ) ;
}
if ( isArray ( target ) && isArray ( source ) ) {
source . forEach ( function ( item , i ) {
if ( has . call ( target , i ) ) {
var targetItem = target [ i ] ;
if ( targetItem && typeof targetItem === 'object' && item && typeof item === 'object' ) {
target [ i ] = merge ( targetItem , item , options ) ;
} else {
target . push ( item ) ;
}
} else {
target [ i ] = item ;
}
} ) ;
return target ;
}
return Object . keys ( source ) . reduce ( function ( acc , key ) {
var value = source [ key ] ;
if ( has . call ( acc , key ) ) {
acc [ key ] = merge ( acc [ key ] , value , options ) ;
} else {
acc [ key ] = value ;
}
return acc ;
} , mergeTarget ) ;
} ;
var assign = function assignSingleSource ( target , source ) {
return Object . keys ( source ) . reduce ( function ( acc , key ) {
acc [ key ] = source [ key ] ;
return acc ;
} , target ) ;
} ;
var decode = function ( str , decoder , charset ) {
var strWithoutPlus = str . replace ( /\+/g , ' ' ) ;
if ( charset === 'iso-8859-1' ) {
// unescape never throws, no try...catch needed:
return strWithoutPlus . replace ( /%[0-9a-f]{2}/gi , unescape ) ;
}
// utf-8
try {
return decodeURIComponent ( strWithoutPlus ) ;
} catch ( e ) {
return strWithoutPlus ;
}
} ;
var encode = function encode ( str , defaultEncoder , charset , kind , format ) {
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
// It has been adapted here for stricter adherence to RFC 3986
if ( str . length === 0 ) {
return str ;
}
var string = str ;
if ( typeof str === 'symbol' ) {
string = Symbol . prototype . toString . call ( str ) ;
} else if ( typeof str !== 'string' ) {
string = String ( str ) ;
}
if ( charset === 'iso-8859-1' ) {
return escape ( string ) . replace ( /%u[0-9a-f]{4}/gi , function ( $0 ) {
return '%26%23' + parseInt ( $0 . slice ( 2 ) , 16 ) + '%3B' ;
} ) ;
}
var out = '' ;
for ( var i = 0 ; i < string . length ; ++ i ) {
var c = string . charCodeAt ( i ) ;
if (
c === 0x2D // -
|| c === 0x2E // .
|| c === 0x5F // _
|| c === 0x7E // ~
|| ( c >= 0x30 && c <= 0x39 ) // 0-9
|| ( c >= 0x41 && c <= 0x5A ) // a-z
|| ( c >= 0x61 && c <= 0x7A ) // A-Z
|| ( format === formats . RFC1738 && ( c === 0x28 || c === 0x29 ) ) // ( )
) {
out += string . charAt ( i ) ;
continue ;
}
if ( c < 0x80 ) {
out = out + hexTable [ c ] ;
continue ;
}
if ( c < 0x800 ) {
out = out + ( hexTable [ 0xC0 | ( c >> 6 ) ] + hexTable [ 0x80 | ( c & 0x3F ) ] ) ;
continue ;
}
if ( c < 0xD800 || c >= 0xE000 ) {
out = out + ( hexTable [ 0xE0 | ( c >> 12 ) ] + hexTable [ 0x80 | ( ( c >> 6 ) & 0x3F ) ] + hexTable [ 0x80 | ( c & 0x3F ) ] ) ;
continue ;
}
i += 1 ;
c = 0x10000 + ( ( ( c & 0x3FF ) << 10 ) | ( string . charCodeAt ( i ) & 0x3FF ) ) ;
out += hexTable [ 0xF0 | ( c >> 18 ) ]
+ hexTable [ 0x80 | ( ( c >> 12 ) & 0x3F ) ]
+ hexTable [ 0x80 | ( ( c >> 6 ) & 0x3F ) ]
+ hexTable [ 0x80 | ( c & 0x3F ) ] ;
}
return out ;
} ;
var compact = function compact ( value ) {
var queue = [ { obj : { o : value } , prop : 'o' } ] ;
var refs = [ ] ;
for ( var i = 0 ; i < queue . length ; ++ i ) {
var item = queue [ i ] ;
var obj = item . obj [ item . prop ] ;
var keys = Object . keys ( obj ) ;
for ( var j = 0 ; j < keys . length ; ++ j ) {
var key = keys [ j ] ;
var val = obj [ key ] ;
if ( typeof val === 'object' && val !== null && refs . indexOf ( val ) === - 1 ) {
queue . push ( { obj : obj , prop : key } ) ;
refs . push ( val ) ;
}
}
}
compactQueue ( queue ) ;
return value ;
} ;
var isRegExp = function isRegExp ( obj ) {
return Object . prototype . toString . call ( obj ) === '[object RegExp]' ;
} ;
var isBuffer = function isBuffer ( obj ) {
if ( ! obj || typeof obj !== 'object' ) {
return false ;
}
return ! ! ( obj . constructor && obj . constructor . isBuffer && obj . constructor . isBuffer ( obj ) ) ;
} ;
var combine = function combine ( a , b ) {
return [ ] . concat ( a , b ) ;
} ;
var maybeMap = function maybeMap ( val , fn ) {
if ( isArray ( val ) ) {
var mapped = [ ] ;
for ( var i = 0 ; i < val . length ; i += 1 ) {
mapped . push ( fn ( val [ i ] ) ) ;
}
return mapped ;
}
return fn ( val ) ;
} ;
module . exports = {
arrayToObject : arrayToObject ,
assign : assign ,
combine : combine ,
compact : compact ,
decode : decode ,
encode : encode ,
isBuffer : isBuffer ,
isRegExp : isRegExp ,
maybeMap : maybeMap ,
merge : merge
} ;
/***/ } ) ,
/***/ 708 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
2021-05-14 09:15:39 +00:00
"use strict" ;
2021-07-23 13:33:33 +00:00
var data = _ _nccwpck _require _ _ ( 547 ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
function escapeRegexp ( str ) {
return str . replace ( /([.?*+^$[\]\\(){}|-])/g , '\\$1' ) ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
var REPLACE _RE = RegExp ( Object . keys ( data ) . map ( escapeRegexp ) . join ( '|' ) , 'g' ) ;
function replace _fn ( match ) {
return data [ match ] ;
2021-05-14 09:15:39 +00:00
}
2021-07-23 13:33:33 +00:00
function unhomoglyph ( str ) {
return str . replace ( REPLACE _RE , replace _fn ) ;
}
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
module . exports = unhomoglyph ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 547 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = JSON . parse ( ' { "0" : "O" , "1" : "l" , "֭" : "֖" , "֮" : "֘" , "֨" : "֙" , "֤" : "֚" , "᪴" : "ۛ" , "⃛" : "ۛ" , "ؙ" : "̓" , "ࣳ" : "̓" , "̓" : "̓" , "̕" : "̓" , "ُ" : "̓" , "ٝ" : "̔" , "֜" : "́" , "֝" : "́" , "ؘ" : "́" , "݇" : "́" , "́" : "́" , "॔" : "́" , "َ" : "́" , "̀" : "̀" , "॓" : "̀" , "̌" : "̆" , "꙼" : "̆" , "٘" : "̆" , "ٚ" : "̆" , "ͮ" : "̆" , "ۨ" : "̆̇" , "̐" : "̆̇" , "ँ" : "̆̇" , "ঁ" : "̆̇" , "ઁ" : "̆̇" , "ଁ" : "̆̇" , "ఀ" : "̆̇" , "ಁ" : "̆̇" , "ഁ" : "̆̇" , "𑒿" : "̆̇" , "᳐" : "̂" , "̑" : "̂" , "ٛ" : "̂" , "߮" : "̂" , "꛰" : "̂" , "֯" : "̊" , "۟" : "̊" , "៓" : "̊" , "゚" : "̊" , "ْ" : "̊" , "ஂ" : "̊" , "ံ" : "̊" , "ំ" : "̊" , "𑌀" : "̊" , "ํ" : "̊" , "ໍ" : "̊" , "ͦ" : "̊" , "ⷪ" : "̊" , "࣫" : "̈" , "߳" : "̈" , "ً" : "̋" , "ࣰ" : "̋" , "͂" : "̃" , "ٓ" : "̃" , "ׄ" : "̇" , "۬" : "̇" , "݀" : "̇" , "࣪" : "̇" , "݁" : "̇" , "͘" : "̇" , "ֹ" : "̇" , "ֺ" : "̇" , "ׂ" : "̇" , "ׁ" : "̇" , "߭" : "̇" , "ं" : "̇" , "ਂ" : "̇" , "ં" : "̇" , "்" : "̇" , "̷" : "̸" , "᪷" : "̨" , "̢" : "̨" , "ͅ" : "̨" , "᳒" : "̄" , "̅" : "̄" , "ٙ" : "̄" , "߫" : "̄" , "꛱" : "̄" , "᳚" : "̎" , "ٗ" : "̒" , "͗" : "͐" , "ࣿ" : "͐" , "ࣸ" : "͐" , "ऀ" : "͒" , "᳭" : "̖" , "᳜" : "̩" , "ٖ" : "̩" , "᳕" : "̫" , "͇" : "̳" , "ࣹ" : "͔" , "ࣺ" : "͕" , "゛" : "゙" , "゜" : "゚" , "̶" : "̵" , "〬" : "̉" , "ׅ" : "̣" , "࣭" : "̣" , "᳝" : "̣" , "ִ" : "̣" , "ٜ" : "̣" , "़" : "̣" , "়" : "̣" , "਼" : "̣" , "઼" : "̣" , "଼" : "̣" , "𑇊" : "̣" , "𑓃" : "̣" , "𐨺" : "̣" , "࣮" : "̤" , "᳞" : "̤" , "༷" : "̥" , "〭" : "̥" , "̧" : "̦" , "̡" : "̦" , "̹" : "̦" , "᳙" : "̭" , "᳘" : "̮" , "॒" : "̱" , "̠" : "̱" , "ࣱ" : "ٌ" , "ࣨ" : "ٌ" , "ࣥ" : "ٌ" , "ﱞ" : "ﹲّ" , "ࣲ" : "ٍ" , "ﱟ" : "ﹴّ" , "ﳲ" : "ﹷّ" , "ﱠ" : "ﹶّ" , "ﳳ" : "ﹹّ" , "ﱡ" : "ﹸّ" , "ؚ" : "ِ" , "̗" : "ِ" , "ﳴ" : "ﹻّ" , "ﱢ" : "ﹺّ" , "ﱣ" : "ﹼٰ" , "ٟ" : "ٕ" , "̍" : "ٰ" , "݂" : "ܼ" , "ਃ" : "ঃ" , "ః" : "ঃ" , "ಃ" : "ঃ" , "ഃ" : "ঃ" , "ඃ" : "ঃ" , "း" : "ঃ" , "𑓁" : "ঃ" , "់" : "่" , "່" : "่" , "້" : "้" , "໊" : "๊" , "໋" : "๋" , "꙯" : "⃩" , "\\u2028" : " " , "\\u2029" : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , "ߺ " : "_" , "﹍ " : "_" , "﹎ " : "_" , "﹏ " : "_" , "‐ " : "-" , "‑ " : "-" , "‒ " : "-" , "– " : "-" , "﹘ " : "-" , "۔ " : "-" , "⁃ " : "-" , "˗ " : "-" , "− " : "-" , "➖ " : "-" , "Ⲻ " : "-" , "⨩" : "-̓" , "⸚" : "-̈" , "﬩" : "-̇" , "∸" : "-̇" , "⨪" : "-̣" , "꓾" : "-." , "~ " : "〜" , "؍ " : "," , "٫ " : "," , "‚ " : "," , "¸ " : "," , "ꓹ " : "," , "⸲" : "،" , "٬" : "،" , "; " : ";" , "⸵" : "؛" , "ः " : ":" , "ઃ " : ":" , ": " : ":" , "։ " : ":" , "܃ " : ":" , "܄ " : ":" , "᛬ " : ":" , "︰ " : ":" , "᠃ " : ":" , "᠉ " : ":" , "⁚ " : ":" , "׃ " : ":" , "˸ " : ":" , "꞉ " : ":" , "∶ " : ":" , "ː " : ":" , "ꓽ " : ":" , "⩴" : "::=" , "⧴" : ":→" , "! " : "!" , "ǃ " : "!" , "ⵑ " : "!" , "‼" : "!!" , "⁉" : "!?" , "ʔ " : "?" , "Ɂ " : "?" , "ॽ " : "?" , "Ꭾ " : "?" , "ꛫ " : "?" , "⁈" : "?!" , "⁇" : "??" , "⸮" : "؟" , "𝅭 " : "." , "․ " : "." , "܁ " : "." , "܂ " : "." , "꘎ " : "." , "𐩐 " : "." , "٠ " : "." , "۰ " : "." , "ꓸ " : "." , "ꓻ" : ".," , "‥" : ".." , "ꓺ" : ".." , "…" : "..." , "꛴" : "꛳꛳" , "・" : "·" , "・" : "·" , "᛫" : "·" , "·" : "·" , "⸱" : "·" , "𐄁" : "·" , "•" : "·" , "‧" : "·" , "∙" : "·" , "⋅" : "·" , "ꞏ" : "·" , "ᐧ" : "·" , "⋯" : "···" , "ⵈ" : "···" , "ᑄ" : "·<" , "⋗" : "·>" , "ᐷ" : "·>" , "ᑀ" : "·>" , "ᔯ" : "·4" , "ᑾ" : "·b" , "ᒀ" : "·ḃ" , "ᑺ" : "·d" , "ᒘ" : "·J" , "ᒶ" : "·L" , "ᑶ" : "·P" , "ᑗ" : "·U" , "ᐺ" : "·V" , "ᐼ" : "·Ʌ" , "ᒮ" : "·Γ" , "ᐎ" : "·Δ" , "ᑙ" : "·Ո" , "ᐌ" : "·ᐁ" , "ᐐ" : "·ᐄ" , "ᐒ" : "·ᐅ" , "ᐔ" : "·ᐆ" , "ᐗ" : "·ᐊ" , "ᐙ" : "·ᐋ" , "ᐾ" : "·ᐲ" , "ᑂ" : "·ᐴ" , "ᑆ" : "·ᐹ" , "ᑛ" : "·ᑏ" , "ᑔ" : "·ᑐ" , "ᑝ" : "·ᑐ" , "ᑟ" : "·ᑑ" , "ᑡ" : "·ᑕ" , "ᑣ" : "·ᑖ" , "ᑴ" : "·ᑫ" , "ᑸ" : "·ᑮ" , "ᑼ" : "·ᑰ" , "ᒒ" : "·ᒉ" , "ᒔ" : "·ᒋ" , "ᒖ" : "·ᒌ" , "ᒚ" : "·ᒎ" , "ᒜ" : "·ᒐ" , "ᒞ" : "·ᒑ" , "ᒬ" : "·ᒣ" , "ᒰ" : "·ᒦ" , "ᒲ" : "·ᒧ" , "ᒴ" : "·ᒨ" , "ᒸ" : "·ᒫ" , "ᓉ" : "·ᓀ" , "ᣆ" : "·ᓂ" , "ᣈ" : "·ᓃ" , "ᣊ" : "·ᓄ" , "ᣌ" : "·ᓅ" , "ᓋ" : "·ᓇ" , "ᓍ" : "·ᓈ" , "ᓜ" : "·ᓓ" , "ᓞ" : "·ᓕ" , "ᓠ" : "·ᓖ" , "ᓢ" : "·ᓗ" , "ᓤ" : "·ᓘ" , "ᓦ" : "·ᓚ" , "ᓨ" : "·ᓛ" , "ᓶ" : "·ᓭ" , "ᓸ" : "·ᓯ" , "ᓺ" : "·ᓰ" , "ᓼ" : "·ᓱ" , "ᓾ" : "·ᓲ" , "ᔀ" : "·ᓴ" , "ᔂ" : "·ᓵ" , "ᔗ" : "·ᔐ" , "ᔙ" : "·ᔑ" , "ᔛ" : "·ᔒ" , "ᔝ" : "·ᔓ" , "ᔟ" : "·ᔔ" , "ᔡ" : "·ᔕ" , "ᔣ" : "·ᔖ" , "ᔱ" : "·ᔨ" , "ᔳ" : "·ᔩ" , "ᔵ" : "·ᔪ" , "ᔷ" : "·ᔫ" , "ᔹ" : "·ᔭ" , "ᔻ" : "·ᔮ" , "ᣎ" : "·ᕃ" , "ᣏ" : "·ᕆ" , "ᣐ" : "·ᕇ" , "ᣑ" : "·ᕈ" , "ᣒ" : "·ᕉ" , "ᣓ" : "·ᕋ" , "ᕎ" : "·ᕌ" , "ᕛ" : "·ᕚ" , "
/***/ } ) ,
/***/ 357 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "assert" ) ;
/***/ } ) ,
/***/ 417 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "crypto" ) ;
/***/ } ) ,
/***/ 614 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "events" ) ;
/***/ } ) ,
/***/ 747 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "fs" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 605 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "http" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 211 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "https" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 631 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "net" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 87 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "os" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 622 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "path" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ 16 :
/***/ ( ( module ) => {
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
"use strict" ;
module . exports = require ( "tls" ) ;
/***/ } ) ,
/***/ 835 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "url" ) ;
2021-05-14 09:15:39 +00:00
2021-07-23 13:33:33 +00:00
/***/ } ) ,
/***/ 669 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "util" ) ;
/***/ } ) ,
/***/ 761 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "zlib" ) ;
2021-05-14 09:15:39 +00:00
2020-01-06 10:37:12 +00:00
/***/ } )
2021-07-23 13:33:33 +00:00
/******/ } ) ;
/************************************************************************/
/******/ // The module cache
/******/ var _ _webpack _module _cache _ _ = { } ;
/******/
/******/ // The require function
/******/ function _ _nccwpck _require _ _ ( moduleId ) {
/******/ // Check if module is in cache
/******/ var cachedModule = _ _webpack _module _cache _ _ [ moduleId ] ;
/******/ if ( cachedModule !== undefined ) {
/******/ return cachedModule . exports ;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = _ _webpack _module _cache _ _ [ moduleId ] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports : { }
/******/ } ;
/******/
/******/ // Execute the module function
/******/ var threw = true ;
/******/ try {
/******/ _ _webpack _modules _ _ [ moduleId ] . call ( module . exports , module , module . exports , _ _nccwpck _require _ _ ) ;
/******/ threw = false ;
/******/ } finally {
/******/ if ( threw ) delete _ _webpack _module _cache _ _ [ moduleId ] ;
/******/ }
/******/
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if ( typeof _ _nccwpck _require _ _ !== 'undefined' ) _ _nccwpck _require _ _ . ab = _ _dirname + "/" ;
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var _ _webpack _exports _ _ = _ _nccwpck _require _ _ ( 109 ) ;
/******/ module . exports = _ _webpack _exports _ _ ;
/******/
/******/ } ) ( )
;