├── .idea
├── .gitignore
├── JS.iml
├── jsLibraryMappings.xml
├── modules.xml
└── vcs.xml
├── README.md
├── node_modules
├── .package-lock.json
├── ansi-regex
│ ├── index.js
│ ├── license
│ ├── package.json
│ └── readme.md
├── chalk
│ ├── license
│ ├── package.json
│ ├── readme.md
│ └── source
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── utilities.js
│ │ └── vendor
│ │ ├── ansi-styles
│ │ ├── index.d.ts
│ │ └── index.js
│ │ └── supports-color
│ │ ├── browser.d.ts
│ │ ├── browser.js
│ │ ├── index.d.ts
│ │ └── index.js
├── locutus
│ ├── _util
│ │ ├── cli.js
│ │ ├── cli.js.map
│ │ ├── util.js
│ │ └── util.js.map
│ ├── c
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── math
│ │ │ ├── abs.js
│ │ │ ├── abs.js.map
│ │ │ ├── frexp.js
│ │ │ ├── frexp.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ └── stdio
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── sprintf.js
│ │ │ └── sprintf.js.map
│ ├── golang
│ │ ├── index.js
│ │ ├── index.js.map
│ │ └── strings
│ │ │ ├── Contains.js
│ │ │ ├── Contains.js.map
│ │ │ ├── Count.js
│ │ │ ├── Count.js.map
│ │ │ ├── Index2.js
│ │ │ ├── Index2.js.map
│ │ │ ├── LastIndex.js
│ │ │ ├── LastIndex.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ ├── index.js
│ ├── index.js.map
│ ├── package.json
│ ├── php
│ │ ├── _helpers
│ │ │ ├── _bc.js
│ │ │ ├── _bc.js.map
│ │ │ ├── _phpCastString.js
│ │ │ ├── _phpCastString.js.map
│ │ │ ├── _php_cast_float.js
│ │ │ ├── _php_cast_float.js.map
│ │ │ ├── _php_cast_int.js
│ │ │ ├── _php_cast_int.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── _locutus_shared
│ │ │ ├── _locutus_shared_bc.js
│ │ │ ├── _locutus_shared_bc.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── array
│ │ │ ├── array_change_key_case.js
│ │ │ ├── array_change_key_case.js.map
│ │ │ ├── array_chunk.js
│ │ │ ├── array_chunk.js.map
│ │ │ ├── array_column.js
│ │ │ ├── array_column.js.map
│ │ │ ├── array_combine.js
│ │ │ ├── array_combine.js.map
│ │ │ ├── array_count_values.js
│ │ │ ├── array_count_values.js.map
│ │ │ ├── array_diff.js
│ │ │ ├── array_diff.js.map
│ │ │ ├── array_diff_assoc.js
│ │ │ ├── array_diff_assoc.js.map
│ │ │ ├── array_diff_key.js
│ │ │ ├── array_diff_key.js.map
│ │ │ ├── array_diff_uassoc.js
│ │ │ ├── array_diff_uassoc.js.map
│ │ │ ├── array_diff_ukey.js
│ │ │ ├── array_diff_ukey.js.map
│ │ │ ├── array_fill.js
│ │ │ ├── array_fill.js.map
│ │ │ ├── array_fill_keys.js
│ │ │ ├── array_fill_keys.js.map
│ │ │ ├── array_filter.js
│ │ │ ├── array_filter.js.map
│ │ │ ├── array_flip.js
│ │ │ ├── array_flip.js.map
│ │ │ ├── array_intersect.js
│ │ │ ├── array_intersect.js.map
│ │ │ ├── array_intersect_assoc.js
│ │ │ ├── array_intersect_assoc.js.map
│ │ │ ├── array_intersect_key.js
│ │ │ ├── array_intersect_key.js.map
│ │ │ ├── array_intersect_uassoc.js
│ │ │ ├── array_intersect_uassoc.js.map
│ │ │ ├── array_intersect_ukey.js
│ │ │ ├── array_intersect_ukey.js.map
│ │ │ ├── array_key_exists.js
│ │ │ ├── array_key_exists.js.map
│ │ │ ├── array_keys.js
│ │ │ ├── array_keys.js.map
│ │ │ ├── array_map.js
│ │ │ ├── array_map.js.map
│ │ │ ├── array_merge.js
│ │ │ ├── array_merge.js.map
│ │ │ ├── array_merge_recursive.js
│ │ │ ├── array_merge_recursive.js.map
│ │ │ ├── array_multisort.js
│ │ │ ├── array_multisort.js.map
│ │ │ ├── array_pad.js
│ │ │ ├── array_pad.js.map
│ │ │ ├── array_pop.js
│ │ │ ├── array_pop.js.map
│ │ │ ├── array_product.js
│ │ │ ├── array_product.js.map
│ │ │ ├── array_push.js
│ │ │ ├── array_push.js.map
│ │ │ ├── array_rand.js
│ │ │ ├── array_rand.js.map
│ │ │ ├── array_reduce.js
│ │ │ ├── array_reduce.js.map
│ │ │ ├── array_replace.js
│ │ │ ├── array_replace.js.map
│ │ │ ├── array_replace_recursive.js
│ │ │ ├── array_replace_recursive.js.map
│ │ │ ├── array_reverse.js
│ │ │ ├── array_reverse.js.map
│ │ │ ├── array_search.js
│ │ │ ├── array_search.js.map
│ │ │ ├── array_shift.js
│ │ │ ├── array_shift.js.map
│ │ │ ├── array_slice.js
│ │ │ ├── array_slice.js.map
│ │ │ ├── array_splice.js
│ │ │ ├── array_splice.js.map
│ │ │ ├── array_sum.js
│ │ │ ├── array_sum.js.map
│ │ │ ├── array_udiff.js
│ │ │ ├── array_udiff.js.map
│ │ │ ├── array_udiff_assoc.js
│ │ │ ├── array_udiff_assoc.js.map
│ │ │ ├── array_udiff_uassoc.js
│ │ │ ├── array_udiff_uassoc.js.map
│ │ │ ├── array_uintersect.js
│ │ │ ├── array_uintersect.js.map
│ │ │ ├── array_uintersect_uassoc.js
│ │ │ ├── array_uintersect_uassoc.js.map
│ │ │ ├── array_unique.js
│ │ │ ├── array_unique.js.map
│ │ │ ├── array_unshift.js
│ │ │ ├── array_unshift.js.map
│ │ │ ├── array_values.js
│ │ │ ├── array_values.js.map
│ │ │ ├── array_walk.js
│ │ │ ├── array_walk.js.map
│ │ │ ├── array_walk_recursive.js
│ │ │ ├── array_walk_recursive.js.map
│ │ │ ├── arsort.js
│ │ │ ├── arsort.js.map
│ │ │ ├── asort.js
│ │ │ ├── asort.js.map
│ │ │ ├── count.js
│ │ │ ├── count.js.map
│ │ │ ├── current.js
│ │ │ ├── current.js.map
│ │ │ ├── each.js
│ │ │ ├── each.js.map
│ │ │ ├── end.js
│ │ │ ├── end.js.map
│ │ │ ├── in_array.js
│ │ │ ├── in_array.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── key.js
│ │ │ ├── key.js.map
│ │ │ ├── krsort.js
│ │ │ ├── krsort.js.map
│ │ │ ├── ksort.js
│ │ │ ├── ksort.js.map
│ │ │ ├── natcasesort.js
│ │ │ ├── natcasesort.js.map
│ │ │ ├── natsort.js
│ │ │ ├── natsort.js.map
│ │ │ ├── next.js
│ │ │ ├── next.js.map
│ │ │ ├── pos.js
│ │ │ ├── pos.js.map
│ │ │ ├── prev.js
│ │ │ ├── prev.js.map
│ │ │ ├── range.js
│ │ │ ├── range.js.map
│ │ │ ├── reset.js
│ │ │ ├── reset.js.map
│ │ │ ├── rsort.js
│ │ │ ├── rsort.js.map
│ │ │ ├── shuffle.js
│ │ │ ├── shuffle.js.map
│ │ │ ├── sizeof.js
│ │ │ ├── sizeof.js.map
│ │ │ ├── sort.js
│ │ │ ├── sort.js.map
│ │ │ ├── uasort.js
│ │ │ ├── uasort.js.map
│ │ │ ├── uksort.js
│ │ │ ├── uksort.js.map
│ │ │ ├── usort.js
│ │ │ └── usort.js.map
│ │ ├── bc
│ │ │ ├── bcadd.js
│ │ │ ├── bcadd.js.map
│ │ │ ├── bccomp.js
│ │ │ ├── bccomp.js.map
│ │ │ ├── bcdiv.js
│ │ │ ├── bcdiv.js.map
│ │ │ ├── bcmul.js
│ │ │ ├── bcmul.js.map
│ │ │ ├── bcround.js
│ │ │ ├── bcround.js.map
│ │ │ ├── bcscale.js
│ │ │ ├── bcscale.js.map
│ │ │ ├── bcsub.js
│ │ │ ├── bcsub.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── ctype
│ │ │ ├── ctype_alnum.js
│ │ │ ├── ctype_alnum.js.map
│ │ │ ├── ctype_alpha.js
│ │ │ ├── ctype_alpha.js.map
│ │ │ ├── ctype_cntrl.js
│ │ │ ├── ctype_cntrl.js.map
│ │ │ ├── ctype_digit.js
│ │ │ ├── ctype_digit.js.map
│ │ │ ├── ctype_graph.js
│ │ │ ├── ctype_graph.js.map
│ │ │ ├── ctype_lower.js
│ │ │ ├── ctype_lower.js.map
│ │ │ ├── ctype_print.js
│ │ │ ├── ctype_print.js.map
│ │ │ ├── ctype_punct.js
│ │ │ ├── ctype_punct.js.map
│ │ │ ├── ctype_space.js
│ │ │ ├── ctype_space.js.map
│ │ │ ├── ctype_upper.js
│ │ │ ├── ctype_upper.js.map
│ │ │ ├── ctype_xdigit.js
│ │ │ ├── ctype_xdigit.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── datetime
│ │ │ ├── checkdate.js
│ │ │ ├── checkdate.js.map
│ │ │ ├── date.js
│ │ │ ├── date.js.map
│ │ │ ├── date_parse.js
│ │ │ ├── date_parse.js.map
│ │ │ ├── getdate.js
│ │ │ ├── getdate.js.map
│ │ │ ├── gettimeofday.js
│ │ │ ├── gettimeofday.js.map
│ │ │ ├── gmdate.js
│ │ │ ├── gmdate.js.map
│ │ │ ├── gmmktime.js
│ │ │ ├── gmmktime.js.map
│ │ │ ├── gmstrftime.js
│ │ │ ├── gmstrftime.js.map
│ │ │ ├── idate.js
│ │ │ ├── idate.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── microtime.js
│ │ │ ├── microtime.js.map
│ │ │ ├── mktime.js
│ │ │ ├── mktime.js.map
│ │ │ ├── strftime.js
│ │ │ ├── strftime.js.map
│ │ │ ├── strptime.js
│ │ │ ├── strptime.js.map
│ │ │ ├── strtotime.js
│ │ │ ├── strtotime.js.map
│ │ │ ├── time.js
│ │ │ └── time.js.map
│ │ ├── exec
│ │ │ ├── escapeshellarg.js
│ │ │ ├── escapeshellarg.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── filesystem
│ │ │ ├── basename.js
│ │ │ ├── basename.js.map
│ │ │ ├── dirname.js
│ │ │ ├── dirname.js.map
│ │ │ ├── file_get_contents.js
│ │ │ ├── file_get_contents.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── pathinfo.js
│ │ │ ├── pathinfo.js.map
│ │ │ ├── realpath.js
│ │ │ └── realpath.js.map
│ │ ├── funchand
│ │ │ ├── call_user_func.js
│ │ │ ├── call_user_func.js.map
│ │ │ ├── call_user_func_array.js
│ │ │ ├── call_user_func_array.js.map
│ │ │ ├── create_function.js
│ │ │ ├── create_function.js.map
│ │ │ ├── function_exists.js
│ │ │ ├── function_exists.js.map
│ │ │ ├── get_defined_functions.js
│ │ │ ├── get_defined_functions.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── i18n
│ │ │ ├── i18n_loc_get_default.js
│ │ │ ├── i18n_loc_get_default.js.map
│ │ │ ├── i18n_loc_set_default.js
│ │ │ ├── i18n_loc_set_default.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── info
│ │ │ ├── assert_options.js
│ │ │ ├── assert_options.js.map
│ │ │ ├── getenv.js
│ │ │ ├── getenv.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── ini_get.js
│ │ │ ├── ini_get.js.map
│ │ │ ├── ini_set.js
│ │ │ ├── ini_set.js.map
│ │ │ ├── set_time_limit.js
│ │ │ ├── set_time_limit.js.map
│ │ │ ├── version_compare.js
│ │ │ └── version_compare.js.map
│ │ ├── json
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── json_decode.js
│ │ │ ├── json_decode.js.map
│ │ │ ├── json_encode.js
│ │ │ ├── json_encode.js.map
│ │ │ ├── json_last_error.js
│ │ │ └── json_last_error.js.map
│ │ ├── math
│ │ │ ├── abs.js
│ │ │ ├── abs.js.map
│ │ │ ├── acos.js
│ │ │ ├── acos.js.map
│ │ │ ├── acosh.js
│ │ │ ├── acosh.js.map
│ │ │ ├── asin.js
│ │ │ ├── asin.js.map
│ │ │ ├── asinh.js
│ │ │ ├── asinh.js.map
│ │ │ ├── atan.js
│ │ │ ├── atan.js.map
│ │ │ ├── atan2.js
│ │ │ ├── atan2.js.map
│ │ │ ├── atanh.js
│ │ │ ├── atanh.js.map
│ │ │ ├── base_convert.js
│ │ │ ├── base_convert.js.map
│ │ │ ├── bindec.js
│ │ │ ├── bindec.js.map
│ │ │ ├── ceil.js
│ │ │ ├── ceil.js.map
│ │ │ ├── cos.js
│ │ │ ├── cos.js.map
│ │ │ ├── cosh.js
│ │ │ ├── cosh.js.map
│ │ │ ├── decbin.js
│ │ │ ├── decbin.js.map
│ │ │ ├── dechex.js
│ │ │ ├── dechex.js.map
│ │ │ ├── decoct.js
│ │ │ ├── decoct.js.map
│ │ │ ├── deg2rad.js
│ │ │ ├── deg2rad.js.map
│ │ │ ├── exp.js
│ │ │ ├── exp.js.map
│ │ │ ├── expm1.js
│ │ │ ├── expm1.js.map
│ │ │ ├── floor.js
│ │ │ ├── floor.js.map
│ │ │ ├── fmod.js
│ │ │ ├── fmod.js.map
│ │ │ ├── getrandmax.js
│ │ │ ├── getrandmax.js.map
│ │ │ ├── hexdec.js
│ │ │ ├── hexdec.js.map
│ │ │ ├── hypot.js
│ │ │ ├── hypot.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── is_finite.js
│ │ │ ├── is_finite.js.map
│ │ │ ├── is_infinite.js
│ │ │ ├── is_infinite.js.map
│ │ │ ├── is_nan.js
│ │ │ ├── is_nan.js.map
│ │ │ ├── lcg_value.js
│ │ │ ├── lcg_value.js.map
│ │ │ ├── log.js
│ │ │ ├── log.js.map
│ │ │ ├── log10.js
│ │ │ ├── log10.js.map
│ │ │ ├── log1p.js
│ │ │ ├── log1p.js.map
│ │ │ ├── max.js
│ │ │ ├── max.js.map
│ │ │ ├── min.js
│ │ │ ├── min.js.map
│ │ │ ├── mt_getrandmax.js
│ │ │ ├── mt_getrandmax.js.map
│ │ │ ├── mt_rand.js
│ │ │ ├── mt_rand.js.map
│ │ │ ├── octdec.js
│ │ │ ├── octdec.js.map
│ │ │ ├── pi.js
│ │ │ ├── pi.js.map
│ │ │ ├── pow.js
│ │ │ ├── pow.js.map
│ │ │ ├── rad2deg.js
│ │ │ ├── rad2deg.js.map
│ │ │ ├── rand.js
│ │ │ ├── rand.js.map
│ │ │ ├── round.js
│ │ │ ├── round.js.map
│ │ │ ├── sin.js
│ │ │ ├── sin.js.map
│ │ │ ├── sinh.js
│ │ │ ├── sinh.js.map
│ │ │ ├── sqrt.js
│ │ │ ├── sqrt.js.map
│ │ │ ├── tan.js
│ │ │ ├── tan.js.map
│ │ │ ├── tanh.js
│ │ │ └── tanh.js.map
│ │ ├── misc
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── pack.js
│ │ │ ├── pack.js.map
│ │ │ ├── uniqid.js
│ │ │ └── uniqid.js.map
│ │ ├── net-gopher
│ │ │ ├── gopher_parsedir.js
│ │ │ ├── gopher_parsedir.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── network
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── inet_ntop.js
│ │ │ ├── inet_ntop.js.map
│ │ │ ├── inet_pton.js
│ │ │ ├── inet_pton.js.map
│ │ │ ├── ip2long.js
│ │ │ ├── ip2long.js.map
│ │ │ ├── long2ip.js
│ │ │ ├── long2ip.js.map
│ │ │ ├── setcookie.js
│ │ │ ├── setcookie.js.map
│ │ │ ├── setrawcookie.js
│ │ │ └── setrawcookie.js.map
│ │ ├── pcre
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── preg_match.js
│ │ │ ├── preg_match.js.map
│ │ │ ├── preg_quote.js
│ │ │ ├── preg_quote.js.map
│ │ │ ├── preg_replace.js
│ │ │ ├── preg_replace.js.map
│ │ │ ├── sql_regcase.js
│ │ │ └── sql_regcase.js.map
│ │ ├── strings
│ │ │ ├── addcslashes.js
│ │ │ ├── addcslashes.js.map
│ │ │ ├── addslashes.js
│ │ │ ├── addslashes.js.map
│ │ │ ├── bin2hex.js
│ │ │ ├── bin2hex.js.map
│ │ │ ├── chop.js
│ │ │ ├── chop.js.map
│ │ │ ├── chr.js
│ │ │ ├── chr.js.map
│ │ │ ├── chunk_split.js
│ │ │ ├── chunk_split.js.map
│ │ │ ├── convert_cyr_string.js
│ │ │ ├── convert_cyr_string.js.map
│ │ │ ├── convert_uuencode.js
│ │ │ ├── convert_uuencode.js.map
│ │ │ ├── count_chars.js
│ │ │ ├── count_chars.js.map
│ │ │ ├── crc32.js
│ │ │ ├── crc32.js.map
│ │ │ ├── echo.js
│ │ │ ├── echo.js.map
│ │ │ ├── explode.js
│ │ │ ├── explode.js.map
│ │ │ ├── get_html_translation_table.js
│ │ │ ├── get_html_translation_table.js.map
│ │ │ ├── hex2bin.js
│ │ │ ├── hex2bin.js.map
│ │ │ ├── html_entity_decode.js
│ │ │ ├── html_entity_decode.js.map
│ │ │ ├── htmlentities.js
│ │ │ ├── htmlentities.js.map
│ │ │ ├── htmlspecialchars.js
│ │ │ ├── htmlspecialchars.js.map
│ │ │ ├── htmlspecialchars_decode.js
│ │ │ ├── htmlspecialchars_decode.js.map
│ │ │ ├── implode.js
│ │ │ ├── implode.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── join.js
│ │ │ ├── join.js.map
│ │ │ ├── lcfirst.js
│ │ │ ├── lcfirst.js.map
│ │ │ ├── levenshtein.js
│ │ │ ├── levenshtein.js.map
│ │ │ ├── localeconv.js
│ │ │ ├── localeconv.js.map
│ │ │ ├── ltrim.js
│ │ │ ├── ltrim.js.map
│ │ │ ├── md5.js
│ │ │ ├── md5.js.map
│ │ │ ├── md5_file.js
│ │ │ ├── md5_file.js.map
│ │ │ ├── metaphone.js
│ │ │ ├── metaphone.js.map
│ │ │ ├── money_format.js
│ │ │ ├── money_format.js.map
│ │ │ ├── nl2br.js
│ │ │ ├── nl2br.js.map
│ │ │ ├── nl_langinfo.js
│ │ │ ├── nl_langinfo.js.map
│ │ │ ├── number_format.js
│ │ │ ├── number_format.js.map
│ │ │ ├── ord.js
│ │ │ ├── ord.js.map
│ │ │ ├── parse_str.js
│ │ │ ├── parse_str.js.map
│ │ │ ├── printf.js
│ │ │ ├── printf.js.map
│ │ │ ├── quoted_printable_decode.js
│ │ │ ├── quoted_printable_decode.js.map
│ │ │ ├── quoted_printable_encode.js
│ │ │ ├── quoted_printable_encode.js.map
│ │ │ ├── quotemeta.js
│ │ │ ├── quotemeta.js.map
│ │ │ ├── rtrim.js
│ │ │ ├── rtrim.js.map
│ │ │ ├── setlocale.js
│ │ │ ├── setlocale.js.map
│ │ │ ├── sha1.js
│ │ │ ├── sha1.js.map
│ │ │ ├── sha1_file.js
│ │ │ ├── sha1_file.js.map
│ │ │ ├── similar_text.js
│ │ │ ├── similar_text.js.map
│ │ │ ├── soundex.js
│ │ │ ├── soundex.js.map
│ │ │ ├── split.js
│ │ │ ├── split.js.map
│ │ │ ├── sprintf.js
│ │ │ ├── sprintf.js.map
│ │ │ ├── sscanf.js
│ │ │ ├── sscanf.js.map
│ │ │ ├── str_getcsv.js
│ │ │ ├── str_getcsv.js.map
│ │ │ ├── str_ireplace.js
│ │ │ ├── str_ireplace.js.map
│ │ │ ├── str_pad.js
│ │ │ ├── str_pad.js.map
│ │ │ ├── str_repeat.js
│ │ │ ├── str_repeat.js.map
│ │ │ ├── str_replace.js
│ │ │ ├── str_replace.js.map
│ │ │ ├── str_rot13.js
│ │ │ ├── str_rot13.js.map
│ │ │ ├── str_shuffle.js
│ │ │ ├── str_shuffle.js.map
│ │ │ ├── str_split.js
│ │ │ ├── str_split.js.map
│ │ │ ├── str_word_count.js
│ │ │ ├── str_word_count.js.map
│ │ │ ├── strcasecmp.js
│ │ │ ├── strcasecmp.js.map
│ │ │ ├── strchr.js
│ │ │ ├── strchr.js.map
│ │ │ ├── strcmp.js
│ │ │ ├── strcmp.js.map
│ │ │ ├── strcoll.js
│ │ │ ├── strcoll.js.map
│ │ │ ├── strcspn.js
│ │ │ ├── strcspn.js.map
│ │ │ ├── strip_tags.js
│ │ │ ├── strip_tags.js.map
│ │ │ ├── stripos.js
│ │ │ ├── stripos.js.map
│ │ │ ├── stripslashes.js
│ │ │ ├── stripslashes.js.map
│ │ │ ├── stristr.js
│ │ │ ├── stristr.js.map
│ │ │ ├── strlen.js
│ │ │ ├── strlen.js.map
│ │ │ ├── strnatcasecmp.js
│ │ │ ├── strnatcasecmp.js.map
│ │ │ ├── strnatcmp.js
│ │ │ ├── strnatcmp.js.map
│ │ │ ├── strncasecmp.js
│ │ │ ├── strncasecmp.js.map
│ │ │ ├── strncmp.js
│ │ │ ├── strncmp.js.map
│ │ │ ├── strpbrk.js
│ │ │ ├── strpbrk.js.map
│ │ │ ├── strpos.js
│ │ │ ├── strpos.js.map
│ │ │ ├── strrchr.js
│ │ │ ├── strrchr.js.map
│ │ │ ├── strrev.js
│ │ │ ├── strrev.js.map
│ │ │ ├── strripos.js
│ │ │ ├── strripos.js.map
│ │ │ ├── strrpos.js
│ │ │ ├── strrpos.js.map
│ │ │ ├── strspn.js
│ │ │ ├── strspn.js.map
│ │ │ ├── strstr.js
│ │ │ ├── strstr.js.map
│ │ │ ├── strtok.js
│ │ │ ├── strtok.js.map
│ │ │ ├── strtolower.js
│ │ │ ├── strtolower.js.map
│ │ │ ├── strtoupper.js
│ │ │ ├── strtoupper.js.map
│ │ │ ├── strtr.js
│ │ │ ├── strtr.js.map
│ │ │ ├── substr.js
│ │ │ ├── substr.js.map
│ │ │ ├── substr_compare.js
│ │ │ ├── substr_compare.js.map
│ │ │ ├── substr_count.js
│ │ │ ├── substr_count.js.map
│ │ │ ├── substr_replace.js
│ │ │ ├── substr_replace.js.map
│ │ │ ├── trim.js
│ │ │ ├── trim.js.map
│ │ │ ├── ucfirst.js
│ │ │ ├── ucfirst.js.map
│ │ │ ├── ucwords.js
│ │ │ ├── ucwords.js.map
│ │ │ ├── vprintf.js
│ │ │ ├── vprintf.js.map
│ │ │ ├── vsprintf.js
│ │ │ ├── vsprintf.js.map
│ │ │ ├── wordwrap.js
│ │ │ └── wordwrap.js.map
│ │ ├── url
│ │ │ ├── base64_decode.js
│ │ │ ├── base64_decode.js.map
│ │ │ ├── base64_encode.js
│ │ │ ├── base64_encode.js.map
│ │ │ ├── http_build_query.js
│ │ │ ├── http_build_query.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── parse_url.js
│ │ │ ├── parse_url.js.map
│ │ │ ├── rawurldecode.js
│ │ │ ├── rawurldecode.js.map
│ │ │ ├── rawurlencode.js
│ │ │ ├── rawurlencode.js.map
│ │ │ ├── urldecode.js
│ │ │ ├── urldecode.js.map
│ │ │ ├── urlencode.js
│ │ │ └── urlencode.js.map
│ │ ├── var
│ │ │ ├── boolval.js
│ │ │ ├── boolval.js.map
│ │ │ ├── doubleval.js
│ │ │ ├── doubleval.js.map
│ │ │ ├── empty.js
│ │ │ ├── empty.js.map
│ │ │ ├── floatval.js
│ │ │ ├── floatval.js.map
│ │ │ ├── gettype.js
│ │ │ ├── gettype.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── intval.js
│ │ │ ├── intval.js.map
│ │ │ ├── is_array.js
│ │ │ ├── is_array.js.map
│ │ │ ├── is_binary.js
│ │ │ ├── is_binary.js.map
│ │ │ ├── is_bool.js
│ │ │ ├── is_bool.js.map
│ │ │ ├── is_buffer.js
│ │ │ ├── is_buffer.js.map
│ │ │ ├── is_callable.js
│ │ │ ├── is_callable.js.map
│ │ │ ├── is_double.js
│ │ │ ├── is_double.js.map
│ │ │ ├── is_float.js
│ │ │ ├── is_float.js.map
│ │ │ ├── is_int.js
│ │ │ ├── is_int.js.map
│ │ │ ├── is_integer.js
│ │ │ ├── is_integer.js.map
│ │ │ ├── is_long.js
│ │ │ ├── is_long.js.map
│ │ │ ├── is_null.js
│ │ │ ├── is_null.js.map
│ │ │ ├── is_numeric.js
│ │ │ ├── is_numeric.js.map
│ │ │ ├── is_object.js
│ │ │ ├── is_object.js.map
│ │ │ ├── is_real.js
│ │ │ ├── is_real.js.map
│ │ │ ├── is_scalar.js
│ │ │ ├── is_scalar.js.map
│ │ │ ├── is_string.js
│ │ │ ├── is_string.js.map
│ │ │ ├── is_unicode.js
│ │ │ ├── is_unicode.js.map
│ │ │ ├── isset.js
│ │ │ ├── isset.js.map
│ │ │ ├── print_r.js
│ │ │ ├── print_r.js.map
│ │ │ ├── serialize.js
│ │ │ ├── serialize.js.map
│ │ │ ├── strval.js
│ │ │ ├── strval.js.map
│ │ │ ├── unserialize.js
│ │ │ ├── unserialize.js.map
│ │ │ ├── var_dump.js
│ │ │ ├── var_dump.js.map
│ │ │ ├── var_export.js
│ │ │ └── var_export.js.map
│ │ ├── xdiff
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── xdiff_string_diff.js
│ │ │ ├── xdiff_string_diff.js.map
│ │ │ ├── xdiff_string_patch.js
│ │ │ └── xdiff_string_patch.js.map
│ │ └── xml
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── utf8_decode.js
│ │ │ ├── utf8_decode.js.map
│ │ │ ├── utf8_encode.js
│ │ │ └── utf8_encode.js.map
│ ├── python
│ │ ├── index.js
│ │ ├── index.js.map
│ │ └── string
│ │ │ ├── ascii_letters.js
│ │ │ ├── ascii_letters.js.map
│ │ │ ├── ascii_lowercase.js
│ │ │ ├── ascii_lowercase.js.map
│ │ │ ├── ascii_uppercase.js
│ │ │ ├── ascii_uppercase.js.map
│ │ │ ├── capwords.js
│ │ │ ├── capwords.js.map
│ │ │ ├── index.js
│ │ │ ├── index.js.map
│ │ │ ├── punctuation.js
│ │ │ └── punctuation.js.map
│ └── ruby
│ │ ├── Math
│ │ ├── acos.js
│ │ ├── acos.js.map
│ │ ├── index.js
│ │ └── index.js.map
│ │ ├── index.js
│ │ └── index.js.map
├── prompt-sync
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test.js
├── strip-ansi
│ ├── index.d.ts
│ ├── index.js
│ ├── license
│ ├── package.json
│ └── readme.md
└── tynt
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── package-lock.json
├── package.json
└── src
├── GameCenter.js
├── Games
├── GuessTheNumber.js
├── PFC.js
└── PileOuFace.js
└── Managers
├── GlobalManager.js
├── GuessTheNumberManager.js
├── PFCManager.js
└── PileOuFaceManager.js
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Editor-based HTTP Client requests
5 | /httpRequests/
6 |
--------------------------------------------------------------------------------
/.idea/JS.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # GameCenter
2 |
3 | Bienvenue dans le GameCenter ! C'est un endroit qui regroupe plusieurs petit mode de jeu qui se joue sur votre terminal pour s'amuser et passer le temps, vous aurez la possibilité à l'entrée de choisir entre divers mode de jeu, vous serez contre un robot, à vous de jouer !
4 |
5 | # Installation
6 |
7 | - [Installer le GameCenter](https://github.com/AliasCode/GameCenter/archive/refs/heads/master.zip)
8 | - Extraire le fichier GameCenter
9 | - Aller à l'emplacement GameCenter.js via le terminal
10 | - Executer dans le terminal **node src/GameCenter**
11 |
12 | # Mode De Jeux :
13 |
14 | - Pierre Feuille Ciseau
15 | - GuessTheNumber
16 | - Pile Ou Face
17 |
--------------------------------------------------------------------------------
/node_modules/ansi-regex/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = options => {
4 | options = Object.assign({
5 | onlyFirst: false
6 | }, options);
7 |
8 | const pattern = [
9 | '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
10 | '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
11 | ].join('|');
12 |
13 | return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
14 | };
15 |
--------------------------------------------------------------------------------
/node_modules/ansi-regex/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ansi-regex",
3 | "version": "4.1.1",
4 | "description": "Regular expression for matching ANSI escape codes",
5 | "license": "MIT",
6 | "repository": "chalk/ansi-regex",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "sindresorhus.com"
11 | },
12 | "engines": {
13 | "node": ">=6"
14 | },
15 | "scripts": {
16 | "test": "xo && ava",
17 | "view-supported": "node fixtures/view-codes.js"
18 | },
19 | "files": [
20 | "index.js"
21 | ],
22 | "keywords": [
23 | "ansi",
24 | "styles",
25 | "color",
26 | "colour",
27 | "colors",
28 | "terminal",
29 | "console",
30 | "cli",
31 | "string",
32 | "tty",
33 | "escape",
34 | "formatting",
35 | "rgb",
36 | "256",
37 | "shell",
38 | "xterm",
39 | "command-line",
40 | "text",
41 | "regex",
42 | "regexp",
43 | "re",
44 | "match",
45 | "test",
46 | "find",
47 | "pattern"
48 | ],
49 | "devDependencies": {
50 | "ava": "^0.25.0",
51 | "xo": "^0.23.0"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/node_modules/chalk/source/vendor/supports-color/browser.d.ts:
--------------------------------------------------------------------------------
1 | export {default} from './index.js';
2 |
--------------------------------------------------------------------------------
/node_modules/chalk/source/vendor/supports-color/browser.js:
--------------------------------------------------------------------------------
1 | /* eslint-env browser */
2 |
3 | const level = (() => {
4 | if (navigator.userAgentData) {
5 | const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
6 | if (brand && brand.version > 93) {
7 | return 3;
8 | }
9 | }
10 |
11 | if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
12 | return 1;
13 | }
14 |
15 | return 0;
16 | })();
17 |
18 | const colorSupport = level !== 0 && {
19 | level,
20 | hasBasic: true,
21 | has256: level >= 2,
22 | has16m: level >= 3,
23 | };
24 |
25 | const supportsColor = {
26 | stdout: colorSupport,
27 | stderr: colorSupport,
28 | };
29 |
30 | export default supportsColor;
31 |
--------------------------------------------------------------------------------
/node_modules/locutus/_util/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | 'use strict';
3 |
4 | var Util = require('./util');
5 |
6 | var util = new Util(process.argv);
7 |
8 | util[process.argv[2]](function (err) {
9 | if (err) {
10 | throw new Error(err);
11 | }
12 | console.log('Done');
13 | });
14 | //# sourceMappingURL=cli.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/_util/cli.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../src/_util/cli.js"],"names":["Util","require","util","process","argv","err","Error","console","log"],"mappings":";;AAEA,IAAMA,OAAOC,QAAQ,QAAR,CAAb;;AAEA,IAAMC,OAAO,IAAIF,IAAJ,CAASG,QAAQC,IAAjB,CAAb;;AAEAF,KAAKC,QAAQC,IAAR,CAAa,CAAb,CAAL,EAAsB,UAAUC,GAAV,EAAe;AACnC,MAAIA,GAAJ,EAAS;AACP,UAAM,IAAIC,KAAJ,CAAUD,GAAV,CAAN;AACD;AACDE,UAAQC,GAAR,CAAY,MAAZ;AACD,CALD","file":"cli.js","sourcesContent":["\n\nconst Util = require('./util')\n\nconst util = new Util(process.argv)\n\nutil[process.argv[2]](function (err) {\n if (err) {\n throw new Error(err)\n }\n console.log('Done')\n})\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/c/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.math = require('./math');
4 | module.exports.stdio = require('./stdio');
5 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/c/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../src/c/index.js"],"names":["module","exports","math","require","stdio"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,IAAf,GAAsBC,QAAQ,QAAR,CAAtB;AACAH,OAAOC,OAAP,CAAeG,KAAf,GAAuBD,QAAQ,SAAR,CAAvB","file":"index.js","sourcesContent":["module.exports.math = require('./math')\nmodule.exports.stdio = require('./stdio')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/c/math/abs.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function abs(mixedNumber) {
4 | // discuss at: https://locutus.io/c/abs/
5 | // original by: Waldo Malqui Silva (https://waldo.malqui.info)
6 | // improved by: Karol Kowalski
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // improved by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
9 | // example 1: abs(4.2)
10 | // returns 1: 4.2
11 | // example 2: abs(-4.2)
12 | // returns 2: 4.2
13 | // example 3: abs(-5)
14 | // returns 3: 5
15 | // example 4: abs('_argos')
16 | // returns 4: 0
17 |
18 | return Math.abs(mixedNumber) || 0;
19 | };
20 | //# sourceMappingURL=abs.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/c/math/abs.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/c/math/abs.js"],"names":["module","exports","abs","mixedNumber","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,WAAd,EAA2B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,GAAL,CAASC,WAAT,KAAyB,CAAhC;AACD,CAhBD","file":"abs.js","sourcesContent":["module.exports = function abs (mixedNumber) {\n // discuss at: https://locutus.io/c/abs/\n // original by: Waldo Malqui Silva (https://waldo.malqui.info)\n // improved by: Karol Kowalski\n // improved by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)\n // example 1: abs(4.2)\n // returns 1: 4.2\n // example 2: abs(-4.2)\n // returns 2: 4.2\n // example 3: abs(-5)\n // returns 3: 5\n // example 4: abs('_argos')\n // returns 4: 0\n\n return Math.abs(mixedNumber) || 0\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/c/math/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.abs = require('./abs');
4 | module.exports.frexp = require('./frexp');
5 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/c/math/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/c/math/index.js"],"names":["module","exports","abs","require","frexp"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,GAAf,GAAqBC,QAAQ,OAAR,CAArB;AACAH,OAAOC,OAAP,CAAeG,KAAf,GAAuBD,QAAQ,SAAR,CAAvB","file":"index.js","sourcesContent":["module.exports.abs = require('./abs')\nmodule.exports.frexp = require('./frexp')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/c/stdio/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.sprintf = require('./sprintf');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/c/stdio/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/c/stdio/index.js"],"names":["module","exports","sprintf","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,OAAf,GAAyBC,QAAQ,WAAR,CAAzB","file":"index.js","sourcesContent":["module.exports.sprintf = require('./sprintf')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/golang/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.strings = require('./strings');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/golang/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../src/golang/index.js"],"names":["module","exports","strings","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,OAAf,GAAyBC,QAAQ,WAAR,CAAzB","file":"index.js","sourcesContent":["module.exports.strings = require('./strings')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/Contains.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function Contains(s, substr) {
4 | // discuss at: https://locutus.io/golang/strings/Contains
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // example 1: Contains('Kevin', 'K')
7 | // returns 1: true
8 |
9 | return (s + '').indexOf(substr) !== -1;
10 | };
11 | //# sourceMappingURL=Contains.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/Contains.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/golang/strings/Contains.js"],"names":["module","exports","Contains","s","substr","indexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,QAAT,CAAmBC,CAAnB,EAAsBC,MAAtB,EAA8B;AAC7C;AACA;AACA;AACA;;AAEA,SAAO,CAACD,IAAI,EAAL,EAASE,OAAT,CAAiBD,MAAjB,MAA6B,CAAC,CAArC;AACD,CAPD","file":"Contains.js","sourcesContent":["module.exports = function Contains (s, substr) {\n // discuss at: https://locutus.io/golang/strings/Contains\n // original by: Kevin van Zonneveld (https://kvz.io)\n // example 1: Contains('Kevin', 'K')\n // returns 1: true\n\n return (s + '').indexOf(substr) !== -1\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/Count.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function Count(s, sep) {
4 | // discuss at: https://locutus.io/php/printf/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // input by: GopherJS (https://www.gopherjs.org/)
7 | // example 1: Count("cheese", "e")
8 | // returns 1: 3
9 | // example 2: Count("five", "") // before & after each rune
10 | // returns 2: 5
11 |
12 | var pos = void 0;
13 | var n = 0;
14 |
15 | if (sep.length === 0) {
16 | return s.split(sep).length + 1;
17 | } else if (sep.length > s.length) {
18 | return 0;
19 | } else if (sep.length === s.length) {
20 | if (sep === s) {
21 | return 1;
22 | }
23 | return 0;
24 | }
25 | while (true) {
26 | pos = (s + '').indexOf(sep);
27 | if (pos === -1) {
28 | break;
29 | }
30 | n = n + 1 >> 0;
31 | s = s.substring(pos + sep.length >> 0);
32 | }
33 | return n;
34 | };
35 | //# sourceMappingURL=Count.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/Index2.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function Index(s, sep) {
4 | // discuss at: https://locutus.io/golang/strings/Index
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // example 1: Index('Kevin', 'K')
7 | // returns 1: 0
8 | // example 2: Index('Kevin', 'Z')
9 | // returns 2: -1
10 |
11 | return (s + '').indexOf(sep);
12 | };
13 | //# sourceMappingURL=Index2.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/Index2.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/golang/strings/Index2.js"],"names":["module","exports","Index","s","sep","indexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,CAAhB,EAAmBC,GAAnB,EAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAO,CAACD,IAAI,EAAL,EAASE,OAAT,CAAiBD,GAAjB,CAAP;AACD,CATD","file":"Index2.js","sourcesContent":["module.exports = function Index (s, sep) {\n // discuss at: https://locutus.io/golang/strings/Index\n // original by: Kevin van Zonneveld (https://kvz.io)\n // example 1: Index('Kevin', 'K')\n // returns 1: 0\n // example 2: Index('Kevin', 'Z')\n // returns 2: -1\n\n return (s + '').indexOf(sep)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/LastIndex.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function LastIndex(s, sep) {
4 | // discuss at: https://locutus.io/golang/strings/LastIndex
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // input by: GopherJS (https://www.gopherjs.org/)
7 | // example 1: LastIndex('go gopher', 'go')
8 | // returns 1: 3
9 | // example 2: LastIndex('go gopher', 'rodent')
10 | // returns 2: -1
11 |
12 | return parseInt(s.lastIndexOf(sep), 10) >> 0;
13 | };
14 | //# sourceMappingURL=LastIndex.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/LastIndex.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/golang/strings/LastIndex.js"],"names":["module","exports","LastIndex","s","sep","parseInt","lastIndexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,CAApB,EAAuBC,GAAvB,EAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,SAASF,EAAEG,WAAF,CAAcF,GAAd,CAAT,EAA6B,EAA7B,KAAoC,CAA3C;AACD,CAVD","file":"LastIndex.js","sourcesContent":["module.exports = function LastIndex (s, sep) {\n // discuss at: https://locutus.io/golang/strings/LastIndex\n // original by: Kevin van Zonneveld (https://kvz.io)\n // input by: GopherJS (https://www.gopherjs.org/)\n // example 1: LastIndex('go gopher', 'go')\n // returns 1: 3\n // example 2: LastIndex('go gopher', 'rodent')\n // returns 2: -1\n\n return parseInt(s.lastIndexOf(sep), 10) >> 0\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.Contains = require('./Contains');
4 | module.exports.Count = require('./Count');
5 | module.exports.Index = require('./Index2');
6 | module.exports.LastIndex = require('./LastIndex');
7 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/golang/strings/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/golang/strings/index.js"],"names":["module","exports","Contains","require","Count","Index","LastIndex"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,QAAf,GAA0BC,QAAQ,YAAR,CAA1B;AACAH,OAAOC,OAAP,CAAeG,KAAf,GAAuBD,QAAQ,SAAR,CAAvB;AACAH,OAAOC,OAAP,CAAeI,KAAf,GAAuBF,QAAQ,UAAR,CAAvB;AACAH,OAAOC,OAAP,CAAeK,SAAf,GAA2BH,QAAQ,aAAR,CAA3B","file":"index.js","sourcesContent":["module.exports.Contains = require('./Contains')\nmodule.exports.Count = require('./Count')\nmodule.exports.Index = require('./Index2')\nmodule.exports.LastIndex = require('./LastIndex')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.c = require('./c');
4 | module.exports.golang = require('./golang');
5 | module.exports.php = require('./php');
6 | module.exports.python = require('./python');
7 | module.exports.ruby = require('./ruby');
8 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../src/index.js"],"names":["module","exports","c","require","golang","php","python","ruby"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,CAAf,GAAmBC,QAAQ,KAAR,CAAnB;AACAH,OAAOC,OAAP,CAAeG,MAAf,GAAwBD,QAAQ,UAAR,CAAxB;AACAH,OAAOC,OAAP,CAAeI,GAAf,GAAqBF,QAAQ,OAAR,CAArB;AACAH,OAAOC,OAAP,CAAeK,MAAf,GAAwBH,QAAQ,UAAR,CAAxB;AACAH,OAAOC,OAAP,CAAeM,IAAf,GAAsBJ,QAAQ,QAAR,CAAtB","file":"index.js","sourcesContent":["module.exports.c = require('./c')\nmodule.exports.golang = require('./golang')\nmodule.exports.php = require('./php')\nmodule.exports.python = require('./python')\nmodule.exports.ruby = require('./ruby')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/_helpers/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports._bc = require('./_bc');
4 | module.exports._phpCastString = require('./_phpCastString');
5 | module.exports._php_cast_float = require('./_php_cast_float');
6 | module.exports._php_cast_int = require('./_php_cast_int');
7 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/_helpers/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/_helpers/index.js"],"names":["module","exports","_bc","require","_phpCastString","_php_cast_float","_php_cast_int"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,GAAf,GAAqBC,QAAQ,OAAR,CAArB;AACAH,OAAOC,OAAP,CAAeG,cAAf,GAAgCD,QAAQ,kBAAR,CAAhC;AACAH,OAAOC,OAAP,CAAeI,eAAf,GAAiCF,QAAQ,mBAAR,CAAjC;AACAH,OAAOC,OAAP,CAAeK,aAAf,GAA+BH,QAAQ,iBAAR,CAA/B","file":"index.js","sourcesContent":["module.exports._bc = require('./_bc')\nmodule.exports._phpCastString = require('./_phpCastString')\nmodule.exports._php_cast_float = require('./_php_cast_float')\nmodule.exports._php_cast_int = require('./_php_cast_int')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/_locutus_shared/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports['_bc'] = require('./_bc');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/_locutus_shared/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/_locutus_shared/index.js"],"names":[],"mappings":";;AAAA,OAAO,OAAP,CAAe,oBAAf,IAAuC,QAAQ,sBAAR,CAAvC","file":"index.js","sourcesContent":["module.exports['_locutus_shared_bc'] = require('./_locutus_shared_bc')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_fill.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function array_fill(startIndex, num, mixedVal) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_fill/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Waldo Malqui Silva (https://waldo.malqui.info)
8 | // example 1: array_fill(5, 6, 'banana')
9 | // returns 1: { 5: 'banana', 6: 'banana', 7: 'banana', 8: 'banana', 9: 'banana', 10: 'banana' }
10 |
11 | var key = void 0;
12 | var tmpArr = {};
13 |
14 | if (!isNaN(startIndex) && !isNaN(num)) {
15 | for (key = 0; key < num; key++) {
16 | tmpArr[key + startIndex] = mixedVal;
17 | }
18 | }
19 |
20 | return tmpArr;
21 | };
22 | //# sourceMappingURL=array_fill.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_fill_keys.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function array_fill_keys(keys, value) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_fill_keys/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: var $keys = {'a': 'foo', 2: 5, 3: 10, 4: 'bar'}
9 | // example 1: array_fill_keys($keys, 'banana')
10 | // returns 1: {"foo": "banana", 5: "banana", 10: "banana", "bar": "banana"}
11 |
12 | var retObj = {};
13 | var key = '';
14 |
15 | for (key in keys) {
16 | retObj[keys[key]] = value;
17 | }
18 |
19 | return retObj;
20 | };
21 | //# sourceMappingURL=array_fill_keys.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_fill_keys.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/array_fill_keys.js"],"names":["module","exports","array_fill_keys","keys","value","retObj","key"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,eAAT,CAA0BC,IAA1B,EAAgCC,KAAhC,EAAuC;AAAE;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,SAAS,EAAf;AACA,MAAIC,MAAM,EAAV;;AAEA,OAAKA,GAAL,IAAYH,IAAZ,EAAkB;AAChBE,WAAOF,KAAKG,GAAL,CAAP,IAAoBF,KAApB;AACD;;AAED,SAAOC,MAAP;AACD,CAhBD","file":"array_fill_keys.js","sourcesContent":["module.exports = function array_fill_keys (keys, value) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/array_fill_keys/\n // original by: Brett Zamir (https://brett-zamir.me)\n // bugfixed by: Brett Zamir (https://brett-zamir.me)\n // example 1: var $keys = {'a': 'foo', 2: 5, 3: 10, 4: 'bar'}\n // example 1: array_fill_keys($keys, 'banana')\n // returns 1: {\"foo\": \"banana\", 5: \"banana\", 10: \"banana\", \"bar\": \"banana\"}\n\n const retObj = {}\n let key = ''\n\n for (key in keys) {\n retObj[keys[key]] = value\n }\n\n return retObj\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_flip.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function array_flip(trans) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_flip/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Pier Paolo Ramon (https://www.mastersoup.com/)
8 | // improved by: Brett Zamir (https://brett-zamir.me)
9 | // example 1: array_flip( {a: 1, b: 1, c: 2} )
10 | // returns 1: {1: 'b', 2: 'c'}
11 |
12 | var key = void 0;
13 | var tmpArr = {};
14 |
15 | for (key in trans) {
16 | if (!trans.hasOwnProperty(key)) {
17 | continue;
18 | }
19 | tmpArr[trans[key]] = key;
20 | }
21 |
22 | return tmpArr;
23 | };
24 | //# sourceMappingURL=array_flip.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_key_exists.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function array_key_exists(key, search) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_key_exists/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Felix Geisendoerfer (https://www.debuggable.com/felix)
8 | // example 1: array_key_exists('kevin', {'kevin': 'van Zonneveld'})
9 | // returns 1: true
10 |
11 | if (!search || search.constructor !== Array && search.constructor !== Object) {
12 | return false;
13 | }
14 |
15 | return key in search;
16 | };
17 | //# sourceMappingURL=array_key_exists.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_key_exists.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/array_key_exists.js"],"names":["module","exports","array_key_exists","key","search","constructor","Array","Object"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,gBAAT,CAA2BC,GAA3B,EAAgCC,MAAhC,EAAwC;AAAE;AACzD;AACA;AACA;AACA;AACA;;AAEA,MAAI,CAACA,MAAD,IAAYA,OAAOC,WAAP,KAAuBC,KAAvB,IAAgCF,OAAOC,WAAP,KAAuBE,MAAvE,EAAgF;AAC9E,WAAO,KAAP;AACD;;AAED,SAAOJ,OAAOC,MAAd;AACD,CAZD","file":"array_key_exists.js","sourcesContent":["module.exports = function array_key_exists (key, search) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/array_key_exists/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Felix Geisendoerfer (https://www.debuggable.com/felix)\n // example 1: array_key_exists('kevin', {'kevin': 'van Zonneveld'})\n // returns 1: true\n\n if (!search || (search.constructor !== Array && search.constructor !== Object)) {\n return false\n }\n\n return key in search\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_product.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function array_product(input) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_product/
6 | // original by: Waldo Malqui Silva (https://waldo.malqui.info)
7 | // example 1: array_product([ 2, 4, 6, 8 ])
8 | // returns 1: 384
9 |
10 | var idx = 0;
11 | var product = 1;
12 | var il = 0;
13 |
14 | if (Object.prototype.toString.call(input) !== '[object Array]') {
15 | return null;
16 | }
17 |
18 | il = input.length;
19 | while (idx < il) {
20 | product *= !isNaN(input[idx]) ? input[idx] : 0;
21 | idx++;
22 | }
23 |
24 | return product;
25 | };
26 | //# sourceMappingURL=array_product.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_reduce.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function array_reduce(aInput, callback) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_reduce/
6 | // original by: Alfonso Jimenez (https://www.alfonsojimenez.com)
7 | // note 1: Takes a function as an argument, not a function's name
8 | // example 1: array_reduce([1, 2, 3, 4, 5], function (v, w){v += w;return v;})
9 | // returns 1: 15
10 |
11 | var lon = aInput.length;
12 | var res = 0;
13 | var i = 0;
14 | var tmp = [];
15 |
16 | for (i = 0; i < lon; i += 2) {
17 | tmp[0] = aInput[i];
18 | if (aInput[i + 1]) {
19 | tmp[1] = aInput[i + 1];
20 | } else {
21 | tmp[1] = 0;
22 | }
23 | res += callback.apply(null, tmp);
24 | tmp = [];
25 | }
26 |
27 | return res;
28 | };
29 | //# sourceMappingURL=array_reduce.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_shift.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function array_shift(inputArr) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_shift/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Martijn Wieringa
8 | // note 1: Currently does not handle objects
9 | // example 1: array_shift(['Kevin', 'van', 'Zonneveld'])
10 | // returns 1: 'Kevin'
11 |
12 | if (inputArr.length === 0) {
13 | return null;
14 | }
15 | if (inputArr.length > 0) {
16 | return inputArr.shift();
17 | }
18 | };
19 | //# sourceMappingURL=array_shift.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_shift.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/array_shift.js"],"names":["module","exports","array_shift","inputArr","length","shift"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,WAAT,CAAsBC,QAAtB,EAAgC;AAAE;AACjD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIA,SAASC,MAAT,KAAoB,CAAxB,EAA2B;AACzB,WAAO,IAAP;AACD;AACD,MAAID,SAASC,MAAT,GAAkB,CAAtB,EAAyB;AACvB,WAAOD,SAASE,KAAT,EAAP;AACD;AACF,CAdD","file":"array_shift.js","sourcesContent":["module.exports = function array_shift (inputArr) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/array_shift/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Martijn Wieringa\n // note 1: Currently does not handle objects\n // example 1: array_shift(['Kevin', 'van', 'Zonneveld'])\n // returns 1: 'Kevin'\n\n if (inputArr.length === 0) {\n return null\n }\n if (inputArr.length > 0) {\n return inputArr.shift()\n }\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_unshift.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function array_unshift(array) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_unshift/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Martijn Wieringa
8 | // improved by: jmweb
9 | // note 1: Currently does not handle objects
10 | // example 1: array_unshift(['van', 'Zonneveld'], 'Kevin')
11 | // returns 1: 3
12 |
13 | var i = arguments.length;
14 |
15 | while (--i !== 0) {
16 | arguments[0].unshift(arguments[i]);
17 | }
18 |
19 | return arguments[0].length;
20 | };
21 | //# sourceMappingURL=array_unshift.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_unshift.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/array_unshift.js"],"names":["module","exports","array_unshift","array","i","arguments","length","unshift"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,aAAT,CAAwBC,KAAxB,EAA+B;AAAE;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,IAAIC,UAAUC,MAAlB;;AAEA,SAAO,EAAEF,CAAF,KAAQ,CAAf,EAAkB;AAChBC,cAAU,CAAV,EAAaE,OAAb,CAAqBF,UAAUD,CAAV,CAArB;AACD;;AAED,SAAOC,UAAU,CAAV,EAAaC,MAApB;AACD,CAhBD","file":"array_unshift.js","sourcesContent":["module.exports = function array_unshift (array) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/array_unshift/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Martijn Wieringa\n // improved by: jmweb\n // note 1: Currently does not handle objects\n // example 1: array_unshift(['van', 'Zonneveld'], 'Kevin')\n // returns 1: 3\n\n let i = arguments.length\n\n while (--i !== 0) {\n arguments[0].unshift(arguments[i])\n }\n\n return arguments[0].length\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_values.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function array_values(input) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/array_values/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: array_values( {firstname: 'Kevin', surname: 'van Zonneveld'} )
9 | // returns 1: [ 'Kevin', 'van Zonneveld' ]
10 |
11 | var tmpArr = [];
12 | var key = '';
13 |
14 | for (key in input) {
15 | tmpArr[tmpArr.length] = input[key];
16 | }
17 |
18 | return tmpArr;
19 | };
20 | //# sourceMappingURL=array_values.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/array_values.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/array_values.js"],"names":["module","exports","array_values","input","tmpArr","key","length"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,KAAvB,EAA8B;AAAE;AAC/C;AACA;AACA;AACA;AACA;;AAEA,MAAMC,SAAS,EAAf;AACA,MAAIC,MAAM,EAAV;;AAEA,OAAKA,GAAL,IAAYF,KAAZ,EAAmB;AACjBC,WAAOA,OAAOE,MAAd,IAAwBH,MAAME,GAAN,CAAxB;AACD;;AAED,SAAOD,MAAP;AACD,CAfD","file":"array_values.js","sourcesContent":["module.exports = function array_values (input) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/array_values/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Brett Zamir (https://brett-zamir.me)\n // example 1: array_values( {firstname: 'Kevin', surname: 'van Zonneveld'} )\n // returns 1: [ 'Kevin', 'van Zonneveld' ]\n\n const tmpArr = []\n let key = ''\n\n for (key in input) {\n tmpArr[tmpArr.length] = input[key]\n }\n\n return tmpArr\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/pos.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function pos(arr) {
4 | // discuss at: https://locutus.io/php/pos/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // note 1: Uses global: locutus to store the array pointer
7 | // example 1: var $transport = ['foot', 'bike', 'car', 'plane']
8 | // example 1: pos($transport)
9 | // returns 1: 'foot'
10 |
11 | var current = require('../array/current');
12 | return current(arr);
13 | };
14 | //# sourceMappingURL=pos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/pos.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/pos.js"],"names":["module","exports","pos","arr","current","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,GAAd,EAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,UAAUC,QAAQ,kBAAR,CAAhB;AACA,SAAOD,QAAQD,GAAR,CAAP;AACD,CAVD","file":"pos.js","sourcesContent":["module.exports = function pos (arr) {\n // discuss at: https://locutus.io/php/pos/\n // original by: Brett Zamir (https://brett-zamir.me)\n // note 1: Uses global: locutus to store the array pointer\n // example 1: var $transport = ['foot', 'bike', 'car', 'plane']\n // example 1: pos($transport)\n // returns 1: 'foot'\n\n const current = require('../array/current')\n return current(arr)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/sizeof.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function sizeof(mixedVar, mode) {
4 | // discuss at: https://locutus.io/php/sizeof/
5 | // original by: Philip Peterson
6 | // example 1: sizeof([[0,0],[0,-4]], 'COUNT_RECURSIVE')
7 | // returns 1: 6
8 | // example 2: sizeof({'one' : [1,2,3,4,5]}, 'COUNT_RECURSIVE')
9 | // returns 2: 6
10 |
11 | var count = require('../array/count');
12 |
13 | return count(mixedVar, mode);
14 | };
15 | //# sourceMappingURL=sizeof.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/array/sizeof.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/array/sizeof.js"],"names":["module","exports","sizeof","mixedVar","mode","count","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2BC,IAA3B,EAAiC;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,QAAQC,QAAQ,gBAAR,CAAd;;AAEA,SAAOD,MAAMF,QAAN,EAAgBC,IAAhB,CAAP;AACD,CAXD","file":"sizeof.js","sourcesContent":["module.exports = function sizeof (mixedVar, mode) {\n // discuss at: https://locutus.io/php/sizeof/\n // original by: Philip Peterson\n // example 1: sizeof([[0,0],[0,-4]], 'COUNT_RECURSIVE')\n // returns 1: 6\n // example 2: sizeof({'one' : [1,2,3,4,5]}, 'COUNT_RECURSIVE')\n // returns 2: 6\n\n const count = require('../array/count')\n\n return count(mixedVar, mode)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/bc/bcscale.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function bcscale(scale) {
4 | // discuss at: https://locutus.io/php/bcscale/
5 | // original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)
6 | // example 1: bcscale(1)
7 | // returns 1: true
8 |
9 | var _bc = require('../_helpers/_bc');
10 | var libbcmath = _bc();
11 |
12 | scale = parseInt(scale, 10);
13 | if (isNaN(scale)) {
14 | return false;
15 | }
16 | if (scale < 0) {
17 | return false;
18 | }
19 | libbcmath.scale = scale;
20 |
21 | return true;
22 | };
23 | //# sourceMappingURL=bcscale.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/bc/bcscale.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/bc/bcscale.js"],"names":["module","exports","bcscale","scale","_bc","require","libbcmath","parseInt","isNaN"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,KAAlB,EAAyB;AACxC;AACA;AACA;AACA;;AAEA,MAAMC,MAAMC,QAAQ,iBAAR,CAAZ;AACA,MAAMC,YAAYF,KAAlB;;AAEAD,UAAQI,SAASJ,KAAT,EAAgB,EAAhB,CAAR;AACA,MAAIK,MAAML,KAAN,CAAJ,EAAkB;AAChB,WAAO,KAAP;AACD;AACD,MAAIA,QAAQ,CAAZ,EAAe;AACb,WAAO,KAAP;AACD;AACDG,YAAUH,KAAV,GAAkBA,KAAlB;;AAEA,SAAO,IAAP;AACD,CAnBD","file":"bcscale.js","sourcesContent":["module.exports = function bcscale (scale) {\n // discuss at: https://locutus.io/php/bcscale/\n // original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)\n // example 1: bcscale(1)\n // returns 1: true\n\n const _bc = require('../_helpers/_bc')\n const libbcmath = _bc()\n\n scale = parseInt(scale, 10)\n if (isNaN(scale)) {\n return false\n }\n if (scale < 0) {\n return false\n }\n libbcmath.scale = scale\n\n return true\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/bc/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.bcadd = require('./bcadd');
4 | module.exports.bccomp = require('./bccomp');
5 | module.exports.bcdiv = require('./bcdiv');
6 | module.exports.bcmul = require('./bcmul');
7 | module.exports.bcround = require('./bcround');
8 | module.exports.bcscale = require('./bcscale');
9 | module.exports.bcsub = require('./bcsub');
10 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/bc/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/bc/index.js"],"names":["module","exports","bcadd","require","bccomp","bcdiv","bcmul","bcround","bcscale","bcsub"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,KAAf,GAAuBC,QAAQ,SAAR,CAAvB;AACAH,OAAOC,OAAP,CAAeG,MAAf,GAAwBD,QAAQ,UAAR,CAAxB;AACAH,OAAOC,OAAP,CAAeI,KAAf,GAAuBF,QAAQ,SAAR,CAAvB;AACAH,OAAOC,OAAP,CAAeK,KAAf,GAAuBH,QAAQ,SAAR,CAAvB;AACAH,OAAOC,OAAP,CAAeM,OAAf,GAAyBJ,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeO,OAAf,GAAyBL,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeQ,KAAf,GAAuBN,QAAQ,SAAR,CAAvB","file":"index.js","sourcesContent":["module.exports.bcadd = require('./bcadd')\nmodule.exports.bccomp = require('./bccomp')\nmodule.exports.bcdiv = require('./bcdiv')\nmodule.exports.bcmul = require('./bcmul')\nmodule.exports.bcround = require('./bcround')\nmodule.exports.bcscale = require('./bcscale')\nmodule.exports.bcsub = require('./bcsub')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_alnum.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_alnum(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_alnum/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_alnum('AbC12')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 |
15 | // ensure setup of localization variables takes place
16 | setlocale('LC_ALL', 0);
17 |
18 | var $global = typeof window !== 'undefined' ? window : global;
19 | $global.$locutus = $global.$locutus || {};
20 | var $locutus = $global.$locutus;
21 | var p = $locutus.php;
22 |
23 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.an) !== -1;
24 | };
25 | //# sourceMappingURL=ctype_alnum.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_alpha.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_alpha(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_alpha/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_alpha('Az')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 | // ensure setup of localization variables takes place
15 | setlocale('LC_ALL', 0);
16 |
17 | var $global = typeof window !== 'undefined' ? window : global;
18 | $global.$locutus = $global.$locutus || {};
19 | var $locutus = $global.$locutus;
20 | var p = $locutus.php;
21 |
22 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.al) !== -1;
23 | };
24 | //# sourceMappingURL=ctype_alpha.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_cntrl.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_cntrl(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_cntrl/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_cntrl('\u0020')
8 | // returns 1: false
9 | // example 2: ctype_cntrl('\u001F')
10 | // returns 2: true
11 |
12 | var setlocale = require('../strings/setlocale');
13 | if (typeof text !== 'string') {
14 | return false;
15 | }
16 | // ensure setup of localization variables takes place
17 | setlocale('LC_ALL', 0);
18 |
19 | var $global = typeof window !== 'undefined' ? window : global;
20 | $global.$locutus = $global.$locutus || {};
21 | var $locutus = $global.$locutus;
22 | var p = $locutus.php;
23 |
24 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.ct) !== -1;
25 | };
26 | //# sourceMappingURL=ctype_cntrl.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_digit.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_digit(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_digit/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_digit('150')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 | // ensure setup of localization variables takes place
15 | setlocale('LC_ALL', 0);
16 |
17 | var $global = typeof window !== 'undefined' ? window : global;
18 | $global.$locutus = $global.$locutus || {};
19 | var $locutus = $global.$locutus;
20 | var p = $locutus.php;
21 |
22 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.dg) !== -1;
23 | };
24 | //# sourceMappingURL=ctype_digit.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_graph.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_graph(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_graph/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_graph('!%')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 |
12 | if (typeof text !== 'string') {
13 | return false;
14 | }
15 |
16 | // ensure setup of localization variables takes place
17 | setlocale('LC_ALL', 0);
18 |
19 | var $global = typeof window !== 'undefined' ? window : global;
20 | $global.$locutus = $global.$locutus || {};
21 | var $locutus = $global.$locutus;
22 | var p = $locutus.php;
23 |
24 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.gr) !== -1;
25 | };
26 | //# sourceMappingURL=ctype_graph.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_lower.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_lower(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_lower/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_lower('abc')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 |
15 | // ensure setup of localization variables takes place
16 | setlocale('LC_ALL', 0);
17 |
18 | var $global = typeof window !== 'undefined' ? window : global;
19 | $global.$locutus = $global.$locutus || {};
20 | var $locutus = $global.$locutus;
21 | var p = $locutus.php;
22 |
23 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.lw) !== -1;
24 | };
25 | //# sourceMappingURL=ctype_lower.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_print.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_print(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_print/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_print('AbC!#12')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 | // ensure setup of localization variables takes place
15 | setlocale('LC_ALL', 0);
16 |
17 | var $global = typeof window !== 'undefined' ? window : global;
18 | $global.$locutus = $global.$locutus || {};
19 | var $locutus = $global.$locutus;
20 | var p = $locutus.php;
21 |
22 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.pr) !== -1;
23 | };
24 | //# sourceMappingURL=ctype_print.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_punct.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_punct(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_punct/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_punct('!?')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 | // ensure setup of localization variables takes place
15 | setlocale('LC_ALL', 0);
16 |
17 | var $global = typeof window !== 'undefined' ? window : global;
18 | $global.$locutus = $global.$locutus || {};
19 | var $locutus = $global.$locutus;
20 | var p = $locutus.php;
21 |
22 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.pu) !== -1;
23 | };
24 | //# sourceMappingURL=ctype_punct.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_space.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_space(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_space/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_space('\t\n')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 | if (typeof text !== 'string') {
12 | return false;
13 | }
14 | // ensure setup of localization variables takes place
15 | setlocale('LC_ALL', 0);
16 |
17 | var $global = typeof window !== 'undefined' ? window : global;
18 | $global.$locutus = $global.$locutus || {};
19 | var $locutus = $global.$locutus;
20 | var p = $locutus.php;
21 |
22 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.sp) !== -1;
23 | };
24 | //# sourceMappingURL=ctype_space.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_upper.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_upper(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_upper/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_upper('AZ')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 |
12 | if (typeof text !== 'string') {
13 | return false;
14 | }
15 | // ensure setup of localization variables takes place
16 | setlocale('LC_ALL', 0);
17 |
18 | var $global = typeof window !== 'undefined' ? window : global;
19 | $global.$locutus = $global.$locutus || {};
20 | var $locutus = $global.$locutus;
21 | var p = $locutus.php;
22 |
23 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.up) !== -1;
24 | };
25 | //# sourceMappingURL=ctype_upper.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/ctype_xdigit.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ctype_xdigit(text) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ctype_xdigit/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: ctype_xdigit('01dF')
8 | // returns 1: true
9 |
10 | var setlocale = require('../strings/setlocale');
11 |
12 | if (typeof text !== 'string') {
13 | return false;
14 | }
15 | // ensure setup of localization variables takes place
16 | setlocale('LC_ALL', 0);
17 |
18 | var $global = typeof window !== 'undefined' ? window : global;
19 | $global.$locutus = $global.$locutus || {};
20 | var $locutus = $global.$locutus;
21 | var p = $locutus.php;
22 |
23 | return text.search(p.locales[p.localeCategories.LC_CTYPE].LC_CTYPE.xd) !== -1;
24 | };
25 | //# sourceMappingURL=ctype_xdigit.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/ctype/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.ctype_alnum = require('./ctype_alnum');
4 | module.exports.ctype_alpha = require('./ctype_alpha');
5 | module.exports.ctype_cntrl = require('./ctype_cntrl');
6 | module.exports.ctype_digit = require('./ctype_digit');
7 | module.exports.ctype_graph = require('./ctype_graph');
8 | module.exports.ctype_lower = require('./ctype_lower');
9 | module.exports.ctype_print = require('./ctype_print');
10 | module.exports.ctype_punct = require('./ctype_punct');
11 | module.exports.ctype_space = require('./ctype_space');
12 | module.exports.ctype_upper = require('./ctype_upper');
13 | module.exports.ctype_xdigit = require('./ctype_xdigit');
14 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/datetime/checkdate.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function checkdate(m, d, y) {
4 | // discuss at: https://locutus.io/php/checkdate/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: Pyerre
7 | // improved by: Theriault (https://github.com/Theriault)
8 | // example 1: checkdate(12, 31, 2000)
9 | // returns 1: true
10 | // example 2: checkdate(2, 29, 2001)
11 | // returns 2: false
12 | // example 3: checkdate(3, 31, 2008)
13 | // returns 3: true
14 | // example 4: checkdate(1, 390, 2000)
15 | // returns 4: false
16 |
17 | return m > 0 && m < 13 && y > 0 && y < 32768 && d > 0 && d <= new Date(y, m, 0).getDate();
18 | };
19 | //# sourceMappingURL=checkdate.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/datetime/gmdate.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function gmdate(format, timestamp) {
4 | // discuss at: https://locutus.io/php/gmdate/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // input by: Alex
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: gmdate('H:m:s \\m \\i\\s \\m\\o\\n\\t\\h', 1062402400); // Return will depend on your timezone
9 | // returns 1: '07:09:40 m is month'
10 |
11 | var date = require('../datetime/date');
12 |
13 | var dt = typeof timestamp === 'undefined' ? new Date() // Not provided
14 | : timestamp instanceof Date ? new Date(timestamp) // Javascript Date()
15 | : new Date(timestamp * 1000); // UNIX timestamp (auto-convert to int)
16 |
17 | timestamp = Date.parse(dt.toUTCString().slice(0, -4)) / 1000;
18 |
19 | return date(format, timestamp);
20 | };
21 | //# sourceMappingURL=gmdate.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/datetime/gmstrftime.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function gmstrftime(format, timestamp) {
4 | // discuss at: https://locutus.io/php/gmstrftime/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // input by: Alex
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: gmstrftime("%A", 1062462400)
9 | // returns 1: 'Tuesday'
10 |
11 | var strftime = require('../datetime/strftime');
12 |
13 | var _date = typeof timestamp === 'undefined' ? new Date() : timestamp instanceof Date ? new Date(timestamp) : new Date(timestamp * 1000);
14 |
15 | timestamp = Date.parse(_date.toUTCString().slice(0, -4)) / 1000;
16 |
17 | return strftime(format, timestamp);
18 | };
19 | //# sourceMappingURL=gmstrftime.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/datetime/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.checkdate = require('./checkdate');
4 | module.exports.date = require('./date');
5 | module.exports.date_parse = require('./date_parse');
6 | module.exports.getdate = require('./getdate');
7 | module.exports.gettimeofday = require('./gettimeofday');
8 | module.exports.gmdate = require('./gmdate');
9 | module.exports.gmmktime = require('./gmmktime');
10 | module.exports.gmstrftime = require('./gmstrftime');
11 | module.exports.idate = require('./idate');
12 | module.exports.microtime = require('./microtime');
13 | module.exports.mktime = require('./mktime');
14 | module.exports.strftime = require('./strftime');
15 | module.exports.strptime = require('./strptime');
16 | module.exports.strtotime = require('./strtotime');
17 | module.exports.time = require('./time');
18 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/datetime/time.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function time() {
4 | // discuss at: https://locutus.io/php/time/
5 | // original by: GeekFG (https://geekfg.blogspot.com)
6 | // improved by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: metjay
8 | // improved by: HKM
9 | // example 1: var $timeStamp = time()
10 | // example 1: var $result = $timeStamp > 1000000000 && $timeStamp < 2000000000
11 | // returns 1: true
12 |
13 | return Math.floor(new Date().getTime() / 1000);
14 | };
15 | //# sourceMappingURL=time.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/datetime/time.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/datetime/time.js"],"names":["module","exports","time","Math","floor","Date","getTime"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,GAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKC,KAAL,CAAW,IAAIC,IAAJ,GAAWC,OAAX,KAAuB,IAAlC,CAAP;AACD,CAXD","file":"time.js","sourcesContent":["module.exports = function time () {\n // discuss at: https://locutus.io/php/time/\n // original by: GeekFG (https://geekfg.blogspot.com)\n // improved by: Kevin van Zonneveld (https://kvz.io)\n // improved by: metjay\n // improved by: HKM\n // example 1: var $timeStamp = time()\n // example 1: var $result = $timeStamp > 1000000000 && $timeStamp < 2000000000\n // returns 1: true\n\n return Math.floor(new Date().getTime() / 1000)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/exec/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.escapeshellarg = require('./escapeshellarg');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/exec/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/exec/index.js"],"names":["module","exports","escapeshellarg","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,cAAf,GAAgCC,QAAQ,kBAAR,CAAhC","file":"index.js","sourcesContent":["module.exports.escapeshellarg = require('./escapeshellarg')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/filesystem/dirname.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function dirname(path) {
4 | // discuss at: https://locutus.io/php/dirname/
5 | // original by: Ozh
6 | // improved by: XoraX (https://www.xorax.info)
7 | // example 1: dirname('/etc/passwd')
8 | // returns 1: '/etc'
9 | // example 2: dirname('c:/Temp/x')
10 | // returns 2: 'c:/Temp'
11 | // example 3: dirname('/dir/test/')
12 | // returns 3: '/dir'
13 |
14 | return path.replace(/\\/g, '/').replace(/\/[^/]*\/?$/, '');
15 | };
16 | //# sourceMappingURL=dirname.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/filesystem/dirname.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/filesystem/dirname.js"],"names":["module","exports","dirname","path","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,IAAlB,EAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOA,KAAKC,OAAL,CAAa,KAAb,EAAoB,GAApB,EACJA,OADI,CACI,aADJ,EACmB,EADnB,CAAP;AAED,CAbD","file":"dirname.js","sourcesContent":["module.exports = function dirname (path) {\n // discuss at: https://locutus.io/php/dirname/\n // original by: Ozh\n // improved by: XoraX (https://www.xorax.info)\n // example 1: dirname('/etc/passwd')\n // returns 1: '/etc'\n // example 2: dirname('c:/Temp/x')\n // returns 2: 'c:/Temp'\n // example 3: dirname('/dir/test/')\n // returns 3: '/dir'\n\n return path.replace(/\\\\/g, '/')\n .replace(/\\/[^/]*\\/?$/, '')\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/filesystem/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.basename = require('./basename');
4 | module.exports.dirname = require('./dirname');
5 | module.exports.file_get_contents = require('./file_get_contents');
6 | module.exports.pathinfo = require('./pathinfo');
7 | module.exports.realpath = require('./realpath');
8 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/filesystem/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/filesystem/index.js"],"names":["module","exports","basename","require","dirname","file_get_contents","pathinfo","realpath"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,QAAf,GAA0BC,QAAQ,YAAR,CAA1B;AACAH,OAAOC,OAAP,CAAeG,OAAf,GAAyBD,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeI,iBAAf,GAAmCF,QAAQ,qBAAR,CAAnC;AACAH,OAAOC,OAAP,CAAeK,QAAf,GAA0BH,QAAQ,YAAR,CAA1B;AACAH,OAAOC,OAAP,CAAeM,QAAf,GAA0BJ,QAAQ,YAAR,CAA1B","file":"index.js","sourcesContent":["module.exports.basename = require('./basename')\nmodule.exports.dirname = require('./dirname')\nmodule.exports.file_get_contents = require('./file_get_contents')\nmodule.exports.pathinfo = require('./pathinfo')\nmodule.exports.realpath = require('./realpath')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/funchand/create_function.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function create_function(args, code) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/create_function/
6 | // original by: Johnny Mast (https://www.phpvrouwen.nl)
7 | // reimplemented by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: var $f = create_function('a, b', 'return (a + b)')
9 | // example 1: $f(1, 2)
10 | // returns 1: 3
11 |
12 | try {
13 | return Function.apply(null, args.split(',').concat(code));
14 | } catch (e) {
15 | return false;
16 | }
17 | };
18 | //# sourceMappingURL=create_function.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/funchand/create_function.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/funchand/create_function.js"],"names":["module","exports","create_function","args","code","Function","apply","split","concat","e"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,eAAT,CAA0BC,IAA1B,EAAgCC,IAAhC,EAAsC;AAAE;AACvD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAI;AACF,WAAOC,SAASC,KAAT,CAAe,IAAf,EAAqBH,KAAKI,KAAL,CAAW,GAAX,EAAgBC,MAAhB,CAAuBJ,IAAvB,CAArB,CAAP;AACD,GAFD,CAEE,OAAOK,CAAP,EAAU;AACV,WAAO,KAAP;AACD;AACF,CAbD","file":"create_function.js","sourcesContent":["module.exports = function create_function (args, code) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/create_function/\n // original by: Johnny Mast (https://www.phpvrouwen.nl)\n // reimplemented by: Brett Zamir (https://brett-zamir.me)\n // example 1: var $f = create_function('a, b', 'return (a + b)')\n // example 1: $f(1, 2)\n // returns 1: 3\n\n try {\n return Function.apply(null, args.split(',').concat(code))\n } catch (e) {\n return false\n }\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/funchand/function_exists.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function function_exists(funcName) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/function_exists/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Steve Clay
8 | // improved by: Legaev Andrey
9 | // improved by: Brett Zamir (https://brett-zamir.me)
10 | // example 1: function_exists('isFinite')
11 | // returns 1: true
12 | // test: skip-1
13 |
14 | var $global = typeof window !== 'undefined' ? window : global;
15 |
16 | if (typeof funcName === 'string') {
17 | funcName = $global[funcName];
18 | }
19 |
20 | return typeof funcName === 'function';
21 | };
22 | //# sourceMappingURL=function_exists.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/funchand/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.call_user_func = require('./call_user_func');
4 | module.exports.call_user_func_array = require('./call_user_func_array');
5 | module.exports.create_function = require('./create_function');
6 | module.exports.function_exists = require('./function_exists');
7 | module.exports.get_defined_functions = require('./get_defined_functions');
8 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/funchand/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/funchand/index.js"],"names":["module","exports","call_user_func","require","call_user_func_array","create_function","function_exists","get_defined_functions"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,cAAf,GAAgCC,QAAQ,kBAAR,CAAhC;AACAH,OAAOC,OAAP,CAAeG,oBAAf,GAAsCD,QAAQ,wBAAR,CAAtC;AACAH,OAAOC,OAAP,CAAeI,eAAf,GAAiCF,QAAQ,mBAAR,CAAjC;AACAH,OAAOC,OAAP,CAAeK,eAAf,GAAiCH,QAAQ,mBAAR,CAAjC;AACAH,OAAOC,OAAP,CAAeM,qBAAf,GAAuCJ,QAAQ,yBAAR,CAAvC","file":"index.js","sourcesContent":["module.exports.call_user_func = require('./call_user_func')\nmodule.exports.call_user_func_array = require('./call_user_func_array')\nmodule.exports.create_function = require('./create_function')\nmodule.exports.function_exists = require('./function_exists')\nmodule.exports.get_defined_functions = require('./get_defined_functions')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/i18n/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.i18n_loc_get_default = require('./i18n_loc_get_default');
4 | module.exports.i18n_loc_set_default = require('./i18n_loc_set_default');
5 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/i18n/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/i18n/index.js"],"names":["module","exports","i18n_loc_get_default","require","i18n_loc_set_default"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,oBAAf,GAAsCC,QAAQ,wBAAR,CAAtC;AACAH,OAAOC,OAAP,CAAeG,oBAAf,GAAsCD,QAAQ,wBAAR,CAAtC","file":"index.js","sourcesContent":["module.exports.i18n_loc_get_default = require('./i18n_loc_get_default')\nmodule.exports.i18n_loc_set_default = require('./i18n_loc_set_default')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.array = require('./array');
4 | module.exports.bc = require('./bc');
5 | module.exports.ctype = require('./ctype');
6 | module.exports.datetime = require('./datetime');
7 | module.exports.exec = require('./exec');
8 | module.exports.filesystem = require('./filesystem');
9 | module.exports.funchand = require('./funchand');
10 | module.exports.i18n = require('./i18n');
11 | module.exports.info = require('./info');
12 | module.exports.json = require('./json');
13 | module.exports.math = require('./math');
14 | module.exports.misc = require('./misc');
15 | module.exports['net-gopher'] = require('./net-gopher');
16 | module.exports.network = require('./network');
17 | module.exports.pcre = require('./pcre');
18 | module.exports.strings = require('./strings');
19 | module.exports.url = require('./url');
20 | module.exports.var = require('./var');
21 | module.exports.xdiff = require('./xdiff');
22 | module.exports.xml = require('./xml');
23 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/info/getenv.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function getenv(varname) {
4 | // discuss at: https://locutus.io/php/getenv/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // example 1: getenv('LC_ALL')
7 | // returns 1: false
8 |
9 | if (typeof process !== 'undefined' || !process.env || !process.env[varname]) {
10 | return false;
11 | }
12 |
13 | return process.env[varname];
14 | };
15 | //# sourceMappingURL=getenv.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/info/getenv.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/info/getenv.js"],"names":["module","exports","getenv","varname","process","env"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,OAAjB,EAA0B;AACzC;AACA;AACA;AACA;;AAEA,MAAI,OAAOC,OAAP,KAAmB,WAAnB,IAAkC,CAACA,QAAQC,GAA3C,IAAkD,CAACD,QAAQC,GAAR,CAAYF,OAAZ,CAAvD,EAA6E;AAC3E,WAAO,KAAP;AACD;;AAED,SAAOC,QAAQC,GAAR,CAAYF,OAAZ,CAAP;AACD,CAXD","file":"getenv.js","sourcesContent":["module.exports = function getenv (varname) {\n // discuss at: https://locutus.io/php/getenv/\n // original by: Brett Zamir (https://brett-zamir.me)\n // example 1: getenv('LC_ALL')\n // returns 1: false\n\n if (typeof process !== 'undefined' || !process.env || !process.env[varname]) {\n return false\n }\n\n return process.env[varname]\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/info/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.assert_options = require('./assert_options');
4 | module.exports.getenv = require('./getenv');
5 | module.exports.ini_get = require('./ini_get');
6 | module.exports.ini_set = require('./ini_set');
7 | module.exports.set_time_limit = require('./set_time_limit');
8 | module.exports.version_compare = require('./version_compare');
9 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/info/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/info/index.js"],"names":["module","exports","assert_options","require","getenv","ini_get","ini_set","set_time_limit","version_compare"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,cAAf,GAAgCC,QAAQ,kBAAR,CAAhC;AACAH,OAAOC,OAAP,CAAeG,MAAf,GAAwBD,QAAQ,UAAR,CAAxB;AACAH,OAAOC,OAAP,CAAeI,OAAf,GAAyBF,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeK,OAAf,GAAyBH,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeM,cAAf,GAAgCJ,QAAQ,kBAAR,CAAhC;AACAH,OAAOC,OAAP,CAAeO,eAAf,GAAiCL,QAAQ,mBAAR,CAAjC","file":"index.js","sourcesContent":["module.exports.assert_options = require('./assert_options')\nmodule.exports.getenv = require('./getenv')\nmodule.exports.ini_get = require('./ini_get')\nmodule.exports.ini_set = require('./ini_set')\nmodule.exports.set_time_limit = require('./set_time_limit')\nmodule.exports.version_compare = require('./version_compare')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/info/ini_get.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ini_get(varname) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/ini_get/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // note 1: The ini values must be set by ini_set or manually within an ini file
8 | // example 1: ini_set('date.timezone', 'Asia/Hong_Kong')
9 | // example 1: ini_get('date.timezone')
10 | // returns 1: 'Asia/Hong_Kong'
11 |
12 | var $global = typeof window !== 'undefined' ? window : global;
13 | $global.$locutus = $global.$locutus || {};
14 | var $locutus = $global.$locutus;
15 | $locutus.php = $locutus.php || {};
16 | $locutus.php.ini = $locutus.php.ini || {};
17 |
18 | if ($locutus.php.ini[varname] && $locutus.php.ini[varname].local_value !== undefined) {
19 | if ($locutus.php.ini[varname].local_value === null) {
20 | return '';
21 | }
22 | return $locutus.php.ini[varname].local_value;
23 | }
24 |
25 | return '';
26 | };
27 | //# sourceMappingURL=ini_get.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/info/set_time_limit.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function set_time_limit(seconds) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/set_time_limit/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // test: skip-all
8 | // example 1: set_time_limit(4)
9 | // returns 1: undefined
10 |
11 | var $global = typeof window !== 'undefined' ? window : global;
12 | $global.$locutus = $global.$locutus || {};
13 | var $locutus = $global.$locutus;
14 | $locutus.php = $locutus.php || {};
15 |
16 | setTimeout(function () {
17 | if (!$locutus.php.timeoutStatus) {
18 | $locutus.php.timeoutStatus = true;
19 | }
20 | throw new Error('Maximum execution time exceeded');
21 | }, seconds * 1000);
22 | };
23 | //# sourceMappingURL=set_time_limit.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/json/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.json_decode = require('./json_decode');
4 | module.exports.json_encode = require('./json_encode');
5 | module.exports.json_last_error = require('./json_last_error');
6 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/json/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/json/index.js"],"names":["module","exports","json_decode","require","json_encode","json_last_error"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,WAAf,GAA6BC,QAAQ,eAAR,CAA7B;AACAH,OAAOC,OAAP,CAAeG,WAAf,GAA6BD,QAAQ,eAAR,CAA7B;AACAH,OAAOC,OAAP,CAAeI,eAAf,GAAiCF,QAAQ,mBAAR,CAAjC","file":"index.js","sourcesContent":["module.exports.json_decode = require('./json_decode')\nmodule.exports.json_encode = require('./json_encode')\nmodule.exports.json_last_error = require('./json_last_error')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/abs.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function abs(mixedNumber) {
4 | // discuss at: https://locutus.io/php/abs/
5 | // original by: Waldo Malqui Silva (https://waldo.malqui.info)
6 | // improved by: Karol Kowalski
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // improved by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
9 | // example 1: abs(4.2)
10 | // returns 1: 4.2
11 | // example 2: abs(-4.2)
12 | // returns 2: 4.2
13 | // example 3: abs(-5)
14 | // returns 3: 5
15 | // example 4: abs('_argos')
16 | // returns 4: 0
17 |
18 | return Math.abs(mixedNumber) || 0;
19 | };
20 | //# sourceMappingURL=abs.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/abs.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/abs.js"],"names":["module","exports","abs","mixedNumber","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,WAAd,EAA2B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,GAAL,CAASC,WAAT,KAAyB,CAAhC;AACD,CAhBD","file":"abs.js","sourcesContent":["module.exports = function abs (mixedNumber) {\n // discuss at: https://locutus.io/php/abs/\n // original by: Waldo Malqui Silva (https://waldo.malqui.info)\n // improved by: Karol Kowalski\n // improved by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)\n // example 1: abs(4.2)\n // returns 1: 4.2\n // example 2: abs(-4.2)\n // returns 2: 4.2\n // example 3: abs(-5)\n // returns 3: 5\n // example 4: abs('_argos')\n // returns 4: 0\n\n return Math.abs(mixedNumber) || 0\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/acos.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function acos(arg) {
4 | // discuss at: https://locutus.io/php/acos/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // note 1: Sorry about the crippled test. Needed because precision differs accross platforms.
7 | // example 1: (acos(0.3) + '').substr(0, 17)
8 | // returns 1: "1.266103672779499"
9 |
10 | return Math.acos(arg);
11 | };
12 | //# sourceMappingURL=acos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/acos.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/acos.js"],"names":["module","exports","acos","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,IAAL,CAAUC,GAAV,CAAP;AACD,CARD","file":"acos.js","sourcesContent":["module.exports = function acos (arg) {\n // discuss at: https://locutus.io/php/acos/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // note 1: Sorry about the crippled test. Needed because precision differs accross platforms.\n // example 1: (acos(0.3) + '').substr(0, 17)\n // returns 1: \"1.266103672779499\"\n\n return Math.acos(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/acosh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function acosh(arg) {
4 | // discuss at: https://locutus.io/php/acosh/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: acosh(8723321.4)
7 | // returns 1: 16.674657798418625
8 |
9 | return Math.log(arg + Math.sqrt(arg * arg - 1));
10 | };
11 | //# sourceMappingURL=acosh.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/acosh.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/acosh.js"],"names":["module","exports","acosh","arg","Math","log","sqrt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,GAAhB,EAAqB;AACpC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKC,GAAL,CAASF,MAAMC,KAAKE,IAAL,CAAUH,MAAMA,GAAN,GAAY,CAAtB,CAAf,CAAP;AACD,CAPD","file":"acosh.js","sourcesContent":["module.exports = function acosh (arg) {\n // discuss at: https://locutus.io/php/acosh/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: acosh(8723321.4)\n // returns 1: 16.674657798418625\n\n return Math.log(arg + Math.sqrt(arg * arg - 1))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/asin.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function asin(arg) {
4 | // discuss at: https://locutus.io/php/asin/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // note 1: Sorry about the crippled test. Needed because precision differs accross platforms.
7 | // example 1: (asin(0.3) + '').substr(0, 17)
8 | // returns 1: "0.304692654015397"
9 |
10 | return Math.asin(arg);
11 | };
12 | //# sourceMappingURL=asin.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/asin.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/asin.js"],"names":["module","exports","asin","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,IAAL,CAAUC,GAAV,CAAP;AACD,CARD","file":"asin.js","sourcesContent":["module.exports = function asin (arg) {\n // discuss at: https://locutus.io/php/asin/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // note 1: Sorry about the crippled test. Needed because precision differs accross platforms.\n // example 1: (asin(0.3) + '').substr(0, 17)\n // returns 1: \"0.304692654015397\"\n\n return Math.asin(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/asinh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function asinh(arg) {
4 | // discuss at: https://locutus.io/php/asinh/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: asinh(8723321.4)
7 | // returns 1: 16.67465779841863
8 |
9 | return Math.log(arg + Math.sqrt(arg * arg + 1));
10 | };
11 | //# sourceMappingURL=asinh.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/asinh.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/asinh.js"],"names":["module","exports","asinh","arg","Math","log","sqrt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,GAAhB,EAAqB;AACpC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKC,GAAL,CAASF,MAAMC,KAAKE,IAAL,CAAUH,MAAMA,GAAN,GAAY,CAAtB,CAAf,CAAP;AACD,CAPD","file":"asinh.js","sourcesContent":["module.exports = function asinh (arg) {\n // discuss at: https://locutus.io/php/asinh/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: asinh(8723321.4)\n // returns 1: 16.67465779841863\n\n return Math.log(arg + Math.sqrt(arg * arg + 1))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/atan.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function atan(arg) {
4 | // discuss at: https://locutus.io/php/atan/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: atan(8723321.4)
7 | // returns 1: 1.5707962121596615
8 |
9 | return Math.atan(arg);
10 | };
11 | //# sourceMappingURL=atan.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/atan.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/atan.js"],"names":["module","exports","atan","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,IAAL,CAAUC,GAAV,CAAP;AACD,CAPD","file":"atan.js","sourcesContent":["module.exports = function atan (arg) {\n // discuss at: https://locutus.io/php/atan/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: atan(8723321.4)\n // returns 1: 1.5707962121596615\n\n return Math.atan(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/atan2.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function atan2(y, x) {
4 | // discuss at: https://locutus.io/php/atan2/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // example 1: atan2(1, 1)
7 | // returns 1: 0.7853981633974483
8 |
9 | return Math.atan2(y, x);
10 | };
11 | //# sourceMappingURL=atan2.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/atan2.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/atan2.js"],"names":["module","exports","atan2","y","x","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,CAAhB,EAAmBC,CAAnB,EAAsB;AACrC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKH,KAAL,CAAWC,CAAX,EAAcC,CAAd,CAAP;AACD,CAPD","file":"atan2.js","sourcesContent":["module.exports = function atan2 (y, x) {\n // discuss at: https://locutus.io/php/atan2/\n // original by: Brett Zamir (https://brett-zamir.me)\n // example 1: atan2(1, 1)\n // returns 1: 0.7853981633974483\n\n return Math.atan2(y, x)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/atanh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function atanh(arg) {
4 | // discuss at: https://locutus.io/php/atanh/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: atanh(0.3)
7 | // returns 1: 0.3095196042031118
8 |
9 | return 0.5 * Math.log((1 + arg) / (1 - arg));
10 | };
11 | //# sourceMappingURL=atanh.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/atanh.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/atanh.js"],"names":["module","exports","atanh","arg","Math","log"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,GAAhB,EAAqB;AACpC;AACA;AACA;AACA;;AAEA,SAAO,MAAMC,KAAKC,GAAL,CAAS,CAAC,IAAIF,GAAL,KAAa,IAAIA,GAAjB,CAAT,CAAb;AACD,CAPD","file":"atanh.js","sourcesContent":["module.exports = function atanh (arg) {\n // discuss at: https://locutus.io/php/atanh/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: atanh(0.3)\n // returns 1: 0.3095196042031118\n\n return 0.5 * Math.log((1 + arg) / (1 - arg))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/base_convert.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function base_convert(number, frombase, tobase) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/base_convert/
6 | // original by: Philippe Baumann
7 | // improved by: Rafał Kukawski (https://blog.kukawski.pl)
8 | // example 1: base_convert('A37334', 16, 2)
9 | // returns 1: '101000110111001100110100'
10 |
11 | return parseInt(number + '', frombase | 0).toString(tobase | 0);
12 | };
13 | //# sourceMappingURL=base_convert.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/base_convert.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/base_convert.js"],"names":["module","exports","base_convert","number","frombase","tobase","parseInt","toString"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,MAAvB,EAA+BC,QAA/B,EAAyCC,MAAzC,EAAiD;AAAE;AAClE;AACA;AACA;AACA;AACA;;AAEA,SAAOC,SAASH,SAAS,EAAlB,EAAsBC,WAAW,CAAjC,EACJG,QADI,CACKF,SAAS,CADd,CAAP;AAED,CATD","file":"base_convert.js","sourcesContent":["module.exports = function base_convert (number, frombase, tobase) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/base_convert/\n // original by: Philippe Baumann\n // improved by: Rafał Kukawski (https://blog.kukawski.pl)\n // example 1: base_convert('A37334', 16, 2)\n // returns 1: '101000110111001100110100'\n\n return parseInt(number + '', frombase | 0)\n .toString(tobase | 0)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/bindec.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function bindec(binaryString) {
4 | // discuss at: https://locutus.io/php/bindec/
5 | // original by: Philippe Baumann
6 | // example 1: bindec('110011')
7 | // returns 1: 51
8 | // example 2: bindec('000110011')
9 | // returns 2: 51
10 | // example 3: bindec('111')
11 | // returns 3: 7
12 |
13 | binaryString = (binaryString + '').replace(/[^01]/gi, '');
14 |
15 | return parseInt(binaryString, 2);
16 | };
17 | //# sourceMappingURL=bindec.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/bindec.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/bindec.js"],"names":["module","exports","bindec","binaryString","replace","parseInt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,YAAjB,EAA+B;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAA,iBAAe,CAACA,eAAe,EAAhB,EAAoBC,OAApB,CAA4B,SAA5B,EAAuC,EAAvC,CAAf;;AAEA,SAAOC,SAASF,YAAT,EAAuB,CAAvB,CAAP;AACD,CAbD","file":"bindec.js","sourcesContent":["module.exports = function bindec (binaryString) {\n // discuss at: https://locutus.io/php/bindec/\n // original by: Philippe Baumann\n // example 1: bindec('110011')\n // returns 1: 51\n // example 2: bindec('000110011')\n // returns 2: 51\n // example 3: bindec('111')\n // returns 3: 7\n\n binaryString = (binaryString + '').replace(/[^01]/gi, '')\n\n return parseInt(binaryString, 2)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/ceil.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function ceil(value) {
4 | // discuss at: https://locutus.io/php/ceil/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: ceil(8723321.4)
7 | // returns 1: 8723322
8 |
9 | return Math.ceil(value);
10 | };
11 | //# sourceMappingURL=ceil.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/ceil.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/ceil.js"],"names":["module","exports","ceil","value","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,KAAf,EAAsB;AACrC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,IAAL,CAAUC,KAAV,CAAP;AACD,CAPD","file":"ceil.js","sourcesContent":["module.exports = function ceil (value) {\n // discuss at: https://locutus.io/php/ceil/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: ceil(8723321.4)\n // returns 1: 8723322\n\n return Math.ceil(value)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/cos.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function cos(arg) {
4 | // discuss at: https://locutus.io/php/cos/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: Math.ceil(cos(8723321.4) * 10000000)
7 | // returns 1: -1812718
8 |
9 | return Math.cos(arg);
10 | };
11 | //# sourceMappingURL=cos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/cos.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/cos.js"],"names":["module","exports","cos","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,GAAd,EAAmB;AAClC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,GAAL,CAASC,GAAT,CAAP;AACD,CAPD","file":"cos.js","sourcesContent":["module.exports = function cos (arg) {\n // discuss at: https://locutus.io/php/cos/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: Math.ceil(cos(8723321.4) * 10000000)\n // returns 1: -1812718\n\n return Math.cos(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/cosh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function cosh(arg) {
4 | // discuss at: https://locutus.io/php/cosh/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: cosh(-0.18127180117607017)
7 | // returns 1: 1.0164747716114113
8 |
9 | return (Math.exp(arg) + Math.exp(-arg)) / 2;
10 | };
11 | //# sourceMappingURL=cosh.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/cosh.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/cosh.js"],"names":["module","exports","cosh","arg","Math","exp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;;AAEA,SAAO,CAACC,KAAKC,GAAL,CAASF,GAAT,IAAgBC,KAAKC,GAAL,CAAS,CAACF,GAAV,CAAjB,IAAmC,CAA1C;AACD,CAPD","file":"cosh.js","sourcesContent":["module.exports = function cosh (arg) {\n // discuss at: https://locutus.io/php/cosh/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: cosh(-0.18127180117607017)\n // returns 1: 1.0164747716114113\n\n return (Math.exp(arg) + Math.exp(-arg)) / 2\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/decbin.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function decbin(number) {
4 | // discuss at: https://locutus.io/php/decbin/
5 | // original by: Enrique Gonzalez
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript
8 | // input by: pilus
9 | // input by: nord_ua
10 | // example 1: decbin(12)
11 | // returns 1: '1100'
12 | // example 2: decbin(26)
13 | // returns 2: '11010'
14 | // example 3: decbin('26')
15 | // returns 3: '11010'
16 |
17 | if (number < 0) {
18 | number = 0xFFFFFFFF + number + 1;
19 | }
20 | return parseInt(number, 10).toString(2);
21 | };
22 | //# sourceMappingURL=decbin.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/decbin.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/decbin.js"],"names":["module","exports","decbin","number","parseInt","toString"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,MAAjB,EAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIA,SAAS,CAAb,EAAgB;AACdA,aAAS,aAAaA,MAAb,GAAsB,CAA/B;AACD;AACD,SAAOC,SAASD,MAAT,EAAiB,EAAjB,EACJE,QADI,CACK,CADL,CAAP;AAED,CAnBD","file":"decbin.js","sourcesContent":["module.exports = function decbin (number) {\n // discuss at: https://locutus.io/php/decbin/\n // original by: Enrique Gonzalez\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript\n // input by: pilus\n // input by: nord_ua\n // example 1: decbin(12)\n // returns 1: '1100'\n // example 2: decbin(26)\n // returns 2: '11010'\n // example 3: decbin('26')\n // returns 3: '11010'\n\n if (number < 0) {\n number = 0xFFFFFFFF + number + 1\n }\n return parseInt(number, 10)\n .toString(2)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/dechex.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function dechex(number) {
4 | // discuss at: https://locutus.io/php/dechex/
5 | // original by: Philippe Baumann
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript
8 | // input by: pilus
9 | // example 1: dechex(10)
10 | // returns 1: 'a'
11 | // example 2: dechex(47)
12 | // returns 2: '2f'
13 | // example 3: dechex(-1415723993)
14 | // returns 3: 'ab9dc427'
15 |
16 | if (number < 0) {
17 | number = 0xFFFFFFFF + number + 1;
18 | }
19 | return parseInt(number, 10).toString(16);
20 | };
21 | //# sourceMappingURL=dechex.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/dechex.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/dechex.js"],"names":["module","exports","dechex","number","parseInt","toString"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,MAAjB,EAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIA,SAAS,CAAb,EAAgB;AACdA,aAAS,aAAaA,MAAb,GAAsB,CAA/B;AACD;AACD,SAAOC,SAASD,MAAT,EAAiB,EAAjB,EACJE,QADI,CACK,EADL,CAAP;AAED,CAlBD","file":"dechex.js","sourcesContent":["module.exports = function dechex (number) {\n // discuss at: https://locutus.io/php/dechex/\n // original by: Philippe Baumann\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript\n // input by: pilus\n // example 1: dechex(10)\n // returns 1: 'a'\n // example 2: dechex(47)\n // returns 2: '2f'\n // example 3: dechex(-1415723993)\n // returns 3: 'ab9dc427'\n\n if (number < 0) {\n number = 0xFFFFFFFF + number + 1\n }\n return parseInt(number, 10)\n .toString(16)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/decoct.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function decoct(number) {
4 | // discuss at: https://locutus.io/php/decoct/
5 | // original by: Enrique Gonzalez
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript
8 | // input by: pilus
9 | // example 1: decoct(15)
10 | // returns 1: '17'
11 | // example 2: decoct(264)
12 | // returns 2: '410'
13 |
14 | if (number < 0) {
15 | number = 0xFFFFFFFF + number + 1;
16 | }
17 | return parseInt(number, 10).toString(8);
18 | };
19 | //# sourceMappingURL=decoct.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/decoct.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/decoct.js"],"names":["module","exports","decoct","number","parseInt","toString"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,MAAjB,EAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIA,SAAS,CAAb,EAAgB;AACdA,aAAS,aAAaA,MAAb,GAAsB,CAA/B;AACD;AACD,SAAOC,SAASD,MAAT,EAAiB,EAAjB,EACJE,QADI,CACK,CADL,CAAP;AAED,CAhBD","file":"decoct.js","sourcesContent":["module.exports = function decoct (number) {\n // discuss at: https://locutus.io/php/decoct/\n // original by: Enrique Gonzalez\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript\n // input by: pilus\n // example 1: decoct(15)\n // returns 1: '17'\n // example 2: decoct(264)\n // returns 2: '410'\n\n if (number < 0) {\n number = 0xFFFFFFFF + number + 1\n }\n return parseInt(number, 10)\n .toString(8)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/deg2rad.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function deg2rad(angle) {
4 | // discuss at: https://locutus.io/php/deg2rad/
5 | // original by: Enrique Gonzalez
6 | // improved by: Thomas Grainger (https://graingert.co.uk)
7 | // example 1: deg2rad(45)
8 | // returns 1: 0.7853981633974483
9 |
10 | return angle * 0.017453292519943295; // (angle / 180) * Math.PI;
11 | };
12 | //# sourceMappingURL=deg2rad.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/deg2rad.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/deg2rad.js"],"names":["module","exports","deg2rad","angle"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,KAAlB,EAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA,SAAOA,QAAQ,oBAAf,CAPwC,CAOJ;AACrC,CARD","file":"deg2rad.js","sourcesContent":["module.exports = function deg2rad (angle) {\n // discuss at: https://locutus.io/php/deg2rad/\n // original by: Enrique Gonzalez\n // improved by: Thomas Grainger (https://graingert.co.uk)\n // example 1: deg2rad(45)\n // returns 1: 0.7853981633974483\n\n return angle * 0.017453292519943295 // (angle / 180) * Math.PI;\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/exp.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function exp(arg) {
4 | // discuss at: https://locutus.io/php/exp/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: exp(0.3)
7 | // returns 1: 1.3498588075760032
8 |
9 | return Math.exp(arg);
10 | };
11 | //# sourceMappingURL=exp.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/exp.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/exp.js"],"names":["module","exports","exp","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,GAAd,EAAmB;AAClC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,GAAL,CAASC,GAAT,CAAP;AACD,CAPD","file":"exp.js","sourcesContent":["module.exports = function exp (arg) {\n // discuss at: https://locutus.io/php/exp/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: exp(0.3)\n // returns 1: 1.3498588075760032\n\n return Math.exp(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/expm1.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function expm1(x) {
4 | // discuss at: https://locutus.io/php/expm1/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // improved by: Robert Eisele (https://www.xarg.org/)
7 | // note 1: Precision 'n' can be adjusted as desired
8 | // example 1: expm1(1e-15)
9 | // returns 1: 1.0000000000000007e-15
10 |
11 | return x < 1e-5 && x > -1e-5 ? x + 0.5 * x * x : Math.exp(x) - 1;
12 | };
13 | //# sourceMappingURL=expm1.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/expm1.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/expm1.js"],"names":["module","exports","expm1","x","Math","exp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,CAAhB,EAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,IAAI,IAAJ,IAAYA,IAAI,CAAC,IAAlB,GACHA,IAAI,MAAMA,CAAN,GAAUA,CADX,GAEHC,KAAKC,GAAL,CAASF,CAAT,IAAc,CAFlB;AAGD,CAXD","file":"expm1.js","sourcesContent":["module.exports = function expm1 (x) {\n // discuss at: https://locutus.io/php/expm1/\n // original by: Brett Zamir (https://brett-zamir.me)\n // improved by: Robert Eisele (https://www.xarg.org/)\n // note 1: Precision 'n' can be adjusted as desired\n // example 1: expm1(1e-15)\n // returns 1: 1.0000000000000007e-15\n\n return (x < 1e-5 && x > -1e-5)\n ? x + 0.5 * x * x\n : Math.exp(x) - 1\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/floor.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function floor(value) {
4 | // discuss at: https://locutus.io/php/floor/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: floor(8723321.4)
7 | // returns 1: 8723321
8 |
9 | return Math.floor(value);
10 | };
11 | //# sourceMappingURL=floor.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/floor.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/floor.js"],"names":["module","exports","floor","value","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,KAAhB,EAAuB;AACtC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,KAAL,CAAWC,KAAX,CAAP;AACD,CAPD","file":"floor.js","sourcesContent":["module.exports = function floor (value) {\n // discuss at: https://locutus.io/php/floor/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: floor(8723321.4)\n // returns 1: 8723321\n\n return Math.floor(value)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/getrandmax.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function getrandmax() {
4 | // discuss at: https://locutus.io/php/getrandmax/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: getrandmax()
7 | // returns 1: 2147483647
8 |
9 | return 2147483647;
10 | };
11 | //# sourceMappingURL=getrandmax.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/getrandmax.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/getrandmax.js"],"names":["module","exports","getrandmax"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,GAAuB;AACtC;AACA;AACA;AACA;;AAEA,SAAO,UAAP;AACD,CAPD","file":"getrandmax.js","sourcesContent":["module.exports = function getrandmax () {\n // discuss at: https://locutus.io/php/getrandmax/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: getrandmax()\n // returns 1: 2147483647\n\n return 2147483647\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/hexdec.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function hexdec(hexString) {
4 | // discuss at: https://locutus.io/php/hexdec/
5 | // original by: Philippe Baumann
6 | // example 1: hexdec('that')
7 | // returns 1: 10
8 | // example 2: hexdec('a0')
9 | // returns 2: 160
10 |
11 | hexString = (hexString + '').replace(/[^a-f0-9]/gi, '');
12 | return parseInt(hexString, 16);
13 | };
14 | //# sourceMappingURL=hexdec.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/hexdec.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/hexdec.js"],"names":["module","exports","hexdec","hexString","replace","parseInt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,SAAjB,EAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEAA,cAAY,CAACA,YAAY,EAAb,EAAiBC,OAAjB,CAAyB,aAAzB,EAAwC,EAAxC,CAAZ;AACA,SAAOC,SAASF,SAAT,EAAoB,EAApB,CAAP;AACD,CAVD","file":"hexdec.js","sourcesContent":["module.exports = function hexdec (hexString) {\n // discuss at: https://locutus.io/php/hexdec/\n // original by: Philippe Baumann\n // example 1: hexdec('that')\n // returns 1: 10\n // example 2: hexdec('a0')\n // returns 2: 160\n\n hexString = (hexString + '').replace(/[^a-f0-9]/gi, '')\n return parseInt(hexString, 16)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/hypot.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function hypot(x, y) {
4 | // discuss at: https://locutus.io/php/hypot/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // imprived by: Robert Eisele (https://www.xarg.org/)
7 | // example 1: hypot(3, 4)
8 | // returns 1: 5
9 | // example 2: hypot([], 'a')
10 | // returns 2: null
11 |
12 | x = Math.abs(x);
13 | y = Math.abs(y);
14 |
15 | var t = Math.min(x, y);
16 | x = Math.max(x, y);
17 | t = t / x;
18 |
19 | return x * Math.sqrt(1 + t * t) || null;
20 | };
21 | //# sourceMappingURL=hypot.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/hypot.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/hypot.js"],"names":["module","exports","hypot","x","y","Math","abs","t","min","max","sqrt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,CAAhB,EAAmBC,CAAnB,EAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAD,MAAIE,KAAKC,GAAL,CAASH,CAAT,CAAJ;AACAC,MAAIC,KAAKC,GAAL,CAASF,CAAT,CAAJ;;AAEA,MAAIG,IAAIF,KAAKG,GAAL,CAASL,CAAT,EAAYC,CAAZ,CAAR;AACAD,MAAIE,KAAKI,GAAL,CAASN,CAAT,EAAYC,CAAZ,CAAJ;AACAG,MAAIA,IAAIJ,CAAR;;AAEA,SAAOA,IAAIE,KAAKK,IAAL,CAAU,IAAIH,IAAIA,CAAlB,CAAJ,IAA4B,IAAnC;AACD,CAjBD","file":"hypot.js","sourcesContent":["module.exports = function hypot (x, y) {\n // discuss at: https://locutus.io/php/hypot/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // imprived by: Robert Eisele (https://www.xarg.org/)\n // example 1: hypot(3, 4)\n // returns 1: 5\n // example 2: hypot([], 'a')\n // returns 2: null\n\n x = Math.abs(x)\n y = Math.abs(y)\n\n let t = Math.min(x, y)\n x = Math.max(x, y)\n t = t / x\n\n return x * Math.sqrt(1 + t * t) || null\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/lcg_value.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function lcg_value() {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/lcg_value/
6 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: var $rnd = lcg_value()
8 | // example 1: var $result = $rnd >= 0 && $rnd <= 1
9 | // returns 1: true
10 |
11 | return Math.random();
12 | };
13 | //# sourceMappingURL=lcg_value.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/lcg_value.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/lcg_value.js"],"names":["module","exports","lcg_value","Math","random"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,GAAsB;AAAE;AACvC;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKC,MAAL,EAAP;AACD,CARD","file":"lcg_value.js","sourcesContent":["module.exports = function lcg_value () { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/lcg_value/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: var $rnd = lcg_value()\n // example 1: var $result = $rnd >= 0 && $rnd <= 1\n // returns 1: true\n\n return Math.random()\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/log.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function log(arg, base) {
4 | // discuss at: https://locutus.io/php/log/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // improved by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: log(8723321.4, 7)
8 | // returns 1: 8.212871815082147
9 |
10 | return typeof base === 'undefined' ? Math.log(arg) : Math.log(arg) / Math.log(base);
11 | };
12 | //# sourceMappingURL=log.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/log.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/log.js"],"names":["module","exports","log","arg","base","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,GAAd,EAAmBC,IAAnB,EAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA,SAAQ,OAAOA,IAAP,KAAgB,WAAjB,GACHC,KAAKH,GAAL,CAASC,GAAT,CADG,GAEHE,KAAKH,GAAL,CAASC,GAAT,IAAgBE,KAAKH,GAAL,CAASE,IAAT,CAFpB;AAGD,CAVD","file":"log.js","sourcesContent":["module.exports = function log (arg, base) {\n // discuss at: https://locutus.io/php/log/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Brett Zamir (https://brett-zamir.me)\n // example 1: log(8723321.4, 7)\n // returns 1: 8.212871815082147\n\n return (typeof base === 'undefined')\n ? Math.log(arg)\n : Math.log(arg) / Math.log(base)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/log10.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function log10(arg) {
4 | // discuss at: https://locutus.io/php/log10/
5 | // original by: Philip Peterson
6 | // improved by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: Tod Gentille
8 | // improved by: Brett Zamir (https://brett-zamir.me)
9 | // example 1: log10(10)
10 | // returns 1: 1
11 | // example 2: log10(1)
12 | // returns 2: 0
13 |
14 | return Math.log(arg) / 2.302585092994046; // Math.LN10
15 | };
16 | //# sourceMappingURL=log10.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/log10.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/log10.js"],"names":["module","exports","log10","arg","Math","log"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,GAAhB,EAAqB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKC,GAAL,CAASF,GAAT,IAAgB,iBAAvB,CAXoC,CAWK;AAC1C,CAZD","file":"log10.js","sourcesContent":["module.exports = function log10 (arg) {\n // discuss at: https://locutus.io/php/log10/\n // original by: Philip Peterson\n // improved by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Tod Gentille\n // improved by: Brett Zamir (https://brett-zamir.me)\n // example 1: log10(10)\n // returns 1: 1\n // example 2: log10(1)\n // returns 2: 0\n\n return Math.log(arg) / 2.302585092994046 // Math.LN10\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/log1p.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function log1p(x) {
4 | // discuss at: https://locutus.io/php/log1p/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // improved by: Robert Eisele (https://www.xarg.org/)
7 | // note 1: Precision 'n' can be adjusted as desired
8 | // example 1: log1p(1e-15)
9 | // returns 1: 9.999999999999995e-16
10 |
11 | var ret = 0;
12 | // degree of precision
13 | var n = 50;
14 |
15 | if (x <= -1) {
16 | // JavaScript style would be to return Number.NEGATIVE_INFINITY
17 | return '-INF';
18 | }
19 | if (x < 0 || x > 1) {
20 | return Math.log(1 + x);
21 | }
22 | for (var i = 1; i < n; i++) {
23 | ret += Math.pow(-x, i) / i;
24 | }
25 |
26 | return -ret;
27 | };
28 | //# sourceMappingURL=log1p.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/mt_getrandmax.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function mt_getrandmax() {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/mt_getrandmax/
6 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: mt_getrandmax()
8 | // returns 1: 2147483647
9 |
10 | return 2147483647;
11 | };
12 | //# sourceMappingURL=mt_getrandmax.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/mt_getrandmax.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/mt_getrandmax.js"],"names":["module","exports","mt_getrandmax"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,aAAT,GAA0B;AAAE;AAC3C;AACA;AACA;AACA;;AAEA,SAAO,UAAP;AACD,CAPD","file":"mt_getrandmax.js","sourcesContent":["module.exports = function mt_getrandmax () { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/mt_getrandmax/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: mt_getrandmax()\n // returns 1: 2147483647\n\n return 2147483647\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/mt_rand.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function mt_rand(min, max) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/mt_rand/
6 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: Brett Zamir (https://brett-zamir.me)
8 | // input by: Kongo
9 | // example 1: mt_rand(1, 1)
10 | // returns 1: 1
11 |
12 | var argc = arguments.length;
13 | if (argc === 0) {
14 | min = 0;
15 | max = 2147483647;
16 | } else if (argc === 1) {
17 | throw new Error('Warning: mt_rand() expects exactly 2 parameters, 1 given');
18 | } else {
19 | min = parseInt(min, 10);
20 | max = parseInt(max, 10);
21 | }
22 | return Math.floor(Math.random() * (max - min + 1)) + min;
23 | };
24 | //# sourceMappingURL=mt_rand.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/octdec.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function octdec(octString) {
4 | // discuss at: https://locutus.io/php/octdec/
5 | // original by: Philippe Baumann
6 | // example 1: octdec('77')
7 | // returns 1: 63
8 |
9 | octString = (octString + '').replace(/[^0-7]/gi, '');
10 | return parseInt(octString, 8);
11 | };
12 | //# sourceMappingURL=octdec.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/octdec.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/octdec.js"],"names":["module","exports","octdec","octString","replace","parseInt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,SAAjB,EAA4B;AAC3C;AACA;AACA;AACA;;AAEAA,cAAY,CAACA,YAAY,EAAb,EAAiBC,OAAjB,CAAyB,UAAzB,EAAqC,EAArC,CAAZ;AACA,SAAOC,SAASF,SAAT,EAAoB,CAApB,CAAP;AACD,CARD","file":"octdec.js","sourcesContent":["module.exports = function octdec (octString) {\n // discuss at: https://locutus.io/php/octdec/\n // original by: Philippe Baumann\n // example 1: octdec('77')\n // returns 1: 63\n\n octString = (octString + '').replace(/[^0-7]/gi, '')\n return parseInt(octString, 8)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/pi.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function pi() {
4 | // discuss at: https://locutus.io/php/pi/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // improved by: dude
7 | // example 1: pi(8723321.4)
8 | // returns 1: 3.141592653589793
9 |
10 | return 3.141592653589793; // Math.PI
11 | };
12 | //# sourceMappingURL=pi.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/pi.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/pi.js"],"names":["module","exports","pi"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,EAAT,GAAe;AAC9B;AACA;AACA;AACA;AACA;;AAEA,SAAO,iBAAP,CAP8B,CAOL;AAC1B,CARD","file":"pi.js","sourcesContent":["module.exports = function pi () {\n // discuss at: https://locutus.io/php/pi/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: dude\n // example 1: pi(8723321.4)\n // returns 1: 3.141592653589793\n\n return 3.141592653589793 // Math.PI\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/pow.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function pow(base, exp) {
4 | // discuss at: https://locutus.io/php/pow/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // improved by: Waldo Malqui Silva (https://fayr.us/waldo/)
7 | // example 1: pow(8723321.4, 7)
8 | // returns 1: 3.8439091680779e+48
9 |
10 | return Number(Math.pow(base, exp).toPrecision(15));
11 | };
12 | //# sourceMappingURL=pow.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/pow.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/pow.js"],"names":["module","exports","pow","base","exp","Number","Math","toPrecision"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,IAAd,EAAoBC,GAApB,EAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA,SAAOC,OAAOC,KAAKJ,GAAL,CAASC,IAAT,EAAeC,GAAf,EAAoBG,WAApB,CAAgC,EAAhC,CAAP,CAAP;AACD,CARD","file":"pow.js","sourcesContent":["module.exports = function pow (base, exp) {\n // discuss at: https://locutus.io/php/pow/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Waldo Malqui Silva (https://fayr.us/waldo/)\n // example 1: pow(8723321.4, 7)\n // returns 1: 3.8439091680779e+48\n\n return Number(Math.pow(base, exp).toPrecision(15))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/rad2deg.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function rad2deg(angle) {
4 | // discuss at: https://locutus.io/php/rad2deg/
5 | // original by: Enrique Gonzalez
6 | // improved by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: rad2deg(3.141592653589793)
8 | // returns 1: 180
9 |
10 | return angle * 57.29577951308232; // angle / Math.PI * 180
11 | };
12 | //# sourceMappingURL=rad2deg.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/rad2deg.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/rad2deg.js"],"names":["module","exports","rad2deg","angle"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,KAAlB,EAAyB;AACxC;AACA;AACA;AACA;AACA;;AAEA,SAAOA,QAAQ,iBAAf,CAPwC,CAOP;AAClC,CARD","file":"rad2deg.js","sourcesContent":["module.exports = function rad2deg (angle) {\n // discuss at: https://locutus.io/php/rad2deg/\n // original by: Enrique Gonzalez\n // improved by: Brett Zamir (https://brett-zamir.me)\n // example 1: rad2deg(3.141592653589793)\n // returns 1: 180\n\n return angle * 57.29577951308232 // angle / Math.PI * 180\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/rand.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function rand(min, max) {
4 | // discuss at: https://locutus.io/php/rand/
5 | // original by: Leslie Hoare
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // note 1: See the commented out code below for a version which
8 | // note 1: will work with our experimental (though probably unnecessary)
9 | // note 1: srand() function)
10 | // example 1: rand(1, 1)
11 | // returns 1: 1
12 |
13 | var argc = arguments.length;
14 | if (argc === 0) {
15 | min = 0;
16 | max = 2147483647;
17 | } else if (argc === 1) {
18 | throw new Error('Warning: rand() expects exactly 2 parameters, 1 given');
19 | }
20 | return Math.floor(Math.random() * (max - min + 1)) + min;
21 | };
22 | //# sourceMappingURL=rand.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/sin.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function sin(arg) {
4 | // discuss at: https://locutus.io/php/sin/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: Math.ceil(sin(8723321.4) * 10000000)
7 | // returns 1: -9834330
8 |
9 | return Math.sin(arg);
10 | };
11 | //# sourceMappingURL=sin.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/sin.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/sin.js"],"names":["module","exports","sin","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,GAAd,EAAmB;AAClC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,GAAL,CAASC,GAAT,CAAP;AACD,CAPD","file":"sin.js","sourcesContent":["module.exports = function sin (arg) {\n // discuss at: https://locutus.io/php/sin/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: Math.ceil(sin(8723321.4) * 10000000)\n // returns 1: -9834330\n\n return Math.sin(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/sinh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function sinh(arg) {
4 | // discuss at: https://locutus.io/php/sinh/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: sinh(-0.9834330348825909)
7 | // returns 1: -1.1497971402636502
8 |
9 | return (Math.exp(arg) - Math.exp(-arg)) / 2;
10 | };
11 | //# sourceMappingURL=sinh.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/sinh.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/sinh.js"],"names":["module","exports","sinh","arg","Math","exp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;;AAEA,SAAO,CAACC,KAAKC,GAAL,CAASF,GAAT,IAAgBC,KAAKC,GAAL,CAAS,CAACF,GAAV,CAAjB,IAAmC,CAA1C;AACD,CAPD","file":"sinh.js","sourcesContent":["module.exports = function sinh (arg) {\n // discuss at: https://locutus.io/php/sinh/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: sinh(-0.9834330348825909)\n // returns 1: -1.1497971402636502\n\n return (Math.exp(arg) - Math.exp(-arg)) / 2\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/sqrt.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function sqrt(arg) {
4 | // discuss at: https://locutus.io/php/sqrt/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: sqrt(8723321.4)
7 | // returns 1: 2953.5269424875746
8 |
9 | return Math.sqrt(arg);
10 | };
11 | //# sourceMappingURL=sqrt.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/sqrt.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/sqrt.js"],"names":["module","exports","sqrt","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,IAAL,CAAUC,GAAV,CAAP;AACD,CAPD","file":"sqrt.js","sourcesContent":["module.exports = function sqrt (arg) {\n // discuss at: https://locutus.io/php/sqrt/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: sqrt(8723321.4)\n // returns 1: 2953.5269424875746\n\n return Math.sqrt(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/tan.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function tan(arg) {
4 | // discuss at: https://locutus.io/php/tan/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // example 1: Math.ceil(tan(8723321.4) * 10000000)
7 | // returns 1: 54251849
8 |
9 | return Math.tan(arg);
10 | };
11 | //# sourceMappingURL=tan.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/tan.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/tan.js"],"names":["module","exports","tan","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,GAAT,CAAcC,GAAd,EAAmB;AAClC;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,GAAL,CAASC,GAAT,CAAP;AACD,CAPD","file":"tan.js","sourcesContent":["module.exports = function tan (arg) {\n // discuss at: https://locutus.io/php/tan/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: Math.ceil(tan(8723321.4) * 10000000)\n // returns 1: 54251849\n\n return Math.tan(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/tanh.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function tanh(arg) {
4 | // discuss at: https://locutus.io/php/tanh/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // imprived by: Robert Eisele (https://www.xarg.org/)
7 | // example 1: tanh(5.4251848798444815)
8 | // returns 1: 0.9999612058841574
9 |
10 | return 1 - 2 / (Math.exp(2 * arg) + 1);
11 | };
12 | //# sourceMappingURL=tanh.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/math/tanh.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/math/tanh.js"],"names":["module","exports","tanh","arg","Math","exp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;AACA;;AAEA,SAAO,IAAI,KAAKC,KAAKC,GAAL,CAAS,IAAIF,GAAb,IAAoB,CAAzB,CAAX;AACD,CARD","file":"tanh.js","sourcesContent":["module.exports = function tanh (arg) {\n // discuss at: https://locutus.io/php/tanh/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // imprived by: Robert Eisele (https://www.xarg.org/)\n // example 1: tanh(5.4251848798444815)\n // returns 1: 0.9999612058841574\n\n return 1 - 2 / (Math.exp(2 * arg) + 1)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/misc/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.pack = require('./pack');
4 | module.exports.uniqid = require('./uniqid');
5 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/misc/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/misc/index.js"],"names":["module","exports","pack","require","uniqid"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,IAAf,GAAsBC,QAAQ,QAAR,CAAtB;AACAH,OAAOC,OAAP,CAAeG,MAAf,GAAwBD,QAAQ,UAAR,CAAxB","file":"index.js","sourcesContent":["module.exports.pack = require('./pack')\nmodule.exports.uniqid = require('./uniqid')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/net-gopher/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.gopher_parsedir = require('./gopher_parsedir');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/net-gopher/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/net-gopher/index.js"],"names":["module","exports","gopher_parsedir","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,eAAf,GAAiCC,QAAQ,mBAAR,CAAjC","file":"index.js","sourcesContent":["module.exports.gopher_parsedir = require('./gopher_parsedir')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/network/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.inet_ntop = require('./inet_ntop');
4 | module.exports.inet_pton = require('./inet_pton');
5 | module.exports.ip2long = require('./ip2long');
6 | module.exports.long2ip = require('./long2ip');
7 | module.exports.setcookie = require('./setcookie');
8 | module.exports.setrawcookie = require('./setrawcookie');
9 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/network/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/network/index.js"],"names":["module","exports","inet_ntop","require","inet_pton","ip2long","long2ip","setcookie","setrawcookie"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,SAAf,GAA2BC,QAAQ,aAAR,CAA3B;AACAH,OAAOC,OAAP,CAAeG,SAAf,GAA2BD,QAAQ,aAAR,CAA3B;AACAH,OAAOC,OAAP,CAAeI,OAAf,GAAyBF,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeK,OAAf,GAAyBH,QAAQ,WAAR,CAAzB;AACAH,OAAOC,OAAP,CAAeM,SAAf,GAA2BJ,QAAQ,aAAR,CAA3B;AACAH,OAAOC,OAAP,CAAeO,YAAf,GAA8BL,QAAQ,gBAAR,CAA9B","file":"index.js","sourcesContent":["module.exports.inet_ntop = require('./inet_ntop')\nmodule.exports.inet_pton = require('./inet_pton')\nmodule.exports.ip2long = require('./ip2long')\nmodule.exports.long2ip = require('./long2ip')\nmodule.exports.setcookie = require('./setcookie')\nmodule.exports.setrawcookie = require('./setrawcookie')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/network/long2ip.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function long2ip(ip) {
4 | // discuss at: https://locutus.io/php/long2ip/
5 | // original by: Waldo Malqui Silva (https://fayr.us/waldo/)
6 | // example 1: long2ip( 3221234342 )
7 | // returns 1: '192.0.34.166'
8 |
9 | if (!isFinite(ip)) {
10 | return false;
11 | }
12 |
13 | return [ip >>> 24 & 0xFF, ip >>> 16 & 0xFF, ip >>> 8 & 0xFF, ip & 0xFF].join('.');
14 | };
15 | //# sourceMappingURL=long2ip.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/network/long2ip.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/network/long2ip.js"],"names":["module","exports","long2ip","ip","isFinite","join"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,EAAlB,EAAsB;AACrC;AACA;AACA;AACA;;AAEA,MAAI,CAACC,SAASD,EAAT,CAAL,EAAmB;AACjB,WAAO,KAAP;AACD;;AAED,SAAO,CAACA,OAAO,EAAP,GAAY,IAAb,EAAmBA,OAAO,EAAP,GAAY,IAA/B,EAAqCA,OAAO,CAAP,GAAW,IAAhD,EAAsDA,KAAK,IAA3D,EAAiEE,IAAjE,CAAsE,GAAtE,CAAP;AACD,CAXD","file":"long2ip.js","sourcesContent":["module.exports = function long2ip (ip) {\n // discuss at: https://locutus.io/php/long2ip/\n // original by: Waldo Malqui Silva (https://fayr.us/waldo/)\n // example 1: long2ip( 3221234342 )\n // returns 1: '192.0.34.166'\n\n if (!isFinite(ip)) {\n return false\n }\n\n return [ip >>> 24 & 0xFF, ip >>> 16 & 0xFF, ip >>> 8 & 0xFF, ip & 0xFF].join('.')\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/network/setcookie.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function setcookie(name, value, expires, path, domain, secure) {
4 | // discuss at: https://locutus.io/php/setcookie/
5 | // original by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
6 | // bugfixed by: Andreas
7 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
8 | // improved by: Kevin van Zonneveld (https://kvz.io)
9 | // example 1: setcookie('author_name', 'Kevin van Zonneveld')
10 | // returns 1: true
11 |
12 | var setrawcookie = require('../network/setrawcookie');
13 | return setrawcookie(name, encodeURIComponent(value), expires, path, domain, secure);
14 | };
15 | //# sourceMappingURL=setcookie.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/pcre/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.preg_match = require('./preg_match');
4 | module.exports.preg_quote = require('./preg_quote');
5 | module.exports.preg_replace = require('./preg_replace');
6 | module.exports.sql_regcase = require('./sql_regcase');
7 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/pcre/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/pcre/index.js"],"names":["module","exports","preg_match","require","preg_quote","preg_replace","sql_regcase"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,UAAf,GAA4BC,QAAQ,cAAR,CAA5B;AACAH,OAAOC,OAAP,CAAeG,UAAf,GAA4BD,QAAQ,cAAR,CAA5B;AACAH,OAAOC,OAAP,CAAeI,YAAf,GAA8BF,QAAQ,gBAAR,CAA9B;AACAH,OAAOC,OAAP,CAAeK,WAAf,GAA6BH,QAAQ,eAAR,CAA7B","file":"index.js","sourcesContent":["module.exports.preg_match = require('./preg_match')\nmodule.exports.preg_quote = require('./preg_quote')\nmodule.exports.preg_replace = require('./preg_replace')\nmodule.exports.sql_regcase = require('./sql_regcase')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/pcre/preg_match.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function preg_match(regex, str) {
4 | // eslint-disable-line camelcase
5 | // original by: Muhammad Humayun (https://github.com/ronypt)
6 | // example 1: preg_match("^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$", "rony@pharaohtools.com")
7 | // returns 1: true
8 | // example 2: preg_match("^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$", "ronypharaohtools.com")
9 | // returns 2: false
10 | return new RegExp(regex).test(str);
11 | };
12 | //# sourceMappingURL=preg_match.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/pcre/preg_match.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/pcre/preg_match.js"],"names":["module","exports","preg_match","regex","str","RegExp","test"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,CAAqBC,KAArB,EAA4BC,GAA5B,EAAiC;AAAE;AAClD;AACA;AACA;AACA;AACA;AACA,SAAQ,IAAIC,MAAJ,CAAWF,KAAX,EAAkBG,IAAlB,CAAuBF,GAAvB,CAAR;AACD,CAPD","file":"preg_match.js","sourcesContent":["module.exports = function preg_match (regex, str) { // eslint-disable-line camelcase\n // original by: Muhammad Humayun (https://github.com/ronypt)\n // example 1: preg_match(\"^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\\\.[a-zA-Z]{2,6}$\", \"rony@pharaohtools.com\")\n // returns 1: true\n // example 2: preg_match(\"^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\\\.[a-zA-Z]{2,6}$\", \"ronypharaohtools.com\")\n // returns 2: false\n return (new RegExp(regex).test(str))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/pcre/preg_quote.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function preg_quote(str, delimiter) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/preg_quote/
6 | // original by: booeyOH
7 | // improved by: Ates Goral (https://magnetiq.com)
8 | // improved by: Kevin van Zonneveld (https://kvz.io)
9 | // improved by: Brett Zamir (https://brett-zamir.me)
10 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
11 | // example 1: preg_quote("$40")
12 | // returns 1: '\\$40'
13 | // example 2: preg_quote("*RRRING* Hello?")
14 | // returns 2: '\\*RRRING\\* Hello\\?'
15 | // example 3: preg_quote("\\.+*?[^]$(){}=!<>|:")
16 | // returns 3: '\\\\\\.\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:'
17 |
18 | return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&');
19 | };
20 | //# sourceMappingURL=preg_quote.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/addslashes.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function addslashes(str) {
4 | // discuss at: https://locutus.io/php/addslashes/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: Ates Goral (https://magnetiq.com)
7 | // improved by: marrtins
8 | // improved by: Nate
9 | // improved by: Onno Marsman (https://twitter.com/onnomarsman)
10 | // improved by: Brett Zamir (https://brett-zamir.me)
11 | // improved by: Oskar Larsson Högfeldt (https://oskar-lh.name/)
12 | // input by: Denny Wardhana
13 | // example 1: addslashes("kevin's birthday")
14 | // returns 1: "kevin\\'s birthday"
15 |
16 | return (str + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0');
17 | };
18 | //# sourceMappingURL=addslashes.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/bin2hex.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function bin2hex(s) {
4 | // discuss at: https://locutus.io/php/bin2hex/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // bugfixed by: Linuxworld
8 | // improved by: ntoniazzi (https://locutus.io/php/bin2hex:361#comment_177616)
9 | // example 1: bin2hex('Kev')
10 | // returns 1: '4b6576'
11 | // example 2: bin2hex(String.fromCharCode(0x00))
12 | // returns 2: '00'
13 |
14 | var i = void 0;
15 | var l = void 0;
16 | var o = '';
17 | var n = void 0;
18 |
19 | s += '';
20 |
21 | for (i = 0, l = s.length; i < l; i++) {
22 | n = s.charCodeAt(i).toString(16);
23 | o += n.length < 2 ? '0' + n : n;
24 | }
25 |
26 | return o;
27 | };
28 | //# sourceMappingURL=bin2hex.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/chop.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function chop(str, charlist) {
4 | // discuss at: https://locutus.io/php/chop/
5 | // original by: Paulo Freitas
6 | // example 1: chop(' Kevin van Zonneveld ')
7 | // returns 1: ' Kevin van Zonneveld'
8 |
9 | var rtrim = require('../strings/rtrim');
10 | return rtrim(str, charlist);
11 | };
12 | //# sourceMappingURL=chop.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/chop.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/chop.js"],"names":["module","exports","chop","str","charlist","rtrim","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoBC,QAApB,EAA8B;AAC7C;AACA;AACA;AACA;;AAEA,MAAMC,QAAQC,QAAQ,kBAAR,CAAd;AACA,SAAOD,MAAMF,GAAN,EAAWC,QAAX,CAAP;AACD,CARD","file":"chop.js","sourcesContent":["module.exports = function chop (str, charlist) {\n // discuss at: https://locutus.io/php/chop/\n // original by: Paulo Freitas\n // example 1: chop(' Kevin van Zonneveld ')\n // returns 1: ' Kevin van Zonneveld'\n\n const rtrim = require('../strings/rtrim')\n return rtrim(str, charlist)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/chr.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function chr(codePt) {
4 | // discuss at: https://locutus.io/php/chr/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: chr(75) === 'K'
8 | // example 1: chr(65536) === '\uD800\uDC00'
9 | // returns 1: true
10 | // returns 1: true
11 |
12 | if (codePt > 0xFFFF) {
13 | // Create a four-byte string (length 2) since this code point is high
14 | // enough for the UTF-16 encoding (JavaScript internal use), to
15 | // require representation with two surrogates (reserved non-characters
16 | // used for building other characters; the first is "high" and the next "low")
17 | codePt -= 0x10000;
18 | return String.fromCharCode(0xD800 + (codePt >> 10), 0xDC00 + (codePt & 0x3FF));
19 | }
20 | return String.fromCharCode(codePt);
21 | };
22 | //# sourceMappingURL=chr.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/chunk_split.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function chunk_split(body, chunklen, end) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/chunk_split/
6 | // original by: Paulo Freitas
7 | // input by: Brett Zamir (https://brett-zamir.me)
8 | // bugfixed by: Kevin van Zonneveld (https://kvz.io)
9 | // improved by: Theriault (https://github.com/Theriault)
10 | // example 1: chunk_split('Hello world!', 1, '*')
11 | // returns 1: 'H*e*l*l*o* *w*o*r*l*d*!*'
12 | // example 2: chunk_split('Hello world!', 10, '*')
13 | // returns 2: 'Hello worl*d!*'
14 |
15 | chunklen = parseInt(chunklen, 10) || 76;
16 | end = end || '\r\n';
17 |
18 | if (chunklen < 1) {
19 | return false;
20 | }
21 |
22 | return body.match(new RegExp('.{0,' + chunklen + '}', 'g')).join(end);
23 | };
24 | //# sourceMappingURL=chunk_split.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/hex2bin.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function hex2bin(s) {
4 | // discuss at: https://locutus.io/php/hex2bin/
5 | // original by: Dumitru Uzun (https://duzun.me)
6 | // example 1: hex2bin('44696d61')
7 | // returns 1: 'Dima'
8 | // example 2: hex2bin('00')
9 | // returns 2: '\x00'
10 | // example 3: hex2bin('2f1q')
11 | // returns 3: false
12 |
13 | var ret = [];
14 | var i = 0;
15 | var l = void 0;
16 |
17 | s += '';
18 |
19 | for (l = s.length; i < l; i += 2) {
20 | var c = parseInt(s.substr(i, 1), 16);
21 | var k = parseInt(s.substr(i + 1, 1), 16);
22 | if (isNaN(c) || isNaN(k)) return false;
23 | ret.push(c << 4 | k);
24 | }
25 |
26 | return String.fromCharCode.apply(String, ret);
27 | };
28 | //# sourceMappingURL=hex2bin.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/join.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function join(glue, pieces) {
4 | // discuss at: https://locutus.io/php/join/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // example 1: join(' ', ['Kevin', 'van', 'Zonneveld'])
7 | // returns 1: 'Kevin van Zonneveld'
8 |
9 | var implode = require('../strings/implode');
10 | return implode(glue, pieces);
11 | };
12 | //# sourceMappingURL=join.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/join.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/join.js"],"names":["module","exports","join","glue","pieces","implode","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,IAAf,EAAqBC,MAArB,EAA6B;AAC5C;AACA;AACA;AACA;;AAEA,MAAMC,UAAUC,QAAQ,oBAAR,CAAhB;AACA,SAAOD,QAAQF,IAAR,EAAcC,MAAd,CAAP;AACD,CARD","file":"join.js","sourcesContent":["module.exports = function join (glue, pieces) {\n // discuss at: https://locutus.io/php/join/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // example 1: join(' ', ['Kevin', 'van', 'Zonneveld'])\n // returns 1: 'Kevin van Zonneveld'\n\n const implode = require('../strings/implode')\n return implode(glue, pieces)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/lcfirst.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function lcfirst(str) {
4 | // discuss at: https://locutus.io/php/lcfirst/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // example 1: lcfirst('Kevin Van Zonneveld')
7 | // returns 1: 'kevin Van Zonneveld'
8 |
9 | str += '';
10 | var f = str.charAt(0).toLowerCase();
11 | return f + str.substr(1);
12 | };
13 | //# sourceMappingURL=lcfirst.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/lcfirst.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/lcfirst.js"],"names":["module","exports","lcfirst","str","f","charAt","toLowerCase","substr"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,GAAlB,EAAuB;AACtC;AACA;AACA;AACA;;AAEAA,SAAO,EAAP;AACA,MAAMC,IAAID,IAAIE,MAAJ,CAAW,CAAX,EACPC,WADO,EAAV;AAEA,SAAOF,IAAID,IAAII,MAAJ,CAAW,CAAX,CAAX;AACD,CAVD","file":"lcfirst.js","sourcesContent":["module.exports = function lcfirst (str) {\n // discuss at: https://locutus.io/php/lcfirst/\n // original by: Brett Zamir (https://brett-zamir.me)\n // example 1: lcfirst('Kevin Van Zonneveld')\n // returns 1: 'kevin Van Zonneveld'\n\n str += ''\n const f = str.charAt(0)\n .toLowerCase()\n return f + str.substr(1)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/ltrim.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ltrim(str, charlist) {
4 | // discuss at: https://locutus.io/php/ltrim/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // input by: Erkekjetter
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
9 | // example 1: ltrim(' Kevin van Zonneveld ')
10 | // returns 1: 'Kevin van Zonneveld '
11 |
12 | charlist = !charlist ? ' \\s\xA0' : (charlist + '').replace(/([[\]().?/*{}+$^:])/g, '$1');
13 |
14 | var re = new RegExp('^[' + charlist + ']+', 'g');
15 |
16 | return (str + '').replace(re, '');
17 | };
18 | //# sourceMappingURL=ltrim.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/printf.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function printf() {
4 | // discuss at: https://locutus.io/php/printf/
5 | // original by: Ash Searle (https://hexmen.com/blog/)
6 | // improved by: Michael White (https://getsprink.com)
7 | // improved by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: printf("%01.2f", 123.1)
9 | // returns 1: 6
10 |
11 | var sprintf = require('../strings/sprintf');
12 | var echo = require('../strings/echo');
13 | var ret = sprintf.apply(this, arguments);
14 | echo(ret);
15 | return ret.length;
16 | };
17 | //# sourceMappingURL=printf.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/printf.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/printf.js"],"names":["module","exports","printf","sprintf","require","echo","ret","apply","arguments","length"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,GAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,UAAUC,QAAQ,oBAAR,CAAhB;AACA,MAAMC,OAAOD,QAAQ,iBAAR,CAAb;AACA,MAAME,MAAMH,QAAQI,KAAR,CAAc,IAAd,EAAoBC,SAApB,CAAZ;AACAH,OAAKC,GAAL;AACA,SAAOA,IAAIG,MAAX;AACD,CAbD","file":"printf.js","sourcesContent":["module.exports = function printf () {\n // discuss at: https://locutus.io/php/printf/\n // original by: Ash Searle (https://hexmen.com/blog/)\n // improved by: Michael White (https://getsprink.com)\n // improved by: Brett Zamir (https://brett-zamir.me)\n // example 1: printf(\"%01.2f\", 123.1)\n // returns 1: 6\n\n const sprintf = require('../strings/sprintf')\n const echo = require('../strings/echo')\n const ret = sprintf.apply(this, arguments)\n echo(ret)\n return ret.length\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/quotemeta.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function quotemeta(str) {
4 | // discuss at: https://locutus.io/php/quotemeta/
5 | // original by: Paulo Freitas
6 | // example 1: quotemeta(". + * ? ^ ( $ )")
7 | // returns 1: '\\. \\+ \\* \\? \\^ \\( \\$ \\)'
8 |
9 | return (str + '').replace(/([.\\+*?[^\]$()])/g, '\\$1');
10 | };
11 | //# sourceMappingURL=quotemeta.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/quotemeta.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/quotemeta.js"],"names":["module","exports","quotemeta","str","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,GAApB,EAAyB;AACxC;AACA;AACA;AACA;;AAEA,SAAO,CAACA,MAAM,EAAP,EACJC,OADI,CACI,oBADJ,EAC0B,MAD1B,CAAP;AAED,CARD","file":"quotemeta.js","sourcesContent":["module.exports = function quotemeta (str) {\n // discuss at: https://locutus.io/php/quotemeta/\n // original by: Paulo Freitas\n // example 1: quotemeta(\". + * ? ^ ( $ )\")\n // returns 1: '\\\\. \\\\+ \\\\* \\\\? \\\\^ \\\\( \\\\$ \\\\)'\n\n return (str + '')\n .replace(/([.\\\\+*?[^\\]$()])/g, '\\\\$1')\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/rtrim.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function rtrim(str, charlist) {
4 | // discuss at: https://locutus.io/php/rtrim/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // input by: Erkekjetter
7 | // input by: rem
8 | // improved by: Kevin van Zonneveld (https://kvz.io)
9 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
10 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
11 | // example 1: rtrim(' Kevin van Zonneveld ')
12 | // returns 1: ' Kevin van Zonneveld'
13 |
14 | charlist = !charlist ? ' \\s\xA0' : (charlist + '').replace(/([[\]().?/*{}+$^:])/g, '\\$1');
15 |
16 | var re = new RegExp('[' + charlist + ']+$', 'g');
17 |
18 | return (str + '').replace(re, '');
19 | };
20 | //# sourceMappingURL=rtrim.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/sha1_file.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function sha1_file(str_filename) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/sha1_file/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // note 1: Relies on file_get_contents which does not work in the browser, so Node only.
8 | // note 2: Keep in mind that in accordance with PHP, the whole file is buffered and then
9 | // note 2: hashed. We'd recommend Node's native crypto modules for faster and more
10 | // note 2: efficient hashing
11 | // example 1: sha1_file('test/never-change.txt')
12 | // returns 1: '0ea65a1f4b4d69712affc58240932f3eb8a2af66'
13 |
14 | var fileGetContents = require('../filesystem/file_get_contents');
15 | var sha1 = require('../strings/sha1');
16 | var buf = fileGetContents(str_filename);
17 |
18 | if (buf === false) {
19 | return false;
20 | }
21 |
22 | return sha1(buf);
23 | };
24 | //# sourceMappingURL=sha1_file.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/split.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function split(delimiter, string) {
4 | // discuss at: https://locutus.io/php/split/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // example 1: split(' ', 'Kevin van Zonneveld')
7 | // returns 1: ['Kevin', 'van', 'Zonneveld']
8 |
9 | var explode = require('../strings/explode');
10 | return explode(delimiter, string);
11 | };
12 | //# sourceMappingURL=split.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/split.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/split.js"],"names":["module","exports","split","delimiter","string","explode","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,SAAhB,EAA2BC,MAA3B,EAAmC;AAClD;AACA;AACA;AACA;;AAEA,MAAMC,UAAUC,QAAQ,oBAAR,CAAhB;AACA,SAAOD,QAAQF,SAAR,EAAmBC,MAAnB,CAAP;AACD,CARD","file":"split.js","sourcesContent":["module.exports = function split (delimiter, string) {\n // discuss at: https://locutus.io/php/split/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // example 1: split(' ', 'Kevin van Zonneveld')\n // returns 1: ['Kevin', 'van', 'Zonneveld']\n\n const explode = require('../strings/explode')\n return explode(delimiter, string)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/str_repeat.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function str_repeat(input, multiplier) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/str_repeat/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // improved by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
8 | // improved by: Ian Carter (https://euona.com/)
9 | // example 1: str_repeat('-=', 10)
10 | // returns 1: '-=-=-=-=-=-=-=-=-=-='
11 |
12 | var y = '';
13 | while (true) {
14 | if (multiplier & 1) {
15 | y += input;
16 | }
17 | multiplier >>= 1;
18 | if (multiplier) {
19 | input += input;
20 | } else {
21 | break;
22 | }
23 | }
24 | return y;
25 | };
26 | //# sourceMappingURL=str_repeat.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/str_rot13.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function str_rot13(str) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/str_rot13/
6 | // original by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
7 | // improved by: Ates Goral (https://magnetiq.com)
8 | // improved by: Rafał Kukawski (https://blog.kukawski.pl)
9 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
10 | // example 1: str_rot13('Kevin van Zonneveld')
11 | // returns 1: 'Xriva ina Mbaariryq'
12 | // example 2: str_rot13('Xriva ina Mbaariryq')
13 | // returns 2: 'Kevin van Zonneveld'
14 | // example 3: str_rot13(33)
15 | // returns 3: '33'
16 |
17 | return (str + '').replace(/[a-z]/gi, function (s) {
18 | return String.fromCharCode(s.charCodeAt(0) + (s.toLowerCase() < 'n' ? 13 : -13));
19 | });
20 | };
21 | //# sourceMappingURL=str_rot13.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/str_shuffle.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function str_shuffle(str) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/str_shuffle/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: var $shuffled = str_shuffle("abcdef")
8 | // example 1: var $result = $shuffled.length
9 | // returns 1: 6
10 |
11 | if (arguments.length === 0) {
12 | throw new Error('Wrong parameter count for str_shuffle()');
13 | }
14 |
15 | if (str === null) {
16 | return '';
17 | }
18 |
19 | str += '';
20 |
21 | var newStr = '';
22 | var rand = void 0;
23 | var i = str.length;
24 |
25 | while (i) {
26 | rand = Math.floor(Math.random() * i);
27 | newStr += str.charAt(rand);
28 | str = str.substring(0, rand) + str.substr(rand + 1);
29 | i--;
30 | }
31 |
32 | return newStr;
33 | };
34 | //# sourceMappingURL=str_shuffle.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strcasecmp.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strcasecmp(fString1, fString2) {
4 | // discuss at: https://locutus.io/php/strcasecmp/
5 | // original by: Martijn Wieringa
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: strcasecmp('Hello', 'hello')
8 | // returns 1: 0
9 |
10 | var string1 = (fString1 + '').toLowerCase();
11 | var string2 = (fString2 + '').toLowerCase();
12 |
13 | if (string1 > string2) {
14 | return 1;
15 | } else if (string1 === string2) {
16 | return 0;
17 | }
18 |
19 | return -1;
20 | };
21 | //# sourceMappingURL=strcasecmp.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strcasecmp.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/strcasecmp.js"],"names":["module","exports","strcasecmp","fString1","fString2","string1","toLowerCase","string2"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,CAAqBC,QAArB,EAA+BC,QAA/B,EAAyC;AACxD;AACA;AACA;AACA;AACA;;AAEA,MAAMC,UAAU,CAACF,WAAW,EAAZ,EAAgBG,WAAhB,EAAhB;AACA,MAAMC,UAAU,CAACH,WAAW,EAAZ,EAAgBE,WAAhB,EAAhB;;AAEA,MAAID,UAAUE,OAAd,EAAuB;AACrB,WAAO,CAAP;AACD,GAFD,MAEO,IAAIF,YAAYE,OAAhB,EAAyB;AAC9B,WAAO,CAAP;AACD;;AAED,SAAO,CAAC,CAAR;AACD,CAjBD","file":"strcasecmp.js","sourcesContent":["module.exports = function strcasecmp (fString1, fString2) {\n // discuss at: https://locutus.io/php/strcasecmp/\n // original by: Martijn Wieringa\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: strcasecmp('Hello', 'hello')\n // returns 1: 0\n\n const string1 = (fString1 + '').toLowerCase()\n const string2 = (fString2 + '').toLowerCase()\n\n if (string1 > string2) {\n return 1\n } else if (string1 === string2) {\n return 0\n }\n\n return -1\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strchr.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strchr(haystack, needle, bool) {
4 | // discuss at: https://locutus.io/php/strchr/
5 | // original by: Philip Peterson
6 | // example 1: strchr('Kevin van Zonneveld', 'van')
7 | // returns 1: 'van Zonneveld'
8 | // example 2: strchr('Kevin van Zonneveld', 'van', true)
9 | // returns 2: 'Kevin '
10 |
11 | var strstr = require('../strings/strstr');
12 | return strstr(haystack, needle, bool);
13 | };
14 | //# sourceMappingURL=strchr.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strchr.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/strchr.js"],"names":["module","exports","strchr","haystack","needle","bool","strstr","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2BC,MAA3B,EAAmCC,IAAnC,EAAyC;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,SAASC,QAAQ,mBAAR,CAAf;AACA,SAAOD,OAAOH,QAAP,EAAiBC,MAAjB,EAAyBC,IAAzB,CAAP;AACD,CAVD","file":"strchr.js","sourcesContent":["module.exports = function strchr (haystack, needle, bool) {\n // discuss at: https://locutus.io/php/strchr/\n // original by: Philip Peterson\n // example 1: strchr('Kevin van Zonneveld', 'van')\n // returns 1: 'van Zonneveld'\n // example 2: strchr('Kevin van Zonneveld', 'van', true)\n // returns 2: 'Kevin '\n\n const strstr = require('../strings/strstr')\n return strstr(haystack, needle, bool)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strcmp.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function strcmp(str1, str2) {
4 | // discuss at: https://locutus.io/php/strcmp/
5 | // original by: Waldo Malqui Silva (https://waldo.malqui.info)
6 | // input by: Steve Hilder
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // revised by: gorthaur
9 | // example 1: strcmp( 'waldo', 'owald' )
10 | // returns 1: 1
11 | // example 2: strcmp( 'owald', 'waldo' )
12 | // returns 2: -1
13 |
14 | return str1 === str2 ? 0 : str1 > str2 ? 1 : -1;
15 | };
16 | //# sourceMappingURL=strcmp.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strcmp.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/strcmp.js"],"names":["module","exports","strcmp","str1","str2"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,IAAjB,EAAuBC,IAAvB,EAA6B;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASD,SAASC,IAAV,GAAkB,CAAlB,GAAwBD,OAAOC,IAAR,GAAgB,CAAhB,GAAoB,CAAC,CAApD;AACD,CAZD","file":"strcmp.js","sourcesContent":["module.exports = function strcmp (str1, str2) {\n // discuss at: https://locutus.io/php/strcmp/\n // original by: Waldo Malqui Silva (https://waldo.malqui.info)\n // input by: Steve Hilder\n // improved by: Kevin van Zonneveld (https://kvz.io)\n // revised by: gorthaur\n // example 1: strcmp( 'waldo', 'owald' )\n // returns 1: 1\n // example 2: strcmp( 'owald', 'waldo' )\n // returns 2: -1\n\n return ((str1 === str2) ? 0 : ((str1 > str2) ? 1 : -1))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strcoll.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strcoll(str1, str2) {
4 | // discuss at: https://locutus.io/php/strcoll/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // improved by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: strcoll('a', 'b')
8 | // returns 1: -1
9 |
10 | var setlocale = require('../strings/setlocale');
11 |
12 | var $global = typeof window !== 'undefined' ? window : global;
13 | $global.$locutus = $global.$locutus || {};
14 | var $locutus = $global.$locutus;
15 | $locutus.php = $locutus.php || {};
16 |
17 | setlocale('LC_ALL', 0); // ensure setup of localization variables takes place
18 |
19 | var cmp = $locutus.php.locales[$locutus.php.localeCategories.LC_COLLATE].LC_COLLATE;
20 |
21 | return cmp(str1, str2);
22 | };
23 | //# sourceMappingURL=strcoll.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/stripos.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function stripos(fHaystack, fNeedle, fOffset) {
4 | // discuss at: https://locutus.io/php/stripos/
5 | // original by: Martijn Wieringa
6 | // revised by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: stripos('ABC', 'a')
8 | // returns 1: 0
9 |
10 | var haystack = (fHaystack + '').toLowerCase();
11 | var needle = (fNeedle + '').toLowerCase();
12 | var index = 0;
13 |
14 | if ((index = haystack.indexOf(needle, fOffset)) !== -1) {
15 | return index;
16 | }
17 |
18 | return false;
19 | };
20 | //# sourceMappingURL=stripos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/stristr.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function stristr(haystack, needle, bool) {
4 | // discuss at: https://locutus.io/php/stristr/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: stristr('Kevin van Zonneveld', 'Van')
8 | // returns 1: 'van Zonneveld'
9 | // example 2: stristr('Kevin van Zonneveld', 'VAN', true)
10 | // returns 2: 'Kevin '
11 |
12 | var pos = 0;
13 |
14 | haystack += '';
15 | pos = haystack.toLowerCase().indexOf((needle + '').toLowerCase());
16 | if (pos === -1) {
17 | return false;
18 | } else {
19 | if (bool) {
20 | return haystack.substr(0, pos);
21 | } else {
22 | return haystack.slice(pos);
23 | }
24 | }
25 | };
26 | //# sourceMappingURL=stristr.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strncmp.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strncmp(str1, str2, lgth) {
4 | // discuss at: https://locutus.io/php/strncmp/
5 | // original by: Waldo Malqui Silva (https://waldo.malqui.info)
6 | // input by: Steve Hilder
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // revised by: gorthaur
9 | // reimplemented by: Brett Zamir (https://brett-zamir.me)
10 | // example 1: strncmp('aaa', 'aab', 2)
11 | // returns 1: 0
12 | // example 2: strncmp('aaa', 'aab', 3 )
13 | // returns 2: -1
14 |
15 | var s1 = (str1 + '').substr(0, lgth);
16 | var s2 = (str2 + '').substr(0, lgth);
17 |
18 | return s1 === s2 ? 0 : s1 > s2 ? 1 : -1;
19 | };
20 | //# sourceMappingURL=strncmp.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strpbrk.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function strpbrk(haystack, charList) {
4 | // discuss at: https://locutus.io/php/strpbrk/
5 | // original by: Alfonso Jimenez (https://www.alfonsojimenez.com)
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // revised by: Christoph
8 | // improved by: Brett Zamir (https://brett-zamir.me)
9 | // example 1: strpbrk('This is a Simple text.', 'is')
10 | // returns 1: 'is is a Simple text.'
11 |
12 | for (var i = 0, len = haystack.length; i < len; ++i) {
13 | if (charList.indexOf(haystack.charAt(i)) >= 0) {
14 | return haystack.slice(i);
15 | }
16 | }
17 | return false;
18 | };
19 | //# sourceMappingURL=strpbrk.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strpos.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strpos(haystack, needle, offset) {
4 | // discuss at: https://locutus.io/php/strpos/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: Brett Zamir (https://brett-zamir.me)
8 | // bugfixed by: Daniel Esteban
9 | // example 1: strpos('Kevin van Zonneveld', 'e', 5)
10 | // returns 1: 14
11 |
12 | var i = (haystack + '').indexOf(needle, offset || 0);
13 | return i === -1 ? false : i;
14 | };
15 | //# sourceMappingURL=strpos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strpos.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/strpos.js"],"names":["module","exports","strpos","haystack","needle","offset","i","indexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2BC,MAA3B,EAAmCC,MAAnC,EAA2C;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,IAAI,CAACH,WAAW,EAAZ,EACPI,OADO,CACCH,MADD,EACUC,UAAU,CADpB,CAAV;AAEA,SAAOC,MAAM,CAAC,CAAP,GAAW,KAAX,GAAmBA,CAA1B;AACD,CAZD","file":"strpos.js","sourcesContent":["module.exports = function strpos (haystack, needle, offset) {\n // discuss at: https://locutus.io/php/strpos/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Brett Zamir (https://brett-zamir.me)\n // bugfixed by: Daniel Esteban\n // example 1: strpos('Kevin van Zonneveld', 'e', 5)\n // returns 1: 14\n\n const i = (haystack + '')\n .indexOf(needle, (offset || 0))\n return i === -1 ? false : i\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strrchr.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strrchr(haystack, needle) {
4 | // discuss at: https://locutus.io/php/strrchr/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // input by: Jason Wong (https://carrot.org/)
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: strrchr("Line 1\nLine 2\nLine 3", 10).substr(1)
9 | // returns 1: 'Line 3'
10 |
11 | var pos = 0;
12 |
13 | if (typeof needle !== 'string') {
14 | needle = String.fromCharCode(parseInt(needle, 10));
15 | }
16 | needle = needle.charAt(0);
17 | pos = haystack.lastIndexOf(needle);
18 | if (pos === -1) {
19 | return false;
20 | }
21 |
22 | return haystack.substr(pos);
23 | };
24 | //# sourceMappingURL=strrchr.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strripos.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strripos(haystack, needle, offset) {
4 | // discuss at: https://locutus.io/php/strripos/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // input by: saulius
9 | // example 1: strripos('Kevin van Zonneveld', 'E')
10 | // returns 1: 16
11 |
12 | haystack = (haystack + '').toLowerCase();
13 | needle = (needle + '').toLowerCase();
14 |
15 | var i = -1;
16 | if (offset) {
17 | i = (haystack + '').slice(offset).lastIndexOf(needle); // strrpos' offset indicates starting point of range till end,
18 | // while lastIndexOf's optional 2nd argument indicates ending point of range from the beginning
19 | if (i !== -1) {
20 | i += offset;
21 | }
22 | } else {
23 | i = (haystack + '').lastIndexOf(needle);
24 | }
25 | return i >= 0 ? i : false;
26 | };
27 | //# sourceMappingURL=strripos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strstr.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strstr(haystack, needle, bool) {
4 | // discuss at: https://locutus.io/php/strstr/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // example 1: strstr('Kevin van Zonneveld', 'van')
9 | // returns 1: 'van Zonneveld'
10 | // example 2: strstr('Kevin van Zonneveld', 'van', true)
11 | // returns 2: 'Kevin '
12 | // example 3: strstr('name@example.com', '@')
13 | // returns 3: '@example.com'
14 | // example 4: strstr('name@example.com', '@', true)
15 | // returns 4: 'name'
16 |
17 | var pos = 0;
18 |
19 | haystack += '';
20 | pos = haystack.indexOf(needle);
21 | if (pos === -1) {
22 | return false;
23 | } else {
24 | if (bool) {
25 | return haystack.substr(0, pos);
26 | } else {
27 | return haystack.slice(pos);
28 | }
29 | }
30 | };
31 | //# sourceMappingURL=strstr.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strtolower.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strtolower(str) {
4 | // discuss at: https://locutus.io/php/strtolower/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: strtolower('Kevin van Zonneveld')
8 | // returns 1: 'kevin van zonneveld'
9 |
10 | return (str + '').toLowerCase();
11 | };
12 | //# sourceMappingURL=strtolower.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strtolower.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/strtolower.js"],"names":["module","exports","strtolower","str","toLowerCase"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,CAAqBC,GAArB,EAA0B;AACzC;AACA;AACA;AACA;AACA;;AAEA,SAAO,CAACA,MAAM,EAAP,EACJC,WADI,EAAP;AAED,CATD","file":"strtolower.js","sourcesContent":["module.exports = function strtolower (str) {\n // discuss at: https://locutus.io/php/strtolower/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: strtolower('Kevin van Zonneveld')\n // returns 1: 'kevin van zonneveld'\n\n return (str + '')\n .toLowerCase()\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strtoupper.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strtoupper(str) {
4 | // discuss at: https://locutus.io/php/strtoupper/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // example 1: strtoupper('Kevin van Zonneveld')
8 | // returns 1: 'KEVIN VAN ZONNEVELD'
9 |
10 | return (str + '').toUpperCase();
11 | };
12 | //# sourceMappingURL=strtoupper.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/strtoupper.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/strtoupper.js"],"names":["module","exports","strtoupper","str","toUpperCase"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,CAAqBC,GAArB,EAA0B;AACzC;AACA;AACA;AACA;AACA;;AAEA,SAAO,CAACA,MAAM,EAAP,EACJC,WADI,EAAP;AAED,CATD","file":"strtoupper.js","sourcesContent":["module.exports = function strtoupper (str) {\n // discuss at: https://locutus.io/php/strtoupper/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // improved by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: strtoupper('Kevin van Zonneveld')\n // returns 1: 'KEVIN VAN ZONNEVELD'\n\n return (str + '')\n .toUpperCase()\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/ucfirst.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function ucfirst(str) {
4 | // discuss at: https://locutus.io/php/ucfirst/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: ucfirst('kevin van zonneveld')
9 | // returns 1: 'Kevin van zonneveld'
10 |
11 | str += '';
12 | var f = str.charAt(0).toUpperCase();
13 | return f + str.substr(1);
14 | };
15 | //# sourceMappingURL=ucfirst.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/ucfirst.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/ucfirst.js"],"names":["module","exports","ucfirst","str","f","charAt","toUpperCase","substr"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,GAAlB,EAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEAA,SAAO,EAAP;AACA,MAAMC,IAAID,IAAIE,MAAJ,CAAW,CAAX,EACPC,WADO,EAAV;AAEA,SAAOF,IAAID,IAAII,MAAJ,CAAW,CAAX,CAAX;AACD,CAZD","file":"ucfirst.js","sourcesContent":["module.exports = function ucfirst (str) {\n // discuss at: https://locutus.io/php/ucfirst/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Brett Zamir (https://brett-zamir.me)\n // example 1: ucfirst('kevin van zonneveld')\n // returns 1: 'Kevin van zonneveld'\n\n str += ''\n const f = str.charAt(0)\n .toUpperCase()\n return f + str.substr(1)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/vprintf.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function vprintf(format, args) {
4 | // discuss at: https://locutus.io/php/vprintf/
5 | // original by: Ash Searle (https://hexmen.com/blog/)
6 | // improved by: Michael White (https://getsprink.com)
7 | // reimplemented by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: vprintf("%01.2f", 123.1)
9 | // returns 1: 6
10 |
11 | var sprintf = require('../strings/sprintf');
12 | var echo = require('../strings/echo');
13 | var ret = sprintf.apply(this, [format].concat(args));
14 | echo(ret);
15 |
16 | return ret.length;
17 | };
18 | //# sourceMappingURL=vprintf.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/vsprintf.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function vsprintf(format, args) {
4 | // discuss at: https://locutus.io/php/vsprintf/
5 | // original by: ejsanders
6 | // example 1: vsprintf('%04d-%02d-%02d', [1988, 8, 1])
7 | // returns 1: '1988-08-01'
8 |
9 | var sprintf = require('../strings/sprintf');
10 |
11 | return sprintf.apply(this, [format].concat(args));
12 | };
13 | //# sourceMappingURL=vsprintf.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/strings/vsprintf.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/strings/vsprintf.js"],"names":["module","exports","vsprintf","format","args","sprintf","require","apply","concat"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,QAAT,CAAmBC,MAAnB,EAA2BC,IAA3B,EAAiC;AAChD;AACA;AACA;AACA;;AAEA,MAAMC,UAAUC,QAAQ,oBAAR,CAAhB;;AAEA,SAAOD,QAAQE,KAAR,CAAc,IAAd,EAAoB,CAACJ,MAAD,EAASK,MAAT,CAAgBJ,IAAhB,CAApB,CAAP;AACD,CATD","file":"vsprintf.js","sourcesContent":["module.exports = function vsprintf (format, args) {\n // discuss at: https://locutus.io/php/vsprintf/\n // original by: ejsanders\n // example 1: vsprintf('%04d-%02d-%02d', [1988, 8, 1])\n // returns 1: '1988-08-01'\n\n const sprintf = require('../strings/sprintf')\n\n return sprintf.apply(this, [format].concat(args))\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/url/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.base64_decode = require('./base64_decode');
4 | module.exports.base64_encode = require('./base64_encode');
5 | module.exports.http_build_query = require('./http_build_query');
6 | module.exports.parse_url = require('./parse_url');
7 | module.exports.rawurldecode = require('./rawurldecode');
8 | module.exports.rawurlencode = require('./rawurlencode');
9 | module.exports.urldecode = require('./urldecode');
10 | module.exports.urlencode = require('./urlencode');
11 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/doubleval.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function doubleval(mixedVar) {
4 | // discuss at: https://locutus.io/php/doubleval/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
7 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
8 | // example 1: doubleval(186)
9 | // returns 1: 186.00
10 |
11 | var floatval = require('../var/floatval');
12 |
13 | return floatval(mixedVar);
14 | };
15 | //# sourceMappingURL=doubleval.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/doubleval.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/doubleval.js"],"names":["module","exports","doubleval","mixedVar","floatval","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,QAApB,EAA8B;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,WAAWC,QAAQ,iBAAR,CAAjB;;AAEA,SAAOD,SAASD,QAAT,CAAP;AACD,CAXD","file":"doubleval.js","sourcesContent":["module.exports = function doubleval (mixedVar) {\n // discuss at: https://locutus.io/php/doubleval/\n // original by: Brett Zamir (https://brett-zamir.me)\n // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes\n // note 1: it different from the PHP implementation. We can't fix this unfortunately.\n // example 1: doubleval(186)\n // returns 1: 186.00\n\n const floatval = require('../var/floatval')\n\n return floatval(mixedVar)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/floatval.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function floatval(mixedVar) {
4 | // discuss at: https://locutus.io/php/floatval/
5 | // original by: Michael White (https://getsprink.com)
6 | // note 1: The native parseFloat() method of JavaScript returns NaN
7 | // note 1: when it encounters a string before an int or float value.
8 | // example 1: floatval('150.03_page-section')
9 | // returns 1: 150.03
10 | // example 2: floatval('page: 3')
11 | // example 2: floatval('-50 + 8')
12 | // returns 2: 0
13 | // returns 2: -50
14 |
15 | return parseFloat(mixedVar) || 0;
16 | };
17 | //# sourceMappingURL=floatval.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/floatval.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/floatval.js"],"names":["module","exports","floatval","mixedVar","parseFloat"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,QAAT,CAAmBC,QAAnB,EAA6B;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQC,WAAWD,QAAX,KAAwB,CAAhC;AACD,CAbD","file":"floatval.js","sourcesContent":["module.exports = function floatval (mixedVar) {\n // discuss at: https://locutus.io/php/floatval/\n // original by: Michael White (https://getsprink.com)\n // note 1: The native parseFloat() method of JavaScript returns NaN\n // note 1: when it encounters a string before an int or float value.\n // example 1: floatval('150.03_page-section')\n // returns 1: 150.03\n // example 2: floatval('page: 3')\n // example 2: floatval('-50 + 8')\n // returns 2: 0\n // returns 2: -50\n\n return (parseFloat(mixedVar) || 0)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_binary.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_binary(vr) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_binary/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: is_binary('This could be binary as far as JavaScript knows...')
8 | // returns 1: true
9 |
10 | return typeof vr === 'string'; // If it is a string of any kind, it could be binary
11 | };
12 | //# sourceMappingURL=is_binary.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_binary.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_binary.js"],"names":["module","exports","is_binary","vr"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,EAApB,EAAwB;AAAE;AACzC;AACA;AACA;AACA;;AAEA,SAAO,OAAOA,EAAP,KAAc,QAArB,CANuC,CAMT;AAC/B,CAPD","file":"is_binary.js","sourcesContent":["module.exports = function is_binary (vr) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_binary/\n // original by: Brett Zamir (https://brett-zamir.me)\n // example 1: is_binary('This could be binary as far as JavaScript knows...')\n // returns 1: true\n\n return typeof vr === 'string' // If it is a string of any kind, it could be binary\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_bool.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function is_bool(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_bool/
6 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
7 | // improved by: CoursesWeb (https://www.coursesweb.net/)
8 | // example 1: is_bool(false)
9 | // returns 1: true
10 | // example 2: is_bool(0)
11 | // returns 2: false
12 |
13 | return mixedVar === true || mixedVar === false; // Faster (in FF) than type checking
14 | };
15 | //# sourceMappingURL=is_bool.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_bool.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_bool.js"],"names":["module","exports","is_bool","mixedVar"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,QAAlB,EAA4B;AAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,aAAa,IAAb,IAAqBA,aAAa,KAA1C,CAT2C,CASM;AAClD,CAVD","file":"is_bool.js","sourcesContent":["module.exports = function is_bool (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_bool/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: CoursesWeb (https://www.coursesweb.net/)\n // example 1: is_bool(false)\n // returns 1: true\n // example 2: is_bool(0)\n // returns 2: false\n\n return (mixedVar === true || mixedVar === false) // Faster (in FF) than type checking\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_buffer.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_buffer(vr) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_buffer/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // example 1: is_buffer('This could be binary or a regular string...')
8 | // returns 1: true
9 |
10 | return typeof vr === 'string';
11 | };
12 | //# sourceMappingURL=is_buffer.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_buffer.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_buffer.js"],"names":["module","exports","is_buffer","vr"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,EAApB,EAAwB;AAAE;AACzC;AACA;AACA;AACA;;AAEA,SAAO,OAAOA,EAAP,KAAc,QAArB;AACD,CAPD","file":"is_buffer.js","sourcesContent":["module.exports = function is_buffer (vr) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_buffer/\n // original by: Brett Zamir (https://brett-zamir.me)\n // example 1: is_buffer('This could be binary or a regular string...')\n // returns 1: true\n\n return typeof vr === 'string'\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_double.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_double(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_double/
6 | // original by: Paulo Freitas
7 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
8 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
9 | // example 1: is_double(186.31)
10 | // returns 1: true
11 |
12 | var _isFloat = require('../var/is_float');
13 | return _isFloat(mixedVar);
14 | };
15 | //# sourceMappingURL=is_double.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_double.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_double.js"],"names":["module","exports","is_double","mixedVar","_isFloat","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,QAApB,EAA8B;AAAE;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,WAAWC,QAAQ,iBAAR,CAAjB;AACA,SAAOD,SAASD,QAAT,CAAP;AACD,CAVD","file":"is_double.js","sourcesContent":["module.exports = function is_double (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_double/\n // original by: Paulo Freitas\n // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes\n // note 1: it different from the PHP implementation. We can't fix this unfortunately.\n // example 1: is_double(186.31)\n // returns 1: true\n\n const _isFloat = require('../var/is_float')\n return _isFloat(mixedVar)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_float.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function is_float(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_float/
6 | // original by: Paulo Freitas
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // improved by: WebDevHobo (https://webdevhobo.blogspot.com/)
9 | // improved by: Rafał Kukawski (https://blog.kukawski.pl)
10 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
11 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
12 | // example 1: is_float(186.31)
13 | // returns 1: true
14 |
15 | return +mixedVar === mixedVar && (!isFinite(mixedVar) || !!(mixedVar % 1));
16 | };
17 | //# sourceMappingURL=is_float.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_int.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function is_int(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_int/
6 | // original by: Alex
7 | // improved by: Kevin van Zonneveld (https://kvz.io)
8 | // improved by: WebDevHobo (https://webdevhobo.blogspot.com/)
9 | // improved by: Rafał Kukawski (https://blog.kukawski.pl)
10 | // revised by: Matt Bradley
11 | // bugfixed by: Kevin van Zonneveld (https://kvz.io)
12 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
13 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
14 | // example 1: is_int(23)
15 | // returns 1: true
16 | // example 2: is_int('23')
17 | // returns 2: false
18 | // example 3: is_int(23.5)
19 | // returns 3: false
20 | // example 4: is_int(true)
21 | // returns 4: false
22 |
23 | return mixedVar === +mixedVar && isFinite(mixedVar) && !(mixedVar % 1);
24 | };
25 | //# sourceMappingURL=is_int.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_integer.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_integer(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_integer/
6 | // original by: Paulo Freitas
7 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
8 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
9 | // example 1: is_integer(186.31)
10 | // returns 1: false
11 | // example 2: is_integer(12)
12 | // returns 2: true
13 |
14 | var _isInt = require('../var/is_int');
15 | return _isInt(mixedVar);
16 | };
17 | //# sourceMappingURL=is_integer.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_integer.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_integer.js"],"names":["module","exports","is_integer","mixedVar","_isInt","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,CAAqBC,QAArB,EAA+B;AAAE;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,SAASC,QAAQ,eAAR,CAAf;AACA,SAAOD,OAAOD,QAAP,CAAP;AACD,CAZD","file":"is_integer.js","sourcesContent":["module.exports = function is_integer (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_integer/\n // original by: Paulo Freitas\n // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes\n // note 1: it different from the PHP implementation. We can't fix this unfortunately.\n // example 1: is_integer(186.31)\n // returns 1: false\n // example 2: is_integer(12)\n // returns 2: true\n\n const _isInt = require('../var/is_int')\n return _isInt(mixedVar)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_long.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_long(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_long/
6 | // original by: Paulo Freitas
7 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
8 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
9 | // example 1: is_long(186.31)
10 | // returns 1: true
11 |
12 | var _isFloat = require('../var/is_float');
13 | return _isFloat(mixedVar);
14 | };
15 | //# sourceMappingURL=is_long.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_long.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_long.js"],"names":["module","exports","is_long","mixedVar","_isFloat","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,QAAlB,EAA4B;AAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,WAAWC,QAAQ,iBAAR,CAAjB;AACA,SAAOD,SAASD,QAAT,CAAP;AACD,CAVD","file":"is_long.js","sourcesContent":["module.exports = function is_long (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_long/\n // original by: Paulo Freitas\n // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes\n // note 1: it different from the PHP implementation. We can't fix this unfortunately.\n // example 1: is_long(186.31)\n // returns 1: true\n\n const _isFloat = require('../var/is_float')\n return _isFloat(mixedVar)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_null.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function is_null(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_null/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // example 1: is_null('23')
8 | // returns 1: false
9 | // example 2: is_null(null)
10 | // returns 2: true
11 |
12 | return mixedVar === null;
13 | };
14 | //# sourceMappingURL=is_null.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_null.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_null.js"],"names":["module","exports","is_null","mixedVar"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,QAAlB,EAA4B;AAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,aAAa,IAArB;AACD,CATD","file":"is_null.js","sourcesContent":["module.exports = function is_null (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_null/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // example 1: is_null('23')\n // returns 1: false\n // example 2: is_null(null)\n // returns 2: true\n\n return (mixedVar === null)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_real.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_real(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_real/
6 | // original by: Brett Zamir (https://brett-zamir.me)
7 | // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
8 | // note 1: it different from the PHP implementation. We can't fix this unfortunately.
9 | // example 1: is_real(186.31)
10 | // returns 1: true
11 |
12 | var _isFloat = require('../var/is_float');
13 | return _isFloat(mixedVar);
14 | };
15 | //# sourceMappingURL=is_real.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_real.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_real.js"],"names":["module","exports","is_real","mixedVar","_isFloat","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,QAAlB,EAA4B;AAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,WAAWC,QAAQ,iBAAR,CAAjB;AACA,SAAOD,SAASD,QAAT,CAAP;AACD,CAVD","file":"is_real.js","sourcesContent":["module.exports = function is_real (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_real/\n // original by: Brett Zamir (https://brett-zamir.me)\n // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes\n // note 1: it different from the PHP implementation. We can't fix this unfortunately.\n // example 1: is_real(186.31)\n // returns 1: true\n\n const _isFloat = require('../var/is_float')\n return _isFloat(mixedVar)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_scalar.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4 |
5 | module.exports = function is_scalar(mixedVar) {
6 | // eslint-disable-line camelcase
7 | // discuss at: https://locutus.io/php/is_scalar/
8 | // original by: Paulo Freitas
9 | // example 1: is_scalar(186.31)
10 | // returns 1: true
11 | // example 2: is_scalar({0: 'Kevin van Zonneveld'})
12 | // returns 2: false
13 |
14 | return (/boolean|number|string/.test(typeof mixedVar === "undefined" ? "undefined" : _typeof(mixedVar))
15 | );
16 | };
17 | //# sourceMappingURL=is_scalar.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_scalar.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_scalar.js"],"names":["module","exports","is_scalar","mixedVar","test"],"mappings":";;;;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,QAApB,EAA8B;AAAE;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQ,wBAAD,CAA0BC,IAA1B,QAAsCD,QAAtC,yCAAsCA,QAAtC;AAAP;AACD,CATD","file":"is_scalar.js","sourcesContent":["module.exports = function is_scalar (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_scalar/\n // original by: Paulo Freitas\n // example 1: is_scalar(186.31)\n // returns 1: true\n // example 2: is_scalar({0: 'Kevin van Zonneveld'})\n // returns 2: false\n\n return (/boolean|number|string/).test(typeof mixedVar)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_string.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function is_string(mixedVar) {
4 | // eslint-disable-line camelcase
5 | // discuss at: https://locutus.io/php/is_string/
6 | // original by: Kevin van Zonneveld (https://kvz.io)
7 | // example 1: is_string('23')
8 | // returns 1: true
9 | // example 2: is_string(23.5)
10 | // returns 2: false
11 |
12 | return typeof mixedVar === 'string';
13 | };
14 | //# sourceMappingURL=is_string.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/is_string.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/var/is_string.js"],"names":["module","exports","is_string","mixedVar"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,QAApB,EAA8B;AAAE;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQ,OAAOA,QAAP,KAAoB,QAA5B;AACD,CATD","file":"is_string.js","sourcesContent":["module.exports = function is_string (mixedVar) { // eslint-disable-line camelcase\n // discuss at: https://locutus.io/php/is_string/\n // original by: Kevin van Zonneveld (https://kvz.io)\n // example 1: is_string('23')\n // returns 1: true\n // example 2: is_string(23.5)\n // returns 2: false\n\n return (typeof mixedVar === 'string')\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/isset.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function isset() {
4 | // discuss at: https://locutus.io/php/isset/
5 | // original by: Kevin van Zonneveld (https://kvz.io)
6 | // improved by: FremyCompany
7 | // improved by: Onno Marsman (https://twitter.com/onnomarsman)
8 | // improved by: Rafał Kukawski (https://blog.kukawski.pl)
9 | // example 1: isset( undefined, true)
10 | // returns 1: false
11 | // example 2: isset( 'Kevin van Zonneveld' )
12 | // returns 2: true
13 |
14 | var a = arguments;
15 | var l = a.length;
16 | var i = 0;
17 | var undef = void 0;
18 |
19 | if (l === 0) {
20 | throw new Error('Empty isset');
21 | }
22 |
23 | while (i !== l) {
24 | if (a[i] === undef || a[i] === null) {
25 | return false;
26 | }
27 | i++;
28 | }
29 |
30 | return true;
31 | };
32 | //# sourceMappingURL=isset.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/var/strval.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function strval(str) {
4 | // discuss at: https://locutus.io/php/strval/
5 | // original by: Brett Zamir (https://brett-zamir.me)
6 | // improved by: Kevin van Zonneveld (https://kvz.io)
7 | // bugfixed by: Brett Zamir (https://brett-zamir.me)
8 | // example 1: strval({red: 1, green: 2, blue: 3, white: 4})
9 | // returns 1: 'Object'
10 |
11 | var gettype = require('../var/gettype');
12 | var type = '';
13 |
14 | if (str === null) {
15 | return '';
16 | }
17 |
18 | type = gettype(str);
19 |
20 | // Comment out the entire switch if you want JS-like
21 | // behavior instead of PHP behavior
22 | switch (type) {
23 | case 'boolean':
24 | if (str === true) {
25 | return '1';
26 | }
27 | return '';
28 | case 'array':
29 | return 'Array';
30 | case 'object':
31 | return 'Object';
32 | }
33 |
34 | return str;
35 | };
36 | //# sourceMappingURL=strval.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/xdiff/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.xdiff_string_diff = require('./xdiff_string_diff');
4 | module.exports.xdiff_string_patch = require('./xdiff_string_patch');
5 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/xdiff/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/xdiff/index.js"],"names":["module","exports","xdiff_string_diff","require","xdiff_string_patch"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,iBAAf,GAAmCC,QAAQ,qBAAR,CAAnC;AACAH,OAAOC,OAAP,CAAeG,kBAAf,GAAoCD,QAAQ,sBAAR,CAApC","file":"index.js","sourcesContent":["module.exports.xdiff_string_diff = require('./xdiff_string_diff')\nmodule.exports.xdiff_string_patch = require('./xdiff_string_patch')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/php/xml/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.utf8_decode = require('./utf8_decode');
4 | module.exports.utf8_encode = require('./utf8_encode');
5 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/php/xml/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/php/xml/index.js"],"names":["module","exports","utf8_decode","require","utf8_encode"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,WAAf,GAA6BC,QAAQ,eAAR,CAA7B;AACAH,OAAOC,OAAP,CAAeG,WAAf,GAA6BD,QAAQ,eAAR,CAA7B","file":"index.js","sourcesContent":["module.exports.utf8_decode = require('./utf8_decode')\nmodule.exports.utf8_encode = require('./utf8_encode')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/python/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.string = require('./string');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../src/python/index.js"],"names":["module","exports","string","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,MAAf,GAAwBC,QAAQ,UAAR,CAAxB","file":"index.js","sourcesContent":["module.exports.string = require('./string')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/ascii_letters.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
4 |
5 | module.exports = function ascii_letters() {
6 | // eslint-disable-line camelcase
7 | // original by: Yury Shapkarin (https://shapkarin.me)
8 | // example 1: ascii_letters()
9 | // returns 1: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
10 |
11 | var length = 26;
12 | var i = 65;
13 |
14 | return [].concat(_toConsumableArray(Array(length + 6 + length))).reduce(function (accumulator) {
15 | return accumulator + String.fromCharCode(i++);
16 | }, '').match(/[a-zA-Z]+/g).reverse().join('');
17 | };
18 | //# sourceMappingURL=ascii_letters.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/ascii_lowercase.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
4 |
5 | module.exports = function ascii_lowercase() {
6 | // eslint-disable-line camelcase
7 | // original by: Yury Shapkarin (https://shapkarin.me)
8 | // example 1: ascii_lowercase()
9 | // returns 1: 'abcdefghijklmnopqrstuvwxyz'
10 |
11 | var length = 26;
12 | var i = 65 + length + 6;
13 |
14 | return [].concat(_toConsumableArray(Array(length))).reduce(function (accumulator) {
15 | return accumulator + String.fromCharCode(i++);
16 | }, '');
17 | };
18 | //# sourceMappingURL=ascii_lowercase.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/ascii_lowercase.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/python/string/ascii_lowercase.js"],"names":["module","exports","ascii_lowercase","length","i","Array","reduce","accumulator","String","fromCharCode"],"mappings":";;;;AAAAA,OAAOC,OAAP,GAAiB,SAASC,eAAT,GAA4B;AAAE;AAC7C;AACA;AACA;;AAEA,MAAMC,SAAS,EAAf;AACA,MAAIC,IAAI,KAAKD,MAAL,GAAc,CAAtB;;AAEA,SAAO,6BAAIE,MAAMF,MAAN,CAAJ,GACJG,MADI,CACG,UAAUC,WAAV,EAAuB;AAC7B,WAAOA,cAAcC,OAAOC,YAAP,CAAoBL,GAApB,CAArB;AACD,GAHI,EAGF,EAHE,CAAP;AAID,CAZD","file":"ascii_lowercase.js","sourcesContent":["module.exports = function ascii_lowercase () { // eslint-disable-line camelcase\n // original by: Yury Shapkarin (https://shapkarin.me)\n // example 1: ascii_lowercase()\n // returns 1: 'abcdefghijklmnopqrstuvwxyz'\n\n const length = 26\n let i = 65 + length + 6\n\n return [...Array(length)]\n .reduce(function (accumulator) {\n return accumulator + String.fromCharCode(i++)\n }, '')\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/ascii_uppercase.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
4 |
5 | module.exports = function ascii_uppercase() {
6 | // eslint-disable-line camelcase
7 | // original by: Yury Shapkarin (https://shapkarin.me)
8 | // example 1: ascii_uppercase()
9 | // returns 1: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10 |
11 | var length = 26;
12 | var i = 65;
13 |
14 | return [].concat(_toConsumableArray(Array(length))).reduce(function (accumulator) {
15 | return accumulator + String.fromCharCode(i++);
16 | }, '');
17 | };
18 | //# sourceMappingURL=ascii_uppercase.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/ascii_uppercase.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/python/string/ascii_uppercase.js"],"names":["module","exports","ascii_uppercase","length","i","Array","reduce","accumulator","String","fromCharCode"],"mappings":";;;;AAAAA,OAAOC,OAAP,GAAiB,SAASC,eAAT,GAA4B;AAAE;AAC7C;AACA;AACA;;AAEA,MAAMC,SAAS,EAAf;AACA,MAAIC,IAAI,EAAR;;AAEA,SAAO,6BAAIC,MAAMF,MAAN,CAAJ,GACJG,MADI,CACG,UAAUC,WAAV,EAAuB;AAC7B,WAAOA,cAAcC,OAAOC,YAAP,CAAoBL,GAApB,CAArB;AACD,GAHI,EAGF,EAHE,CAAP;AAID,CAZD","file":"ascii_uppercase.js","sourcesContent":["module.exports = function ascii_uppercase () { // eslint-disable-line camelcase\n // original by: Yury Shapkarin (https://shapkarin.me)\n // example 1: ascii_uppercase()\n // returns 1: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n\n const length = 26\n let i = 65\n\n return [...Array(length)]\n .reduce(function (accumulator) {\n return accumulator + String.fromCharCode(i++)\n }, '')\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/capwords.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function capwords(str) {
4 | // discuss at: https://locutus.io/python/capwords/
5 | // original by: Jonas Raoni Soares Silva (https://www.jsfromhell.com)
6 | // improved by: Waldo Malqui Silva (https://waldo.malqui.info)
7 | // improved by: Robin
8 | // improved by: Kevin van Zonneveld (https://kvz.io)
9 | // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
10 | // input by: James (https://www.james-bell.co.uk/)
11 | // example 1: capwords('kevin van zonneveld')
12 | // returns 1: 'Kevin Van Zonneveld'
13 | // example 2: capwords('HELLO WORLD')
14 | // returns 2: 'HELLO WORLD'
15 |
16 | var pattern = /^([a-z\u00E0-\u00FC])|\s+([a-z\u00E0-\u00FC])/g;
17 | return (str + '').replace(pattern, function ($1) {
18 | return $1.toUpperCase();
19 | });
20 | };
21 | //# sourceMappingURL=capwords.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.ascii_letters = require('./ascii_letters');
4 | module.exports.ascii_lowercase = require('./ascii_lowercase');
5 | module.exports.ascii_uppercase = require('./ascii_uppercase');
6 | module.exports.capwords = require('./capwords');
7 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/python/string/index.js"],"names":["module","exports","ascii_letters","require","ascii_lowercase","ascii_uppercase","capwords"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,aAAf,GAA+BC,QAAQ,iBAAR,CAA/B;AACAH,OAAOC,OAAP,CAAeG,eAAf,GAAiCD,QAAQ,mBAAR,CAAjC;AACAH,OAAOC,OAAP,CAAeI,eAAf,GAAiCF,QAAQ,mBAAR,CAAjC;AACAH,OAAOC,OAAP,CAAeK,QAAf,GAA0BH,QAAQ,YAAR,CAA1B","file":"index.js","sourcesContent":["module.exports.ascii_letters = require('./ascii_letters')\nmodule.exports.ascii_lowercase = require('./ascii_lowercase')\nmodule.exports.ascii_uppercase = require('./ascii_uppercase')\nmodule.exports.capwords = require('./capwords')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/punctuation.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function punctuation() {
4 | // Original by: Clari (https://github.com/Clari-7744)
5 | // example 1: punctuation()
6 | // returns 1: "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
7 |
8 | return "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
9 | };
10 | //# sourceMappingURL=punctuation.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/python/string/punctuation.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/python/string/punctuation.js"],"names":["module","exports","punctuation"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,WAAT,GAAwB;AACvC;AACA;AACA;;AAEA,SAAO,oCAAP;AACD,CAND","file":"punctuation.js","sourcesContent":["module.exports = function punctuation () {\n // Original by: Clari (https://github.com/Clari-7744)\n // example 1: punctuation()\n // returns 1: \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\"\n\n return \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\"\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/ruby/Math/acos.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports = function acos(arg) {
4 | // discuss at: https://locutus.io/ruby/Math/acos/
5 | // original by: Onno Marsman (https://twitter.com/onnomarsman)
6 | // note 1: Sorry about the crippled test.
7 | // note 1: Needed because precision differs accross platforms.
8 | // example 1: (acos(0.3) + '').substr(0, 17)
9 | // returns 1: '1.266103672779499'
10 |
11 | return Math.acos(arg);
12 | };
13 | //# sourceMappingURL=acos.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/ruby/Math/acos.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/ruby/Math/acos.js"],"names":["module","exports","acos","arg","Math"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,KAAKF,IAAL,CAAUC,GAAV,CAAP;AACD,CATD","file":"acos.js","sourcesContent":["module.exports = function acos (arg) {\n // discuss at: https://locutus.io/ruby/Math/acos/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // note 1: Sorry about the crippled test.\n // note 1: Needed because precision differs accross platforms.\n // example 1: (acos(0.3) + '').substr(0, 17)\n // returns 1: '1.266103672779499'\n\n return Math.acos(arg)\n}\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/ruby/Math/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.acos = require('./acos');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/ruby/Math/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/ruby/Math/index.js"],"names":["module","exports","acos","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,IAAf,GAAsBC,QAAQ,QAAR,CAAtB","file":"index.js","sourcesContent":["module.exports.acos = require('./acos')\n"]}
--------------------------------------------------------------------------------
/node_modules/locutus/ruby/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports.Math = require('./Math');
4 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/node_modules/locutus/ruby/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../src/ruby/index.js"],"names":["module","exports","Math","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAeC,IAAf,GAAsBC,QAAQ,QAAR,CAAtB","file":"index.js","sourcesContent":["module.exports.Math = require('./Math')\n"]}
--------------------------------------------------------------------------------
/node_modules/prompt-sync/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "prompt-sync",
3 | "version": "4.2.0",
4 | "description": "a synchronous prompt for node.js",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "node test"
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "https://github.com/heapwolf/prompt-sync.git"
12 | },
13 | "keywords": [
14 | "prompt",
15 | "sync",
16 | "blocking",
17 | "readline",
18 | "input",
19 | "getline",
20 | "repl",
21 | "history"
22 | ],
23 | "contributors": [
24 | {
25 | "name": "Paolo Fragomeni",
26 | "email": "paolo@async.ly"
27 | },
28 | {
29 | "name": "David Mark Clements",
30 | "email": "david.clements@nearform.com"
31 | }
32 | ],
33 | "license": "MIT",
34 | "devDependencies": {
35 | "prompt-sync-history": "^1.0.1"
36 | },
37 | "dependencies": {
38 | "strip-ansi": "^5.0.0"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/node_modules/strip-ansi/index.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
3 |
4 | @example
5 | ```
6 | import stripAnsi from 'strip-ansi';
7 |
8 | stripAnsi('\u001B[4mUnicorn\u001B[0m');
9 | //=> 'Unicorn'
10 |
11 | stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
12 | //=> 'Click'
13 | ```
14 | */
15 | export default function stripAnsi(string: string): string;
16 |
--------------------------------------------------------------------------------
/node_modules/strip-ansi/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | const ansiRegex = require('ansi-regex');
3 |
4 | const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
5 |
6 | module.exports = stripAnsi;
7 | module.exports.default = stripAnsi;
8 |
--------------------------------------------------------------------------------
/node_modules/strip-ansi/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "strip-ansi",
3 | "version": "5.2.0",
4 | "description": "Strip ANSI escape codes from a string",
5 | "license": "MIT",
6 | "repository": "chalk/strip-ansi",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "sindresorhus.com"
11 | },
12 | "engines": {
13 | "node": ">=6"
14 | },
15 | "scripts": {
16 | "test": "xo && ava && tsd-check"
17 | },
18 | "files": [
19 | "index.js",
20 | "index.d.ts"
21 | ],
22 | "keywords": [
23 | "strip",
24 | "trim",
25 | "remove",
26 | "ansi",
27 | "styles",
28 | "color",
29 | "colour",
30 | "colors",
31 | "terminal",
32 | "console",
33 | "string",
34 | "tty",
35 | "escape",
36 | "formatting",
37 | "rgb",
38 | "256",
39 | "shell",
40 | "xterm",
41 | "log",
42 | "logging",
43 | "command-line",
44 | "text"
45 | ],
46 | "dependencies": {
47 | "ansi-regex": "^4.1.0"
48 | },
49 | "devDependencies": {
50 | "ava": "^1.3.1",
51 | "tsd-check": "^0.5.0",
52 | "xo": "^0.24.0"
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/node_modules/tynt/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tynt",
3 | "version": "1.2.0",
4 | "description": "A tactile color library for Node.js' console.",
5 | "main": "./index.js",
6 | "bugs": {
7 | "url": "https://github.com/muzzen/tynt"
8 | },
9 | "homepage": "https://github.com/muzzen/tynt",
10 | "license": "MIT",
11 | "author": {
12 | "name": "Muzzen Technology",
13 | "email": "uiysgamer@gmail.com",
14 | "url": "https://github.com/muzzen"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "chalk": "^5.2.0",
4 | "locutus": "^2.0.16",
5 | "prompt-sync": "^4.2.0",
6 | "tynt": "^1.2.0"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GameCenter.js:
--------------------------------------------------------------------------------
1 | const globalManager = require("./Managers/GlobalManager");
2 |
3 | let prompt = require("prompt-sync")({sigint: true});
4 |
5 | console.log(globalManager.startGame)
6 |
7 | let gameChoice = prompt(globalManager.chooseGame);
8 |
9 | if(gameChoice !== "1" && gameChoice !== "2" && gameChoice !== "3") {
10 |
11 | console.warn(globalManager.needNumber)
12 | return;
13 | }
14 |
15 | console.clear()
16 |
17 | if(gameChoice === "1")
18 | require("./Games/PFC").startPFC();
19 | else if(gameChoice === "2")
20 | require("./Games/GuessTheNumber").startGTN();
21 | else if (gameChoice === "3")
22 | require("./Games/PileOuFace").startPOF();
23 |
--------------------------------------------------------------------------------
/src/Managers/GuessTheNumberManager.js:
--------------------------------------------------------------------------------
1 | let globalManager = require("../Managers/GlobalManager");
2 | let tynt = require("tynt");
3 |
4 | let partiesTry = globalManager.infoPrefix + " Combien d'essais voulez-vous ? "
5 |
6 | let reTry = globalManager.warnPrefix + " Râté, il te reste encore {number} essaie(s) !"
7 |
8 | let playerChoice = globalManager.gamePrefix + " {playerName}, devinez le nombre entre 1 et 10 qu'à choisis le robot ! "
9 |
10 | let resultInformations = tynt.Green("{playerName} a choisis le chiffre {number-player}, {robot} avait choisis le chiffre {number-robot} !");
11 |
12 | let finalResult = "\n--------------{number}--------------\n{resultInformations}\n\n{gameResult}\n--------------------------------------\n"
13 |
14 | module.exports = {
15 | partiesTry,
16 | reTry,
17 | playerChoice,
18 | resultInformations,
19 | finalResult
20 | }
--------------------------------------------------------------------------------
/src/Managers/PFCManager.js:
--------------------------------------------------------------------------------
1 | let globalManager = require("../Managers/GlobalManager");
2 | let tynt = require("tynt");
3 |
4 | let choiceList = [
5 | "Pierre",
6 | "Feuille",
7 | "Ciseau"
8 | ]
9 |
10 | let needValidValue = globalManager.warnPrefix + " Veuillez entrer une valeur valide : Pierre Feuille ou Ciseau !"
11 |
12 | let playerChoice = globalManager.gamePrefix + " {playerName} ! Pierre, Feuille, Ciseau ? "
13 |
14 | let resultInformations = tynt.Green("{playerName} a joué {playerChoice}, {botName} a joué {botChoice} !");
15 |
16 | let finalResult = "\n--------------{number}--------------\n{resultInformations}\n\n{gameResult}\n--------------------------------------\n"
17 |
18 | module.exports = {
19 |
20 | choiceList,
21 | needValidValue,
22 | playerChoice,
23 | resultInformations,
24 | finalResult
25 | }
--------------------------------------------------------------------------------
/src/Managers/PileOuFaceManager.js:
--------------------------------------------------------------------------------
1 | let globalManager = require("../Managers/GlobalManager");
2 | let tynt = require("tynt");
3 |
4 | let choiceList = [
5 |
6 | "Pile",
7 | "Face"
8 | ]
9 |
10 | let playerChoice = globalManager.gamePrefix + " {playerName}, Pile ou Face ? "
11 |
12 | let needValidValue = globalManager.warnPrefix + " Veuillez entrer une valeur valide : Pile, Face"
13 |
14 | let playerWon = tynt.Green("Vous avez gagné la partie !");
15 | let playerLoose = tynt.Green("Vous avez perdu la partie !");
16 |
17 | let robotLaunch = globalManager.gamePrefix + " Robot lance la pièce..."
18 |
19 | let resultInformations = tynt.Green("Vous avez choisis {player-choice}, la pièce est tombée sur {choice}")
20 |
21 | let finalResult = "\n------------------------------------\n{resultInformations}\n\n{gameResult}\n--------------------------------------\n"
22 |
23 | module.exports = {
24 | choiceList,
25 | playerChoice,
26 | needValidValue,
27 | playerWon,
28 | playerLoose,
29 | robotLaunch,
30 | resultInformations,
31 | finalResult
32 | }
--------------------------------------------------------------------------------