diff --git a/env_xbb_lastest_bo.zip b/env_xbb_lastest_bo.zip deleted file mode 100644 index be75acd6..00000000 Binary files a/env_xbb_lastest_bo.zip and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/Release/nothing.lib b/env_xbb_lastest_cheerio/build/Release/nothing.lib deleted file mode 100644 index 0f19a0bf..00000000 Binary files a/env_xbb_lastest_cheerio/build/Release/nothing.lib and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/CL.command.1.tlog b/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/CL.command.1.tlog deleted file mode 100644 index 46b134b1..00000000 --- a/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/CL.command.1.tlog +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/boda.lastbuildstate b/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/boda.lastbuildstate deleted file mode 100644 index 14b8f827..00000000 --- a/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/boda.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.34.31933:TargetPlatformVersion=10.0.22000.0: -Release|x64|D:\My_Dir\环境框架_xbb_lastest\build\| diff --git a/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/unsuccessfulbuild b/env_xbb_lastest_cheerio/build/Release/obj/boda/boda.tlog/unsuccessfulbuild deleted file mode 100644 index e69de29b..00000000 diff --git a/env_xbb_lastest_cheerio/build/binding.sln b/env_xbb_lastest_cheerio/build/binding.sln deleted file mode 100644 index 4f353e64..00000000 --- a/env_xbb_lastest_cheerio/build/binding.sln +++ /dev/null @@ -1,36 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2015 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "boda", "boda.vcxproj", "{58BCD6E2-894F-5575-B8EA-BB3438277F6A}" - ProjectSection(ProjectDependencies) = postProject - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F} = {4C3ED550-BD81-6C01-0ACF-78D78F796A4F} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nothing", "node_modules\node-addon-api\nothing.vcxproj", "{4C3ED550-BD81-6C01-0ACF-78D78F796A4F}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "(node_modules)", "..\node_modules", "{9D350B9E-06FB-960D-859F-B43C9597383A}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "(node-addon-api)", "..\node_modules\node-addon-api", "{AF891C37-E709-9CCC-0D50-0CCCC8CCC563}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Debug|x64.ActiveCfg = Debug|x64 - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Debug|x64.Build.0 = Debug|x64 - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Release|x64.ActiveCfg = Release|x64 - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Release|x64.Build.0 = Release|x64 - {58BCD6E2-894F-5575-B8EA-BB3438277F6A}.Debug|x64.ActiveCfg = Debug|x64 - {58BCD6E2-894F-5575-B8EA-BB3438277F6A}.Debug|x64.Build.0 = Debug|x64 - {58BCD6E2-894F-5575-B8EA-BB3438277F6A}.Release|x64.ActiveCfg = Release|x64 - {58BCD6E2-894F-5575-B8EA-BB3438277F6A}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {AF891C37-E709-9CCC-0D50-0CCCC8CCC563} = {9D350B9E-06FB-960D-859F-B43C9597383A} - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F} = {AF891C37-E709-9CCC-0D50-0CCCC8CCC563} - EndGlobalSection -EndGlobal diff --git a/env_xbb_lastest_cheerio/build/boda.vcxproj b/env_xbb_lastest_cheerio/build/boda.vcxproj deleted file mode 100644 index 845403bd..00000000 --- a/env_xbb_lastest_cheerio/build/boda.vcxproj +++ /dev/null @@ -1,154 +0,0 @@ - - - - - Debug - x64 - - - Release - x64 - - - - {58BCD6E2-894F-5575-B8EA-BB3438277F6A} - Win32Proj - boda - true - x64 - 10.0.22000.0 - - - - DynamicLibrary - - - v143 - - - - - - - - - - $(ExecutablePath);$(MSBuildProjectDirectory)\..\bin\;$(MSBuildProjectDirectory)\..\bin\ - true - $(Configuration)\obj\$(ProjectName)\ - false - true - $(SolutionDir)$(Configuration)\ - .node - .node - .node - .node - $(ProjectName) - $(OutDir)\$(ProjectName).node - - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;D:\My_Dir\环境框架_xbb_lastest\node_modules\node-addon-api;%(AdditionalIncludeDirectories) - /Zc:__cplusplus -std:c++17 %(AdditionalOptions) - EnableFastChecks - true - OldStyle - 4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings) - false - false - true - false - Disabled - NotUsing - NODE_GYP_MODULE_NAME=boda;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;NAPI_DISABLE_CPP_EXCEPTIONS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions) - MultiThreadedDebug - true - true - false - Level3 - true - - - /LTCG:INCREMENTAL %(AdditionalOptions) - - - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\bobo\\AppData\\Local\\node-gyp\\Cache\\17.9.1\\x64\\node.lib" - /LTCG:INCREMENTAL /ignore:4199 %(AdditionalOptions) - node.exe;%(DelayLoadDLLs) - true - true - true - $(OutDir)$(ProjectName).node - true - .node - MachineX64 - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;D:\My_Dir\环境框架_xbb_lastest\node_modules\node-addon-api;%(AdditionalIncludeDirectories) - NODE_GYP_MODULE_NAME=boda;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;NAPI_DISABLE_CPP_EXCEPTIONS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) - - - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;D:\My_Dir\环境框架_xbb_lastest\node_modules\node-addon-api;%(AdditionalIncludeDirectories) - /Zc:__cplusplus -std:c++17 %(AdditionalOptions) - true - OldStyle - 4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings) - false - Speed - true - AnySuitable - true - true - true - Full - NotUsing - NODE_GYP_MODULE_NAME=boda;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;NAPI_DISABLE_CPP_EXCEPTIONS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";%(PreprocessorDefinitions) - MultiThreaded - false - true - true - false - Level3 - true - - - /LTCG:INCREMENTAL %(AdditionalOptions) - - - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\bobo\\AppData\\Local\\node-gyp\\Cache\\17.9.1\\x64\\node.lib" - /LTCG:INCREMENTAL /ignore:4199 %(AdditionalOptions) - node.exe;%(DelayLoadDLLs) - true - true - true - $(OutDir)$(ProjectName).node - true - .node - MachineX64 - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;D:\My_Dir\环境框架_xbb_lastest\node_modules\node-addon-api;%(AdditionalIncludeDirectories) - NODE_GYP_MODULE_NAME=boda;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;NAPI_DISABLE_CPP_EXCEPTIONS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";%(PreprocessorDefinitions);%(PreprocessorDefinitions) - - - - - - - - $(IntDir)\c++_src\main.obj - - - - - - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F} - false - - - - - - diff --git a/env_xbb_lastest_cheerio/build/boda.vcxproj.filters b/env_xbb_lastest_cheerio/build/boda.vcxproj.filters deleted file mode 100644 index 726b36f9..00000000 --- a/env_xbb_lastest_cheerio/build/boda.vcxproj.filters +++ /dev/null @@ -1,40 +0,0 @@ - - - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {D204A00C-2CBA-5A59-2531-B9A5C2898CC9} - - - {E5D29F2B-0177-9942-CA95-0FF700094F89} - - - {B529C042-30F7-BDBA-350E-0F9BB018A35B} - - - {56DF7A98-063D-FB9D-485C-089023B4C16A} - - - {77348C0E-2034-7791-74D5-63C077DF5A3B} - - - {8CDEE807-BC53-E450-C8B8-4DEBB66742D4} - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - - - ..\c++_src - - - D:\GlobalNode\node_modules\node-gyp\src - - - .. - - - diff --git a/env_xbb_lastest_cheerio/build/config.gypi b/env_xbb_lastest_cheerio/build/config.gypi deleted file mode 100644 index aafc1ee8..00000000 --- a/env_xbb_lastest_cheerio/build/config.gypi +++ /dev/null @@ -1,366 +0,0 @@ -# Do not edit. File was generated by node-gyp's "configure" step -{ - "target_defaults": { - "cflags": [], - "default_configuration": "Release", - "defines": [], - "include_dirs": [], - "libraries": [], - "msbuild_toolset": "v143", - "msvs_windows_target_platform_version": "10.0.22000.0" - }, - "variables": { - "asan": 0, - "coverage": "false", - "dcheck_always_on": 0, - "debug_nghttp2": "false", - "debug_node": "false", - "enable_lto": "false", - "enable_pgo_generate": "false", - "enable_pgo_use": "false", - "error_on_warn": "false", - "force_dynamic_crt": 0, - "host_arch": "x64", - "icu_data_in": "..\\..\\deps\\icu-tmp\\icudt70l.dat", - "icu_endianness": "l", - "icu_gyp_path": "tools/icu/icu-generic.gyp", - "icu_path": "deps/icu-small", - "icu_small": "false", - "icu_ver_major": "70", - "is_debug": 0, - "llvm_version": "0.0", - "napi_build_version": "8", - "nasm_version": "2.15", - "node_byteorder": "little", - "node_debug_lib": "false", - "node_enable_d8": "false", - "node_fipsinstall": "false", - "node_install_corepack": "true", - "node_install_npm": "true", - "node_library_files": [ - "lib/assert.js", - "lib/async_hooks.js", - "lib/buffer.js", - "lib/child_process.js", - "lib/cluster.js", - "lib/console.js", - "lib/constants.js", - "lib/crypto.js", - "lib/dgram.js", - "lib/diagnostics_channel.js", - "lib/dns.js", - "lib/domain.js", - "lib/events.js", - "lib/fs.js", - "lib/http.js", - "lib/http2.js", - "lib/https.js", - "lib/inspector.js", - "lib/module.js", - "lib/net.js", - "lib/os.js", - "lib/path.js", - "lib/perf_hooks.js", - "lib/process.js", - "lib/punycode.js", - "lib/querystring.js", - "lib/readline.js", - "lib/repl.js", - "lib/stream.js", - "lib/string_decoder.js", - "lib/sys.js", - "lib/timers.js", - "lib/tls.js", - "lib/trace_events.js", - "lib/tty.js", - "lib/url.js", - "lib/util.js", - "lib/v8.js", - "lib/vm.js", - "lib/wasi.js", - "lib/worker_threads.js", - "lib/zlib.js", - "lib/_http_agent.js", - "lib/_http_client.js", - "lib/_http_common.js", - "lib/_http_incoming.js", - "lib/_http_outgoing.js", - "lib/_http_server.js", - "lib/_stream_duplex.js", - "lib/_stream_passthrough.js", - "lib/_stream_readable.js", - "lib/_stream_transform.js", - "lib/_stream_wrap.js", - "lib/_stream_writable.js", - "lib/_tls_common.js", - "lib/_tls_wrap.js", - "lib/assert/strict.js", - "lib/dns/promises.js", - "lib/fs/promises.js", - "lib/internal/abort_controller.js", - "lib/internal/assert.js", - "lib/internal/async_hooks.js", - "lib/internal/blob.js", - "lib/internal/blocklist.js", - "lib/internal/buffer.js", - "lib/internal/child_process.js", - "lib/internal/cli_table.js", - "lib/internal/constants.js", - "lib/internal/dgram.js", - "lib/internal/dtrace.js", - "lib/internal/encoding.js", - "lib/internal/errors.js", - "lib/internal/error_serdes.js", - "lib/internal/event_target.js", - "lib/internal/fixed_queue.js", - "lib/internal/freelist.js", - "lib/internal/freeze_intrinsics.js", - "lib/internal/heap_utils.js", - "lib/internal/histogram.js", - "lib/internal/http.js", - "lib/internal/idna.js", - "lib/internal/inspector_async_hook.js", - "lib/internal/js_stream_socket.js", - "lib/internal/linkedlist.js", - "lib/internal/net.js", - "lib/internal/options.js", - "lib/internal/priority_queue.js", - "lib/internal/promise_hooks.js", - "lib/internal/querystring.js", - "lib/internal/repl.js", - "lib/internal/socketaddress.js", - "lib/internal/socket_list.js", - "lib/internal/stream_base_commons.js", - "lib/internal/structured_clone.js", - "lib/internal/timers.js", - "lib/internal/trace_events_async_hooks.js", - "lib/internal/tty.js", - "lib/internal/url.js", - "lib/internal/util.js", - "lib/internal/v8_prof_polyfill.js", - "lib/internal/v8_prof_processor.js", - "lib/internal/validators.js", - "lib/internal/watchdog.js", - "lib/internal/worker.js", - "lib/internal/assert/assertion_error.js", - "lib/internal/assert/calltracker.js", - "lib/internal/bootstrap/environment.js", - "lib/internal/bootstrap/loaders.js", - "lib/internal/bootstrap/node.js", - "lib/internal/bootstrap/pre_execution.js", - "lib/internal/bootstrap/switches/does_not_own_process_state.js", - "lib/internal/bootstrap/switches/does_own_process_state.js", - "lib/internal/bootstrap/switches/is_main_thread.js", - "lib/internal/bootstrap/switches/is_not_main_thread.js", - "lib/internal/child_process/serialization.js", - "lib/internal/cluster/child.js", - "lib/internal/cluster/primary.js", - "lib/internal/cluster/round_robin_handle.js", - "lib/internal/cluster/shared_handle.js", - "lib/internal/cluster/utils.js", - "lib/internal/cluster/worker.js", - "lib/internal/console/constructor.js", - "lib/internal/console/global.js", - "lib/internal/crypto/aes.js", - "lib/internal/crypto/certificate.js", - "lib/internal/crypto/cipher.js", - "lib/internal/crypto/diffiehellman.js", - "lib/internal/crypto/dsa.js", - "lib/internal/crypto/ec.js", - "lib/internal/crypto/hash.js", - "lib/internal/crypto/hashnames.js", - "lib/internal/crypto/hkdf.js", - "lib/internal/crypto/keygen.js", - "lib/internal/crypto/keys.js", - "lib/internal/crypto/mac.js", - "lib/internal/crypto/pbkdf2.js", - "lib/internal/crypto/random.js", - "lib/internal/crypto/rsa.js", - "lib/internal/crypto/scrypt.js", - "lib/internal/crypto/sig.js", - "lib/internal/crypto/util.js", - "lib/internal/crypto/webcrypto.js", - "lib/internal/crypto/x509.js", - "lib/internal/debugger/inspect.js", - "lib/internal/debugger/inspect_client.js", - "lib/internal/debugger/inspect_repl.js", - "lib/internal/dns/promises.js", - "lib/internal/dns/utils.js", - "lib/internal/fs/dir.js", - "lib/internal/fs/promises.js", - "lib/internal/fs/read_file_context.js", - "lib/internal/fs/rimraf.js", - "lib/internal/fs/streams.js", - "lib/internal/fs/sync_write_stream.js", - "lib/internal/fs/utils.js", - "lib/internal/fs/watchers.js", - "lib/internal/fs/cp/cp-sync.js", - "lib/internal/fs/cp/cp.js", - "lib/internal/http2/compat.js", - "lib/internal/http2/core.js", - "lib/internal/http2/util.js", - "lib/internal/legacy/processbinding.js", - "lib/internal/main/check_syntax.js", - "lib/internal/main/eval_stdin.js", - "lib/internal/main/eval_string.js", - "lib/internal/main/inspect.js", - "lib/internal/main/mksnapshot.js", - "lib/internal/main/print_help.js", - "lib/internal/main/prof_process.js", - "lib/internal/main/repl.js", - "lib/internal/main/run_main_module.js", - "lib/internal/main/worker_thread.js", - "lib/internal/modules/package_json_reader.js", - "lib/internal/modules/run_main.js", - "lib/internal/modules/cjs/helpers.js", - "lib/internal/modules/cjs/loader.js", - "lib/internal/modules/esm/assert.js", - "lib/internal/modules/esm/create_dynamic_module.js", - "lib/internal/modules/esm/fetch_module.js", - "lib/internal/modules/esm/formats.js", - "lib/internal/modules/esm/get_format.js", - "lib/internal/modules/esm/get_source.js", - "lib/internal/modules/esm/handle_process_exit.js", - "lib/internal/modules/esm/initialize_import_meta.js", - "lib/internal/modules/esm/load.js", - "lib/internal/modules/esm/loader.js", - "lib/internal/modules/esm/module_job.js", - "lib/internal/modules/esm/module_map.js", - "lib/internal/modules/esm/resolve.js", - "lib/internal/modules/esm/translators.js", - "lib/internal/perf/event_loop_delay.js", - "lib/internal/perf/event_loop_utilization.js", - "lib/internal/perf/nodetiming.js", - "lib/internal/perf/observe.js", - "lib/internal/perf/performance.js", - "lib/internal/perf/performance_entry.js", - "lib/internal/perf/timerify.js", - "lib/internal/perf/usertiming.js", - "lib/internal/perf/utils.js", - "lib/internal/per_context/domexception.js", - "lib/internal/per_context/messageport.js", - "lib/internal/per_context/primordials.js", - "lib/internal/policy/manifest.js", - "lib/internal/policy/sri.js", - "lib/internal/process/esm_loader.js", - "lib/internal/process/execution.js", - "lib/internal/process/per_thread.js", - "lib/internal/process/policy.js", - "lib/internal/process/promises.js", - "lib/internal/process/report.js", - "lib/internal/process/signal.js", - "lib/internal/process/task_queues.js", - "lib/internal/process/warning.js", - "lib/internal/process/worker_thread_only.js", - "lib/internal/readline/callbacks.js", - "lib/internal/readline/emitKeypressEvents.js", - "lib/internal/readline/interface.js", - "lib/internal/readline/promises.js", - "lib/internal/readline/utils.js", - "lib/internal/repl/await.js", - "lib/internal/repl/history.js", - "lib/internal/repl/utils.js", - "lib/internal/source_map/prepare_stack_trace.js", - "lib/internal/source_map/source_map.js", - "lib/internal/source_map/source_map_cache.js", - "lib/internal/streams/add-abort-signal.js", - "lib/internal/streams/buffer_list.js", - "lib/internal/streams/compose.js", - "lib/internal/streams/destroy.js", - "lib/internal/streams/duplex.js", - "lib/internal/streams/duplexify.js", - "lib/internal/streams/end-of-stream.js", - "lib/internal/streams/from.js", - "lib/internal/streams/lazy_transform.js", - "lib/internal/streams/legacy.js", - "lib/internal/streams/operators.js", - "lib/internal/streams/passthrough.js", - "lib/internal/streams/pipeline.js", - "lib/internal/streams/readable.js", - "lib/internal/streams/state.js", - "lib/internal/streams/transform.js", - "lib/internal/streams/utils.js", - "lib/internal/streams/writable.js", - "lib/internal/test/binding.js", - "lib/internal/test/transfer.js", - "lib/internal/tls/parse-cert-string.js", - "lib/internal/tls/secure-context.js", - "lib/internal/tls/secure-pair.js", - "lib/internal/util/comparisons.js", - "lib/internal/util/debuglog.js", - "lib/internal/util/inspect.js", - "lib/internal/util/inspector.js", - "lib/internal/util/iterable_weak_map.js", - "lib/internal/util/types.js", - "lib/internal/vm/module.js", - "lib/internal/webstreams/adapters.js", - "lib/internal/webstreams/compression.js", - "lib/internal/webstreams/encoding.js", - "lib/internal/webstreams/queuingstrategies.js", - "lib/internal/webstreams/readablestream.js", - "lib/internal/webstreams/transfer.js", - "lib/internal/webstreams/transformstream.js", - "lib/internal/webstreams/util.js", - "lib/internal/webstreams/writablestream.js", - "lib/internal/worker/io.js", - "lib/internal/worker/js_transferable.js", - "lib/path/posix.js", - "lib/path/win32.js", - "lib/readline/promises.js", - "lib/stream/consumers.js", - "lib/stream/promises.js", - "lib/stream/web.js", - "lib/timers/promises.js", - "lib/util/types.js" - ], - "node_module_version": 102, - "node_no_browser_globals": "false", - "node_prefix": "/usr/local", - "node_release_urlbase": "https://nodejs.org/download/release/", - "node_shared": "false", - "node_shared_brotli": "false", - "node_shared_cares": "false", - "node_shared_http_parser": "false", - "node_shared_libuv": "false", - "node_shared_nghttp2": "false", - "node_shared_nghttp3": "false", - "node_shared_ngtcp2": "false", - "node_shared_openssl": "false", - "node_shared_zlib": "false", - "node_tag": "", - "node_target_type": "executable", - "node_use_bundled_v8": "true", - "node_use_dtrace": "false", - "node_use_etw": "true", - "node_use_node_code_cache": "true", - "node_use_node_snapshot": "true", - "node_use_openssl": "true", - "node_use_v8_platform": "true", - "node_with_ltcg": "true", - "node_without_node_options": "false", - "openssl_is_fips": "false", - "openssl_quic": "true", - "ossfuzz": "false", - "shlib_suffix": "so.102", - "target_arch": "x64", - "v8_enable_31bit_smis_on_64bit_arch": 0, - "v8_enable_gdbjit": 0, - "v8_enable_hugepage": 0, - "v8_enable_i18n_support": 1, - "v8_enable_inspector": 1, - "v8_enable_lite_mode": 0, - "v8_enable_object_print": 1, - "v8_enable_pointer_compression": 0, - "v8_enable_webassembly": 1, - "v8_no_strict_aliasing": 1, - "v8_optimized_debug": 1, - "v8_promise_internal_field_count": 1, - "v8_random_seed": 0, - "v8_trace_maps": 0, - "v8_use_siphash": 1, - "want_separate_host_toolset": 0, - "nodedir": "C:\\Users\\bobo\\AppData\\Local\\node-gyp\\Cache\\17.9.1", - "standalone_static_library": 1, - "msbuild_path": "D:\\C++\\MSBuild\\Current\\Bin\\MSBuild.exe" - } -} diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/node_modules/node-addon-api/nothing.obj b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/node_modules/node-addon-api/nothing.obj deleted file mode 100644 index 7b4894a5..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/node_modules/node-addon-api/nothing.obj and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.lib.recipe b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.lib.recipe deleted file mode 100644 index a53f9611..00000000 --- a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.lib.recipe +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.command.1.tlog b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.command.1.tlog deleted file mode 100644 index db4662b2..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.command.1.tlog and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.read.1.tlog b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.read.1.tlog deleted file mode 100644 index 4e1d6253..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.read.1.tlog and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.write.1.tlog b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.write.1.tlog deleted file mode 100644 index 2092e291..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/CL.write.1.tlog and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib-link.read.1.tlog b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib-link.read.1.tlog deleted file mode 100644 index 877da844..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib-link.read.1.tlog and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib-link.write.1.tlog b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib-link.write.1.tlog deleted file mode 100644 index c50f4711..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib-link.write.1.tlog and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib.command.1.tlog b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib.command.1.tlog deleted file mode 100644 index bbd1681f..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/Lib.command.1.tlog and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/nothing.lastbuildstate b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/nothing.lastbuildstate deleted file mode 100644 index 14b8f827..00000000 --- a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/nothing.tlog/nothing.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.34.31933:TargetPlatformVersion=10.0.22000.0: -Release|x64|D:\My_Dir\环境框架_xbb_lastest\build\| diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/win_delay_load_hook.obj b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/win_delay_load_hook.obj deleted file mode 100644 index f14a1bba..00000000 Binary files a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/Release/obj/nothing/win_delay_load_hook.obj and /dev/null differ diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/node_api.sln b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/node_api.sln deleted file mode 100644 index 6af5cf34..00000000 --- a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/node_api.sln +++ /dev/null @@ -1,19 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2015 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nothing", "nothing.vcxproj", "{4C3ED550-BD81-6C01-0ACF-78D78F796A4F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Debug|x64.ActiveCfg = Debug|x64 - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Debug|x64.Build.0 = Debug|x64 - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Release|x64.ActiveCfg = Release|x64 - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/nothing.vcxproj b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/nothing.vcxproj deleted file mode 100644 index f8927706..00000000 --- a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/nothing.vcxproj +++ /dev/null @@ -1,141 +0,0 @@ - - - - - Debug - x64 - - - Release - x64 - - - - {4C3ED550-BD81-6C01-0ACF-78D78F796A4F} - Win32Proj - nothing - true - x64 - 10.0.22000.0 - - - - StaticLibrary - - - v143 - - - - - - - - - - $(ExecutablePath);$(MSBuildProjectDirectory)\..\..\..\node_modules\node-addon-api\bin\;$(MSBuildProjectDirectory)\..\..\..\node_modules\node-addon-api\bin\ - $(Configuration)\obj\$(ProjectName)\ - false - true - $(SolutionDir)$(Configuration)\ - $(ProjectName) - $(OutDir)\$(ProjectName)$(TargetExt) - - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;%(AdditionalIncludeDirectories) - /Zc:__cplusplus -std:c++17 %(AdditionalOptions) - EnableFastChecks - true - OldStyle - 4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings) - false - false - true - false - Disabled - NotUsing - NODE_GYP_MODULE_NAME=nothing;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;HOST_BINARY="node.exe";DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions) - MultiThreadedDebug - true - true - false - Level3 - true - - - /LTCG:INCREMENTAL %(AdditionalOptions) - $(OutDir)$(ProjectName)$(TargetExt) - - - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\bobo\\AppData\\Local\\node-gyp\\Cache\\17.9.1\\x64\\node.lib" - /LTCG:INCREMENTAL /ignore:4199 %(AdditionalOptions) - node.exe;%(DelayLoadDLLs) - true - true - true - true - MachineX64 - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;%(AdditionalIncludeDirectories) - NODE_GYP_MODULE_NAME=nothing;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;HOST_BINARY="node.exe";DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) - - - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;%(AdditionalIncludeDirectories) - /Zc:__cplusplus -std:c++17 %(AdditionalOptions) - true - OldStyle - 4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings) - false - Speed - true - AnySuitable - true - true - true - Full - NotUsing - NODE_GYP_MODULE_NAME=nothing;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;HOST_BINARY="node.exe";%(PreprocessorDefinitions) - MultiThreaded - false - true - true - false - Level3 - true - - - /LTCG:INCREMENTAL %(AdditionalOptions) - $(OutDir)$(ProjectName)$(TargetExt) - - - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\bobo\\AppData\\Local\\node-gyp\\Cache\\17.9.1\\x64\\node.lib" - /LTCG:INCREMENTAL /ignore:4199 %(AdditionalOptions) - node.exe;%(DelayLoadDLLs) - true - true - true - true - MachineX64 - - - C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\include\node;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\src;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\config;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\openssl\openssl\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\uv\include;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\zlib;C:\Users\bobo\AppData\Local\node-gyp\Cache\17.9.1\deps\v8\include;%(AdditionalIncludeDirectories) - NODE_GYP_MODULE_NAME=nothing;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;HOST_BINARY="node.exe";%(PreprocessorDefinitions);%(PreprocessorDefinitions) - - - - - - - - $(IntDir)\node_modules\node-addon-api\nothing.obj - - - - - - - diff --git a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/nothing.vcxproj.filters b/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/nothing.vcxproj.filters deleted file mode 100644 index aca4dc26..00000000 --- a/env_xbb_lastest_cheerio/build/node_modules/node-addon-api/nothing.vcxproj.filters +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {56DF7A98-063D-FB9D-485C-089023B4C16A} - - - {A353D9AF-FDFE-F893-56AE-2F252738A960} - - - {E5D29F2B-0177-9942-CA95-0FF700094F89} - - - {B529C042-30F7-BDBA-350E-0F9BB018A35B} - - - {56DF7A98-063D-FB9D-485C-089023B4C16A} - - - {77348C0E-2034-7791-74D5-63C077DF5A3B} - - - {8CDEE807-BC53-E450-C8B8-4DEBB66742D4} - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} - - - {56DF7A98-063D-FB9D-485C-089023B4C16A} - - - {A353D9AF-FDFE-F893-56AE-2F252738A960} - - - - - ..\..\..\node_modules\node-addon-api - - - D:\GlobalNode\node_modules\node-gyp\src - - - ..\..\..\node_modules\node-addon-api - - - diff --git a/env_xbb_lastest_cheerio/config/changeDom.js b/env_xbb_lastest_cheerio/config/changeDom.js deleted file mode 100644 index 9464a129..00000000 --- a/env_xbb_lastest_cheerio/config/changeDom.js +++ /dev/null @@ -1,103 +0,0 @@ -var canvassss=document.createElement("canvas") -var cccc=canvassss.getContext("2d") -var aaaaaa= -` -bodavm.memory.location={ - origin:"${location.origin}", - hash:"${location.hash}", - pathname:"${location.pathname}", - search:"${location.search}", - href:"${location.href}", - port:"${location.port}", - protocol:"${location.protocol}", - host:"${location.host}", - ancestorOrigins:"${JSON.stringify(location.ancestorOrigins)}", - hostname:"${location.hostname}" -}; - -bodavm.memory.document={ - URL:"${document.URL}", - referrer:"${document.referrer}", - documentURI:"${document.documentURI}", - compatMode:"${document.compatMode}", - dir:"${document.dir}", - title:"${document.title}", - designMode:"${document.designMode}", - readyState:"${document.readyState}", - contentType:"${document.contentType}", - inputEncoding:"${document.inputEncoding}", - domain:"${document.domain}", - characterSet:"${document.characterSet}", - charset:"${document.charset}", - hidden:"${document.hidden}", - onmousemove:${document.onmousemove}, - onselectionchange:${document.onselectionchange}, - -}; - -bodavm.memory.htmldivelement={ - align:"${HTMLDivElement.align}", - -}; - -bodavm.memory.history={ - scrollRestoration:"${history.scrollRestoration}" -}; - -bodavm.memory.screen={ - width:${screen.width}, - height:${screen.height}, - availWidth:${screen.availWidth}, - availHeight:${screen.availHeight}, - pixelDepth:${screen.pixelDepth}, - colorDepth:${screen.colorDepth}, - availLeft:${screen.availLeft}, - availTop:${screen.availTop}, - isExtended:${screen.isExtended}, - orientation:${JSON.stringify(screen.orientation)}, - onchange:${screen.onchange}, -}; - -bodavm.memory.navigator={ - language:"${navigator.language}", - userAgent:"${navigator.userAgent}", - appVersion:"${navigator.appVersion}", - vendor:"${navigator.vendor}", - appName:"${navigator.appName}", - appCodeName:"${navigator.appCodeName}", - cookieEnabled:${navigator.cookieEnabled}, - languages:${JSON.stringify(navigator.languages)}, - productSub:"${navigator.productSub}", - userAgentData:${JSON.stringify(navigator.userAgentData)}, - xr:${JSON.stringify(navigator.xr)}, - platform:'${navigator.platform}', - webkitPersistentStorage:${JSON.stringify(navigator.webkitPersistentStorage)}, - connection:${JSON.stringify(navigator.connection)}, - javaEnabled:${navigator.javaEnabled()}, - product:${navigator.product}, - vendorSub:${navigator.vendorSub?navigator.vendorSub:''}, - deviceMemory:${navigator.deviceMemory}, - maxTouchPoints:${navigator.maxTouchPoints} -}; -bodavm.memory.window={ - name:${JSON.stringify(window.name)}, - innerWidth:1440, - innerHeight:817, - origin:${JSON.stringify(window.origin)}, - outerWidth:1440, - outerHeight:920, - defaultStatus:${JSON.stringify(window.defaultStatus)}, - defaultstatus:${JSON.stringify(window.defaultstatus)}, - devicePixelRatio:${window.devicePixelRatio}, - isSecureContext:${window.isSecureContext}, - length:${window.length}, - status:${JSON.stringify(window.status)}, - onmessage:${window.onmessage}, - onbeforeunload:${window.onbeforeunload}, - -}; -bodavm.memory.localStorage={} - -` - -copy(aaaaaa) \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/config/config.js b/env_xbb_lastest_cheerio/config/config.js deleted file mode 100644 index 68983ac9..00000000 --- a/env_xbb_lastest_cheerio/config/config.js +++ /dev/null @@ -1,172 +0,0 @@ -//全局对象配置 -// debugger -var myloglist=[] -var myloglistindex=0 -var myundefinedlist=[] -var bodavm = { - - "toolsFunc": {}, //功能函数相关,插件 - "envFunc": {},//环境相关 - "config": {}, //配置相关 - "memory":{}, - "toolsPlugin": {} //Plugin相关 -} - - -bodavm.memory.tag=[] //存放标签 -bodavm.memory.globalobj={} //全局对象 -bodavm.config.isdebug=false ; //是否开启debugger -// bodavm.config.getundefined=true //暂未实现 -bodavm.config.isrs=true //判断当前网站是不是瑞数 -bodavm.config.proxy = false; //是否代理 - -bodavm.config.randomhook=false //hook随机值和时间 -bodavm.config.printLog=true; //是否打开日志 -// bodavm.memory.isproxy= {} -bodavm.memory.symbolProxy=Symbol("proxy") - -bodavm.memory.symbolProperty=Symbol('Property') - -bodavm.memory.symbolData=Symbol("data") - -// if (bodavm.config.issymbolProperty && bodavm.config.proxy ){ -bodavm.memory.filterProxyProp =['hasOwnProperty','__proto__','constructor','valueOf',bodavm.memory.symbolProperty,bodavm.memory.symbolProxy,bodavm.memory.symbolData,Symbol.toPrimitive,Symbol.toStringTag, "eval",'toString','prototype']; -// }else{ - // bodavm.memory.filterProxyProp =['prototype','hasOwnProperty',bodavm.memory.symbolProperty,bodavm.memory.symbolProxy,bodavm.memory.symbolData,Symbol.toPrimitive,Symbol.toStringTag, "eval"];// 需要过滤的属性 -// } - - -// bodavm.memory.filterProxyProp=['toJSON','undefined','splice','String','fromCharCode','apply','prototype','__proto__','toString','Object','Array',"eval",'Symbol(Symbol.toStringTag)','Symbol.toStringTag','bodavm.memory.symbolData',"Symbol(Symbol.species)",'Symbol(Symbol.hasInstance)'] //需要过滤 的属性 -//用来保存当前对象上的原型属性 -bodavm.memory.globalInit={} -bodavm.memory.globalInit.jsonCookie = {};// json格式的cookie -bodavm.memory.userInit={} -//存储tag标签 -bodavm.memory.all=[] - -bodavm.memory.collection={ - -} - -// bodavm.memory.localStorage={}; -bodavm.memory.cookie1='' //用来存储555 -bodavm.memory.cookie2={} //用来存储"a=10" -bodavm.memory.cookie=''; //拼接cookie1 和cookie2 - -bodavm.memory.asyncEvent={ - HTMLElement:{onload:[]} - -}; -bodavm.memory.globalInit.timeoutID=0; -// "Verdana;Helvetica Neue LT Pro 35 Thin;tahoma;verdana;times new roman;Courier New;Microsoft Himalaya;helvetica;LG-FZKaTong-M19-V2.2;Georgia;georgia;courier new;Arial;arial;cursive;times;fantasy;courier;serif;monospace;Times New Roman" -bodavm.memory.globalInit.fontList = ["SimHei", "SimSun", "NSimSun", "FangSong", "KaiTi",'Verdana', 'Helvetica Neue LT Pro 35 Thin', 'tahoma', 'verdana', 'times new roman', 'Courier New', 'Microsoft Himalaya', 'helvetica', 'LG-FZKaTong-M19-V2.2', 'Georgia', 'georgia', 'courier new', 'Arial', 'arial', 'cursive', 'times', 'fantasy', 'courier', 'serif', 'monospace', 'Times New Roman'] - -bodavm.memory.font={ - "font-family":'', - "fontFamily":'' -} -bodavm.memory.IDBRequest={ - onerror:"", - onupgradeneeded:'', - onsuccess:'', -} -bodavm.memory.IDBOpenDBRequest={ - onupgradeneeded:'', - -} - - -bodavm.memory.location={ - origin:"http://www.fangdi.com.cn", - hash:"", - pathname:"/", - search:"", - href:"http://www.fangdi.com.cn/", - port:"", - protocol:"http:", - host:"www.fangdi.com.cn", - ancestorOrigins:"{}", - hostname:"www.fangdi.com.cn" -}; - -bodavm.memory.document={ - URL:"http://www.fangdi.com.cn/", - referrer:"", - documentURI:"http://www.fangdi.com.cn/", - compatMode:"CSS1Compat", - dir:"", - title:"网上房地产", - designMode:"off", - readyState:"interactive", - contentType:"text/html", - inputEncoding:"UTF-8", - domain:"www.fangdi.com.cn", - characterSet:"UTF-8", - charset:"UTF-8", - hidden:"false", - onmousemove:null, - onselectionchange:null, - -}; - -bodavm.memory.htmldivelement={ - align:"undefined", - -}; - -bodavm.memory.history={ - scrollRestoration:"auto" -}; - -bodavm.memory.screen={ - width:1440, - height:960, - availWidth:1440, - availHeight:920, - pixelDepth:24, - colorDepth:24, - availLeft:0, - availTop:0, - isExtended:undefined, - orientation:{}, - onchange:undefined, -}; - -bodavm.memory.navigator={ - language:"zh-CN", - userAgent:"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36", - appVersion:"5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36", - vendor:"Google Inc.", - appName:"Netscape", - appCodeName:"Mozilla", - cookieEnabled:true, - languages:["zh-CN","zh"], - productSub:"20030107", - userAgentData:undefined, - xr:undefined, - platform:'Win32', - webkitPersistentStorage:{}, - connection:{}, - javaEnabled:false -}; -bodavm.memory.window={ - name:"", - innerWidth:1440, - innerHeight:817, - origin:"http://www.fangdi.com.cn", - outerWidth:1440, - outerHeight:920, - defaultStatus:"", - defaultstatus:"", - devicePixelRatio:1.5, - isSecureContext:false, - length:0, - status:"", - onmessage:null, - onbeforeunload:'', - // clientInformation:"" - -}; - -// bodavm.memory.localStorage={} - diff --git a/env_xbb_lastest_cheerio/config/env.config.js b/env_xbb_lastest_cheerio/config/env.config.js deleted file mode 100644 index 1229b923..00000000 --- a/env_xbb_lastest_cheerio/config/env.config.js +++ /dev/null @@ -1,156 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -let env_path = path.resolve(__dirname, '../env/'); -let mylist = '' -let mylist2 = '' -let name_ = [] -function getFile(name) { - try { - return fs.readFileSync(`${env_path}/${name}.js`) + "\r\n"; - - } catch (e) { - console.log(`${env_path}/${name}.js不存在`) - return ""; - } -} - -function getHtmlElement() { - try { - let code = ""; - let filelist = fs.readdirSync(`${env_path}/htmlElements`) - for (let i = 0; i < filelist.length; i++) { - code += fs.readFileSync(`${env_path}/htmlElements/${filelist[i]}`) + "\r\n" - - } - return code - } catch (e) { - console.log(`${env_path}/${name}.js不存在`) - return ""; - } -} - -function getCode() { - - let code = "//env相关代码" + "\r\n" - code += getFile("EventTarget") - code += getFile("WindowProperties") - code += getFile("Window") - code += getFile("Node") - code += getFile("Element") - code += getFile("HTMLElement") - code += getFile("HTMLCollection") - code += getHtmlElement() - code += getFile("NetworkInformation") - code += getFile("CustomElementRegistry") - code += getFile("Event"); - code += getFile("UIEvent"); - code += getFile("MouseEvent"); - code += getFile("Document") - code += getFile("HTMLDocument") - code += getFile("Location") - code += getFile("Storage") - code += getFile("CharacterData") - code += getFile("Text") - code += getFile('Database') - code += getFile('CloseEvent') - code += getFile('Notification') - code += getFile("IDBDatabase") - code += getFile("IDBRequest") - code += getFile("IDBOpenDBRequest") - code += getFile("IDBFactory") - code += getFile("History") - code += getFile("Screen") - code += getFile("CSSStyleDeclaration") - code += getFile("CanvasRenderingContext2D") - code += getFile("WebGLRenderingContext") - code += getFile("MediaQueryList") - code += getFile("CSSRuleList") - code += getFile('Attr') - code += getFile('Navigation') - code += getFile("MediaStream") - code += getFile("TrustedTypePolicyFactory") - code += getFile('Scheduler') - code += getFile("CookieStore") - - code += getFile("CacheStorage") - code +=getFile('Promise') - code += getFile('OffscreenCanvasRenderingContext2D') - code += getFile('DeprecatedStorageInfo') - code += getFile('SpeechSynthesis') - code += getFile("VisualViewport") - code += getFile('BeforeInstallPromptEvent') - code += getFile("BarProp") - code += getFile("BaseAudioContext") - code += getFile("BluetoothUUID") - code += getFile('StyleMedia') - code += getFile('Audio') - code += getFile("Crypto") - - code += getFile("CDATASection") - - code += getFile("Comment") - code += getFile("DocumentFragment") - code += getFile("DocumentType") - code += getFile("DOMParser") - - code += getFile("External") - code+=getFile('PointerEvent') - code += getFile('WebSocket') - code += getFile('SourceBuffer') - code += getFile("DOMStringList") - code += getFile("Headers") - code += getFile("IDBObjectStore") - code += getFile("IDBTransaction") - code += getFile("IDBVersionChangeEvent") - code += getFile('TextTrackList') - code += getFile('SpeechSynthesisUtterance') - code += getFile("MediaEncryptedEvent") - code += getFile("MutationObserver") - code += getFile("NamedNodeMap") - code += getFile("NodeList") - code += getFile("OfflineAudioContext") - code += getFile("Path2D") - code += getFile("Performance") - code += getFile('ScreenOrientation') - code += getFile("PerformanceEntry") - code += getFile("PerformancePaintTiming") - code += getFile("Permissions") - code += getFile("PermissionStatus") - code += getFile("Request") - code += getFile("SVGElement") - code+=getFile('DeviceOrientationEvent') - code +=getFile('PresentationConnectionCloseEvent') - code += getFile("SVGGraphicsElement") - code += getFile('SVGGElement') - code += getFile('SVGPatternElement') - code += getFile("SVGGeometryElement") - code += getFile("SVGPathElement") - code += getFile("SVGSVGElement") - code += getFile("SVGSymbolElement") - code += getFile("SVGUseElement") - - code += getFile('WebGLShader') - code += getFile("WebGLShaderPrecisionFormat") - - code += getFile("RTCPeerConnection") - - code += getFile("WebGLBuffer") - - code += getFile("WebGLProgram") - code += getFile("CSS") - code += getFile("Navigator") - code += getFile("BatteryManager") - code += getFile("Plugin") - code += getFile("PluginArray") - code += getFile("MimeType") - code += getFile("MimeTypeArray") - code += getFile("XMLHttpRequestEventTarget") - code += getFile("XMLHttpRequest") - - // code += getFile("globalThis") //全局环境放在最后 - - return code -} -module.exports = { - getCode, getFile -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/config/json.txt b/env_xbb_lastest_cheerio/config/json.txt deleted file mode 100644 index 2ad9a4c7..00000000 --- a/env_xbb_lastest_cheerio/config/json.txt +++ /dev/null @@ -1,1446 +0,0 @@ - - - - - - - - 网上房地产 - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-
- -
- - 全面学习把握落实党的二十大精神,奋力夺取全面建设社会主义现代化国家新胜利!   - -
- -
-
- - -
-
- - - - - -
-
-
- 中心党员参与社区志愿服务 -
-
-
- - -
- -
    - - -
-
    - -
-
    - -
-
-
-
- -
-
- -
-
- - 可售住宅 - - - 更多 - -
-
- 一手房 - 一手房普通住宅 - 二手房 -
-
-
- 区域 - - 套数(套) - 面积(万㎡) - - - 套数(套) - 面积(万㎡) - - - 套数(套) - 面积(万㎡) - -
-
- -
-
-
- -
-
-
-
今日签约
-

- 一手房签约套数: - 套 -

-

- 一手房签约面积: - ㎡ -

-
-
-
- 新楼盘认购公示 - - - 更多 - -
-
-
-
-
-
-
- - -
-
- - -
- - - - - - - diff --git a/env_xbb_lastest_cheerio/config/tools.config.js b/env_xbb_lastest_cheerio/config/tools.config.js deleted file mode 100644 index bc7b1608..00000000 --- a/env_xbb_lastest_cheerio/config/tools.config.js +++ /dev/null @@ -1,28 +0,0 @@ -const fs=require("fs"); -const path = require("path"); - - -function getFile(name) { - let tools_path = path.resolve(__dirname, '../tools/'); - try { - return fs.readFileSync(`${tools_path}/${name}.js`) + "\r\n"; - - } catch (e) { - console.log(`${tools_path}/${name}.js不存在`) - return ""; - } -} - -function getCode(){ - - let code="" - code+=getFile("toolsFunc") - // code+=getFile("toolsJsSoup") - code+=getFile("toolsParseHtml") - code+=getFile("envFunc") - code+=getFile("toolsPlugin") - return code -} -module.exports={ - getCode,getFile -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/Attr.js b/env_xbb_lastest_cheerio/env/Attr.js deleted file mode 100644 index 533abcf7..00000000 --- a/env_xbb_lastest_cheerio/env/Attr.js +++ /dev/null @@ -1,12 +0,0 @@ -// Attr对象 -Attr = function Attr(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Attr, "Attr"); -Attr.prototype.__proto__=Node.prototype; -Attr.__proto__=Node; -bodavm.toolsFunc.defineProperty(Attr.prototype, "namespaceURI", {configurable:true, enumerable:true, get:function namespaceURI (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "namespaceURI_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Attr.prototype, "prefix", {configurable:true, enumerable:true, get:function prefix (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "prefix_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Attr.prototype, "localName", {configurable:true, enumerable:true, get:function localName (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "localName_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Attr.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "name_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Attr.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Attr.prototype, "ownerElement", {configurable:true, enumerable:true, get:function ownerElement (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "ownerElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Attr.prototype, "specified", {configurable:true, enumerable:true, get:function specified (){return bodavm.toolsFunc.dispatch(this, Attr.prototype, "Attr", "specified_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Audio.js b/env_xbb_lastest_cheerio/env/Audio.js deleted file mode 100644 index 37ad9516..00000000 --- a/env_xbb_lastest_cheerio/env/Audio.js +++ /dev/null @@ -1,4 +0,0 @@ -// Audio对象 -Audio = function Audio(){} -bodavm.toolsFunc.safeProto(Audio, "Audio"); -Audio.prototype.__proto__=HTMLMediaElement.prototype; diff --git a/env_xbb_lastest_cheerio/env/BarProp.js b/env_xbb_lastest_cheerio/env/BarProp.js deleted file mode 100644 index 04b21652..00000000 --- a/env_xbb_lastest_cheerio/env/BarProp.js +++ /dev/null @@ -1,18 +0,0 @@ -// BarProp对象 -BarProp = function BarProp(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(BarProp, "BarProp"); -bodavm.toolsFunc.defineProperty(BarProp.prototype, "visible", {configurable:true, enumerable:true, get:function visible (){return bodavm.toolsFunc.dispatch(this, BarProp.prototype, "BarProp", "visible_get", arguments)}, set:undefined}); -// locationbar对象 -var locationbar = {} -locationbar.__proto__=BarProp.prototype; - - -var menubar={} -menubar.__proto__= BarProp.prototype; - -var statusbar={} -statusbar.__proto__=BarProp.prototype - - -var toolbar={} -toolbar.__proto__=BarProp.prototype \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/BaseAudioContext.js b/env_xbb_lastest_cheerio/env/BaseAudioContext.js deleted file mode 100644 index c7aea041..00000000 --- a/env_xbb_lastest_cheerio/env/BaseAudioContext.js +++ /dev/null @@ -1,31 +0,0 @@ -// BaseAudioContext对象 -BaseAudioContext = function BaseAudioContext(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(BaseAudioContext, "BaseAudioContext"); -BaseAudioContext.prototype.__proto__=EventTarget.prototype; -BaseAudioContext.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "destination", {configurable:true, enumerable:true, get:function destination (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "destination_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "currentTime", {configurable:true, enumerable:true, get:function currentTime (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "currentTime_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "sampleRate", {configurable:true, enumerable:true, get:function sampleRate (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "sampleRate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "listener", {configurable:true, enumerable:true, get:function listener (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "listener_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "state", {configurable:true, enumerable:true, get:function state (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "state_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "onstatechange", {configurable:true, enumerable:true, get:function onstatechange (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "onstatechange_get", arguments)}, set:function onstatechange (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "onstatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createAnalyser", {configurable:true, enumerable:true, writable:true, value:function createAnalyser (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createAnalyser", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createBiquadFilter", {configurable:true, enumerable:true, writable:true, value:function createBiquadFilter (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createBiquadFilter", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createBuffer", {configurable:true, enumerable:true, writable:true, value:function createBuffer (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createBufferSource", {configurable:true, enumerable:true, writable:true, value:function createBufferSource (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createBufferSource", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createChannelMerger", {configurable:true, enumerable:true, writable:true, value:function createChannelMerger (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createChannelMerger", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createChannelSplitter", {configurable:true, enumerable:true, writable:true, value:function createChannelSplitter (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createChannelSplitter", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createConstantSource", {configurable:true, enumerable:true, writable:true, value:function createConstantSource (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createConstantSource", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createConvolver", {configurable:true, enumerable:true, writable:true, value:function createConvolver (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createConvolver", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createDelay", {configurable:true, enumerable:true, writable:true, value:function createDelay (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createDelay", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createDynamicsCompressor", {configurable:true, enumerable:true, writable:true, value:function createDynamicsCompressor (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createDynamicsCompressor", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createGain", {configurable:true, enumerable:true, writable:true, value:function createGain (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createGain", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createIIRFilter", {configurable:true, enumerable:true, writable:true, value:function createIIRFilter (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createIIRFilter", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createOscillator", {configurable:true, enumerable:true, writable:true, value:function createOscillator (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createOscillator", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createPanner", {configurable:true, enumerable:true, writable:true, value:function createPanner (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createPanner", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createPeriodicWave", {configurable:true, enumerable:true, writable:true, value:function createPeriodicWave (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createPeriodicWave", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createScriptProcessor", {configurable:true, enumerable:true, writable:true, value:function createScriptProcessor (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createScriptProcessor", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createStereoPanner", {configurable:true, enumerable:true, writable:true, value:function createStereoPanner (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createStereoPanner", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "createWaveShaper", {configurable:true, enumerable:true, writable:true, value:function createWaveShaper (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "createWaveShaper", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "decodeAudioData", {configurable:true, enumerable:true, writable:true, value:function decodeAudioData (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "decodeAudioData", arguments)}}); -bodavm.toolsFunc.defineProperty(BaseAudioContext.prototype, "audioWorklet", {configurable:true, enumerable:true, get:function audioWorklet (){return bodavm.toolsFunc.dispatch(this, BaseAudioContext.prototype, "BaseAudioContext", "audioWorklet_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/BatteryManager.js b/env_xbb_lastest_cheerio/env/BatteryManager.js deleted file mode 100644 index 6356079b..00000000 --- a/env_xbb_lastest_cheerio/env/BatteryManager.js +++ /dev/null @@ -1,13 +0,0 @@ -// BatteryManager对象 -BatteryManager = function BatteryManager(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(BatteryManager, "BatteryManager"); -BatteryManager.prototype.__proto__=EventTarget.prototype; -BatteryManager.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "charging", {configurable:true, enumerable:true, get:function charging (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "charging_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "chargingTime", {configurable:true, enumerable:true, get:function chargingTime (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "chargingTime_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "dischargingTime", {configurable:true, enumerable:true, get:function dischargingTime (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "dischargingTime_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "level", {configurable:true, enumerable:true, get:function level (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "level_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "onchargingchange", {configurable:true, enumerable:true, get:function onchargingchange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "onchargingchange_get", arguments)}, set:function onchargingchange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "onchargingchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "onchargingtimechange", {configurable:true, enumerable:true, get:function onchargingtimechange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "onchargingtimechange_get", arguments)}, set:function onchargingtimechange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "onchargingtimechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "ondischargingtimechange", {configurable:true, enumerable:true, get:function ondischargingtimechange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "ondischargingtimechange_get", arguments)}, set:function ondischargingtimechange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "ondischargingtimechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(BatteryManager.prototype, "onlevelchange", {configurable:true, enumerable:true, get:function onlevelchange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "onlevelchange_get", arguments)}, set:function onlevelchange (){return bodavm.toolsFunc.dispatch(this, BatteryManager.prototype, "BatteryManager", "onlevelchange_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/BeforeInstallPromptEvent.js b/env_xbb_lastest_cheerio/env/BeforeInstallPromptEvent.js deleted file mode 100644 index 9994c413..00000000 --- a/env_xbb_lastest_cheerio/env/BeforeInstallPromptEvent.js +++ /dev/null @@ -1,8 +0,0 @@ -// BeforeInstallPromptEvent对象 -BeforeInstallPromptEvent = function BeforeInstallPromptEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'BeforeInstallPromptEvent': 1 argument required, but only 0 present.")} -bodavm.toolsFunc.safeProto(BeforeInstallPromptEvent, "BeforeInstallPromptEvent"); -BeforeInstallPromptEvent.prototype.__proto__=Event.prototype; -BeforeInstallPromptEvent.__proto__=Event; -bodavm.toolsFunc.defineProperty(BeforeInstallPromptEvent.prototype, "platforms", {configurable:true, enumerable:true, get:function platforms (){return bodavm.toolsFunc.dispatch(this, BeforeInstallPromptEvent.prototype, "BeforeInstallPromptEvent", "platforms_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BeforeInstallPromptEvent.prototype, "userChoice", {configurable:true, enumerable:true, get:function userChoice (){return bodavm.toolsFunc.dispatch(this, BeforeInstallPromptEvent.prototype, "BeforeInstallPromptEvent", "userChoice_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(BeforeInstallPromptEvent.prototype, "prompt", {configurable:true, enumerable:true, writable:true, value:function prompt (){return bodavm.toolsFunc.dispatch(this, BeforeInstallPromptEvent.prototype, "BeforeInstallPromptEvent", "prompt", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/BluetoothUUID.js b/env_xbb_lastest_cheerio/env/BluetoothUUID.js deleted file mode 100644 index 1b5aba10..00000000 --- a/env_xbb_lastest_cheerio/env/BluetoothUUID.js +++ /dev/null @@ -1,7 +0,0 @@ -// BluetoothUUID对象 -BluetoothUUID = function BluetoothUUID(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(BluetoothUUID, "BluetoothUUID"); -bodavm.toolsFunc.defineProperty(BluetoothUUID, "canonicalUUID", {configurable:true, enumerable:true, writable:true, value:function canonicalUUID (){return bodavm.toolsFunc.dispatch(this, BluetoothUUID, "BluetoothUUID", "canonicalUUID", arguments)}}); -bodavm.toolsFunc.defineProperty(BluetoothUUID, "getCharacteristic", {configurable:true, enumerable:true, writable:true, value:function getCharacteristic (){return bodavm.toolsFunc.dispatch(this, BluetoothUUID, "BluetoothUUID", "getCharacteristic", arguments)}}); -bodavm.toolsFunc.defineProperty(BluetoothUUID, "getDescriptor", {configurable:true, enumerable:true, writable:true, value:function getDescriptor (){return bodavm.toolsFunc.dispatch(this, BluetoothUUID, "BluetoothUUID", "getDescriptor", arguments)}}); -bodavm.toolsFunc.defineProperty(BluetoothUUID, "getService", {configurable:true, enumerable:true, writable:true, value:function getService (){return bodavm.toolsFunc.dispatch(this, BluetoothUUID, "BluetoothUUID", "getService", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/CDATASection.js b/env_xbb_lastest_cheerio/env/CDATASection.js deleted file mode 100644 index 95ae18a8..00000000 --- a/env_xbb_lastest_cheerio/env/CDATASection.js +++ /dev/null @@ -1,5 +0,0 @@ -// CDATASection对象 -CDATASection = function CDATASection(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CDATASection, "CDATASection"); -CDATASection.prototype.__proto__=Text.prototype; -CDATASection.__proto__=Text; diff --git a/env_xbb_lastest_cheerio/env/CSS.js b/env_xbb_lastest_cheerio/env/CSS.js deleted file mode 100644 index 3ef5893f..00000000 --- a/env_xbb_lastest_cheerio/env/CSS.js +++ /dev/null @@ -1,35 +0,0 @@ -// CSS对象 -var CSS = {} -bodavm.toolsFunc.defineProperty(CSS, "Hz", {configurable:true, enumerable:true, writable:true, value:function Hz (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "Hz", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "Q", {configurable:true, enumerable:true, writable:true, value:function Q (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "Q", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "ch", {configurable:true, enumerable:true, writable:true, value:function ch (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "ch", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "cm", {configurable:true, enumerable:true, writable:true, value:function cm (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "cm", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "deg", {configurable:true, enumerable:true, writable:true, value:function deg (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "deg", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "dpcm", {configurable:true, enumerable:true, writable:true, value:function dpcm (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "dpcm", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "dpi", {configurable:true, enumerable:true, writable:true, value:function dpi (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "dpi", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "dppx", {configurable:true, enumerable:true, writable:true, value:function dppx (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "dppx", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "em", {configurable:true, enumerable:true, writable:true, value:function em (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "em", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "escape", {configurable:true, enumerable:true, writable:true, value:function escape (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "escape", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "ex", {configurable:true, enumerable:true, writable:true, value:function ex (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "ex", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "fr", {configurable:true, enumerable:true, writable:true, value:function fr (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "fr", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "grad", {configurable:true, enumerable:true, writable:true, value:function grad (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "grad", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "in", {configurable:true, enumerable:true, writable:true, value:function (){ return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "in", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "kHz", {configurable:true, enumerable:true, writable:true, value:function kHz (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "kHz", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "mm", {configurable:true, enumerable:true, writable:true, value:function mm (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "mm", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "ms", {configurable:true, enumerable:true, writable:true, value:function ms (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "ms", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "number", {configurable:true, enumerable:true, writable:true, value:function number (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "number", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "pc", {configurable:true, enumerable:true, writable:true, value:function pc (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "pc", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "percent", {configurable:true, enumerable:true, writable:true, value:function percent (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "percent", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "pt", {configurable:true, enumerable:true, writable:true, value:function pt (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "pt", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "px", {configurable:true, enumerable:true, writable:true, value:function px (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "px", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "rad", {configurable:true, enumerable:true, writable:true, value:function rad (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "rad", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "registerProperty", {configurable:true, enumerable:true, writable:true, value:function registerProperty (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "registerProperty", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "rem", {configurable:true, enumerable:true, writable:true, value:function rem (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "rem", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "s", {configurable:true, enumerable:true, writable:true, value:function s (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "s", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "supports", {configurable:true, enumerable:true, writable:true, value:function supports (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "supports", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "turn", {configurable:true, enumerable:true, writable:true, value:function turn (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "turn", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "vh", {configurable:true, enumerable:true, writable:true, value:function vh (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "vh", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "vmax", {configurable:true, enumerable:true, writable:true, value:function vmax (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "vmax", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "vmin", {configurable:true, enumerable:true, writable:true, value:function vmin (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "vmin", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "vw", {configurable:true, enumerable:true, writable:true, value:function vw (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "vw", arguments)}}); -bodavm.toolsFunc.defineProperty(CSS, "paintWorklet", {configurable:true, enumerable:true, get:function paintWorklet (){return bodavm.toolsFunc.dispatch(this, CSS, "CSS", "paintWorklet_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/CSSRuleList.js b/env_xbb_lastest_cheerio/env/CSSRuleList.js deleted file mode 100644 index 3f91e151..00000000 --- a/env_xbb_lastest_cheerio/env/CSSRuleList.js +++ /dev/null @@ -1,5 +0,0 @@ -// CSSRuleList对象 -CSSRuleList = function CSSRuleList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CSSRuleList, "CSSRuleList"); -bodavm.toolsFunc.defineProperty(CSSRuleList.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, CSSRuleList.prototype, "CSSRuleList", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CSSRuleList.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, CSSRuleList.prototype, "CSSRuleList", "item", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/CSSStyleDeclaration.js b/env_xbb_lastest_cheerio/env/CSSStyleDeclaration.js deleted file mode 100644 index 0984b2c3..00000000 --- a/env_xbb_lastest_cheerio/env/CSSStyleDeclaration.js +++ /dev/null @@ -1,18 +0,0 @@ -// CSSStyleDeclaration对象 -CSSStyleDeclaration = function CSSStyleDeclaration(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CSSStyleDeclaration, "CSSStyleDeclaration"); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "cssText", {configurable:true, enumerable:true, get:function cssText (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "cssText_get", arguments)}, set:function cssText (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "cssText_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "parentRule", {configurable:true, enumerable:true, get:function parentRule (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "parentRule_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "cssFloat", {configurable:true, enumerable:true, get:function cssFloat (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "cssFloat_get", arguments)}, set:function cssFloat (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "cssFloat_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "getPropertyPriority", {configurable:true, enumerable:true, writable:true, value:function getPropertyPriority (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "getPropertyPriority", arguments)}}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "getPropertyValue", {configurable:true, enumerable:true, writable:true, value:function getPropertyValue (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "getPropertyValue", arguments)}}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "item", arguments)}}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "removeProperty", {configurable:true, enumerable:true, writable:true, value:function removeProperty (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "removeProperty", arguments)}}); -bodavm.toolsFunc.defineProperty(CSSStyleDeclaration.prototype, "setProperty", {configurable:true, enumerable:true, writable:true, value:function setProperty (){return bodavm.toolsFunc.dispatch(this, CSSStyleDeclaration.prototype, "CSSStyleDeclaration", "setProperty", arguments)}}); - - - - - - diff --git a/env_xbb_lastest_cheerio/env/CacheStorage.js b/env_xbb_lastest_cheerio/env/CacheStorage.js deleted file mode 100644 index 724d59aa..00000000 --- a/env_xbb_lastest_cheerio/env/CacheStorage.js +++ /dev/null @@ -1,11 +0,0 @@ -// CacheStorage对象 -CacheStorage = function CacheStorage(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CacheStorage, "CacheStorage"); -bodavm.toolsFunc.defineProperty(CacheStorage.prototype, "delete", {configurable:true, enumerable:true, writable:true, value:function (){return bodavm.toolsFunc.dispatch(this, CacheStorage.prototype, "CacheStorage", "delete", arguments)}}); -bodavm.toolsFunc.defineProperty(CacheStorage.prototype, "has", {configurable:true, enumerable:true, writable:true, value:function has (){return bodavm.toolsFunc.dispatch(this, CacheStorage.prototype, "CacheStorage", "has", arguments)}}); -bodavm.toolsFunc.defineProperty(CacheStorage.prototype, "keys", {configurable:true, enumerable:true, writable:true, value:function keys (){return bodavm.toolsFunc.dispatch(this, CacheStorage.prototype, "CacheStorage", "keys", arguments)}}); -bodavm.toolsFunc.defineProperty(CacheStorage.prototype, "match", {configurable:true, enumerable:true, writable:true, value:function match (){return bodavm.toolsFunc.dispatch(this, CacheStorage.prototype, "CacheStorage", "match", arguments)}}); -bodavm.toolsFunc.defineProperty(CacheStorage.prototype, "open", {configurable:true, enumerable:true, writable:true, value:function open (){return bodavm.toolsFunc.dispatch(this, CacheStorage.prototype, "CacheStorage", "open", arguments)}}); -// caches对象 -var caches = {} -caches.__proto__=CacheStorage.prototype; diff --git a/env_xbb_lastest_cheerio/env/CanvasRenderingContext2D.js b/env_xbb_lastest_cheerio/env/CanvasRenderingContext2D.js deleted file mode 100644 index 66c394a3..00000000 --- a/env_xbb_lastest_cheerio/env/CanvasRenderingContext2D.js +++ /dev/null @@ -1,75 +0,0 @@ -// CanvasRenderingContext2D对象 -CanvasRenderingContext2D = function CanvasRenderingContext2D(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CanvasRenderingContext2D, "CanvasRenderingContext2D"); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "canvas", {configurable:true, enumerable:true, get:function canvas (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "canvas_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "globalAlpha", {configurable:true, enumerable:true, get:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "globalAlpha_get", arguments)}, set:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "globalAlpha_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "globalCompositeOperation", {configurable:true, enumerable:true, get:function globalCompositeOperation (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "globalCompositeOperation_get", arguments)}, set:function globalCompositeOperation (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "globalCompositeOperation_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "filter", {configurable:true, enumerable:true, get:function filter (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "filter_get", arguments)}, set:function filter (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "filter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "imageSmoothingEnabled", {configurable:true, enumerable:true, get:function imageSmoothingEnabled (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "imageSmoothingEnabled_get", arguments)}, set:function imageSmoothingEnabled (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "imageSmoothingEnabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "imageSmoothingQuality", {configurable:true, enumerable:true, get:function imageSmoothingQuality (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "imageSmoothingQuality_get", arguments)}, set:function imageSmoothingQuality (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "imageSmoothingQuality_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "strokeStyle", {configurable:true, enumerable:true, get:function strokeStyle (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "strokeStyle_get", arguments)}, set:function strokeStyle (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "strokeStyle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fillStyle", {configurable:true, enumerable:true, get:function fillStyle (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fillStyle_get", arguments)}, set:function fillStyle (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fillStyle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "shadowOffsetX", {configurable:true, enumerable:true, get:function shadowOffsetX (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowOffsetX_get", arguments)}, set:function shadowOffsetX (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowOffsetX_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "shadowOffsetY", {configurable:true, enumerable:true, get:function shadowOffsetY (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowOffsetY_get", arguments)}, set:function shadowOffsetY (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowOffsetY_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "shadowBlur", {configurable:true, enumerable:true, get:function shadowBlur (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowBlur_get", arguments)}, set:function shadowBlur (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowBlur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "shadowColor", {configurable:true, enumerable:true, get:function shadowColor (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowColor_get", arguments)}, set:function shadowColor (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "shadowColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "lineWidth", {configurable:true, enumerable:true, get:function lineWidth (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineWidth_get", arguments)}, set:function lineWidth (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineWidth_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "lineCap", {configurable:true, enumerable:true, get:function lineCap (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineCap_get", arguments)}, set:function lineCap (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineCap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "lineJoin", {configurable:true, enumerable:true, get:function lineJoin (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineJoin_get", arguments)}, set:function lineJoin (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineJoin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "miterLimit", {configurable:true, enumerable:true, get:function miterLimit (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "miterLimit_get", arguments)}, set:function miterLimit (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "miterLimit_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "lineDashOffset", {configurable:true, enumerable:true, get:function lineDashOffset (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineDashOffset_get", arguments)}, set:function lineDashOffset (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineDashOffset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "font", {configurable:true, enumerable:true, get:function font (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "font_get", arguments)}, set:function font (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "font_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "textAlign", {configurable:true, enumerable:true, get:function textAlign (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "textAlign_get", arguments)}, set:function textAlign (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "textAlign_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "textBaseline", {configurable:true, enumerable:true, get:function textBaseline (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "textBaseline_get", arguments)}, set:function textBaseline (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "textBaseline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "direction", {configurable:true, enumerable:true, get:function direction (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "direction_get", arguments)}, set:function direction (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "direction_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fontKerning", {configurable:true, enumerable:true, get:function fontKerning (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fontKerning_get", arguments)}, set:function fontKerning (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fontKerning_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fontStretch", {configurable:true, enumerable:true, get:function fontStretch (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fontStretch_get", arguments)}, set:function fontStretch (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fontStretch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fontVariantCaps", {configurable:true, enumerable:true, get:function fontVariantCaps (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fontVariantCaps_get", arguments)}, set:function fontVariantCaps (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fontVariantCaps_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "letterSpacing", {configurable:true, enumerable:true, get:function letterSpacing (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "letterSpacing_get", arguments)}, set:function letterSpacing (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "letterSpacing_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "textRendering", {configurable:true, enumerable:true, get:function textRendering (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "textRendering_get", arguments)}, set:function textRendering (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "textRendering_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "wordSpacing", {configurable:true, enumerable:true, get:function wordSpacing (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "wordSpacing_get", arguments)}, set:function wordSpacing (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "wordSpacing_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "clip", {configurable:true, enumerable:true, writable:true, value:function clip (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "clip", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "createConicGradient", {configurable:true, enumerable:true, writable:true, value:function createConicGradient (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "createConicGradient", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "createImageData", {configurable:true, enumerable:true, writable:true, value:function createImageData (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "createImageData", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "createLinearGradient", {configurable:true, enumerable:true, writable:true, value:function createLinearGradient (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "createLinearGradient", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "createPattern", {configurable:true, enumerable:true, writable:true, value:function createPattern (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "createPattern", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "createRadialGradient", {configurable:true, enumerable:true, writable:true, value:function createRadialGradient (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "createRadialGradient", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "drawFocusIfNeeded", {configurable:true, enumerable:true, writable:true, value:function drawFocusIfNeeded (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "drawFocusIfNeeded", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "drawImage", {configurable:true, enumerable:true, writable:true, value:function drawImage (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "drawImage", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fill", {configurable:true, enumerable:true, writable:true, value:function fill (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fill", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fillText", {configurable:true, enumerable:true, writable:true, value:function fillText (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fillText", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "getContextAttributes", {configurable:true, enumerable:true, writable:true, value:function getContextAttributes (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "getContextAttributes", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "getImageData", {configurable:true, enumerable:true, writable:true, value:function getImageData (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "getImageData", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "getLineDash", {configurable:true, enumerable:true, writable:true, value:function getLineDash (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "getLineDash", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "getTransform", {configurable:true, enumerable:true, writable:true, value:function getTransform (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "getTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "isContextLost", {configurable:true, enumerable:true, writable:true, value:function isContextLost (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "isContextLost", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "isPointInPath", {configurable:true, enumerable:true, writable:true, value:function isPointInPath (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "isPointInPath", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "isPointInStroke", {configurable:true, enumerable:true, writable:true, value:function isPointInStroke (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "isPointInStroke", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "measureText", {configurable:true, enumerable:true, writable:true, value:function measureText (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "measureText", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "putImageData", {configurable:true, enumerable:true, writable:true, value:function putImageData (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "putImageData", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "reset", {configurable:true, enumerable:true, writable:true, value:function reset (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "reset", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "roundRect", {configurable:true, enumerable:true, writable:true, value:function roundRect (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "roundRect", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "save", {configurable:true, enumerable:true, writable:true, value:function save (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "save", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "scale", {configurable:true, enumerable:true, writable:true, value:function scale (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "scale", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "setLineDash", {configurable:true, enumerable:true, writable:true, value:function setLineDash (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "setLineDash", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "setTransform", {configurable:true, enumerable:true, writable:true, value:function setTransform (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "setTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "stroke", {configurable:true, enumerable:true, writable:true, value:function stroke (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "stroke", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "strokeText", {configurable:true, enumerable:true, writable:true, value:function strokeText (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "strokeText", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "transform", {configurable:true, enumerable:true, writable:true, value:function transform (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "transform", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "translate", {configurable:true, enumerable:true, writable:true, value:function translate (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "translate", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "arc", {configurable:true, enumerable:true, writable:true, value:function arc (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "arc", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "arcTo", {configurable:true, enumerable:true, writable:true, value:function arcTo (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "arcTo", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "beginPath", {configurable:true, enumerable:true, writable:true, value:function beginPath (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "beginPath", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "bezierCurveTo", {configurable:true, enumerable:true, writable:true, value:function bezierCurveTo (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "bezierCurveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "clearRect", {configurable:true, enumerable:true, writable:true, value:function clearRect (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "clearRect", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "closePath", {configurable:true, enumerable:true, writable:true, value:function closePath (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "closePath", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "ellipse", {configurable:true, enumerable:true, writable:true, value:function ellipse (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "ellipse", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "fillRect", {configurable:true, enumerable:true, writable:true, value:function fillRect (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "fillRect", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "lineTo", {configurable:true, enumerable:true, writable:true, value:function lineTo (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "lineTo", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "moveTo", {configurable:true, enumerable:true, writable:true, value:function moveTo (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "moveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "quadraticCurveTo", {configurable:true, enumerable:true, writable:true, value:function quadraticCurveTo (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "quadraticCurveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "rect", {configurable:true, enumerable:true, writable:true, value:function rect (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "rect", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "resetTransform", {configurable:true, enumerable:true, writable:true, value:function resetTransform (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "resetTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "restore", {configurable:true, enumerable:true, writable:true, value:function restore (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "restore", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "rotate", {configurable:true, enumerable:true, writable:true, value:function rotate (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "rotate", arguments)}}); -bodavm.toolsFunc.defineProperty(CanvasRenderingContext2D.prototype, "strokeRect", {configurable:true, enumerable:true, writable:true, value:function strokeRect (){return bodavm.toolsFunc.dispatch(this, CanvasRenderingContext2D.prototype, "CanvasRenderingContext2D", "strokeRect", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/CharacterData.js b/env_xbb_lastest_cheerio/env/CharacterData.js deleted file mode 100644 index c0f28249..00000000 --- a/env_xbb_lastest_cheerio/env/CharacterData.js +++ /dev/null @@ -1,18 +0,0 @@ -// CharacterData对象 -CharacterData = function CharacterData(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CharacterData, "CharacterData"); -CharacterData.prototype.__proto__=Node.prototype; -CharacterData.__proto__=Node; -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "data", {configurable:true, enumerable:true, get:function data (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "data_get", arguments)}, set:function data (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "data_set", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "previousElementSibling", {configurable:true, enumerable:true, get:function previousElementSibling (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "previousElementSibling_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "nextElementSibling", {configurable:true, enumerable:true, get:function nextElementSibling (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "nextElementSibling_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "after", {configurable:true, enumerable:true, writable:true, value:function after (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "after", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "appendData", {configurable:true, enumerable:true, writable:true, value:function appendData (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "appendData", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "before", {configurable:true, enumerable:true, writable:true, value:function before (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "before", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "deleteData", {configurable:true, enumerable:true, writable:true, value:function deleteData (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "deleteData", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "insertData", {configurable:true, enumerable:true, writable:true, value:function insertData (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "insertData", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "remove", {configurable:true, enumerable:true, writable:true, value:function remove (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "remove", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "replaceData", {configurable:true, enumerable:true, writable:true, value:function replaceData (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "replaceData", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "replaceWith", {configurable:true, enumerable:true, writable:true, value:function replaceWith (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "replaceWith", arguments)}}); -bodavm.toolsFunc.defineProperty(CharacterData.prototype, "substringData", {configurable:true, enumerable:true, writable:true, value:function substringData (){return bodavm.toolsFunc.dispatch(this, CharacterData.prototype, "CharacterData", "substringData", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/CloseEvent.js b/env_xbb_lastest_cheerio/env/CloseEvent.js deleted file mode 100644 index ee349d98..00000000 --- a/env_xbb_lastest_cheerio/env/CloseEvent.js +++ /dev/null @@ -1,8 +0,0 @@ -// CloseEvent对象 -CloseEvent = function CloseEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'CloseEvent': 1 argument required, but only 0 present.")} -bodavm.toolsFunc.safeProto(CloseEvent, "CloseEvent"); -CloseEvent.prototype.__proto__=Event.prototype; -CloseEvent.__proto__=Event; -bodavm.toolsFunc.defineProperty(CloseEvent.prototype, "wasClean", {configurable:true, enumerable:true, get:function wasClean (){return bodavm.toolsFunc.dispatch(this, CloseEvent.prototype, "CloseEvent", "wasClean_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CloseEvent.prototype, "code", {configurable:true, enumerable:true, get:function code (){return bodavm.toolsFunc.dispatch(this, CloseEvent.prototype, "CloseEvent", "code_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(CloseEvent.prototype, "reason", {configurable:true, enumerable:true, get:function reason (){return bodavm.toolsFunc.dispatch(this, CloseEvent.prototype, "CloseEvent", "reason_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Comment.js b/env_xbb_lastest_cheerio/env/Comment.js deleted file mode 100644 index 277a4409..00000000 --- a/env_xbb_lastest_cheerio/env/Comment.js +++ /dev/null @@ -1,5 +0,0 @@ -// Comment对象 -Comment = function Comment(){} -bodavm.toolsFunc.safeProto(Comment, "Comment"); -Comment.prototype.__proto__=CharacterData.prototype; -Comment.__proto__=CharacterData; diff --git a/env_xbb_lastest_cheerio/env/CookieStore.js b/env_xbb_lastest_cheerio/env/CookieStore.js deleted file mode 100644 index 03ab7843..00000000 --- a/env_xbb_lastest_cheerio/env/CookieStore.js +++ /dev/null @@ -1,13 +0,0 @@ -// CookieStore对象 -CookieStore = function CookieStore(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(CookieStore, "CookieStore"); -CookieStore.prototype.__proto__=EventTarget.prototype; -CookieStore.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(CookieStore.prototype, "delete", {configurable:true, enumerable:true, writable:true, value:function (){return bodavm.toolsFunc.dispatch(this, CookieStore.prototype, "CookieStore", "delete", arguments)}}); -bodavm.toolsFunc.defineProperty(CookieStore.prototype, "get", {configurable:true, enumerable:true, writable:true, value:function get (){return bodavm.toolsFunc.dispatch(this, CookieStore.prototype, "CookieStore", "get", arguments)}}); -bodavm.toolsFunc.defineProperty(CookieStore.prototype, "getAll", {configurable:true, enumerable:true, writable:true, value:function getAll (){return bodavm.toolsFunc.dispatch(this, CookieStore.prototype, "CookieStore", "getAll", arguments)}}); -bodavm.toolsFunc.defineProperty(CookieStore.prototype, "set", {configurable:true, enumerable:true, writable:true, value:function set (){return bodavm.toolsFunc.dispatch(this, CookieStore.prototype, "CookieStore", "set", arguments)}}); -bodavm.toolsFunc.defineProperty(CookieStore.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, CookieStore.prototype, "CookieStore", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, CookieStore.prototype, "CookieStore", "onchange_set", arguments)}}); -// cookieStore对象 -var cookieStore = {} -cookieStore.__proto__=CookieStore.prototype; diff --git a/env_xbb_lastest_cheerio/env/Crypto.js b/env_xbb_lastest_cheerio/env/Crypto.js deleted file mode 100644 index dcc3eb3e..00000000 --- a/env_xbb_lastest_cheerio/env/Crypto.js +++ /dev/null @@ -1,9 +0,0 @@ -// Crypto对象 -Crypto = function Crypto(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Crypto, "Crypto"); -bodavm.toolsFunc.defineProperty(Crypto.prototype, "getRandomValues", {configurable:true, enumerable:true, writable:true, value:function getRandomValues (){return bodavm.toolsFunc.dispatch(this, Crypto.prototype, "Crypto", "getRandomValues", arguments)}}); -bodavm.toolsFunc.defineProperty(Crypto.prototype, "subtle", {configurable:true, enumerable:true, get:function subtle (){return bodavm.toolsFunc.dispatch(this, Crypto.prototype, "Crypto", "subtle_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Crypto.prototype, "randomUUID", {configurable:true, enumerable:true, writable:true, value:function randomUUID (){return bodavm.toolsFunc.dispatch(this, Crypto.prototype, "Crypto", "randomUUID", arguments)}}); - -var crypto={} -crypto.__proto__ = Crypto.prototype \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/CustomElementRegistry.js b/env_xbb_lastest_cheerio/env/CustomElementRegistry.js deleted file mode 100644 index 066198de..00000000 --- a/env_xbb_lastest_cheerio/env/CustomElementRegistry.js +++ /dev/null @@ -1,10 +0,0 @@ -//CustomElementRegistry对象 -CustomElementRegistry=function CustomElementRegistry(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(CustomElementRegistry,"CustomElementRegistry"); -bodavm.toolsFunc.defineProperty(CustomElementRegistry.prototype,"define",{configurable:true, enumerable:true, writable:true, value:function define() {return bodavm.toolsFunc.dispatch(this,CustomElementRegistry.prototype,"CustomElementRegistry","define",arguments)}}); -bodavm.toolsFunc.defineProperty(CustomElementRegistry.prototype,"get",{configurable:true, enumerable:true, writable:true, value:function get() {return bodavm.toolsFunc.dispatch(this,CustomElementRegistry.prototype,"CustomElementRegistry","get",arguments)}}); -bodavm.toolsFunc.defineProperty(CustomElementRegistry.prototype,"upgrade",{configurable:true, enumerable:true, writable:true, value:function upgrade() {return bodavm.toolsFunc.dispatch(this,CustomElementRegistry.prototype,"CustomElementRegistry","upgrade",arguments)}}); -bodavm.toolsFunc.defineProperty(CustomElementRegistry.prototype,"whenDefined",{configurable:true, enumerable:true, writable:true, value:function whenDefined() {return bodavm.toolsFunc.dispatch(this,CustomElementRegistry.prototype,"CustomElementRegistry","whenDefined",arguments)}}); -// customElements对象 -var customElements = {} -customElements.__proto__=CustomElementRegistry.prototype; diff --git a/env_xbb_lastest_cheerio/env/DOMParser.js b/env_xbb_lastest_cheerio/env/DOMParser.js deleted file mode 100644 index ca84a163..00000000 --- a/env_xbb_lastest_cheerio/env/DOMParser.js +++ /dev/null @@ -1,4 +0,0 @@ -// DOMParser对象 -DOMParser = function DOMParser(){} -bodavm.toolsFunc.safeProto(DOMParser, "DOMParser"); -bodavm.toolsFunc.defineProperty(DOMParser.prototype, "parseFromString", {configurable:true, enumerable:true, writable:true, value:function parseFromString (){return bodavm.toolsFunc.dispatch(this, DOMParser.prototype, "DOMParser", "parseFromString", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/DOMStringList.js b/env_xbb_lastest_cheerio/env/DOMStringList.js deleted file mode 100644 index 64f9c03c..00000000 --- a/env_xbb_lastest_cheerio/env/DOMStringList.js +++ /dev/null @@ -1,6 +0,0 @@ -// DOMStringList对象 -DOMStringList = function DOMStringList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(DOMStringList, "DOMStringList"); -bodavm.toolsFunc.defineProperty(DOMStringList.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, DOMStringList.prototype, "DOMStringList", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DOMStringList.prototype, "contains", {configurable:true, enumerable:true, writable:true, value:function contains (){return bodavm.toolsFunc.dispatch(this, DOMStringList.prototype, "DOMStringList", "contains", arguments)}}); -bodavm.toolsFunc.defineProperty(DOMStringList.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, DOMStringList.prototype, "DOMStringList", "item", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Database.js b/env_xbb_lastest_cheerio/env/Database.js deleted file mode 100644 index 64bfe7ab..00000000 --- a/env_xbb_lastest_cheerio/env/Database.js +++ /dev/null @@ -1,13 +0,0 @@ - - -// BarProp对象 -Database = function Database() { return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") } -bodavm.toolsFunc.safeProto(Database, "Database"); -bodavm.toolsFunc.defineProperty(Database.prototype, "version", { configurable: true, enumerable: true, get: function version() { return bodavm.toolsFunc.dispatch(this, Database.prototype, "Database", "version", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(Database.prototype, "readTransaction", { configurable: true, enumerable: true, writable: true, value: function readTransaction() { return bodavm.toolsFunc.dispatch(this, Database.prototype, "Database", "readTransaction", arguments) } }); -bodavm.toolsFunc.defineProperty(Database.prototype, "transaction", { configurable: true, enumerable: true, writable: true, value: function transaction() { return bodavm.toolsFunc.dispatch(this, Database.prototype, "Database", "transaction", arguments) } }); -bodavm.toolsFunc.defineProperty(Database.prototype, "changeVersion", { configurable: true, enumerable: true, writable: true, value: function changeVersion() { return bodavm.toolsFunc.dispatch(this, Database.prototype, "Database", "changeVersion", arguments) } }); - -var database = {} -database.__proto__ = Database.prototype -delete Database \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/DeprecatedStorageInfo.js b/env_xbb_lastest_cheerio/env/DeprecatedStorageInfo.js deleted file mode 100644 index d66bfc21..00000000 --- a/env_xbb_lastest_cheerio/env/DeprecatedStorageInfo.js +++ /dev/null @@ -1,15 +0,0 @@ - -DeprecatedStorageInfo = function DeprecatedStorageInfo() { } -bodavm.toolsFunc.safeProto(DeprecatedStorageInfo, "DeprecatedStorageInfo"); - -bodavm.toolsFunc.defineProperty(DeprecatedStorageInfo, "TEMPORARY", { configurable: false, enumerable: true, writable: false, value: 0 }); -bodavm.toolsFunc.defineProperty(DeprecatedStorageInfo, "PERSISTENT", { configurable: false, enumerable: true, writable: false, value: 1 }); -bodavm.toolsFunc.defineProperty(DeprecatedStorageInfo.prototype, "TEMPORARY", { configurable: false, enumerable: true, writable: false, value: 0 }); -bodavm.toolsFunc.defineProperty(DeprecatedStorageInfo.prototype, "PERSISTENT", { configurable: false, enumerable: true, writable: false, value: 1 }); -bodavm.toolsFunc.defineProperty(DeprecatedStorageInfo.prototype, "queryUsageAndQuota", { writable: true, enumerable: true, configurable: true, value: function queryUsageAndQuota() { return bodavm.toolsFunc.dispatch(this, DeprecatedStorageInfo.prototype, "DeprecatedStorageInfo", "queryUsageAndQuota", arguments) } }); -bodavm.toolsFunc.defineProperty(DeprecatedStorageInfo.prototype, "requestQuota", { writable: true, enumerable: true, configurable: true, value: function requestQuota() { return bodavm.toolsFunc.dispatch(this, DeprecatedStorageInfo.prototype, "DeprecatedStorageInfo", "requestQuota", arguments) } }); - -var webkitStorageInfo = {} -webkitStorageInfo.__proto__ = DeprecatedStorageInfo.prototype - -delete DeprecatedStorageInfo diff --git a/env_xbb_lastest_cheerio/env/DeviceOrientationEvent.js b/env_xbb_lastest_cheerio/env/DeviceOrientationEvent.js deleted file mode 100644 index 836f60f1..00000000 --- a/env_xbb_lastest_cheerio/env/DeviceOrientationEvent.js +++ /dev/null @@ -1,9 +0,0 @@ -// DeviceOrientationEvent对象 -DeviceOrientationEvent = function DeviceOrientationEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'DeviceOrientationEvent': 1 argument required, but only 0 present.")} -bodavm.toolsFunc.safeProto(DeviceOrientationEvent, "DeviceOrientationEvent"); -DeviceOrientationEvent.prototype.__proto__=Event.prototype; -DeviceOrientationEvent.__proto__=Event; -bodavm.toolsFunc.defineProperty(DeviceOrientationEvent.prototype, "alpha", {configurable:true, enumerable:true, get:function alpha (){return bodavm.toolsFunc.dispatch(this, DeviceOrientationEvent.prototype, "DeviceOrientationEvent", "alpha_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DeviceOrientationEvent.prototype, "beta", {configurable:true, enumerable:true, get:function beta (){return bodavm.toolsFunc.dispatch(this, DeviceOrientationEvent.prototype, "DeviceOrientationEvent", "beta_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DeviceOrientationEvent.prototype, "gamma", {configurable:true, enumerable:true, get:function gamma (){return bodavm.toolsFunc.dispatch(this, DeviceOrientationEvent.prototype, "DeviceOrientationEvent", "gamma_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DeviceOrientationEvent.prototype, "absolute", {configurable:true, enumerable:true, get:function absolute (){return bodavm.toolsFunc.dispatch(this, DeviceOrientationEvent.prototype, "DeviceOrientationEvent", "absolute_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Document.js b/env_xbb_lastest_cheerio/env/Document.js deleted file mode 100644 index 56ae349a..00000000 --- a/env_xbb_lastest_cheerio/env/Document.js +++ /dev/null @@ -1,232 +0,0 @@ -// Document对象 -Document = function Document(){} -bodavm.toolsFunc.safeProto(Document, "Document"); -Document.prototype.__proto__=Node.prototype; -Document.__proto__=Node; -bodavm.toolsFunc.defineProperty(Document.prototype, "implementation", {configurable:true, enumerable:true, get:function implementation (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "implementation_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "URL", {configurable:true, enumerable:true, get:function URL (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "URL_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "documentURI", {configurable:true, enumerable:true, get:function documentURI (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "documentURI_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "compatMode", {configurable:true, enumerable:true, get:function compatMode (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "compatMode_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "characterSet", {configurable:true, enumerable:true, get:function characterSet (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "characterSet_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "charset", {configurable:true, enumerable:true, get:function charset (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "charset_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "inputEncoding", {configurable:true, enumerable:true, get:function inputEncoding (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "inputEncoding_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "contentType", {configurable:true, enumerable:true, get:function contentType (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "contentType_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "doctype", {configurable:true, enumerable:true, get:function doctype (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "doctype_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "documentElement", {configurable:true, enumerable:true, get:function documentElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "documentElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "xmlEncoding", {configurable:true, enumerable:true, get:function xmlEncoding (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "xmlEncoding_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "xmlVersion", {configurable:true, enumerable:true, get:function xmlVersion (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "xmlVersion_get", arguments)}, set:function xmlVersion (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "xmlVersion_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "xmlStandalone", {configurable:true, enumerable:true, get:function xmlStandalone (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "xmlStandalone_get", arguments)}, set:function xmlStandalone (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "xmlStandalone_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "domain", {configurable:true, enumerable:true, get:function domain (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "domain_get", arguments)}, set:function domain (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "domain_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "referrer", {configurable:true, enumerable:true, get:function referrer (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "referrer_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "cookie", {configurable:true, enumerable:true, get:function cookie (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "cookie_get", arguments)}, set:function cookie (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "cookie_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "lastModified", {configurable:true, enumerable:true, get:function lastModified (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "lastModified_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "readyState", {configurable:true, enumerable:true, get:function readyState (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "readyState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "title", {configurable:true, enumerable:true, get:function title (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "title_get", arguments)}, set:function title (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "title_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "dir", {configurable:true, enumerable:true, get:function dir (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "dir_get", arguments)}, set:function dir (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "dir_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "body", {configurable:true, enumerable:true, get:function body (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "body_get", arguments)}, set:function body (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "body_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "head", {configurable:true, enumerable:true, get:function head (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "head_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "images", {configurable:true, enumerable:true, get:function images (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "images_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "embeds", {configurable:true, enumerable:true, get:function embeds (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "embeds_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "plugins", {configurable:true, enumerable:true, get:function plugins (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "plugins_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "links", {configurable:true, enumerable:true, get:function links (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "links_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "forms", {configurable:true, enumerable:true, get:function forms (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "forms_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "scripts", {configurable:true, enumerable:true, get:function scripts (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "scripts_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "currentScript", {configurable:true, enumerable:true, get:function currentScript (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "currentScript_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "defaultView", {configurable:true, enumerable:true, get:function defaultView (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "defaultView_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "designMode", {configurable:true, enumerable:true, get:function designMode (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "designMode_get", arguments)}, set:function designMode (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "designMode_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onreadystatechange", {configurable:true, enumerable:true, get:function onreadystatechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onreadystatechange_get", arguments)}, set:function onreadystatechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onreadystatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "anchors", {configurable:true, enumerable:true, get:function anchors (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "anchors_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "applets", {configurable:true, enumerable:true, get:function applets (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "applets_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "fgColor", {configurable:true, enumerable:true, get:function fgColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fgColor_get", arguments)}, set:function fgColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fgColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "linkColor", {configurable:true, enumerable:true, get:function linkColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "linkColor_get", arguments)}, set:function linkColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "linkColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "vlinkColor", {configurable:true, enumerable:true, get:function vlinkColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "vlinkColor_get", arguments)}, set:function vlinkColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "vlinkColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "alinkColor", {configurable:true, enumerable:true, get:function alinkColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "alinkColor_get", arguments)}, set:function alinkColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "alinkColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "bgColor", {configurable:true, enumerable:true, get:function bgColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "bgColor_get", arguments)}, set:function bgColor (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "bgColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "all", {configurable:true, enumerable:true, get:function all (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "all_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "scrollingElement", {configurable:true, enumerable:true, get:function scrollingElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "scrollingElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerlockchange", {configurable:true, enumerable:true, get:function onpointerlockchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerlockchange_get", arguments)}, set:function onpointerlockchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerlockchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerlockerror", {configurable:true, enumerable:true, get:function onpointerlockerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerlockerror_get", arguments)}, set:function onpointerlockerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerlockerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "hidden", {configurable:true, enumerable:true, get:function hidden (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "hidden_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "visibilityState", {configurable:true, enumerable:true, get:function visibilityState (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "visibilityState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "wasDiscarded", {configurable:true, enumerable:true, get:function wasDiscarded (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "wasDiscarded_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "featurePolicy", {configurable:true, enumerable:true, get:function featurePolicy (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "featurePolicy_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitVisibilityState", {configurable:true, enumerable:true, get:function webkitVisibilityState (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitVisibilityState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitHidden", {configurable:true, enumerable:true, get:function webkitHidden (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitHidden_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onbeforecopy", {configurable:true, enumerable:true, get:function onbeforecopy (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforecopy_get", arguments)}, set:function onbeforecopy (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforecopy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onbeforecut", {configurable:true, enumerable:true, get:function onbeforecut (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforecut_get", arguments)}, set:function onbeforecut (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforecut_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onbeforepaste", {configurable:true, enumerable:true, get:function onbeforepaste (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforepaste_get", arguments)}, set:function onbeforepaste (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforepaste_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onfreeze", {configurable:true, enumerable:true, get:function onfreeze (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfreeze_get", arguments)}, set:function onfreeze (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfreeze_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onresume", {configurable:true, enumerable:true, get:function onresume (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onresume_get", arguments)}, set:function onresume (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onresume_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onsearch", {configurable:true, enumerable:true, get:function onsearch (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsearch_get", arguments)}, set:function onsearch (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsearch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onvisibilitychange", {configurable:true, enumerable:true, get:function onvisibilitychange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onvisibilitychange_get", arguments)}, set:function onvisibilitychange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onvisibilitychange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "fullscreenEnabled", {configurable:true, enumerable:true, get:function fullscreenEnabled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fullscreenEnabled_get", arguments)}, set:function fullscreenEnabled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fullscreenEnabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "fullscreen", {configurable:true, enumerable:true, get:function fullscreen (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fullscreen_get", arguments)}, set:function fullscreen (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fullscreen_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onfullscreenchange", {configurable:true, enumerable:true, get:function onfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfullscreenchange_get", arguments)}, set:function onfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfullscreenchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onfullscreenerror", {configurable:true, enumerable:true, get:function onfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfullscreenerror_get", arguments)}, set:function onfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfullscreenerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitIsFullScreen", {configurable:true, enumerable:true, get:function webkitIsFullScreen (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitIsFullScreen_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitCurrentFullScreenElement", {configurable:true, enumerable:true, get:function webkitCurrentFullScreenElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitCurrentFullScreenElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitFullscreenEnabled", {configurable:true, enumerable:true, get:function webkitFullscreenEnabled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitFullscreenEnabled_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitFullscreenElement", {configurable:true, enumerable:true, get:function webkitFullscreenElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitFullscreenElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwebkitfullscreenchange", {configurable:true, enumerable:true, get:function onwebkitfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitfullscreenchange_get", arguments)}, set:function onwebkitfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitfullscreenchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwebkitfullscreenerror", {configurable:true, enumerable:true, get:function onwebkitfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitfullscreenerror_get", arguments)}, set:function onwebkitfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitfullscreenerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "rootElement", {configurable:true, enumerable:true, get:function rootElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "rootElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onbeforexrselect", {configurable:true, enumerable:true, get:function onbeforexrselect (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforexrselect_get", arguments)}, set:function onbeforexrselect (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforexrselect_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onblur", {configurable:true, enumerable:true, get:function onblur (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onblur_get", arguments)}, set:function onblur (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onblur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncancel", {configurable:true, enumerable:true, get:function oncancel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncancel_get", arguments)}, set:function oncancel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncanplay", {configurable:true, enumerable:true, get:function oncanplay (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncanplay_get", arguments)}, set:function oncanplay (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncanplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncanplaythrough", {configurable:true, enumerable:true, get:function oncanplaythrough (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncanplaythrough_get", arguments)}, set:function oncanplaythrough (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncanplaythrough_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onclick", {configurable:true, enumerable:true, get:function onclick (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onclick_get", arguments)}, set:function onclick (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onclose", {configurable:true, enumerable:true, get:function onclose (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onclose_get", arguments)}, set:function onclose (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onclose_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncontextlost", {configurable:true, enumerable:true, get:function oncontextlost (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncontextlost_get", arguments)}, set:function oncontextlost (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncontextlost_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncontextmenu", {configurable:true, enumerable:true, get:function oncontextmenu (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncontextmenu_get", arguments)}, set:function oncontextmenu (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncontextmenu_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncontextrestored", {configurable:true, enumerable:true, get:function oncontextrestored (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncontextrestored_get", arguments)}, set:function oncontextrestored (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncontextrestored_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncuechange", {configurable:true, enumerable:true, get:function oncuechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncuechange_get", arguments)}, set:function oncuechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncuechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondblclick", {configurable:true, enumerable:true, get:function ondblclick (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondblclick_get", arguments)}, set:function ondblclick (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondblclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondrag", {configurable:true, enumerable:true, get:function ondrag (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondrag_get", arguments)}, set:function ondrag (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondrag_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondragend", {configurable:true, enumerable:true, get:function ondragend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragend_get", arguments)}, set:function ondragend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondragenter", {configurable:true, enumerable:true, get:function ondragenter (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragenter_get", arguments)}, set:function ondragenter (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondragleave", {configurable:true, enumerable:true, get:function ondragleave (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragleave_get", arguments)}, set:function ondragleave (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondragover", {configurable:true, enumerable:true, get:function ondragover (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragover_get", arguments)}, set:function ondragover (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondragstart", {configurable:true, enumerable:true, get:function ondragstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragstart_get", arguments)}, set:function ondragstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondragstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondrop", {configurable:true, enumerable:true, get:function ondrop (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondrop_get", arguments)}, set:function ondrop (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondrop_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ondurationchange", {configurable:true, enumerable:true, get:function ondurationchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondurationchange_get", arguments)}, set:function ondurationchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ondurationchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onemptied", {configurable:true, enumerable:true, get:function onemptied (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onemptied_get", arguments)}, set:function onemptied (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onemptied_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onended", {configurable:true, enumerable:true, get:function onended (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onended_get", arguments)}, set:function onended (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onended_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onfocus", {configurable:true, enumerable:true, get:function onfocus (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfocus_get", arguments)}, set:function onfocus (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onfocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onformdata", {configurable:true, enumerable:true, get:function onformdata (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onformdata_get", arguments)}, set:function onformdata (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onformdata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oninput", {configurable:true, enumerable:true, get:function oninput (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oninput_get", arguments)}, set:function oninput (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oninput_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oninvalid", {configurable:true, enumerable:true, get:function oninvalid (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oninvalid_get", arguments)}, set:function oninvalid (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oninvalid_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onkeydown", {configurable:true, enumerable:true, get:function onkeydown (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onkeydown_get", arguments)}, set:function onkeydown (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onkeydown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onkeypress", {configurable:true, enumerable:true, get:function onkeypress (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onkeypress_get", arguments)}, set:function onkeypress (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onkeypress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onkeyup", {configurable:true, enumerable:true, get:function onkeyup (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onkeyup_get", arguments)}, set:function onkeyup (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onkeyup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onload", {configurable:true, enumerable:true, get:function onload (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onload_get", arguments)}, set:function onload (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onloadeddata", {configurable:true, enumerable:true, get:function onloadeddata (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onloadeddata_get", arguments)}, set:function onloadeddata (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onloadeddata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onloadedmetadata", {configurable:true, enumerable:true, get:function onloadedmetadata (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onloadedmetadata_get", arguments)}, set:function onloadedmetadata (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onloadedmetadata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onloadstart", {configurable:true, enumerable:true, get:function onloadstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onloadstart_get", arguments)}, set:function onloadstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onloadstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmousedown", {configurable:true, enumerable:true, get:function onmousedown (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmousedown_get", arguments)}, set:function onmousedown (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmousedown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmouseenter", {configurable:true, enumerable:true, get:function onmouseenter (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseenter_get", arguments)}, set:function onmouseenter (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmouseleave", {configurable:true, enumerable:true, get:function onmouseleave (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseleave_get", arguments)}, set:function onmouseleave (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmousemove", {configurable:true, enumerable:true, get:function onmousemove (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmousemove_get", arguments)}, set:function onmousemove (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmousemove_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmouseout", {configurable:true, enumerable:true, get:function onmouseout (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseout_get", arguments)}, set:function onmouseout (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmouseover", {configurable:true, enumerable:true, get:function onmouseover (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseover_get", arguments)}, set:function onmouseover (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmouseup", {configurable:true, enumerable:true, get:function onmouseup (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseup_get", arguments)}, set:function onmouseup (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmouseup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onmousewheel", {configurable:true, enumerable:true, get:function onmousewheel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmousewheel_get", arguments)}, set:function onmousewheel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onmousewheel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpause", {configurable:true, enumerable:true, get:function onpause (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpause_get", arguments)}, set:function onpause (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpause_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onplay", {configurable:true, enumerable:true, get:function onplay (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onplay_get", arguments)}, set:function onplay (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onplaying", {configurable:true, enumerable:true, get:function onplaying (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onplaying_get", arguments)}, set:function onplaying (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onplaying_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onprogress", {configurable:true, enumerable:true, get:function onprogress (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onprogress_get", arguments)}, set:function onprogress (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onprogress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onratechange", {configurable:true, enumerable:true, get:function onratechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onratechange_get", arguments)}, set:function onratechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onratechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onreset", {configurable:true, enumerable:true, get:function onreset (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onreset_get", arguments)}, set:function onreset (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onreset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onresize", {configurable:true, enumerable:true, get:function onresize (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onresize_get", arguments)}, set:function onresize (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onresize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onscroll", {configurable:true, enumerable:true, get:function onscroll (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onscroll_get", arguments)}, set:function onscroll (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onscroll_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onsecuritypolicyviolation", {configurable:true, enumerable:true, get:function onsecuritypolicyviolation (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsecuritypolicyviolation_get", arguments)}, set:function onsecuritypolicyviolation (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsecuritypolicyviolation_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onseeked", {configurable:true, enumerable:true, get:function onseeked (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onseeked_get", arguments)}, set:function onseeked (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onseeked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onseeking", {configurable:true, enumerable:true, get:function onseeking (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onseeking_get", arguments)}, set:function onseeking (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onseeking_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onselect", {configurable:true, enumerable:true, get:function onselect (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onselect_get", arguments)}, set:function onselect (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onselect_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onslotchange", {configurable:true, enumerable:true, get:function onslotchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onslotchange_get", arguments)}, set:function onslotchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onslotchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onstalled", {configurable:true, enumerable:true, get:function onstalled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onstalled_get", arguments)}, set:function onstalled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onstalled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onsubmit", {configurable:true, enumerable:true, get:function onsubmit (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsubmit_get", arguments)}, set:function onsubmit (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsubmit_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onsuspend", {configurable:true, enumerable:true, get:function onsuspend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsuspend_get", arguments)}, set:function onsuspend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onsuspend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ontimeupdate", {configurable:true, enumerable:true, get:function ontimeupdate (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontimeupdate_get", arguments)}, set:function ontimeupdate (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontimeupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ontoggle", {configurable:true, enumerable:true, get:function ontoggle (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontoggle_get", arguments)}, set:function ontoggle (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontoggle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onvolumechange", {configurable:true, enumerable:true, get:function onvolumechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onvolumechange_get", arguments)}, set:function onvolumechange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onvolumechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwaiting", {configurable:true, enumerable:true, get:function onwaiting (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwaiting_get", arguments)}, set:function onwaiting (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwaiting_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwebkitanimationend", {configurable:true, enumerable:true, get:function onwebkitanimationend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitanimationend_get", arguments)}, set:function onwebkitanimationend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitanimationend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwebkitanimationiteration", {configurable:true, enumerable:true, get:function onwebkitanimationiteration (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitanimationiteration_get", arguments)}, set:function onwebkitanimationiteration (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitanimationiteration_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwebkitanimationstart", {configurable:true, enumerable:true, get:function onwebkitanimationstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitanimationstart_get", arguments)}, set:function onwebkitanimationstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkitanimationstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwebkittransitionend", {configurable:true, enumerable:true, get:function onwebkittransitionend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkittransitionend_get", arguments)}, set:function onwebkittransitionend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwebkittransitionend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onwheel", {configurable:true, enumerable:true, get:function onwheel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwheel_get", arguments)}, set:function onwheel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onwheel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onauxclick", {configurable:true, enumerable:true, get:function onauxclick (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onauxclick_get", arguments)}, set:function onauxclick (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onauxclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ongotpointercapture", {configurable:true, enumerable:true, get:function ongotpointercapture (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ongotpointercapture_get", arguments)}, set:function ongotpointercapture (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ongotpointercapture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onlostpointercapture", {configurable:true, enumerable:true, get:function onlostpointercapture (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onlostpointercapture_get", arguments)}, set:function onlostpointercapture (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onlostpointercapture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerdown", {configurable:true, enumerable:true, get:function onpointerdown (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerdown_get", arguments)}, set:function onpointerdown (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerdown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointermove", {configurable:true, enumerable:true, get:function onpointermove (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointermove_get", arguments)}, set:function onpointermove (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointermove_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerup", {configurable:true, enumerable:true, get:function onpointerup (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerup_get", arguments)}, set:function onpointerup (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointercancel", {configurable:true, enumerable:true, get:function onpointercancel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointercancel_get", arguments)}, set:function onpointercancel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointercancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerover", {configurable:true, enumerable:true, get:function onpointerover (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerover_get", arguments)}, set:function onpointerover (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerout", {configurable:true, enumerable:true, get:function onpointerout (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerout_get", arguments)}, set:function onpointerout (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerenter", {configurable:true, enumerable:true, get:function onpointerenter (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerenter_get", arguments)}, set:function onpointerenter (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerleave", {configurable:true, enumerable:true, get:function onpointerleave (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerleave_get", arguments)}, set:function onpointerleave (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onselectstart", {configurable:true, enumerable:true, get:function onselectstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onselectstart_get", arguments)}, set:function onselectstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onselectstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onselectionchange", {configurable:true, enumerable:true, get:function onselectionchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onselectionchange_get", arguments)}, set:function onselectionchange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onselectionchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onanimationend", {configurable:true, enumerable:true, get:function onanimationend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onanimationend_get", arguments)}, set:function onanimationend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onanimationend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onanimationiteration", {configurable:true, enumerable:true, get:function onanimationiteration (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onanimationiteration_get", arguments)}, set:function onanimationiteration (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onanimationiteration_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onanimationstart", {configurable:true, enumerable:true, get:function onanimationstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onanimationstart_get", arguments)}, set:function onanimationstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onanimationstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ontransitionrun", {configurable:true, enumerable:true, get:function ontransitionrun (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitionrun_get", arguments)}, set:function ontransitionrun (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitionrun_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ontransitionstart", {configurable:true, enumerable:true, get:function ontransitionstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitionstart_get", arguments)}, set:function ontransitionstart (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitionstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ontransitionend", {configurable:true, enumerable:true, get:function ontransitionend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitionend_get", arguments)}, set:function ontransitionend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitionend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "ontransitioncancel", {configurable:true, enumerable:true, get:function ontransitioncancel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitioncancel_get", arguments)}, set:function ontransitioncancel (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "ontransitioncancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncopy", {configurable:true, enumerable:true, get:function oncopy (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncopy_get", arguments)}, set:function oncopy (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncopy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "oncut", {configurable:true, enumerable:true, get:function oncut (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncut_get", arguments)}, set:function oncut (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "oncut_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpaste", {configurable:true, enumerable:true, get:function onpaste (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpaste_get", arguments)}, set:function onpaste (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpaste_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "children", {configurable:true, enumerable:true, get:function children (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "children_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "firstElementChild", {configurable:true, enumerable:true, get:function firstElementChild (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "firstElementChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "lastElementChild", {configurable:true, enumerable:true, get:function lastElementChild (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "lastElementChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "childElementCount", {configurable:true, enumerable:true, get:function childElementCount (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "childElementCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "activeElement", {configurable:true, enumerable:true, get:function activeElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "activeElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "styleSheets", {configurable:true, enumerable:true, get:function styleSheets (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "styleSheets_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "pointerLockElement", {configurable:true, enumerable:true, get:function pointerLockElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "pointerLockElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "fullscreenElement", {configurable:true, enumerable:true, get:function fullscreenElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fullscreenElement_get", arguments)}, set:function fullscreenElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fullscreenElement_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "adoptedStyleSheets", {configurable:true, enumerable:true, get:function adoptedStyleSheets (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "adoptedStyleSheets_get", arguments)}, set:function adoptedStyleSheets (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "adoptedStyleSheets_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "fonts", {configurable:true, enumerable:true, get:function fonts (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fonts_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "adoptNode", {configurable:true, enumerable:true, writable:true, value:function adoptNode (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "adoptNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "append", {configurable:true, enumerable:true, writable:true, value:function append (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "append", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "captureEvents", {configurable:true, enumerable:true, writable:true, value:function captureEvents (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "captureEvents", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "caretRangeFromPoint", {configurable:true, enumerable:true, writable:true, value:function caretRangeFromPoint (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "caretRangeFromPoint", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "clear", {configurable:true, enumerable:true, writable:true, value:function clear (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "clear", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "close", {configurable:true, enumerable:true, writable:true, value:function close (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "close", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createAttribute", {configurable:true, enumerable:true, writable:true, value:function createAttribute (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createAttribute", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createAttributeNS", {configurable:true, enumerable:true, writable:true, value:function createAttributeNS (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createAttributeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createCDATASection", {configurable:true, enumerable:true, writable:true, value:function createCDATASection (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createCDATASection", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createComment", {configurable:true, enumerable:true, writable:true, value:function createComment (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createComment", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createDocumentFragment", {configurable:true, enumerable:true, writable:true, value:function createDocumentFragment (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createDocumentFragment", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createElement", {configurable:true, enumerable:true, writable:true, value:function createElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createElement", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createElementNS", {configurable:true, enumerable:true, writable:true, value:function createElementNS (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createElementNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createEvent", {configurable:true, enumerable:true, writable:true, value:function createEvent (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createEvent", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createExpression", {configurable:true, enumerable:true, writable:true, value:function createExpression (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createExpression", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createNSResolver", {configurable:true, enumerable:true, writable:true, value:function createNSResolver (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createNSResolver", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createNodeIterator", {configurable:true, enumerable:true, writable:true, value:function createNodeIterator (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createNodeIterator", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createProcessingInstruction", {configurable:true, enumerable:true, writable:true, value:function createProcessingInstruction (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createProcessingInstruction", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createRange", {configurable:true, enumerable:true, writable:true, value:function createRange (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createRange", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createTextNode", {configurable:true, enumerable:true, writable:true, value:function createTextNode (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createTextNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "createTreeWalker", {configurable:true, enumerable:true, writable:true, value:function createTreeWalker (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "createTreeWalker", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "elementFromPoint", {configurable:true, enumerable:true, writable:true, value:function elementFromPoint (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "elementFromPoint", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "elementsFromPoint", {configurable:true, enumerable:true, writable:true, value:function elementsFromPoint (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "elementsFromPoint", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "evaluate", {configurable:true, enumerable:true, writable:true, value:function evaluate (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "evaluate", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "execCommand", {configurable:true, enumerable:true, writable:true, value:function execCommand (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "execCommand", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "exitFullscreen", {configurable:true, enumerable:true, writable:true, value:function exitFullscreen (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "exitFullscreen", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "exitPointerLock", {configurable:true, enumerable:true, writable:true, value:function exitPointerLock (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "exitPointerLock", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getElementById", {configurable:true, enumerable:true, writable:true, value:function getElementById (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getElementById", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getElementsByClassName", {configurable:true, enumerable:true, writable:true, value:function getElementsByClassName (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getElementsByClassName", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getElementsByName", {configurable:true, enumerable:true, writable:true, value:function getElementsByName (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getElementsByName", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getElementsByTagName", {configurable:true, enumerable:true, writable:true, value:function getElementsByTagName (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getElementsByTagName", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getElementsByTagNameNS", {configurable:true, enumerable:true, writable:true, value:function getElementsByTagNameNS (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getElementsByTagNameNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getSelection", {configurable:true, enumerable:true, writable:true, value:function getSelection (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getSelection", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "hasFocus", {configurable:true, enumerable:true, writable:true, value:function hasFocus (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "hasFocus", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "importNode", {configurable:true, enumerable:true, writable:true, value:function importNode (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "importNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "open", {configurable:true, enumerable:true, writable:true, value:function open (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "open", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "prepend", {configurable:true, enumerable:true, writable:true, value:function prepend (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "prepend", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "queryCommandEnabled", {configurable:true, enumerable:true, writable:true, value:function queryCommandEnabled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "queryCommandEnabled", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "queryCommandIndeterm", {configurable:true, enumerable:true, writable:true, value:function queryCommandIndeterm (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "queryCommandIndeterm", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "queryCommandState", {configurable:true, enumerable:true, writable:true, value:function queryCommandState (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "queryCommandState", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "queryCommandSupported", {configurable:true, enumerable:true, writable:true, value:function queryCommandSupported (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "queryCommandSupported", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "queryCommandValue", {configurable:true, enumerable:true, writable:true, value:function queryCommandValue (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "queryCommandValue", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "querySelector", {configurable:true, enumerable:true, writable:true, value:function querySelector (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "querySelector", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "querySelectorAll", {configurable:true, enumerable:true, writable:true, value:function querySelectorAll (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "querySelectorAll", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "releaseEvents", {configurable:true, enumerable:true, writable:true, value:function releaseEvents (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "releaseEvents", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "replaceChildren", {configurable:true, enumerable:true, writable:true, value:function replaceChildren (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "replaceChildren", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitCancelFullScreen", {configurable:true, enumerable:true, writable:true, value:function webkitCancelFullScreen (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitCancelFullScreen", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "webkitExitFullscreen", {configurable:true, enumerable:true, writable:true, value:function webkitExitFullscreen (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "webkitExitFullscreen", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "write", {configurable:true, enumerable:true, writable:true, value:function write (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "write", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "writeln", {configurable:true, enumerable:true, writable:true, value:function writeln (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "writeln", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "fragmentDirective", {configurable:true, enumerable:true, get:function fragmentDirective (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "fragmentDirective_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onbeforematch", {configurable:true, enumerable:true, get:function onbeforematch (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforematch_get", arguments)}, set:function onbeforematch (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onbeforematch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "timeline", {configurable:true, enumerable:true, get:function timeline (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "timeline_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "pictureInPictureEnabled", {configurable:true, enumerable:true, get:function pictureInPictureEnabled (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "pictureInPictureEnabled_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "pictureInPictureElement", {configurable:true, enumerable:true, get:function pictureInPictureElement (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "pictureInPictureElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Document.prototype, "onpointerrawupdate", {configurable:true, enumerable:true, get:function onpointerrawupdate (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerrawupdate_get", arguments)}, set:function onpointerrawupdate (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "onpointerrawupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "exitPictureInPicture", {configurable:true, enumerable:true, writable:true, value:function exitPictureInPicture (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "exitPictureInPicture", arguments)}}); -bodavm.toolsFunc.defineProperty(Document.prototype, "getAnimations", {configurable:true, enumerable:true, writable:true, value:function getAnimations (){return bodavm.toolsFunc.dispatch(this, Document.prototype, "Document", "getAnimations", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/DocumentFragment.js b/env_xbb_lastest_cheerio/env/DocumentFragment.js deleted file mode 100644 index e152ce95..00000000 --- a/env_xbb_lastest_cheerio/env/DocumentFragment.js +++ /dev/null @@ -1,15 +0,0 @@ -// DocumentFragment对象 -DocumentFragment = function DocumentFragment(){} -bodavm.toolsFunc.safeProto(DocumentFragment, "DocumentFragment"); -DocumentFragment.prototype.__proto__=Node.prototype; -DocumentFragment.__proto__=Node; -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "children", {configurable:true, enumerable:true, get:function children (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "children_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "firstElementChild", {configurable:true, enumerable:true, get:function firstElementChild (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "firstElementChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "lastElementChild", {configurable:true, enumerable:true, get:function lastElementChild (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "lastElementChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "childElementCount", {configurable:true, enumerable:true, get:function childElementCount (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "childElementCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "append", {configurable:true, enumerable:true, writable:true, value:function append (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "append", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "getElementById", {configurable:true, enumerable:true, writable:true, value:function getElementById (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "getElementById", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "prepend", {configurable:true, enumerable:true, writable:true, value:function prepend (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "prepend", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "querySelector", {configurable:true, enumerable:true, writable:true, value:function querySelector (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "querySelector", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "querySelectorAll", {configurable:true, enumerable:true, writable:true, value:function querySelectorAll (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "querySelectorAll", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentFragment.prototype, "replaceChildren", {configurable:true, enumerable:true, writable:true, value:function replaceChildren (){return bodavm.toolsFunc.dispatch(this, DocumentFragment.prototype, "DocumentFragment", "replaceChildren", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/DocumentType.js b/env_xbb_lastest_cheerio/env/DocumentType.js deleted file mode 100644 index 9db683c2..00000000 --- a/env_xbb_lastest_cheerio/env/DocumentType.js +++ /dev/null @@ -1,12 +0,0 @@ -// DocumentType对象 -DocumentType = function DocumentType(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(DocumentType, "DocumentType"); -DocumentType.prototype.__proto__=Node.prototype; -DocumentType.__proto__=Node; -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "name_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "publicId", {configurable:true, enumerable:true, get:function publicId (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "publicId_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "systemId", {configurable:true, enumerable:true, get:function systemId (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "systemId_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "after", {configurable:true, enumerable:true, writable:true, value:function after (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "after", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "before", {configurable:true, enumerable:true, writable:true, value:function before (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "before", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "remove", {configurable:true, enumerable:true, writable:true, value:function remove (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "remove", arguments)}}); -bodavm.toolsFunc.defineProperty(DocumentType.prototype, "replaceWith", {configurable:true, enumerable:true, writable:true, value:function replaceWith (){return bodavm.toolsFunc.dispatch(this, DocumentType.prototype, "DocumentType", "replaceWith", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Element.js b/env_xbb_lastest_cheerio/env/Element.js deleted file mode 100644 index 2e275774..00000000 --- a/env_xbb_lastest_cheerio/env/Element.js +++ /dev/null @@ -1,135 +0,0 @@ -// Element对象 -Element = function Element(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Element, "Element"); -Element.prototype.__proto__=Node.prototype; -Element.__proto__=Node; -bodavm.toolsFunc.defineProperty(Element.prototype, "namespaceURI", {configurable:true, enumerable:true, get:function namespaceURI (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "namespaceURI_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "prefix", {configurable:true, enumerable:true, get:function prefix (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "prefix_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "localName", {configurable:true, enumerable:true, get:function localName (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "localName_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "tagName", {configurable:true, enumerable:true, get:function tagName (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "tagName_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "id", {configurable:true, enumerable:true, get:function id (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "id_get", arguments)}, set:function id (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "id_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "className", {configurable:true, enumerable:true, get:function className (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "className_get", arguments)}, set:function className (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "className_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "classList", {configurable:true, enumerable:true, get:function classList (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "classList_get", arguments)}, set:function classList (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "classList_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "slot", {configurable:true, enumerable:true, get:function slot (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "slot_get", arguments)}, set:function slot (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "slot_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "attributes", {configurable:true, enumerable:true, get:function attributes (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "attributes_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "shadowRoot", {configurable:true, enumerable:true, get:function shadowRoot (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "shadowRoot_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "part", {configurable:true, enumerable:true, get:function part (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "part_get", arguments)}, set:function part (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "part_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "assignedSlot", {configurable:true, enumerable:true, get:function assignedSlot (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "assignedSlot_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "innerHTML", {configurable:true, enumerable:true, get:function innerHTML (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "innerHTML_get", arguments)}, set:function innerHTML (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "innerHTML_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "outerHTML", {configurable:true, enumerable:true, get:function outerHTML (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "outerHTML_get", arguments)}, set:function outerHTML (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "outerHTML_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollTop", {configurable:true, enumerable:true, get:function scrollTop (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollTop_get", arguments)}, set:function scrollTop (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollTop_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollLeft", {configurable:true, enumerable:true, get:function scrollLeft (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollLeft_get", arguments)}, set:function scrollLeft (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollLeft_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollWidth", {configurable:true, enumerable:true, get:function scrollWidth (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollHeight", {configurable:true, enumerable:true, get:function scrollHeight (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "clientTop", {configurable:true, enumerable:true, get:function clientTop (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "clientTop_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "clientLeft", {configurable:true, enumerable:true, get:function clientLeft (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "clientLeft_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "clientWidth", {configurable:true, enumerable:true, get:function clientWidth (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "clientWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "clientHeight", {configurable:true, enumerable:true, get:function clientHeight (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "clientHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "attributeStyleMap", {configurable:true, enumerable:true, get:function attributeStyleMap (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "attributeStyleMap_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onbeforecopy", {configurable:true, enumerable:true, get:function onbeforecopy (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onbeforecopy_get", arguments)}, set:function onbeforecopy (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onbeforecopy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onbeforecut", {configurable:true, enumerable:true, get:function onbeforecut (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onbeforecut_get", arguments)}, set:function onbeforecut (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onbeforecut_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onbeforepaste", {configurable:true, enumerable:true, get:function onbeforepaste (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onbeforepaste_get", arguments)}, set:function onbeforepaste (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onbeforepaste_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onsearch", {configurable:true, enumerable:true, get:function onsearch (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onsearch_get", arguments)}, set:function onsearch (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onsearch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "elementTiming", {configurable:true, enumerable:true, get:function elementTiming (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "elementTiming_get", arguments)}, set:function elementTiming (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "elementTiming_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onfullscreenchange", {configurable:true, enumerable:true, get:function onfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onfullscreenchange_get", arguments)}, set:function onfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onfullscreenchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onfullscreenerror", {configurable:true, enumerable:true, get:function onfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onfullscreenerror_get", arguments)}, set:function onfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onfullscreenerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onwebkitfullscreenchange", {configurable:true, enumerable:true, get:function onwebkitfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onwebkitfullscreenchange_get", arguments)}, set:function onwebkitfullscreenchange (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onwebkitfullscreenchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "onwebkitfullscreenerror", {configurable:true, enumerable:true, get:function onwebkitfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onwebkitfullscreenerror_get", arguments)}, set:function onwebkitfullscreenerror (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "onwebkitfullscreenerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "children", {configurable:true, enumerable:true, get:function children (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "children_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "firstElementChild", {configurable:true, enumerable:true, get:function firstElementChild (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "firstElementChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "lastElementChild", {configurable:true, enumerable:true, get:function lastElementChild (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "lastElementChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "childElementCount", {configurable:true, enumerable:true, get:function childElementCount (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "childElementCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "previousElementSibling", {configurable:true, enumerable:true, get:function previousElementSibling (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "previousElementSibling_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "nextElementSibling", {configurable:true, enumerable:true, get:function nextElementSibling (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "nextElementSibling_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Element.prototype, "after", {configurable:true, enumerable:true, writable:true, value:function after (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "after", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "animate", {configurable:true, enumerable:true, writable:true, value:function animate (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "animate", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "append", {configurable:true, enumerable:true, writable:true, value:function append (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "append", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "attachShadow", {configurable:true, enumerable:true, writable:true, value:function attachShadow (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "attachShadow", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "before", {configurable:true, enumerable:true, writable:true, value:function before (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "before", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "closest", {configurable:true, enumerable:true, writable:true, value:function closest (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "closest", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "computedStyleMap", {configurable:true, enumerable:true, writable:true, value:function computedStyleMap (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "computedStyleMap", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getAttribute", {configurable:true, enumerable:true, writable:true, value:function getAttribute (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getAttribute", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getAttributeNS", {configurable:true, enumerable:true, writable:true, value:function getAttributeNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getAttributeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getAttributeNames", {configurable:true, enumerable:true, writable:true, value:function getAttributeNames (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getAttributeNames", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getAttributeNode", {configurable:true, enumerable:true, writable:true, value:function getAttributeNode (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getAttributeNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getAttributeNodeNS", {configurable:true, enumerable:true, writable:true, value:function getAttributeNodeNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getAttributeNodeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getBoundingClientRect", {configurable:true, enumerable:true, writable:true, value:function getBoundingClientRect (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getBoundingClientRect", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getClientRects", {configurable:true, enumerable:true, writable:true, value:function getClientRects (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getClientRects", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getElementsByClassName", {configurable:true, enumerable:true, writable:true, value:function getElementsByClassName (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getElementsByClassName", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getElementsByTagName", {configurable:true, enumerable:true, writable:true, value:function getElementsByTagName (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getElementsByTagName", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getElementsByTagNameNS", {configurable:true, enumerable:true, writable:true, value:function getElementsByTagNameNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getElementsByTagNameNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getInnerHTML", {configurable:true, enumerable:true, writable:true, value:function getInnerHTML (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getInnerHTML", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "hasAttribute", {configurable:true, enumerable:true, writable:true, value:function hasAttribute (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "hasAttribute", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "hasAttributeNS", {configurable:true, enumerable:true, writable:true, value:function hasAttributeNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "hasAttributeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "hasAttributes", {configurable:true, enumerable:true, writable:true, value:function hasAttributes (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "hasAttributes", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "hasPointerCapture", {configurable:true, enumerable:true, writable:true, value:function hasPointerCapture (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "hasPointerCapture", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "insertAdjacentElement", {configurable:true, enumerable:true, writable:true, value:function insertAdjacentElement (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "insertAdjacentElement", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "insertAdjacentHTML", {configurable:true, enumerable:true, writable:true, value:function insertAdjacentHTML (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "insertAdjacentHTML", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "insertAdjacentText", {configurable:true, enumerable:true, writable:true, value:function insertAdjacentText (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "insertAdjacentText", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "matches", {configurable:true, enumerable:true, writable:true, value:function matches (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "matches", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "prepend", {configurable:true, enumerable:true, writable:true, value:function prepend (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "prepend", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "querySelector", {configurable:true, enumerable:true, writable:true, value:function querySelector (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "querySelector", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "querySelectorAll", {configurable:true, enumerable:true, writable:true, value:function querySelectorAll (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "querySelectorAll", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "releasePointerCapture", {configurable:true, enumerable:true, writable:true, value:function releasePointerCapture (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "releasePointerCapture", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "remove", {configurable:true, enumerable:true, writable:true, value:function remove (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "remove", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "removeAttribute", {configurable:true, enumerable:true, writable:true, value:function removeAttribute (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "removeAttribute", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "removeAttributeNS", {configurable:true, enumerable:true, writable:true, value:function removeAttributeNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "removeAttributeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "removeAttributeNode", {configurable:true, enumerable:true, writable:true, value:function removeAttributeNode (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "removeAttributeNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "replaceChildren", {configurable:true, enumerable:true, writable:true, value:function replaceChildren (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "replaceChildren", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "replaceWith", {configurable:true, enumerable:true, writable:true, value:function replaceWith (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "replaceWith", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "requestFullscreen", {configurable:true, enumerable:true, writable:true, value:function requestFullscreen (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "requestFullscreen", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "requestPointerLock", {configurable:true, enumerable:true, writable:true, value:function requestPointerLock (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "requestPointerLock", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scroll", {configurable:true, enumerable:true, writable:true, value:function scroll (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scroll", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollBy", {configurable:true, enumerable:true, writable:true, value:function scrollBy (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollBy", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollIntoView", {configurable:true, enumerable:true, writable:true, value:function scrollIntoView (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollIntoView", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollIntoViewIfNeeded", {configurable:true, enumerable:true, writable:true, value:function scrollIntoViewIfNeeded (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollIntoViewIfNeeded", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "scrollTo", {configurable:true, enumerable:true, writable:true, value:function scrollTo (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "scrollTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "setAttribute", {configurable:true, enumerable:true, writable:true, value:function setAttribute (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "setAttribute", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "setAttributeNS", {configurable:true, enumerable:true, writable:true, value:function setAttributeNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "setAttributeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "setAttributeNode", {configurable:true, enumerable:true, writable:true, value:function setAttributeNode (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "setAttributeNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "setAttributeNodeNS", {configurable:true, enumerable:true, writable:true, value:function setAttributeNodeNS (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "setAttributeNodeNS", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "setPointerCapture", {configurable:true, enumerable:true, writable:true, value:function setPointerCapture (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "setPointerCapture", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "toggleAttribute", {configurable:true, enumerable:true, writable:true, value:function toggleAttribute (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "toggleAttribute", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "webkitMatchesSelector", {configurable:true, enumerable:true, writable:true, value:function webkitMatchesSelector (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "webkitMatchesSelector", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "webkitRequestFullScreen", {configurable:true, enumerable:true, writable:true, value:function webkitRequestFullScreen (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "webkitRequestFullScreen", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "webkitRequestFullscreen", {configurable:true, enumerable:true, writable:true, value:function webkitRequestFullscreen (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "webkitRequestFullscreen", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaAtomic", {configurable:true, enumerable:true, get:function ariaAtomic (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaAtomic_get", arguments)}, set:function ariaAtomic (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaAtomic_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaAutoComplete", {configurable:true, enumerable:true, get:function ariaAutoComplete (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaAutoComplete_get", arguments)}, set:function ariaAutoComplete (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaAutoComplete_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaBusy", {configurable:true, enumerable:true, get:function ariaBusy (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaBusy_get", arguments)}, set:function ariaBusy (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaBusy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaChecked", {configurable:true, enumerable:true, get:function ariaChecked (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaChecked_get", arguments)}, set:function ariaChecked (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaChecked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaColCount", {configurable:true, enumerable:true, get:function ariaColCount (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaColCount_get", arguments)}, set:function ariaColCount (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaColCount_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaColIndex", {configurable:true, enumerable:true, get:function ariaColIndex (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaColIndex_get", arguments)}, set:function ariaColIndex (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaColIndex_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaColSpan", {configurable:true, enumerable:true, get:function ariaColSpan (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaColSpan_get", arguments)}, set:function ariaColSpan (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaColSpan_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaCurrent", {configurable:true, enumerable:true, get:function ariaCurrent (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaCurrent_get", arguments)}, set:function ariaCurrent (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaCurrent_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaDescription", {configurable:true, enumerable:true, get:function ariaDescription (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaDescription_get", arguments)}, set:function ariaDescription (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaDescription_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaDisabled", {configurable:true, enumerable:true, get:function ariaDisabled (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaDisabled_get", arguments)}, set:function ariaDisabled (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaDisabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaExpanded", {configurable:true, enumerable:true, get:function ariaExpanded (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaExpanded_get", arguments)}, set:function ariaExpanded (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaExpanded_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaHasPopup", {configurable:true, enumerable:true, get:function ariaHasPopup (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaHasPopup_get", arguments)}, set:function ariaHasPopup (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaHasPopup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaHidden", {configurable:true, enumerable:true, get:function ariaHidden (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaHidden_get", arguments)}, set:function ariaHidden (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaHidden_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaInvalid", {configurable:true, enumerable:true, get:function ariaInvalid (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaInvalid_get", arguments)}, set:function ariaInvalid (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaInvalid_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaKeyShortcuts", {configurable:true, enumerable:true, get:function ariaKeyShortcuts (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaKeyShortcuts_get", arguments)}, set:function ariaKeyShortcuts (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaKeyShortcuts_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaLabel", {configurable:true, enumerable:true, get:function ariaLabel (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaLabel_get", arguments)}, set:function ariaLabel (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaLabel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaLevel", {configurable:true, enumerable:true, get:function ariaLevel (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaLevel_get", arguments)}, set:function ariaLevel (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaLevel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaLive", {configurable:true, enumerable:true, get:function ariaLive (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaLive_get", arguments)}, set:function ariaLive (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaLive_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaModal", {configurable:true, enumerable:true, get:function ariaModal (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaModal_get", arguments)}, set:function ariaModal (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaModal_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaMultiLine", {configurable:true, enumerable:true, get:function ariaMultiLine (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaMultiLine_get", arguments)}, set:function ariaMultiLine (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaMultiLine_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaMultiSelectable", {configurable:true, enumerable:true, get:function ariaMultiSelectable (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaMultiSelectable_get", arguments)}, set:function ariaMultiSelectable (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaMultiSelectable_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaOrientation", {configurable:true, enumerable:true, get:function ariaOrientation (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaOrientation_get", arguments)}, set:function ariaOrientation (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaOrientation_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaPlaceholder", {configurable:true, enumerable:true, get:function ariaPlaceholder (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaPlaceholder_get", arguments)}, set:function ariaPlaceholder (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaPlaceholder_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaPosInSet", {configurable:true, enumerable:true, get:function ariaPosInSet (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaPosInSet_get", arguments)}, set:function ariaPosInSet (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaPosInSet_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaPressed", {configurable:true, enumerable:true, get:function ariaPressed (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaPressed_get", arguments)}, set:function ariaPressed (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaPressed_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaReadOnly", {configurable:true, enumerable:true, get:function ariaReadOnly (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaReadOnly_get", arguments)}, set:function ariaReadOnly (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaReadOnly_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaRelevant", {configurable:true, enumerable:true, get:function ariaRelevant (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRelevant_get", arguments)}, set:function ariaRelevant (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRelevant_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaRequired", {configurable:true, enumerable:true, get:function ariaRequired (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRequired_get", arguments)}, set:function ariaRequired (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRequired_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaRoleDescription", {configurable:true, enumerable:true, get:function ariaRoleDescription (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRoleDescription_get", arguments)}, set:function ariaRoleDescription (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRoleDescription_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaRowCount", {configurable:true, enumerable:true, get:function ariaRowCount (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRowCount_get", arguments)}, set:function ariaRowCount (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRowCount_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaRowIndex", {configurable:true, enumerable:true, get:function ariaRowIndex (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRowIndex_get", arguments)}, set:function ariaRowIndex (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRowIndex_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaRowSpan", {configurable:true, enumerable:true, get:function ariaRowSpan (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRowSpan_get", arguments)}, set:function ariaRowSpan (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaRowSpan_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaSelected", {configurable:true, enumerable:true, get:function ariaSelected (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaSelected_get", arguments)}, set:function ariaSelected (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaSelected_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaSetSize", {configurable:true, enumerable:true, get:function ariaSetSize (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaSetSize_get", arguments)}, set:function ariaSetSize (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaSetSize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaSort", {configurable:true, enumerable:true, get:function ariaSort (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaSort_get", arguments)}, set:function ariaSort (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaSort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaValueMax", {configurable:true, enumerable:true, get:function ariaValueMax (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueMax_get", arguments)}, set:function ariaValueMax (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueMax_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaValueMin", {configurable:true, enumerable:true, get:function ariaValueMin (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueMin_get", arguments)}, set:function ariaValueMin (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueMin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaValueNow", {configurable:true, enumerable:true, get:function ariaValueNow (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueNow_get", arguments)}, set:function ariaValueNow (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueNow_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "ariaValueText", {configurable:true, enumerable:true, get:function ariaValueText (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueText_get", arguments)}, set:function ariaValueText (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "ariaValueText_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Element.prototype, "getAnimations", {configurable:true, enumerable:true, writable:true, value:function getAnimations (){return bodavm.toolsFunc.dispatch(this, Element.prototype, "Element", "getAnimations", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Event.js b/env_xbb_lastest_cheerio/env/Event.js deleted file mode 100644 index ea5006fe..00000000 --- a/env_xbb_lastest_cheerio/env/Event.js +++ /dev/null @@ -1,42 +0,0 @@ -//Event对象 -Event=function Event(){ - if (arguments.length <1){ - return bodavm.toolsFunc.throwError("TypeError","Failed to construct 'Event': 1 argument required, but only 0 present.") - } - this._type=arguments[0] - Object.defineProperty(this,'isTrusted',{ - configurable:false, - enumerable:true, - set:undefined, - get:function (){ - return true - } - }) - } -bodavm.toolsFunc.safeProto(Event,"Event"); -bodavm.toolsFunc.defineProperty(Event,"NONE",{configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(Event,"CAPTURING_PHASE",{configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Event,"AT_TARGET",{configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(Event,"BUBBLING_PHASE",{configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(Event.prototype,"type",{configurable:true, enumerable:true, get:function type () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","type_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"target",{configurable:true, enumerable:true, get:function target () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","target_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"currentTarget",{configurable:true, enumerable:true, get:function currentTarget () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","currentTarget_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"eventPhase",{configurable:true, enumerable:true, get:function eventPhase () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","eventPhase_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"bubbles",{configurable:true, enumerable:true, get:function bubbles () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","bubbles_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"cancelable",{configurable:true, enumerable:true, get:function cancelable () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","cancelable_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"defaultPrevented",{configurable:true, enumerable:true, get:function defaultPrevented () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","defaultPrevented_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"composed",{configurable:true, enumerable:true, get:function composed () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","composed_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"timeStamp",{configurable:true, enumerable:true, get:function timeStamp () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","timeStamp_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"srcElement",{configurable:true, enumerable:true, get:function srcElement () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","srcElement_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Event.prototype,"returnValue",{configurable:true, enumerable:true, get:function returnValue () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","returnValue_get",arguments)},set:function returnValue () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","returnValue_set",arguments)},}); -bodavm.toolsFunc.defineProperty(Event.prototype,"cancelBubble",{configurable:true, enumerable:true, get:function cancelBubble () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","cancelBubble_get",arguments)},set:function cancelBubble () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","cancelBubble_set",arguments)},}); -bodavm.toolsFunc.defineProperty(Event.prototype,"NONE",{configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(Event.prototype,"CAPTURING_PHASE",{configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Event.prototype,"AT_TARGET",{configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(Event.prototype,"BUBBLING_PHASE",{configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(Event.prototype,"composedPath",{configurable:true, enumerable:true, writable:true, value:function composedPath() {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","composedPath",arguments)}}); -bodavm.toolsFunc.defineProperty(Event.prototype,"initEvent",{configurable:true, enumerable:true, writable:true, value:function initEvent() {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","initEvent",arguments)}}); -bodavm.toolsFunc.defineProperty(Event.prototype,"preventDefault",{configurable:true, enumerable:true, writable:true, value:function preventDefault() {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","preventDefault",arguments)}}); -bodavm.toolsFunc.defineProperty(Event.prototype,"stopImmediatePropagation",{configurable:true, enumerable:true, writable:true, value:function stopImmediatePropagation() {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","stopImmediatePropagation",arguments)}}); -bodavm.toolsFunc.defineProperty(Event.prototype,"stopPropagation",{configurable:true, enumerable:true, writable:true, value:function stopPropagation() {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","stopPropagation",arguments)}}); -bodavm.toolsFunc.defineProperty(Event.prototype,"path",{configurable:true, enumerable:true, get:function path () {return bodavm.toolsFunc.dispatch(this,Event.prototype,"Event","path_get",arguments)},set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/EventTarget.js b/env_xbb_lastest_cheerio/env/EventTarget.js deleted file mode 100644 index ee76ba21..00000000 --- a/env_xbb_lastest_cheerio/env/EventTarget.js +++ /dev/null @@ -1,6 +0,0 @@ -//EventTarget对象 -EventTarget=function EventTarget(){} -bodavm.toolsFunc.safeProto(EventTarget,"EventTarget"); -bodavm.toolsFunc.defineProperty(EventTarget.prototype,"addEventListener",{configurable:true, enumerable:true, writable:true, value:function () {return bodavm.toolsFunc.dispatch(this,EventTarget.prototype,"EventTarget","addEventListener",arguments)}}); -bodavm.toolsFunc.defineProperty(EventTarget.prototype,"dispatchEvent",{configurable:true, enumerable:true, writable:true, value:function () {return bodavm.toolsFunc.dispatch(this,EventTarget.prototype,"EventTarget","dispatchEvent",arguments)}}); -bodavm.toolsFunc.defineProperty(EventTarget.prototype,"removeEventListener",{configurable:true, enumerable:true, writable:true, value:function () {return bodavm.toolsFunc.dispatch(this,EventTarget.prototype,"EventTarget","removeEventListener",arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/External.js b/env_xbb_lastest_cheerio/env/External.js deleted file mode 100644 index 17abb1e0..00000000 --- a/env_xbb_lastest_cheerio/env/External.js +++ /dev/null @@ -1,8 +0,0 @@ -// External对象 -External = function External(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(External, "External"); -bodavm.toolsFunc.defineProperty(External.prototype, "AddSearchProvider", {configurable:true, enumerable:true, writable:true, value:function AddSearchProvider (){return bodavm.toolsFunc.dispatch(this, External.prototype, "External", "AddSearchProvider", arguments)}}); -bodavm.toolsFunc.defineProperty(External.prototype, "IsSearchProviderInstalled", {configurable:true, enumerable:true, writable:true, value:function IsSearchProviderInstalled (){return bodavm.toolsFunc.dispatch(this, External.prototype, "External", "IsSearchProviderInstalled", arguments)}}); -// external对象 -var external = {} -external.__proto__=External.prototype; diff --git a/env_xbb_lastest_cheerio/env/HTMLCollection.js b/env_xbb_lastest_cheerio/env/HTMLCollection.js deleted file mode 100644 index 2a6d1899..00000000 --- a/env_xbb_lastest_cheerio/env/HTMLCollection.js +++ /dev/null @@ -1,6 +0,0 @@ -//HTMLCollection对象 -HTMLCollection=function HTMLCollection(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLCollection,"HTMLCollection"); -bodavm.toolsFunc.defineProperty(HTMLCollection.prototype,"length",{configurable:true, enumerable:true, get:function length () {return bodavm.toolsFunc.dispatch(this,HTMLCollection.prototype,"HTMLCollection","length_get",arguments,)},set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLCollection.prototype,"item",{configurable:true, enumerable:true, writable:true, value:function item() {return bodavm.toolsFunc.dispatch(this,HTMLCollection.prototype,"HTMLCollection","item",arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCollection.prototype,"namedItem",{configurable:true, enumerable:true, writable:true, value:function namedItem() {return bodavm.toolsFunc.dispatch(this,HTMLCollection.prototype,"HTMLCollection","namedItem",arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/HTMLDocument.js b/env_xbb_lastest_cheerio/env/HTMLDocument.js deleted file mode 100644 index 0459a7c2..00000000 --- a/env_xbb_lastest_cheerio/env/HTMLDocument.js +++ /dev/null @@ -1,22 +0,0 @@ -// HTMLDocument对象 -HTMLDocument = function HTMLDocument(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLDocument, "HTMLDocument"); -HTMLDocument.prototype.__proto__=Document.prototype; -HTMLDocument.__proto__=Document; - -// document对象 -// document= {} - - - -var document = {} - -document.__proto__=HTMLDocument.prototype - -Object.setPrototypeOf(document, HTMLDocument.prototype); -bodavm.toolsFunc.defineProperty(document,"location",{configurable:false, enumerable:true, get:function location () {return bodavm.toolsFunc.dispatch(this,document,"document","location_get",arguments,)},set:function location () {return bodavm.toolsFunc.dispatch(this,document,"document","location_set",arguments)},}); -bodavm.toolsFunc.defineProperty(document,"f",{configurable:true, enumerable:true, writable:true, value:{},}); -bodavm.toolsFunc.defineProperty(document,"jQuery110208558905071218827",{configurable:true, enumerable:true, writable:true, value:5}); -bodavm.toolsFunc.defineProperty(document,"writeln",{configurable:true, enumerable:true, writable:true, value:function writeln() {return bodavm.toolsFunc.dispatch(this,document,"document","writeln",arguments)}}); -bodavm.toolsFunc.defineProperty(document,"write",{configurable:true, enumerable:true, writable:true, value:function write() {return bodavm.toolsFunc.dispatch(this,document,"document","write",arguments)}}); -//解析的root diff --git a/env_xbb_lastest_cheerio/env/HTMLElement.js b/env_xbb_lastest_cheerio/env/HTMLElement.js deleted file mode 100644 index 1c8c7b7a..00000000 --- a/env_xbb_lastest_cheerio/env/HTMLElement.js +++ /dev/null @@ -1,130 +0,0 @@ -// HTMLElement对象 -HTMLElement = function HTMLElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLElement, "HTMLElement"); -HTMLElement.prototype.__proto__=Element.prototype; -HTMLElement.__proto__=Element; -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "title", {configurable:true, enumerable:true, get:function title (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "title_get", arguments)}, set:function title (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "title_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "lang", {configurable:true, enumerable:true, get:function lang (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "lang_get", arguments)}, set:function lang (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "lang_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "translate", {configurable:true, enumerable:true, get:function translate (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "translate_get", arguments)}, set:function translate (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "translate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "dir", {configurable:true, enumerable:true, get:function dir (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "dir_get", arguments)}, set:function dir (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "dir_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "hidden", {configurable:true, enumerable:true, get:function hidden (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "hidden_get", arguments)}, set:function hidden (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "hidden_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "accessKey", {configurable:true, enumerable:true, get:function accessKey (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "accessKey_get", arguments)}, set:function accessKey (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "accessKey_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "draggable", {configurable:true, enumerable:true, get:function draggable (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "draggable_get", arguments)}, set:function draggable (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "draggable_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "spellcheck", {configurable:true, enumerable:true, get:function spellcheck (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "spellcheck_get", arguments)}, set:function spellcheck (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "spellcheck_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "autocapitalize", {configurable:true, enumerable:true, get:function autocapitalize (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "autocapitalize_get", arguments)}, set:function autocapitalize (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "autocapitalize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "contentEditable", {configurable:true, enumerable:true, get:function contentEditable (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "contentEditable_get", arguments)}, set:function contentEditable (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "contentEditable_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "isContentEditable", {configurable:true, enumerable:true, get:function isContentEditable (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "isContentEditable_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "inputMode", {configurable:true, enumerable:true, get:function inputMode (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "inputMode_get", arguments)}, set:function inputMode (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "inputMode_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "offsetParent", {configurable:true, enumerable:true, get:function offsetParent (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "offsetParent_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "offsetTop", {configurable:true, enumerable:true, get:function offsetTop (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "offsetTop_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "offsetLeft", {configurable:true, enumerable:true, get:function offsetLeft (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "offsetLeft_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "offsetWidth", {configurable:true, enumerable:true, get:function offsetWidth (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "offsetWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "offsetHeight", {configurable:true, enumerable:true, get:function offsetHeight (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "offsetHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "innerText", {configurable:true, enumerable:true, get:function innerText (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "innerText_get", arguments)}, set:function innerText (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "innerText_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "outerText", {configurable:true, enumerable:true, get:function outerText (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "outerText_get", arguments)}, set:function outerText (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "outerText_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onbeforexrselect", {configurable:true, enumerable:true, get:function onbeforexrselect (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onbeforexrselect_get", arguments)}, set:function onbeforexrselect (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onbeforexrselect_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onblur", {configurable:true, enumerable:true, get:function onblur (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onblur_get", arguments)}, set:function onblur (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onblur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncancel", {configurable:true, enumerable:true, get:function oncancel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncancel_get", arguments)}, set:function oncancel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncanplay", {configurable:true, enumerable:true, get:function oncanplay (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncanplay_get", arguments)}, set:function oncanplay (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncanplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncanplaythrough", {configurable:true, enumerable:true, get:function oncanplaythrough (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncanplaythrough_get", arguments)}, set:function oncanplaythrough (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncanplaythrough_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onclick", {configurable:true, enumerable:true, get:function onclick (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onclick_get", arguments)}, set:function onclick (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onclose", {configurable:true, enumerable:true, get:function onclose (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onclose_get", arguments)}, set:function onclose (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onclose_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncontextlost", {configurable:true, enumerable:true, get:function oncontextlost (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncontextlost_get", arguments)}, set:function oncontextlost (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncontextlost_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncontextmenu", {configurable:true, enumerable:true, get:function oncontextmenu (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncontextmenu_get", arguments)}, set:function oncontextmenu (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncontextmenu_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncontextrestored", {configurable:true, enumerable:true, get:function oncontextrestored (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncontextrestored_get", arguments)}, set:function oncontextrestored (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncontextrestored_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncuechange", {configurable:true, enumerable:true, get:function oncuechange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncuechange_get", arguments)}, set:function oncuechange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncuechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondblclick", {configurable:true, enumerable:true, get:function ondblclick (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondblclick_get", arguments)}, set:function ondblclick (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondblclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondrag", {configurable:true, enumerable:true, get:function ondrag (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondrag_get", arguments)}, set:function ondrag (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondrag_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondragend", {configurable:true, enumerable:true, get:function ondragend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragend_get", arguments)}, set:function ondragend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondragenter", {configurable:true, enumerable:true, get:function ondragenter (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragenter_get", arguments)}, set:function ondragenter (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondragleave", {configurable:true, enumerable:true, get:function ondragleave (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragleave_get", arguments)}, set:function ondragleave (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondragover", {configurable:true, enumerable:true, get:function ondragover (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragover_get", arguments)}, set:function ondragover (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondragstart", {configurable:true, enumerable:true, get:function ondragstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragstart_get", arguments)}, set:function ondragstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondragstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondrop", {configurable:true, enumerable:true, get:function ondrop (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondrop_get", arguments)}, set:function ondrop (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondrop_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ondurationchange", {configurable:true, enumerable:true, get:function ondurationchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondurationchange_get", arguments)}, set:function ondurationchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ondurationchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onemptied", {configurable:true, enumerable:true, get:function onemptied (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onemptied_get", arguments)}, set:function onemptied (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onemptied_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onended", {configurable:true, enumerable:true, get:function onended (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onended_get", arguments)}, set:function onended (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onended_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onfocus", {configurable:true, enumerable:true, get:function onfocus (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onfocus_get", arguments)}, set:function onfocus (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onfocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onformdata", {configurable:true, enumerable:true, get:function onformdata (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onformdata_get", arguments)}, set:function onformdata (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onformdata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oninput", {configurable:true, enumerable:true, get:function oninput (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oninput_get", arguments)}, set:function oninput (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oninput_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oninvalid", {configurable:true, enumerable:true, get:function oninvalid (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oninvalid_get", arguments)}, set:function oninvalid (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oninvalid_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onkeydown", {configurable:true, enumerable:true, get:function onkeydown (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onkeydown_get", arguments)}, set:function onkeydown (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onkeydown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onkeypress", {configurable:true, enumerable:true, get:function onkeypress (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onkeypress_get", arguments)}, set:function onkeypress (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onkeypress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onkeyup", {configurable:true, enumerable:true, get:function onkeyup (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onkeyup_get", arguments)}, set:function onkeyup (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onkeyup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onload", {configurable:true, enumerable:true, get:function onload (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onload_get", arguments)}, set:function onload (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onloadeddata", {configurable:true, enumerable:true, get:function onloadeddata (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onloadeddata_get", arguments)}, set:function onloadeddata (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onloadeddata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onloadedmetadata", {configurable:true, enumerable:true, get:function onloadedmetadata (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onloadedmetadata_get", arguments)}, set:function onloadedmetadata (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onloadedmetadata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onloadstart", {configurable:true, enumerable:true, get:function onloadstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onloadstart_get", arguments)}, set:function onloadstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onloadstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmousedown", {configurable:true, enumerable:true, get:function onmousedown (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmousedown_get", arguments)}, set:function onmousedown (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmousedown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmouseenter", {configurable:true, enumerable:true, get:function onmouseenter (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseenter_get", arguments)}, set:function onmouseenter (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmouseleave", {configurable:true, enumerable:true, get:function onmouseleave (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseleave_get", arguments)}, set:function onmouseleave (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmousemove", {configurable:true, enumerable:true, get:function onmousemove (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmousemove_get", arguments)}, set:function onmousemove (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmousemove_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmouseout", {configurable:true, enumerable:true, get:function onmouseout (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseout_get", arguments)}, set:function onmouseout (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmouseover", {configurable:true, enumerable:true, get:function onmouseover (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseover_get", arguments)}, set:function onmouseover (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmouseup", {configurable:true, enumerable:true, get:function onmouseup (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseup_get", arguments)}, set:function onmouseup (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmouseup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onmousewheel", {configurable:true, enumerable:true, get:function onmousewheel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmousewheel_get", arguments)}, set:function onmousewheel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onmousewheel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpause", {configurable:true, enumerable:true, get:function onpause (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpause_get", arguments)}, set:function onpause (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpause_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onplay", {configurable:true, enumerable:true, get:function onplay (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onplay_get", arguments)}, set:function onplay (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onplaying", {configurable:true, enumerable:true, get:function onplaying (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onplaying_get", arguments)}, set:function onplaying (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onplaying_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onprogress", {configurable:true, enumerable:true, get:function onprogress (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onprogress_get", arguments)}, set:function onprogress (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onprogress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onratechange", {configurable:true, enumerable:true, get:function onratechange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onratechange_get", arguments)}, set:function onratechange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onratechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onreset", {configurable:true, enumerable:true, get:function onreset (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onreset_get", arguments)}, set:function onreset (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onreset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onresize", {configurable:true, enumerable:true, get:function onresize (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onresize_get", arguments)}, set:function onresize (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onresize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onscroll", {configurable:true, enumerable:true, get:function onscroll (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onscroll_get", arguments)}, set:function onscroll (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onscroll_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onsecuritypolicyviolation", {configurable:true, enumerable:true, get:function onsecuritypolicyviolation (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onsecuritypolicyviolation_get", arguments)}, set:function onsecuritypolicyviolation (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onsecuritypolicyviolation_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onseeked", {configurable:true, enumerable:true, get:function onseeked (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onseeked_get", arguments)}, set:function onseeked (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onseeked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onseeking", {configurable:true, enumerable:true, get:function onseeking (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onseeking_get", arguments)}, set:function onseeking (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onseeking_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onselect", {configurable:true, enumerable:true, get:function onselect (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onselect_get", arguments)}, set:function onselect (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onselect_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onslotchange", {configurable:true, enumerable:true, get:function onslotchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onslotchange_get", arguments)}, set:function onslotchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onslotchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onstalled", {configurable:true, enumerable:true, get:function onstalled (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onstalled_get", arguments)}, set:function onstalled (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onstalled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onsubmit", {configurable:true, enumerable:true, get:function onsubmit (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onsubmit_get", arguments)}, set:function onsubmit (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onsubmit_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onsuspend", {configurable:true, enumerable:true, get:function onsuspend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onsuspend_get", arguments)}, set:function onsuspend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onsuspend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ontimeupdate", {configurable:true, enumerable:true, get:function ontimeupdate (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontimeupdate_get", arguments)}, set:function ontimeupdate (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontimeupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ontoggle", {configurable:true, enumerable:true, get:function ontoggle (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontoggle_get", arguments)}, set:function ontoggle (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontoggle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onvolumechange", {configurable:true, enumerable:true, get:function onvolumechange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onvolumechange_get", arguments)}, set:function onvolumechange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onvolumechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onwaiting", {configurable:true, enumerable:true, get:function onwaiting (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwaiting_get", arguments)}, set:function onwaiting (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwaiting_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onwebkitanimationend", {configurable:true, enumerable:true, get:function onwebkitanimationend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkitanimationend_get", arguments)}, set:function onwebkitanimationend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkitanimationend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onwebkitanimationiteration", {configurable:true, enumerable:true, get:function onwebkitanimationiteration (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkitanimationiteration_get", arguments)}, set:function onwebkitanimationiteration (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkitanimationiteration_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onwebkitanimationstart", {configurable:true, enumerable:true, get:function onwebkitanimationstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkitanimationstart_get", arguments)}, set:function onwebkitanimationstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkitanimationstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onwebkittransitionend", {configurable:true, enumerable:true, get:function onwebkittransitionend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkittransitionend_get", arguments)}, set:function onwebkittransitionend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwebkittransitionend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onwheel", {configurable:true, enumerable:true, get:function onwheel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwheel_get", arguments)}, set:function onwheel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onwheel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onauxclick", {configurable:true, enumerable:true, get:function onauxclick (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onauxclick_get", arguments)}, set:function onauxclick (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onauxclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ongotpointercapture", {configurable:true, enumerable:true, get:function ongotpointercapture (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ongotpointercapture_get", arguments)}, set:function ongotpointercapture (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ongotpointercapture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onlostpointercapture", {configurable:true, enumerable:true, get:function onlostpointercapture (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onlostpointercapture_get", arguments)}, set:function onlostpointercapture (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onlostpointercapture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerdown", {configurable:true, enumerable:true, get:function onpointerdown (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerdown_get", arguments)}, set:function onpointerdown (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerdown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointermove", {configurable:true, enumerable:true, get:function onpointermove (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointermove_get", arguments)}, set:function onpointermove (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointermove_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerup", {configurable:true, enumerable:true, get:function onpointerup (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerup_get", arguments)}, set:function onpointerup (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointercancel", {configurable:true, enumerable:true, get:function onpointercancel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointercancel_get", arguments)}, set:function onpointercancel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointercancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerover", {configurable:true, enumerable:true, get:function onpointerover (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerover_get", arguments)}, set:function onpointerover (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerout", {configurable:true, enumerable:true, get:function onpointerout (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerout_get", arguments)}, set:function onpointerout (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerenter", {configurable:true, enumerable:true, get:function onpointerenter (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerenter_get", arguments)}, set:function onpointerenter (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerleave", {configurable:true, enumerable:true, get:function onpointerleave (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerleave_get", arguments)}, set:function onpointerleave (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onselectstart", {configurable:true, enumerable:true, get:function onselectstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onselectstart_get", arguments)}, set:function onselectstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onselectstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onselectionchange", {configurable:true, enumerable:true, get:function onselectionchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onselectionchange_get", arguments)}, set:function onselectionchange (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onselectionchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onanimationend", {configurable:true, enumerable:true, get:function onanimationend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onanimationend_get", arguments)}, set:function onanimationend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onanimationend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onanimationiteration", {configurable:true, enumerable:true, get:function onanimationiteration (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onanimationiteration_get", arguments)}, set:function onanimationiteration (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onanimationiteration_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onanimationstart", {configurable:true, enumerable:true, get:function onanimationstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onanimationstart_get", arguments)}, set:function onanimationstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onanimationstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ontransitionrun", {configurable:true, enumerable:true, get:function ontransitionrun (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitionrun_get", arguments)}, set:function ontransitionrun (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitionrun_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ontransitionstart", {configurable:true, enumerable:true, get:function ontransitionstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitionstart_get", arguments)}, set:function ontransitionstart (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitionstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ontransitionend", {configurable:true, enumerable:true, get:function ontransitionend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitionend_get", arguments)}, set:function ontransitionend (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitionend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "ontransitioncancel", {configurable:true, enumerable:true, get:function ontransitioncancel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitioncancel_get", arguments)}, set:function ontransitioncancel (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "ontransitioncancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncopy", {configurable:true, enumerable:true, get:function oncopy (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncopy_get", arguments)}, set:function oncopy (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncopy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "oncut", {configurable:true, enumerable:true, get:function oncut (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncut_get", arguments)}, set:function oncut (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "oncut_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpaste", {configurable:true, enumerable:true, get:function onpaste (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpaste_get", arguments)}, set:function onpaste (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpaste_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "dataset", {configurable:true, enumerable:true, get:function dataset (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "dataset_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "nonce", {configurable:true, enumerable:true, get:function nonce (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "nonce_get", arguments)}, set:function nonce (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "nonce_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "autofocus", {configurable:true, enumerable:true, get:function autofocus (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "autofocus_get", arguments)}, set:function autofocus (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "autofocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "tabIndex", {configurable:true, enumerable:true, get:function tabIndex (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "tabIndex_get", arguments)}, set:function tabIndex (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "tabIndex_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "style", {configurable:true, enumerable:true, get:function style (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "style_get", arguments)}, set:function style (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "style_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "attachInternals", {configurable:true, enumerable:true, writable:true, value:function attachInternals (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "attachInternals", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "blur", {configurable:true, enumerable:true, writable:true, value:function blur (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "blur", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "click", {configurable:true, enumerable:true, writable:true, value:function click (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "click", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "focus", {configurable:true, enumerable:true, writable:true, value:function focus (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "focus", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "inert", {configurable:true, enumerable:true, get:function inert (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "inert_get", arguments)}, set:function inert (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "inert_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "enterKeyHint", {configurable:true, enumerable:true, get:function enterKeyHint (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "enterKeyHint_get", arguments)}, set:function enterKeyHint (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "enterKeyHint_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "virtualKeyboardPolicy", {configurable:true, enumerable:true, get:function virtualKeyboardPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "virtualKeyboardPolicy_get", arguments)}, set:function virtualKeyboardPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "virtualKeyboardPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onpointerrawupdate", {configurable:true, enumerable:true, get:function onpointerrawupdate (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerrawupdate_get", arguments)}, set:function onpointerrawupdate (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onpointerrawupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLElement.prototype, "onbeforematch", {configurable:true, enumerable:true, get:function onbeforematch (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onbeforematch_get", arguments)}, set:function onbeforematch (){return bodavm.toolsFunc.dispatch(this, HTMLElement.prototype, "HTMLElement", "onbeforematch_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Headers.js b/env_xbb_lastest_cheerio/env/Headers.js deleted file mode 100644 index 5a4a36b7..00000000 --- a/env_xbb_lastest_cheerio/env/Headers.js +++ /dev/null @@ -1,12 +0,0 @@ -// Headers对象 -Headers = function Headers(){} -bodavm.toolsFunc.safeProto(Headers, "Headers"); -bodavm.toolsFunc.defineProperty(Headers.prototype, "append", {configurable:true, enumerable:true, writable:true, value:function append (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "append", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "delete", {configurable:true, enumerable:true, writable:true, value:function (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "delete", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "get", {configurable:true, enumerable:true, writable:true, value:function get (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "get", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "has", {configurable:true, enumerable:true, writable:true, value:function has (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "has", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "set", {configurable:true, enumerable:true, writable:true, value:function set (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "set", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "entries", {configurable:true, enumerable:true, writable:true, value:function entries (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "entries", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "forEach", {configurable:true, enumerable:true, writable:true, value:function forEach (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "forEach", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "keys", {configurable:true, enumerable:true, writable:true, value:function keys (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "keys", arguments)}}); -bodavm.toolsFunc.defineProperty(Headers.prototype, "values", {configurable:true, enumerable:true, writable:true, value:function values (){return bodavm.toolsFunc.dispatch(this, Headers.prototype, "Headers", "values", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/History.js b/env_xbb_lastest_cheerio/env/History.js deleted file mode 100644 index 8d2df38c..00000000 --- a/env_xbb_lastest_cheerio/env/History.js +++ /dev/null @@ -1,14 +0,0 @@ -//History对象 -History=function History(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(History,"History"); -bodavm.toolsFunc.defineProperty(History.prototype,"length",{configurable:true, enumerable:true, get:function length () {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","length_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(History.prototype,"scrollRestoration",{configurable:true, enumerable:true, get:function scrollRestoration () {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","scrollRestoration_get",arguments)},set:function scrollRestoration () {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","scrollRestoration_set",arguments)},}); -bodavm.toolsFunc.defineProperty(History.prototype,"state",{configurable:true, enumerable:true, get:function state () {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","state_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(History.prototype,"back",{configurable:true, enumerable:true, writable:true, value:function back() {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","back",arguments)}}); -bodavm.toolsFunc.defineProperty(History.prototype,"forward",{configurable:true, enumerable:true, writable:true, value:function forward() {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","forward",arguments)}}); -bodavm.toolsFunc.defineProperty(History.prototype,"go",{configurable:true, enumerable:true, writable:true, value:function go() {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","go",arguments)}}); -bodavm.toolsFunc.defineProperty(History.prototype,"pushState",{configurable:true, enumerable:true, writable:true, value:function pushState() {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","pushState",arguments)}}); -bodavm.toolsFunc.defineProperty(History.prototype,"replaceState",{configurable:true, enumerable:true, writable:true, value:function replaceState() {return bodavm.toolsFunc.dispatch(this,History.prototype,"History","replaceState",arguments)}}); -// history对象 -var history= {} -Object.setPrototypeOf(history, History.prototype); diff --git a/env_xbb_lastest_cheerio/env/IDBDatabase.js b/env_xbb_lastest_cheerio/env/IDBDatabase.js deleted file mode 100644 index fdccf568..00000000 --- a/env_xbb_lastest_cheerio/env/IDBDatabase.js +++ /dev/null @@ -1,16 +0,0 @@ -// IDBDatabase对象 -IDBDatabase = function IDBDatabase(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(IDBDatabase, "IDBDatabase"); -IDBDatabase.prototype.__proto__=EventTarget.prototype; -IDBDatabase.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "name_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "version", {configurable:true, enumerable:true, get:function version (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "version_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "objectStoreNames", {configurable:true, enumerable:true, get:function objectStoreNames (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "objectStoreNames_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "onclose", {configurable:true, enumerable:true, get:function onclose (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onclose_get", arguments)}, set:function onclose (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onclose_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "onversionchange", {configurable:true, enumerable:true, get:function onversionchange (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onversionchange_get", arguments)}, set:function onversionchange (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "onversionchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "close", {configurable:true, enumerable:true, writable:true, value:function close (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "close", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "createObjectStore", {configurable:true, enumerable:true, writable:true, value:function createObjectStore (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "createObjectStore", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "deleteObjectStore", {configurable:true, enumerable:true, writable:true, value:function deleteObjectStore (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "deleteObjectStore", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBDatabase.prototype, "transaction", {configurable:true, enumerable:true, writable:true, value:function transaction (){return bodavm.toolsFunc.dispatch(this, IDBDatabase.prototype, "IDBDatabase", "transaction", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/IDBFactory.js b/env_xbb_lastest_cheerio/env/IDBFactory.js deleted file mode 100644 index aae5582c..00000000 --- a/env_xbb_lastest_cheerio/env/IDBFactory.js +++ /dev/null @@ -1,12 +0,0 @@ -//IDBFactory对象 -IDBFactory=function IDBFactory(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(IDBFactory,"IDBFactory"); -bodavm.toolsFunc.defineProperty(IDBFactory.prototype,"cmp",{configurable:true, enumerable:true, writable:true, value:function cmp() {return bodavm.toolsFunc.dispatch(this,IDBFactory.prototype,"IDBFactory","cmp",arguments)}}); -bodavm.toolsFunc.defineProperty(IDBFactory.prototype,"databases",{configurable:true, enumerable:true, writable:true, value:function databases() {return bodavm.toolsFunc.dispatch(this,IDBFactory.prototype,"IDBFactory","databases",arguments)}}); -bodavm.toolsFunc.defineProperty(IDBFactory.prototype,"deleteDatabase",{configurable:true, enumerable:true, writable:true, value:function deleteDatabase() {return bodavm.toolsFunc.dispatch(this,IDBFactory.prototype,"IDBFactory","deleteDatabase",arguments)}}); -bodavm.toolsFunc.defineProperty(IDBFactory.prototype,"open",{configurable:true, enumerable:true, writable:true, value:function open() {return bodavm.toolsFunc.dispatch(this,IDBFactory.prototype,"IDBFactory","open",arguments)}}); - - -// indexedDB对象 -var indexedDB = {} -indexedDB.__proto__=IDBFactory.prototype; diff --git a/env_xbb_lastest_cheerio/env/IDBObjectStore.js b/env_xbb_lastest_cheerio/env/IDBObjectStore.js deleted file mode 100644 index 63ae0d3b..00000000 --- a/env_xbb_lastest_cheerio/env/IDBObjectStore.js +++ /dev/null @@ -1,22 +0,0 @@ -// IDBObjectStore对象 -IDBObjectStore = function IDBObjectStore(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(IDBObjectStore, "IDBObjectStore"); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "keyPath", {configurable:true, enumerable:true, get:function keyPath (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "keyPath_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "indexNames", {configurable:true, enumerable:true, get:function indexNames (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "indexNames_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "transaction", {configurable:true, enumerable:true, get:function transaction (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "transaction_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "autoIncrement", {configurable:true, enumerable:true, get:function autoIncrement (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "autoIncrement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "add", {configurable:true, enumerable:true, writable:true, value:function add (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "add", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "clear", {configurable:true, enumerable:true, writable:true, value:function clear (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "clear", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "count", {configurable:true, enumerable:true, writable:true, value:function count (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "count", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "createIndex", {configurable:true, enumerable:true, writable:true, value:function createIndex (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "createIndex", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "delete", {configurable:true, enumerable:true, writable:true, value:function (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "delete", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "deleteIndex", {configurable:true, enumerable:true, writable:true, value:function deleteIndex (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "deleteIndex", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "get", {configurable:true, enumerable:true, writable:true, value:function get (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "get", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "getAll", {configurable:true, enumerable:true, writable:true, value:function getAll (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "getAll", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "getAllKeys", {configurable:true, enumerable:true, writable:true, value:function getAllKeys (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "getAllKeys", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "getKey", {configurable:true, enumerable:true, writable:true, value:function getKey (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "getKey", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "index", {configurable:true, enumerable:true, writable:true, value:function index (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "index", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "openCursor", {configurable:true, enumerable:true, writable:true, value:function openCursor (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "openCursor", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "openKeyCursor", {configurable:true, enumerable:true, writable:true, value:function openKeyCursor (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "openKeyCursor", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBObjectStore.prototype, "put", {configurable:true, enumerable:true, writable:true, value:function put (){return bodavm.toolsFunc.dispatch(this, IDBObjectStore.prototype, "IDBObjectStore", "put", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/IDBOpenDBRequest.js b/env_xbb_lastest_cheerio/env/IDBOpenDBRequest.js deleted file mode 100644 index 5b7f21f1..00000000 --- a/env_xbb_lastest_cheerio/env/IDBOpenDBRequest.js +++ /dev/null @@ -1,7 +0,0 @@ -// IDBOpenDBRequest对象 -IDBOpenDBRequest = function IDBOpenDBRequest(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(IDBOpenDBRequest, "IDBOpenDBRequest"); -IDBOpenDBRequest.prototype.__proto__=IDBRequest.prototype; -IDBOpenDBRequest.__proto__=IDBRequest; -bodavm.toolsFunc.defineProperty(IDBOpenDBRequest.prototype, "onblocked", {configurable:true, enumerable:true, get:function onblocked (){return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onblocked_get", arguments)}, set:function onblocked (){return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onblocked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBOpenDBRequest.prototype, "onupgradeneeded", {configurable:true, enumerable:true, get:function onupgradeneeded (){return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onupgradeneeded_get", arguments)}, set:function onupgradeneeded (){return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onupgradeneeded_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/IDBRequest.js b/env_xbb_lastest_cheerio/env/IDBRequest.js deleted file mode 100644 index 1eb1f61a..00000000 --- a/env_xbb_lastest_cheerio/env/IDBRequest.js +++ /dev/null @@ -1,12 +0,0 @@ -// IDBRequest对象 -IDBRequest = function IDBRequest(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(IDBRequest, "IDBRequest"); -IDBRequest.prototype.__proto__=EventTarget.prototype; -IDBRequest.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "result", {configurable:true, enumerable:true, get:function result (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "result_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "error", {configurable:true, enumerable:true, get:function error (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "error_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "source", {configurable:true, enumerable:true, get:function source (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "source_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "transaction", {configurable:true, enumerable:true, get:function transaction (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "transaction_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "readyState", {configurable:true, enumerable:true, get:function readyState (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "readyState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "onsuccess", {configurable:true, enumerable:true, get:function onsuccess (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "onsuccess_get", arguments)}, set:function onsuccess (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "onsuccess_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBRequest.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, IDBRequest.prototype, "IDBRequest", "onerror_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/IDBTransaction.js b/env_xbb_lastest_cheerio/env/IDBTransaction.js deleted file mode 100644 index 18f2e909..00000000 --- a/env_xbb_lastest_cheerio/env/IDBTransaction.js +++ /dev/null @@ -1,16 +0,0 @@ -// IDBTransaction对象 -IDBTransaction = function IDBTransaction(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(IDBTransaction, "IDBTransaction"); -IDBTransaction.prototype.__proto__=EventTarget.prototype; -IDBTransaction.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "objectStoreNames", {configurable:true, enumerable:true, get:function objectStoreNames (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "objectStoreNames_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "mode", {configurable:true, enumerable:true, get:function mode (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "mode_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "durability", {configurable:true, enumerable:true, get:function durability (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "durability_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "db", {configurable:true, enumerable:true, get:function db (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "db_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "error", {configurable:true, enumerable:true, get:function error (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "error_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "oncomplete", {configurable:true, enumerable:true, get:function oncomplete (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "oncomplete_get", arguments)}, set:function oncomplete (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "oncomplete_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "abort", {configurable:true, enumerable:true, writable:true, value:function abort (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "abort", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "commit", {configurable:true, enumerable:true, writable:true, value:function commit (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "commit", arguments)}}); -bodavm.toolsFunc.defineProperty(IDBTransaction.prototype, "objectStore", {configurable:true, enumerable:true, writable:true, value:function objectStore (){return bodavm.toolsFunc.dispatch(this, IDBTransaction.prototype, "IDBTransaction", "objectStore", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/IDBVersionChangeEvent.js b/env_xbb_lastest_cheerio/env/IDBVersionChangeEvent.js deleted file mode 100644 index ded2559a..00000000 --- a/env_xbb_lastest_cheerio/env/IDBVersionChangeEvent.js +++ /dev/null @@ -1,9 +0,0 @@ -// IDBVersionChangeEvent对象 -IDBVersionChangeEvent = function IDBVersionChangeEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'IDBVersionChangeEvent': 1 argument required, but only 0 present.")} -bodavm.toolsFunc.safeProto(IDBVersionChangeEvent, "IDBVersionChangeEvent"); -IDBVersionChangeEvent.prototype.__proto__=Event.prototype; -IDBVersionChangeEvent.__proto__=Event; -bodavm.toolsFunc.defineProperty(IDBVersionChangeEvent.prototype, "oldVersion", {configurable:true, enumerable:true, get:function oldVersion (){return bodavm.toolsFunc.dispatch(this, IDBVersionChangeEvent.prototype, "IDBVersionChangeEvent", "oldVersion_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBVersionChangeEvent.prototype, "newVersion", {configurable:true, enumerable:true, get:function newVersion (){return bodavm.toolsFunc.dispatch(this, IDBVersionChangeEvent.prototype, "IDBVersionChangeEvent", "newVersion_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBVersionChangeEvent.prototype, "dataLoss", {configurable:true, enumerable:true, get:function dataLoss (){return bodavm.toolsFunc.dispatch(this, IDBVersionChangeEvent.prototype, "IDBVersionChangeEvent", "dataLoss_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(IDBVersionChangeEvent.prototype, "dataLossMessage", {configurable:true, enumerable:true, get:function dataLossMessage (){return bodavm.toolsFunc.dispatch(this, IDBVersionChangeEvent.prototype, "IDBVersionChangeEvent", "dataLossMessage_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Location.js b/env_xbb_lastest_cheerio/env/Location.js deleted file mode 100644 index bcc848ed..00000000 --- a/env_xbb_lastest_cheerio/env/Location.js +++ /dev/null @@ -1,23 +0,0 @@ -// Location对象 -Location = function Location(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Location, "Location"); - -// debugger -// location对象 -var location = {} -location.__proto__=Location.prototype; -bodavm.toolsFunc.defineProperty(location, "valueOf", {configurable:false, enumerable:false, writable:false, value:function valueOf (){return bodavm.toolsFunc.dispatch(this, location, "location", "valueOf", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "ancestorOrigins", {configurable:false, enumerable:true, get:function ancestorOrigins (){return bodavm.toolsFunc.dispatch(this, location, "location", "ancestorOrigins_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(location, "href", {configurable:false, enumerable:true, get:function href (){return bodavm.toolsFunc.dispatch(this, location, "location", "href_get", arguments)}, set:function href (){return bodavm.toolsFunc.dispatch(this, location, "location", "href_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "origin", {configurable:false, enumerable:true, get:function origin (){return bodavm.toolsFunc.dispatch(this, location, "location", "origin_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(location, "protocol", {configurable:false, enumerable:true, get:function protocol (){return bodavm.toolsFunc.dispatch(this, location, "location", "protocol_get", arguments)}, set:function protocol (){return bodavm.toolsFunc.dispatch(this, location, "location", "protocol_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "host", {configurable:false, enumerable:true, get:function host (){return bodavm.toolsFunc.dispatch(this, location, "location", "host_get", arguments)}, set:function host (){return bodavm.toolsFunc.dispatch(this, location, "location", "host_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "hostname", {configurable:false, enumerable:true, get:function hostname (){return bodavm.toolsFunc.dispatch(this, location, "location", "hostname_get", arguments)}, set:function hostname (){return bodavm.toolsFunc.dispatch(this, location, "location", "hostname_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "port", {configurable:false, enumerable:true, get:function port (){return bodavm.toolsFunc.dispatch(this, location, "location", "port_get", arguments)}, set:function port (){return bodavm.toolsFunc.dispatch(this, location, "location", "port_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "pathname", {configurable:false, enumerable:true, get:function pathname (){return bodavm.toolsFunc.dispatch(this, location, "location", "pathname_get", arguments)}, set:function pathname (){return bodavm.toolsFunc.dispatch(this, location, "location", "pathname_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "search", {configurable:false, enumerable:true, get:function search (){return bodavm.toolsFunc.dispatch(this, location, "location", "search_get", arguments)}, set:function search (){return bodavm.toolsFunc.dispatch(this, location, "location", "search_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "hash", {configurable:false, enumerable:true, get:function hash (){return bodavm.toolsFunc.dispatch(this, location, "location", "hash_get", arguments)}, set:function hash (){return bodavm.toolsFunc.dispatch(this, location, "location", "hash_set", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "assign", {configurable:false, enumerable:true, writable:false, value:function assign (){return bodavm.toolsFunc.dispatch(this, location, "location", "assign", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "reload", {configurable:false, enumerable:true, writable:false, value:function reload (){return bodavm.toolsFunc.dispatch(this, location, "location", "reload", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "replace", {configurable:false, enumerable:true, writable:false, value:function replace (){return bodavm.toolsFunc.dispatch(this, location, "location", "replace", arguments)}}); -bodavm.toolsFunc.defineProperty(location, "toString", {configurable:false, enumerable:true, writable:false, value:function toString (){return bodavm.toolsFunc.dispatch(this, location, "location", "toString", arguments)}}); \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/MediaEncryptedEvent.js b/env_xbb_lastest_cheerio/env/MediaEncryptedEvent.js deleted file mode 100644 index 21b3511e..00000000 --- a/env_xbb_lastest_cheerio/env/MediaEncryptedEvent.js +++ /dev/null @@ -1,7 +0,0 @@ -// MediaEncryptedEvent对象 -MediaEncryptedEvent = function MediaEncryptedEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MediaEncryptedEvent': 1 argument required, but only 0 present.")} -bodavm.toolsFunc.safeProto(MediaEncryptedEvent, "MediaEncryptedEvent"); -MediaEncryptedEvent.prototype.__proto__=Event.prototype; -MediaEncryptedEvent.__proto__=Event; -bodavm.toolsFunc.defineProperty(MediaEncryptedEvent.prototype, "initDataType", {configurable:true, enumerable:true, get:function initDataType (){return bodavm.toolsFunc.dispatch(this, MediaEncryptedEvent.prototype, "MediaEncryptedEvent", "initDataType_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(MediaEncryptedEvent.prototype, "initData", {configurable:true, enumerable:true, get:function initData (){return bodavm.toolsFunc.dispatch(this, MediaEncryptedEvent.prototype, "MediaEncryptedEvent", "initData_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/MediaQueryList.js b/env_xbb_lastest_cheerio/env/MediaQueryList.js deleted file mode 100644 index 8f98b547..00000000 --- a/env_xbb_lastest_cheerio/env/MediaQueryList.js +++ /dev/null @@ -1,10 +0,0 @@ -// MediaQueryList对象 -MediaQueryList = function MediaQueryList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(MediaQueryList, "MediaQueryList"); -MediaQueryList.prototype.__proto__=EventTarget.prototype; -MediaQueryList.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(MediaQueryList.prototype, "media", {configurable:true, enumerable:true, get:function media (){return bodavm.toolsFunc.dispatch(this, MediaQueryList.prototype, "MediaQueryList", "media_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(MediaQueryList.prototype, "matches", {configurable:true, enumerable:true, get:function matches (){return bodavm.toolsFunc.dispatch(this, MediaQueryList.prototype, "MediaQueryList", "matches_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(MediaQueryList.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, MediaQueryList.prototype, "MediaQueryList", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, MediaQueryList.prototype, "MediaQueryList", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaQueryList.prototype, "addListener", {configurable:true, enumerable:true, writable:true, value:function addListener (){return bodavm.toolsFunc.dispatch(this, MediaQueryList.prototype, "MediaQueryList", "addListener", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaQueryList.prototype, "removeListener", {configurable:true, enumerable:true, writable:true, value:function removeListener (){return bodavm.toolsFunc.dispatch(this, MediaQueryList.prototype, "MediaQueryList", "removeListener", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/MediaStream.js b/env_xbb_lastest_cheerio/env/MediaStream.js deleted file mode 100644 index 232ff0dc..00000000 --- a/env_xbb_lastest_cheerio/env/MediaStream.js +++ /dev/null @@ -1,18 +0,0 @@ -// MediaStream对象 -MediaStream = function MediaStream(){} -bodavm.toolsFunc.safeProto(MediaStream, "MediaStream"); -MediaStream.prototype.__proto__=EventTarget.prototype; -MediaStream.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "id", {configurable:true, enumerable:true, get:function id (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "id_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "active", {configurable:true, enumerable:true, get:function active (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "active_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "onaddtrack", {configurable:true, enumerable:true, get:function onaddtrack (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "onaddtrack_get", arguments)}, set:function onaddtrack (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "onaddtrack_set", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "onremovetrack", {configurable:true, enumerable:true, get:function onremovetrack (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "onremovetrack_get", arguments)}, set:function onremovetrack (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "onremovetrack_set", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "onactive", {configurable:true, enumerable:true, get:function onactive (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "onactive_get", arguments)}, set:function onactive (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "onactive_set", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "oninactive", {configurable:true, enumerable:true, get:function oninactive (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "oninactive_get", arguments)}, set:function oninactive (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "oninactive_set", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "addTrack", {configurable:true, enumerable:true, writable:true, value:function addTrack (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "addTrack", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "clone", {configurable:true, enumerable:true, writable:true, value:function clone (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "clone", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "getAudioTracks", {configurable:true, enumerable:true, writable:true, value:function getAudioTracks (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "getAudioTracks", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "getTrackById", {configurable:true, enumerable:true, writable:true, value:function getTrackById (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "getTrackById", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "getTracks", {configurable:true, enumerable:true, writable:true, value:function getTracks (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "getTracks", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "getVideoTracks", {configurable:true, enumerable:true, writable:true, value:function getVideoTracks (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "getVideoTracks", arguments)}}); -bodavm.toolsFunc.defineProperty(MediaStream.prototype, "removeTrack", {configurable:true, enumerable:true, writable:true, value:function removeTrack (){return bodavm.toolsFunc.dispatch(this, MediaStream.prototype, "MediaStream", "removeTrack", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/MimeType.js b/env_xbb_lastest_cheerio/env/MimeType.js deleted file mode 100644 index 10414987..00000000 --- a/env_xbb_lastest_cheerio/env/MimeType.js +++ /dev/null @@ -1,7 +0,0 @@ -//MimeType对象 -MimeType=function MimeType(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(MimeType,"MimeType"); -bodavm.toolsFunc.defineProperty(MimeType.prototype,"type",{configurable:true, enumerable:true, get:function type () {return bodavm.toolsFunc.dispatch(this,MimeType.prototype,"MimeType","type_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(MimeType.prototype,"suffixes",{configurable:true, enumerable:true, get:function suffixes () {return bodavm.toolsFunc.dispatch(this,MimeType.prototype,"MimeType","suffixes_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(MimeType.prototype,"description",{configurable:true, enumerable:true, get:function description () {return bodavm.toolsFunc.dispatch(this,MimeType.prototype,"MimeType","description_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(MimeType.prototype,"enabledPlugin",{configurable:true, enumerable:true, get:function enabledPlugin () {return bodavm.toolsFunc.dispatch(this,MimeType.prototype,"MimeType","enabledPlugin_get",arguments)},set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/MimeTypeArray.js b/env_xbb_lastest_cheerio/env/MimeTypeArray.js deleted file mode 100644 index 0071668f..00000000 --- a/env_xbb_lastest_cheerio/env/MimeTypeArray.js +++ /dev/null @@ -1,6 +0,0 @@ -//MimeTypeArray对象 -MimeTypeArray=function MimeTypeArray(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(MimeTypeArray,"MimeTypeArray"); -bodavm.toolsFunc.defineProperty(MimeTypeArray.prototype,"length",{configurable:true, enumerable:true, get:function length () {return bodavm.toolsFunc.dispatch(this,MimeTypeArray.prototype,"MimeTypeArray","length_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(MimeTypeArray.prototype,"item",{configurable:true, enumerable:true, writable:true, value:function item() {return bodavm.toolsFunc.dispatch(this,MimeTypeArray.prototype,"MimeTypeArray","item",arguments)}}); -bodavm.toolsFunc.defineProperty(MimeTypeArray.prototype,"namedItem",{configurable:true, enumerable:true, writable:true, value:function namedItem() {return bodavm.toolsFunc.dispatch(this,MimeTypeArray.prototype,"MimeTypeArray","namedItem",arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/MouseEvent.js b/env_xbb_lastest_cheerio/env/MouseEvent.js deleted file mode 100644 index 2f08e2ff..00000000 --- a/env_xbb_lastest_cheerio/env/MouseEvent.js +++ /dev/null @@ -1,36 +0,0 @@ -// MouseEvent对象 -MouseEvent = function MouseEvent() { - - if (arguments.length < 1) { - - return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MouseEvent': 1 argument required, but only 0 present.") - } -} -bodavm.toolsFunc.safeProto(MouseEvent, "MouseEvent"); -MouseEvent.prototype.__proto__ = UIEvent.prototype; -MouseEvent.__proto__ = UIEvent; -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "screenX", { configurable: true, enumerable: true, get: function screenX() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "screenX_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "screenY", { configurable: true, enumerable: true, get: function screenY() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "screenY_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "clientX", { configurable: true, enumerable: true, get: function clientX() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "clientX_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "clientY", { configurable: true, enumerable: true, get: function clientY() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "clientY_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "ctrlKey", { configurable: true, enumerable: true, get: function ctrlKey() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "ctrlKey_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "shiftKey", { configurable: true, enumerable: true, get: function shiftKey() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "shiftKey_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "altKey", { configurable: true, enumerable: true, get: function altKey() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "altKey_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "metaKey", { configurable: true, enumerable: true, get: function metaKey() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "metaKey_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "button", { configurable: true, enumerable: true, get: function button() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "button_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "buttons", { configurable: true, enumerable: true, get: function buttons() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "buttons_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "relatedTarget", { configurable: true, enumerable: true, get: function relatedTarget() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "relatedTarget_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "pageX", { configurable: true, enumerable: true, get: function pageX() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "pageX_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "pageY", { configurable: true, enumerable: true, get: function pageY() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "pageY_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "x", { configurable: true, enumerable: true, get: function x() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "x_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "y", { configurable: true, enumerable: true, get: function y() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "y_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "offsetX", { configurable: true, enumerable: true, get: function offsetX() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "offsetX_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "offsetY", { configurable: true, enumerable: true, get: function offsetY() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "offsetY_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "movementX", { configurable: true, enumerable: true, get: function movementX() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "movementX_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "movementY", { configurable: true, enumerable: true, get: function movementY() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "movementY_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "fromElement", { configurable: true, enumerable: true, get: function fromElement() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "fromElement_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "toElement", { configurable: true, enumerable: true, get: function toElement() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "toElement_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "layerX", { configurable: true, enumerable: true, get: function layerX() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "layerX_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "layerY", { configurable: true, enumerable: true, get: function layerY() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "layerY_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "getModifierState", { configurable: true, enumerable: true, writable: true, value: function getModifierState() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "getModifierState", arguments) } }); -bodavm.toolsFunc.defineProperty(MouseEvent.prototype, "initMouseEvent", { configurable: true, enumerable: true, writable: true, value: function initMouseEvent() { return bodavm.toolsFunc.dispatch(this, MouseEvent.prototype, "MouseEvent", "initMouseEvent", arguments) } }); diff --git a/env_xbb_lastest_cheerio/env/MutationObserver.js b/env_xbb_lastest_cheerio/env/MutationObserver.js deleted file mode 100644 index e7c50ba6..00000000 --- a/env_xbb_lastest_cheerio/env/MutationObserver.js +++ /dev/null @@ -1,11 +0,0 @@ -// MutationObserver对象 -MutationObserver = function MutationObserver(){ - - if(arguments.length <1){ - return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MutationObserver': 1 argument required, but only 0 present.")} - - } -bodavm.toolsFunc.safeProto(MutationObserver, "MutationObserver"); -bodavm.toolsFunc.defineProperty(MutationObserver.prototype, "disconnect", {configurable:true, enumerable:true, writable:true, value:function disconnect (){return bodavm.toolsFunc.dispatch(this, MutationObserver.prototype, "MutationObserver", "disconnect", arguments)}}); -bodavm.toolsFunc.defineProperty(MutationObserver.prototype, "observe", {configurable:true, enumerable:true, writable:true, value:function observe (){return bodavm.toolsFunc.dispatch(this, MutationObserver.prototype, "MutationObserver", "observe", arguments)}}); -bodavm.toolsFunc.defineProperty(MutationObserver.prototype, "takeRecords", {configurable:true, enumerable:true, writable:true, value:function takeRecords (){return bodavm.toolsFunc.dispatch(this, MutationObserver.prototype, "MutationObserver", "takeRecords", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/NamedNodeMap.js b/env_xbb_lastest_cheerio/env/NamedNodeMap.js deleted file mode 100644 index 8616dfdf..00000000 --- a/env_xbb_lastest_cheerio/env/NamedNodeMap.js +++ /dev/null @@ -1,11 +0,0 @@ -// NamedNodeMap对象 -NamedNodeMap = function NamedNodeMap(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(NamedNodeMap, "NamedNodeMap"); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "getNamedItem", {configurable:true, enumerable:true, writable:true, value:function getNamedItem (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "getNamedItem", arguments)}}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "getNamedItemNS", {configurable:true, enumerable:true, writable:true, value:function getNamedItemNS (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "getNamedItemNS", arguments)}}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "item", arguments)}}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "removeNamedItem", {configurable:true, enumerable:true, writable:true, value:function removeNamedItem (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "removeNamedItem", arguments)}}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "removeNamedItemNS", {configurable:true, enumerable:true, writable:true, value:function removeNamedItemNS (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "removeNamedItemNS", arguments)}}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "setNamedItem", {configurable:true, enumerable:true, writable:true, value:function setNamedItem (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "setNamedItem", arguments)}}); -bodavm.toolsFunc.defineProperty(NamedNodeMap.prototype, "setNamedItemNS", {configurable:true, enumerable:true, writable:true, value:function setNamedItemNS (){return bodavm.toolsFunc.dispatch(this, NamedNodeMap.prototype, "NamedNodeMap", "setNamedItemNS", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Navigation.js b/env_xbb_lastest_cheerio/env/Navigation.js deleted file mode 100644 index bbd18c06..00000000 --- a/env_xbb_lastest_cheerio/env/Navigation.js +++ /dev/null @@ -1,23 +0,0 @@ -// Navigation对象 -Navigation = function Navigation(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Navigation, "Navigation"); -Navigation.prototype.__proto__=EventTarget.prototype; -Navigation.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(Navigation.prototype, "currentEntry", {configurable:true, enumerable:true, get:function currentEntry (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "currentEntry_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "transition", {configurable:true, enumerable:true, get:function transition (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "transition_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "canGoBack", {configurable:true, enumerable:true, get:function canGoBack (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "canGoBack_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "canGoForward", {configurable:true, enumerable:true, get:function canGoForward (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "canGoForward_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "onnavigate", {configurable:true, enumerable:true, get:function onnavigate (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "onnavigate_get", arguments)}, set:function onnavigate (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "onnavigate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "onnavigatesuccess", {configurable:true, enumerable:true, get:function onnavigatesuccess (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "onnavigatesuccess_get", arguments)}, set:function onnavigatesuccess (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "onnavigatesuccess_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "onnavigateerror", {configurable:true, enumerable:true, get:function onnavigateerror (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "onnavigateerror_get", arguments)}, set:function onnavigateerror (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "onnavigateerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "oncurrententrychange", {configurable:true, enumerable:true, get:function oncurrententrychange (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "oncurrententrychange_get", arguments)}, set:function oncurrententrychange (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "oncurrententrychange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "back", {configurable:true, enumerable:true, writable:true, value:function back (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "back", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "entries", {configurable:true, enumerable:true, writable:true, value:function entries (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "entries", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "forward", {configurable:true, enumerable:true, writable:true, value:function forward (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "forward", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "navigate", {configurable:true, enumerable:true, writable:true, value:function navigate (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "navigate", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "reload", {configurable:true, enumerable:true, writable:true, value:function reload (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "reload", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "traverseTo", {configurable:true, enumerable:true, writable:true, value:function traverseTo (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "traverseTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Navigation.prototype, "updateCurrentEntry", {configurable:true, enumerable:true, writable:true, value:function updateCurrentEntry (){return bodavm.toolsFunc.dispatch(this, Navigation.prototype, "Navigation", "updateCurrentEntry", arguments)}}); -var navigation={} -navigation.__proto__=Navigation.prototype - diff --git a/env_xbb_lastest_cheerio/env/Navigator.js b/env_xbb_lastest_cheerio/env/Navigator.js deleted file mode 100644 index 12310c5c..00000000 --- a/env_xbb_lastest_cheerio/env/Navigator.js +++ /dev/null @@ -1,75 +0,0 @@ -//Navigator对象 -Navigator=function Navigator(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(Navigator,"Navigator"); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"vendorSub",{configurable:true, enumerable:true, get:function vendorSub () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","vendorSub_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"productSub",{configurable:true, enumerable:true, get:function productSub () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","productSub_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"vendor",{configurable:true, enumerable:true, get:function vendor () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","vendor_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"maxTouchPoints",{configurable:true, enumerable:true, get:function maxTouchPoints () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","maxTouchPoints_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"userActivation",{configurable:true, enumerable:true, get:function userActivation () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","userActivation_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"doNotTrack",{configurable:true, enumerable:true, get:function doNotTrack () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","doNotTrack_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"geolocation",{configurable:true, enumerable:true, get:function geolocation () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","geolocation_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"connection",{configurable:true, enumerable:true, get:function connection () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","connection_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"plugins",{configurable:true, enumerable:true, get:function plugins () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","plugins_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"mimeTypes",{configurable:true, enumerable:true, get:function mimeTypes () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","mimeTypes_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"pdfViewerEnabled",{configurable:true, enumerable:true, get:function pdfViewerEnabled () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","pdfViewerEnabled_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"webkitTemporaryStorage",{configurable:true, enumerable:true, get:function webkitTemporaryStorage () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","webkitTemporaryStorage_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"webkitPersistentStorage",{configurable:true, enumerable:true, get:function webkitPersistentStorage () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","webkitPersistentStorage_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"hardwareConcurrency",{configurable:true, enumerable:true, get:function hardwareConcurrency () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","hardwareConcurrency_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"cookieEnabled",{configurable:true, enumerable:true, get:function cookieEnabled () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","cookieEnabled_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"appCodeName",{configurable:true, enumerable:true, get:function appCodeName () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","appCodeName_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"appName",{configurable:true, enumerable:true, get:function appName () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","appName_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"appVersion",{configurable:true, enumerable:true, get:function appVersion () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","appVersion_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"platform",{configurable:true, enumerable:true, get:function platform () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","platform_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"product",{configurable:true, enumerable:true, get:function product () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","product_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"userAgent",{configurable:true, enumerable:true, get:function userAgent () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","userAgent_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"language",{configurable:true, enumerable:true, get:function language () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","language_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"languages",{configurable:true, enumerable:true, get:function languages () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","languages_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"onLine",{configurable:true, enumerable:true, get:function onLine () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","onLine_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"webdriver",{configurable:true, enumerable:true, get:function webdriver () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","webdriver_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"getBattery",{configurable:true, enumerable:true, writable:true, value:function getBattery() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","getBattery",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"getGamepads",{configurable:true, enumerable:true, writable:true, value:function getGamepads() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","getGamepads",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"javaEnabled",{configurable:true, enumerable:true, writable:true, value:function javaEnabled() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","javaEnabled",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"sendBeacon",{configurable:true, enumerable:true, writable:true, value:function sendBeacon() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","sendBeacon",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"vibrate",{configurable:true, enumerable:true, writable:true, value:function vibrate() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","vibrate",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"scheduling",{configurable:true, enumerable:true, get:function scheduling () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","scheduling_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"bluetooth",{configurable:true, enumerable:true, get:function bluetooth () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","bluetooth_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"clipboard",{configurable:true, enumerable:true, get:function clipboard () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","clipboard_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"credentials",{configurable:true, enumerable:true, get:function credentials () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","credentials_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"keyboard",{configurable:true, enumerable:true, get:function keyboard () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","keyboard_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"managed",{configurable:true, enumerable:true, get:function managed () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","managed_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"mediaDevices",{configurable:true, enumerable:true, get:function mediaDevices () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","mediaDevices_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"storage",{configurable:true, enumerable:true, get:function storage () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","storage_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"serviceWorker",{configurable:true, enumerable:true, get:function serviceWorker () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","serviceWorker_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"wakeLock",{configurable:true, enumerable:true, get:function wakeLock () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","wakeLock_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"deviceMemory",{configurable:true, enumerable:true, get:function deviceMemory () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","deviceMemory_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"ink",{configurable:true, enumerable:true, get:function ink () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","ink_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"hid",{configurable:true, enumerable:true, get:function hid () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","hid_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"locks",{configurable:true, enumerable:true, get:function locks () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","locks_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"mediaCapabilities",{configurable:true, enumerable:true, get:function mediaCapabilities () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","mediaCapabilities_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"mediaSession",{configurable:true, enumerable:true, get:function mediaSession () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","mediaSession_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"permissions",{configurable:true, enumerable:true, get:function permissions () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","permissions_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"presentation",{configurable:true, enumerable:true, get:function presentation () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","presentation_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"serial",{configurable:true, enumerable:true, get:function serial () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","serial_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"virtualKeyboard",{configurable:true, enumerable:true, get:function virtualKeyboard () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","virtualKeyboard_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"usb",{configurable:true, enumerable:true, get:function usb () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","usb_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"xr",{configurable:true, enumerable:true, get:function xr () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","xr_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"userAgentData",{configurable:true, enumerable:true, get:function userAgentData () {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","userAgentData_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"canShare",{configurable:true, enumerable:true, writable:true, value:function canShare() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","canShare",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"share",{configurable:true, enumerable:true, writable:true, value:function share() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","share",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"clearAppBadge",{configurable:true, enumerable:true, writable:true, value:function clearAppBadge() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","clearAppBadge",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"setAppBadge",{configurable:true, enumerable:true, writable:true, value:function setAppBadge() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","setAppBadge",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"getInstalledRelatedApps",{configurable:true, enumerable:true, writable:true, value:function getInstalledRelatedApps() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","getInstalledRelatedApps",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"getUserMedia",{configurable:true, enumerable:true, writable:true, value:function getUserMedia() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","getUserMedia",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"requestMIDIAccess",{configurable:true, enumerable:true, writable:true, value:function requestMIDIAccess() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","requestMIDIAccess",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"requestMediaKeySystemAccess",{configurable:true, enumerable:true, writable:true, value:function requestMediaKeySystemAccess() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","requestMediaKeySystemAccess",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"webkitGetUserMedia",{configurable:true, enumerable:true, writable:true, value:function webkitGetUserMedia() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","webkitGetUserMedia",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"registerProtocolHandler",{configurable:true, enumerable:true, writable:true, value:function registerProtocolHandler() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","registerProtocolHandler",arguments)}}); -bodavm.toolsFunc.defineProperty(Navigator.prototype,"unregisterProtocolHandler",{configurable:true, enumerable:true, writable:true, value:function unregisterProtocolHandler() {return bodavm.toolsFunc.dispatch(this,Navigator.prototype,"Navigator","unregisterProtocolHandler",arguments)}}); - - -// navigator对象 -var navigator = {} -navigator.__proto__=Navigator.prototype; -// clientInformation对象 -var clientInformation = {} -clientInformation.__proto__=Navigator.prototype; diff --git a/env_xbb_lastest_cheerio/env/NetworkInformation.js b/env_xbb_lastest_cheerio/env/NetworkInformation.js deleted file mode 100644 index 534609c7..00000000 --- a/env_xbb_lastest_cheerio/env/NetworkInformation.js +++ /dev/null @@ -1,10 +0,0 @@ -// NetworkInformation对象 -NetworkInformation = function NetworkInformation(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(NetworkInformation, "NetworkInformation"); -NetworkInformation.prototype.__proto__=EventTarget.prototype; -NetworkInformation.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(NetworkInformation.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, NetworkInformation.prototype, "NetworkInformation", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, NetworkInformation.prototype, "NetworkInformation", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(NetworkInformation.prototype, "effectiveType", {configurable:true, enumerable:true, get:function effectiveType (){return bodavm.toolsFunc.dispatch(this, NetworkInformation.prototype, "NetworkInformation", "effectiveType_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(NetworkInformation.prototype, "rtt", {configurable:true, enumerable:true, get:function rtt (){return bodavm.toolsFunc.dispatch(this, NetworkInformation.prototype, "NetworkInformation", "rtt_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(NetworkInformation.prototype, "downlink", {configurable:true, enumerable:true, get:function downlink (){return bodavm.toolsFunc.dispatch(this, NetworkInformation.prototype, "NetworkInformation", "downlink_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(NetworkInformation.prototype, "saveData", {configurable:true, enumerable:true, get:function saveData (){return bodavm.toolsFunc.dispatch(this, NetworkInformation.prototype, "NetworkInformation", "saveData_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Node.js b/env_xbb_lastest_cheerio/env/Node.js deleted file mode 100644 index d32a7ca6..00000000 --- a/env_xbb_lastest_cheerio/env/Node.js +++ /dev/null @@ -1,71 +0,0 @@ -// Node对象 -Node = function Node(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Node, "Node"); -Node.prototype.__proto__=EventTarget.prototype; -Node.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(Node, "ELEMENT_NODE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Node, "ATTRIBUTE_NODE", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(Node, "TEXT_NODE", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(Node, "CDATA_SECTION_NODE", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(Node, "ENTITY_REFERENCE_NODE", {configurable:false, enumerable:true, writable:false, value:5}); -bodavm.toolsFunc.defineProperty(Node, "ENTITY_NODE", {configurable:false, enumerable:true, writable:false, value:6}); -bodavm.toolsFunc.defineProperty(Node, "PROCESSING_INSTRUCTION_NODE", {configurable:false, enumerable:true, writable:false, value:7}); -bodavm.toolsFunc.defineProperty(Node, "COMMENT_NODE", {configurable:false, enumerable:true, writable:false, value:8}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_NODE", {configurable:false, enumerable:true, writable:false, value:9}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_TYPE_NODE", {configurable:false, enumerable:true, writable:false, value:10}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_FRAGMENT_NODE", {configurable:false, enumerable:true, writable:false, value:11}); -bodavm.toolsFunc.defineProperty(Node, "NOTATION_NODE", {configurable:false, enumerable:true, writable:false, value:12}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_POSITION_DISCONNECTED", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_POSITION_PRECEDING", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_POSITION_FOLLOWING", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_POSITION_CONTAINS", {configurable:false, enumerable:true, writable:false, value:8}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_POSITION_CONTAINED_BY", {configurable:false, enumerable:true, writable:false, value:16}); -bodavm.toolsFunc.defineProperty(Node, "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", {configurable:false, enumerable:true, writable:false, value:32}); -bodavm.toolsFunc.defineProperty(Node.prototype, "nodeType", {configurable:true, enumerable:true, get:function nodeType (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "nodeType_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "nodeName", {configurable:true, enumerable:true, get:function nodeName (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "nodeName_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "baseURI", {configurable:true, enumerable:true, get:function baseURI (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "baseURI_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "isConnected", {configurable:true, enumerable:true, get:function isConnected (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "isConnected_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "ownerDocument", {configurable:true, enumerable:true, get:function ownerDocument (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "ownerDocument_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "parentNode", {configurable:true, enumerable:true, get:function parentNode (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "parentNode_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "parentElement", {configurable:true, enumerable:true, get:function parentElement (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "parentElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "childNodes", {configurable:true, enumerable:true, get:function childNodes (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "childNodes_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "firstChild", {configurable:true, enumerable:true, get:function firstChild (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "firstChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "lastChild", {configurable:true, enumerable:true, get:function lastChild (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "lastChild_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "previousSibling", {configurable:true, enumerable:true, get:function previousSibling (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "previousSibling_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "nextSibling", {configurable:true, enumerable:true, get:function nextSibling (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "nextSibling_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Node.prototype, "nodeValue", {configurable:true, enumerable:true, get:function nodeValue (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "nodeValue_get", arguments)}, set:function nodeValue (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "nodeValue_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "textContent", {configurable:true, enumerable:true, get:function textContent (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "textContent_get", arguments)}, set:function textContent (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "textContent_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "ELEMENT_NODE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Node.prototype, "ATTRIBUTE_NODE", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(Node.prototype, "TEXT_NODE", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(Node.prototype, "CDATA_SECTION_NODE", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(Node.prototype, "ENTITY_REFERENCE_NODE", {configurable:false, enumerable:true, writable:false, value:5}); -bodavm.toolsFunc.defineProperty(Node.prototype, "ENTITY_NODE", {configurable:false, enumerable:true, writable:false, value:6}); -bodavm.toolsFunc.defineProperty(Node.prototype, "PROCESSING_INSTRUCTION_NODE", {configurable:false, enumerable:true, writable:false, value:7}); -bodavm.toolsFunc.defineProperty(Node.prototype, "COMMENT_NODE", {configurable:false, enumerable:true, writable:false, value:8}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_NODE", {configurable:false, enumerable:true, writable:false, value:9}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_TYPE_NODE", {configurable:false, enumerable:true, writable:false, value:10}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_FRAGMENT_NODE", {configurable:false, enumerable:true, writable:false, value:11}); -bodavm.toolsFunc.defineProperty(Node.prototype, "NOTATION_NODE", {configurable:false, enumerable:true, writable:false, value:12}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_POSITION_DISCONNECTED", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_POSITION_PRECEDING", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_POSITION_FOLLOWING", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_POSITION_CONTAINS", {configurable:false, enumerable:true, writable:false, value:8}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_POSITION_CONTAINED_BY", {configurable:false, enumerable:true, writable:false, value:16}); -bodavm.toolsFunc.defineProperty(Node.prototype, "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", {configurable:false, enumerable:true, writable:false, value:32}); -bodavm.toolsFunc.defineProperty(Node.prototype, "appendChild", {configurable:true, enumerable:true, writable:true, value:function appendChild (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "appendChild", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "cloneNode", {configurable:true, enumerable:true, writable:true, value:function cloneNode (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "cloneNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "compareDocumentPosition", {configurable:true, enumerable:true, writable:true, value:function compareDocumentPosition (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "compareDocumentPosition", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "contains", {configurable:true, enumerable:true, writable:true, value:function contains (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "contains", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "getRootNode", {configurable:true, enumerable:true, writable:true, value:function getRootNode (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "getRootNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "hasChildNodes", {configurable:true, enumerable:true, writable:true, value:function hasChildNodes (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "hasChildNodes", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "insertBefore", {configurable:true, enumerable:true, writable:true, value:function insertBefore (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "insertBefore", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "isDefaultNamespace", {configurable:true, enumerable:true, writable:true, value:function isDefaultNamespace (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "isDefaultNamespace", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "isEqualNode", {configurable:true, enumerable:true, writable:true, value:function isEqualNode (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "isEqualNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "isSameNode", {configurable:true, enumerable:true, writable:true, value:function isSameNode (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "isSameNode", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "lookupNamespaceURI", {configurable:true, enumerable:true, writable:true, value:function lookupNamespaceURI (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "lookupNamespaceURI", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "lookupPrefix", {configurable:true, enumerable:true, writable:true, value:function lookupPrefix (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "lookupPrefix", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "normalize", {configurable:true, enumerable:true, writable:true, value:function normalize (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "normalize", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "removeChild", {configurable:true, enumerable:true, writable:true, value:function removeChild (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "removeChild", arguments)}}); -bodavm.toolsFunc.defineProperty(Node.prototype, "replaceChild", {configurable:true, enumerable:true, writable:true, value:function replaceChild (){return bodavm.toolsFunc.dispatch(this, Node.prototype, "Node", "replaceChild", arguments)}}); - diff --git a/env_xbb_lastest_cheerio/env/NodeList.js b/env_xbb_lastest_cheerio/env/NodeList.js deleted file mode 100644 index ba65557d..00000000 --- a/env_xbb_lastest_cheerio/env/NodeList.js +++ /dev/null @@ -1,11 +0,0 @@ -// NodeList对象 -NodeList = function NodeList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(NodeList, "NodeList"); -bodavm.toolsFunc.defineProperty(NodeList.prototype, "entries", {configurable:true, enumerable:true, writable:true, value:function entries (){return bodavm.toolsFunc.dispatch(this, NodeList.prototype, "NodeList", "entries", arguments)}}); -bodavm.toolsFunc.defineProperty(NodeList.prototype, "keys", {configurable:true, enumerable:true, writable:true, value:function keys (){return bodavm.toolsFunc.dispatch(this, NodeList.prototype, "NodeList", "keys", arguments)}}); -bodavm.toolsFunc.defineProperty(NodeList.prototype, "values", {configurable:true, enumerable:true, writable:true, value:function values (){return bodavm.toolsFunc.dispatch(this, NodeList.prototype, "NodeList", "values", arguments)}}); -bodavm.toolsFunc.defineProperty(NodeList.prototype, "forEach", {configurable:true, enumerable:true, writable:true, value:function forEach (){return bodavm.toolsFunc.dispatch(this, NodeList.prototype, "NodeList", "forEach", arguments)}}); -bodavm.toolsFunc.defineProperty(NodeList.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, NodeList.prototype, "NodeList", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(NodeList.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, NodeList.prototype, "NodeList", "item", arguments)}}); - - diff --git a/env_xbb_lastest_cheerio/env/Notification.js b/env_xbb_lastest_cheerio/env/Notification.js deleted file mode 100644 index 96a6b4dd..00000000 --- a/env_xbb_lastest_cheerio/env/Notification.js +++ /dev/null @@ -1,28 +0,0 @@ -// Notification对象 -Notification = function Notification(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Notification': 1 argument required, but only 0 present.")} -bodavm.toolsFunc.safeProto(Notification, "Notification"); -Notification.prototype.__proto__=EventTarget.prototype; -Notification.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(Notification, "permission", {configurable:true, enumerable:true, get:function permission (){return bodavm.toolsFunc.dispatch(this, Notification, "Notification", "permission_get", arguments, 'denied')}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification, "maxActions", {configurable:true, enumerable:true, get:function maxActions (){return bodavm.toolsFunc.dispatch(this, Notification, "Notification", "maxActions_get", arguments, 2)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification, "requestPermission", {configurable:true, enumerable:true, writable:true, value:function requestPermission (){return bodavm.toolsFunc.dispatch(this, Notification, "Notification", "requestPermission", arguments)}}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "onclick", {configurable:true, enumerable:true, get:function onclick (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onclick_get", arguments)}, set:function onclick (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "onshow", {configurable:true, enumerable:true, get:function onshow (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onshow_get", arguments)}, set:function onshow (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onshow_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "onclose", {configurable:true, enumerable:true, get:function onclose (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onclose_get", arguments)}, set:function onclose (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "onclose_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "title", {configurable:true, enumerable:true, get:function title (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "title_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "dir", {configurable:true, enumerable:true, get:function dir (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "dir_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "lang", {configurable:true, enumerable:true, get:function lang (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "lang_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "body", {configurable:true, enumerable:true, get:function body (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "body_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "tag", {configurable:true, enumerable:true, get:function tag (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "tag_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "icon", {configurable:true, enumerable:true, get:function icon (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "icon_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "badge", {configurable:true, enumerable:true, get:function badge (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "badge_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "vibrate", {configurable:true, enumerable:true, get:function vibrate (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "vibrate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "timestamp", {configurable:true, enumerable:true, get:function timestamp (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "timestamp_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "renotify", {configurable:true, enumerable:true, get:function renotify (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "renotify_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "silent", {configurable:true, enumerable:true, get:function silent (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "silent_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "requireInteraction", {configurable:true, enumerable:true, get:function requireInteraction (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "requireInteraction_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "data", {configurable:true, enumerable:true, get:function data (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "data_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "actions", {configurable:true, enumerable:true, get:function actions (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "actions_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "close", {configurable:true, enumerable:true, writable:true, value:function close (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "close", arguments)}}); -bodavm.toolsFunc.defineProperty(Notification.prototype, "image", {configurable:true, enumerable:true, get:function image (){return bodavm.toolsFunc.dispatch(this, Notification.prototype, "Notification", "image_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/OfflineAudioContext.js b/env_xbb_lastest_cheerio/env/OfflineAudioContext.js deleted file mode 100644 index 194ca9b1..00000000 --- a/env_xbb_lastest_cheerio/env/OfflineAudioContext.js +++ /dev/null @@ -1,14 +0,0 @@ -// OfflineAudioContext对象 -OfflineAudioContext = function OfflineAudioContext(){ - if (arguments.length <1){ - return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'OfflineAudioContext': 1 argument required, but only 0 present.")} - } - -bodavm.toolsFunc.safeProto(OfflineAudioContext, "OfflineAudioContext"); -OfflineAudioContext.prototype.__proto__=BaseAudioContext.prototype; -OfflineAudioContext.__proto__=BaseAudioContext; -bodavm.toolsFunc.defineProperty(OfflineAudioContext.prototype, "oncomplete", {configurable:true, enumerable:true, get:function oncomplete (){return bodavm.toolsFunc.dispatch(this, OfflineAudioContext.prototype, "OfflineAudioContext", "oncomplete_get", arguments)}, set:function oncomplete (){return bodavm.toolsFunc.dispatch(this, OfflineAudioContext.prototype, "OfflineAudioContext", "oncomplete_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OfflineAudioContext.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, OfflineAudioContext.prototype, "OfflineAudioContext", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(OfflineAudioContext.prototype, "resume", {configurable:true, enumerable:true, writable:true, value:function resume (){return bodavm.toolsFunc.dispatch(this, OfflineAudioContext.prototype, "OfflineAudioContext", "resume", arguments)}}); -bodavm.toolsFunc.defineProperty(OfflineAudioContext.prototype, "startRendering", {configurable:true, enumerable:true, writable:true, value:function startRendering (){return bodavm.toolsFunc.dispatch(this, OfflineAudioContext.prototype, "OfflineAudioContext", "startRendering", arguments)}}); -bodavm.toolsFunc.defineProperty(OfflineAudioContext.prototype, "suspend", {configurable:true, enumerable:true, writable:true, value:function suspend (){return bodavm.toolsFunc.dispatch(this, OfflineAudioContext.prototype, "OfflineAudioContext", "suspend", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/OffscreenCanvasRenderingContext2D.js b/env_xbb_lastest_cheerio/env/OffscreenCanvasRenderingContext2D.js deleted file mode 100644 index b783c632..00000000 --- a/env_xbb_lastest_cheerio/env/OffscreenCanvasRenderingContext2D.js +++ /dev/null @@ -1,73 +0,0 @@ -// OffscreenCanvasRenderingContext2D对象 -OffscreenCanvasRenderingContext2D = function OffscreenCanvasRenderingContext2D(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(OffscreenCanvasRenderingContext2D, "OffscreenCanvasRenderingContext2D"); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "canvas", {configurable:true, enumerable:true, get:function canvas (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "canvas_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "globalAlpha", {configurable:true, enumerable:true, get:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "globalAlpha_get", arguments)}, set:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "globalAlpha_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "globalCompositeOperation", {configurable:true, enumerable:true, get:function globalCompositeOperation (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "globalCompositeOperation_get", arguments)}, set:function globalCompositeOperation (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "globalCompositeOperation_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "filter", {configurable:true, enumerable:true, get:function filter (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "filter_get", arguments)}, set:function filter (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "filter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "imageSmoothingEnabled", {configurable:true, enumerable:true, get:function imageSmoothingEnabled (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "imageSmoothingEnabled_get", arguments)}, set:function imageSmoothingEnabled (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "imageSmoothingEnabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "imageSmoothingQuality", {configurable:true, enumerable:true, get:function imageSmoothingQuality (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "imageSmoothingQuality_get", arguments)}, set:function imageSmoothingQuality (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "imageSmoothingQuality_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "strokeStyle", {configurable:true, enumerable:true, get:function strokeStyle (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "strokeStyle_get", arguments)}, set:function strokeStyle (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "strokeStyle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fillStyle", {configurable:true, enumerable:true, get:function fillStyle (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fillStyle_get", arguments)}, set:function fillStyle (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fillStyle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "shadowOffsetX", {configurable:true, enumerable:true, get:function shadowOffsetX (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowOffsetX_get", arguments)}, set:function shadowOffsetX (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowOffsetX_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "shadowOffsetY", {configurable:true, enumerable:true, get:function shadowOffsetY (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowOffsetY_get", arguments)}, set:function shadowOffsetY (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowOffsetY_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "shadowBlur", {configurable:true, enumerable:true, get:function shadowBlur (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowBlur_get", arguments)}, set:function shadowBlur (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowBlur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "shadowColor", {configurable:true, enumerable:true, get:function shadowColor (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowColor_get", arguments)}, set:function shadowColor (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "shadowColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "lineWidth", {configurable:true, enumerable:true, get:function lineWidth (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineWidth_get", arguments)}, set:function lineWidth (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineWidth_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "lineCap", {configurable:true, enumerable:true, get:function lineCap (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineCap_get", arguments)}, set:function lineCap (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineCap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "lineJoin", {configurable:true, enumerable:true, get:function lineJoin (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineJoin_get", arguments)}, set:function lineJoin (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineJoin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "miterLimit", {configurable:true, enumerable:true, get:function miterLimit (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "miterLimit_get", arguments)}, set:function miterLimit (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "miterLimit_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "lineDashOffset", {configurable:true, enumerable:true, get:function lineDashOffset (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineDashOffset_get", arguments)}, set:function lineDashOffset (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineDashOffset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "font", {configurable:true, enumerable:true, get:function font (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "font_get", arguments)}, set:function font (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "font_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "textAlign", {configurable:true, enumerable:true, get:function textAlign (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "textAlign_get", arguments)}, set:function textAlign (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "textAlign_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "textBaseline", {configurable:true, enumerable:true, get:function textBaseline (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "textBaseline_get", arguments)}, set:function textBaseline (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "textBaseline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "direction", {configurable:true, enumerable:true, get:function direction (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "direction_get", arguments)}, set:function direction (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "direction_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fontKerning", {configurable:true, enumerable:true, get:function fontKerning (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fontKerning_get", arguments)}, set:function fontKerning (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fontKerning_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fontStretch", {configurable:true, enumerable:true, get:function fontStretch (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fontStretch_get", arguments)}, set:function fontStretch (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fontStretch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fontVariantCaps", {configurable:true, enumerable:true, get:function fontVariantCaps (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fontVariantCaps_get", arguments)}, set:function fontVariantCaps (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fontVariantCaps_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "letterSpacing", {configurable:true, enumerable:true, get:function letterSpacing (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "letterSpacing_get", arguments)}, set:function letterSpacing (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "letterSpacing_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "textRendering", {configurable:true, enumerable:true, get:function textRendering (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "textRendering_get", arguments)}, set:function textRendering (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "textRendering_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "wordSpacing", {configurable:true, enumerable:true, get:function wordSpacing (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "wordSpacing_get", arguments)}, set:function wordSpacing (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "wordSpacing_set", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "clip", {configurable:true, enumerable:true, writable:true, value:function clip (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "clip", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "createConicGradient", {configurable:true, enumerable:true, writable:true, value:function createConicGradient (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "createConicGradient", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "createImageData", {configurable:true, enumerable:true, writable:true, value:function createImageData (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "createImageData", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "createLinearGradient", {configurable:true, enumerable:true, writable:true, value:function createLinearGradient (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "createLinearGradient", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "createPattern", {configurable:true, enumerable:true, writable:true, value:function createPattern (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "createPattern", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "createRadialGradient", {configurable:true, enumerable:true, writable:true, value:function createRadialGradient (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "createRadialGradient", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "drawImage", {configurable:true, enumerable:true, writable:true, value:function drawImage (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "drawImage", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fill", {configurable:true, enumerable:true, writable:true, value:function fill (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fill", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fillText", {configurable:true, enumerable:true, writable:true, value:function fillText (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fillText", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "getImageData", {configurable:true, enumerable:true, writable:true, value:function getImageData (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "getImageData", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "getLineDash", {configurable:true, enumerable:true, writable:true, value:function getLineDash (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "getLineDash", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "getTransform", {configurable:true, enumerable:true, writable:true, value:function getTransform (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "getTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "isContextLost", {configurable:true, enumerable:true, writable:true, value:function isContextLost (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "isContextLost", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "isPointInPath", {configurable:true, enumerable:true, writable:true, value:function isPointInPath (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "isPointInPath", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "isPointInStroke", {configurable:true, enumerable:true, writable:true, value:function isPointInStroke (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "isPointInStroke", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "measureText", {configurable:true, enumerable:true, writable:true, value:function measureText (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "measureText", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "putImageData", {configurable:true, enumerable:true, writable:true, value:function putImageData (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "putImageData", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "reset", {configurable:true, enumerable:true, writable:true, value:function reset (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "reset", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "roundRect", {configurable:true, enumerable:true, writable:true, value:function roundRect (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "roundRect", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "save", {configurable:true, enumerable:true, writable:true, value:function save (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "save", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "scale", {configurable:true, enumerable:true, writable:true, value:function scale (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "scale", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "setLineDash", {configurable:true, enumerable:true, writable:true, value:function setLineDash (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "setLineDash", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "setTransform", {configurable:true, enumerable:true, writable:true, value:function setTransform (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "setTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "stroke", {configurable:true, enumerable:true, writable:true, value:function stroke (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "stroke", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "strokeText", {configurable:true, enumerable:true, writable:true, value:function strokeText (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "strokeText", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "transform", {configurable:true, enumerable:true, writable:true, value:function transform (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "transform", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "translate", {configurable:true, enumerable:true, writable:true, value:function translate (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "translate", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "arc", {configurable:true, enumerable:true, writable:true, value:function arc (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "arc", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "arcTo", {configurable:true, enumerable:true, writable:true, value:function arcTo (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "arcTo", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "beginPath", {configurable:true, enumerable:true, writable:true, value:function beginPath (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "beginPath", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "bezierCurveTo", {configurable:true, enumerable:true, writable:true, value:function bezierCurveTo (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "bezierCurveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "clearRect", {configurable:true, enumerable:true, writable:true, value:function clearRect (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "clearRect", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "closePath", {configurable:true, enumerable:true, writable:true, value:function closePath (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "closePath", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "ellipse", {configurable:true, enumerable:true, writable:true, value:function ellipse (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "ellipse", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "fillRect", {configurable:true, enumerable:true, writable:true, value:function fillRect (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "fillRect", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "lineTo", {configurable:true, enumerable:true, writable:true, value:function lineTo (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "lineTo", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "moveTo", {configurable:true, enumerable:true, writable:true, value:function moveTo (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "moveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "quadraticCurveTo", {configurable:true, enumerable:true, writable:true, value:function quadraticCurveTo (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "quadraticCurveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "rect", {configurable:true, enumerable:true, writable:true, value:function rect (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "rect", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "resetTransform", {configurable:true, enumerable:true, writable:true, value:function resetTransform (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "resetTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "restore", {configurable:true, enumerable:true, writable:true, value:function restore (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "restore", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "rotate", {configurable:true, enumerable:true, writable:true, value:function rotate (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "rotate", arguments)}}); -bodavm.toolsFunc.defineProperty(OffscreenCanvasRenderingContext2D.prototype, "strokeRect", {configurable:true, enumerable:true, writable:true, value:function strokeRect (){return bodavm.toolsFunc.dispatch(this, OffscreenCanvasRenderingContext2D.prototype, "OffscreenCanvasRenderingContext2D", "strokeRect", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Path2D.js b/env_xbb_lastest_cheerio/env/Path2D.js deleted file mode 100644 index a7b5f9a9..00000000 --- a/env_xbb_lastest_cheerio/env/Path2D.js +++ /dev/null @@ -1,14 +0,0 @@ -// Path2D对象 -Path2D = function Path2D(){} -bodavm.toolsFunc.safeProto(Path2D, "Path2D"); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "addPath", {configurable:true, enumerable:true, writable:true, value:function addPath (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "addPath", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "roundRect", {configurable:true, enumerable:true, writable:true, value:function roundRect (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "roundRect", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "arc", {configurable:true, enumerable:true, writable:true, value:function arc (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "arc", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "arcTo", {configurable:true, enumerable:true, writable:true, value:function arcTo (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "arcTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "bezierCurveTo", {configurable:true, enumerable:true, writable:true, value:function bezierCurveTo (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "bezierCurveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "closePath", {configurable:true, enumerable:true, writable:true, value:function closePath (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "closePath", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "ellipse", {configurable:true, enumerable:true, writable:true, value:function ellipse (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "ellipse", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "lineTo", {configurable:true, enumerable:true, writable:true, value:function lineTo (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "lineTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "moveTo", {configurable:true, enumerable:true, writable:true, value:function moveTo (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "moveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "quadraticCurveTo", {configurable:true, enumerable:true, writable:true, value:function quadraticCurveTo (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "quadraticCurveTo", arguments)}}); -bodavm.toolsFunc.defineProperty(Path2D.prototype, "rect", {configurable:true, enumerable:true, writable:true, value:function rect (){return bodavm.toolsFunc.dispatch(this, Path2D.prototype, "Path2D", "rect", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Performance.js b/env_xbb_lastest_cheerio/env/Performance.js deleted file mode 100644 index 9732d4f3..00000000 --- a/env_xbb_lastest_cheerio/env/Performance.js +++ /dev/null @@ -1,25 +0,0 @@ -// Performance对象 -Performance = function Performance(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Performance, "Performance"); -Performance.prototype.__proto__=EventTarget.prototype; -Performance.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(Performance.prototype, "timeOrigin", {configurable:true, enumerable:true, get:function timeOrigin (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "timeOrigin_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "onresourcetimingbufferfull", {configurable:true, enumerable:true, get:function onresourcetimingbufferfull (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "onresourcetimingbufferfull_get", arguments)}, set:function onresourcetimingbufferfull (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "onresourcetimingbufferfull_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "clearMarks", {configurable:true, enumerable:true, writable:true, value:function clearMarks (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "clearMarks", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "clearMeasures", {configurable:true, enumerable:true, writable:true, value:function clearMeasures (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "clearMeasures", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "clearResourceTimings", {configurable:true, enumerable:true, writable:true, value:function clearResourceTimings (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "clearResourceTimings", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "getEntries", {configurable:true, enumerable:true, writable:true, value:function getEntries (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "getEntries", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "getEntriesByName", {configurable:true, enumerable:true, writable:true, value:function getEntriesByName (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "getEntriesByName", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "getEntriesByType", {configurable:true, enumerable:true, writable:true, value:function getEntriesByType (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "getEntriesByType", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "mark", {configurable:true, enumerable:true, writable:true, value:function mark (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "mark", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "measure", {configurable:true, enumerable:true, writable:true, value:function measure (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "measure", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "now", {configurable:true, enumerable:true, writable:true, value:function now (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "now", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "setResourceTimingBufferSize", {configurable:true, enumerable:true, writable:true, value:function setResourceTimingBufferSize (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "setResourceTimingBufferSize", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "toJSON", {configurable:true, enumerable:true, writable:true, value:function toJSON (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "toJSON", arguments)}}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "timing", {configurable:true, enumerable:true, get:function timing (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "timing_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "navigation", {configurable:true, enumerable:true, get:function navigation (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "navigation_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "memory", {configurable:true, enumerable:true, get:function memory (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "memory_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Performance.prototype, "eventCounts", {configurable:true, enumerable:true, get:function eventCounts (){return bodavm.toolsFunc.dispatch(this, Performance.prototype, "Performance", "eventCounts_get", arguments)}, set:undefined}); -// performance对象 -var performance = {} -performance.__proto__=Performance.prototype; diff --git a/env_xbb_lastest_cheerio/env/PerformanceEntry.js b/env_xbb_lastest_cheerio/env/PerformanceEntry.js deleted file mode 100644 index 9d942193..00000000 --- a/env_xbb_lastest_cheerio/env/PerformanceEntry.js +++ /dev/null @@ -1,8 +0,0 @@ -// PerformanceEntry对象 -PerformanceEntry = function PerformanceEntry(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(PerformanceEntry, "PerformanceEntry"); -bodavm.toolsFunc.defineProperty(PerformanceEntry.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, PerformanceEntry.prototype, "PerformanceEntry", "name_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PerformanceEntry.prototype, "entryType", {configurable:true, enumerable:true, get:function entryType (){return bodavm.toolsFunc.dispatch(this, PerformanceEntry.prototype, "PerformanceEntry", "entryType_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PerformanceEntry.prototype, "startTime", {configurable:true, enumerable:true, get:function startTime (){return bodavm.toolsFunc.dispatch(this, PerformanceEntry.prototype, "PerformanceEntry", "startTime_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PerformanceEntry.prototype, "duration", {configurable:true, enumerable:true, get:function duration (){return bodavm.toolsFunc.dispatch(this, PerformanceEntry.prototype, "PerformanceEntry", "duration_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PerformanceEntry.prototype, "toJSON", {configurable:true, enumerable:true, writable:true, value:function toJSON (){return bodavm.toolsFunc.dispatch(this, PerformanceEntry.prototype, "PerformanceEntry", "toJSON", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/PerformancePaintTiming.js b/env_xbb_lastest_cheerio/env/PerformancePaintTiming.js deleted file mode 100644 index fdfa04b9..00000000 --- a/env_xbb_lastest_cheerio/env/PerformancePaintTiming.js +++ /dev/null @@ -1,5 +0,0 @@ -// PerformancePaintTiming对象 -PerformancePaintTiming = function PerformancePaintTiming(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(PerformancePaintTiming, "PerformancePaintTiming"); -PerformancePaintTiming.prototype.__proto__=PerformanceEntry.prototype; -PerformancePaintTiming.__proto__=PerformanceEntry; diff --git a/env_xbb_lastest_cheerio/env/PermissionStatus.js b/env_xbb_lastest_cheerio/env/PermissionStatus.js deleted file mode 100644 index 71d44c70..00000000 --- a/env_xbb_lastest_cheerio/env/PermissionStatus.js +++ /dev/null @@ -1,8 +0,0 @@ -// PermissionStatus对象 -PermissionStatus = function PermissionStatus(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(PermissionStatus, "PermissionStatus"); -PermissionStatus.prototype.__proto__=EventTarget.prototype; -PermissionStatus.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(PermissionStatus.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, PermissionStatus.prototype, "PermissionStatus", "name_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PermissionStatus.prototype, "state", {configurable:true, enumerable:true, get:function state (){return bodavm.toolsFunc.dispatch(this, PermissionStatus.prototype, "PermissionStatus", "state_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PermissionStatus.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, PermissionStatus.prototype, "PermissionStatus", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, PermissionStatus.prototype, "PermissionStatus", "onchange_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Permissions.js b/env_xbb_lastest_cheerio/env/Permissions.js deleted file mode 100644 index 5b813166..00000000 --- a/env_xbb_lastest_cheerio/env/Permissions.js +++ /dev/null @@ -1,4 +0,0 @@ -// Permissions对象 -Permissions = function Permissions(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Permissions, "Permissions"); -bodavm.toolsFunc.defineProperty(Permissions.prototype, "query", {configurable:true, enumerable:true, writable:true, value:function query (){return bodavm.toolsFunc.dispatch(this, Permissions.prototype, "Permissions", "query", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Plugin.js b/env_xbb_lastest_cheerio/env/Plugin.js deleted file mode 100644 index 0226a372..00000000 --- a/env_xbb_lastest_cheerio/env/Plugin.js +++ /dev/null @@ -1,9 +0,0 @@ -//Plugin对象 -Plugin=function Plugin(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(Plugin,"Plugin"); -bodavm.toolsFunc.defineProperty(Plugin.prototype,"name",{configurable:true, enumerable:true, get:function name () {return bodavm.toolsFunc.dispatch(this,Plugin.prototype,"Plugin","name_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Plugin.prototype,"filename",{configurable:true, enumerable:true, get:function filename () {return bodavm.toolsFunc.dispatch(this,Plugin.prototype,"Plugin","filename_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Plugin.prototype,"description",{configurable:true, enumerable:true, get:function description () {return bodavm.toolsFunc.dispatch(this,Plugin.prototype,"Plugin","description_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Plugin.prototype,"length",{configurable:true, enumerable:true, get:function length () {return bodavm.toolsFunc.dispatch(this,Plugin.prototype,"Plugin","length_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(Plugin.prototype,"item",{configurable:true, enumerable:true, writable:true, value:function item() {return bodavm.toolsFunc.dispatch(this,Plugin.prototype,"Plugin","item",arguments)}}); -bodavm.toolsFunc.defineProperty(Plugin.prototype,"namedItem",{configurable:true, enumerable:true, writable:true, value:function namedItem() {return bodavm.toolsFunc.dispatch(this,Plugin.prototype,"Plugin","namedItem",arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/PluginArray.js b/env_xbb_lastest_cheerio/env/PluginArray.js deleted file mode 100644 index a7733fe4..00000000 --- a/env_xbb_lastest_cheerio/env/PluginArray.js +++ /dev/null @@ -1,7 +0,0 @@ -//PluginArray对象 -PluginArray=function PluginArray(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(PluginArray,"PluginArray"); -bodavm.toolsFunc.defineProperty(PluginArray.prototype,"length",{configurable:true, enumerable:true, get:function length () {return bodavm.toolsFunc.dispatch(this,PluginArray.prototype,"PluginArray","length_get",arguments)},set:undefined}); -bodavm.toolsFunc.defineProperty(PluginArray.prototype,"item",{configurable:true, enumerable:true, writable:true, value:function item() {return bodavm.toolsFunc.dispatch(this,PluginArray.prototype,"PluginArray","item",arguments)}}); -bodavm.toolsFunc.defineProperty(PluginArray.prototype,"namedItem",{configurable:true, enumerable:true, writable:true, value:function namedItem() {return bodavm.toolsFunc.dispatch(this,PluginArray.prototype,"PluginArray","namedItem",arguments)}}); -bodavm.toolsFunc.defineProperty(PluginArray.prototype,"refresh",{configurable:true, enumerable:true, writable:true, value:function refresh() {return bodavm.toolsFunc.dispatch(this,PluginArray.prototype,"PluginArray","refresh",arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/PointerEvent.js b/env_xbb_lastest_cheerio/env/PointerEvent.js deleted file mode 100644 index f5d44c7e..00000000 --- a/env_xbb_lastest_cheerio/env/PointerEvent.js +++ /dev/null @@ -1,33 +0,0 @@ -// PointerEvent对象 -PointerEvent = function PointerEvent(){ - if (arguments.length <1){ - return bodavm.toolsFunc.throwError("TypeError","Failed to construct 'PointerEvent': 1 argument required, but only 0 present.") - } - this._type=arguments[0] - Object.defineProperty(this,'isTrusted',{ - configurable:false, - enumerable:true, - set:undefined, - get:function (){ - return true - } - }) - -} -bodavm.toolsFunc.safeProto(PointerEvent, "PointerEvent"); -PointerEvent.prototype.__proto__=MouseEvent.prototype; -PointerEvent.__proto__=MouseEvent; -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "pointerId", {configurable:true, enumerable:true, get:function pointerId (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "pointerId_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "width_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "height_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "pressure", {configurable:true, enumerable:true, get:function pressure (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "pressure_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "tiltX", {configurable:true, enumerable:true, get:function tiltX (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "tiltX_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "tiltY", {configurable:true, enumerable:true, get:function tiltY (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "tiltY_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "azimuthAngle", {configurable:true, enumerable:true, get:function azimuthAngle (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "azimuthAngle_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "altitudeAngle", {configurable:true, enumerable:true, get:function altitudeAngle (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "altitudeAngle_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "tangentialPressure", {configurable:true, enumerable:true, get:function tangentialPressure (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "tangentialPressure_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "twist", {configurable:true, enumerable:true, get:function twist (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "twist_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "pointerType", {configurable:true, enumerable:true, get:function pointerType (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "pointerType_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "isPrimary", {configurable:true, enumerable:true, get:function isPrimary (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "isPrimary_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "getCoalescedEvents", {configurable:true, enumerable:true, writable:true, value:function getCoalescedEvents (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "getCoalescedEvents", arguments)}}); -bodavm.toolsFunc.defineProperty(PointerEvent.prototype, "getPredictedEvents", {configurable:true, enumerable:true, writable:true, value:function getPredictedEvents (){return bodavm.toolsFunc.dispatch(this, PointerEvent.prototype, "PointerEvent", "getPredictedEvents", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/PresentationConnectionCloseEvent.js b/env_xbb_lastest_cheerio/env/PresentationConnectionCloseEvent.js deleted file mode 100644 index 73f42a5a..00000000 --- a/env_xbb_lastest_cheerio/env/PresentationConnectionCloseEvent.js +++ /dev/null @@ -1,7 +0,0 @@ -// PresentationConnectionCloseEvent对象 -PresentationConnectionCloseEvent = function PresentationConnectionCloseEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'PresentationConnectionCloseEvent': 2 arguments required, but only 0 present.")} -bodavm.toolsFunc.safeProto(PresentationConnectionCloseEvent, "PresentationConnectionCloseEvent"); -PresentationConnectionCloseEvent.prototype.__proto__=Event.prototype; -PresentationConnectionCloseEvent.__proto__=Event; -bodavm.toolsFunc.defineProperty(PresentationConnectionCloseEvent.prototype, "reason", {configurable:true, enumerable:true, get:function reason (){return bodavm.toolsFunc.dispatch(this, PresentationConnectionCloseEvent.prototype, "PresentationConnectionCloseEvent", "reason_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(PresentationConnectionCloseEvent.prototype, "message", {configurable:true, enumerable:true, get:function message (){return bodavm.toolsFunc.dispatch(this, PresentationConnectionCloseEvent.prototype, "PresentationConnectionCloseEvent", "message_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Promise.js b/env_xbb_lastest_cheerio/env/Promise.js deleted file mode 100644 index e8d0770f..00000000 --- a/env_xbb_lastest_cheerio/env/Promise.js +++ /dev/null @@ -1,193 +0,0 @@ -const PENDING = 'pending'; -const FULFILLED = 'fulfilled'; -const REJECTED = 'rejected'; - -function Promise(executor) { - this.state = PENDING; - this.value = null; - this.reason = null; - this.onFulfilledCallbacks = []; - this.onRejectedCallbacks = []; - - const resolve = (value) => { - if (this.state === PENDING) { - this.state = FULFILLED; - this.value = value; - this.onFulfilledCallbacks.forEach((fun) => { - fun(); - }); - } - }; - - const reject = (reason) => { - if (this.state === PENDING) { - this.state = REJECTED; - this.reason = reason; - this.onRejectedCallbacks.forEach((fun) => { - fun(); - }); - } - }; - - try { - executor(resolve, reject); - } catch (reason) { - reject(reason); - } -} -bodavm.toolsFunc.safeProto(Promise,"Promise"); - - - -//原型上面的方法 -//用settimeout来模拟异步调用,保证链式调用,即then方法中要返回一个新的promise,并将then方法的返回值进行resolve -Promise.prototype.then = function (onFulfilled, onRejected) { - if (typeof onFulfilled != 'function') { - onFulfilled = function (value) { - return value; - }; - } - if (typeof onRejected != 'function') { - onRejected = function (reason) { - throw reason; - }; - } - const promise2 = new Promise((resolve, reject) => { - switch (this.state) { - case FULFILLED: - setTimeout(() => { - try { - const x = onFulfilled(this.value); - resolve(x); - } catch (reason) { - reject(reason); - } - }, 0); - break; - case REJECTED: - setTimeout(() => { - try { - const x = onRejected(this.reason); - resolve(x); - } catch (reason) { - reject(reason); - } - }, 0); - break; - case PENDING: - this.onFulfilledCallbacks.push(() => { - setTimeout(() => { - try { - const x = onFulfilled(this.value); - resolve(x); - } catch (reason) { - reject(reason); - } - }, 0); - }); - this.onRejectedCallbacks.push(() => { - setTimeout(() => { - try { - const x = onRejected(this.reason); - resolve(x); - } catch (reason) { - reject(reason); - } - }, 0); - }); - break; - } - }); - return promise2; -}; -bodavm.toolsFunc.safeFunc(Promise.prototype.then,'then') - -Promise.prototype.catch = function (onRejected) { - return this.then(null, onRejected); -}; -bodavm.toolsFunc.safeFunc(Promise.prototype.catch,'catch') - - -Promise.prototype.finally = function (fn) { - return this.then( - (value) => { - fn(); - return value; - }, - (reason) => { - fn(); - throw reason; - } - ); -}; -bodavm.toolsFunc.safeFunc(Promise.prototype.finally,'finally') - - -//静态方法 -Promise.resolve = function (value) { - return new Promise((resolve, reject) => { - resolve(value); - }); -}; -bodavm.toolsFunc.safeFunc(Promise.resolve,'resolve') - -Promise.reject = function (reason) { - return new Promise((resolve, reject) => { - reject(reason); - }); -}; -bodavm.toolsFunc.safeFunc(Promise.reject,'reject') - -//接受一个promise数组,当所有promise状态resolve后,执行resolve -Promise.all = function (promises) { - return new Promise((resolve, reject) => { - if (promises.length === 0) { - resolve([]); - } else { - let result = []; - let index = 0; - for (let i = 0; i < promises.length; i++) { - promises[i].then( - (data) => { - result[i] = data; - if (++index === promises.length) { - resolve(result); - } - }, - (err) => { - reject(err); - return; - } - ); - } - } - }); -}; -bodavm.toolsFunc.safeFunc(Promise.all,'all') - -//接受一个promise数组,当有一个promise状态resolve后,执行resolve -Promise.race = function (promises) { - return new Promise((resolve, reject) => { - if (promises.length === 0) { - resolve(); - } else { - let index = 0; - for (let i = 0; i < promises.length; i++) { - promises[i].then( - (data) => { - resolve(data); - }, - (err) => { - reject(err); - return; - } - ); - } - } - }); -}; -bodavm.toolsFunc.safeFunc(Promise.race,'race') - -bodavm.toolsFunc.safeFunc(Promise) -// globalMy.rename(Promise.prototype,"Promise") - diff --git a/env_xbb_lastest_cheerio/env/RTCPeerConnection.js b/env_xbb_lastest_cheerio/env/RTCPeerConnection.js deleted file mode 100644 index 34e68c35..00000000 --- a/env_xbb_lastest_cheerio/env/RTCPeerConnection.js +++ /dev/null @@ -1,51 +0,0 @@ -// RTCPeerConnection对象 -RTCPeerConnection = function RTCPeerConnection(){} -bodavm.toolsFunc.safeProto(RTCPeerConnection, "RTCPeerConnection"); -RTCPeerConnection.prototype.__proto__=EventTarget.prototype; -RTCPeerConnection.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(RTCPeerConnection, "generateCertificate", {configurable:true, enumerable:true, writable:true, value:function generateCertificate (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection, "RTCPeerConnection", "generateCertificate", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "localDescription", {configurable:true, enumerable:true, get:function localDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "localDescription_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "currentLocalDescription", {configurable:true, enumerable:true, get:function currentLocalDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "currentLocalDescription_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "pendingLocalDescription", {configurable:true, enumerable:true, get:function pendingLocalDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "pendingLocalDescription_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "remoteDescription", {configurable:true, enumerable:true, get:function remoteDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "remoteDescription_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "currentRemoteDescription", {configurable:true, enumerable:true, get:function currentRemoteDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "currentRemoteDescription_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "pendingRemoteDescription", {configurable:true, enumerable:true, get:function pendingRemoteDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "pendingRemoteDescription_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "signalingState", {configurable:true, enumerable:true, get:function signalingState (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "signalingState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "iceGatheringState", {configurable:true, enumerable:true, get:function iceGatheringState (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "iceGatheringState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "iceConnectionState", {configurable:true, enumerable:true, get:function iceConnectionState (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "iceConnectionState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "connectionState", {configurable:true, enumerable:true, get:function connectionState (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "connectionState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "canTrickleIceCandidates", {configurable:true, enumerable:true, get:function canTrickleIceCandidates (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "canTrickleIceCandidates_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onnegotiationneeded", {configurable:true, enumerable:true, get:function onnegotiationneeded (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onnegotiationneeded_get", arguments)}, set:function onnegotiationneeded (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onnegotiationneeded_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onicecandidate", {configurable:true, enumerable:true, get:function onicecandidate (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onicecandidate_get", arguments)}, set:function onicecandidate (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onicecandidate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onsignalingstatechange", {configurable:true, enumerable:true, get:function onsignalingstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onsignalingstatechange_get", arguments)}, set:function onsignalingstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onsignalingstatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "oniceconnectionstatechange", {configurable:true, enumerable:true, get:function oniceconnectionstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "oniceconnectionstatechange_get", arguments)}, set:function oniceconnectionstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "oniceconnectionstatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onconnectionstatechange", {configurable:true, enumerable:true, get:function onconnectionstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onconnectionstatechange_get", arguments)}, set:function onconnectionstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onconnectionstatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onicegatheringstatechange", {configurable:true, enumerable:true, get:function onicegatheringstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onicegatheringstatechange_get", arguments)}, set:function onicegatheringstatechange (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onicegatheringstatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onicecandidateerror", {configurable:true, enumerable:true, get:function onicecandidateerror (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onicecandidateerror_get", arguments)}, set:function onicecandidateerror (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onicecandidateerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "ontrack", {configurable:true, enumerable:true, get:function ontrack (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "ontrack_get", arguments)}, set:function ontrack (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "ontrack_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "sctp", {configurable:true, enumerable:true, get:function sctp (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "sctp_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "ondatachannel", {configurable:true, enumerable:true, get:function ondatachannel (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "ondatachannel_get", arguments)}, set:function ondatachannel (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "ondatachannel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onaddstream", {configurable:true, enumerable:true, get:function onaddstream (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onaddstream_get", arguments)}, set:function onaddstream (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onaddstream_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "onremovestream", {configurable:true, enumerable:true, get:function onremovestream (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onremovestream_get", arguments)}, set:function onremovestream (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "onremovestream_set", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "addIceCandidate", {configurable:true, enumerable:true, writable:true, value:function addIceCandidate (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "addIceCandidate", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "addStream", {configurable:true, enumerable:true, writable:true, value:function addStream (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "addStream", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "addTrack", {configurable:true, enumerable:true, writable:true, value:function addTrack (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "addTrack", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "addTransceiver", {configurable:true, enumerable:true, writable:true, value:function addTransceiver (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "addTransceiver", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "close", {configurable:true, enumerable:true, writable:true, value:function close (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "close", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "createAnswer", {configurable:true, enumerable:true, writable:true, value:function createAnswer (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "createAnswer", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "createDTMFSender", {configurable:true, enumerable:true, writable:true, value:function createDTMFSender (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "createDTMFSender", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "createDataChannel", {configurable:true, enumerable:true, writable:true, value:function createDataChannel (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "createDataChannel", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "createOffer", {configurable:true, enumerable:true, writable:true, value:function createOffer (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "createOffer", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getConfiguration", {configurable:true, enumerable:true, writable:true, value:function getConfiguration (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getConfiguration", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getLocalStreams", {configurable:true, enumerable:true, writable:true, value:function getLocalStreams (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getLocalStreams", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getReceivers", {configurable:true, enumerable:true, writable:true, value:function getReceivers (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getReceivers", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getRemoteStreams", {configurable:true, enumerable:true, writable:true, value:function getRemoteStreams (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getRemoteStreams", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getSenders", {configurable:true, enumerable:true, writable:true, value:function getSenders (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getSenders", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getStats", {configurable:true, enumerable:true, writable:true, value:function getStats (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getStats", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "getTransceivers", {configurable:true, enumerable:true, writable:true, value:function getTransceivers (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "getTransceivers", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "removeStream", {configurable:true, enumerable:true, writable:true, value:function removeStream (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "removeStream", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "removeTrack", {configurable:true, enumerable:true, writable:true, value:function removeTrack (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "removeTrack", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "restartIce", {configurable:true, enumerable:true, writable:true, value:function restartIce (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "restartIce", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "setConfiguration", {configurable:true, enumerable:true, writable:true, value:function setConfiguration (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "setConfiguration", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "setLocalDescription", {configurable:true, enumerable:true, writable:true, value:function setLocalDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "setLocalDescription", arguments)}}); -bodavm.toolsFunc.defineProperty(RTCPeerConnection.prototype, "setRemoteDescription", {configurable:true, enumerable:true, writable:true, value:function setRemoteDescription (){return bodavm.toolsFunc.dispatch(this, RTCPeerConnection.prototype, "RTCPeerConnection", "setRemoteDescription", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Request.js b/env_xbb_lastest_cheerio/env/Request.js deleted file mode 100644 index c3de08f0..00000000 --- a/env_xbb_lastest_cheerio/env/Request.js +++ /dev/null @@ -1,31 +0,0 @@ -// Request对象 -Request = function Request(){ - - if (arguments.length <1){ - return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Request': 1 argument required, but only 0 present.")} - - } -bodavm.toolsFunc.safeProto(Request, "Request"); -bodavm.toolsFunc.defineProperty(Request.prototype, "method", {configurable:true, enumerable:true, get:function method (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "method_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "url", {configurable:true, enumerable:true, get:function url (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "url_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "headers", {configurable:true, enumerable:true, get:function headers (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "headers_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "destination", {configurable:true, enumerable:true, get:function destination (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "destination_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "referrer", {configurable:true, enumerable:true, get:function referrer (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "referrer_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "referrerPolicy_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "mode", {configurable:true, enumerable:true, get:function mode (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "mode_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "credentials", {configurable:true, enumerable:true, get:function credentials (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "credentials_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "cache", {configurable:true, enumerable:true, get:function cache (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "cache_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "redirect", {configurable:true, enumerable:true, get:function redirect (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "redirect_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "integrity", {configurable:true, enumerable:true, get:function integrity (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "integrity_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "keepalive", {configurable:true, enumerable:true, get:function keepalive (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "keepalive_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "signal", {configurable:true, enumerable:true, get:function signal (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "signal_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "isHistoryNavigation", {configurable:true, enumerable:true, get:function isHistoryNavigation (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "isHistoryNavigation_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "bodyUsed", {configurable:true, enumerable:true, get:function bodyUsed (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "bodyUsed_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Request.prototype, "arrayBuffer", {configurable:true, enumerable:true, writable:true, value:function arrayBuffer (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "arrayBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(Request.prototype, "blob", {configurable:true, enumerable:true, writable:true, value:function blob (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "blob", arguments)}}); -bodavm.toolsFunc.defineProperty(Request.prototype, "clone", {configurable:true, enumerable:true, writable:true, value:function clone (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "clone", arguments)}}); -bodavm.toolsFunc.defineProperty(Request.prototype, "formData", {configurable:true, enumerable:true, writable:true, value:function formData (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "formData", arguments)}}); -bodavm.toolsFunc.defineProperty(Request.prototype, "json", {configurable:true, enumerable:true, writable:true, value:function json (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "json", arguments)}}); -bodavm.toolsFunc.defineProperty(Request.prototype, "text", {configurable:true, enumerable:true, writable:true, value:function text (){return bodavm.toolsFunc.dispatch(this, Request.prototype, "Request", "text", arguments)}}); - - diff --git a/env_xbb_lastest_cheerio/env/SVGElement.js b/env_xbb_lastest_cheerio/env/SVGElement.js deleted file mode 100644 index 0c28c91c..00000000 --- a/env_xbb_lastest_cheerio/env/SVGElement.js +++ /dev/null @@ -1,109 +0,0 @@ -// SVGElement对象 -SVGElement = function SVGElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGElement, "SVGElement"); -SVGElement.prototype.__proto__=Element.prototype; -SVGElement.__proto__=Element; -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "className", {configurable:true, enumerable:true, get:function className (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "className_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ownerSVGElement", {configurable:true, enumerable:true, get:function ownerSVGElement (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ownerSVGElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "viewportElement", {configurable:true, enumerable:true, get:function viewportElement (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "viewportElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onbeforexrselect", {configurable:true, enumerable:true, get:function onbeforexrselect (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onbeforexrselect_get", arguments)}, set:function onbeforexrselect (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onbeforexrselect_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onblur", {configurable:true, enumerable:true, get:function onblur (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onblur_get", arguments)}, set:function onblur (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onblur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncancel", {configurable:true, enumerable:true, get:function oncancel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncancel_get", arguments)}, set:function oncancel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncanplay", {configurable:true, enumerable:true, get:function oncanplay (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncanplay_get", arguments)}, set:function oncanplay (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncanplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncanplaythrough", {configurable:true, enumerable:true, get:function oncanplaythrough (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncanplaythrough_get", arguments)}, set:function oncanplaythrough (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncanplaythrough_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onclick", {configurable:true, enumerable:true, get:function onclick (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onclick_get", arguments)}, set:function onclick (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onclose", {configurable:true, enumerable:true, get:function onclose (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onclose_get", arguments)}, set:function onclose (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onclose_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncontextlost", {configurable:true, enumerable:true, get:function oncontextlost (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncontextlost_get", arguments)}, set:function oncontextlost (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncontextlost_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncontextmenu", {configurable:true, enumerable:true, get:function oncontextmenu (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncontextmenu_get", arguments)}, set:function oncontextmenu (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncontextmenu_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncontextrestored", {configurable:true, enumerable:true, get:function oncontextrestored (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncontextrestored_get", arguments)}, set:function oncontextrestored (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncontextrestored_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncuechange", {configurable:true, enumerable:true, get:function oncuechange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncuechange_get", arguments)}, set:function oncuechange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncuechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondblclick", {configurable:true, enumerable:true, get:function ondblclick (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondblclick_get", arguments)}, set:function ondblclick (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondblclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondrag", {configurable:true, enumerable:true, get:function ondrag (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondrag_get", arguments)}, set:function ondrag (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondrag_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondragend", {configurable:true, enumerable:true, get:function ondragend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragend_get", arguments)}, set:function ondragend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondragenter", {configurable:true, enumerable:true, get:function ondragenter (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragenter_get", arguments)}, set:function ondragenter (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondragleave", {configurable:true, enumerable:true, get:function ondragleave (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragleave_get", arguments)}, set:function ondragleave (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondragover", {configurable:true, enumerable:true, get:function ondragover (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragover_get", arguments)}, set:function ondragover (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondragstart", {configurable:true, enumerable:true, get:function ondragstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragstart_get", arguments)}, set:function ondragstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondragstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondrop", {configurable:true, enumerable:true, get:function ondrop (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondrop_get", arguments)}, set:function ondrop (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondrop_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ondurationchange", {configurable:true, enumerable:true, get:function ondurationchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondurationchange_get", arguments)}, set:function ondurationchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ondurationchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onemptied", {configurable:true, enumerable:true, get:function onemptied (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onemptied_get", arguments)}, set:function onemptied (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onemptied_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onended", {configurable:true, enumerable:true, get:function onended (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onended_get", arguments)}, set:function onended (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onended_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onfocus", {configurable:true, enumerable:true, get:function onfocus (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onfocus_get", arguments)}, set:function onfocus (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onfocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onformdata", {configurable:true, enumerable:true, get:function onformdata (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onformdata_get", arguments)}, set:function onformdata (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onformdata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oninput", {configurable:true, enumerable:true, get:function oninput (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oninput_get", arguments)}, set:function oninput (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oninput_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oninvalid", {configurable:true, enumerable:true, get:function oninvalid (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oninvalid_get", arguments)}, set:function oninvalid (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oninvalid_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onkeydown", {configurable:true, enumerable:true, get:function onkeydown (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onkeydown_get", arguments)}, set:function onkeydown (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onkeydown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onkeypress", {configurable:true, enumerable:true, get:function onkeypress (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onkeypress_get", arguments)}, set:function onkeypress (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onkeypress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onkeyup", {configurable:true, enumerable:true, get:function onkeyup (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onkeyup_get", arguments)}, set:function onkeyup (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onkeyup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onload", {configurable:true, enumerable:true, get:function onload (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onload_get", arguments)}, set:function onload (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onloadeddata", {configurable:true, enumerable:true, get:function onloadeddata (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onloadeddata_get", arguments)}, set:function onloadeddata (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onloadeddata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onloadedmetadata", {configurable:true, enumerable:true, get:function onloadedmetadata (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onloadedmetadata_get", arguments)}, set:function onloadedmetadata (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onloadedmetadata_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onloadstart", {configurable:true, enumerable:true, get:function onloadstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onloadstart_get", arguments)}, set:function onloadstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onloadstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmousedown", {configurable:true, enumerable:true, get:function onmousedown (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmousedown_get", arguments)}, set:function onmousedown (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmousedown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmouseenter", {configurable:true, enumerable:true, get:function onmouseenter (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseenter_get", arguments)}, set:function onmouseenter (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmouseleave", {configurable:true, enumerable:true, get:function onmouseleave (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseleave_get", arguments)}, set:function onmouseleave (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmousemove", {configurable:true, enumerable:true, get:function onmousemove (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmousemove_get", arguments)}, set:function onmousemove (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmousemove_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmouseout", {configurable:true, enumerable:true, get:function onmouseout (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseout_get", arguments)}, set:function onmouseout (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmouseover", {configurable:true, enumerable:true, get:function onmouseover (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseover_get", arguments)}, set:function onmouseover (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmouseup", {configurable:true, enumerable:true, get:function onmouseup (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseup_get", arguments)}, set:function onmouseup (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmouseup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onmousewheel", {configurable:true, enumerable:true, get:function onmousewheel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmousewheel_get", arguments)}, set:function onmousewheel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onmousewheel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpause", {configurable:true, enumerable:true, get:function onpause (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpause_get", arguments)}, set:function onpause (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpause_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onplay", {configurable:true, enumerable:true, get:function onplay (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onplay_get", arguments)}, set:function onplay (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onplaying", {configurable:true, enumerable:true, get:function onplaying (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onplaying_get", arguments)}, set:function onplaying (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onplaying_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onprogress", {configurable:true, enumerable:true, get:function onprogress (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onprogress_get", arguments)}, set:function onprogress (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onprogress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onratechange", {configurable:true, enumerable:true, get:function onratechange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onratechange_get", arguments)}, set:function onratechange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onratechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onreset", {configurable:true, enumerable:true, get:function onreset (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onreset_get", arguments)}, set:function onreset (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onreset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onresize", {configurable:true, enumerable:true, get:function onresize (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onresize_get", arguments)}, set:function onresize (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onresize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onscroll", {configurable:true, enumerable:true, get:function onscroll (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onscroll_get", arguments)}, set:function onscroll (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onscroll_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onsecuritypolicyviolation", {configurable:true, enumerable:true, get:function onsecuritypolicyviolation (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onsecuritypolicyviolation_get", arguments)}, set:function onsecuritypolicyviolation (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onsecuritypolicyviolation_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onseeked", {configurable:true, enumerable:true, get:function onseeked (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onseeked_get", arguments)}, set:function onseeked (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onseeked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onseeking", {configurable:true, enumerable:true, get:function onseeking (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onseeking_get", arguments)}, set:function onseeking (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onseeking_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onselect", {configurable:true, enumerable:true, get:function onselect (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onselect_get", arguments)}, set:function onselect (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onselect_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onslotchange", {configurable:true, enumerable:true, get:function onslotchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onslotchange_get", arguments)}, set:function onslotchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onslotchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onstalled", {configurable:true, enumerable:true, get:function onstalled (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onstalled_get", arguments)}, set:function onstalled (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onstalled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onsubmit", {configurable:true, enumerable:true, get:function onsubmit (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onsubmit_get", arguments)}, set:function onsubmit (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onsubmit_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onsuspend", {configurable:true, enumerable:true, get:function onsuspend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onsuspend_get", arguments)}, set:function onsuspend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onsuspend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ontimeupdate", {configurable:true, enumerable:true, get:function ontimeupdate (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontimeupdate_get", arguments)}, set:function ontimeupdate (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontimeupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ontoggle", {configurable:true, enumerable:true, get:function ontoggle (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontoggle_get", arguments)}, set:function ontoggle (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontoggle_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onvolumechange", {configurable:true, enumerable:true, get:function onvolumechange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onvolumechange_get", arguments)}, set:function onvolumechange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onvolumechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onwaiting", {configurable:true, enumerable:true, get:function onwaiting (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwaiting_get", arguments)}, set:function onwaiting (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwaiting_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onwebkitanimationend", {configurable:true, enumerable:true, get:function onwebkitanimationend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkitanimationend_get", arguments)}, set:function onwebkitanimationend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkitanimationend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onwebkitanimationiteration", {configurable:true, enumerable:true, get:function onwebkitanimationiteration (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkitanimationiteration_get", arguments)}, set:function onwebkitanimationiteration (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkitanimationiteration_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onwebkitanimationstart", {configurable:true, enumerable:true, get:function onwebkitanimationstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkitanimationstart_get", arguments)}, set:function onwebkitanimationstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkitanimationstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onwebkittransitionend", {configurable:true, enumerable:true, get:function onwebkittransitionend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkittransitionend_get", arguments)}, set:function onwebkittransitionend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwebkittransitionend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onwheel", {configurable:true, enumerable:true, get:function onwheel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwheel_get", arguments)}, set:function onwheel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onwheel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onauxclick", {configurable:true, enumerable:true, get:function onauxclick (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onauxclick_get", arguments)}, set:function onauxclick (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onauxclick_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ongotpointercapture", {configurable:true, enumerable:true, get:function ongotpointercapture (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ongotpointercapture_get", arguments)}, set:function ongotpointercapture (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ongotpointercapture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onlostpointercapture", {configurable:true, enumerable:true, get:function onlostpointercapture (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onlostpointercapture_get", arguments)}, set:function onlostpointercapture (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onlostpointercapture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerdown", {configurable:true, enumerable:true, get:function onpointerdown (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerdown_get", arguments)}, set:function onpointerdown (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerdown_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointermove", {configurable:true, enumerable:true, get:function onpointermove (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointermove_get", arguments)}, set:function onpointermove (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointermove_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerup", {configurable:true, enumerable:true, get:function onpointerup (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerup_get", arguments)}, set:function onpointerup (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerup_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointercancel", {configurable:true, enumerable:true, get:function onpointercancel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointercancel_get", arguments)}, set:function onpointercancel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointercancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerover", {configurable:true, enumerable:true, get:function onpointerover (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerover_get", arguments)}, set:function onpointerover (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerover_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerout", {configurable:true, enumerable:true, get:function onpointerout (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerout_get", arguments)}, set:function onpointerout (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerenter", {configurable:true, enumerable:true, get:function onpointerenter (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerenter_get", arguments)}, set:function onpointerenter (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerenter_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerleave", {configurable:true, enumerable:true, get:function onpointerleave (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerleave_get", arguments)}, set:function onpointerleave (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerleave_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onselectstart", {configurable:true, enumerable:true, get:function onselectstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onselectstart_get", arguments)}, set:function onselectstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onselectstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onselectionchange", {configurable:true, enumerable:true, get:function onselectionchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onselectionchange_get", arguments)}, set:function onselectionchange (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onselectionchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onanimationend", {configurable:true, enumerable:true, get:function onanimationend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onanimationend_get", arguments)}, set:function onanimationend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onanimationend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onanimationiteration", {configurable:true, enumerable:true, get:function onanimationiteration (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onanimationiteration_get", arguments)}, set:function onanimationiteration (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onanimationiteration_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onanimationstart", {configurable:true, enumerable:true, get:function onanimationstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onanimationstart_get", arguments)}, set:function onanimationstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onanimationstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ontransitionrun", {configurable:true, enumerable:true, get:function ontransitionrun (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitionrun_get", arguments)}, set:function ontransitionrun (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitionrun_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ontransitionstart", {configurable:true, enumerable:true, get:function ontransitionstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitionstart_get", arguments)}, set:function ontransitionstart (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitionstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ontransitionend", {configurable:true, enumerable:true, get:function ontransitionend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitionend_get", arguments)}, set:function ontransitionend (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitionend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "ontransitioncancel", {configurable:true, enumerable:true, get:function ontransitioncancel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitioncancel_get", arguments)}, set:function ontransitioncancel (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "ontransitioncancel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncopy", {configurable:true, enumerable:true, get:function oncopy (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncopy_get", arguments)}, set:function oncopy (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncopy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "oncut", {configurable:true, enumerable:true, get:function oncut (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncut_get", arguments)}, set:function oncut (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "oncut_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpaste", {configurable:true, enumerable:true, get:function onpaste (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpaste_get", arguments)}, set:function onpaste (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpaste_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "dataset", {configurable:true, enumerable:true, get:function dataset (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "dataset_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "nonce", {configurable:true, enumerable:true, get:function nonce (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "nonce_get", arguments)}, set:function nonce (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "nonce_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "autofocus", {configurable:true, enumerable:true, get:function autofocus (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "autofocus_get", arguments)}, set:function autofocus (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "autofocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "tabIndex", {configurable:true, enumerable:true, get:function tabIndex (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "tabIndex_get", arguments)}, set:function tabIndex (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "tabIndex_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "style", {configurable:true, enumerable:true, get:function style (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "style_get", arguments)}, set:function style (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "style_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "blur", {configurable:true, enumerable:true, writable:true, value:function blur (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "blur", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "focus", {configurable:true, enumerable:true, writable:true, value:function focus (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "focus", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onpointerrawupdate", {configurable:true, enumerable:true, get:function onpointerrawupdate (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerrawupdate_get", arguments)}, set:function onpointerrawupdate (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onpointerrawupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGElement.prototype, "onbeforematch", {configurable:true, enumerable:true, get:function onbeforematch (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onbeforematch_get", arguments)}, set:function onbeforematch (){return bodavm.toolsFunc.dispatch(this, SVGElement.prototype, "SVGElement", "onbeforematch_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/SVGGElement.js b/env_xbb_lastest_cheerio/env/SVGGElement.js deleted file mode 100644 index 4ff74697..00000000 --- a/env_xbb_lastest_cheerio/env/SVGGElement.js +++ /dev/null @@ -1,5 +0,0 @@ -// SVGGElement对象 -SVGGElement = function SVGGElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGGElement, "SVGGElement"); -SVGGElement.prototype.__proto__=SVGGraphicsElement.prototype; -SVGGElement.__proto__=SVGGraphicsElement; diff --git a/env_xbb_lastest_cheerio/env/SVGGeometryElement.js b/env_xbb_lastest_cheerio/env/SVGGeometryElement.js deleted file mode 100644 index 2a2933e8..00000000 --- a/env_xbb_lastest_cheerio/env/SVGGeometryElement.js +++ /dev/null @@ -1,10 +0,0 @@ -// SVGGeometryElement对象 -SVGGeometryElement = function SVGGeometryElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGGeometryElement, "SVGGeometryElement"); -SVGGeometryElement.prototype.__proto__=SVGGraphicsElement.prototype; -SVGGeometryElement.__proto__=SVGGraphicsElement; -bodavm.toolsFunc.defineProperty(SVGGeometryElement.prototype, "pathLength", {configurable:true, enumerable:true, get:function pathLength (){return bodavm.toolsFunc.dispatch(this, SVGGeometryElement.prototype, "SVGGeometryElement", "pathLength_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGGeometryElement.prototype, "getPointAtLength", {configurable:true, enumerable:true, writable:true, value:function getPointAtLength (){return bodavm.toolsFunc.dispatch(this, SVGGeometryElement.prototype, "SVGGeometryElement", "getPointAtLength", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGGeometryElement.prototype, "getTotalLength", {configurable:true, enumerable:true, writable:true, value:function getTotalLength (){return bodavm.toolsFunc.dispatch(this, SVGGeometryElement.prototype, "SVGGeometryElement", "getTotalLength", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGGeometryElement.prototype, "isPointInFill", {configurable:true, enumerable:true, writable:true, value:function isPointInFill (){return bodavm.toolsFunc.dispatch(this, SVGGeometryElement.prototype, "SVGGeometryElement", "isPointInFill", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGGeometryElement.prototype, "isPointInStroke", {configurable:true, enumerable:true, writable:true, value:function isPointInStroke (){return bodavm.toolsFunc.dispatch(this, SVGGeometryElement.prototype, "SVGGeometryElement", "isPointInStroke", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/SVGGraphicsElement.js b/env_xbb_lastest_cheerio/env/SVGGraphicsElement.js deleted file mode 100644 index a3dbf73f..00000000 --- a/env_xbb_lastest_cheerio/env/SVGGraphicsElement.js +++ /dev/null @@ -1,13 +0,0 @@ -// SVGGraphicsElement对象 -SVGGraphicsElement = function SVGGraphicsElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGGraphicsElement, "SVGGraphicsElement"); -SVGGraphicsElement.prototype.__proto__=SVGElement.prototype; -SVGGraphicsElement.__proto__=SVGElement; -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "transform", {configurable:true, enumerable:true, get:function transform (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "transform_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "nearestViewportElement", {configurable:true, enumerable:true, get:function nearestViewportElement (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "nearestViewportElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "farthestViewportElement", {configurable:true, enumerable:true, get:function farthestViewportElement (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "farthestViewportElement_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "requiredExtensions", {configurable:true, enumerable:true, get:function requiredExtensions (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "requiredExtensions_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "systemLanguage", {configurable:true, enumerable:true, get:function systemLanguage (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "systemLanguage_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "getBBox", {configurable:true, enumerable:true, writable:true, value:function getBBox (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "getBBox", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "getCTM", {configurable:true, enumerable:true, writable:true, value:function getCTM (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "getCTM", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGGraphicsElement.prototype, "getScreenCTM", {configurable:true, enumerable:true, writable:true, value:function getScreenCTM (){return bodavm.toolsFunc.dispatch(this, SVGGraphicsElement.prototype, "SVGGraphicsElement", "getScreenCTM", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/SVGPathElement.js b/env_xbb_lastest_cheerio/env/SVGPathElement.js deleted file mode 100644 index c4edafaf..00000000 --- a/env_xbb_lastest_cheerio/env/SVGPathElement.js +++ /dev/null @@ -1,5 +0,0 @@ -// SVGPathElement对象 -SVGPathElement = function SVGPathElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGPathElement, "SVGPathElement"); -SVGPathElement.prototype.__proto__=SVGGeometryElement.prototype; -SVGPathElement.__proto__=SVGGeometryElement; diff --git a/env_xbb_lastest_cheerio/env/SVGPatternElement.js b/env_xbb_lastest_cheerio/env/SVGPatternElement.js deleted file mode 100644 index 1f76e80e..00000000 --- a/env_xbb_lastest_cheerio/env/SVGPatternElement.js +++ /dev/null @@ -1,17 +0,0 @@ -// SVGPatternElement对象 -SVGPatternElement = function SVGPatternElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGPatternElement, "SVGPatternElement"); -SVGPatternElement.prototype.__proto__=SVGElement.prototype; -SVGPatternElement.__proto__=SVGElement; -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "patternUnits", {configurable:true, enumerable:true, get:function patternUnits (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "patternUnits_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "patternContentUnits", {configurable:true, enumerable:true, get:function patternContentUnits (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "patternContentUnits_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "patternTransform", {configurable:true, enumerable:true, get:function patternTransform (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "patternTransform_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "x", {configurable:true, enumerable:true, get:function x (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "x_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "y", {configurable:true, enumerable:true, get:function y (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "y_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "width_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "height_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "viewBox", {configurable:true, enumerable:true, get:function viewBox (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "viewBox_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "preserveAspectRatio", {configurable:true, enumerable:true, get:function preserveAspectRatio (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "preserveAspectRatio_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "href", {configurable:true, enumerable:true, get:function href (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "href_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "requiredExtensions", {configurable:true, enumerable:true, get:function requiredExtensions (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "requiredExtensions_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGPatternElement.prototype, "systemLanguage", {configurable:true, enumerable:true, get:function systemLanguage (){return bodavm.toolsFunc.dispatch(this, SVGPatternElement.prototype, "SVGPatternElement", "systemLanguage_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/SVGSVGElement.js b/env_xbb_lastest_cheerio/env/SVGSVGElement.js deleted file mode 100644 index aef4b51c..00000000 --- a/env_xbb_lastest_cheerio/env/SVGSVGElement.js +++ /dev/null @@ -1,43 +0,0 @@ -// SVGSVGElement对象 -SVGSVGElement = function SVGSVGElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGSVGElement, "SVGSVGElement"); -SVGSVGElement.prototype.__proto__=SVGGraphicsElement.prototype; -SVGSVGElement.__proto__=SVGGraphicsElement; -bodavm.toolsFunc.defineProperty(SVGSVGElement, "SVG_ZOOMANDPAN_UNKNOWN", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(SVGSVGElement, "SVG_ZOOMANDPAN_DISABLE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(SVGSVGElement, "SVG_ZOOMANDPAN_MAGNIFY", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "x", {configurable:true, enumerable:true, get:function x (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "x_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "y", {configurable:true, enumerable:true, get:function y (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "y_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "width_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "height_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "currentScale", {configurable:true, enumerable:true, get:function currentScale (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "currentScale_get", arguments)}, set:function currentScale (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "currentScale_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "currentTranslate", {configurable:true, enumerable:true, get:function currentTranslate (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "currentTranslate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "viewBox", {configurable:true, enumerable:true, get:function viewBox (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "viewBox_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "preserveAspectRatio", {configurable:true, enumerable:true, get:function preserveAspectRatio (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "preserveAspectRatio_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "zoomAndPan", {configurable:true, enumerable:true, get:function zoomAndPan (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "zoomAndPan_get", arguments)}, set:function zoomAndPan (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "zoomAndPan_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "SVG_ZOOMANDPAN_UNKNOWN", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "SVG_ZOOMANDPAN_DISABLE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "SVG_ZOOMANDPAN_MAGNIFY", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "animationsPaused", {configurable:true, enumerable:true, writable:true, value:function animationsPaused (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "animationsPaused", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "checkEnclosure", {configurable:true, enumerable:true, writable:true, value:function checkEnclosure (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "checkEnclosure", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "checkIntersection", {configurable:true, enumerable:true, writable:true, value:function checkIntersection (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "checkIntersection", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGAngle", {configurable:true, enumerable:true, writable:true, value:function createSVGAngle (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGAngle", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGLength", {configurable:true, enumerable:true, writable:true, value:function createSVGLength (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGLength", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGMatrix", {configurable:true, enumerable:true, writable:true, value:function createSVGMatrix (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGMatrix", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGNumber", {configurable:true, enumerable:true, writable:true, value:function createSVGNumber (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGNumber", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGPoint", {configurable:true, enumerable:true, writable:true, value:function createSVGPoint (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGPoint", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGRect", {configurable:true, enumerable:true, writable:true, value:function createSVGRect (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGRect", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGTransform", {configurable:true, enumerable:true, writable:true, value:function createSVGTransform (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGTransform", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "createSVGTransformFromMatrix", {configurable:true, enumerable:true, writable:true, value:function createSVGTransformFromMatrix (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "createSVGTransformFromMatrix", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "deselectAll", {configurable:true, enumerable:true, writable:true, value:function deselectAll (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "deselectAll", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "forceRedraw", {configurable:true, enumerable:true, writable:true, value:function forceRedraw (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "forceRedraw", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "getCurrentTime", {configurable:true, enumerable:true, writable:true, value:function getCurrentTime (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "getCurrentTime", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "getElementById", {configurable:true, enumerable:true, writable:true, value:function getElementById (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "getElementById", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "getEnclosureList", {configurable:true, enumerable:true, writable:true, value:function getEnclosureList (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "getEnclosureList", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "getIntersectionList", {configurable:true, enumerable:true, writable:true, value:function getIntersectionList (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "getIntersectionList", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "pauseAnimations", {configurable:true, enumerable:true, writable:true, value:function pauseAnimations (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "pauseAnimations", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "setCurrentTime", {configurable:true, enumerable:true, writable:true, value:function setCurrentTime (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "setCurrentTime", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "suspendRedraw", {configurable:true, enumerable:true, writable:true, value:function suspendRedraw (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "suspendRedraw", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "unpauseAnimations", {configurable:true, enumerable:true, writable:true, value:function unpauseAnimations (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "unpauseAnimations", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "unsuspendRedraw", {configurable:true, enumerable:true, writable:true, value:function unsuspendRedraw (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "unsuspendRedraw", arguments)}}); -bodavm.toolsFunc.defineProperty(SVGSVGElement.prototype, "unsuspendRedrawAll", {configurable:true, enumerable:true, writable:true, value:function unsuspendRedrawAll (){return bodavm.toolsFunc.dispatch(this, SVGSVGElement.prototype, "SVGSVGElement", "unsuspendRedrawAll", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/SVGSymbolElement.js b/env_xbb_lastest_cheerio/env/SVGSymbolElement.js deleted file mode 100644 index 9f433100..00000000 --- a/env_xbb_lastest_cheerio/env/SVGSymbolElement.js +++ /dev/null @@ -1,7 +0,0 @@ -// SVGSymbolElement对象 -SVGSymbolElement = function SVGSymbolElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGSymbolElement, "SVGSymbolElement"); -SVGSymbolElement.prototype.__proto__=SVGElement.prototype; -SVGSymbolElement.__proto__=SVGElement; -bodavm.toolsFunc.defineProperty(SVGSymbolElement.prototype, "viewBox", {configurable:true, enumerable:true, get:function viewBox (){return bodavm.toolsFunc.dispatch(this, SVGSymbolElement.prototype, "SVGSymbolElement", "viewBox_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGSymbolElement.prototype, "preserveAspectRatio", {configurable:true, enumerable:true, get:function preserveAspectRatio (){return bodavm.toolsFunc.dispatch(this, SVGSymbolElement.prototype, "SVGSymbolElement", "preserveAspectRatio_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/SVGUseElement.js b/env_xbb_lastest_cheerio/env/SVGUseElement.js deleted file mode 100644 index 317dcb76..00000000 --- a/env_xbb_lastest_cheerio/env/SVGUseElement.js +++ /dev/null @@ -1,10 +0,0 @@ -// SVGUseElement对象 -SVGUseElement = function SVGUseElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SVGUseElement, "SVGUseElement"); -SVGUseElement.prototype.__proto__=SVGGraphicsElement.prototype; -SVGUseElement.__proto__=SVGGraphicsElement; -bodavm.toolsFunc.defineProperty(SVGUseElement.prototype, "x", {configurable:true, enumerable:true, get:function x (){return bodavm.toolsFunc.dispatch(this, SVGUseElement.prototype, "SVGUseElement", "x_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGUseElement.prototype, "y", {configurable:true, enumerable:true, get:function y (){return bodavm.toolsFunc.dispatch(this, SVGUseElement.prototype, "SVGUseElement", "y_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGUseElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, SVGUseElement.prototype, "SVGUseElement", "width_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGUseElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, SVGUseElement.prototype, "SVGUseElement", "height_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SVGUseElement.prototype, "href", {configurable:true, enumerable:true, get:function href (){return bodavm.toolsFunc.dispatch(this, SVGUseElement.prototype, "SVGUseElement", "href_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/Scheduler.js b/env_xbb_lastest_cheerio/env/Scheduler.js deleted file mode 100644 index b656ebad..00000000 --- a/env_xbb_lastest_cheerio/env/Scheduler.js +++ /dev/null @@ -1,9 +0,0 @@ -// Scheduler对象 -Scheduler = function Scheduler(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Scheduler, "Scheduler"); -bodavm.toolsFunc.defineProperty(Scheduler.prototype, "postTask", {configurable:true, enumerable:true, writable:true, value:function postTask (){return bodavm.toolsFunc.dispatch(this, Scheduler.prototype, "Scheduler", "postTask", arguments)}}); - - -// scheduler对象 -var scheduler = {} -scheduler.__proto__=Scheduler.prototype; diff --git a/env_xbb_lastest_cheerio/env/Screen.js b/env_xbb_lastest_cheerio/env/Screen.js deleted file mode 100644 index d6894d99..00000000 --- a/env_xbb_lastest_cheerio/env/Screen.js +++ /dev/null @@ -1,23 +0,0 @@ -// Screen对象 -Screen = function Screen(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(Screen, "Screen"); -Screen.prototype.__proto__=EventTarget.prototype; -Screen.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(Screen.prototype, "availWidth", {configurable:true, enumerable:true, get:function availWidth (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "availWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "availHeight", {configurable:true, enumerable:true, get:function availHeight (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "availHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "width_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "height_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "colorDepth", {configurable:true, enumerable:true, get:function colorDepth (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "colorDepth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "pixelDepth", {configurable:true, enumerable:true, get:function pixelDepth (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "pixelDepth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "availLeft", {configurable:true, enumerable:true, get:function availLeft (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "availLeft_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "availTop", {configurable:true, enumerable:true, get:function availTop (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "availTop_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "orientation", {configurable:true, enumerable:true, get:function orientation (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "orientation_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Screen.prototype, "isExtended", {configurable:true, enumerable:true, get:function isExtended (){return bodavm.toolsFunc.dispatch(this, Screen.prototype, "Screen", "isExtended_get", arguments)}, set:undefined}); -// screen对象 -var screen = {} -screen.__proto__=Screen.prototype; - - - - diff --git a/env_xbb_lastest_cheerio/env/ScreenOrientation.js b/env_xbb_lastest_cheerio/env/ScreenOrientation.js deleted file mode 100644 index c9b84b0e..00000000 --- a/env_xbb_lastest_cheerio/env/ScreenOrientation.js +++ /dev/null @@ -1,10 +0,0 @@ -// ScreenOrientation对象 -ScreenOrientation = function ScreenOrientation(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(ScreenOrientation, "ScreenOrientation"); -ScreenOrientation.prototype.__proto__=EventTarget.prototype; -ScreenOrientation.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(ScreenOrientation.prototype, "angle", {configurable:true, enumerable:true, get:function angle (){return bodavm.toolsFunc.dispatch(this, ScreenOrientation.prototype, "ScreenOrientation", "angle_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(ScreenOrientation.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, ScreenOrientation.prototype, "ScreenOrientation", "type_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(ScreenOrientation.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, ScreenOrientation.prototype, "ScreenOrientation", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, ScreenOrientation.prototype, "ScreenOrientation", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(ScreenOrientation.prototype, "lock", {configurable:true, enumerable:true, writable:true, value:function lock (){return bodavm.toolsFunc.dispatch(this, ScreenOrientation.prototype, "ScreenOrientation", "lock", arguments)}}); -bodavm.toolsFunc.defineProperty(ScreenOrientation.prototype, "unlock", {configurable:true, enumerable:true, writable:true, value:function unlock (){return bodavm.toolsFunc.dispatch(this, ScreenOrientation.prototype, "ScreenOrientation", "unlock", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/SourceBuffer.js b/env_xbb_lastest_cheerio/env/SourceBuffer.js deleted file mode 100644 index 8cae45f3..00000000 --- a/env_xbb_lastest_cheerio/env/SourceBuffer.js +++ /dev/null @@ -1,20 +0,0 @@ -// SourceBuffer对象 -SourceBuffer = function SourceBuffer(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(SourceBuffer, "SourceBuffer"); -SourceBuffer.prototype.__proto__=EventTarget.prototype; -SourceBuffer.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "mode", {configurable:true, enumerable:true, get:function mode (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "mode_get", arguments)}, set:function mode (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "mode_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "updating", {configurable:true, enumerable:true, get:function updating (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "updating_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "buffered", {configurable:true, enumerable:true, get:function buffered (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "buffered_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "timestampOffset", {configurable:true, enumerable:true, get:function timestampOffset (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "timestampOffset_get", arguments)}, set:function timestampOffset (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "timestampOffset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "appendWindowStart", {configurable:true, enumerable:true, get:function appendWindowStart (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "appendWindowStart_get", arguments)}, set:function appendWindowStart (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "appendWindowStart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "appendWindowEnd", {configurable:true, enumerable:true, get:function appendWindowEnd (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "appendWindowEnd_get", arguments)}, set:function appendWindowEnd (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "appendWindowEnd_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "onupdatestart", {configurable:true, enumerable:true, get:function onupdatestart (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onupdatestart_get", arguments)}, set:function onupdatestart (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onupdatestart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "onupdate", {configurable:true, enumerable:true, get:function onupdate (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onupdate_get", arguments)}, set:function onupdate (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onupdate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "onupdateend", {configurable:true, enumerable:true, get:function onupdateend (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onupdateend_get", arguments)}, set:function onupdateend (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onupdateend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "abort", {configurable:true, enumerable:true, writable:true, value:function abort (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "abort", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "appendBuffer", {configurable:true, enumerable:true, writable:true, value:function appendBuffer (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "appendBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "changeType", {configurable:true, enumerable:true, writable:true, value:function changeType (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "changeType", arguments)}}); -bodavm.toolsFunc.defineProperty(SourceBuffer.prototype, "remove", {configurable:true, enumerable:true, writable:true, value:function remove (){return bodavm.toolsFunc.dispatch(this, SourceBuffer.prototype, "SourceBuffer", "remove", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/SpeechSynthesis.js b/env_xbb_lastest_cheerio/env/SpeechSynthesis.js deleted file mode 100644 index 39aa1c4b..00000000 --- a/env_xbb_lastest_cheerio/env/SpeechSynthesis.js +++ /dev/null @@ -1,18 +0,0 @@ -SpeechSynthesis = function SpeechSynthesis() { return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") } -bodavm.toolsFunc.safeProto(SpeechSynthesis, "SpeechSynthesis"); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "cancel", { writable: true, enumerable: true, configurable: true, value: function cancel() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "cancel", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "getVoices", { writable: true, enumerable: true, configurable: true, value: function getVoices() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "getVoices", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "pause", { writable: true, enumerable: true, configurable: true, value: function pause() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "pause", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "resume", { writable: true, enumerable: true, configurable: true, value: function resume() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "resume", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "speak", { writable: true, enumerable: true, configurable: true, value: function speak() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "speak", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "paused", { set: undefined, enumerable: true, configurable: true, get: function paused() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "paused_get ", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "pending", { set: undefined, enumerable: true, configurable: true, get: function pending() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "pending_get ", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "speaking", { set: undefined, enumerable: true, configurable: true, get: function speaking() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "speaking_get ", arguments) } }); -bodavm.toolsFunc.defineProperty(SpeechSynthesis.prototype, "onvoiceschanged", { configurable: true, enumerable: true, get: function onvoiceschanged() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "onvoiceschanged_get ", arguments) }, set: function onvoiceschanged() { return bodavm.toolsFunc.dispatch(this, SpeechSynthesis.prototype, "SpeechSynthesis", "onvoiceschanged_set", arguments) } }); - - -// speechSynthesis对象 -var speechSynthesis = {} -speechSynthesis.__proto__=SpeechSynthesis.prototype; - -delete SpeechSynthesis \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/SpeechSynthesisUtterance.js b/env_xbb_lastest_cheerio/env/SpeechSynthesisUtterance.js deleted file mode 100644 index 74310d7a..00000000 --- a/env_xbb_lastest_cheerio/env/SpeechSynthesisUtterance.js +++ /dev/null @@ -1,18 +0,0 @@ -// SpeechSynthesisUtterance对象 -SpeechSynthesisUtterance = function SpeechSynthesisUtterance(){} -bodavm.toolsFunc.safeProto(SpeechSynthesisUtterance, "SpeechSynthesisUtterance"); -SpeechSynthesisUtterance.prototype.__proto__=EventTarget.prototype; -SpeechSynthesisUtterance.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "text_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "lang", {configurable:true, enumerable:true, get:function lang (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "lang_get", arguments)}, set:function lang (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "lang_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "voice", {configurable:true, enumerable:true, get:function voice (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "voice_get", arguments)}, set:function voice (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "voice_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "volume", {configurable:true, enumerable:true, get:function volume (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "volume_get", arguments)}, set:function volume (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "volume_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "rate", {configurable:true, enumerable:true, get:function rate (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "rate_get", arguments)}, set:function rate (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "rate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "pitch", {configurable:true, enumerable:true, get:function pitch (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "pitch_get", arguments)}, set:function pitch (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "pitch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onstart", {configurable:true, enumerable:true, get:function onstart (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onstart_get", arguments)}, set:function onstart (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onend", {configurable:true, enumerable:true, get:function onend (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onend_get", arguments)}, set:function onend (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onend_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onpause", {configurable:true, enumerable:true, get:function onpause (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onpause_get", arguments)}, set:function onpause (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onpause_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onresume", {configurable:true, enumerable:true, get:function onresume (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onresume_get", arguments)}, set:function onresume (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onresume_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onmark", {configurable:true, enumerable:true, get:function onmark (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onmark_get", arguments)}, set:function onmark (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onmark_set", arguments)}}); -bodavm.toolsFunc.defineProperty(SpeechSynthesisUtterance.prototype, "onboundary", {configurable:true, enumerable:true, get:function onboundary (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onboundary_get", arguments)}, set:function onboundary (){return bodavm.toolsFunc.dispatch(this, SpeechSynthesisUtterance.prototype, "SpeechSynthesisUtterance", "onboundary_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Storage.js b/env_xbb_lastest_cheerio/env/Storage.js deleted file mode 100644 index 896004eb..00000000 --- a/env_xbb_lastest_cheerio/env/Storage.js +++ /dev/null @@ -1,19 +0,0 @@ - -//Storage对象 -Storage=function Storage(){return bodavm.toolsFunc.throwError("TypeError","Illegal constructor")} -bodavm.toolsFunc.safeProto(Storage,"Storage"); -bodavm.toolsFunc.defineProperty(Storage.prototype,"length",{configurable:true, enumerable:true, get:function length () {return bodavm.toolsFunc.dispatch(this,Storage.prototype,"Storage","length_get",arguments,)},set:undefined}); -bodavm.toolsFunc.defineProperty(Storage.prototype,"clear",{configurable:true, enumerable:true, writable:true, value:function clear() {return bodavm.toolsFunc.dispatch(this,Storage.prototype,"Storage","clear",arguments)}}); -bodavm.toolsFunc.defineProperty(Storage.prototype,"getItem",{configurable:true, enumerable:true, writable:true, value:function getItem() {return bodavm.toolsFunc.dispatch(this,Storage.prototype,"Storage","getItem",arguments)}}); -bodavm.toolsFunc.defineProperty(Storage.prototype,"key",{configurable:true, enumerable:true, writable:true, value:function key() {return bodavm.toolsFunc.dispatch(this,Storage.prototype,"Storage","key",arguments)}}); -bodavm.toolsFunc.defineProperty(Storage.prototype,"removeItem",{configurable:true, enumerable:true, writable:true, value:function removeItem() {return bodavm.toolsFunc.dispatch(this,Storage.prototype,"Storage","removeItem",arguments)}}); -bodavm.toolsFunc.defineProperty(Storage.prototype,"setItem",{configurable:true, enumerable:true, writable:true, value:function setItem() {return bodavm.toolsFunc.dispatch(this,Storage.prototype,"Storage","setItem",arguments)}}); - - -var localStorage= {} -localStorage.__proto__=Storage.prototype; -// sessionStorage对象 -var sessionStorage= {} -sessionStorage.__proto__=Storage.prototype; -// debugger; - diff --git a/env_xbb_lastest_cheerio/env/StyleMedia.js b/env_xbb_lastest_cheerio/env/StyleMedia.js deleted file mode 100644 index 65c50fdb..00000000 --- a/env_xbb_lastest_cheerio/env/StyleMedia.js +++ /dev/null @@ -1,9 +0,0 @@ - - -StyleMedia = function StyleMedia() { return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") } -bodavm.toolsFunc.safeProto(StyleMedia, "StyleMedia"); -bodavm.toolsFunc.defineProperty(StyleMedia.prototype, "matchMedium", { configurable: true, enumerable: true, get: function matchMedium() { return bodavm.toolsFunc.dispatch(this, StyleMedia.prototype, "StyleMedia", "matchMedium", arguments) }, set: undefined }); - -// styleMedia对象 -var styleMedia = {} -styleMedia.__proto__=StyleMedia.prototype; diff --git a/env_xbb_lastest_cheerio/env/Text.js b/env_xbb_lastest_cheerio/env/Text.js deleted file mode 100644 index 872ce4f1..00000000 --- a/env_xbb_lastest_cheerio/env/Text.js +++ /dev/null @@ -1,8 +0,0 @@ -// Text对象 -Text = function Text(){} -bodavm.toolsFunc.safeProto(Text, "Text"); -Text.prototype.__proto__=CharacterData.prototype; -Text.__proto__=CharacterData; -bodavm.toolsFunc.defineProperty(Text.prototype, "wholeText", {configurable:true, enumerable:true, get:function wholeText (){return bodavm.toolsFunc.dispatch(this, Text.prototype, "Text", "wholeText_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Text.prototype, "assignedSlot", {configurable:true, enumerable:true, get:function assignedSlot (){return bodavm.toolsFunc.dispatch(this, Text.prototype, "Text", "assignedSlot_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Text.prototype, "splitText", {configurable:true, enumerable:true, writable:true, value:function splitText (){return bodavm.toolsFunc.dispatch(this, Text.prototype, "Text", "splitText", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/TextTrackList.js b/env_xbb_lastest_cheerio/env/TextTrackList.js deleted file mode 100644 index 6c56b665..00000000 --- a/env_xbb_lastest_cheerio/env/TextTrackList.js +++ /dev/null @@ -1,10 +0,0 @@ -// TextTrackList对象 -TextTrackList = function TextTrackList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(TextTrackList, "TextTrackList"); -TextTrackList.prototype.__proto__=EventTarget.prototype; -TextTrackList.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(TextTrackList.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(TextTrackList.prototype, "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "onchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(TextTrackList.prototype, "onaddtrack", {configurable:true, enumerable:true, get:function onaddtrack (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "onaddtrack_get", arguments)}, set:function onaddtrack (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "onaddtrack_set", arguments)}}); -bodavm.toolsFunc.defineProperty(TextTrackList.prototype, "onremovetrack", {configurable:true, enumerable:true, get:function onremovetrack (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "onremovetrack_get", arguments)}, set:function onremovetrack (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "onremovetrack_set", arguments)}}); -bodavm.toolsFunc.defineProperty(TextTrackList.prototype, "getTrackById", {configurable:true, enumerable:true, writable:true, value:function getTrackById (){return bodavm.toolsFunc.dispatch(this, TextTrackList.prototype, "TextTrackList", "getTrackById", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/TrustedTypePolicyFactory.js b/env_xbb_lastest_cheerio/env/TrustedTypePolicyFactory.js deleted file mode 100644 index 774ad523..00000000 --- a/env_xbb_lastest_cheerio/env/TrustedTypePolicyFactory.js +++ /dev/null @@ -1,19 +0,0 @@ -// TrustedTypePolicyFactory对象 -TrustedTypePolicyFactory = function TrustedTypePolicyFactory(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(TrustedTypePolicyFactory, "TrustedTypePolicyFactory"); -TrustedTypePolicyFactory.prototype.__proto__=EventTarget.prototype; -TrustedTypePolicyFactory.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "emptyHTML", {configurable:true, enumerable:true, get:function emptyHTML (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "emptyHTML_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "emptyScript", {configurable:true, enumerable:true, get:function emptyScript (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "emptyScript_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "defaultPolicy", {configurable:true, enumerable:true, get:function defaultPolicy (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "defaultPolicy_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "createPolicy", {configurable:true, enumerable:true, writable:true, value:function createPolicy (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "createPolicy", arguments)}}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "getAttributeType", {configurable:true, enumerable:true, writable:true, value:function getAttributeType (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "getAttributeType", arguments)}}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "getPropertyType", {configurable:true, enumerable:true, writable:true, value:function getPropertyType (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "getPropertyType", arguments)}}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "getTypeMapping", {configurable:true, enumerable:true, writable:true, value:function getTypeMapping (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "getTypeMapping", arguments)}}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "isHTML", {configurable:true, enumerable:true, writable:true, value:function isHTML (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "isHTML", arguments)}}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "isScript", {configurable:true, enumerable:true, writable:true, value:function isScript (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "isScript", arguments)}}); -bodavm.toolsFunc.defineProperty(TrustedTypePolicyFactory.prototype, "isScriptURL", {configurable:true, enumerable:true, writable:true, value:function isScriptURL (){return bodavm.toolsFunc.dispatch(this, TrustedTypePolicyFactory.prototype, "TrustedTypePolicyFactory", "isScriptURL", arguments)}}); - -var trustedTypes = {} -trustedTypes.__proto__ = TrustedTypePolicyFactory.prototype - diff --git a/env_xbb_lastest_cheerio/env/UIEvent.js b/env_xbb_lastest_cheerio/env/UIEvent.js deleted file mode 100644 index 53f45917..00000000 --- a/env_xbb_lastest_cheerio/env/UIEvent.js +++ /dev/null @@ -1,15 +0,0 @@ -//UIEvent对象 -UIEvent = function UIEvent() { - if (arguments.length < 1) { - return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'UIEvent': 1 argument required, but only 0 present.") - } - -} -bodavm.toolsFunc.safeProto(UIEvent, "UIEvent"); -UIEvent.prototype.__proto__ = Event.prototype; -UIEvent.__proto__ = Event; -bodavm.toolsFunc.defineProperty(UIEvent.prototype, "view", { configurable: true, enumerable: true, get: function view() { return bodavm.toolsFunc.dispatch(this, UIEvent.prototype, "UIEvent", "view_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(UIEvent.prototype, "detail", { configurable: true, enumerable: true, get: function detail() { return bodavm.toolsFunc.dispatch(this, UIEvent.prototype, "UIEvent", "detail_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(UIEvent.prototype, "sourceCapabilities", { configurable: true, enumerable: true, get: function sourceCapabilities() { return bodavm.toolsFunc.dispatch(this, UIEvent.prototype, "UIEvent", "sourceCapabilities_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(UIEvent.prototype, "which", { configurable: true, enumerable: true, get: function which() { return bodavm.toolsFunc.dispatch(this, UIEvent.prototype, "UIEvent", "which_get", arguments) }, set: undefined }); -bodavm.toolsFunc.defineProperty(UIEvent.prototype, "initUIEvent", { configurable: true, enumerable: true, writable: true, value: function initUIEvent() { return bodavm.toolsFunc.dispatch(this, UIEvent.prototype, "UIEvent", "initUIEvent", arguments) } }); diff --git a/env_xbb_lastest_cheerio/env/VisualViewport.js b/env_xbb_lastest_cheerio/env/VisualViewport.js deleted file mode 100644 index d2f315ca..00000000 --- a/env_xbb_lastest_cheerio/env/VisualViewport.js +++ /dev/null @@ -1,17 +0,0 @@ -// VisualViewport对象 -VisualViewport = function VisualViewport(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(VisualViewport, "VisualViewport"); -VisualViewport.prototype.__proto__=EventTarget.prototype; -VisualViewport.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "offsetLeft", {configurable:true, enumerable:true, get:function offsetLeft (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "offsetLeft_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "offsetTop", {configurable:true, enumerable:true, get:function offsetTop (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "offsetTop_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "pageLeft", {configurable:true, enumerable:true, get:function pageLeft (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "pageLeft_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "pageTop", {configurable:true, enumerable:true, get:function pageTop (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "pageTop_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "width_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "height_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "scale", {configurable:true, enumerable:true, get:function scale (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "scale_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "onresize", {configurable:true, enumerable:true, get:function onresize (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "onresize_get", arguments)}, set:function onresize (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "onresize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(VisualViewport.prototype, "onscroll", {configurable:true, enumerable:true, get:function onscroll (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "onscroll_get", arguments)}, set:function onscroll (){return bodavm.toolsFunc.dispatch(this, VisualViewport.prototype, "VisualViewport", "onscroll_set", arguments)}}); - -var visualViewport={} -visualViewport.__proto__ = VisualViewport.prototype \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/env/WebGLBuffer.js b/env_xbb_lastest_cheerio/env/WebGLBuffer.js deleted file mode 100644 index 1112c25c..00000000 --- a/env_xbb_lastest_cheerio/env/WebGLBuffer.js +++ /dev/null @@ -1,3 +0,0 @@ -// WebGLBuffer对象 -WebGLBuffer = function WebGLBuffer(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(WebGLBuffer, "WebGLBuffer"); diff --git a/env_xbb_lastest_cheerio/env/WebGLProgram.js b/env_xbb_lastest_cheerio/env/WebGLProgram.js deleted file mode 100644 index 91512f29..00000000 --- a/env_xbb_lastest_cheerio/env/WebGLProgram.js +++ /dev/null @@ -1,3 +0,0 @@ -// WebGLProgram对象 -WebGLProgram = function WebGLProgram(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(WebGLProgram, "WebGLProgram"); diff --git a/env_xbb_lastest_cheerio/env/WebGLRenderingContext.js b/env_xbb_lastest_cheerio/env/WebGLRenderingContext.js deleted file mode 100644 index 648ea634..00000000 --- a/env_xbb_lastest_cheerio/env/WebGLRenderingContext.js +++ /dev/null @@ -1,735 +0,0 @@ -// WebGLRenderingContext对象 -WebGLRenderingContext = function WebGLRenderingContext(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(WebGLRenderingContext, "WebGLRenderingContext"); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_BUFFER_BIT", {configurable:false, enumerable:true, writable:false, value:256}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BUFFER_BIT", {configurable:false, enumerable:true, writable:false, value:1024}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "COLOR_BUFFER_BIT", {configurable:false, enumerable:true, writable:false, value:16384}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "POINTS", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINES", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINE_LOOP", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINE_STRIP", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TRIANGLES", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TRIANGLE_STRIP", {configurable:false, enumerable:true, writable:false, value:5}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TRIANGLE_FAN", {configurable:false, enumerable:true, writable:false, value:6}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ZERO", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SRC_COLOR", {configurable:false, enumerable:true, writable:false, value:768}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE_MINUS_SRC_COLOR", {configurable:false, enumerable:true, writable:false, value:769}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SRC_ALPHA", {configurable:false, enumerable:true, writable:false, value:770}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE_MINUS_SRC_ALPHA", {configurable:false, enumerable:true, writable:false, value:771}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DST_ALPHA", {configurable:false, enumerable:true, writable:false, value:772}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE_MINUS_DST_ALPHA", {configurable:false, enumerable:true, writable:false, value:773}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DST_COLOR", {configurable:false, enumerable:true, writable:false, value:774}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE_MINUS_DST_COLOR", {configurable:false, enumerable:true, writable:false, value:775}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SRC_ALPHA_SATURATE", {configurable:false, enumerable:true, writable:false, value:776}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FUNC_ADD", {configurable:false, enumerable:true, writable:false, value:32774}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_EQUATION", {configurable:false, enumerable:true, writable:false, value:32777}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_EQUATION_RGB", {configurable:false, enumerable:true, writable:false, value:32777}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_EQUATION_ALPHA", {configurable:false, enumerable:true, writable:false, value:34877}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FUNC_SUBTRACT", {configurable:false, enumerable:true, writable:false, value:32778}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FUNC_REVERSE_SUBTRACT", {configurable:false, enumerable:true, writable:false, value:32779}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_DST_RGB", {configurable:false, enumerable:true, writable:false, value:32968}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_SRC_RGB", {configurable:false, enumerable:true, writable:false, value:32969}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_DST_ALPHA", {configurable:false, enumerable:true, writable:false, value:32970}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_SRC_ALPHA", {configurable:false, enumerable:true, writable:false, value:32971}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CONSTANT_COLOR", {configurable:false, enumerable:true, writable:false, value:32769}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE_MINUS_CONSTANT_COLOR", {configurable:false, enumerable:true, writable:false, value:32770}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CONSTANT_ALPHA", {configurable:false, enumerable:true, writable:false, value:32771}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ONE_MINUS_CONSTANT_ALPHA", {configurable:false, enumerable:true, writable:false, value:32772}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND_COLOR", {configurable:false, enumerable:true, writable:false, value:32773}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ARRAY_BUFFER", {configurable:false, enumerable:true, writable:false, value:34962}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ELEMENT_ARRAY_BUFFER", {configurable:false, enumerable:true, writable:false, value:34963}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ARRAY_BUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:34964}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ELEMENT_ARRAY_BUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:34965}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STREAM_DRAW", {configurable:false, enumerable:true, writable:false, value:35040}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STATIC_DRAW", {configurable:false, enumerable:true, writable:false, value:35044}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DYNAMIC_DRAW", {configurable:false, enumerable:true, writable:false, value:35048}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BUFFER_SIZE", {configurable:false, enumerable:true, writable:false, value:34660}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BUFFER_USAGE", {configurable:false, enumerable:true, writable:false, value:34661}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CURRENT_VERTEX_ATTRIB", {configurable:false, enumerable:true, writable:false, value:34342}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRONT", {configurable:false, enumerable:true, writable:false, value:1028}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BACK", {configurable:false, enumerable:true, writable:false, value:1029}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRONT_AND_BACK", {configurable:false, enumerable:true, writable:false, value:1032}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_2D", {configurable:false, enumerable:true, writable:false, value:3553}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CULL_FACE", {configurable:false, enumerable:true, writable:false, value:2884}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLEND", {configurable:false, enumerable:true, writable:false, value:3042}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DITHER", {configurable:false, enumerable:true, writable:false, value:3024}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_TEST", {configurable:false, enumerable:true, writable:false, value:2960}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_TEST", {configurable:false, enumerable:true, writable:false, value:2929}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SCISSOR_TEST", {configurable:false, enumerable:true, writable:false, value:3089}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "POLYGON_OFFSET_FILL", {configurable:false, enumerable:true, writable:false, value:32823}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLE_ALPHA_TO_COVERAGE", {configurable:false, enumerable:true, writable:false, value:32926}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLE_COVERAGE", {configurable:false, enumerable:true, writable:false, value:32928}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NO_ERROR", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INVALID_ENUM", {configurable:false, enumerable:true, writable:false, value:1280}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INVALID_VALUE", {configurable:false, enumerable:true, writable:false, value:1281}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INVALID_OPERATION", {configurable:false, enumerable:true, writable:false, value:1282}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "OUT_OF_MEMORY", {configurable:false, enumerable:true, writable:false, value:1285}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CW", {configurable:false, enumerable:true, writable:false, value:2304}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CCW", {configurable:false, enumerable:true, writable:false, value:2305}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINE_WIDTH", {configurable:false, enumerable:true, writable:false, value:2849}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ALIASED_POINT_SIZE_RANGE", {configurable:false, enumerable:true, writable:false, value:33901}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ALIASED_LINE_WIDTH_RANGE", {configurable:false, enumerable:true, writable:false, value:33902}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CULL_FACE_MODE", {configurable:false, enumerable:true, writable:false, value:2885}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRONT_FACE", {configurable:false, enumerable:true, writable:false, value:2886}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_RANGE", {configurable:false, enumerable:true, writable:false, value:2928}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:2930}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_CLEAR_VALUE", {configurable:false, enumerable:true, writable:false, value:2931}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_FUNC", {configurable:false, enumerable:true, writable:false, value:2932}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_CLEAR_VALUE", {configurable:false, enumerable:true, writable:false, value:2961}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_FUNC", {configurable:false, enumerable:true, writable:false, value:2962}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_FAIL", {configurable:false, enumerable:true, writable:false, value:2964}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_PASS_DEPTH_FAIL", {configurable:false, enumerable:true, writable:false, value:2965}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_PASS_DEPTH_PASS", {configurable:false, enumerable:true, writable:false, value:2966}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_REF", {configurable:false, enumerable:true, writable:false, value:2967}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_VALUE_MASK", {configurable:false, enumerable:true, writable:false, value:2963}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:2968}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_FUNC", {configurable:false, enumerable:true, writable:false, value:34816}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_FAIL", {configurable:false, enumerable:true, writable:false, value:34817}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_PASS_DEPTH_FAIL", {configurable:false, enumerable:true, writable:false, value:34818}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_PASS_DEPTH_PASS", {configurable:false, enumerable:true, writable:false, value:34819}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_REF", {configurable:false, enumerable:true, writable:false, value:36003}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_VALUE_MASK", {configurable:false, enumerable:true, writable:false, value:36004}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BACK_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:36005}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VIEWPORT", {configurable:false, enumerable:true, writable:false, value:2978}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SCISSOR_BOX", {configurable:false, enumerable:true, writable:false, value:3088}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "COLOR_CLEAR_VALUE", {configurable:false, enumerable:true, writable:false, value:3106}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "COLOR_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:3107}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNPACK_ALIGNMENT", {configurable:false, enumerable:true, writable:false, value:3317}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "PACK_ALIGNMENT", {configurable:false, enumerable:true, writable:false, value:3333}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_TEXTURE_SIZE", {configurable:false, enumerable:true, writable:false, value:3379}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_VIEWPORT_DIMS", {configurable:false, enumerable:true, writable:false, value:3386}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SUBPIXEL_BITS", {configurable:false, enumerable:true, writable:false, value:3408}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RED_BITS", {configurable:false, enumerable:true, writable:false, value:3410}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "GREEN_BITS", {configurable:false, enumerable:true, writable:false, value:3411}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BLUE_BITS", {configurable:false, enumerable:true, writable:false, value:3412}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ALPHA_BITS", {configurable:false, enumerable:true, writable:false, value:3413}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_BITS", {configurable:false, enumerable:true, writable:false, value:3414}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_BITS", {configurable:false, enumerable:true, writable:false, value:3415}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "POLYGON_OFFSET_UNITS", {configurable:false, enumerable:true, writable:false, value:10752}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "POLYGON_OFFSET_FACTOR", {configurable:false, enumerable:true, writable:false, value:32824}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_BINDING_2D", {configurable:false, enumerable:true, writable:false, value:32873}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLE_BUFFERS", {configurable:false, enumerable:true, writable:false, value:32936}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLES", {configurable:false, enumerable:true, writable:false, value:32937}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLE_COVERAGE_VALUE", {configurable:false, enumerable:true, writable:false, value:32938}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLE_COVERAGE_INVERT", {configurable:false, enumerable:true, writable:false, value:32939}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "COMPRESSED_TEXTURE_FORMATS", {configurable:false, enumerable:true, writable:false, value:34467}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DONT_CARE", {configurable:false, enumerable:true, writable:false, value:4352}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FASTEST", {configurable:false, enumerable:true, writable:false, value:4353}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NICEST", {configurable:false, enumerable:true, writable:false, value:4354}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "GENERATE_MIPMAP_HINT", {configurable:false, enumerable:true, writable:false, value:33170}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BYTE", {configurable:false, enumerable:true, writable:false, value:5120}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNSIGNED_BYTE", {configurable:false, enumerable:true, writable:false, value:5121}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SHORT", {configurable:false, enumerable:true, writable:false, value:5122}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNSIGNED_SHORT", {configurable:false, enumerable:true, writable:false, value:5123}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INT", {configurable:false, enumerable:true, writable:false, value:5124}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNSIGNED_INT", {configurable:false, enumerable:true, writable:false, value:5125}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT", {configurable:false, enumerable:true, writable:false, value:5126}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_COMPONENT", {configurable:false, enumerable:true, writable:false, value:6402}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ALPHA", {configurable:false, enumerable:true, writable:false, value:6406}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RGB", {configurable:false, enumerable:true, writable:false, value:6407}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RGBA", {configurable:false, enumerable:true, writable:false, value:6408}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LUMINANCE", {configurable:false, enumerable:true, writable:false, value:6409}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LUMINANCE_ALPHA", {configurable:false, enumerable:true, writable:false, value:6410}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNSIGNED_SHORT_4_4_4_4", {configurable:false, enumerable:true, writable:false, value:32819}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNSIGNED_SHORT_5_5_5_1", {configurable:false, enumerable:true, writable:false, value:32820}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNSIGNED_SHORT_5_6_5", {configurable:false, enumerable:true, writable:false, value:33635}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAGMENT_SHADER", {configurable:false, enumerable:true, writable:false, value:35632}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_SHADER", {configurable:false, enumerable:true, writable:false, value:35633}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_VERTEX_ATTRIBS", {configurable:false, enumerable:true, writable:false, value:34921}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_VERTEX_UNIFORM_VECTORS", {configurable:false, enumerable:true, writable:false, value:36347}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_VARYING_VECTORS", {configurable:false, enumerable:true, writable:false, value:36348}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_COMBINED_TEXTURE_IMAGE_UNITS", {configurable:false, enumerable:true, writable:false, value:35661}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_VERTEX_TEXTURE_IMAGE_UNITS", {configurable:false, enumerable:true, writable:false, value:35660}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_TEXTURE_IMAGE_UNITS", {configurable:false, enumerable:true, writable:false, value:34930}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_FRAGMENT_UNIFORM_VECTORS", {configurable:false, enumerable:true, writable:false, value:36349}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SHADER_TYPE", {configurable:false, enumerable:true, writable:false, value:35663}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DELETE_STATUS", {configurable:false, enumerable:true, writable:false, value:35712}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINK_STATUS", {configurable:false, enumerable:true, writable:false, value:35714}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VALIDATE_STATUS", {configurable:false, enumerable:true, writable:false, value:35715}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ATTACHED_SHADERS", {configurable:false, enumerable:true, writable:false, value:35717}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ACTIVE_UNIFORMS", {configurable:false, enumerable:true, writable:false, value:35718}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ACTIVE_ATTRIBUTES", {configurable:false, enumerable:true, writable:false, value:35721}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SHADING_LANGUAGE_VERSION", {configurable:false, enumerable:true, writable:false, value:35724}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CURRENT_PROGRAM", {configurable:false, enumerable:true, writable:false, value:35725}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NEVER", {configurable:false, enumerable:true, writable:false, value:512}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LESS", {configurable:false, enumerable:true, writable:false, value:513}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "EQUAL", {configurable:false, enumerable:true, writable:false, value:514}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LEQUAL", {configurable:false, enumerable:true, writable:false, value:515}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "GREATER", {configurable:false, enumerable:true, writable:false, value:516}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NOTEQUAL", {configurable:false, enumerable:true, writable:false, value:517}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "GEQUAL", {configurable:false, enumerable:true, writable:false, value:518}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ALWAYS", {configurable:false, enumerable:true, writable:false, value:519}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "KEEP", {configurable:false, enumerable:true, writable:false, value:7680}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "REPLACE", {configurable:false, enumerable:true, writable:false, value:7681}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INCR", {configurable:false, enumerable:true, writable:false, value:7682}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DECR", {configurable:false, enumerable:true, writable:false, value:7683}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INVERT", {configurable:false, enumerable:true, writable:false, value:5386}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INCR_WRAP", {configurable:false, enumerable:true, writable:false, value:34055}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DECR_WRAP", {configurable:false, enumerable:true, writable:false, value:34056}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VENDOR", {configurable:false, enumerable:true, writable:false, value:7936}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERER", {configurable:false, enumerable:true, writable:false, value:7937}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERSION", {configurable:false, enumerable:true, writable:false, value:7938}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NEAREST", {configurable:false, enumerable:true, writable:false, value:9728}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINEAR", {configurable:false, enumerable:true, writable:false, value:9729}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NEAREST_MIPMAP_NEAREST", {configurable:false, enumerable:true, writable:false, value:9984}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINEAR_MIPMAP_NEAREST", {configurable:false, enumerable:true, writable:false, value:9985}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NEAREST_MIPMAP_LINEAR", {configurable:false, enumerable:true, writable:false, value:9986}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LINEAR_MIPMAP_LINEAR", {configurable:false, enumerable:true, writable:false, value:9987}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_MAG_FILTER", {configurable:false, enumerable:true, writable:false, value:10240}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_MIN_FILTER", {configurable:false, enumerable:true, writable:false, value:10241}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_WRAP_S", {configurable:false, enumerable:true, writable:false, value:10242}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_WRAP_T", {configurable:false, enumerable:true, writable:false, value:10243}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE", {configurable:false, enumerable:true, writable:false, value:5890}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP", {configurable:false, enumerable:true, writable:false, value:34067}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_BINDING_CUBE_MAP", {configurable:false, enumerable:true, writable:false, value:34068}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP_POSITIVE_X", {configurable:false, enumerable:true, writable:false, value:34069}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP_NEGATIVE_X", {configurable:false, enumerable:true, writable:false, value:34070}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP_POSITIVE_Y", {configurable:false, enumerable:true, writable:false, value:34071}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP_NEGATIVE_Y", {configurable:false, enumerable:true, writable:false, value:34072}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP_POSITIVE_Z", {configurable:false, enumerable:true, writable:false, value:34073}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE_CUBE_MAP_NEGATIVE_Z", {configurable:false, enumerable:true, writable:false, value:34074}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_CUBE_MAP_TEXTURE_SIZE", {configurable:false, enumerable:true, writable:false, value:34076}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE0", {configurable:false, enumerable:true, writable:false, value:33984}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE1", {configurable:false, enumerable:true, writable:false, value:33985}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE2", {configurable:false, enumerable:true, writable:false, value:33986}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE3", {configurable:false, enumerable:true, writable:false, value:33987}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE4", {configurable:false, enumerable:true, writable:false, value:33988}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE5", {configurable:false, enumerable:true, writable:false, value:33989}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE6", {configurable:false, enumerable:true, writable:false, value:33990}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE7", {configurable:false, enumerable:true, writable:false, value:33991}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE8", {configurable:false, enumerable:true, writable:false, value:33992}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE9", {configurable:false, enumerable:true, writable:false, value:33993}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE10", {configurable:false, enumerable:true, writable:false, value:33994}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE11", {configurable:false, enumerable:true, writable:false, value:33995}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE12", {configurable:false, enumerable:true, writable:false, value:33996}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE13", {configurable:false, enumerable:true, writable:false, value:33997}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE14", {configurable:false, enumerable:true, writable:false, value:33998}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE15", {configurable:false, enumerable:true, writable:false, value:33999}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE16", {configurable:false, enumerable:true, writable:false, value:34000}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE17", {configurable:false, enumerable:true, writable:false, value:34001}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE18", {configurable:false, enumerable:true, writable:false, value:34002}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE19", {configurable:false, enumerable:true, writable:false, value:34003}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE20", {configurable:false, enumerable:true, writable:false, value:34004}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE21", {configurable:false, enumerable:true, writable:false, value:34005}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE22", {configurable:false, enumerable:true, writable:false, value:34006}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE23", {configurable:false, enumerable:true, writable:false, value:34007}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE24", {configurable:false, enumerable:true, writable:false, value:34008}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE25", {configurable:false, enumerable:true, writable:false, value:34009}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE26", {configurable:false, enumerable:true, writable:false, value:34010}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE27", {configurable:false, enumerable:true, writable:false, value:34011}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE28", {configurable:false, enumerable:true, writable:false, value:34012}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE29", {configurable:false, enumerable:true, writable:false, value:34013}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE30", {configurable:false, enumerable:true, writable:false, value:34014}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "TEXTURE31", {configurable:false, enumerable:true, writable:false, value:34015}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "ACTIVE_TEXTURE", {configurable:false, enumerable:true, writable:false, value:34016}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "REPEAT", {configurable:false, enumerable:true, writable:false, value:10497}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CLAMP_TO_EDGE", {configurable:false, enumerable:true, writable:false, value:33071}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MIRRORED_REPEAT", {configurable:false, enumerable:true, writable:false, value:33648}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT_VEC2", {configurable:false, enumerable:true, writable:false, value:35664}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT_VEC3", {configurable:false, enumerable:true, writable:false, value:35665}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT_VEC4", {configurable:false, enumerable:true, writable:false, value:35666}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INT_VEC2", {configurable:false, enumerable:true, writable:false, value:35667}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INT_VEC3", {configurable:false, enumerable:true, writable:false, value:35668}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INT_VEC4", {configurable:false, enumerable:true, writable:false, value:35669}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BOOL", {configurable:false, enumerable:true, writable:false, value:35670}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BOOL_VEC2", {configurable:false, enumerable:true, writable:false, value:35671}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BOOL_VEC3", {configurable:false, enumerable:true, writable:false, value:35672}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BOOL_VEC4", {configurable:false, enumerable:true, writable:false, value:35673}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT_MAT2", {configurable:false, enumerable:true, writable:false, value:35674}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT_MAT3", {configurable:false, enumerable:true, writable:false, value:35675}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FLOAT_MAT4", {configurable:false, enumerable:true, writable:false, value:35676}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLER_2D", {configurable:false, enumerable:true, writable:false, value:35678}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "SAMPLER_CUBE", {configurable:false, enumerable:true, writable:false, value:35680}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_ENABLED", {configurable:false, enumerable:true, writable:false, value:34338}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_SIZE", {configurable:false, enumerable:true, writable:false, value:34339}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_STRIDE", {configurable:false, enumerable:true, writable:false, value:34340}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_TYPE", {configurable:false, enumerable:true, writable:false, value:34341}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_NORMALIZED", {configurable:false, enumerable:true, writable:false, value:34922}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_POINTER", {configurable:false, enumerable:true, writable:false, value:34373}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:34975}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "IMPLEMENTATION_COLOR_READ_TYPE", {configurable:false, enumerable:true, writable:false, value:35738}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "IMPLEMENTATION_COLOR_READ_FORMAT", {configurable:false, enumerable:true, writable:false, value:35739}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "COMPILE_STATUS", {configurable:false, enumerable:true, writable:false, value:35713}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LOW_FLOAT", {configurable:false, enumerable:true, writable:false, value:36336}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MEDIUM_FLOAT", {configurable:false, enumerable:true, writable:false, value:36337}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "HIGH_FLOAT", {configurable:false, enumerable:true, writable:false, value:36338}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "LOW_INT", {configurable:false, enumerable:true, writable:false, value:36339}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MEDIUM_INT", {configurable:false, enumerable:true, writable:false, value:36340}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "HIGH_INT", {configurable:false, enumerable:true, writable:false, value:36341}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER", {configurable:false, enumerable:true, writable:false, value:36160}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER", {configurable:false, enumerable:true, writable:false, value:36161}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RGBA4", {configurable:false, enumerable:true, writable:false, value:32854}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RGB5_A1", {configurable:false, enumerable:true, writable:false, value:32855}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RGB565", {configurable:false, enumerable:true, writable:false, value:36194}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_COMPONENT16", {configurable:false, enumerable:true, writable:false, value:33189}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_INDEX8", {configurable:false, enumerable:true, writable:false, value:36168}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_STENCIL", {configurable:false, enumerable:true, writable:false, value:34041}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_WIDTH", {configurable:false, enumerable:true, writable:false, value:36162}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_HEIGHT", {configurable:false, enumerable:true, writable:false, value:36163}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_INTERNAL_FORMAT", {configurable:false, enumerable:true, writable:false, value:36164}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_RED_SIZE", {configurable:false, enumerable:true, writable:false, value:36176}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_GREEN_SIZE", {configurable:false, enumerable:true, writable:false, value:36177}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_BLUE_SIZE", {configurable:false, enumerable:true, writable:false, value:36178}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_ALPHA_SIZE", {configurable:false, enumerable:true, writable:false, value:36179}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_DEPTH_SIZE", {configurable:false, enumerable:true, writable:false, value:36180}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_STENCIL_SIZE", {configurable:false, enumerable:true, writable:false, value:36181}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", {configurable:false, enumerable:true, writable:false, value:36048}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", {configurable:false, enumerable:true, writable:false, value:36049}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", {configurable:false, enumerable:true, writable:false, value:36050}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", {configurable:false, enumerable:true, writable:false, value:36051}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "COLOR_ATTACHMENT0", {configurable:false, enumerable:true, writable:false, value:36064}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36096}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "STENCIL_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36128}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "DEPTH_STENCIL_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:33306}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "NONE", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_COMPLETE", {configurable:false, enumerable:true, writable:false, value:36053}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36054}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36055}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", {configurable:false, enumerable:true, writable:false, value:36057}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_UNSUPPORTED", {configurable:false, enumerable:true, writable:false, value:36061}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "FRAMEBUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:36006}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "RENDERBUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:36007}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "MAX_RENDERBUFFER_SIZE", {configurable:false, enumerable:true, writable:false, value:34024}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "INVALID_FRAMEBUFFER_OPERATION", {configurable:false, enumerable:true, writable:false, value:1286}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNPACK_FLIP_Y_WEBGL", {configurable:false, enumerable:true, writable:false, value:37440}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNPACK_PREMULTIPLY_ALPHA_WEBGL", {configurable:false, enumerable:true, writable:false, value:37441}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "CONTEXT_LOST_WEBGL", {configurable:false, enumerable:true, writable:false, value:37442}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "UNPACK_COLORSPACE_CONVERSION_WEBGL", {configurable:false, enumerable:true, writable:false, value:37443}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext, "BROWSER_DEFAULT_WEBGL", {configurable:false, enumerable:true, writable:false, value:37444}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "canvas", {configurable:true, enumerable:true, get:function canvas (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "canvas_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "drawingBufferWidth", {configurable:true, enumerable:true, get:function drawingBufferWidth (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "drawingBufferWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "drawingBufferHeight", {configurable:true, enumerable:true, get:function drawingBufferHeight (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "drawingBufferHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_BUFFER_BIT", {configurable:false, enumerable:true, writable:false, value:256}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BUFFER_BIT", {configurable:false, enumerable:true, writable:false, value:1024}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "COLOR_BUFFER_BIT", {configurable:false, enumerable:true, writable:false, value:16384}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "POINTS", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINES", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINE_LOOP", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINE_STRIP", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TRIANGLES", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TRIANGLE_STRIP", {configurable:false, enumerable:true, writable:false, value:5}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TRIANGLE_FAN", {configurable:false, enumerable:true, writable:false, value:6}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ZERO", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SRC_COLOR", {configurable:false, enumerable:true, writable:false, value:768}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE_MINUS_SRC_COLOR", {configurable:false, enumerable:true, writable:false, value:769}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SRC_ALPHA", {configurable:false, enumerable:true, writable:false, value:770}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE_MINUS_SRC_ALPHA", {configurable:false, enumerable:true, writable:false, value:771}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DST_ALPHA", {configurable:false, enumerable:true, writable:false, value:772}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE_MINUS_DST_ALPHA", {configurable:false, enumerable:true, writable:false, value:773}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DST_COLOR", {configurable:false, enumerable:true, writable:false, value:774}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE_MINUS_DST_COLOR", {configurable:false, enumerable:true, writable:false, value:775}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SRC_ALPHA_SATURATE", {configurable:false, enumerable:true, writable:false, value:776}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FUNC_ADD", {configurable:false, enumerable:true, writable:false, value:32774}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_EQUATION", {configurable:false, enumerable:true, writable:false, value:32777}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_EQUATION_RGB", {configurable:false, enumerable:true, writable:false, value:32777}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_EQUATION_ALPHA", {configurable:false, enumerable:true, writable:false, value:34877}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FUNC_SUBTRACT", {configurable:false, enumerable:true, writable:false, value:32778}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FUNC_REVERSE_SUBTRACT", {configurable:false, enumerable:true, writable:false, value:32779}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_DST_RGB", {configurable:false, enumerable:true, writable:false, value:32968}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_SRC_RGB", {configurable:false, enumerable:true, writable:false, value:32969}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_DST_ALPHA", {configurable:false, enumerable:true, writable:false, value:32970}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_SRC_ALPHA", {configurable:false, enumerable:true, writable:false, value:32971}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CONSTANT_COLOR", {configurable:false, enumerable:true, writable:false, value:32769}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE_MINUS_CONSTANT_COLOR", {configurable:false, enumerable:true, writable:false, value:32770}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CONSTANT_ALPHA", {configurable:false, enumerable:true, writable:false, value:32771}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ONE_MINUS_CONSTANT_ALPHA", {configurable:false, enumerable:true, writable:false, value:32772}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND_COLOR", {configurable:false, enumerable:true, writable:false, value:32773}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ARRAY_BUFFER", {configurable:false, enumerable:true, writable:false, value:34962}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ELEMENT_ARRAY_BUFFER", {configurable:false, enumerable:true, writable:false, value:34963}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ARRAY_BUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:34964}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ELEMENT_ARRAY_BUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:34965}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STREAM_DRAW", {configurable:false, enumerable:true, writable:false, value:35040}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STATIC_DRAW", {configurable:false, enumerable:true, writable:false, value:35044}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DYNAMIC_DRAW", {configurable:false, enumerable:true, writable:false, value:35048}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BUFFER_SIZE", {configurable:false, enumerable:true, writable:false, value:34660}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BUFFER_USAGE", {configurable:false, enumerable:true, writable:false, value:34661}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CURRENT_VERTEX_ATTRIB", {configurable:false, enumerable:true, writable:false, value:34342}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRONT", {configurable:false, enumerable:true, writable:false, value:1028}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BACK", {configurable:false, enumerable:true, writable:false, value:1029}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRONT_AND_BACK", {configurable:false, enumerable:true, writable:false, value:1032}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_2D", {configurable:false, enumerable:true, writable:false, value:3553}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CULL_FACE", {configurable:false, enumerable:true, writable:false, value:2884}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLEND", {configurable:false, enumerable:true, writable:false, value:3042}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DITHER", {configurable:false, enumerable:true, writable:false, value:3024}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_TEST", {configurable:false, enumerable:true, writable:false, value:2960}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_TEST", {configurable:false, enumerable:true, writable:false, value:2929}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SCISSOR_TEST", {configurable:false, enumerable:true, writable:false, value:3089}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "POLYGON_OFFSET_FILL", {configurable:false, enumerable:true, writable:false, value:32823}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLE_ALPHA_TO_COVERAGE", {configurable:false, enumerable:true, writable:false, value:32926}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLE_COVERAGE", {configurable:false, enumerable:true, writable:false, value:32928}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NO_ERROR", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INVALID_ENUM", {configurable:false, enumerable:true, writable:false, value:1280}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INVALID_VALUE", {configurable:false, enumerable:true, writable:false, value:1281}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INVALID_OPERATION", {configurable:false, enumerable:true, writable:false, value:1282}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "OUT_OF_MEMORY", {configurable:false, enumerable:true, writable:false, value:1285}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CW", {configurable:false, enumerable:true, writable:false, value:2304}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CCW", {configurable:false, enumerable:true, writable:false, value:2305}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINE_WIDTH", {configurable:false, enumerable:true, writable:false, value:2849}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ALIASED_POINT_SIZE_RANGE", {configurable:false, enumerable:true, writable:false, value:33901}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ALIASED_LINE_WIDTH_RANGE", {configurable:false, enumerable:true, writable:false, value:33902}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CULL_FACE_MODE", {configurable:false, enumerable:true, writable:false, value:2885}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRONT_FACE", {configurable:false, enumerable:true, writable:false, value:2886}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_RANGE", {configurable:false, enumerable:true, writable:false, value:2928}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:2930}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_CLEAR_VALUE", {configurable:false, enumerable:true, writable:false, value:2931}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_FUNC", {configurable:false, enumerable:true, writable:false, value:2932}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_CLEAR_VALUE", {configurable:false, enumerable:true, writable:false, value:2961}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_FUNC", {configurable:false, enumerable:true, writable:false, value:2962}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_FAIL", {configurable:false, enumerable:true, writable:false, value:2964}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_PASS_DEPTH_FAIL", {configurable:false, enumerable:true, writable:false, value:2965}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_PASS_DEPTH_PASS", {configurable:false, enumerable:true, writable:false, value:2966}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_REF", {configurable:false, enumerable:true, writable:false, value:2967}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_VALUE_MASK", {configurable:false, enumerable:true, writable:false, value:2963}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:2968}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_FUNC", {configurable:false, enumerable:true, writable:false, value:34816}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_FAIL", {configurable:false, enumerable:true, writable:false, value:34817}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_PASS_DEPTH_FAIL", {configurable:false, enumerable:true, writable:false, value:34818}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_PASS_DEPTH_PASS", {configurable:false, enumerable:true, writable:false, value:34819}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_REF", {configurable:false, enumerable:true, writable:false, value:36003}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_VALUE_MASK", {configurable:false, enumerable:true, writable:false, value:36004}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BACK_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:36005}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VIEWPORT", {configurable:false, enumerable:true, writable:false, value:2978}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SCISSOR_BOX", {configurable:false, enumerable:true, writable:false, value:3088}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "COLOR_CLEAR_VALUE", {configurable:false, enumerable:true, writable:false, value:3106}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "COLOR_WRITEMASK", {configurable:false, enumerable:true, writable:false, value:3107}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNPACK_ALIGNMENT", {configurable:false, enumerable:true, writable:false, value:3317}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "PACK_ALIGNMENT", {configurable:false, enumerable:true, writable:false, value:3333}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_TEXTURE_SIZE", {configurable:false, enumerable:true, writable:false, value:3379}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_VIEWPORT_DIMS", {configurable:false, enumerable:true, writable:false, value:3386}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SUBPIXEL_BITS", {configurable:false, enumerable:true, writable:false, value:3408}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RED_BITS", {configurable:false, enumerable:true, writable:false, value:3410}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "GREEN_BITS", {configurable:false, enumerable:true, writable:false, value:3411}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BLUE_BITS", {configurable:false, enumerable:true, writable:false, value:3412}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ALPHA_BITS", {configurable:false, enumerable:true, writable:false, value:3413}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_BITS", {configurable:false, enumerable:true, writable:false, value:3414}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_BITS", {configurable:false, enumerable:true, writable:false, value:3415}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "POLYGON_OFFSET_UNITS", {configurable:false, enumerable:true, writable:false, value:10752}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "POLYGON_OFFSET_FACTOR", {configurable:false, enumerable:true, writable:false, value:32824}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_BINDING_2D", {configurable:false, enumerable:true, writable:false, value:32873}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLE_BUFFERS", {configurable:false, enumerable:true, writable:false, value:32936}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLES", {configurable:false, enumerable:true, writable:false, value:32937}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLE_COVERAGE_VALUE", {configurable:false, enumerable:true, writable:false, value:32938}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLE_COVERAGE_INVERT", {configurable:false, enumerable:true, writable:false, value:32939}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "COMPRESSED_TEXTURE_FORMATS", {configurable:false, enumerable:true, writable:false, value:34467}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DONT_CARE", {configurable:false, enumerable:true, writable:false, value:4352}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FASTEST", {configurable:false, enumerable:true, writable:false, value:4353}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NICEST", {configurable:false, enumerable:true, writable:false, value:4354}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "GENERATE_MIPMAP_HINT", {configurable:false, enumerable:true, writable:false, value:33170}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BYTE", {configurable:false, enumerable:true, writable:false, value:5120}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNSIGNED_BYTE", {configurable:false, enumerable:true, writable:false, value:5121}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SHORT", {configurable:false, enumerable:true, writable:false, value:5122}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNSIGNED_SHORT", {configurable:false, enumerable:true, writable:false, value:5123}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INT", {configurable:false, enumerable:true, writable:false, value:5124}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNSIGNED_INT", {configurable:false, enumerable:true, writable:false, value:5125}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT", {configurable:false, enumerable:true, writable:false, value:5126}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_COMPONENT", {configurable:false, enumerable:true, writable:false, value:6402}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ALPHA", {configurable:false, enumerable:true, writable:false, value:6406}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RGB", {configurable:false, enumerable:true, writable:false, value:6407}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RGBA", {configurable:false, enumerable:true, writable:false, value:6408}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LUMINANCE", {configurable:false, enumerable:true, writable:false, value:6409}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LUMINANCE_ALPHA", {configurable:false, enumerable:true, writable:false, value:6410}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNSIGNED_SHORT_4_4_4_4", {configurable:false, enumerable:true, writable:false, value:32819}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNSIGNED_SHORT_5_5_5_1", {configurable:false, enumerable:true, writable:false, value:32820}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNSIGNED_SHORT_5_6_5", {configurable:false, enumerable:true, writable:false, value:33635}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAGMENT_SHADER", {configurable:false, enumerable:true, writable:false, value:35632}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_SHADER", {configurable:false, enumerable:true, writable:false, value:35633}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_VERTEX_ATTRIBS", {configurable:false, enumerable:true, writable:false, value:34921}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_VERTEX_UNIFORM_VECTORS", {configurable:false, enumerable:true, writable:false, value:36347}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_VARYING_VECTORS", {configurable:false, enumerable:true, writable:false, value:36348}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_COMBINED_TEXTURE_IMAGE_UNITS", {configurable:false, enumerable:true, writable:false, value:35661}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_VERTEX_TEXTURE_IMAGE_UNITS", {configurable:false, enumerable:true, writable:false, value:35660}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_TEXTURE_IMAGE_UNITS", {configurable:false, enumerable:true, writable:false, value:34930}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_FRAGMENT_UNIFORM_VECTORS", {configurable:false, enumerable:true, writable:false, value:36349}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SHADER_TYPE", {configurable:false, enumerable:true, writable:false, value:35663}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DELETE_STATUS", {configurable:false, enumerable:true, writable:false, value:35712}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINK_STATUS", {configurable:false, enumerable:true, writable:false, value:35714}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VALIDATE_STATUS", {configurable:false, enumerable:true, writable:false, value:35715}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ATTACHED_SHADERS", {configurable:false, enumerable:true, writable:false, value:35717}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ACTIVE_UNIFORMS", {configurable:false, enumerable:true, writable:false, value:35718}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ACTIVE_ATTRIBUTES", {configurable:false, enumerable:true, writable:false, value:35721}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SHADING_LANGUAGE_VERSION", {configurable:false, enumerable:true, writable:false, value:35724}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CURRENT_PROGRAM", {configurable:false, enumerable:true, writable:false, value:35725}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NEVER", {configurable:false, enumerable:true, writable:false, value:512}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LESS", {configurable:false, enumerable:true, writable:false, value:513}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "EQUAL", {configurable:false, enumerable:true, writable:false, value:514}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LEQUAL", {configurable:false, enumerable:true, writable:false, value:515}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "GREATER", {configurable:false, enumerable:true, writable:false, value:516}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NOTEQUAL", {configurable:false, enumerable:true, writable:false, value:517}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "GEQUAL", {configurable:false, enumerable:true, writable:false, value:518}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ALWAYS", {configurable:false, enumerable:true, writable:false, value:519}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "KEEP", {configurable:false, enumerable:true, writable:false, value:7680}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "REPLACE", {configurable:false, enumerable:true, writable:false, value:7681}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INCR", {configurable:false, enumerable:true, writable:false, value:7682}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DECR", {configurable:false, enumerable:true, writable:false, value:7683}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INVERT", {configurable:false, enumerable:true, writable:false, value:5386}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INCR_WRAP", {configurable:false, enumerable:true, writable:false, value:34055}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DECR_WRAP", {configurable:false, enumerable:true, writable:false, value:34056}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VENDOR", {configurable:false, enumerable:true, writable:false, value:7936}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERER", {configurable:false, enumerable:true, writable:false, value:7937}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERSION", {configurable:false, enumerable:true, writable:false, value:7938}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NEAREST", {configurable:false, enumerable:true, writable:false, value:9728}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINEAR", {configurable:false, enumerable:true, writable:false, value:9729}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NEAREST_MIPMAP_NEAREST", {configurable:false, enumerable:true, writable:false, value:9984}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINEAR_MIPMAP_NEAREST", {configurable:false, enumerable:true, writable:false, value:9985}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NEAREST_MIPMAP_LINEAR", {configurable:false, enumerable:true, writable:false, value:9986}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LINEAR_MIPMAP_LINEAR", {configurable:false, enumerable:true, writable:false, value:9987}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_MAG_FILTER", {configurable:false, enumerable:true, writable:false, value:10240}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_MIN_FILTER", {configurable:false, enumerable:true, writable:false, value:10241}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_WRAP_S", {configurable:false, enumerable:true, writable:false, value:10242}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_WRAP_T", {configurable:false, enumerable:true, writable:false, value:10243}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE", {configurable:false, enumerable:true, writable:false, value:5890}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP", {configurable:false, enumerable:true, writable:false, value:34067}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_BINDING_CUBE_MAP", {configurable:false, enumerable:true, writable:false, value:34068}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP_POSITIVE_X", {configurable:false, enumerable:true, writable:false, value:34069}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP_NEGATIVE_X", {configurable:false, enumerable:true, writable:false, value:34070}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP_POSITIVE_Y", {configurable:false, enumerable:true, writable:false, value:34071}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP_NEGATIVE_Y", {configurable:false, enumerable:true, writable:false, value:34072}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP_POSITIVE_Z", {configurable:false, enumerable:true, writable:false, value:34073}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE_CUBE_MAP_NEGATIVE_Z", {configurable:false, enumerable:true, writable:false, value:34074}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_CUBE_MAP_TEXTURE_SIZE", {configurable:false, enumerable:true, writable:false, value:34076}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE0", {configurable:false, enumerable:true, writable:false, value:33984}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE1", {configurable:false, enumerable:true, writable:false, value:33985}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE2", {configurable:false, enumerable:true, writable:false, value:33986}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE3", {configurable:false, enumerable:true, writable:false, value:33987}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE4", {configurable:false, enumerable:true, writable:false, value:33988}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE5", {configurable:false, enumerable:true, writable:false, value:33989}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE6", {configurable:false, enumerable:true, writable:false, value:33990}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE7", {configurable:false, enumerable:true, writable:false, value:33991}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE8", {configurable:false, enumerable:true, writable:false, value:33992}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE9", {configurable:false, enumerable:true, writable:false, value:33993}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE10", {configurable:false, enumerable:true, writable:false, value:33994}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE11", {configurable:false, enumerable:true, writable:false, value:33995}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE12", {configurable:false, enumerable:true, writable:false, value:33996}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE13", {configurable:false, enumerable:true, writable:false, value:33997}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE14", {configurable:false, enumerable:true, writable:false, value:33998}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE15", {configurable:false, enumerable:true, writable:false, value:33999}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE16", {configurable:false, enumerable:true, writable:false, value:34000}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE17", {configurable:false, enumerable:true, writable:false, value:34001}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE18", {configurable:false, enumerable:true, writable:false, value:34002}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE19", {configurable:false, enumerable:true, writable:false, value:34003}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE20", {configurable:false, enumerable:true, writable:false, value:34004}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE21", {configurable:false, enumerable:true, writable:false, value:34005}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE22", {configurable:false, enumerable:true, writable:false, value:34006}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE23", {configurable:false, enumerable:true, writable:false, value:34007}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE24", {configurable:false, enumerable:true, writable:false, value:34008}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE25", {configurable:false, enumerable:true, writable:false, value:34009}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE26", {configurable:false, enumerable:true, writable:false, value:34010}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE27", {configurable:false, enumerable:true, writable:false, value:34011}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE28", {configurable:false, enumerable:true, writable:false, value:34012}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE29", {configurable:false, enumerable:true, writable:false, value:34013}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE30", {configurable:false, enumerable:true, writable:false, value:34014}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "TEXTURE31", {configurable:false, enumerable:true, writable:false, value:34015}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "ACTIVE_TEXTURE", {configurable:false, enumerable:true, writable:false, value:34016}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "REPEAT", {configurable:false, enumerable:true, writable:false, value:10497}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CLAMP_TO_EDGE", {configurable:false, enumerable:true, writable:false, value:33071}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MIRRORED_REPEAT", {configurable:false, enumerable:true, writable:false, value:33648}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT_VEC2", {configurable:false, enumerable:true, writable:false, value:35664}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT_VEC3", {configurable:false, enumerable:true, writable:false, value:35665}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT_VEC4", {configurable:false, enumerable:true, writable:false, value:35666}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INT_VEC2", {configurable:false, enumerable:true, writable:false, value:35667}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INT_VEC3", {configurable:false, enumerable:true, writable:false, value:35668}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INT_VEC4", {configurable:false, enumerable:true, writable:false, value:35669}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BOOL", {configurable:false, enumerable:true, writable:false, value:35670}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BOOL_VEC2", {configurable:false, enumerable:true, writable:false, value:35671}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BOOL_VEC3", {configurable:false, enumerable:true, writable:false, value:35672}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BOOL_VEC4", {configurable:false, enumerable:true, writable:false, value:35673}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT_MAT2", {configurable:false, enumerable:true, writable:false, value:35674}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT_MAT3", {configurable:false, enumerable:true, writable:false, value:35675}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FLOAT_MAT4", {configurable:false, enumerable:true, writable:false, value:35676}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLER_2D", {configurable:false, enumerable:true, writable:false, value:35678}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "SAMPLER_CUBE", {configurable:false, enumerable:true, writable:false, value:35680}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_ENABLED", {configurable:false, enumerable:true, writable:false, value:34338}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_SIZE", {configurable:false, enumerable:true, writable:false, value:34339}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_STRIDE", {configurable:false, enumerable:true, writable:false, value:34340}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_TYPE", {configurable:false, enumerable:true, writable:false, value:34341}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_NORMALIZED", {configurable:false, enumerable:true, writable:false, value:34922}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_POINTER", {configurable:false, enumerable:true, writable:false, value:34373}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:34975}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "IMPLEMENTATION_COLOR_READ_TYPE", {configurable:false, enumerable:true, writable:false, value:35738}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "IMPLEMENTATION_COLOR_READ_FORMAT", {configurable:false, enumerable:true, writable:false, value:35739}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "COMPILE_STATUS", {configurable:false, enumerable:true, writable:false, value:35713}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LOW_FLOAT", {configurable:false, enumerable:true, writable:false, value:36336}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MEDIUM_FLOAT", {configurable:false, enumerable:true, writable:false, value:36337}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "HIGH_FLOAT", {configurable:false, enumerable:true, writable:false, value:36338}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "LOW_INT", {configurable:false, enumerable:true, writable:false, value:36339}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MEDIUM_INT", {configurable:false, enumerable:true, writable:false, value:36340}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "HIGH_INT", {configurable:false, enumerable:true, writable:false, value:36341}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER", {configurable:false, enumerable:true, writable:false, value:36160}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER", {configurable:false, enumerable:true, writable:false, value:36161}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RGBA4", {configurable:false, enumerable:true, writable:false, value:32854}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RGB5_A1", {configurable:false, enumerable:true, writable:false, value:32855}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RGB565", {configurable:false, enumerable:true, writable:false, value:36194}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_COMPONENT16", {configurable:false, enumerable:true, writable:false, value:33189}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_INDEX8", {configurable:false, enumerable:true, writable:false, value:36168}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_STENCIL", {configurable:false, enumerable:true, writable:false, value:34041}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_WIDTH", {configurable:false, enumerable:true, writable:false, value:36162}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_HEIGHT", {configurable:false, enumerable:true, writable:false, value:36163}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_INTERNAL_FORMAT", {configurable:false, enumerable:true, writable:false, value:36164}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_RED_SIZE", {configurable:false, enumerable:true, writable:false, value:36176}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_GREEN_SIZE", {configurable:false, enumerable:true, writable:false, value:36177}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_BLUE_SIZE", {configurable:false, enumerable:true, writable:false, value:36178}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_ALPHA_SIZE", {configurable:false, enumerable:true, writable:false, value:36179}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_DEPTH_SIZE", {configurable:false, enumerable:true, writable:false, value:36180}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_STENCIL_SIZE", {configurable:false, enumerable:true, writable:false, value:36181}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", {configurable:false, enumerable:true, writable:false, value:36048}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", {configurable:false, enumerable:true, writable:false, value:36049}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", {configurable:false, enumerable:true, writable:false, value:36050}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", {configurable:false, enumerable:true, writable:false, value:36051}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "COLOR_ATTACHMENT0", {configurable:false, enumerable:true, writable:false, value:36064}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36096}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "STENCIL_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36128}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "DEPTH_STENCIL_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:33306}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "NONE", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_COMPLETE", {configurable:false, enumerable:true, writable:false, value:36053}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36054}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", {configurable:false, enumerable:true, writable:false, value:36055}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", {configurable:false, enumerable:true, writable:false, value:36057}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_UNSUPPORTED", {configurable:false, enumerable:true, writable:false, value:36061}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "FRAMEBUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:36006}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "RENDERBUFFER_BINDING", {configurable:false, enumerable:true, writable:false, value:36007}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "MAX_RENDERBUFFER_SIZE", {configurable:false, enumerable:true, writable:false, value:34024}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "INVALID_FRAMEBUFFER_OPERATION", {configurable:false, enumerable:true, writable:false, value:1286}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNPACK_FLIP_Y_WEBGL", {configurable:false, enumerable:true, writable:false, value:37440}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNPACK_PREMULTIPLY_ALPHA_WEBGL", {configurable:false, enumerable:true, writable:false, value:37441}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "CONTEXT_LOST_WEBGL", {configurable:false, enumerable:true, writable:false, value:37442}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "UNPACK_COLORSPACE_CONVERSION_WEBGL", {configurable:false, enumerable:true, writable:false, value:37443}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "BROWSER_DEFAULT_WEBGL", {configurable:false, enumerable:true, writable:false, value:37444}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "activeTexture", {configurable:true, enumerable:true, writable:true, value:function activeTexture (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "activeTexture", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "attachShader", {configurable:true, enumerable:true, writable:true, value:function attachShader (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "attachShader", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bindAttribLocation", {configurable:true, enumerable:true, writable:true, value:function bindAttribLocation (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bindAttribLocation", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bindRenderbuffer", {configurable:true, enumerable:true, writable:true, value:function bindRenderbuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bindRenderbuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "blendColor", {configurable:true, enumerable:true, writable:true, value:function blendColor (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "blendColor", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "blendEquation", {configurable:true, enumerable:true, writable:true, value:function blendEquation (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "blendEquation", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "blendEquationSeparate", {configurable:true, enumerable:true, writable:true, value:function blendEquationSeparate (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "blendEquationSeparate", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "blendFunc", {configurable:true, enumerable:true, writable:true, value:function blendFunc (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "blendFunc", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "blendFuncSeparate", {configurable:true, enumerable:true, writable:true, value:function blendFuncSeparate (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "blendFuncSeparate", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bufferData", {configurable:true, enumerable:true, writable:true, value:function bufferData (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bufferData", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bufferSubData", {configurable:true, enumerable:true, writable:true, value:function bufferSubData (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bufferSubData", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "checkFramebufferStatus", {configurable:true, enumerable:true, writable:true, value:function checkFramebufferStatus (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "checkFramebufferStatus", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "compileShader", {configurable:true, enumerable:true, writable:true, value:function compileShader (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "compileShader", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "compressedTexImage2D", {configurable:true, enumerable:true, writable:true, value:function compressedTexImage2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "compressedTexImage2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "compressedTexSubImage2D", {configurable:true, enumerable:true, writable:true, value:function compressedTexSubImage2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "compressedTexSubImage2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "copyTexImage2D", {configurable:true, enumerable:true, writable:true, value:function copyTexImage2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "copyTexImage2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "copyTexSubImage2D", {configurable:true, enumerable:true, writable:true, value:function copyTexSubImage2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "copyTexSubImage2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "createBuffer", {configurable:true, enumerable:true, writable:true, value:function createBuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "createBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "createFramebuffer", {configurable:true, enumerable:true, writable:true, value:function createFramebuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "createFramebuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "createProgram", {configurable:true, enumerable:true, writable:true, value:function createProgram (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "createProgram", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "createRenderbuffer", {configurable:true, enumerable:true, writable:true, value:function createRenderbuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "createRenderbuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "createShader", {configurable:true, enumerable:true, writable:true, value:function createShader (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "createShader", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "createTexture", {configurable:true, enumerable:true, writable:true, value:function createTexture (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "createTexture", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "cullFace", {configurable:true, enumerable:true, writable:true, value:function cullFace (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "cullFace", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "deleteBuffer", {configurable:true, enumerable:true, writable:true, value:function deleteBuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "deleteBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "deleteFramebuffer", {configurable:true, enumerable:true, writable:true, value:function deleteFramebuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "deleteFramebuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "deleteProgram", {configurable:true, enumerable:true, writable:true, value:function deleteProgram (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "deleteProgram", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "deleteRenderbuffer", {configurable:true, enumerable:true, writable:true, value:function deleteRenderbuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "deleteRenderbuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "deleteShader", {configurable:true, enumerable:true, writable:true, value:function deleteShader (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "deleteShader", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "deleteTexture", {configurable:true, enumerable:true, writable:true, value:function deleteTexture (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "deleteTexture", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "depthFunc", {configurable:true, enumerable:true, writable:true, value:function depthFunc (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "depthFunc", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "depthMask", {configurable:true, enumerable:true, writable:true, value:function depthMask (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "depthMask", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "depthRange", {configurable:true, enumerable:true, writable:true, value:function depthRange (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "depthRange", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "detachShader", {configurable:true, enumerable:true, writable:true, value:function detachShader (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "detachShader", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "disable", {configurable:true, enumerable:true, writable:true, value:function disable (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "disable", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "enable", {configurable:true, enumerable:true, writable:true, value:function enable (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "enable", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "finish", {configurable:true, enumerable:true, writable:true, value:function finish (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "finish", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "flush", {configurable:true, enumerable:true, writable:true, value:function flush (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "flush", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "framebufferRenderbuffer", {configurable:true, enumerable:true, writable:true, value:function framebufferRenderbuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "framebufferRenderbuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "framebufferTexture2D", {configurable:true, enumerable:true, writable:true, value:function framebufferTexture2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "framebufferTexture2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "frontFace", {configurable:true, enumerable:true, writable:true, value:function frontFace (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "frontFace", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "generateMipmap", {configurable:true, enumerable:true, writable:true, value:function generateMipmap (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "generateMipmap", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getActiveAttrib", {configurable:true, enumerable:true, writable:true, value:function getActiveAttrib (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getActiveAttrib", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getActiveUniform", {configurable:true, enumerable:true, writable:true, value:function getActiveUniform (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getActiveUniform", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getAttachedShaders", {configurable:true, enumerable:true, writable:true, value:function getAttachedShaders (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getAttachedShaders", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getAttribLocation", {configurable:true, enumerable:true, writable:true, value:function getAttribLocation (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getAttribLocation", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getBufferParameter", {configurable:true, enumerable:true, writable:true, value:function getBufferParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getBufferParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getContextAttributes", {configurable:true, enumerable:true, writable:true, value:function getContextAttributes (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getContextAttributes", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getError", {configurable:true, enumerable:true, writable:true, value:function getError (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getError", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getExtension", {configurable:true, enumerable:true, writable:true, value:function getExtension (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getExtension", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getFramebufferAttachmentParameter", {configurable:true, enumerable:true, writable:true, value:function getFramebufferAttachmentParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getFramebufferAttachmentParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getParameter", {configurable:true, enumerable:true, writable:true, value:function getParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getProgramInfoLog", {configurable:true, enumerable:true, writable:true, value:function getProgramInfoLog (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getProgramInfoLog", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getProgramParameter", {configurable:true, enumerable:true, writable:true, value:function getProgramParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getProgramParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getRenderbufferParameter", {configurable:true, enumerable:true, writable:true, value:function getRenderbufferParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getRenderbufferParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getShaderInfoLog", {configurable:true, enumerable:true, writable:true, value:function getShaderInfoLog (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getShaderInfoLog", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getShaderParameter", {configurable:true, enumerable:true, writable:true, value:function getShaderParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getShaderParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getShaderPrecisionFormat", {configurable:true, enumerable:true, writable:true, value:function getShaderPrecisionFormat (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getShaderPrecisionFormat", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getShaderSource", {configurable:true, enumerable:true, writable:true, value:function getShaderSource (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getShaderSource", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getSupportedExtensions", {configurable:true, enumerable:true, writable:true, value:function getSupportedExtensions (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getSupportedExtensions", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getTexParameter", {configurable:true, enumerable:true, writable:true, value:function getTexParameter (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getTexParameter", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getUniform", {configurable:true, enumerable:true, writable:true, value:function getUniform (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getUniform", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getUniformLocation", {configurable:true, enumerable:true, writable:true, value:function getUniformLocation (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getUniformLocation", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getVertexAttrib", {configurable:true, enumerable:true, writable:true, value:function getVertexAttrib (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getVertexAttrib", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "getVertexAttribOffset", {configurable:true, enumerable:true, writable:true, value:function getVertexAttribOffset (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "getVertexAttribOffset", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "hint", {configurable:true, enumerable:true, writable:true, value:function hint (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "hint", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isBuffer", {configurable:true, enumerable:true, writable:true, value:function isBuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isContextLost", {configurable:true, enumerable:true, writable:true, value:function isContextLost (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isContextLost", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isEnabled", {configurable:true, enumerable:true, writable:true, value:function isEnabled (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isEnabled", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isFramebuffer", {configurable:true, enumerable:true, writable:true, value:function isFramebuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isFramebuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isProgram", {configurable:true, enumerable:true, writable:true, value:function isProgram (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isProgram", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isRenderbuffer", {configurable:true, enumerable:true, writable:true, value:function isRenderbuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isRenderbuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isShader", {configurable:true, enumerable:true, writable:true, value:function isShader (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isShader", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "isTexture", {configurable:true, enumerable:true, writable:true, value:function isTexture (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "isTexture", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "lineWidth", {configurable:true, enumerable:true, writable:true, value:function lineWidth (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "lineWidth", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "linkProgram", {configurable:true, enumerable:true, writable:true, value:function linkProgram (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "linkProgram", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "pixelStorei", {configurable:true, enumerable:true, writable:true, value:function pixelStorei (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "pixelStorei", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "polygonOffset", {configurable:true, enumerable:true, writable:true, value:function polygonOffset (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "polygonOffset", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "readPixels", {configurable:true, enumerable:true, writable:true, value:function readPixels (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "readPixels", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "renderbufferStorage", {configurable:true, enumerable:true, writable:true, value:function renderbufferStorage (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "renderbufferStorage", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "sampleCoverage", {configurable:true, enumerable:true, writable:true, value:function sampleCoverage (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "sampleCoverage", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "shaderSource", {configurable:true, enumerable:true, writable:true, value:function shaderSource (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "shaderSource", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "stencilFunc", {configurable:true, enumerable:true, writable:true, value:function stencilFunc (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "stencilFunc", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "stencilFuncSeparate", {configurable:true, enumerable:true, writable:true, value:function stencilFuncSeparate (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "stencilFuncSeparate", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "stencilMask", {configurable:true, enumerable:true, writable:true, value:function stencilMask (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "stencilMask", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "stencilMaskSeparate", {configurable:true, enumerable:true, writable:true, value:function stencilMaskSeparate (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "stencilMaskSeparate", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "stencilOp", {configurable:true, enumerable:true, writable:true, value:function stencilOp (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "stencilOp", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "stencilOpSeparate", {configurable:true, enumerable:true, writable:true, value:function stencilOpSeparate (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "stencilOpSeparate", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "texImage2D", {configurable:true, enumerable:true, writable:true, value:function texImage2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "texImage2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "texParameterf", {configurable:true, enumerable:true, writable:true, value:function texParameterf (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "texParameterf", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "texParameteri", {configurable:true, enumerable:true, writable:true, value:function texParameteri (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "texParameteri", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "texSubImage2D", {configurable:true, enumerable:true, writable:true, value:function texSubImage2D (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "texSubImage2D", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "useProgram", {configurable:true, enumerable:true, writable:true, value:function useProgram (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "useProgram", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "validateProgram", {configurable:true, enumerable:true, writable:true, value:function validateProgram (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "validateProgram", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bindBuffer", {configurable:true, enumerable:true, writable:true, value:function bindBuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bindBuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bindFramebuffer", {configurable:true, enumerable:true, writable:true, value:function bindFramebuffer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bindFramebuffer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "bindTexture", {configurable:true, enumerable:true, writable:true, value:function bindTexture (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "bindTexture", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "clear", {configurable:true, enumerable:true, writable:true, value:function clear (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "clear", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "clearColor", {configurable:true, enumerable:true, writable:true, value:function clearColor (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "clearColor", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "clearDepth", {configurable:true, enumerable:true, writable:true, value:function clearDepth (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "clearDepth", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "clearStencil", {configurable:true, enumerable:true, writable:true, value:function clearStencil (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "clearStencil", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "colorMask", {configurable:true, enumerable:true, writable:true, value:function colorMask (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "colorMask", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "disableVertexAttribArray", {configurable:true, enumerable:true, writable:true, value:function disableVertexAttribArray (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "disableVertexAttribArray", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "drawArrays", {configurable:true, enumerable:true, writable:true, value:function drawArrays (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "drawArrays", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "drawElements", {configurable:true, enumerable:true, writable:true, value:function drawElements (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "drawElements", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "enableVertexAttribArray", {configurable:true, enumerable:true, writable:true, value:function enableVertexAttribArray (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "enableVertexAttribArray", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "scissor", {configurable:true, enumerable:true, writable:true, value:function scissor (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "scissor", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform1f", {configurable:true, enumerable:true, writable:true, value:function uniform1f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform1f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform1fv", {configurable:true, enumerable:true, writable:true, value:function uniform1fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform1fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform1i", {configurable:true, enumerable:true, writable:true, value:function uniform1i (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform1i", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform1iv", {configurable:true, enumerable:true, writable:true, value:function uniform1iv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform1iv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform2f", {configurable:true, enumerable:true, writable:true, value:function uniform2f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform2f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform2fv", {configurable:true, enumerable:true, writable:true, value:function uniform2fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform2fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform2i", {configurable:true, enumerable:true, writable:true, value:function uniform2i (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform2i", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform2iv", {configurable:true, enumerable:true, writable:true, value:function uniform2iv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform2iv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform3f", {configurable:true, enumerable:true, writable:true, value:function uniform3f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform3f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform3fv", {configurable:true, enumerable:true, writable:true, value:function uniform3fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform3fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform3i", {configurable:true, enumerable:true, writable:true, value:function uniform3i (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform3i", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform3iv", {configurable:true, enumerable:true, writable:true, value:function uniform3iv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform3iv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform4f", {configurable:true, enumerable:true, writable:true, value:function uniform4f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform4f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform4fv", {configurable:true, enumerable:true, writable:true, value:function uniform4fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform4fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform4i", {configurable:true, enumerable:true, writable:true, value:function uniform4i (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform4i", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniform4iv", {configurable:true, enumerable:true, writable:true, value:function uniform4iv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniform4iv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniformMatrix2fv", {configurable:true, enumerable:true, writable:true, value:function uniformMatrix2fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniformMatrix2fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniformMatrix3fv", {configurable:true, enumerable:true, writable:true, value:function uniformMatrix3fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniformMatrix3fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "uniformMatrix4fv", {configurable:true, enumerable:true, writable:true, value:function uniformMatrix4fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "uniformMatrix4fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib1f", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib1f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib1f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib1fv", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib1fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib1fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib2f", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib2f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib2f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib2fv", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib2fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib2fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib3f", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib3f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib3f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib3fv", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib3fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib3fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib4f", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib4f (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib4f", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttrib4fv", {configurable:true, enumerable:true, writable:true, value:function vertexAttrib4fv (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttrib4fv", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "vertexAttribPointer", {configurable:true, enumerable:true, writable:true, value:function vertexAttribPointer (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "vertexAttribPointer", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "viewport", {configurable:true, enumerable:true, writable:true, value:function viewport (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "viewport", arguments)}}); -bodavm.toolsFunc.defineProperty(WebGLRenderingContext.prototype, "makeXRCompatible", {configurable:true, enumerable:true, writable:true, value:function makeXRCompatible (){return bodavm.toolsFunc.dispatch(this, WebGLRenderingContext.prototype, "WebGLRenderingContext", "makeXRCompatible", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/WebGLShader.js b/env_xbb_lastest_cheerio/env/WebGLShader.js deleted file mode 100644 index 8786f09d..00000000 --- a/env_xbb_lastest_cheerio/env/WebGLShader.js +++ /dev/null @@ -1,3 +0,0 @@ -// WebGLShader对象 -WebGLShader = function WebGLShader(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(WebGLShader, "WebGLShader"); diff --git a/env_xbb_lastest_cheerio/env/WebGLShaderPrecisionFormat.js b/env_xbb_lastest_cheerio/env/WebGLShaderPrecisionFormat.js deleted file mode 100644 index 8cc19d8c..00000000 --- a/env_xbb_lastest_cheerio/env/WebGLShaderPrecisionFormat.js +++ /dev/null @@ -1,6 +0,0 @@ -// WebGLShaderPrecisionFormat对象 -WebGLShaderPrecisionFormat = function WebGLShaderPrecisionFormat(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(WebGLShaderPrecisionFormat, "WebGLShaderPrecisionFormat"); -bodavm.toolsFunc.defineProperty(WebGLShaderPrecisionFormat.prototype, "rangeMin", {configurable:true, enumerable:true, get:function rangeMin (){return bodavm.toolsFunc.dispatch(this, WebGLShaderPrecisionFormat.prototype, "WebGLShaderPrecisionFormat", "rangeMin_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebGLShaderPrecisionFormat.prototype, "rangeMax", {configurable:true, enumerable:true, get:function rangeMax (){return bodavm.toolsFunc.dispatch(this, WebGLShaderPrecisionFormat.prototype, "WebGLShaderPrecisionFormat", "rangeMax_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebGLShaderPrecisionFormat.prototype, "precision", {configurable:true, enumerable:true, get:function precision (){return bodavm.toolsFunc.dispatch(this, WebGLShaderPrecisionFormat.prototype, "WebGLShaderPrecisionFormat", "precision_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/WebSocket.js b/env_xbb_lastest_cheerio/env/WebSocket.js deleted file mode 100644 index e7d64dfd..00000000 --- a/env_xbb_lastest_cheerio/env/WebSocket.js +++ /dev/null @@ -1,29 +0,0 @@ -// WebSocket对象 -WebSocket = function WebSocket(){ - if(arguments.length<1){ - return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'WebSocket': 1 argument required, but only 0 present.")} - - } -bodavm.toolsFunc.safeProto(WebSocket, "WebSocket"); -WebSocket.prototype.__proto__=EventTarget.prototype; -WebSocket.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(WebSocket, "CONNECTING", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebSocket, "OPEN", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(WebSocket, "CLOSING", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(WebSocket, "CLOSED", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "url", {configurable:true, enumerable:true, get:function url (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "url_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "readyState", {configurable:true, enumerable:true, get:function readyState (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "readyState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "bufferedAmount", {configurable:true, enumerable:true, get:function bufferedAmount (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "bufferedAmount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "onopen", {configurable:true, enumerable:true, get:function onopen (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onopen_get", arguments)}, set:function onopen (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onopen_set", arguments)}}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "onclose", {configurable:true, enumerable:true, get:function onclose (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onclose_get", arguments)}, set:function onclose (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onclose_set", arguments)}}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "extensions", {configurable:true, enumerable:true, get:function extensions (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "extensions_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "protocol", {configurable:true, enumerable:true, get:function protocol (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "protocol_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "onmessage", {configurable:true, enumerable:true, get:function onmessage (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onmessage_get", arguments)}, set:function onmessage (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "onmessage_set", arguments)}}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "binaryType", {configurable:true, enumerable:true, get:function binaryType (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "binaryType_get", arguments)}, set:function binaryType (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "binaryType_set", arguments)}}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "CONNECTING", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "OPEN", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "CLOSING", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "CLOSED", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "close", {configurable:true, enumerable:true, writable:true, value:function close (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "close", arguments)}}); -bodavm.toolsFunc.defineProperty(WebSocket.prototype, "send", {configurable:true, enumerable:true, writable:true, value:function send (){return bodavm.toolsFunc.dispatch(this, WebSocket.prototype, "WebSocket", "send", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/Window.js b/env_xbb_lastest_cheerio/env/Window.js deleted file mode 100644 index e1c6c487..00000000 --- a/env_xbb_lastest_cheerio/env/Window.js +++ /dev/null @@ -1,19 +0,0 @@ -// Window对象 -Window = function Window(){ - if (arguments[0] !=='bobo'){ - return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") - }} -bodavm.toolsFunc.safeProto(Window, "Window"); -Window.prototype.__proto__=WindowProperties.prototype; -Window.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(Window, "TEMPORARY", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(Window, "PERSISTENT", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(Window.prototype, "TEMPORARY", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(Window.prototype, "PERSISTENT", {configurable:false, enumerable:true, writable:false, value:1}); - -// self=window; -// window==self ; ///true -// window =new Proxy(window,{}); -// window==self;//false -//需要连续赋值,可以过代理检测 -// top=self=window=new Proxy(window,{}) diff --git a/env_xbb_lastest_cheerio/env/WindowProperties.js b/env_xbb_lastest_cheerio/env/WindowProperties.js deleted file mode 100644 index ccc35c94..00000000 --- a/env_xbb_lastest_cheerio/env/WindowProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -WindowProperties = function WindowProperties() { - return bodavm.toolsFunc.throwError("TypeError","Illegal constructor") - // throw ReferenceError(`WindowProperties is not defined - // at :1:100`) - ; -} -bodavm.toolsFunc.safeProto(WindowProperties, 'WindowProperties') -WindowProperties.prototype.__proto__=EventTarget.prototype; -WindowProperties.__proto__=EventTarget; -delete WindowProperties.prototype.constructor; diff --git a/env_xbb_lastest_cheerio/env/XMLHttpRequest.js b/env_xbb_lastest_cheerio/env/XMLHttpRequest.js deleted file mode 100644 index 92c863a5..00000000 --- a/env_xbb_lastest_cheerio/env/XMLHttpRequest.js +++ /dev/null @@ -1,34 +0,0 @@ -// XMLHttpRequest对象 -XMLHttpRequest = function XMLHttpRequest(){} -bodavm.toolsFunc.safeProto(XMLHttpRequest, "XMLHttpRequest"); -XMLHttpRequest.prototype.__proto__=XMLHttpRequestEventTarget.prototype; -XMLHttpRequest.__proto__=XMLHttpRequestEventTarget; -bodavm.toolsFunc.defineProperty(XMLHttpRequest, "UNSENT", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest, "OPENED", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest, "HEADERS_RECEIVED", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest, "LOADING", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest, "DONE", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "onreadystatechange", {configurable:true, enumerable:true, get:function onreadystatechange (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "onreadystatechange_get", arguments)}, set:function onreadystatechange (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "onreadystatechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "readyState", {configurable:true, enumerable:true, get:function readyState (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "readyState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "timeout", {configurable:true, enumerable:true, get:function timeout (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "timeout_get", arguments)}, set:function timeout (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "timeout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "withCredentials", {configurable:true, enumerable:true, get:function withCredentials (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "withCredentials_get", arguments)}, set:function withCredentials (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "withCredentials_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "upload", {configurable:true, enumerable:true, get:function upload (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "upload_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "responseURL", {configurable:true, enumerable:true, get:function responseURL (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "responseURL_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "status", {configurable:true, enumerable:true, get:function status (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "status_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "statusText", {configurable:true, enumerable:true, get:function statusText (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "statusText_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "responseType", {configurable:true, enumerable:true, get:function responseType (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "responseType_get", arguments)}, set:function responseType (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "responseType_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "response", {configurable:true, enumerable:true, get:function response (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "response_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "responseText", {configurable:true, enumerable:true, get:function responseText (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "responseText_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "responseXML", {configurable:true, enumerable:true, get:function responseXML (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "responseXML_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "UNSENT", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "OPENED", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "HEADERS_RECEIVED", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "LOADING", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "DONE", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "abort", {configurable:true, enumerable:true, writable:true, value:function abort (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "abort", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "getAllResponseHeaders", {configurable:true, enumerable:true, writable:true, value:function getAllResponseHeaders (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "getAllResponseHeaders", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "getResponseHeader", {configurable:true, enumerable:true, writable:true, value:function getResponseHeader (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "getResponseHeader", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "open", {configurable:true, enumerable:true, writable:true, value:function open (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "open", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "overrideMimeType", {configurable:true, enumerable:true, writable:true, value:function overrideMimeType (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "overrideMimeType", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "send", {configurable:true, enumerable:true, writable:true, value:function send (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "send", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequest.prototype, "setRequestHeader", {configurable:true, enumerable:true, writable:true, value:function setRequestHeader (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequest.prototype, "XMLHttpRequest", "setRequestHeader", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/XMLHttpRequestEventTarget.js b/env_xbb_lastest_cheerio/env/XMLHttpRequestEventTarget.js deleted file mode 100644 index f34c2d7d..00000000 --- a/env_xbb_lastest_cheerio/env/XMLHttpRequestEventTarget.js +++ /dev/null @@ -1,12 +0,0 @@ -// XMLHttpRequestEventTarget对象 -XMLHttpRequestEventTarget = function XMLHttpRequestEventTarget(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(XMLHttpRequestEventTarget, "XMLHttpRequestEventTarget"); -XMLHttpRequestEventTarget.prototype.__proto__=EventTarget.prototype; -XMLHttpRequestEventTarget.__proto__=EventTarget; -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "onloadstart", {configurable:true, enumerable:true, get:function onloadstart (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onloadstart_get", arguments)}, set:function onloadstart (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onloadstart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "onprogress", {configurable:true, enumerable:true, get:function onprogress (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onprogress_get", arguments)}, set:function onprogress (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onprogress_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "onabort", {configurable:true, enumerable:true, get:function onabort (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onabort_get", arguments)}, set:function onabort (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onabort_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "onload", {configurable:true, enumerable:true, get:function onload (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onload_get", arguments)}, set:function onload (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "ontimeout", {configurable:true, enumerable:true, get:function ontimeout (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "ontimeout_get", arguments)}, set:function ontimeout (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "ontimeout_set", arguments)}}); -bodavm.toolsFunc.defineProperty(XMLHttpRequestEventTarget.prototype, "onloadend", {configurable:true, enumerable:true, get:function onloadend (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onloadend_get", arguments)}, set:function onloadend (){return bodavm.toolsFunc.dispatch(this, XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget", "onloadend_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLAllCollection.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLAllCollection.js deleted file mode 100644 index 272cf3e5..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLAllCollection.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLAllCollection对象 -HTMLAllCollection = function HTMLAllCollection(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLAllCollection, "HTMLAllCollection"); -bodavm.toolsFunc.defineProperty(HTMLAllCollection.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, HTMLAllCollection.prototype, "HTMLAllCollection", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLAllCollection.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, HTMLAllCollection.prototype, "HTMLAllCollection", "item", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAllCollection.prototype, "namedItem", {configurable:true, enumerable:true, writable:true, value:function namedItem (){return bodavm.toolsFunc.dispatch(this, HTMLAllCollection.prototype, "HTMLAllCollection", "namedItem", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLAnchorElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLAnchorElement.js deleted file mode 100644 index 9b4283fc..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLAnchorElement.js +++ /dev/null @@ -1,32 +0,0 @@ -// HTMLAnchorElement对象 -HTMLAnchorElement = function HTMLAnchorElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLAnchorElement, "HTMLAnchorElement"); -HTMLAnchorElement.prototype.__proto__=HTMLElement.prototype; -HTMLAnchorElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "target", {configurable:true, enumerable:true, get:function target (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "target_get", arguments)}, set:function target (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "target_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "download", {configurable:true, enumerable:true, get:function download (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "download_get", arguments)}, set:function download (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "download_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "ping", {configurable:true, enumerable:true, get:function ping (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "ping_get", arguments)}, set:function ping (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "ping_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "rel", {configurable:true, enumerable:true, get:function rel (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "rel_get", arguments)}, set:function rel (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "rel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "relList", {configurable:true, enumerable:true, get:function relList (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "relList_get", arguments)}, set:function relList (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "relList_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "hreflang", {configurable:true, enumerable:true, get:function hreflang (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hreflang_get", arguments)}, set:function hreflang (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hreflang_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "type_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "referrerPolicy_get", arguments)}, set:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "referrerPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "text_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "coords", {configurable:true, enumerable:true, get:function coords (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "coords_get", arguments)}, set:function coords (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "coords_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "charset", {configurable:true, enumerable:true, get:function charset (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "charset_get", arguments)}, set:function charset (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "charset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "rev", {configurable:true, enumerable:true, get:function rev (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "rev_get", arguments)}, set:function rev (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "rev_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "shape", {configurable:true, enumerable:true, get:function shape (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "shape_get", arguments)}, set:function shape (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "shape_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "origin", {configurable:true, enumerable:true, get:function origin (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "origin_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "protocol", {configurable:true, enumerable:true, get:function protocol (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "protocol_get", arguments)}, set:function protocol (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "protocol_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "username", {configurable:true, enumerable:true, get:function username (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "username_get", arguments)}, set:function username (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "username_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "password", {configurable:true, enumerable:true, get:function password (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "password_get", arguments)}, set:function password (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "password_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "host", {configurable:true, enumerable:true, get:function host (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "host_get", arguments)}, set:function host (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "host_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "hostname", {configurable:true, enumerable:true, get:function hostname (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hostname_get", arguments)}, set:function hostname (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hostname_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "port", {configurable:true, enumerable:true, get:function port (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "port_get", arguments)}, set:function port (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "port_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "pathname", {configurable:true, enumerable:true, get:function pathname (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "pathname_get", arguments)}, set:function pathname (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "pathname_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "search", {configurable:true, enumerable:true, get:function search (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "search_get", arguments)}, set:function search (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "search_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "hash", {configurable:true, enumerable:true, get:function hash (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hash_get", arguments)}, set:function hash (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hash_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "href", {configurable:true, enumerable:true, get:function href (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "href_get", arguments)}, set:function href (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "href_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "toString", {configurable:true, enumerable:true, writable:true, value:function toString (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "toString", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLAnchorElement.prototype, "hrefTranslate", {configurable:true, enumerable:true, get:function hrefTranslate (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hrefTranslate_get", arguments)}, set:function hrefTranslate (){return bodavm.toolsFunc.dispatch(this, HTMLAnchorElement.prototype, "HTMLAnchorElement", "hrefTranslate_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLBRElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLBRElement.js deleted file mode 100644 index 8c00a190..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLBRElement.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLBRElement对象 -HTMLBRElement = function HTMLBRElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLBRElement, "HTMLBRElement"); -HTMLBRElement.prototype.__proto__=HTMLElement.prototype; -HTMLBRElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLBRElement.prototype, "clear", {configurable:true, enumerable:true, get:function clear (){return bodavm.toolsFunc.dispatch(this, HTMLBRElement.prototype, "HTMLBRElement", "clear_get", arguments)}, set:function clear (){return bodavm.toolsFunc.dispatch(this, HTMLBRElement.prototype, "HTMLBRElement", "clear_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLBodyElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLBodyElement.js deleted file mode 100644 index c555a652..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLBodyElement.js +++ /dev/null @@ -1,33 +0,0 @@ -// HTMLBodyElement对象 -HTMLBodyElement = function HTMLBodyElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLBodyElement, "HTMLBodyElement"); -HTMLBodyElement.prototype.__proto__=HTMLElement.prototype; -HTMLBodyElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "text_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "link", {configurable:true, enumerable:true, get:function link (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "link_get", arguments)}, set:function link (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "link_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "vLink", {configurable:true, enumerable:true, get:function vLink (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "vLink_get", arguments)}, set:function vLink (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "vLink_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "aLink", {configurable:true, enumerable:true, get:function aLink (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "aLink_get", arguments)}, set:function aLink (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "aLink_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "bgColor", {configurable:true, enumerable:true, get:function bgColor (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "bgColor_get", arguments)}, set:function bgColor (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "bgColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "background", {configurable:true, enumerable:true, get:function background (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "background_get", arguments)}, set:function background (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "background_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onblur", {configurable:true, enumerable:true, get:function onblur (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onblur_get", arguments)}, set:function onblur (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onblur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onfocus", {configurable:true, enumerable:true, get:function onfocus (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onfocus_get", arguments)}, set:function onfocus (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onfocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onload", {configurable:true, enumerable:true, get:function onload (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onload_get", arguments)}, set:function onload (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onresize", {configurable:true, enumerable:true, get:function onresize (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onresize_get", arguments)}, set:function onresize (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onresize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onscroll", {configurable:true, enumerable:true, get:function onscroll (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onscroll_get", arguments)}, set:function onscroll (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onscroll_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onafterprint", {configurable:true, enumerable:true, get:function onafterprint (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onafterprint_get", arguments)}, set:function onafterprint (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onafterprint_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onbeforeprint", {configurable:true, enumerable:true, get:function onbeforeprint (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onbeforeprint_get", arguments)}, set:function onbeforeprint (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onbeforeprint_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onbeforeunload", {configurable:true, enumerable:true, get:function onbeforeunload (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onbeforeunload_get", arguments)}, set:function onbeforeunload (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onbeforeunload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onhashchange", {configurable:true, enumerable:true, get:function onhashchange (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onhashchange_get", arguments)}, set:function onhashchange (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onhashchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onlanguagechange", {configurable:true, enumerable:true, get:function onlanguagechange (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onlanguagechange_get", arguments)}, set:function onlanguagechange (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onlanguagechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onmessage", {configurable:true, enumerable:true, get:function onmessage (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onmessage_get", arguments)}, set:function onmessage (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onmessage_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onmessageerror", {configurable:true, enumerable:true, get:function onmessageerror (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onmessageerror_get", arguments)}, set:function onmessageerror (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onmessageerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onoffline", {configurable:true, enumerable:true, get:function onoffline (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onoffline_get", arguments)}, set:function onoffline (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onoffline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "ononline", {configurable:true, enumerable:true, get:function ononline (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "ononline_get", arguments)}, set:function ononline (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "ononline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onpagehide", {configurable:true, enumerable:true, get:function onpagehide (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onpagehide_get", arguments)}, set:function onpagehide (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onpagehide_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onpageshow", {configurable:true, enumerable:true, get:function onpageshow (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onpageshow_get", arguments)}, set:function onpageshow (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onpageshow_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onpopstate", {configurable:true, enumerable:true, get:function onpopstate (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onpopstate_get", arguments)}, set:function onpopstate (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onpopstate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onrejectionhandled", {configurable:true, enumerable:true, get:function onrejectionhandled (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onrejectionhandled_get", arguments)}, set:function onrejectionhandled (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onrejectionhandled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onstorage", {configurable:true, enumerable:true, get:function onstorage (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onstorage_get", arguments)}, set:function onstorage (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onstorage_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onunhandledrejection", {configurable:true, enumerable:true, get:function onunhandledrejection (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onunhandledrejection_get", arguments)}, set:function onunhandledrejection (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onunhandledrejection_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLBodyElement.prototype, "onunload", {configurable:true, enumerable:true, get:function onunload (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onunload_get", arguments)}, set:function onunload (){return bodavm.toolsFunc.dispatch(this, HTMLBodyElement.prototype, "HTMLBodyElement", "onunload_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLButtonElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLButtonElement.js deleted file mode 100644 index d008a929..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLButtonElement.js +++ /dev/null @@ -1,22 +0,0 @@ -// HTMLButtonElement对象 -HTMLButtonElement = function HTMLButtonElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLButtonElement, "HTMLButtonElement"); -HTMLButtonElement.prototype.__proto__=HTMLElement.prototype; -HTMLButtonElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "formAction", {configurable:true, enumerable:true, get:function formAction (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formAction_get", arguments)}, set:function formAction (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formAction_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "formEnctype", {configurable:true, enumerable:true, get:function formEnctype (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formEnctype_get", arguments)}, set:function formEnctype (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formEnctype_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "formMethod", {configurable:true, enumerable:true, get:function formMethod (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formMethod_get", arguments)}, set:function formMethod (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formMethod_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "formNoValidate", {configurable:true, enumerable:true, get:function formNoValidate (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formNoValidate_get", arguments)}, set:function formNoValidate (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formNoValidate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "formTarget", {configurable:true, enumerable:true, get:function formTarget (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formTarget_get", arguments)}, set:function formTarget (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "formTarget_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "type_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "willValidate", {configurable:true, enumerable:true, get:function willValidate (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "willValidate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "validity", {configurable:true, enumerable:true, get:function validity (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "validity_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "validationMessage", {configurable:true, enumerable:true, get:function validationMessage (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "validationMessage_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "labels", {configurable:true, enumerable:true, get:function labels (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "labels_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "checkValidity", {configurable:true, enumerable:true, writable:true, value:function checkValidity (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "checkValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "reportValidity", {configurable:true, enumerable:true, writable:true, value:function reportValidity (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "reportValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLButtonElement.prototype, "setCustomValidity", {configurable:true, enumerable:true, writable:true, value:function setCustomValidity (){return bodavm.toolsFunc.dispatch(this, HTMLButtonElement.prototype, "HTMLButtonElement", "setCustomValidity", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLCanvasElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLCanvasElement.js deleted file mode 100644 index 98f8dca2..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLCanvasElement.js +++ /dev/null @@ -1,12 +0,0 @@ -// HTMLCanvasElement对象 -HTMLCanvasElement = function HTMLCanvasElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLCanvasElement, "HTMLCanvasElement"); -HTMLCanvasElement.prototype.__proto__=HTMLElement.prototype; -HTMLCanvasElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "captureStream", {configurable:true, enumerable:true, writable:true, value:function captureStream (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "captureStream", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "getContext", {configurable:true, enumerable:true, writable:true, value:function getContext (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "getContext", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "toBlob", {configurable:true, enumerable:true, writable:true, value:function toBlob (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "toBlob", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "toDataURL", {configurable:true, enumerable:true, writable:true, value:function toDataURL (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "toDataURL", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLCanvasElement.prototype, "transferControlToOffscreen", {configurable:true, enumerable:true, writable:true, value:function transferControlToOffscreen (){return bodavm.toolsFunc.dispatch(this, HTMLCanvasElement.prototype, "HTMLCanvasElement", "transferControlToOffscreen", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLDivElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLDivElement.js deleted file mode 100644 index 69712282..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLDivElement.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLDivElement对象 -HTMLDivElement = function HTMLDivElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLDivElement, "HTMLDivElement"); -HTMLDivElement.prototype.__proto__=HTMLElement.prototype; -HTMLDivElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLDivElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLDivElement.prototype, "HTMLDivElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLDivElement.prototype, "HTMLDivElement", "align_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFieldSetElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLFieldSetElement.js deleted file mode 100644 index 7e56ea1c..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFieldSetElement.js +++ /dev/null @@ -1,16 +0,0 @@ -// HTMLFieldSetElement对象 -HTMLFieldSetElement = function HTMLFieldSetElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLFieldSetElement, "HTMLFieldSetElement"); -HTMLFieldSetElement.prototype.__proto__=HTMLElement.prototype; -HTMLFieldSetElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "type_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "elements", {configurable:true, enumerable:true, get:function elements (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "elements_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "willValidate", {configurable:true, enumerable:true, get:function willValidate (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "willValidate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "validity", {configurable:true, enumerable:true, get:function validity (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "validity_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "validationMessage", {configurable:true, enumerable:true, get:function validationMessage (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "validationMessage_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "checkValidity", {configurable:true, enumerable:true, writable:true, value:function checkValidity (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "checkValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "reportValidity", {configurable:true, enumerable:true, writable:true, value:function reportValidity (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "reportValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFieldSetElement.prototype, "setCustomValidity", {configurable:true, enumerable:true, writable:true, value:function setCustomValidity (){return bodavm.toolsFunc.dispatch(this, HTMLFieldSetElement.prototype, "HTMLFieldSetElement", "setCustomValidity", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFontElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLFontElement.js deleted file mode 100644 index 04f3808d..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFontElement.js +++ /dev/null @@ -1,8 +0,0 @@ -// HTMLFontElement对象 -HTMLFontElement = function HTMLFontElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLFontElement, "HTMLFontElement"); -HTMLFontElement.prototype.__proto__=HTMLElement.prototype; -HTMLFontElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLFontElement.prototype, "color", {configurable:true, enumerable:true, get:function color (){return bodavm.toolsFunc.dispatch(this, HTMLFontElement.prototype, "HTMLFontElement", "color_get", arguments)}, set:function color (){return bodavm.toolsFunc.dispatch(this, HTMLFontElement.prototype, "HTMLFontElement", "color_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFontElement.prototype, "face", {configurable:true, enumerable:true, get:function face (){return bodavm.toolsFunc.dispatch(this, HTMLFontElement.prototype, "HTMLFontElement", "face_get", arguments)}, set:function face (){return bodavm.toolsFunc.dispatch(this, HTMLFontElement.prototype, "HTMLFontElement", "face_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFontElement.prototype, "size", {configurable:true, enumerable:true, get:function size (){return bodavm.toolsFunc.dispatch(this, HTMLFontElement.prototype, "HTMLFontElement", "size_get", arguments)}, set:function size (){return bodavm.toolsFunc.dispatch(this, HTMLFontElement.prototype, "HTMLFontElement", "size_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFormElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLFormElement.js deleted file mode 100644 index ca608e68..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFormElement.js +++ /dev/null @@ -1,21 +0,0 @@ -// HTMLFormElement对象 -HTMLFormElement = function HTMLFormElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLFormElement, "HTMLFormElement"); -HTMLFormElement.prototype.__proto__=HTMLElement.prototype; -HTMLFormElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "acceptCharset", {configurable:true, enumerable:true, get:function acceptCharset (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "acceptCharset_get", arguments)}, set:function acceptCharset (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "acceptCharset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "action", {configurable:true, enumerable:true, get:function action (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "action_get", arguments)}, set:function action (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "action_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "autocomplete", {configurable:true, enumerable:true, get:function autocomplete (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "autocomplete_get", arguments)}, set:function autocomplete (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "autocomplete_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "enctype", {configurable:true, enumerable:true, get:function enctype (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "enctype_get", arguments)}, set:function enctype (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "enctype_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "encoding", {configurable:true, enumerable:true, get:function encoding (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "encoding_get", arguments)}, set:function encoding (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "encoding_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "method", {configurable:true, enumerable:true, get:function method (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "method_get", arguments)}, set:function method (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "method_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "noValidate", {configurable:true, enumerable:true, get:function noValidate (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "noValidate_get", arguments)}, set:function noValidate (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "noValidate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "target", {configurable:true, enumerable:true, get:function target (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "target_get", arguments)}, set:function target (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "target_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "elements", {configurable:true, enumerable:true, get:function elements (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "elements_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "length_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "checkValidity", {configurable:true, enumerable:true, writable:true, value:function checkValidity (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "checkValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "reportValidity", {configurable:true, enumerable:true, writable:true, value:function reportValidity (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "reportValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "requestSubmit", {configurable:true, enumerable:true, writable:true, value:function requestSubmit (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "requestSubmit", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "reset", {configurable:true, enumerable:true, writable:true, value:function reset (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "reset", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFormElement.prototype, "submit", {configurable:true, enumerable:true, writable:true, value:function submit (){return bodavm.toolsFunc.dispatch(this, HTMLFormElement.prototype, "HTMLFormElement", "submit", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFrameSetElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLFrameSetElement.js deleted file mode 100644 index be0bab56..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLFrameSetElement.js +++ /dev/null @@ -1,29 +0,0 @@ -// HTMLFrameSetElement对象 -HTMLFrameSetElement = function HTMLFrameSetElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLFrameSetElement, "HTMLFrameSetElement"); -HTMLFrameSetElement.prototype.__proto__=HTMLElement.prototype; -HTMLFrameSetElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "cols", {configurable:true, enumerable:true, get:function cols (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "cols_get", arguments)}, set:function cols (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "cols_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "rows", {configurable:true, enumerable:true, get:function rows (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "rows_get", arguments)}, set:function rows (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "rows_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onblur", {configurable:true, enumerable:true, get:function onblur (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onblur_get", arguments)}, set:function onblur (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onblur_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onerror", {configurable:true, enumerable:true, get:function onerror (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onerror_get", arguments)}, set:function onerror (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onfocus", {configurable:true, enumerable:true, get:function onfocus (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onfocus_get", arguments)}, set:function onfocus (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onfocus_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onload", {configurable:true, enumerable:true, get:function onload (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onload_get", arguments)}, set:function onload (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onresize", {configurable:true, enumerable:true, get:function onresize (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onresize_get", arguments)}, set:function onresize (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onresize_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onscroll", {configurable:true, enumerable:true, get:function onscroll (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onscroll_get", arguments)}, set:function onscroll (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onscroll_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onafterprint", {configurable:true, enumerable:true, get:function onafterprint (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onafterprint_get", arguments)}, set:function onafterprint (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onafterprint_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onbeforeprint", {configurable:true, enumerable:true, get:function onbeforeprint (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onbeforeprint_get", arguments)}, set:function onbeforeprint (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onbeforeprint_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onbeforeunload", {configurable:true, enumerable:true, get:function onbeforeunload (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onbeforeunload_get", arguments)}, set:function onbeforeunload (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onbeforeunload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onhashchange", {configurable:true, enumerable:true, get:function onhashchange (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onhashchange_get", arguments)}, set:function onhashchange (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onhashchange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onlanguagechange", {configurable:true, enumerable:true, get:function onlanguagechange (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onlanguagechange_get", arguments)}, set:function onlanguagechange (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onlanguagechange_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onmessage", {configurable:true, enumerable:true, get:function onmessage (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onmessage_get", arguments)}, set:function onmessage (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onmessage_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onmessageerror", {configurable:true, enumerable:true, get:function onmessageerror (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onmessageerror_get", arguments)}, set:function onmessageerror (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onmessageerror_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onoffline", {configurable:true, enumerable:true, get:function onoffline (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onoffline_get", arguments)}, set:function onoffline (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onoffline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "ononline", {configurable:true, enumerable:true, get:function ononline (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "ononline_get", arguments)}, set:function ononline (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "ononline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onpagehide", {configurable:true, enumerable:true, get:function onpagehide (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onpagehide_get", arguments)}, set:function onpagehide (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onpagehide_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onpageshow", {configurable:true, enumerable:true, get:function onpageshow (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onpageshow_get", arguments)}, set:function onpageshow (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onpageshow_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onpopstate", {configurable:true, enumerable:true, get:function onpopstate (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onpopstate_get", arguments)}, set:function onpopstate (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onpopstate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onrejectionhandled", {configurable:true, enumerable:true, get:function onrejectionhandled (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onrejectionhandled_get", arguments)}, set:function onrejectionhandled (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onrejectionhandled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onstorage", {configurable:true, enumerable:true, get:function onstorage (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onstorage_get", arguments)}, set:function onstorage (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onstorage_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onunhandledrejection", {configurable:true, enumerable:true, get:function onunhandledrejection (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onunhandledrejection_get", arguments)}, set:function onunhandledrejection (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onunhandledrejection_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLFrameSetElement.prototype, "onunload", {configurable:true, enumerable:true, get:function onunload (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onunload_get", arguments)}, set:function onunload (){return bodavm.toolsFunc.dispatch(this, HTMLFrameSetElement.prototype, "HTMLFrameSetElement", "onunload_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLHeadElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLHeadElement.js deleted file mode 100644 index 33603e7f..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLHeadElement.js +++ /dev/null @@ -1,5 +0,0 @@ -// HTMLHeadElement对象 -HTMLHeadElement = function HTMLHeadElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLHeadElement, "HTMLHeadElement"); -HTMLHeadElement.prototype.__proto__=HTMLElement.prototype; -HTMLHeadElement.__proto__=HTMLElement; diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLHeadingElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLHeadingElement.js deleted file mode 100644 index debd04cd..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLHeadingElement.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLHeadingElement对象 -HTMLHeadingElement = function HTMLHeadingElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLHeadingElement, "HTMLHeadingElement"); -HTMLHeadingElement.prototype.__proto__=HTMLElement.prototype; -HTMLHeadingElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLHeadingElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLHeadingElement.prototype, "HTMLHeadingElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLHeadingElement.prototype, "HTMLHeadingElement", "align_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLHtmlElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLHtmlElement.js deleted file mode 100644 index 1fe4f20f..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLHtmlElement.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLHtmlElement对象 -HTMLHtmlElement = function HTMLHtmlElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLHtmlElement, "HTMLHtmlElement"); -HTMLHtmlElement.prototype.__proto__=HTMLElement.prototype; -HTMLHtmlElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLHtmlElement.prototype, "version", {configurable:true, enumerable:true, get:function version (){return bodavm.toolsFunc.dispatch(this, HTMLHtmlElement.prototype, "HTMLHtmlElement", "version_get", arguments)}, set:function version (){return bodavm.toolsFunc.dispatch(this, HTMLHtmlElement.prototype, "HTMLHtmlElement", "version_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLIFrameElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLIFrameElement.js deleted file mode 100644 index d3d2c984..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLIFrameElement.js +++ /dev/null @@ -1,27 +0,0 @@ -// HTMLIFrameElement对象 -HTMLIFrameElement = function HTMLIFrameElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLIFrameElement, "HTMLIFrameElement"); -HTMLIFrameElement.prototype.__proto__=HTMLElement.prototype; -HTMLIFrameElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "src", {configurable:true, enumerable:true, get:function src (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "src_get", arguments)}, set:function src (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "src_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "srcdoc", {configurable:true, enumerable:true, get:function srcdoc (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "srcdoc_get", arguments)}, set:function srcdoc (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "srcdoc_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "sandbox", {configurable:true, enumerable:true, get:function sandbox (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "sandbox_get", arguments)}, set:function sandbox (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "sandbox_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "allowFullscreen", {configurable:true, enumerable:true, get:function allowFullscreen (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "allowFullscreen_get", arguments)}, set:function allowFullscreen (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "allowFullscreen_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "contentDocument", {configurable:true, enumerable:true, get:function contentDocument (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "contentDocument_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "contentWindow", {configurable:true, enumerable:true, get:function contentWindow (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "contentWindow_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "referrerPolicy_get", arguments)}, set:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "referrerPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "csp", {configurable:true, enumerable:true, get:function csp (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "csp_get", arguments)}, set:function csp (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "csp_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "allow", {configurable:true, enumerable:true, get:function allow (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "allow_get", arguments)}, set:function allow (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "allow_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "featurePolicy", {configurable:true, enumerable:true, get:function featurePolicy (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "featurePolicy_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "align_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "scrolling", {configurable:true, enumerable:true, get:function scrolling (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "scrolling_get", arguments)}, set:function scrolling (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "scrolling_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "frameBorder", {configurable:true, enumerable:true, get:function frameBorder (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "frameBorder_get", arguments)}, set:function frameBorder (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "frameBorder_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "longDesc", {configurable:true, enumerable:true, get:function longDesc (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "longDesc_get", arguments)}, set:function longDesc (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "longDesc_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "marginHeight", {configurable:true, enumerable:true, get:function marginHeight (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "marginHeight_get", arguments)}, set:function marginHeight (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "marginHeight_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "marginWidth", {configurable:true, enumerable:true, get:function marginWidth (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "marginWidth_get", arguments)}, set:function marginWidth (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "marginWidth_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "getSVGDocument", {configurable:true, enumerable:true, writable:true, value:function getSVGDocument (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "getSVGDocument", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "loading", {configurable:true, enumerable:true, get:function loading (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "loading_get", arguments)}, set:function loading (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "loading_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLIFrameElement.prototype, "allowPaymentRequest", {configurable:true, enumerable:true, get:function allowPaymentRequest (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "allowPaymentRequest_get", arguments)}, set:function allowPaymentRequest (){return bodavm.toolsFunc.dispatch(this, HTMLIFrameElement.prototype, "HTMLIFrameElement", "allowPaymentRequest_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLImageElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLImageElement.js deleted file mode 100644 index 67f0aa89..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLImageElement.js +++ /dev/null @@ -1,35 +0,0 @@ -// HTMLImageElement对象 -HTMLImageElement = function HTMLImageElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLImageElement, "HTMLImageElement"); -HTMLImageElement.prototype.__proto__=HTMLElement.prototype; -HTMLImageElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "alt", {configurable:true, enumerable:true, get:function alt (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "alt_get", arguments)}, set:function alt (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "alt_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "src", {configurable:true, enumerable:true, get:function src (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "src_get", arguments)}, set:function src (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "src_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "srcset", {configurable:true, enumerable:true, get:function srcset (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "srcset_get", arguments)}, set:function srcset (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "srcset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "sizes", {configurable:true, enumerable:true, get:function sizes (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "sizes_get", arguments)}, set:function sizes (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "sizes_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "crossOrigin", {configurable:true, enumerable:true, get:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "crossOrigin_get", arguments)}, set:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "crossOrigin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "useMap", {configurable:true, enumerable:true, get:function useMap (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "useMap_get", arguments)}, set:function useMap (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "useMap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "isMap", {configurable:true, enumerable:true, get:function isMap (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "isMap_get", arguments)}, set:function isMap (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "isMap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "naturalWidth", {configurable:true, enumerable:true, get:function naturalWidth (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "naturalWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "naturalHeight", {configurable:true, enumerable:true, get:function naturalHeight (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "naturalHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "complete", {configurable:true, enumerable:true, get:function complete (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "complete_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "currentSrc", {configurable:true, enumerable:true, get:function currentSrc (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "currentSrc_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "referrerPolicy_get", arguments)}, set:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "referrerPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "decoding", {configurable:true, enumerable:true, get:function decoding (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "decoding_get", arguments)}, set:function decoding (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "decoding_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "lowsrc", {configurable:true, enumerable:true, get:function lowsrc (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "lowsrc_get", arguments)}, set:function lowsrc (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "lowsrc_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "align_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "hspace", {configurable:true, enumerable:true, get:function hspace (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "hspace_get", arguments)}, set:function hspace (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "hspace_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "vspace", {configurable:true, enumerable:true, get:function vspace (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "vspace_get", arguments)}, set:function vspace (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "vspace_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "longDesc", {configurable:true, enumerable:true, get:function longDesc (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "longDesc_get", arguments)}, set:function longDesc (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "longDesc_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "border", {configurable:true, enumerable:true, get:function border (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "border_get", arguments)}, set:function border (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "border_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "x", {configurable:true, enumerable:true, get:function x (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "x_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "y", {configurable:true, enumerable:true, get:function y (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "y_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "decode", {configurable:true, enumerable:true, writable:true, value:function decode (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "decode", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "fetchPriority", {configurable:true, enumerable:true, get:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "fetchPriority_get", arguments)}, set:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "fetchPriority_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLImageElement.prototype, "loading", {configurable:true, enumerable:true, get:function loading (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "loading_get", arguments)}, set:function loading (){return bodavm.toolsFunc.dispatch(this, HTMLImageElement.prototype, "HTMLImageElement", "loading_set", arguments)}}); - - - diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLInputElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLInputElement.js deleted file mode 100644 index ef39443f..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLInputElement.js +++ /dev/null @@ -1,62 +0,0 @@ -// HTMLInputElement对象 -HTMLInputElement = function HTMLInputElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLInputElement, "HTMLInputElement"); -HTMLInputElement.prototype.__proto__=HTMLElement.prototype; -HTMLInputElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "accept", {configurable:true, enumerable:true, get:function accept (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "accept_get", arguments)}, set:function accept (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "accept_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "alt", {configurable:true, enumerable:true, get:function alt (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "alt_get", arguments)}, set:function alt (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "alt_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "autocomplete", {configurable:true, enumerable:true, get:function autocomplete (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "autocomplete_get", arguments)}, set:function autocomplete (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "autocomplete_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "defaultChecked", {configurable:true, enumerable:true, get:function defaultChecked (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "defaultChecked_get", arguments)}, set:function defaultChecked (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "defaultChecked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "checked", {configurable:true, enumerable:true, get:function checked (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "checked_get", arguments)}, set:function checked (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "checked_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "dirName", {configurable:true, enumerable:true, get:function dirName (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "dirName_get", arguments)}, set:function dirName (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "dirName_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "files", {configurable:true, enumerable:true, get:function files (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "files_get", arguments)}, set:function files (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "files_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "formAction", {configurable:true, enumerable:true, get:function formAction (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formAction_get", arguments)}, set:function formAction (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formAction_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "formEnctype", {configurable:true, enumerable:true, get:function formEnctype (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formEnctype_get", arguments)}, set:function formEnctype (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formEnctype_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "formMethod", {configurable:true, enumerable:true, get:function formMethod (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formMethod_get", arguments)}, set:function formMethod (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formMethod_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "formNoValidate", {configurable:true, enumerable:true, get:function formNoValidate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formNoValidate_get", arguments)}, set:function formNoValidate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formNoValidate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "formTarget", {configurable:true, enumerable:true, get:function formTarget (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formTarget_get", arguments)}, set:function formTarget (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "formTarget_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "indeterminate", {configurable:true, enumerable:true, get:function indeterminate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "indeterminate_get", arguments)}, set:function indeterminate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "indeterminate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "list", {configurable:true, enumerable:true, get:function list (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "list_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "max", {configurable:true, enumerable:true, get:function max (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "max_get", arguments)}, set:function max (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "max_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "maxLength", {configurable:true, enumerable:true, get:function maxLength (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "maxLength_get", arguments)}, set:function maxLength (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "maxLength_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "min", {configurable:true, enumerable:true, get:function min (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "min_get", arguments)}, set:function min (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "min_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "minLength", {configurable:true, enumerable:true, get:function minLength (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "minLength_get", arguments)}, set:function minLength (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "minLength_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "multiple", {configurable:true, enumerable:true, get:function multiple (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "multiple_get", arguments)}, set:function multiple (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "multiple_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "pattern", {configurable:true, enumerable:true, get:function pattern (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "pattern_get", arguments)}, set:function pattern (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "pattern_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "placeholder", {configurable:true, enumerable:true, get:function placeholder (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "placeholder_get", arguments)}, set:function placeholder (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "placeholder_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "readOnly", {configurable:true, enumerable:true, get:function readOnly (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "readOnly_get", arguments)}, set:function readOnly (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "readOnly_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "required", {configurable:true, enumerable:true, get:function required (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "required_get", arguments)}, set:function required (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "required_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "size", {configurable:true, enumerable:true, get:function size (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "size_get", arguments)}, set:function size (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "size_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "src", {configurable:true, enumerable:true, get:function src (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "src_get", arguments)}, set:function src (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "src_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "step", {configurable:true, enumerable:true, get:function step (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "step_get", arguments)}, set:function step (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "step_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "type_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "defaultValue", {configurable:true, enumerable:true, get:function defaultValue (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "defaultValue_get", arguments)}, set:function defaultValue (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "defaultValue_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "valueAsDate", {configurable:true, enumerable:true, get:function valueAsDate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "valueAsDate_get", arguments)}, set:function valueAsDate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "valueAsDate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "valueAsNumber", {configurable:true, enumerable:true, get:function valueAsNumber (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "valueAsNumber_get", arguments)}, set:function valueAsNumber (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "valueAsNumber_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "willValidate", {configurable:true, enumerable:true, get:function willValidate (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "willValidate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "validity", {configurable:true, enumerable:true, get:function validity (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "validity_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "validationMessage", {configurable:true, enumerable:true, get:function validationMessage (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "validationMessage_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "labels", {configurable:true, enumerable:true, get:function labels (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "labels_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "selectionStart", {configurable:true, enumerable:true, get:function selectionStart (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "selectionStart_get", arguments)}, set:function selectionStart (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "selectionStart_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "selectionEnd", {configurable:true, enumerable:true, get:function selectionEnd (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "selectionEnd_get", arguments)}, set:function selectionEnd (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "selectionEnd_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "selectionDirection", {configurable:true, enumerable:true, get:function selectionDirection (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "selectionDirection_get", arguments)}, set:function selectionDirection (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "selectionDirection_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "align_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "useMap", {configurable:true, enumerable:true, get:function useMap (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "useMap_get", arguments)}, set:function useMap (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "useMap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "webkitdirectory", {configurable:true, enumerable:true, get:function webkitdirectory (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "webkitdirectory_get", arguments)}, set:function webkitdirectory (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "webkitdirectory_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "incremental", {configurable:true, enumerable:true, get:function incremental (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "incremental_get", arguments)}, set:function incremental (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "incremental_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "checkValidity", {configurable:true, enumerable:true, writable:true, value:function checkValidity (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "checkValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "reportValidity", {configurable:true, enumerable:true, writable:true, value:function reportValidity (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "reportValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "select", {configurable:true, enumerable:true, writable:true, value:function select (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "select", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "setCustomValidity", {configurable:true, enumerable:true, writable:true, value:function setCustomValidity (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "setCustomValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "setRangeText", {configurable:true, enumerable:true, writable:true, value:function setRangeText (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "setRangeText", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "setSelectionRange", {configurable:true, enumerable:true, writable:true, value:function setSelectionRange (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "setSelectionRange", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "stepDown", {configurable:true, enumerable:true, writable:true, value:function stepDown (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "stepDown", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "stepUp", {configurable:true, enumerable:true, writable:true, value:function stepUp (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "stepUp", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "webkitEntries", {configurable:true, enumerable:true, get:function webkitEntries (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "webkitEntries_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLInputElement.prototype, "showPicker", {configurable:true, enumerable:true, writable:true, value:function showPicker (){return bodavm.toolsFunc.dispatch(this, HTMLInputElement.prototype, "HTMLInputElement", "showPicker", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLLIElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLLIElement.js deleted file mode 100644 index 6f590a43..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLLIElement.js +++ /dev/null @@ -1,7 +0,0 @@ -// HTMLLIElement对象 -HTMLLIElement = function HTMLLIElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLLIElement, "HTMLLIElement"); -HTMLLIElement.prototype.__proto__=HTMLElement.prototype; -HTMLLIElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLLIElement.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, HTMLLIElement.prototype, "HTMLLIElement", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, HTMLLIElement.prototype, "HTMLLIElement", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLIElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLLIElement.prototype, "HTMLLIElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLLIElement.prototype, "HTMLLIElement", "type_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLLegendElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLLegendElement.js deleted file mode 100644 index 779a53d3..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLLegendElement.js +++ /dev/null @@ -1,7 +0,0 @@ -// HTMLLegendElement对象 -HTMLLegendElement = function HTMLLegendElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLLegendElement, "HTMLLegendElement"); -HTMLLegendElement.prototype.__proto__=HTMLElement.prototype; -HTMLLegendElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLLegendElement.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, HTMLLegendElement.prototype, "HTMLLegendElement", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLLegendElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLLegendElement.prototype, "HTMLLegendElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLLegendElement.prototype, "HTMLLegendElement", "align_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLLinkElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLLinkElement.js deleted file mode 100644 index 362bf1e9..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLLinkElement.js +++ /dev/null @@ -1,24 +0,0 @@ -// HTMLLinkElement对象 -HTMLLinkElement = function HTMLLinkElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLLinkElement, "HTMLLinkElement"); -HTMLLinkElement.prototype.__proto__=HTMLElement.prototype; -HTMLLinkElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "href", {configurable:true, enumerable:true, get:function href (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "href_get", arguments)}, set:function href (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "href_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "crossOrigin", {configurable:true, enumerable:true, get:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "crossOrigin_get", arguments)}, set:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "crossOrigin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "rel", {configurable:true, enumerable:true, get:function rel (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "rel_get", arguments)}, set:function rel (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "rel_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "relList", {configurable:true, enumerable:true, get:function relList (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "relList_get", arguments)}, set:function relList (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "relList_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "media", {configurable:true, enumerable:true, get:function media (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "media_get", arguments)}, set:function media (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "media_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "hreflang", {configurable:true, enumerable:true, get:function hreflang (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "hreflang_get", arguments)}, set:function hreflang (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "hreflang_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "type_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "as", {configurable:true, enumerable:true, get:function as (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "as_get", arguments)}, set:function as (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "as_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "referrerPolicy_get", arguments)}, set:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "referrerPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "sizes", {configurable:true, enumerable:true, get:function sizes (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "sizes_get", arguments)}, set:function sizes (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "sizes_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "imageSrcset", {configurable:true, enumerable:true, get:function imageSrcset (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "imageSrcset_get", arguments)}, set:function imageSrcset (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "imageSrcset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "imageSizes", {configurable:true, enumerable:true, get:function imageSizes (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "imageSizes_get", arguments)}, set:function imageSizes (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "imageSizes_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "charset", {configurable:true, enumerable:true, get:function charset (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "charset_get", arguments)}, set:function charset (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "charset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "rev", {configurable:true, enumerable:true, get:function rev (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "rev_get", arguments)}, set:function rev (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "rev_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "target", {configurable:true, enumerable:true, get:function target (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "target_get", arguments)}, set:function target (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "target_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "sheet", {configurable:true, enumerable:true, get:function sheet (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "sheet_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "integrity", {configurable:true, enumerable:true, get:function integrity (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "integrity_get", arguments)}, set:function integrity (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "integrity_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLLinkElement.prototype, "fetchPriority", {configurable:true, enumerable:true, get:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "fetchPriority_get", arguments)}, set:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, HTMLLinkElement.prototype, "HTMLLinkElement", "fetchPriority_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLMarqueeElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLMarqueeElement.js deleted file mode 100644 index 937a2a83..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLMarqueeElement.js +++ /dev/null @@ -1,18 +0,0 @@ -// HTMLMarqueeElement对象 -HTMLMarqueeElement = function HTMLMarqueeElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLMarqueeElement, "HTMLMarqueeElement"); -HTMLMarqueeElement.prototype.__proto__=HTMLElement.prototype; -HTMLMarqueeElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "behavior", {configurable:true, enumerable:true, get:function behavior (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "behavior_get", arguments)}, set:function behavior (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "behavior_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "bgColor", {configurable:true, enumerable:true, get:function bgColor (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "bgColor_get", arguments)}, set:function bgColor (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "bgColor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "direction", {configurable:true, enumerable:true, get:function direction (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "direction_get", arguments)}, set:function direction (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "direction_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "hspace", {configurable:true, enumerable:true, get:function hspace (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "hspace_get", arguments)}, set:function hspace (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "hspace_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "loop", {configurable:true, enumerable:true, get:function loop (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "loop_get", arguments)}, set:function loop (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "loop_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "scrollAmount", {configurable:true, enumerable:true, get:function scrollAmount (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "scrollAmount_get", arguments)}, set:function scrollAmount (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "scrollAmount_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "scrollDelay", {configurable:true, enumerable:true, get:function scrollDelay (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "scrollDelay_get", arguments)}, set:function scrollDelay (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "scrollDelay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "trueSpeed", {configurable:true, enumerable:true, get:function trueSpeed (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "trueSpeed_get", arguments)}, set:function trueSpeed (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "trueSpeed_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "vspace", {configurable:true, enumerable:true, get:function vspace (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "vspace_get", arguments)}, set:function vspace (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "vspace_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "start", {configurable:true, enumerable:true, writable:true, value:function start (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "start", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMarqueeElement.prototype, "stop", {configurable:true, enumerable:true, writable:true, value:function stop (){return bodavm.toolsFunc.dispatch(this, HTMLMarqueeElement.prototype, "HTMLMarqueeElement", "stop", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLMediaElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLMediaElement.js deleted file mode 100644 index 7ff1330f..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLMediaElement.js +++ /dev/null @@ -1,66 +0,0 @@ -// HTMLMediaElement对象 -HTMLMediaElement = function HTMLMediaElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLMediaElement, "HTMLMediaElement"); -HTMLMediaElement.prototype.__proto__=HTMLElement.prototype; -HTMLMediaElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "NETWORK_EMPTY", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "NETWORK_IDLE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "NETWORK_LOADING", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "NETWORK_NO_SOURCE", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "HAVE_NOTHING", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "HAVE_METADATA", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "HAVE_CURRENT_DATA", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "HAVE_FUTURE_DATA", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement, "HAVE_ENOUGH_DATA", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "error", {configurable:true, enumerable:true, get:function error (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "error_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "src", {configurable:true, enumerable:true, get:function src (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "src_get", arguments)}, set:function src (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "src_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "currentSrc", {configurable:true, enumerable:true, get:function currentSrc (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "currentSrc_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "crossOrigin", {configurable:true, enumerable:true, get:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "crossOrigin_get", arguments)}, set:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "crossOrigin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "networkState", {configurable:true, enumerable:true, get:function networkState (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "networkState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "preload", {configurable:true, enumerable:true, get:function preload (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "preload_get", arguments)}, set:function preload (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "preload_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "buffered", {configurable:true, enumerable:true, get:function buffered (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "buffered_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "readyState", {configurable:true, enumerable:true, get:function readyState (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "readyState_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "seeking", {configurable:true, enumerable:true, get:function seeking (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "seeking_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "currentTime", {configurable:true, enumerable:true, get:function currentTime (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "currentTime_get", arguments)}, set:function currentTime (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "currentTime_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "duration", {configurable:true, enumerable:true, get:function duration (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "duration_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "paused", {configurable:true, enumerable:true, get:function paused (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "paused_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "defaultPlaybackRate", {configurable:true, enumerable:true, get:function defaultPlaybackRate (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "defaultPlaybackRate_get", arguments)}, set:function defaultPlaybackRate (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "defaultPlaybackRate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "playbackRate", {configurable:true, enumerable:true, get:function playbackRate (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "playbackRate_get", arguments)}, set:function playbackRate (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "playbackRate_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "played", {configurable:true, enumerable:true, get:function played (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "played_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "seekable", {configurable:true, enumerable:true, get:function seekable (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "seekable_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "ended", {configurable:true, enumerable:true, get:function ended (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "ended_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "autoplay", {configurable:true, enumerable:true, get:function autoplay (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "autoplay_get", arguments)}, set:function autoplay (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "autoplay_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "loop", {configurable:true, enumerable:true, get:function loop (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "loop_get", arguments)}, set:function loop (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "loop_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "controls", {configurable:true, enumerable:true, get:function controls (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "controls_get", arguments)}, set:function controls (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "controls_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "controlsList", {configurable:true, enumerable:true, get:function controlsList (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "controlsList_get", arguments)}, set:function controlsList (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "controlsList_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "volume", {configurable:true, enumerable:true, get:function volume (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "volume_get", arguments)}, set:function volume (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "volume_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "muted", {configurable:true, enumerable:true, get:function muted (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "muted_get", arguments)}, set:function muted (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "muted_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "defaultMuted", {configurable:true, enumerable:true, get:function defaultMuted (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "defaultMuted_get", arguments)}, set:function defaultMuted (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "defaultMuted_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "textTracks", {configurable:true, enumerable:true, get:function textTracks (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "textTracks_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "webkitAudioDecodedByteCount", {configurable:true, enumerable:true, get:function webkitAudioDecodedByteCount (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "webkitAudioDecodedByteCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "webkitVideoDecodedByteCount", {configurable:true, enumerable:true, get:function webkitVideoDecodedByteCount (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "webkitVideoDecodedByteCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "onencrypted", {configurable:true, enumerable:true, get:function onencrypted (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "onencrypted_get", arguments)}, set:function onencrypted (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "onencrypted_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "onwaitingforkey", {configurable:true, enumerable:true, get:function onwaitingforkey (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "onwaitingforkey_get", arguments)}, set:function onwaitingforkey (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "onwaitingforkey_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "srcObject", {configurable:true, enumerable:true, get:function srcObject (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "srcObject_get", arguments)}, set:function srcObject (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "srcObject_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "NETWORK_EMPTY", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "NETWORK_IDLE", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "NETWORK_LOADING", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "NETWORK_NO_SOURCE", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "HAVE_NOTHING", {configurable:false, enumerable:true, writable:false, value:0}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "HAVE_METADATA", {configurable:false, enumerable:true, writable:false, value:1}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "HAVE_CURRENT_DATA", {configurable:false, enumerable:true, writable:false, value:2}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "HAVE_FUTURE_DATA", {configurable:false, enumerable:true, writable:false, value:3}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "HAVE_ENOUGH_DATA", {configurable:false, enumerable:true, writable:false, value:4}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "addTextTrack", {configurable:true, enumerable:true, writable:true, value:function addTextTrack (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "addTextTrack", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "canPlayType", {configurable:true, enumerable:true, writable:true, value:function canPlayType (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "canPlayType", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "captureStream", {configurable:true, enumerable:true, writable:true, value:function captureStream (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "captureStream", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "load", {configurable:true, enumerable:true, writable:true, value:function load (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "load", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "pause", {configurable:true, enumerable:true, writable:true, value:function pause (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "pause", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "play", {configurable:true, enumerable:true, writable:true, value:function play (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "play", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "preservesPitch", {configurable:true, enumerable:true, get:function preservesPitch (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "preservesPitch_get", arguments)}, set:function preservesPitch (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "preservesPitch_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "sinkId", {configurable:true, enumerable:true, get:function sinkId (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "sinkId_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "remote", {configurable:true, enumerable:true, get:function remote (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "remote_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "disableRemotePlayback", {configurable:true, enumerable:true, get:function disableRemotePlayback (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "disableRemotePlayback_get", arguments)}, set:function disableRemotePlayback (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "disableRemotePlayback_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "setSinkId", {configurable:true, enumerable:true, writable:true, value:function setSinkId (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "setSinkId", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "mediaKeys", {configurable:true, enumerable:true, get:function mediaKeys (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "mediaKeys_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLMediaElement.prototype, "setMediaKeys", {configurable:true, enumerable:true, writable:true, value:function setMediaKeys (){return bodavm.toolsFunc.dispatch(this, HTMLMediaElement.prototype, "HTMLMediaElement", "setMediaKeys", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLMetaElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLMetaElement.js deleted file mode 100644 index 7e321135..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLMetaElement.js +++ /dev/null @@ -1,10 +0,0 @@ -// HTMLMetaElement对象 -HTMLMetaElement = function HTMLMetaElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLMetaElement, "HTMLMetaElement"); -HTMLMetaElement.prototype.__proto__=HTMLElement.prototype; -HTMLMetaElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLMetaElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMetaElement.prototype, "httpEquiv", {configurable:true, enumerable:true, get:function httpEquiv (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "httpEquiv_get", arguments)}, set:function httpEquiv (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "httpEquiv_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMetaElement.prototype, "content", {configurable:true, enumerable:true, get:function content (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "content_get", arguments)}, set:function content (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "content_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMetaElement.prototype, "scheme", {configurable:true, enumerable:true, get:function scheme (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "scheme_get", arguments)}, set:function scheme (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "scheme_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLMetaElement.prototype, "media", {configurable:true, enumerable:true, get:function media (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "media_get", arguments)}, set:function media (){return bodavm.toolsFunc.dispatch(this, HTMLMetaElement.prototype, "HTMLMetaElement", "media_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLOptGroupElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLOptGroupElement.js deleted file mode 100644 index f32d9ff2..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLOptGroupElement.js +++ /dev/null @@ -1,7 +0,0 @@ -// HTMLOptGroupElement对象 -HTMLOptGroupElement = function HTMLOptGroupElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLOptGroupElement, "HTMLOptGroupElement"); -HTMLOptGroupElement.prototype.__proto__=HTMLElement.prototype; -HTMLOptGroupElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLOptGroupElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLOptGroupElement.prototype, "HTMLOptGroupElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLOptGroupElement.prototype, "HTMLOptGroupElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptGroupElement.prototype, "label", {configurable:true, enumerable:true, get:function label (){return bodavm.toolsFunc.dispatch(this, HTMLOptGroupElement.prototype, "HTMLOptGroupElement", "label_get", arguments)}, set:function label (){return bodavm.toolsFunc.dispatch(this, HTMLOptGroupElement.prototype, "HTMLOptGroupElement", "label_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLOptionElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLOptionElement.js deleted file mode 100644 index c47e5767..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLOptionElement.js +++ /dev/null @@ -1,13 +0,0 @@ -// HTMLOptionElement对象 -HTMLOptionElement = function HTMLOptionElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLOptionElement, "HTMLOptionElement"); -HTMLOptionElement.prototype.__proto__=HTMLElement.prototype; -HTMLOptionElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "label", {configurable:true, enumerable:true, get:function label (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "label_get", arguments)}, set:function label (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "label_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "defaultSelected", {configurable:true, enumerable:true, get:function defaultSelected (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "defaultSelected_get", arguments)}, set:function defaultSelected (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "defaultSelected_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "selected", {configurable:true, enumerable:true, get:function selected (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "selected_get", arguments)}, set:function selected (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "selected_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "text_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLOptionElement.prototype, "index", {configurable:true, enumerable:true, get:function index (){return bodavm.toolsFunc.dispatch(this, HTMLOptionElement.prototype, "HTMLOptionElement", "index_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLParagraphElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLParagraphElement.js deleted file mode 100644 index 106ebd2b..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLParagraphElement.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLParagraphElement对象 -HTMLParagraphElement = function HTMLParagraphElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLParagraphElement, "HTMLParagraphElement"); -HTMLParagraphElement.prototype.__proto__=HTMLElement.prototype; -HTMLParagraphElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLParagraphElement.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, HTMLParagraphElement.prototype, "HTMLParagraphElement", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, HTMLParagraphElement.prototype, "HTMLParagraphElement", "align_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLScriptElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLScriptElement.js deleted file mode 100644 index 09845e81..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLScriptElement.js +++ /dev/null @@ -1,19 +0,0 @@ -// HTMLScriptElement对象 -HTMLScriptElement = function HTMLScriptElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLScriptElement, "HTMLScriptElement"); -HTMLScriptElement.prototype.__proto__=HTMLElement.prototype; -HTMLScriptElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLScriptElement, "supports", {configurable:true, enumerable:true, writable:true, value:function supports (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement, "HTMLScriptElement", "supports", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "src", {configurable:true, enumerable:true, get:function src (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "src_get", arguments)}, set:function src (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "src_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "type_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "noModule", {configurable:true, enumerable:true, get:function noModule (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "noModule_get", arguments)}, set:function noModule (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "noModule_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "charset", {configurable:true, enumerable:true, get:function charset (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "charset_get", arguments)}, set:function charset (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "charset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "async", {configurable:true, enumerable:true, get:function async (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "async_get", arguments)}, set:function async (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "async_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "defer", {configurable:true, enumerable:true, get:function defer (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "defer_get", arguments)}, set:function defer (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "defer_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "crossOrigin", {configurable:true, enumerable:true, get:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "crossOrigin_get", arguments)}, set:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "crossOrigin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "text_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "referrerPolicy_get", arguments)}, set:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "referrerPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "event", {configurable:true, enumerable:true, get:function event (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "event_get", arguments)}, set:function event (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "event_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "htmlFor", {configurable:true, enumerable:true, get:function htmlFor (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "htmlFor_get", arguments)}, set:function htmlFor (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "htmlFor_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "integrity", {configurable:true, enumerable:true, get:function integrity (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "integrity_get", arguments)}, set:function integrity (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "integrity_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLScriptElement.prototype, "fetchPriority", {configurable:true, enumerable:true, get:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "fetchPriority_get", arguments)}, set:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, HTMLScriptElement.prototype, "HTMLScriptElement", "fetchPriority_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLSelectElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLSelectElement.js deleted file mode 100644 index 1c137e73..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLSelectElement.js +++ /dev/null @@ -1,29 +0,0 @@ -// HTMLSelectElement对象 -HTMLSelectElement = function HTMLSelectElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLSelectElement, "HTMLSelectElement"); -HTMLSelectElement.prototype.__proto__=HTMLElement.prototype; -HTMLSelectElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "autocomplete", {configurable:true, enumerable:true, get:function autocomplete (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "autocomplete_get", arguments)}, set:function autocomplete (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "autocomplete_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "multiple", {configurable:true, enumerable:true, get:function multiple (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "multiple_get", arguments)}, set:function multiple (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "multiple_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "required", {configurable:true, enumerable:true, get:function required (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "required_get", arguments)}, set:function required (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "required_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "size", {configurable:true, enumerable:true, get:function size (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "size_get", arguments)}, set:function size (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "size_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "type_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "options", {configurable:true, enumerable:true, get:function options (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "options_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "length_get", arguments)}, set:function length (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "length_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "selectedOptions", {configurable:true, enumerable:true, get:function selectedOptions (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "selectedOptions_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "selectedIndex", {configurable:true, enumerable:true, get:function selectedIndex (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "selectedIndex_get", arguments)}, set:function selectedIndex (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "selectedIndex_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "willValidate", {configurable:true, enumerable:true, get:function willValidate (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "willValidate_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "validity", {configurable:true, enumerable:true, get:function validity (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "validity_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "validationMessage", {configurable:true, enumerable:true, get:function validationMessage (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "validationMessage_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "labels", {configurable:true, enumerable:true, get:function labels (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "labels_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "add", {configurable:true, enumerable:true, writable:true, value:function add (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "add", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "checkValidity", {configurable:true, enumerable:true, writable:true, value:function checkValidity (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "checkValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "item", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "namedItem", {configurable:true, enumerable:true, writable:true, value:function namedItem (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "namedItem", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "remove", {configurable:true, enumerable:true, writable:true, value:function remove (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "remove", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "reportValidity", {configurable:true, enumerable:true, writable:true, value:function reportValidity (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "reportValidity", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLSelectElement.prototype, "setCustomValidity", {configurable:true, enumerable:true, writable:true, value:function setCustomValidity (){return bodavm.toolsFunc.dispatch(this, HTMLSelectElement.prototype, "HTMLSelectElement", "setCustomValidity", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLSpanElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLSpanElement.js deleted file mode 100644 index c1dbed9d..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLSpanElement.js +++ /dev/null @@ -1,5 +0,0 @@ -// HTMLSpanElement对象 -HTMLSpanElement = function HTMLSpanElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLSpanElement, "HTMLSpanElement"); -HTMLSpanElement.prototype.__proto__=HTMLElement.prototype; -HTMLSpanElement.__proto__=HTMLElement; diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLStyleElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLStyleElement.js deleted file mode 100644 index 72ef43a8..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLStyleElement.js +++ /dev/null @@ -1,9 +0,0 @@ -// HTMLStyleElement对象 -HTMLStyleElement = function HTMLStyleElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLStyleElement, "HTMLStyleElement"); -HTMLStyleElement.prototype.__proto__=HTMLElement.prototype; -HTMLStyleElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLStyleElement.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLStyleElement.prototype, "media", {configurable:true, enumerable:true, get:function media (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "media_get", arguments)}, set:function media (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "media_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLStyleElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "type_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLStyleElement.prototype, "sheet", {configurable:true, enumerable:true, get:function sheet (){return bodavm.toolsFunc.dispatch(this, HTMLStyleElement.prototype, "HTMLStyleElement", "sheet_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLTitleElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLTitleElement.js deleted file mode 100644 index d51afd19..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLTitleElement.js +++ /dev/null @@ -1,6 +0,0 @@ -// HTMLTitleElement对象 -HTMLTitleElement = function HTMLTitleElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLTitleElement, "HTMLTitleElement"); -HTMLTitleElement.prototype.__proto__=HTMLElement.prototype; -HTMLTitleElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLTitleElement.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, HTMLTitleElement.prototype, "HTMLTitleElement", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, HTMLTitleElement.prototype, "HTMLTitleElement", "text_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLUListElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLUListElement.js deleted file mode 100644 index fe96787f..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLUListElement.js +++ /dev/null @@ -1,7 +0,0 @@ -// HTMLUListElement对象 -HTMLUListElement = function HTMLUListElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLUListElement, "HTMLUListElement"); -HTMLUListElement.prototype.__proto__=HTMLElement.prototype; -HTMLUListElement.__proto__=HTMLElement; -bodavm.toolsFunc.defineProperty(HTMLUListElement.prototype, "compact", {configurable:true, enumerable:true, get:function compact (){return bodavm.toolsFunc.dispatch(this, HTMLUListElement.prototype, "HTMLUListElement", "compact_get", arguments)}, set:function compact (){return bodavm.toolsFunc.dispatch(this, HTMLUListElement.prototype, "HTMLUListElement", "compact_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLUListElement.prototype, "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, HTMLUListElement.prototype, "HTMLUListElement", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, HTMLUListElement.prototype, "HTMLUListElement", "type_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLUnknownElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLUnknownElement.js deleted file mode 100644 index 95c5dc37..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLUnknownElement.js +++ /dev/null @@ -1,5 +0,0 @@ -// HTMLUnknownElement对象 -HTMLUnknownElement = function HTMLUnknownElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLUnknownElement, "HTMLUnknownElement"); -HTMLUnknownElement.prototype.__proto__=HTMLElement.prototype; -HTMLUnknownElement.__proto__=HTMLElement; diff --git a/env_xbb_lastest_cheerio/env/htmlElements/HTMLVideoElement.js b/env_xbb_lastest_cheerio/env/htmlElements/HTMLVideoElement.js deleted file mode 100644 index 83c9d6b6..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/HTMLVideoElement.js +++ /dev/null @@ -1,26 +0,0 @@ -// HTMLVideoElement对象 -HTMLVideoElement = function HTMLVideoElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")} -bodavm.toolsFunc.safeProto(HTMLVideoElement, "HTMLVideoElement"); -HTMLVideoElement.prototype.__proto__=HTMLMediaElement.prototype; -HTMLVideoElement.__proto__=HTMLMediaElement; -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "videoWidth", {configurable:true, enumerable:true, get:function videoWidth (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "videoWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "videoHeight", {configurable:true, enumerable:true, get:function videoHeight (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "videoHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "poster", {configurable:true, enumerable:true, get:function poster (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "poster_get", arguments)}, set:function poster (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "poster_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitDecodedFrameCount", {configurable:true, enumerable:true, get:function webkitDecodedFrameCount (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitDecodedFrameCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitDroppedFrameCount", {configurable:true, enumerable:true, get:function webkitDroppedFrameCount (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitDroppedFrameCount_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "playsInline", {configurable:true, enumerable:true, get:function playsInline (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "playsInline_get", arguments)}, set:function playsInline (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "playsInline_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitSupportsFullscreen", {configurable:true, enumerable:true, get:function webkitSupportsFullscreen (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitSupportsFullscreen_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitDisplayingFullscreen", {configurable:true, enumerable:true, get:function webkitDisplayingFullscreen (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitDisplayingFullscreen_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "onenterpictureinpicture", {configurable:true, enumerable:true, get:function onenterpictureinpicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "onenterpictureinpicture_get", arguments)}, set:function onenterpictureinpicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "onenterpictureinpicture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "onleavepictureinpicture", {configurable:true, enumerable:true, get:function onleavepictureinpicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "onleavepictureinpicture_get", arguments)}, set:function onleavepictureinpicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "onleavepictureinpicture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "disablePictureInPicture", {configurable:true, enumerable:true, get:function disablePictureInPicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "disablePictureInPicture_get", arguments)}, set:function disablePictureInPicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "disablePictureInPicture_set", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "cancelVideoFrameCallback", {configurable:true, enumerable:true, writable:true, value:function cancelVideoFrameCallback (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "cancelVideoFrameCallback", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "requestVideoFrameCallback", {configurable:true, enumerable:true, writable:true, value:function requestVideoFrameCallback (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "requestVideoFrameCallback", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "getVideoPlaybackQuality", {configurable:true, enumerable:true, writable:true, value:function getVideoPlaybackQuality (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "getVideoPlaybackQuality", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "requestPictureInPicture", {configurable:true, enumerable:true, writable:true, value:function requestPictureInPicture (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "requestPictureInPicture", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitEnterFullScreen", {configurable:true, enumerable:true, writable:true, value:function webkitEnterFullScreen (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitEnterFullScreen", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitEnterFullscreen", {configurable:true, enumerable:true, writable:true, value:function webkitEnterFullscreen (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitEnterFullscreen", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitExitFullScreen", {configurable:true, enumerable:true, writable:true, value:function webkitExitFullScreen (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitExitFullScreen", arguments)}}); -bodavm.toolsFunc.defineProperty(HTMLVideoElement.prototype, "webkitExitFullscreen", {configurable:true, enumerable:true, writable:true, value:function webkitExitFullscreen (){return bodavm.toolsFunc.dispatch(this, HTMLVideoElement.prototype, "HTMLVideoElement", "webkitExitFullscreen", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/Image.js b/env_xbb_lastest_cheerio/env/htmlElements/Image.js deleted file mode 100644 index 164cdf4a..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/Image.js +++ /dev/null @@ -1,31 +0,0 @@ -// Image对象 -Image = function Image(){} -bodavm.toolsFunc.safeProto(Image, "Image"); -Image.prototype.__proto__=HTMLElement.prototype; -bodavm.toolsFunc.defineProperty(Image.prototype, "alt", {configurable:true, enumerable:true, get:function alt (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "alt_get", arguments)}, set:function alt (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "alt_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "src", {configurable:true, enumerable:true, get:function src (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "src_get", arguments)}, set:function src (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "src_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "srcset", {configurable:true, enumerable:true, get:function srcset (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "srcset_get", arguments)}, set:function srcset (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "srcset_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "sizes", {configurable:true, enumerable:true, get:function sizes (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "sizes_get", arguments)}, set:function sizes (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "sizes_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "crossOrigin", {configurable:true, enumerable:true, get:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "crossOrigin_get", arguments)}, set:function crossOrigin (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "crossOrigin_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "useMap", {configurable:true, enumerable:true, get:function useMap (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "useMap_get", arguments)}, set:function useMap (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "useMap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "isMap", {configurable:true, enumerable:true, get:function isMap (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "isMap_get", arguments)}, set:function isMap (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "isMap_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "width", {configurable:true, enumerable:true, get:function width (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "width_get", arguments)}, set:function width (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "width_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "height", {configurable:true, enumerable:true, get:function height (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "height_get", arguments)}, set:function height (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "height_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "naturalWidth", {configurable:true, enumerable:true, get:function naturalWidth (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "naturalWidth_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Image.prototype, "naturalHeight", {configurable:true, enumerable:true, get:function naturalHeight (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "naturalHeight_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Image.prototype, "complete", {configurable:true, enumerable:true, get:function complete (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "complete_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Image.prototype, "currentSrc", {configurable:true, enumerable:true, get:function currentSrc (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "currentSrc_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Image.prototype, "referrerPolicy", {configurable:true, enumerable:true, get:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "referrerPolicy_get", arguments)}, set:function referrerPolicy (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "referrerPolicy_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "decoding", {configurable:true, enumerable:true, get:function decoding (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "decoding_get", arguments)}, set:function decoding (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "decoding_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "name_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "lowsrc", {configurable:true, enumerable:true, get:function lowsrc (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "lowsrc_get", arguments)}, set:function lowsrc (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "lowsrc_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "align", {configurable:true, enumerable:true, get:function align (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "align_get", arguments)}, set:function align (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "align_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "hspace", {configurable:true, enumerable:true, get:function hspace (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "hspace_get", arguments)}, set:function hspace (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "hspace_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "vspace", {configurable:true, enumerable:true, get:function vspace (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "vspace_get", arguments)}, set:function vspace (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "vspace_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "longDesc", {configurable:true, enumerable:true, get:function longDesc (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "longDesc_get", arguments)}, set:function longDesc (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "longDesc_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "border", {configurable:true, enumerable:true, get:function border (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "border_get", arguments)}, set:function border (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "border_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "x", {configurable:true, enumerable:true, get:function x (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "x_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Image.prototype, "y", {configurable:true, enumerable:true, get:function y (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "y_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Image.prototype, "decode", {configurable:true, enumerable:true, writable:true, value:function decode (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "decode", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "fetchPriority", {configurable:true, enumerable:true, get:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "fetchPriority_get", arguments)}, set:function fetchPriority (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "fetchPriority_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Image.prototype, "loading", {configurable:true, enumerable:true, get:function loading (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "loading_get", arguments)}, set:function loading (){return bodavm.toolsFunc.dispatch(this, Image.prototype, "Image", "loading_set", arguments)}}); diff --git a/env_xbb_lastest_cheerio/env/htmlElements/Option.js b/env_xbb_lastest_cheerio/env/htmlElements/Option.js deleted file mode 100644 index 8475c646..00000000 --- a/env_xbb_lastest_cheerio/env/htmlElements/Option.js +++ /dev/null @@ -1,12 +0,0 @@ -// Option对象 -Option = function Option(){} -bodavm.toolsFunc.safeProto(Option, "Option"); -Option.prototype.__proto__=HTMLElement.prototype; -bodavm.toolsFunc.defineProperty(Option.prototype, "disabled", {configurable:true, enumerable:true, get:function disabled (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "disabled_get", arguments)}, set:function disabled (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "disabled_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Option.prototype, "form", {configurable:true, enumerable:true, get:function form (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "form_get", arguments)}, set:undefined}); -bodavm.toolsFunc.defineProperty(Option.prototype, "label", {configurable:true, enumerable:true, get:function label (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "label_get", arguments)}, set:function label (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "label_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Option.prototype, "defaultSelected", {configurable:true, enumerable:true, get:function defaultSelected (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "defaultSelected_get", arguments)}, set:function defaultSelected (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "defaultSelected_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Option.prototype, "selected", {configurable:true, enumerable:true, get:function selected (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "selected_get", arguments)}, set:function selected (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "selected_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Option.prototype, "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "value_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Option.prototype, "text", {configurable:true, enumerable:true, get:function text (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "text_get", arguments)}, set:function text (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "text_set", arguments)}}); -bodavm.toolsFunc.defineProperty(Option.prototype, "index", {configurable:true, enumerable:true, get:function index (){return bodavm.toolsFunc.dispatch(this, Option.prototype, "Option", "index_get", arguments)}, set:undefined}); diff --git a/env_xbb_lastest_cheerio/main.js b/env_xbb_lastest_cheerio/main.js deleted file mode 100644 index 2af29542..00000000 --- a/env_xbb_lastest_cheerio/main.js +++ /dev/null @@ -1,92 +0,0 @@ -// debugger -const { VM, VMScript } = require("vm2") -const fs = require("fs"); - -const path = require("path"); -const cheerio = require('cheerio') -// const bodomparse = require('xmldom').DOMParser -const {createCanvas}=require('canvas') -// const CryptoJS = require("crypto-js"); // npm install crypto-js - -let run_path=path.resolve(__dirname, './run/'); -let config_path = path.resolve(__dirname, './config/'); -let tools_path=path.resolve(__dirname, './tools/'); - -const tools=require(`${config_path}/tools.config`) -const env=require(`${config_path}/env.config`) - -//名称 -// 清空; -fs.writeFileSync(`${run_path}/log.txt`,"") - -let bohtml_=fs.readFileSync(`${run_path}\\run.html`).toString('utf-8') -let bobo$=cheerio.load(bohtml_) - -//创建沙盒实例 -const vm = new VM( -); - -const configCode=fs.readFileSync(`${config_path}/config.js`) -//导入功能插件相关函数 -const toolsCode =tools.getCode(); -//导入浏览器环境相关 -const envCode = env.getCode(); -//导入全局初始化 -const globalInit = tools.getFile("globalInit"); -//导入用户初始化代码 -const userInit = tools.getFile( "userInit"); -//导入设置代理对象 -const proxyObj = tools.getFile("proxyObj"); -//导入需要调试的代码 -const jscode = fs.readFileSync(`${run_path}/run.js`) -//导入异步执行的代码 -const asyncCode = tools.getFile("async"); - - -// bodavm.memory.tag[0].__proto__=HTMLDocument.prototype -//整合代码 -//导入日志代码 -const log_code=fs.readFileSync(`${tools_path}/printLog.js`) -//测试 -const globadlThis=fs.readFileSync(`${tools_path}/globalThis.js`) -// const codeTest=`${configCode}${log_code}${toolsCode}${envCode}${globalInit}${userInit}${changeDom}${proxyObj}${jscode}${asyncCode}`+"\r\n"+"debugger"; -const last_deal=fs.readFileSync(`${run_path}/lastDeal.js`) -const codeTest=`${configCode}${log_code}${toolsCode}${envCode}${globadlThis}${globalInit}${userInit}${proxyObj};;${jscode}${asyncCode};console.table(myloglist);debugger;;${last_deal}`; -// const codeTest=`${configCode}${log_code}${toolsCode}${envCode}${globadlThis}${globalInit}${userInit}${proxyObj}${jscode}${asyncCode};console.table(myloglist);`+"\r\n"+"debugger"; - - - - -//沙盒创建全局 -vm.setGlobal('bofs', fs) -vm.setGlobal('bobo$',bobo$) -// debugger -vm.setGlobal('bobocheerio',cheerio) -vm.setGlobal('bocreateCanvas',createCanvas) -// let iframes=bobo$('iframe') -// console.log('iframes的个数---->',iframes.length) -// if (iframes.length>0){ -// //更好的处理方式为开length个 vm 但是太降低性能了,目前检测iframe 不严, 基本上就比较一下== 先用这个方式过 -// function Window(){} -// window={ - -// } -// window.top=window -// window.parent=window -// window.self=window -// window.__proto__=Window.prototype -// // Object.setPrototypeOf(window,Window.prototype) -// vm.setGlobal('createwindow2',window) - -// } -const script = new VMScript(codeTest, "./debugJS.js") - -const result = vm.run(script); - -//输出结果 -debugger -console.log(result) - -// -fs.writeFileSync(`${run_path}/output.js`,codeTest) - diff --git a/env_xbb_lastest_cheerio/main1.js b/env_xbb_lastest_cheerio/main1.js deleted file mode 100644 index af6abc8b..00000000 --- a/env_xbb_lastest_cheerio/main1.js +++ /dev/null @@ -1,7 +0,0 @@ -// const { createCanvas, loadImage } = require('canvas') -// const canvas = createCanvas(1440, 200) -// const ctx = canvas.getContext('2d') -// ctx.fillRect(100,200,300,400) -// console.log(canvas.toDataURL()) - - diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/acorn b/env_xbb_lastest_cheerio/node_modules/.bin/acorn deleted file mode 100644 index 46a3e61a..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/acorn +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../acorn/bin/acorn" "$@" -else - exec node "$basedir/../acorn/bin/acorn" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/acorn.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/acorn.cmd deleted file mode 100644 index a9324df9..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/acorn.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\acorn\bin\acorn" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/acorn.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/acorn.ps1 deleted file mode 100644 index 6f6dcddf..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/acorn.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args - } else { - & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../acorn/bin/acorn" $args - } else { - & "node$exe" "$basedir/../acorn/bin/acorn" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/color-support b/env_xbb_lastest_cheerio/node_modules/.bin/color-support deleted file mode 100644 index 59e65069..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/color-support +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../color-support/bin.js" "$@" -else - exec node "$basedir/../color-support/bin.js" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/color-support.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/color-support.cmd deleted file mode 100644 index 005f9a56..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/color-support.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\color-support\bin.js" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/color-support.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/color-support.ps1 deleted file mode 100644 index f5c9fe49..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/color-support.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../color-support/bin.js" $args - } else { - & "$basedir/node$exe" "$basedir/../color-support/bin.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../color-support/bin.js" $args - } else { - & "node$exe" "$basedir/../color-support/bin.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp b/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp deleted file mode 100644 index 6ba5765a..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@" -else - exec node "$basedir/../mkdirp/bin/cmd.js" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp.cmd deleted file mode 100644 index a865dd9f..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp.ps1 deleted file mode 100644 index 911e8546..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/mkdirp.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } else { - & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } else { - & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect b/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect deleted file mode 100644 index a4c23b5b..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../node-inspect/cli.js" "$@" - ret=$? -else - node "$basedir/../node-inspect/cli.js" "$@" - ret=$? -fi -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect.cmd deleted file mode 100644 index fc73f7af..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -"%_prog%" "%dp0%\..\node-inspect\cli.js" %* -ENDLOCAL -EXIT /b %errorlevel% -:find_dp0 -SET dp0=%~dp0 -EXIT /b diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect.ps1 deleted file mode 100644 index d1ffac37..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/node-inspect.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - & "$basedir/node$exe" "$basedir/../node-inspect/cli.js" $args - $ret=$LASTEXITCODE -} else { - & "node$exe" "$basedir/../node-inspect/cli.js" $args - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp b/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp deleted file mode 100644 index 004c3be1..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" "$@" -else - exec node "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp.cmd deleted file mode 100644 index a2fc5085..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@mapbox\node-pre-gyp\bin\node-pre-gyp" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp.ps1 deleted file mode 100644 index ed297ff9..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/node-pre-gyp.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args - } else { - & "$basedir/node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args - } else { - & "node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/nopt b/env_xbb_lastest_cheerio/node_modules/.bin/nopt deleted file mode 100644 index f1ec43bc..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/nopt +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@" -else - exec node "$basedir/../nopt/bin/nopt.js" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/nopt.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/nopt.cmd deleted file mode 100644 index a7f38b3d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/nopt.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nopt\bin\nopt.js" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/nopt.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/nopt.ps1 deleted file mode 100644 index 9d6ba56f..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/nopt.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../nopt/bin/nopt.js" $args - } else { - & "$basedir/node$exe" "$basedir/../nopt/bin/nopt.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../nopt/bin/nopt.js" $args - } else { - & "node$exe" "$basedir/../nopt/bin/nopt.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/python-js b/env_xbb_lastest_cheerio/node_modules/.bin/python-js deleted file mode 100644 index f3d4358e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/python-js +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../python-js/cli.js" "$@" - ret=$? -else - node "$basedir/../python-js/cli.js" "$@" - ret=$? -fi -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/python-js.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/python-js.cmd deleted file mode 100644 index 94a87d14..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/python-js.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -"%_prog%" "%dp0%\..\python-js\cli.js" %* -ENDLOCAL -EXIT /b %errorlevel% -:find_dp0 -SET dp0=%~dp0 -EXIT /b diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/python-js.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/python-js.ps1 deleted file mode 100644 index d4e0a09a..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/python-js.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - & "$basedir/node$exe" "$basedir/../python-js/cli.js" $args - $ret=$LASTEXITCODE -} else { - & "node$exe" "$basedir/../python-js/cli.js" $args - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/rimraf b/env_xbb_lastest_cheerio/node_modules/.bin/rimraf deleted file mode 100644 index b8168255..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/rimraf +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../rimraf/bin.js" "$@" -else - exec node "$basedir/../rimraf/bin.js" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/rimraf.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/rimraf.cmd deleted file mode 100644 index 13f45eca..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/rimraf.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rimraf\bin.js" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/rimraf.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/rimraf.ps1 deleted file mode 100644 index 17167914..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/rimraf.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args - } else { - & "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../rimraf/bin.js" $args - } else { - & "node$exe" "$basedir/../rimraf/bin.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/semver b/env_xbb_lastest_cheerio/node_modules/.bin/semver deleted file mode 100644 index 77443e78..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/semver +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@" -else - exec node "$basedir/../semver/bin/semver.js" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/semver.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/semver.cmd deleted file mode 100644 index 9913fa9d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/semver.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/semver.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/semver.ps1 deleted file mode 100644 index 314717ad..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/semver.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args - } else { - & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../semver/bin/semver.js" $args - } else { - & "node$exe" "$basedir/../semver/bin/semver.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/vm2 b/env_xbb_lastest_cheerio/node_modules/.bin/vm2 deleted file mode 100644 index eef43d6d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/vm2 +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../vm2/bin/vm2" "$@" -else - exec node "$basedir/../vm2/bin/vm2" "$@" -fi diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/vm2.cmd b/env_xbb_lastest_cheerio/node_modules/.bin/vm2.cmd deleted file mode 100644 index 464cb048..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/vm2.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\vm2\bin\vm2" %* diff --git a/env_xbb_lastest_cheerio/node_modules/.bin/vm2.ps1 b/env_xbb_lastest_cheerio/node_modules/.bin/vm2.ps1 deleted file mode 100644 index e2222537..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.bin/vm2.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../vm2/bin/vm2" $args - } else { - & "$basedir/node$exe" "$basedir/../vm2/bin/vm2" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../vm2/bin/vm2" $args - } else { - & "node$exe" "$basedir/../vm2/bin/vm2" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/env_xbb_lastest_cheerio/node_modules/.package-lock.json b/env_xbb_lastest_cheerio/node_modules/.package-lock.json deleted file mode 100644 index 0790149e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/.package-lock.json +++ /dev/null @@ -1,890 +0,0 @@ -{ - "name": "test", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "node_modules/@aghajari/jssoup": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@aghajari/jssoup/-/jssoup-1.0.2.tgz", - "integrity": "sha512-P2DbSzKL99zkGZHK26zAAS+csxLy7DJL1Wtyk66xE/rrBy003wa6X9fp8qzBsiBj0P8uA9IYl31z94DikxIWsg==", - "dependencies": { - "iconv": "^3.0.0" - } - }, - "node_modules/@mapbox/node-pre-gyp": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz", - "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==", - "dependencies": { - "detect-libc": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.7", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/@remotemerge/xpath-parser": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@remotemerge/xpath-parser/-/xpath-parser-1.0.3.tgz", - "integrity": "sha512-IRs8r19IFzIl87xgpAso5X+sdqIl/sfQzG5EfJ9Ko/WuIeILZbPgklg2ueVcv9SriFZKZ+0zEqWiFbcpRj91rQ==" - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/agent-base/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/agent-base/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/aproba": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", - "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" - }, - "node_modules/are-we-there-yet": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", - "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "dependencies": { - "lodash": "^4.17.14" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/biginteger": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/biginteger/-/biginteger-1.0.3.tgz", - "integrity": "sha512-gmTfQyNVreGeTlSrZiD7mAg52B0e20NWTJdt9zESPcUce/SEdP0UT/GGal6OZxNELiues4+XuyJzyAlkuO9nNg==" - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/canvas": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.0.tgz", - "integrity": "sha512-bdTjFexjKJEwtIo0oRx8eD4G2yWoUOXP9lj279jmQ2zMnTQhT8C3512OKz3s+ZOaQlLbE7TuVvRDYDB3Llyy5g==", - "hasInstallScript": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.17.0", - "simple-get": "^3.0.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "bin": { - "color-support": "bin.js" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" - }, - "node_modules/decompress-response": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", - "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", - "dependencies": { - "mimic-response": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" - }, - "node_modules/detect-libc": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", - "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/eventemitter3": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz", - "integrity": "sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg==" - }, - "node_modules/fingerprintjs": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/fingerprintjs/-/fingerprintjs-0.5.3.tgz", - "integrity": "sha512-LPW+iJ9yaV+FIXbmPkbyp7n6UoxV1euVozieaq3ckuvPEAyJRRB0JxbBsShHh5h1jc9yn/EZ95EEb78109zuKg==", - "deprecated": "Package has been renamed to @fingerprintjs/fingerprintjs. Install @fingerprintjs/fingerprintjs to get updates." - }, - "node_modules/fingerprints": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/fingerprints/-/fingerprints-0.0.1.tgz", - "integrity": "sha512-OylkgzLi6S53uJKRPU7ENE4fhKauXnC3cTPwB6SvzGV5fFI+tUaT/TiP/DhHvLZtoX66musfo+fpYyVstc0yww==", - "dependencies": { - "async": "^2.6.0", - "fs": "0.0.1-security", - "path": "latest", - "threads": "^0.10.1", - "xml2js": "^0.4.19", - "xmlbuilder": "^9.0.7" - } - }, - "node_modules/fs": { - "version": "0.0.1-security", - "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", - "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/gauge": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", - "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" - }, - "node_modules/htmlparser": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.7.tgz", - "integrity": "sha512-zpK66ifkT0fauyFh2Mulrq4AqGTucxGtOhZ8OjkbSfcCpkqQEI8qRkY0tSQSJNAQ4HUZkgWaU4fK4EH6SVH9PQ==", - "engines": { - "node": ">=0.1.33" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/https-proxy-agent/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/iconv": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/iconv/-/iconv-3.0.1.tgz", - "integrity": "sha512-lJnFLxVc0d82R7GfU7a9RujKVUQ3Eee19tPKWZWBJtAEGRHVEyFzCtbNl3GPKuDnHBBRT4/nDS4Ru9AIDT72qA==", - "hasInstallScript": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/js-xpath": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/js-xpath/-/js-xpath-0.0.4.tgz", - "integrity": "sha512-8kr9aIje0Af9EaIHFkoLYZDQtrSOofwL/H4dVU8xnTylXFRlFbNlklOtZsvQnDouscsKSXEddUb5vTwTU/oAaQ==", - "dependencies": { - "biginteger": "^1.0.3" - } - }, - "node_modules/jssoup": { - "version": "0.0.15", - "resolved": "https://registry.npmjs.org/jssoup/-/jssoup-0.0.15.tgz", - "integrity": "sha512-9/7qzZQ878Jey0JyNTuy1NYE8Y4G5PbpWQ5hS8vlBD2Ar4MKJNMQ0239yjb+WExRNLiYPSgZSVLyFUwQNWa1ag==", - "dependencies": { - "htmlparser": "^1.7.7" - } - }, - "node_modules/jssoup-selector": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jssoup-selector/-/jssoup-selector-0.0.1.tgz", - "integrity": "sha512-OulaI/EzhDuKeGHgWLrIYCJoFu7g0bEwOC8+H2Gow92TAyNh59zkcMoe4GGt/gr7d81LsLfkEkp78DJkqUZXQA==" - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/mimic-response": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", - "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz", - "integrity": "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/nan": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==" - }, - "node_modules/native-promise-only": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", - "integrity": "sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg==" - }, - "node_modules/node-addon-api": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", - "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" - }, - "node_modules/node-fetch": { - "version": "2.6.8", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz", - "integrity": "sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/npmlog": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", - "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "dependencies": { - "are-we-there-yet": "^2.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^3.0.0", - "set-blocking": "^2.0.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/path": { - "version": "0.12.7", - "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", - "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", - "dependencies": { - "process": "^0.11.1", - "util": "^0.10.3" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-get": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", - "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==", - "dependencies": { - "decompress-response": "^4.2.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", - "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^4.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/threads": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/threads/-/threads-0.10.1.tgz", - "integrity": "sha512-80FvzE6ob/D06HQkwSSmp2NZKXvXP1t8c6Y8borLYKzIz1KxvkseMJonj/tLU+5fpQk9PMfeomhbKdrIKaBaZQ==", - "dependencies": { - "eventemitter3": "^2.0.2", - "native-promise-only": "^0.8.1" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dependencies": { - "inherits": "2.0.3" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/util/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "node_modules/vm2": { - "version": "3.9.13", - "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.13.tgz", - "integrity": "sha512-0rvxpB8P8Shm4wX2EKOiMp7H2zq+HUE/UwodY0pCZXs9IffIKZq6vUti5OgkVCTakKo9e/fgO4X1fkwfjWxE3Q==", - "dependencies": { - "acorn": "^8.7.0", - "acorn-walk": "^8.2.0" - }, - "bin": { - "vm2": "bin/vm2" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xml2js/node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/xmlbuilder": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", - "integrity": "sha512-7YXTQc3P2l9+0rjaUbLwMKRhtmwg1M1eDf6nag7urC7pIPYLD9W/jmzQ4ptRSUbodw5S0jfoGTflLemQibSpeQ==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/xmldom": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", - "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/xpath.js": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/xpath.js/-/xpath.js-1.1.0.tgz", - "integrity": "sha512-jg+qkfS4K8E7965sqaUl8mRngXiKb3WZGfONgE18pr03FUQiuSV6G+Ej4tS55B+rIQSFEIw3phdVAQ4pPqNWfQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/Jssoup.iml b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/Jssoup.iml deleted file mode 100644 index 8021953e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/Jssoup.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/README.md b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/README.md deleted file mode 100644 index 469d1631..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/README.md +++ /dev/null @@ -1,212 +0,0 @@ -# JSSoup - **JSSoup** is a fast and reliable HTML DOM parser library for JavaScript, node.js based on [PHP: simplehtmldom](https://github.com/simplehtmldom/simplehtmldom) and [Java: Jsoup](https://github.com/jhy/jsoup) - -[![Join the chat at https://gitter.im/Aghajari/community](https://badges.gitter.im/Aghajari/community.svg)](https://gitter.im/Aghajari/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - -- Works with well-formed and broken HTML documents. -- Loads webpages and document strings. -- Supports CSS selectors. - -# Usage - -### Installation -```console -npm i @aghajari/jssoup -``` - -```js -const jssoup = require('@aghajari/jssoup'); -``` - -Let's fetch music lyrics from [Google](https://www.google.com/search?q=Hello+lyrics) : -```js -const doc = await jssoup.loadFromURL("https://www.google.com/search?q=Hello+lyrics", options()) - -console.log('track: ' + doc.getElementByAttr("data-attrid", `"title"`).plainText()) -console.log('artist' + doc.getElementByAttr("data-attrid", `"subtitle"`).plainText()) -console.log('lyrics' + doc.getElementByAttr("data-lyricid").plainText()) -``` -Output: -```html -track: Hello -artist: Adele -lyrics: Hello, it's me -I was wondering if after all these years you'd like to meet -To go over everything -They say that time's supposed to heal ya... -``` - -For finding the correct css selector for an specific element, you can use `HTMLNode.cssSelector()`, -- `cssSelector()`: Get a CSS selector that will uniquely select this element - -Just try one example as a test and get the cssSelector for all. - -```js -const doc = await jssoup.loadFromURL("https://www.google.com/search?q=someone+like+you+lyrics", options()) -console.log(doc.matchesPlainText('Someone Like You')[0].cssSelector()) -``` -You will get `h2[data-attrid=title]` as the cssSelector, Now use this selector for all lyrics pages from Google. -```js -const doc = await jssoup.loadFromURL("https://www.google.com/search?q=million+years+ago+lyrics", options()) -console.log(doc.findFirst('h2[data-attrid=title]').plainText()) // Output: Million Years Ago -``` - -- Let's try parsing document string : -```js -const html = `<b>JSSoup</b> - node.js` -const title = jssoup.load(html).getElementByTagName('title') // or .findFirst('title'); -console.log(title.plainText()) // JSSoup - node.js -console.log(title.innerText()) // JSSoup - node.js -console.log(title.outerText()) // <b>JSSoup</b> - node.js -``` -By the way, you can also use `const title = jssoup.load(html).titleEl()` for getting title. - -- Let's use id for finding the element. -```js -const html = `This is a test` -const element = jssoup.load(html).getElementById('element_id') // or .findFirst('#element_id') -console.log(element) // This is a test -``` - -- Let's use className for finding the element. -```js -const html = `This is a test` -const element = jssoup.load(html).getElementByClassName('test') // or .findFirst('.header') -console.log(element) // This is a test -``` - -- Let's use attribute for finding the element. -```js -const html = `This is a test`; -const element = jssoup.load(html).getElementByAttr('data-type'); // or .findFirst('[data-type]'); -console.log(element); // This is a test -``` - -- Other ways to get the same element : -```js -const html = `This is a test` -const doc = jssoup.load(html) -element = doc.getElementByTagName('test') -element = doc.findFirst('test') -element = doc.getElementByClass('tcls header') -element = doc.findFirst('test.tcls.header') -element = doc.getElementById('element_id') -element = doc.findFirst('test#element_id') -element = doc.getElementByAttr('data-type', 'test_attr') -element = doc.findFirst('test[data-type=test_attr]') -element = doc.findFirst('html > head > test:nth-child(0)') -``` - -- Get comments : -```js -const html = ` - -

This is a test

- - -`; - -const doc = jssoup.load(html) -console.log(doc.comments()[0]) // this is a comment -``` - -- Get metta tags : -```js -const doc = await jssoup.loadFromURL("https://github.com/Aghajari", options()) - -console.log(doc.metaTags()) // Array of meta tags -console.log(doc.metaEl('description')) // meta element for description -console.log(doc.metaEl('image')) // meta content for image -/* -* metaEl() will search following tags: -* (Standard) -* -* -* -* -* -*/ -``` - -- LinkPreview inspired by [linkpreview](https://github.com/meyt/linkpreview) : -```js -const doc = await jssoup.loadFromURL("https://github.com/Aghajari", options()) - -console.log('title', doc.title()) // Aghajari - Overview -console.log('description', doc.description()) // Aghajari has ? repositories available. Follow their code on GitHub. -console.log('image', doc.image()) // https://avatars.githubusercontent.com/u/30867537?v=4?s=400 -``` - -- Getting multiple tags : -```js -const html = ` - - This is test1 - This is test2 - This is test3 - -`; - -const doc = jssoup.load(html) -console.log(doc.find(['tag1', 'tag2', 'tag3'])) // Array of elements -``` - -- Limit output indexes : -```js -const html = ` - - This is test0 - This is test1 - This is test2 - This is test3 - This is test4 - This is test5 - -`; - -const doc = jssoup.load(html) -console.log(doc.find('tag', [2, -2])) // Array of elements (test2, test4) -``` - -- Get attribute from element: -```js -const html = `This is a test`; -const element = jssoup.load(html).getElementByAttr('data-id'); // or .findFirst('test[data-id]'); -console.log(element.getAttribute('data-id')); // id1234 -``` - -## Attribute Expression -- `=` : equal `[attr=value]` -- `!=` : unequal `[attr!=value]` -- `*=` : regex `[attr*=value]` -- `^=` : regex /^pattern/ `[attr^=value]` -- `$=` : regex /pattern$/ `[attr$=value]` -- `|=` : startsWith `[attr|=value]` -- `&=` : endsWith `[attr&=value]` -- `%=` : contains `[attr%=value]` -- `~=` : contains in list of words `[attr~=value]`
`` : `[attr~=red]` - -## Author -- **Amir Hossein Aghajari** - -License -======= - - Copyright 2021 Amir Hossein Aghajari - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -
- LCoders | AmirHosseinAghajari -
Amir Hossein AghajariEmailGitHub -
diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/empty.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/empty.js deleted file mode 100644 index c75671f4..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/empty.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = function empty(accessor) { - try { - // Note we're seeing if the returned value of our function is not - // undefined or null or empty - return accessor === undefined || accessor === null || accessor.length === 0; - } catch (e) { - // And we're able to catch the Error it would normally throw for - // referencing a property of undefined - return false; - } -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/html_entity_decode.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/html_entity_decode.js deleted file mode 100644 index 2ec3f374..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/html_entity_decode.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = function html_entity_decode (string, quoteStyle) { // eslint-disable-line camelcase - // discuss at: https://locutus.io/php/html_entity_decode/ - // original by: john (https://www.jd-tech.net) - // input by: ger - // input by: Ratheous - // input by: Nick Kolosov (https://sammy.ru) - // improved by: Kevin van Zonneveld (https://kvz.io) - // improved by: marc andreu - // revised by: Kevin van Zonneveld (https://kvz.io) - // revised by: Kevin van Zonneveld (https://kvz.io) - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // bugfixed by: Brett Zamir (https://brett-zamir.me) - // bugfixed by: Fox - // example 1: html_entity_decode('Kevin & van Zonneveld') - // returns 1: 'Kevin & van Zonneveld' - // example 2: html_entity_decode('&lt;') - // returns 2: '<' - - const getHtmlTranslationTable = require('./html_translation') - let tmpStr = '' - let entity = '' - let symbol = '' - tmpStr = string.toString() - - const hashMap = getHtmlTranslationTable('HTML_ENTITIES', quoteStyle) - if (hashMap === false) { - return false - } - - // @todo: & problem - // https://locutus.io/php/get_html_translation_table:416#comment_97660 - delete (hashMap['&']) - hashMap['&'] = '&' - - for (symbol in hashMap) { - entity = hashMap[symbol] - tmpStr = tmpStr.split(entity).join(symbol) - } - tmpStr = tmpStr.split(''').join("'") - - return tmpStr; -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/html_translation.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/html_translation.js deleted file mode 100644 index a7cdb4cf..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/html_translation.js +++ /dev/null @@ -1,170 +0,0 @@ -module.exports = function get_html_translation_table (table, quoteStyle) { // eslint-disable-line camelcase - // discuss at: https://locutus.io/php/get_html_translation_table/ - // original by: Philip Peterson - // revised by: Kevin van Zonneveld (https://kvz.io) - // bugfixed by: noname - // bugfixed by: Alex - // bugfixed by: Marco - // bugfixed by: madipta - // bugfixed by: Brett Zamir (https://brett-zamir.me) - // bugfixed by: T.Wild - // improved by: KELAN - // improved by: Brett Zamir (https://brett-zamir.me) - // input by: Frank Forte - // input by: Ratheous - // note 1: It has been decided that we're not going to add global - // note 1: dependencies to Locutus, meaning the constants are not - // note 1: real constants, but strings instead. Integers are also supported if someone - // note 1: chooses to create the constants themselves. - // example 1: get_html_translation_table('HTML_SPECIALCHARS') - // returns 1: {'"': '"', '&': '&', '<': '<', '>': '>'} - - const entities = {} - const hashMap = {} - let decimal - const constMappingTable = {} - const constMappingQuoteStyle = {} - let useTable = {} - let useQuoteStyle = {} - - // Translate arguments - constMappingTable[0] = 'HTML_SPECIALCHARS' - constMappingTable[1] = 'HTML_ENTITIES' - constMappingQuoteStyle[0] = 'ENT_NOQUOTES' - constMappingQuoteStyle[2] = 'ENT_COMPAT' - constMappingQuoteStyle[3] = 'ENT_QUOTES' - - useTable = !isNaN(table) - ? constMappingTable[table] - : table - ? table.toUpperCase() - : 'HTML_SPECIALCHARS' - - useQuoteStyle = !isNaN(quoteStyle) - ? constMappingQuoteStyle[quoteStyle] - : quoteStyle - ? quoteStyle.toUpperCase() - : 'ENT_COMPAT' - - if (useTable !== 'HTML_SPECIALCHARS' && useTable !== 'HTML_ENTITIES') { - throw new Error('Table: ' + useTable + ' not supported') - } - - entities['38'] = '&' - if (useTable === 'HTML_ENTITIES') { - entities['160'] = ' ' - entities['161'] = '¡' - entities['162'] = '¢' - entities['163'] = '£' - entities['164'] = '¤' - entities['165'] = '¥' - entities['166'] = '¦' - entities['167'] = '§' - entities['168'] = '¨' - entities['169'] = '©' - entities['170'] = 'ª' - entities['171'] = '«' - entities['172'] = '¬' - entities['173'] = '­' - entities['174'] = '®' - entities['175'] = '¯' - entities['176'] = '°' - entities['177'] = '±' - entities['178'] = '²' - entities['179'] = '³' - entities['180'] = '´' - entities['181'] = 'µ' - entities['182'] = '¶' - entities['183'] = '·' - entities['184'] = '¸' - entities['185'] = '¹' - entities['186'] = 'º' - entities['187'] = '»' - entities['188'] = '¼' - entities['189'] = '½' - entities['190'] = '¾' - entities['191'] = '¿' - entities['192'] = 'À' - entities['193'] = 'Á' - entities['194'] = 'Â' - entities['195'] = 'Ã' - entities['196'] = 'Ä' - entities['197'] = 'Å' - entities['198'] = 'Æ' - entities['199'] = 'Ç' - entities['200'] = 'È' - entities['201'] = 'É' - entities['202'] = 'Ê' - entities['203'] = 'Ë' - entities['204'] = 'Ì' - entities['205'] = 'Í' - entities['206'] = 'Î' - entities['207'] = 'Ï' - entities['208'] = 'Ð' - entities['209'] = 'Ñ' - entities['210'] = 'Ò' - entities['211'] = 'Ó' - entities['212'] = 'Ô' - entities['213'] = 'Õ' - entities['214'] = 'Ö' - entities['215'] = '×' - entities['216'] = 'Ø' - entities['217'] = 'Ù' - entities['218'] = 'Ú' - entities['219'] = 'Û' - entities['220'] = 'Ü' - entities['221'] = 'Ý' - entities['222'] = 'Þ' - entities['223'] = 'ß' - entities['224'] = 'à' - entities['225'] = 'á' - entities['226'] = 'â' - entities['227'] = 'ã' - entities['228'] = 'ä' - entities['229'] = 'å' - entities['230'] = 'æ' - entities['231'] = 'ç' - entities['232'] = 'è' - entities['233'] = 'é' - entities['234'] = 'ê' - entities['235'] = 'ë' - entities['236'] = 'ì' - entities['237'] = 'í' - entities['238'] = 'î' - entities['239'] = 'ï' - entities['240'] = 'ð' - entities['241'] = 'ñ' - entities['242'] = 'ò' - entities['243'] = 'ó' - entities['244'] = 'ô' - entities['245'] = 'õ' - entities['246'] = 'ö' - entities['247'] = '÷' - entities['248'] = 'ø' - entities['249'] = 'ù' - entities['250'] = 'ú' - entities['251'] = 'û' - entities['252'] = 'ü' - entities['253'] = 'ý' - entities['254'] = 'þ' - entities['255'] = 'ÿ' - } - - if (useQuoteStyle !== 'ENT_NOQUOTES') { - entities['34'] = '"' - } - if (useQuoteStyle === 'ENT_QUOTES') { - entities['39'] = ''' - } - entities['60'] = '<' - entities['62'] = '>' - - // ascii decimals to real symbols - for (decimal in entities) { - if (entities.hasOwnProperty(decimal)) { - hashMap[String.fromCharCode(decimal)] = entities[decimal] - } - } - - return hashMap -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/htmlentities.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/htmlentities.js deleted file mode 100644 index 9e26edd0..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/htmlentities.js +++ /dev/null @@ -1,48 +0,0 @@ -module.exports = function htmlentities (string, quoteStyle, doubleEncode) { - // discuss at: https://locutus.io/php/htmlentities/ - // original by: Kevin van Zonneveld (https://kvz.io) - // revised by: Kevin van Zonneveld (https://kvz.io) - // revised by: Kevin van Zonneveld (https://kvz.io) - // improved by: nobbler - // improved by: Jack - // improved by: Rafał Kukawski (https://blog.kukawski.pl) - // improved by: Dj (https://locutus.io/php/htmlentities:425#comment_134018) - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // bugfixed by: Brett Zamir (https://brett-zamir.me) - // input by: Ratheous - // note 1: function is compatible with PHP 5.2 and older - // example 1: htmlentities('Kevin & van Zonneveld') - // returns 1: 'Kevin & van Zonneveld' - // example 2: htmlentities("foo'bar","ENT_QUOTES") - // returns 2: 'foo'bar' - - const getHtmlTranslationTable = require('./html_translation') - const hashMap = getHtmlTranslationTable('HTML_ENTITIES', quoteStyle) - - string = string === null ? '' : string + '' - - if (!hashMap) { - return false - } - - if (quoteStyle && quoteStyle === 'ENT_QUOTES') { - hashMap["'"] = ''' - } - - doubleEncode = doubleEncode === null || !!doubleEncode - - const regex = new RegExp('&(?:#\\d+|#x[\\da-f]+|[a-zA-Z][\\da-z]*);|[' + - Object.keys(hashMap) - .join('') - // replace regexp special chars - .replace(/([()[\]{}\-.*+?^$|/\\])/g, '\\$1') + ']', - 'g') - - return string.replace(regex, function (ent) { - if (ent.length > 1) { - return doubleEncode ? hashMap['&'] + ent.substr(1) : ent - } - - return hashMap[ent] - }) -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/index.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/index.js deleted file mode 100644 index dba176a5..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/index.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports.sprintf = require('./sprintf'); -module.exports.strcasecmp = require('./strcasecmp'); -module.exports.strcspn = require('./strcspn'); -module.exports.substr_replace = require('./substr_replace'); -module.exports.strspn = require('./strspn'); -module.exports.str_ireplace = require('./str_ireplace'); -module.exports.empty = require('./empty'); -module.exports.isset = require('./isset'); -module.exports.isset_key = require('./isset_key'); -module.exports.isNumeric = require('./is_numeric'); -module.exports.preg_quote = require('./preg_quote'); -module.exports.range = require('./range'); -module.exports.htmlentities = require('./htmlentities'); -module.exports.html_entity_decode = require('./html_entity_decode'); diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/is_numeric.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/is_numeric.js deleted file mode 100644 index f977f564..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/is_numeric.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function isNumeric(num) { - return !isNaN(parseFloat(num)) && isFinite(num); -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/isset.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/isset.js deleted file mode 100644 index fe231c98..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/isset.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = function isset(accessor) { - try { - // Note we're seeing if the returned value of our function is not - // undefined or null - return accessor !== undefined && accessor !== null; - } catch (e) { - // And we're able to catch the Error it would normally throw for - // referencing a property of undefined - return false; - } -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/isset_key.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/isset_key.js deleted file mode 100644 index d916880b..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/isset_key.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = function isset_key(accessor, key) { - try { - const isset = require('./isset'); - return isset(accessor) && isset(accessor[key]); - } catch (e) { - // And we're able to catch the Error it would normally throw for - // referencing a property of undefined - return false; - } -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/preg_quote.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/preg_quote.js deleted file mode 100644 index 4558e00b..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/preg_quote.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function preg_quote(str, delimiter) { - return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&'); -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/range.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/range.js deleted file mode 100644 index 66787f3e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/range.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function range(start, end) { - return [...Array(Math.max(end - start + 1, 0)).keys()].map(i => i + start); -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/sprintf.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/sprintf.js deleted file mode 100644 index cad61be4..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/sprintf.js +++ /dev/null @@ -1,195 +0,0 @@ -module.exports = function sprintf () { - // discuss at: https://locutus.io/php/sprintf/ - // original by: Ash Searle (https://hexmen.com/blog/) - // improved by: Michael White (https://getsprink.com) - // improved by: Jack - // improved by: Kevin van Zonneveld (https://kvz.io) - // improved by: Kevin van Zonneveld (https://kvz.io) - // improved by: Kevin van Zonneveld (https://kvz.io) - // improved by: Dj - // improved by: Allidylls - // input by: Paulo Freitas - // input by: Brett Zamir (https://brett-zamir.me) - // improved by: Rafał Kukawski (https://kukawski.pl) - // example 1: sprintf("%01.2f", 123.1) - // returns 1: '123.10' - // example 2: sprintf("[%10s]", 'monkey') - // returns 2: '[ monkey]' - // example 3: sprintf("[%'#10s]", 'monkey') - // returns 3: '[####monkey]' - // example 4: sprintf("%d", 123456789012345) - // returns 4: '123456789012345' - // example 5: sprintf('%-03s', 'E') - // returns 5: 'E00' - // example 6: sprintf('%+010d', 9) - // returns 6: '+000000009' - // example 7: sprintf('%+0\'@10d', 9) - // returns 7: '@@@@@@@@+9' - // example 8: sprintf('%.f', 3.14) - // returns 8: '3.140000' - // example 9: sprintf('%% %2$d', 1, 2) - // returns 9: '% 2' - - const regex = /%%|%(?:(\d+)\$)?((?:[-+#0 ]|'[\s\S])*)(\d+)?(?:\.(\d*))?([\s\S])/g - const args = arguments - let i = 0 - const format = args[i++] - - const _pad = function (str, len, chr, leftJustify) { - if (!chr) { - chr = ' ' - } - const padding = (str.length >= len) ? '' : new Array(1 + len - str.length >>> 0).join(chr) - return leftJustify ? str + padding : padding + str - } - - const justify = function (value, prefix, leftJustify, minWidth, padChar) { - const diff = minWidth - value.length - if (diff > 0) { - // when padding with zeros - // on the left side - // keep sign (+ or -) in front - if (!leftJustify && padChar === '0') { - value = [ - value.slice(0, prefix.length), - _pad('', diff, '0', true), - value.slice(prefix.length) - ].join('') - } else { - value = _pad(value, minWidth, padChar, leftJustify) - } - } - return value - } - - const _formatBaseX = function (value, base, leftJustify, minWidth, precision, padChar) { - // Note: casts negative numbers to positive ones - const number = value >>> 0 - value = _pad(number.toString(base), precision || 0, '0', false) - return justify(value, '', leftJustify, minWidth, padChar) - } - - // _formatString() - const _formatString = function (value, leftJustify, minWidth, precision, customPadChar) { - if (precision !== null && precision !== undefined) { - value = value.slice(0, precision) - } - return justify(value, '', leftJustify, minWidth, customPadChar) - } - - // doFormat() - const doFormat = function (substring, argIndex, modifiers, minWidth, precision, specifier) { - let number, prefix, method, textTransform, value - - if (substring === '%%') { - return '%' - } - - // parse modifiers - let padChar = ' ' // pad with spaces by default - let leftJustify = false - let positiveNumberPrefix = '' - let j, l - - for (j = 0, l = modifiers.length; j < l; j++) { - switch (modifiers.charAt(j)) { - case ' ': - case '0': - padChar = modifiers.charAt(j) - break - case '+': - positiveNumberPrefix = '+' - break - case '-': - leftJustify = true - break - case "'": - if (j + 1 < l) { - padChar = modifiers.charAt(j + 1) - j++ - } - break - } - } - - if (!minWidth) { - minWidth = 0 - } else { - minWidth = +minWidth - } - - if (!isFinite(minWidth)) { - throw new Error('Width must be finite') - } - - if (!precision) { - precision = (specifier === 'd') ? 0 : 'fFeE'.indexOf(specifier) > -1 ? 6 : undefined - } else { - precision = +precision - } - - if (argIndex && +argIndex === 0) { - throw new Error('Argument number must be greater than zero') - } - - if (argIndex && +argIndex >= args.length) { - throw new Error('Too few arguments') - } - - value = argIndex ? args[+argIndex] : args[i++] - - switch (specifier) { - case '%': - return '%' - case 's': - return _formatString(value + '', leftJustify, minWidth, precision, padChar) - case 'c': - return _formatString(String.fromCharCode(+value), leftJustify, minWidth, precision, padChar) - case 'b': - return _formatBaseX(value, 2, leftJustify, minWidth, precision, padChar) - case 'o': - return _formatBaseX(value, 8, leftJustify, minWidth, precision, padChar) - case 'x': - return _formatBaseX(value, 16, leftJustify, minWidth, precision, padChar) - case 'X': - return _formatBaseX(value, 16, leftJustify, minWidth, precision, padChar) - .toUpperCase() - case 'u': - return _formatBaseX(value, 10, leftJustify, minWidth, precision, padChar) - case 'i': - case 'd': - number = +value || 0 - // Plain Math.round doesn't just truncate - number = Math.round(number - number % 1) - prefix = number < 0 ? '-' : positiveNumberPrefix - value = prefix + _pad(String(Math.abs(number)), precision, '0', false) - - if (leftJustify && padChar === '0') { - // can't right-pad 0s on integers - padChar = ' ' - } - return justify(value, prefix, leftJustify, minWidth, padChar) - case 'e': - case 'E': - case 'f': // @todo: Should handle locales (as per setlocale) - case 'F': - case 'g': - case 'G': - number = +value - prefix = number < 0 ? '-' : positiveNumberPrefix - method = ['toExponential', 'toFixed', 'toPrecision']['efg'.indexOf(specifier.toLowerCase())] - textTransform = ['toString', 'toUpperCase']['eEfFgG'.indexOf(specifier) % 2] - value = prefix + Math.abs(number)[method](precision) - return justify(value, prefix, leftJustify, minWidth, padChar)[textTransform]() - default: - // unknown specifier, consume that char and return empty - return '' - } - } - - try { - return format.replace(regex, doFormat) - } catch (err) { - return false - } -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/str_ireplace.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/str_ireplace.js deleted file mode 100644 index f7a75560..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/str_ireplace.js +++ /dev/null @@ -1,102 +0,0 @@ -module.exports = function str_ireplace (search, replace, subject, countObj) { // eslint-disable-line camelcase - // discuss at: https://locutus.io/php/str_ireplace/ - // original by: Glen Arason (https://CanadianDomainRegistry.ca) - // bugfixed by: Mahmoud Saeed - // note 1: Case-insensitive version of str_replace() - // note 1: Compliant with PHP 5.0 str_ireplace() Full details at: - // note 1: https://ca3.php.net/manual/en/function.str-ireplace.php - // note 2: The countObj parameter (optional) if used must be passed in as a - // note 2: object. The count will then be written by reference into it's `value` property - // example 1: str_ireplace('M', 'e', 'name') - // returns 1: 'naee' - // example 2: var $countObj = {} - // example 2: str_ireplace('M', 'e', 'name', $countObj) - // example 2: var $result = $countObj.value - // returns 2: 1 - // example 3: str_ireplace('', '.', 'aaa') - // returns 3: 'aaa' - - let i = 0 - let j = 0 - let temp = '' - let repl = '' - let sl = 0 - let fl = 0 - let f = '' - let r = '' - let s = '' - let ra = '' - let otemp = '' - let oi = '' - let ofjl = '' - let os = subject - const osa = Object.prototype.toString.call(os) === '[object Array]' - // var sa = '' - - if (typeof (search) === 'object') { - temp = search - search = [] - for (i = 0; i < temp.length; i += 1) { - search[i] = temp[i].toLowerCase() - } - } else { - search = search.toLowerCase() - } - - if (typeof (subject) === 'object') { - temp = subject - subject = [] - for (i = 0; i < temp.length; i += 1) { - subject[i] = temp[i].toLowerCase() - } - } else { - subject = subject.toLowerCase() - } - - if (typeof (search) === 'object' && typeof (replace) === 'string') { - temp = replace - replace = [] - for (i = 0; i < search.length; i += 1) { - replace[i] = temp - } - } - - temp = '' - f = [].concat(search) - r = [].concat(replace) - ra = Object.prototype.toString.call(r) === '[object Array]' - s = subject - // sa = Object.prototype.toString.call(s) === '[object Array]' - s = [].concat(s) - os = [].concat(os) - - if (countObj) { - countObj.value = 0 - } - - for (i = 0, sl = s.length; i < sl; i++) { - if (s[i] === '') { - continue - } - for (j = 0, fl = f.length; j < fl; j++) { - if (f[j] === '') { - continue - } - temp = s[i] + '' - repl = ra ? (r[j] !== undefined ? r[j] : '') : r[0] - s[i] = (temp).split(f[j]).join(repl) - otemp = os[i] + '' - oi = temp.indexOf(f[j]) - ofjl = f[j].length - if (oi >= 0) { - os[i] = (otemp).split(otemp.substr(oi, ofjl)).join(repl) - } - - if (countObj) { - countObj.value += ((temp.split(f[j])).length - 1) - } - } - } - - return osa ? os : os[0] -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strcasecmp.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strcasecmp.js deleted file mode 100644 index 75c9b3d0..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strcasecmp.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = function strcasecmp (fString1, fString2) { - // discuss at: https://locutus.io/php/strcasecmp/ - // original by: Martijn Wieringa - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // example 1: strcasecmp('Hello', 'hello') - // returns 1: 0 - - const string1 = (fString1 + '').toLowerCase() - const string2 = (fString2 + '').toLowerCase() - - if (string1 > string2) { - return 1 - } else if (string1 === string2) { - return 0 - } - - return -1 -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strcspn.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strcspn.js deleted file mode 100644 index 6d3508ab..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strcspn.js +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = function strcspn (str, mask, start, length) { - // discuss at: https://locutus.io/php/strcspn/ - // original by: Brett Zamir (https://brett-zamir.me) - // revised by: Theriault - // example 1: strcspn('abcdefg123', '1234567890') - // returns 1: 7 - // example 2: strcspn('123abc', '1234567890') - // returns 2: 0 - // example 3: strcspn('abcdefg123', '1234567890', 1) - // returns 3: 6 - // example 4: strcspn('abcdefg123', '1234567890', -6, -5) - // returns 4: 1 - - start = start || 0 - length = typeof length === 'undefined' ? str.length : (length || 0) - if (start < 0) start = str.length + start - if (length < 0) length = str.length - start + length - if (start < 0 || start >= str.length || length <= 0) return 0 - const e = Math.min(str.length, start + length) - let lgth = 0; - for (let i = start; i < e; i++) { - if (mask.indexOf(str.charAt(i)) !== -1) { - break - } - ++lgth - } - return lgth -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strspn.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strspn.js deleted file mode 100644 index e0c109f5..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/strspn.js +++ /dev/null @@ -1,36 +0,0 @@ -module.exports = function strspn (str1, str2, start, lgth) { - // discuss at: https://locutus.io/php/strspn/ - // original by: Valentina De Rosa - // improved by: Brett Zamir (https://brett-zamir.me) - // example 1: strspn('42 is the answer, what is the question ...', '1234567890') - // returns 1: 2 - // example 2: strspn('foo', 'o', 1, 2) - // returns 2: 2 - - let found - let stri - let strj - let j = 0 - let i = 0 - - start = start ? (start < 0 ? (str1.length + start) : start) : 0 - lgth = lgth ? ((lgth < 0) ? (str1.length + lgth - start) : lgth) : str1.length - start - str1 = str1.substr(start, lgth) - - for (i = 0; i < str1.length; i++) { - found = 0 - stri = str1.substring(i, i + 1) - for (j = 0; j <= str2.length; j++) { - strj = str2.substring(j, j + 1) - if (stri === strj) { - found = 1 - break - } - } - if (found !== 1) { - return i - } - } - - return i -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/substr_replace.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/substr_replace.js deleted file mode 100644 index 4dcd4244..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/functions/substr_replace.js +++ /dev/null @@ -1,33 +0,0 @@ -module.exports = function substr_replace (str, replace, start, length) { // eslint-disable-line camelcase - // discuss at: https://locutus.io/php/substr_replace/ - // original by: Brett Zamir (https://brett-zamir.me) - // example 1: substr_replace('ABCDEFGH:/MNRPQR/', 'bob', 0) - // returns 1: 'bob' - // example 2: var $var = 'ABCDEFGH:/MNRPQR/' - // example 2: substr_replace($var, 'bob', 0, $var.length) - // returns 2: 'bob' - // example 3: substr_replace('ABCDEFGH:/MNRPQR/', 'bob', 0, 0) - // returns 3: 'bobABCDEFGH:/MNRPQR/' - // example 4: substr_replace('ABCDEFGH:/MNRPQR/', 'bob', 10, -1) - // returns 4: 'ABCDEFGH:/bob/' - // example 5: substr_replace('ABCDEFGH:/MNRPQR/', 'bob', -7, -1) - // returns 5: 'ABCDEFGH:/bob/' - // example 6: substr_replace('ABCDEFGH:/MNRPQR/', '', 10, -1) - // returns 6: 'ABCDEFGH://' - - if (start < 0) { - // start position in str - start = start + str.length - } - length = length !== undefined ? length : str.length - if (length < 0) { - length = length + str.length - start - } - - return [ - str.slice(0, start), - replace.substr(0, length), - replace.slice(length), - str.slice(start + length) - ].join('') -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/html_document.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/html_document.js deleted file mode 100644 index 70e96819..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/html_document.js +++ /dev/null @@ -1,1212 +0,0 @@ -/* - * Copyright (C) 2021 - Amir Hossein Aghajari - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - - -const HTMLNode = require('./html_node.js'); -const Functions = require('./functions'); -const util = require('util'); - -class HTMLDocument { - root; - nodes = []; - caseInsensitive = false; - original_size; - size; - - #source; - _pos; - _doc; - - _char; - cursor; - _parent; - _noise = []; - _token_blank = " \t\r\n"; - _token_equal = ' =/>'; - _token_slash = " />\r\n\t"; - _token_attr = ' >'; - - _charset = ''; - _target_charset = ''; - - default_br_text = ''; - default_span_text = ' '; - - #self_closing_tags = { - 'area': 1, - 'base': 1, - 'br': 1, - 'col': 1, - 'embed': 1, - 'hr': 1, - 'img': 1, - 'input': 1, - 'link': 1, - 'meta': 1, - 'param': 1, - 'source': 1, - 'track': 1, - 'wbr': 1 - }; - #block_tags = { - 'body': 1, - 'div': 1, - 'form': 1, - 'root': 1, - 'span': 1, - 'table': 1 - }; - #optional_closing_tags = { - // Not optional, see - // https://www.w3.org/TR/html/textlevel-semantics.html#the-b-element - 'b': {'b': 1}, - 'dd': {'dd': 1, 'dt': 1}, - // Not optional, see - // https://www.w3.org/TR/html/grouping-content.html#the-dl-element - 'dl': {'dd': 1, 'dt': 1}, - 'dt': {'dd': 1, 'dt': 1}, - 'li': {'li': 1}, - 'optgroup': {'optgroup': 1, 'option': 1}, - 'option': {'optgroup': 1, 'option': 1}, - 'p': {'p': 1}, - 'rp': {'rp': 1, 'rt': 1}, - 'rt': {'rp': 1, 'rt': 1}, - 'td': {'td': 1, 'th': 1}, - 'th': {'td': 1, 'th': 1}, - 'tr': {'td': 1, 'th': 1, 'tr': 1}, - }; - - constructor( - str = null, - lowercase = true, - forceTagsClosed = false, - target_charset = 'UTF-8', - stripRN = true, - defaultBRText = '\r\n', - defaultSpanText = ' ', - removeSmartyScripts = false) { - - if (Functions.isset(str)) { - this.load(str, lowercase, stripRN, defaultBRText, defaultSpanText, removeSmartyScripts); - } else { - this._prepare(str, lowercase, defaultBRText, defaultSpanText); - } - // Forcing tags to be closed implies that we don't trust the html, but - // it can lead to parsing errors if we SHOULD trust the html. - if (forceTagsClosed) { - this.#optional_closing_tags = []; - } - - this._target_charset = target_charset; - } - - clear() { - if (Functions.isset(this.nodes)) { - for (const node of this.nodes) { - node.clear(); - } - } - } - - [util.inspect.custom](depth, opts) { - return this._debug(opts); - } - - _debug(opts) { - const tab = " "; - let elements = ''; - for (const node of this.nodes) { - elements += node._debug(opts, tab + tab, true, false) + ', \n'; - } - elements = elements.trimRight(); - if (elements.endsWith(",")) elements = elements.substring(0, elements.length - 1); - - return 'HTMLDocument {\n' + - tab + opts.stylize('elements_count', 'special') + - ': ' + opts.stylize(this.nodes.length, 'number') + '\n' + - tab + opts.stylize('elements', 'special') + - ': [\n' + elements + '\n' + tab + ']\n' + - '}'; - } - - load( - str, - caseInsensitive = true, - stripRN = true, - defaultBRText = '\r\n', - defaultSpanText = ' ', - removeSmartyScripts = false) { - - this._prepare(str, caseInsensitive, defaultBRText, defaultSpanText); - - if (stripRN) { - // Temporarily remove any element that shouldn't loose whitespace - this._remove_noise(/<\s*script[^>]*>(.*?)<\s*\s*script\s*>/is); - this._remove_noise(//is); - this._remove_noise(//is); - this._remove_noise(/<\s*style[^>]*>(.*?)<\s*\s*style\s*>/is); - this._remove_noise(/<\s*(?:code)[^>]*>(.*?)<\s*\s*(?:code)\s*>/is); - - // Remove whitespace and newlines between tags - this._doc = this._doc.replace(/\>([\t\s]*[\r\n]^[\t\s]*)\<'); - - // Remove whitespace and newlines in text - this._doc = this._doc.replace(/([\t\s]*[\r\n]^[\t\s]*)/m, ' '); - - // Restore temporarily removed elements and calculate new size - this._doc = this._restore_noise(this._doc); - this.size = this._doc.length; - } - - this._remove_noise(/<\?\)(.*?)(\?>)/s, true); // server-side script - - if (removeSmartyScripts) { // Strip Smarty scripts - this._remove_noise(/(\{\w)(.*?)(\})/s, true); - } - // parsing - this._parse(stripRN); - // end - this.root.$_[HTMLNode.INFO_END] = this.cursor; - this._parse_charset(); - this._decode(); - delete this._doc; - - return this; - } - - find(selector, idx = null, caseInsensitive = false) { - return this.root.find(selector, idx, caseInsensitive); - } - - findFirst(selector, caseInsensitive = false) { - return this.root.findFirst(selector, caseInsensitive); - } - - findLast(selector, caseInsensitive = false) { - return this.root.findLast(selector, caseInsensitive); - } - - expect(selector, idx = null, caseInsensitive = false) { - return this.root.expect(selector, idx, caseInsensitive); - } - - _prepare( - str, lowercase = true, - defaultBRText = '\r\n', - defaultSpanText = ' ') { - this.clear(); - - this.#source = str; - this._doc = str.trim(); - this.size = this._doc.length; - this.original_size = this.size; // original size of the html - this._pos = 0; - this.cursor = 1; - this._noise = []; - this.nodes = []; - this.caseInsensitive = lowercase; - this.default_br_text = defaultBRText; - this.default_span_text = defaultSpanText; - this.root = new HTMLNode(this); - this.root.tag = 'root'; - this.root.$_[HTMLNode.INFO_BEGIN] = -1; - this.root.nodeType = HTMLNode.TYPE_ROOT; - this._parent = this.root; - if (this.size > 0) - this._char = this._doc.charAt(0); - } - - _decode() { - for (const node of this.nodes) { - if (Functions.isset(node.$_[HTMLNode.INFO_TEXT])) { - node.$_[HTMLNode.INFO_TEXT] = Functions.html_entity_decode( - this._restore_noise(node.$_[HTMLNode.INFO_TEXT]), - "ENT_QUOTES"); - } - if (Functions.isset(node.$_[HTMLNode.INFO_INNER])) { - node.$_[HTMLNode.INFO_INNER] = Functions.html_entity_decode( - this._restore_noise(node.$_[HTMLNode.INFO_INNER]), - "ENT_QUOTES"); - } - if (Functions.isset(node.attr)) { - for (const [a, v] of node.attr) { - if (v === true) continue; - - const v2 = Functions.html_entity_decode(v, "ENT_QUOTES"); - node.attr.set(a, v2); - if (a === 'class') - node.class = v2; - } - } - //console.log(node.$_); - } - } - - _parse(trim = false) { - while (true) { - if (this._char !== '<') { - const content = this._copy_until_char('<'); - - if (content !== '') { - // Skip whitespace between tags? ( ) - if (trim && content.trim() === '') { - continue; - } - - const node = new HTMLNode(this); - ++this.cursor; - node.$_[HTMLNode.INFO_TEXT] = content; - this._link_nodes(node, false); - } - } - - if (this._read_tag(trim) === false) { - break; - } - } - } - - _parse_charset() { - let charset = ''; - - // https://www.w3.org/TR/html/document-metadata.html#statedef-http-equiv-content-type - const el = this.root.find('meta[http-equiv=Content-Type]', 0, true); - - if (!Functions.empty(el)) { - const fullvalue = el.content; - - if (!Functions.empty(fullvalue)) { - - const charsetRegex = /charset=(.+)/i; - let match; - - if ((match = charsetRegex.exec(fullvalue)) !== null) { - charset = match[1]; - } - - } - } - - if (Functions.empty(charset)) { - // https://www.w3.org/TR/html/document-metadata.html#character-encoding-declaration - const meta = this.root.find('meta[charset]', 0); - if (Functions.isset(meta)) { - charset = meta.charset; - } - } - - if (Functions.empty(charset)) { - // Debug: Unable to determine charset from source document. Assuming UTF-8 - charset = "UTF-8"; - } - - // Since CP1252 is a superset, if we get one of it's subsets, we want - // it instead. - if ((charset.toLowerCase() === 'iso-8859-1') - || (charset.toLowerCase() === 'latin1') - || (charset.toLowerCase() === 'latin-1')) { - charset = 'CP1252'; - } - - return this._charset = charset; - } - - _read_tag(trim) { - if (this._char !== '<') { // End Of File - this.root.$_[HTMLNode.INFO_END] = this.cursor; - - // We might be in a nest of unclosed elements for which the end tags - // can be omitted. Close them for faster seek operations. - do { - if (Functions.isset(this.#optional_closing_tags[this._parent.tag.toLowerCase()])) { - this._parent.$_[HTMLNode.INFO_END] = this.cursor; - } - } while (this._parent === this._parent._parent); - - return false; - } - - this._next(); - - if (trim) { // "< /html>" - this._skip(this._token_blank); - } - - // End tag: https://dev.w3.org/html5/pf-summary/syntax.html#end-tags - if (this._char === '/') { - this._next(); - - let tag = this._copy_until_char('>'); - tag = trim ? tag.trimLeft() : tag; - - // Skip attributes and whitespace in end tags - const pos = tag.indexOf(' '); - if (trim && pos >= 0) { - // Debug: Source document contains superfluous whitespace in end tags (). - tag = tag.substr(0, pos); - } - - if (Functions.strcasecmp(this._parent.tag, tag) === 1) { // Parent is not start tag - const parent_lower = this._parent.tag.toLowerCase(); - const tag_lower = tag.toLowerCase(); - if (Functions.isset(this.#optional_closing_tags[parent_lower]) && Functions.isset(this.#block_tags[tag_lower])) { - const org_parent = this._parent; - - // Look for the start tag - while (Functions.isset(this._parent._parent) && this._parent.tag.toLowerCase() !== tag_lower) { - // Close any unclosed element with optional end tags - if (Functions.isset(this.#optional_closing_tags[this._parent.tag.toLowerCase()])) - this._parent.$_[HTMLNode.INFO_END] = this.cursor; - this._parent = this._parent._parent; - } - - // No start tag, close grandparent - if (this._parent.tag.toLowerCase() !== tag_lower) { - this._parent = org_parent; - - if (Functions.isset(this._parent._parent)) { - this._parent = this._parent._parent; - } - - this._parent.$_[HTMLNode.INFO_END] = this.cursor; - return this._as_text_node(tag); - } - } else if (Functions.isset(this._parent._parent) && Functions.isset(this.#block_tags[tag_lower])) { - // grandparent exists + current is block tag - // Parent has no end tag - this._parent.$_[HTMLNode.INFO_END] = 0; - const org_parent = this._parent; - - // Find start tag - while (Functions.isset(this._parent._parent) && this._parent.tag.toLowerCase() !== tag_lower) { - this._parent = this._parent._parent; - } - - // No start tag, close parent - if (this._parent.tag.toLowerCase() !== tag_lower) { - this._parent = org_parent; // restore origonal parent - this._parent.$_[HTMLNode.INFO_END] = this.cursor; - return this._as_text_node(tag); - } - } else if (Functions.isset(this._parent._parent) && this._parent._parent.tag.toLowerCase() === tag_lower) { - // Grandparent exists and current tag closes it - this._parent.$_[HTMLNode.INFO_END] = 0; - this._parent = this._parent._parent; - } else { // Random tag, add as text node - return this._as_text_node(tag); - } - } - - // Link with start tag - this._parent.$_[HTMLNode.INFO_END] = this.cursor; - - if (Functions.isset(this._parent._parent)) { - this._parent = this._parent._parent; - } - - this._next(); - return true; - } - - // Start tag: https://dev.w3.org/html5/pf-summary/syntax.html#start-tags - let node = new HTMLNode(this); - node.$_[HTMLNode.INFO_BEGIN] = this.cursor++; - - // Tag name - let tag = this._copy_until(this._token_slash); - - if (tag.length > 0 && tag.charAt(0) === '!') { // Doctype, CData, Comment - if (tag.length > 2 && tag.charAt(1) === '-' && tag.charAt(2) === '-') { // Comment ("", or "--!>", - * nor end with the string "" - * - * -- https://www.w3.org/TR/html53/syntax.html#comments - */ - - // Go back until $tag only contains start of comment "!--". - while (tag.length > 3) { - this._char = this._doc.charAt(--this._pos); // previous - tag = tag.substr(0, tag.length - 1); - } - - node.nodeType = HTMLNode.TYPE_COMMENT; - node.tag = 'comment'; - - let data = ''; - - while (true) { - // Copy until first char of end tag - data += this._copy_until_char('-'); - - // Look ahead in the document, maybe we are at the end - if ((this._pos + 3) > this.size) { // End of document - // Debug: 'Source document ended unexpectedly!' - break; - } else if (this._doc.substr(this._pos, 3) === '-->') { // end - data += this._copy_until_char('>'); - break; - } - - data += this._char; - this._next(); - } - - if (data.substr(0, 1) === '>') { // "" - // Debug: 'Comment must not start with the string ">"!' - this._pos -= data.length; - this._char = this._doc.charAt(this._pos); - data = ''; - } - - if (data.substr(0, 2) === '->') { // "" - // Debug: 'Comment must not start with the string "->"!' - this._pos -= data.length; - this._char = this._doc.charAt(this._pos); - data = ''; - } - - if (data.indexOf('" - // Debug: 'Comment must not contain the string "') >= 0) { // "-->" - // Debug: 'Comment must not contain the string "--!>"!' - // we can work with it anyway - } - - if (data.substr(data.length - 3, 3) === '" - // Debug: 'Comment must not end with " 8) { - this._char = this._doc.charAt(--this._pos); // previous - tag = tag.substr(0, tag.length - 1); - } - - // CDATA can contain HTML stuff, need to find closing tags first - node.nodeType = HTMLNode.TYPE_CDATA; - node.tag = 'cdata'; - - let data = ''; - - // There is a rare chance of empty CDATA: "<[CDATA[]]>" - // In which case the current char is the first "[" of the end tag - // But the CDATA could also just be a bracket: "<[CDATA[]]]>" - while (true) { - // Copy until first char of end tag - data += this._copy_until_char(']'); - - // Look ahead in the document, maybe we are at the end - if ((this._pos + 3) > this.size) { // End of document - // Debug: 'Source document ended unexpectedly!' - break; - } else if (this._doc.substr(this._pos, 3) === ']]>') { // end - data += this._copy_until_char('>'); - break; - } - - data += this._char; - this._next(); - } - - tag += data; - tag = this._restore_noise(tag); - - // CDATA starts after "![CDATA[" and ends before "]]" (10 chars total) - node.$_[HTMLNode.INFO_INNER] = tag.substr(8, tag.length - 10); - } else { // Unknown - // Debug: 'Source document contains unknown declaration: <' + tag - node.nodeType = HTMLNode.TYPE_UNKNOWN; - node.tag = 'unknown'; - } - - node.$_[HTMLNode.INFO_TEXT] = '<' + tag + this._copy_until_char('>'); - - if (this._char === '>') { - node.$_[HTMLNode.INFO_TEXT] += '>'; - } - - this._link_nodes(node, true); - this._next(); - return true; - } - - if (!tag.match(/^\w[\w:-]*$/)) { // Invalid tag name - node.$_[HTMLNode.INFO_TEXT] = '<' + tag + this._copy_until('<>'); - - if (this._char === '>') { // End tag - node.$_[HTMLNode.INFO_TEXT] += '>'; - this._next(); - } - - this._link_nodes(node, false); - // Debug: 'Source document contains invalid tag name: ' + node.$_[HTMLNode.INFO_TEXT] - return true; - } - - // Valid tag name - node.nodeType = HTMLNode.TYPE_ELEMENT; - const tag_lower = tag.toLowerCase(); - node.tag = (this.caseInsensitive) ? tag_lower : tag; - - if (Functions.isset(this.#optional_closing_tags[tag_lower])) { // Optional closing tag - while (Functions.isset(this.#optional_closing_tags[tag_lower][this._parent.tag.toLowerCase()])) { - // Previous element was the last element of ancestor - this._parent.$_[HTMLNode.INFO_END] = node.$_[HTMLNode.INFO_BEGIN] - 1; - this._parent = this._parent._parent; - } - node._parent = this._parent; - } - - let guard = 0; // prevent infinity loop - - // [0] Space between tag and first attribute - let space = [this._copy_skip(this._token_blank), '', '']; - - do { // Parse attributes - let name = this._copy_until(this._token_equal); - - if (name === '' && this._char !== null && space[0] === '') { - break; - } - - if (guard === this._pos) { // Escape infinite loop - this._next(); - continue; - } - - guard = this._pos; - - if (this._pos >= this.size - 1 && this._char !== '>') { // End Of File - // Debug: 'Source document ended unexpectedly!' - node.nodeType = HTMLNode.TYPE_TEXT; - node.$_[HTMLNode.INFO_END] = 0; - node.$_[HTMLNode.INFO_TEXT] = '<' + tag + space[0] + name; - node.tag = 'text'; - this._link_nodes(node, false); - return true; - } - - if (name === '/' || name === '') { // No more attributes - break; - } - - // [1] Whitespace after attribute name - space[1] = (this._token_blank.indexOf(this._char) === -1) ? '' : this._copy_skip(this._token_blank); - - name = this._restore_noise(name); // might be a noisy name - - if (this.caseInsensitive) { - name = name.toLowerCase(); - } - - if (this._char === '=') { // Attribute with value - this._next(); - this._parse_attr(node, name, space, trim); // get attribute value - - } else { // Attribute without value - if (!Functions.isset(node.$_[HTMLNode.INFO_QUOTE])) - node.$_[HTMLNode.INFO_QUOTE] = []; - - node.$_[HTMLNode.INFO_QUOTE][name] = HTMLNode.QUOTE_NO; - node.attr.set(name, true); - if (this._char !== '>') { - this._char = this._doc.charAt(--this._pos); - } // prev - } - - // Space before attribute and around equal sign - if (!trim && (space[0] !== ' ' || space[1] !== '' || space[2] !== '')) { - // Debug: 'Source document contains superfluous whitespace in attributes (). Enable trimming or fix attribute spacing for best performance.' - node.$_[HTMLNode.INFO_SPACE][name] = space; - } - - // prepare for next attribute - space = [ - ((this._token_blank.indexOf(this._char) === -1) ? '' : this._copy_skip(this._token_blank)), - '', - '' - ]; - } while (this._char !== '>' && this._char !== '/'); - - this._link_nodes(node, true); - - // Space after last attribute before closing the tag - if (!trim && space[0] !== '') { - // Debug: 'Source document contains superfluous whitespace before the closing braket (). Enable trimming or remove spaces before closing brackets for best performance.' - node.$_[HTMLNode.INFO_END_SPACE] = space[0]; - } - - let rest = (this._char === '>') ? '' : this._copy_until_char('>'); - rest = (trim) ? rest.trim() : rest; // - - this._next(); - - if (rest.trim() === '/') { // Void element - if (rest !== '') { - if (Functions.isset(node.$_[HTMLNode.INFO_END_SPACE])) { - node.$_[HTMLNode.INFO_END_SPACE] += rest; - } else { - node.$_[HTMLNode.INFO_END_SPACE] = rest; - } - } - node.$_[HTMLNode.INFO_END] = 0; - } else if (!Functions.isset(this.#self_closing_tags[node.tag.toLowerCase()])) { - const innertext = this._copy_until_char('<'); - if (innertext !== '') { - node.$_[HTMLNode.INFO_INNER] = innertext; - } - this._parent = node; - } - - if (node.tag === 'br') { - node.$_[HTMLNode.INFO_INNER] = this.default_br_text; - } else if (node.tag === 'script') { - let data = ''; - - // There is a rare chance of empty script: "" - // In which case the current char is the start of the end tag - // But the script could also just contain tags: "" - while (true) { - // Copy until first char of end tag - data += this._copy_until_char('<'); - - // Look ahead in the document, maybe we are at the end - if ((this._pos + 9) > this.size) { // End of document - // Debug: 'Source document ended unexpectedly!' - break; - } else if (this._doc.substr(this._pos, 8) === ''); // don't include the end tag - break; - } - - // Note: A script tag may contain any other tag except - // which needs to be escaped as <\/script> - - data += this._char; - this._next(); - } - - const node2 = new HTMLNode(this); - ++this.cursor; - node2.$_[HTMLNode.INFO_TEXT] = data; - this._link_nodes(node2, false); - } - - return true; - } - - _parse_attr(node, name, space, trim) { - const is_duplicate = node.attr.has(name); - - if (!is_duplicate) // Copy whitespace between "=" and value - space[2] = (this._token_blank.indexOf(this._char) === -1) ? '' : this._copy_skip(this._token_blank); - - let quote_type = HTMLNode.QUOTE_NO; - let value; - - switch (this._char) { - case '"': - quote_type = HTMLNode.QUOTE_DOUBLE; - this._next(); - value = this._copy_until_char('"'); - this._next(); - break; - case '\'': - // Debug: 'Source document contains attribute values with single quotes (). Use double quotes for best performance.' - quote_type = HTMLNode.QUOTE_SINGLE; - this._next(); - value = this._copy_until_char('\''); - this._next(); - break; - default: - // Debug: 'Source document contains attribute values without quotes (). Use double quotes for best performance' - value = this._copy_until(this._token_attr); - } - - value = this._restore_noise(value); - - if (trim) { - // Attribute values must not contain control characters other than space - // https://www.w3.org/TR/html/dom.html#text-content - // https://www.w3.org/TR/html/syntax.html#attribute-values - // https://www.w3.org/TR/xml/#AVNormalize - value = value.replace(/[\r\n\t\s]+/u, ' ').trim(); - } - - if (!is_duplicate) { - if (quote_type !== HTMLNode.QUOTE_DOUBLE) { - if (!Functions.isset(node.$_[HTMLNode.INFO_QUOTE])) - node.$_[HTMLNode.INFO_QUOTE] = []; - - node.$_[HTMLNode.INFO_QUOTE][name] = quote_type; - } - node.attr.set(name, value); - } - } - - _link_nodes(node, is_child) { - node._setParent(this._parent, is_child); - } - - _as_text_node(tag) { - const node = new HTMLNode(this); - ++this.cursor; - node.$_[HTMLNode.INFO_TEXT] = ''; - this._link_nodes(node, false); - this._next(); - return true; - } - - _skip(chars) { - this._pos += Functions.strspn(this._doc, chars, this._pos); - this._char = (this._pos < this.size) ? this._doc.charAt(this._pos) : null; // next - } - - _copy_skip(chars) { - const pos = this._pos; - const len = Functions.strspn(this._doc, chars, pos); - if (len === 0) { - return ''; - } - this._pos += len; - this._char = (this._pos < this.size) ? this._doc.charAt(this._pos) : null; // next - return this._doc.substr(pos, len); - } - - _copy_until(chars) { - const pos = this._pos; - const len = Functions.strcspn(this._doc, chars, pos); - this._pos += len; - this._char = (this._pos < this.size) ? this._doc.charAt(this._pos) : null; // next - return this._doc.substr(pos, len); - } - - _copy_until_char(char) { - if (this._char === null) { - return ''; - } - - const pos = this._doc.indexOf(char, this._pos); - if (pos === -1) { - const ret = this._doc.substr(this._pos, this.size - this._pos); - this._char = null; - this._pos = this.size; - return ret; - } - - if (pos === this._pos) { - return ''; - } - - const pos_old = this._pos; - this._char = this._doc.charAt(pos); - this._pos = pos; - return this._doc.substr(pos_old, pos - pos_old); - } - - _remove_noise(pattern, remove_tag = false) { - let m; - const regex = RegExp(pattern); - const matches = []; - let oldIndex = -1; - while ((m = regex.exec(this._doc)) !== null) { - // This is necessary to avoid infinite loops with zero-width matches - if (m.index === oldIndex) - break; - oldIndex = m.index; - - matches.push(m); - } - - const count = matches.length; - - for (let i = count - 1; i > -1; --i) { - const key = '___noise___' + Functions.sprintf('% 5d', this._noise.length + 1000); - - const idx = (remove_tag) ? 0 : 1; // 0 = entire match, 1 = submatch - this._noise[key] = matches[i][idx][0]; - this._doc = Functions.substr_replace(this._doc, key, matches[i][idx][1], matches[i][idx][0].length); - } - - // reset the length of content - this.size = this._doc.length; - - if (this.size > 0) { - this._char = this._doc.charAt(0); - } - } - - _restore_noise(text) { - if (Functions.empty(this._noise)) return text; // nothing to restore - - let pos = 0; - while ((pos = text.indexOf('___noise___', pos)) !== -1) { - // Sometimes there is a broken piece of markup, and we don't GET the - // pos+11 etc... token which indicates a problem outside of us... - - // in the DOM causes an infinite loop which could be utilized by - // malicious software - if (text.length > pos + 15) { - const key = '___noise___' - + text.charAt(pos + 11) - + text.charAt(pos + 12) - + text.charAt(pos + 13) - + text.charAt(pos + 14) - + text.charAt(pos + 15); - - if (Functions.isset(this._noise[key])) { - text = text.substr(0, pos) - + this._noise[key] - + text.substr(pos + 16); - - delete this._noise[key]; - } else { - // Debug: 'Noise restoration failed. DOM has been corrupted!' - // do this to prevent an infinite loop. - text = text.substr(0, pos) - + 'UNDEFINED NOISE FOR KEY: ' - + key - + text.substr(pos + 16); - } - } else { - // There is no valid key being given back to us... We must get - // rid of the ___noise___ or we will have a problem. - // Debug: 'Noise restoration failed. The provided key is incomplete: ' + text - text = text.substr(0, pos) - + 'NO NUMERIC NOISE KEY' - + text.substr(pos + 11); - } - } - return text; - } - - _next() { - this._char = (++this._pos < this.size) ? this._doc.charAt(this._pos) : null; // next - } - - search_noise(text) { - for (const noiseElement of this._noise) { - if (noiseElement.indexOf(text) !== -1) { - return noiseElement; - } - } - } - - toString() { - return this.root.plainText(); - } - - getValue(name) { - switch (name.toLowerCase()) { - case 'outertext': - return this.root.outerText(); - case 'innertext': - return this.root.innerText(); - case 'plaintext': - return this.root.plainText(); - case 'charset': - return this._charset; - case 'target_charset': - return this._target_charset; - } - } - - source = () => this.#source; - - childNodes(idx = -1) { - return this.root.childNodes(idx); - } - - firstChild() { - return this.root.firstChild(); - } - - lastChild() { - return this.root.lastChild(); - } - - getElementById(id, caseInsensitive = false) { - return this.root.getElementById(id, caseInsensitive); - } - - getElementsById(id, idx = null, caseInsensitive = false) { - return this.root.getElementsById(id, idx, caseInsensitive); - } - - getElementByClassName(className, caseInsensitive = false) { - return this.root.getElementByClassName(className, caseInsensitive); - } - - getElementsByClassName(className, idx = null, caseInsensitive = false) { - return this.root.getElementsByClassName(className, idx, caseInsensitive); - } - - getElementByTagName(name, caseInsensitive = false) { - return this.root.getElementByTagName(name, caseInsensitive); - } - - getElementsByTagName(name, idx = null, caseInsensitive = false) { - return this.root.getElementsByTagName(name, idx, caseInsensitive); - } - - getElementByAttr(attrName, attrKey, caseInsensitive = false) { - return this.root.getElementByAttr(attrName, attrKey, caseInsensitive); - } - - getElementsByAttr(attrName, attrKey, idx = null, caseInsensitive = false) { - return this.root.getElementsByAttr(attrName, attrKey, idx, caseInsensitive); - } - - /** - * Find the root HTML element. - * - * @return the root HTML element. - */ - htmlEl() { - const h = this.findFirst('html'); - return Functions.isset(h) ? h : this.root; - } - - /** - * Get this document's {@code head} element. - * - * @return head element. - */ - head() { - return this.htmlEl().findInChildren('head', 0); - } - - /** - * Get this document's head: {@code meta} elements. - * - * @return array of meta elements. - */ - metaTags() { - return this.find('meta'); - } - - /** - * Get a meta element. - * - * (Standard) - * - * - * - * - * - */ - metaEl(name, onlyStandard = false, forceContent = true) { - let m; - if (onlyStandard) { - m = this.find('meta[name=' + name + ']', 0); - } else { - m = this.find([ - 'meta[name=' + name + ']', - 'meta[property=og:' + name + ']', - 'meta[itemprop=:' + name + ']', - 'meta[name%=' + name + ']', - 'meta[property%=' + name + ']', - 'meta[itemprop%=' + name + ']', - ], 0); - } - if (forceContent) { - return Functions.isset(m) && m.hasAttribute('content') ? m : null; - } else { - return m; - } - } - - /** - * Get content of a meta. - */ - meta(name, onlyStandard = false) { - const m = this.metaEl(name, onlyStandard); - return (Functions.isset(m) && m.hasAttribute('content')) ? m.getAttribute('content') : ''; - } - - /** - * Get this document's preview description element. - * Can be a meta tag or first p/h1 tag - */ - descriptionEl() { - const desc = this.metaEl('description'); - if (Functions.isset(desc)) - return desc; - - // extract preview from the first

sibling to the first

- const h1 = this.find('h1', 0); - if (Functions.isset(h1)) { - const p = h1.findInChildren('p', 0); - if (Functions.isset(p)) - return p; - } - - // extract preview from the first

- const p = this.find('p', 0); - return Functions.isset(p) ? p : h1; - } - - /** - * Get this document's description content. - */ - description() { - const desc = this.metaEl('description'); - return Functions.isset(desc) ? desc.content() : ''; - } - - /** - * Get this document's preview image element. - * Can be a meta tag or first h1 > img tag - */ - imageEl() { - const img = this.metaEl('image'); - if (Functions.isset(img)) - return img; - - // extract the first image which is sibling to the first h1 - const h1 = this.find('h1', 0); - if (Functions.isset(h1)) { - const img = h1.findInChildren('img', 0); - if (Functions.isset(img) && img.hasAttribute('src')) - return img; - } - - return null; - } - - /** - * Get this document's preview image content. - */ - image() { - const img = this.metaEl('image'); - if (Functions.isset(img)) - return img.content(); - - // extract the first image which is sibling to the first h1 - const h1 = this.find('h1', 0); - if (Functions.isset(h1)) { - const img = h1.findInChildren('img', 0); - if (Functions.isset(img) && img.hasAttribute('src')) - return img.getAttribute('src'); - } - - return ''; - } - - /** - * Get this document's {@code } or {@code } element. - * - * @return body element for documents with a {@code }, a new {@code } element if the document - * had no contents, or the outermost {@code element} for frameset documents. - */ - bodyEl() { - return this.htmlEl().findInChildren(['body', 'frameset'], 0); - } - - /** - * Get this document's {@code } or {@code } plainText. - */ - body() { - const b = this.bodyEl(); - return Functions.isset(b) ? b.plainText() : ''; - } - - /** - * Get this document's {@code title} element. - * @return title element - */ - titleEl() { - const t = this.metaEl('title'); - if (Functions.isset(t) && t.hasAttribute('content')) - return t; - - return this.head().findInChildren('title', 0, true); - } - - /** - * Get this document's {@code title} content. - */ - title() { - const t = this.titleEl(); - return Functions.isset(t) ? t.content() : ''; - } - - /** - * Returns array of elements whose plainText equals the target. - */ - matchesPlainText(plainText) { - return this.nodes.filter(n => n.plainText().trim() === plainText.trim()) - } - - /** - * Returns array of elements whose innerText equals the target. - */ - matchesInnerText(innerText) { - return this.nodes.filter(n => n.innerText() === innerText) - } - - /** - * Returns array of elements whose outerText equals the target. - */ - matchesOuterText(outerText) { - return this.nodes.filter(n => n.outerText() === outerText) - } - - /** - * Returns array of elements whose tag name equals the target. - */ - matchesTagName(tag) { - return this.nodes.filter(n => n.tag.toLowerCase() === tag.toLowerCase()) - } - - /** - * Returns array of comment elements. - */ - comments() { - return this.nodes.filter(n => n.nodeType === HTMLNode.TYPE_COMMENT) - } - - /** - * Returns array of text elements. - */ - texts() { - return this.nodes.filter(n => n.nodeType === HTMLNode.TYPE_TEXT) - } -} - -module.exports = HTMLDocument; \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/html_node.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/html_node.js deleted file mode 100644 index 4e3f60d4..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/html_node.js +++ /dev/null @@ -1,1656 +0,0 @@ -/* - * Copyright (C) 2021 - Amir Hossein Aghajari - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -const Functions = require('./functions'); -const util = require('util'); - -class HTMLNode { - static TYPE_ELEMENT = 1; - static TYPE_COMMENT = 2; - static TYPE_TEXT = 3; - static TYPE_ROOT = 5; - static TYPE_UNKNOWN = 6; - static TYPE_CDATA = 7; - - static QUOTE_DOUBLE = 0; - static QUOTE_SINGLE = 1; - static QUOTE_NO = 3; - - static INFO_BEGIN = 0; - static INFO_END = 1; - static INFO_QUOTE = 2; - static INFO_SPACE = 3; - static INFO_TEXT = 4; - static INFO_INNER = 5; - static INFO_OUTER = 6; - static INFO_END_SPACE = 7; - - nodeType = HTMLNode.TYPE_TEXT; - tag = 'text'; - attr = new Map(); - children = []; - nodes = []; - _parent; - $_ = {}; - _dom; - class = ''; - - constructor(document) { - if (document === null) return this; - - this._dom = document; - this._dom.nodes.push(this); - } - - [util.inspect.custom](depth, opts) { - return this._debug(opts); - } - - _debug(opts, defTab = '', preferSingleLine = true, forceSingleLine = false) { - const tab = " "; - - let inner = this.innerText(); - if (inner.length > 105) - inner = inner.substring(0, 100) + "…"; - - let plain = this.plainText(); - if (plain.length > 105) - plain = plain.substring(0, 100) + "…"; - - let attrs = '{ '; - for (const [k, v] of this.attr) { - attrs += `${opts.stylize(k, 'special')}: '${opts.stylize(v, 'string')}', `; - } - attrs = attrs.trim(); - if (attrs.endsWith(",")) attrs = attrs.substring(0, attrs.length - 1); - if (attrs.length > 1) attrs += ' '; - attrs += '}'; - - const props = new Map(); - props.set('tag', opts.stylize(this.tag, 'special')); - - if (this.nodeType !== HTMLNode.TYPE_ROOT && this.nodeType !== HTMLNode.TYPE_COMMENT) - props.set('cssSelector', opts.stylize(this.cssSelector(), 'number')); - - plain = plain.replace(/(?:\r\n|\r|\n)/g, '
'); - inner = inner.replace(/(?:\r\n|\r|\n)/g, '
'); - - if (inner.length > 0) { - if (plain.length > 0 && plain.trim() !== inner.trim()) { - props.set('plainText', opts.stylize(`'${plain}'`, 'string')); - props.set('innerText', opts.stylize(`'${inner}'`, 'string')); - } else { - props.set('text', opts.stylize(`'${inner}'`, 'string')); - } - } - - if (attrs.length > 2) - props.set('attrs', attrs); - - const crlf = !forceSingleLine ? '\n' : ''; - const comma = forceSingleLine ? ', ' : crlf; - const end = forceSingleLine ? ' ' : ''; - const defTab2 = forceSingleLine ? '' : defTab + tab; - - let output = defTab + 'HTMLNode { ' + crlf; - - for (const [k, v] of props) { - output += defTab2 + k + ": " + v + comma; - } - output = output.trimRight(); - if (output.endsWith(",")) output = output.substring(0, output.length - 1); - - output = output + crlf + (!forceSingleLine ? defTab : '') + end + '}'; - - if (preferSingleLine && !forceSingleLine && output.length <= 150) { - return this._debug(opts, defTab, true, true); - } else { - return output; - } - } - - toString() { - return this.innerText(); - } - - clear() { - delete this._parent; - delete this._dom; - } - - _setParent(parent = null, is_child = true) { - if (parent !== null) { - this._parent = parent; - this._parent.nodes.push(this); - if (is_child) - this._parent.children.push(this); - } - - return this._parent; - } - - find_ancestor_tag(tag) { - if (!Functions.isset(this._parent)) - return null; - - let ancestor = this._parent; - - while (Functions.isset(ancestor)) { - if (ancestor.tag === tag) { - break; - } - - ancestor = ancestor._parent; - } - - return ancestor; - } - - plainText = () => this.text(); - - content = () => { - if (this.tag.toLowerCase() === 'meta' && this.hasAttribute('content')) - return this.getAttribute('content'); - else - return this.plainText(); - }; - - innerText() { - let ret; - if (Functions.isset(this.$_[HTMLNode.INFO_INNER])) { - ret = this.$_[HTMLNode.INFO_INNER]; - } else if (Functions.isset(this.$_[HTMLNode.INFO_TEXT])) { - ret = this.$_[HTMLNode.INFO_TEXT]; - } else { - ret = ''; - } - - for (const node of this.nodes) { - ret += node.outerText(); - } - - return this.convert_text(ret); - } - - outerText() { - if (this.tag === 'root') { - return this.innerText(); - } - if (Functions.isset(this.$_[HTMLNode.INFO_OUTER])) { - return this.convert_text(this.$_[HTMLNode.INFO_OUTER]); - } - - if (Functions.isset(this.$_[HTMLNode.INFO_TEXT])) { - return this.convert_text(this.$_[HTMLNode.INFO_TEXT]); - } - - let ret = ''; - if (Functions.isset(this.$_[HTMLNode.INFO_BEGIN])) { - ret = this.makeup(); - } - - if (Functions.isset(this.$_[HTMLNode.INFO_INNER])) { - if (this.tag !== 'br') { - ret += this.$_[HTMLNode.INFO_INNER]; - } - } - - if (this.nodes.length > 0) { - for (const node of this.nodes) { - ret += node.outerText(); - } - } - - if (Functions.isset(this.$_[HTMLNode.INFO_END]) && this.$_[HTMLNode.INFO_END] !== 0) { - ret += ''; - } - - return this.convert_text(ret); - } - - - text(trim = true) { - let ret = ''; - - if (this.nodeType === HTMLNode.TYPE_COMMENT) { - ret = this.innerText(); - return trim ? ret.trim() : ret; - } - - if (this.tag.toLowerCase() === 'script' - || this.tag.toLowerCase() === 'style' - || this.nodeType === HTMLNode.TYPE_UNKNOWN) { - ret = ''; - } else if (this.nodeType === HTMLNode.TYPE_CDATA) { - ret = this.$_[HTMLNode.INFO_INNER]; - } else if (Functions.isset(this.$_[HTMLNode.INFO_INNER])) { - ret = this.$_[HTMLNode.INFO_INNER]; - } else if (this.nodeType === HTMLNode.TYPE_TEXT) { - ret = this.$_[HTMLNode.INFO_TEXT]; - } - - if (!Functions.isset(ret)) { - ret = ''; - } - - if (!Functions.isset(this.nodes)) { - return ''; - } - - for (const node of this.nodes) { - if (HTMLNode._is_block_element(node)) { - const block = this.convert_text(node.text(false)).trimLeft(); - - if (!Functions.isset(block) || block === '') - continue; - - ret = ret.trimRight() + "\n\n" + block; - - } else if (HTMLNode._is_inline_element(node)) { - if (node.tag.toLowerCase() === 'br') { - ret += this._dom.default_br_text; - } else { - const inline = this.convert_text(node.text(false)).trimLeft(); - - if (!Functions.isset(inline) || inline === '') - continue; - - ret = ret + this.convert_text(node.text(false)); - } - } else { - ret += this.convert_text(node.text(false)); - } - } - - // Reduce whitespace at start/end to a single (or none) space - ret = ret.replace(/[ \t\n\r0\x0B\xC2\xA0]+$/u, trim ? '' : ' '); - ret = ret.replace(/^[ \t\n\r0\x0B\xC2\xA0]+/u, trim ? '' : ' '); - - return ret; - } - - xmlText() { - let ret = '' + this.innerText(); - ret = Functions.str_ireplace('', ''); - return ret; - } - - makeup() { - // text, comment, unknown - if (Functions.isset(this.$_[HTMLNode.INFO_TEXT])) { - return this.$_[HTMLNode.INFO_TEXT]; - } - - let ret = '<' + this.tag; - - for (let [key, val] of this.attr) { - - // skip removed attribute - if (val === null || val === false) - continue; - - if (Functions.isset_key(this.$_[HTMLNode.INFO_SPACE], key)) { - ret += this.$_[HTMLNode.INFO_SPACE][key][0]; - } else { - ret += ' '; - } - - //no value attr: nowrap, checked selected... - if (val === true) { - ret += key; - } else { - let quote_type = HTMLNode.QUOTE_DOUBLE; - let quote = '"'; - - if (Functions.isset_key(this.$_[HTMLNode.INFO_QUOTE], key)) { - quote_type = this.$_[HTMLNode.INFO_QUOTE][key]; - } - - switch (quote_type) { - case HTMLNode.QUOTE_SINGLE: - quote = '\''; - val = Functions.htmlentities(val, "ENT_QUOTES"); - break; - case HTMLNode.QUOTE_NO: - quote = ''; - break; - case HTMLNode.QUOTE_DOUBLE: - default: - val = Functions.htmlentities(val, "ENT_COMPAT"); - } - - ret += key - + (Functions.isset_key(this.$_[HTMLNode.INFO_SPACE], key) ? this.$_[HTMLNode.INFO_SPACE][key][1] : '') - + '=' - + (Functions.isset_key(this.$_[HTMLNode.INFO_SPACE], key) ? this.$_[HTMLNode.INFO_SPACE][key][2] : '') - + quote - + val - + quote; - } - } - - if (Functions.isset(this.$_[HTMLNode.INFO_END_SPACE])) { - ret += this.$_[HTMLNode.INFO_END_SPACE]; - } - - return ret + '>'; - } - - find(selector, idx = null, caseInsensitive = false) { - return this.#findNow(selector, idx, caseInsensitive); - } - - findInChildren(selector, idx = null, caseInsensitive = false) { - return this.#findNow(selector, idx, caseInsensitive, '>'); - } - - #findNow(selector, idx = null, caseInsensitive = false, customCmd = null) { - const found_keys = []; - if (Array.isArray(selector)) { - for (const selector_single of selector) { - this.#find_inner(selector_single, caseInsensitive, found_keys, customCmd); - } - } else { - this.#find_inner(selector, caseInsensitive, found_keys, customCmd); - } - - if (found_keys.length === 0) - return Functions.isset(idx) ? (Array.isArray(idx) ? [] : null) : []; - - const found_keys_ordered = found_keys.sort(); - const found = []; - - for (const k of found_keys_ordered) { - if (k !== -1 && Functions.isset(this._dom.nodes[k]) && - !found.includes(this._dom.nodes[k])) - found.push(this._dom.nodes[k]) - } - - // return nth-element or array - if (!Functions.isset(idx)) { - return found; - } else if (Array.isArray(idx)) { - const results = []; - for (let id of idx) { - if (id < 0) id = found.length + id; - if (found.length > id) { - results.push(found[id]); - } - } - return results; - } else if (idx < 0) { - idx = found.length + idx; - } - return (Functions.isset(found[idx])) ? found[idx] : null; - } - - #find_inner(selector, lowercase = false, found_keys, customCmd = null) { - if (selector.indexOf('>') !== -1) { - // ex: html > body.test > h1:nth-child(2) - // find html from root, - // find body[class=test] from html - // find 3th h1 from body - // see cssSelector() - - const targets = selector.split('>'); - let element = this._dom.root; - - for (const t of targets) { - if (element === null) - return; - - let t_selector = t.trim(); - - if (t_selector.length === 0) - continue; - - let idx = 0; - - if (t_selector.indexOf(':nth-child(') !== -1) { - const regex = /(.*?):nth-child\((.*?)\)/s; - let m; - - if ((m = regex.exec(t_selector)) !== null) { - t_selector = m[1]; - idx = parseInt(m[2]); - } - } - element = element.find(t_selector, idx, lowercase, customCmd); - } - - if (Functions.isset(element)) - found_keys.push(element.rootIndex()); - } else { - this.#find(selector, lowercase, found_keys, customCmd); - } - } - - #find(selector, lowercase = false, found_keys, customCmd = null) { - let selectors = this._parse_selector(selector); - const count = selectors.length; - if (count === 0) { - return; - } - - // find each selector - for (let c = 0; c < count; ++c) { - // The change on the below line was documented on the sourceforge - // code tracker id 2788009 - // used to be: if (($levle=count($selectors[0]))===0) return array(); - const levle = selectors[c].length; - if (levle === 0) { - // Debug: 'Empty selector (' + selector + ') matches nothing.' - return; - } - - if (!Functions.isset(this.$_[HTMLNode.INFO_BEGIN])) { - // Debug: 'Invalid operation. The current node has no start tag.' - return; - } - - let head = new Map(); - head.set(this.$_[HTMLNode.INFO_BEGIN], 1); - let cmd = Functions.isset(customCmd) ? customCmd : ' '; // Combinator - - // handle descendant selectors, no recursive! - for (let l = 0; l < levle; ++l) { - let ret = new Map(); - - for (const [k, v] of head) { - const n = (k === -1) ? this._dom.root : this._dom.nodes[k]; - //PaperG - Pass this optional parameter on to the seek function. - ret = n._seek(selectors[c][l], ret, cmd, lowercase); - } - - head = ret; - cmd = selectors[c][l][6]; // Next Combinator - } - - for (const [k, v] of head) { - if (!found_keys.includes(k)) { - found_keys.push(k); - } - } - } - } - - findFirst(selector, caseInsensitive = false) { - return this.find(selector, 0, caseInsensitive); - } - - findLast(selector, caseInsensitive = false) { - return this.find(selector, -1, caseInsensitive); - } - - expect(selector, idx = null, caseInsensitive = false) { - const ret = this.find(selector, idx, caseInsensitive); - if (ret.length === 0) - return null; - return ret; - } - - _seek(selector, ret, parent_cmd, lowercase = false) { - let ps_selector = selector[0]; - let tag = selector[1]; - let ps_element = selector[2]; - let id = selector[3]; - let $class = selector[4]; - let attributes = selector[5]; - //let cmb = selector[6]; - let nodes = []; - - if (!Functions.isset(tag)) tag = ''; - if (!Functions.isset(id)) id = ''; - if (!Functions.isset($class)) $class = ''; - - if (parent_cmd === ' ') { // Descendant Combinator - // Find parent closing tag if the current element doesn't have a closing - // tag (i.e. void element) - let end = (!Functions.empty(this.$_[HTMLNode.INFO_END])) ? this.$_[HTMLNode.INFO_END] : 0; - if (end === 0 && Functions.isset(this._parent)) { - let parent = this._parent; - while (Functions.isset(parent) && !Functions.isset(parent.$_[HTMLNode.INFO_END])) { - end -= 1; - parent = parent._parent; - } - if (Functions.isset(parent)) - end += parent.$_[HTMLNode.INFO_END]; - } - - - if (end === 0) { - end = this._dom.nodes.length; - } - - // Get list of target nodes - const nodes_start = this.$_[HTMLNode.INFO_BEGIN] + 1; - - // remove() makes this._dom.nodes non-contiguous; use what is left. - const targets = Functions.range(nodes_start, end); - nodes = []; - for (const k of targets) { - const n = this._dom.nodes[k]; - if (Functions.isset(n)) - nodes.push(n); - } - - } else if (parent_cmd === '>') { // Child Combinator - nodes = this.children; - } else if (parent_cmd === '+' && - Functions.isset(this._parent) && - this._parent.children.includes(this)) { // Next-Sibling Combinator - const index = this._parent.children.indexOf(this) + 1; - if (index < this._parent.children.length) - nodes.push(this._parent.children[index]); - } else if (parent_cmd === '~' && - Functions.isset(this._parent) && - this._parent.children.includes(this)) { // Subsequent Sibling Combinator - const index = this._parent.children.indexOf(this); - nodes = this._parent.children.slice(index); - } - - // Go throgh each element starting at this element until the end tag - // Note: If this element is a void tag, any previous void element is skipped. - for (let node of nodes) { - let pass = true; - - // Skip root nodes - if (!Functions.isset(node._parent)) { - continue; - } - - // Handle 'text' selector - if (pass && tag === 'text') { - if (node.tag === 'text') { - ret.set(this._dom.nodes.indexOf(node), 1); - } - - if (Functions.isset(node.$_[HTMLNode.INFO_INNER])) { - ret.set(node.$_[HTMLNode.INFO_BEGIN], 1); - } - - continue; - } - - // Handle 'cdata' selector - if (pass && tag === 'cdata') { - if (node.tag === 'cdata') - ret.set(node.$_[HTMLNode.INFO_BEGIN], 1); - continue; - } - - // Handle 'comment' - if (pass && tag === 'comment' && node.tag === 'comment') { - ret.set(node.$_[HTMLNode.INFO_BEGIN], 1); - continue; - } - - // Skip if node isn't a child node (i.e. text nodes) - if (pass && !node._parent.children.includes(node)) { - continue; - } - - // Skip if tag doesn't match - if (pass && tag !== '' && tag !== node.tag && tag !== '*') { - pass = false; - } - - // Skip if ID doesn't exist - if (pass && id !== '' && !node.attr.has('id')) { - pass = false; - } - - // Check if ID matches - if (pass && id !== '' && node.attr.has('id')) { - // Note: Only consider the first ID (as browsers do) - const node_id = node.attr.get('id').trim().split(' ')[0]; - if (lowercase) { - if (id.toLowerCase() !== node_id.toLowerCase()) { - pass = false; - } - } else { - if (id !== node_id) { - pass = false; - } - } - } - - // Check if all class(es) exist - if (pass && $class !== '' && Array.isArray($class) && !Functions.empty($class)) { - if (node.attr.has('class')) { - // Apply the same rules for the pattern and attribute value - // Attribute values must not contain control characters other than space - // https://www.w3.org/TR/html/dom.html#text-content - // https://www.w3.org/TR/html/syntax.html#attribute-values - // https://www.w3.org/TR/xml/#AVNormalize - let node_classes = node.attr.get('class').replace(/[\r\n\t\s]+/u, ' ').trim().split(' '); - - if (lowercase) { - node_classes = node_classes.map(value => value.toLowerCase()); - } - - for (const c of $class) { - if (!node_classes.includes(lowercase ? c.toLowerCase() : c)) { - pass = false; - break; - } - } - } else { - pass = false; - } - } - - // Check attributes - if (pass - && attributes !== '' - && Array.isArray(attributes) - && !Functions.empty(attributes)) { - - for (const a of attributes) { - const att_name = a[0]; - const att_expr = a[1]; - const att_val = a[2]; - const att_inv = a[3]; - const att_case_sensitivity = a[4]; - - // Handle indexing attributes (i.e. "[2]") - /** - * Note: This is not supported by the CSS Standard but adds - * the ability to select items compatible to XPath (i.e. - * the 3rd element within it's parent). - * - * Note: This doesn't conflict with the CSS Standard which - * doesn't work on numeric attributes anyway. - */ - if (Functions.isNumeric(att_name) - && att_expr === '' - && att_val === '') { - let count = 0; - - // Find index of current element in parent - for (const c of node._parent.children) { - if (c.tag === node.tag) - ++count; - if (c === node) break; - } - - // If this is the correct node, continue with next - // attribute - if (count === parseInt(att_name)) - continue; - } - - // Check attribute availability - if (att_inv) { // Attribute should NOT be set - if (node.attr.has(att_name)) { - pass = false; - break; - } - } else { // Attribute should be set - if (att_name !== 'plaintext' - && !node.attr.has(att_name)) { - pass = false; - break; - } - } - - // Continue with next attribute if expression isn't defined - if (att_expr === '') continue; - - // If they have told us that this is a "plaintext" - // search then we want the plaintext of the node - right? - let nodeKeyValue; - if (att_name === 'plaintext') { - nodeKeyValue = node.plainText(); - } else { - nodeKeyValue = node.attr.get(att_name); - } - - // If lowercase is set, do a case insensitive test of - // the value of the selector. - let check; - if (lowercase) { - check = this._match( - att_expr, - att_val.toLowerCase(), - nodeKeyValue.toLowerCase(), - att_case_sensitivity); - } else { - check = this._match( - att_expr, - att_val, - nodeKeyValue, - att_case_sensitivity); - } - - check = ps_element === 'not' ? !check : check; - - if (!check) { - pass = false; - break; - } - } - } - - - // Found a match. Add to list and clear node - pass = ps_selector === 'not' ? !pass : pass; - if (pass) - ret.set(node.$_[HTMLNode.INFO_BEGIN], 1); - } - return ret; - } - - _match(exp, pattern, value, case_sensitivity) { - if (case_sensitivity === 'i') { - pattern = String(pattern).toLowerCase(); - value = String(value).toLowerCase(); - } - - // Apply the same rules for the pattern and attribute value - // Attribute values must not contain control characters other than space - // https://www.w3.org/TR/html/dom.html#text-content - // https://www.w3.org/TR/html/syntax.html#attribute-values - // https://www.w3.org/TR/xml/#AVNormalize - pattern = String(pattern).replace(/[\r\n\t\s]+/u, ' ').trim(); - value = String(value).replace(/[\r\n\t\s]+/u, ' ').trim(); - - switch (exp) { - case '=': - return (value === pattern); - case '!=': - return (value !== pattern); - case '^=': - return value.match(new RegExp('/^' + Functions.preg_quote(pattern, '/') + '/')); - case '$=': - return value.match(new RegExp('/' + Functions.preg_quote(pattern, '/') + '$/')); - case '*=': - return value.match(new RegExp('/' + Functions.preg_quote(pattern, '/') + '/')); - case '|=': - /** - * [att|=val] - * - * Represents an element with the att attribute, its value - * either being exactly "val" or beginning with "val" - * immediately followed by "-" (U+002D). - */ - return value.startsWith(pattern); - case '&=': - return value.endsWith(pattern); - case '%=': - return value.indexOf(pattern) >= 0; - case '~=': - /** - * [att~=val] - * - * Represents an element with the att attribute whose value is a - * whitespace-separated list of words, one of which is exactly - * "val". If "val" contains whitespace, it will never represent - * anything (since the words are separated by spaces). Also if - * "val" is the empty string, it will never represent anything. - */ - return value.trim().split(' ').includes(pattern); - } - - // Debug: 'Unhandled attribute selector: ' + exp + '!' - return false; - } - - _parse_selector(selector_string) { - /** - * Pattern of CSS selectors, modified from mootools (https://mootools.net/) - * - * Paperg: Add the colon to the attribute, so that it properly finds - * like google does. - * - * Note: if you try to look at this attribute, you MUST use getAttribute - * since $dom->x:y will fail the php syntax check. - * - * Notice the \[ starting the attribute? and the @? following? This - * implies that an attribute can begin with an @ sign that is not - * captured. This implies that an html attribute specifier may start - * with an @ sign that is NOT captured by the expression. Farther study - * is required to determine of this should be documented or removed. - * - * Matches selectors in this order: - * - * [0] - full match - * - * [1] - pseudo selector - * (?:\:(\w+)\()? - * Matches the pseudo selector (optional) - * - * [2] - tag name - * ([\w:\*-]*) - * Matches the tag name consisting of zero or more words, colons, - * asterisks and hyphens. - * - * [3] - pseudo selector - * (?:\:(\w+)\()? - * Matches the pseudo selector (optional) - * - * [4] - id name - * (?:\#([\w-]+)) - * Optionally matches a id name, consisting of an "#" followed by - * the id name (one or more words and hyphens). - * - * [5] - class names (including dots) - * (?:\.([\w\.-]+))? - * Optionally matches a list of classs, consisting of an "." - * followed by the class name (one or more words and hyphens) - * where multiple classes can be chained (i.e. ".foo.bar.baz") - * - * [6] - attributes - * ((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)[\"']?(?:.*?)[\"']?)?(?:\s*?(?:[iIsS])?)?\])+)? - * Optionally matches the attributes list - * - * [7] - separator - * ([\/, >+~]+) - * Matches the selector list separator - */ - - const pattern = /(?:\:(\w+)\()?([\w:\*-]*)(?:\:(\w+)\()?(?:\#([\w-]+))?(?:|\.([\w\.-]+))?((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)[\"']?(?:.*?)[\"']?)?(?:\s*?(?:[iIsS])?)?\])+)?(?:\))?(?:\))?([\/, >+~]+)/is; - const final_selector_string = selector_string.trim() + ' '; // Add final ' ' as pseudo separator - - const selectors = []; - let result = []; - - let m; - let oldIndex = -1; - - while ((m = pattern.exec(final_selector_string)) !== null) { - if (oldIndex === m.index) - break; - oldIndex = m.index; - - try { - m[0] = String(m[0]).trim(); - - // Skip NoOps - if (m[0] === '' || m[0] === '/' || m[0] === '//') - continue; - - m.shift(); - - // Convert to lowercase - if (this._dom.caseInsensitive && Functions.isset(m[1])) { - m[1] = String(m[1]).toLowerCase(); - } - - // Extract classes - if (Functions.isset(m[4]) && m[4] !== '') { - m[4] = String(m[4]).split('.'); - } - - /* Extract attributes (pattern based on the pattern above!) - * [0] - full match - * [1] - attribute name - * [2] - attribute expression - * [3] - attribute value - * [4] - case sensitivity - * - * Note: Attributes can be negated with a "!" prefix to their name - */ - if (!Functions.empty(m[5])) { - - // Replace element by array - - const attr_str = String(m[5]).trim(); - m[5] = []; - - const regexAttr = /\[@?(!?[\w:-]+)(?:([!*^$|~]?=)[\"']?(.*?)[\"']?)?(?:\s+?([iIsS])?)?\]/is; - let att; - let oldIndex = -1; - while ((att = regexAttr.exec(attr_str)) !== null) { - if (oldIndex === att.index) - break; - oldIndex = att.index; - - // Skip empty matches - if (att[0].trim() === '') - continue; - - const inverted = (Functions.isset_key(att[1], 0) && att[1][0] === '!'); - m[5].push([ - inverted ? att[1].substring(1) : att[1], // Name - (Functions.isset(att[2])) ? att[2] : '', // Expression - (Functions.isset(att[3])) ? att[3] : '', // Value - inverted, // Inverted Flag - (Functions.isset(att[4])) ? att[4].toLowerCase() : '', // Case-Sensitivity - ]); - } - - } - - // Sanitize Separator - if (Functions.isset(m[6]) && m[6] !== '' && String(m[6]).trim() === '') { // Descendant Separator - m[6] = ' '; - } else { // Other Separator - m[6] = String(m[6]).trim(); - } - - // Clear Separator if it's a Selector List - let is_list = false; - if (m[6] === ',') { - is_list = true; - m[6] = ''; - } - - result.push(m); - if (is_list) { // Selector List - selectors.push(result); - result = []; - } - } catch (e) { - console.error(e); - } - } - - - if (result.length > 0) { - selectors.push(result); - } - - return selectors; - } - - getValue(name) { - if (this.attr.has(name)) { - return this.convert_text(this.attr.get(name)); - } - - switch (name.toLowerCase()) { - case 'outertext': - return this.outerText(); - case 'innertext': - return this.innerText(); - case 'plaintext': - return this.plainText(); - case 'xmltext': - return this.xmlText(); - } - - return false; - } - - setValue(name, value) { - switch (name.toLowerCase()) { - case 'outertext': - this.$_[HTMLNode.INFO_OUTER] = value; - break; - case 'innertext': - if (Functions.isset(this.$_[HTMLNode.INFO_TEXT])) { - this.$_[HTMLNode.INFO_TEXT] = ''; - } - this.$_[HTMLNode.INFO_INNER] = value; - break; - default: - this.attr.set(name, value); - } - } - - hasValue(name) { - switch (name.toLowerCase()) { - case 'outertext': - return true; - case 'innertext': - return true; - case 'plaintext': - return true; - } - - return this.attr.has(name); - } - - deleteValue(name) { - if (this.attr.has(name)) - this.attr.delete(name); - } - - convert_text(text) { - if (!Functions.isset(text)) - return ''; - - let converted_text = text; - - let sourceCharset = ''; - let targetCharset = ''; - - if (Functions.isset(this._dom)) { - sourceCharset = this._dom._charset.toUpperCase(); - targetCharset = this._dom._target_charset.toUpperCase(); - } - - if (!Functions.empty(sourceCharset) && !Functions.empty(targetCharset)) { - - if (sourceCharset.toUpperCase() === targetCharset.toUpperCase()) { - converted_text = text; - } else if ((targetCharset.toUpperCase() === 'UTF-8') && (HTMLNode.#is_utf8(text))) { - // Debug'The source charset was incorrectly detected as ' + sourceCharset + ' but should have been UTF-8' - converted_text = text; - } else { - const Iconv = require('iconv').Iconv; - const iconv = new Iconv(sourceCharset, targetCharset); - converted_text = iconv.convert(text); - } - } - - // Lets make sure that we don't have that silly BOM issue with any of the utf-8 text we output. - if (targetCharset === 'UTF-8') { - if (converted_text.substr(0, 3) === "\xef\xbb\xbf") { - converted_text = converted_text.substr(3); - } - - if (converted_text.substring(converted_text.length - 3) === "\xef\xbb\xbf") { - converted_text = converted_text.substring(0, converted_text.length - 3); - } - } - - return converted_text; - } - - addClass($class) { - if (Object.prototype.toString.call($class) === '[object String]') { - $class = $class.split(' '); - } - - if (Array.isArray($class)) { - for (const c of $class) { - if (!Functions.empty(this.class)) { - if (!this.hasClass(c)) - this.class += ' ' + c; - } else { - this.class = c; - } - } - } - } - - hasClass($class) { - if (Object.prototype.toString.call($class) === '[object String]') { - if (!Functions.empty(this.class)) { - return String(this.class).split(' ').includes($class); - } - } - - return false; - } - - removeClass($class = null) { - if (Functions.empty(this.class)) { - return; - } - - if (!Functions.isset($class)) { - this.removeAttribute('class'); - return; - } - - if (Object.prototype.toString.call($class) === '[object String]') { - $class = $class.split(' '); - } - - if (Array.isArray($class)) { - $class = String(this.class).split(' ').filter(v => !$class.includes(v)); - if ($class.length === 0) { - this.removeAttribute('class'); - } else { - this.class = Array($class).join(' '); - } - } - } - - getAllAttributes() { - return this.attr; - } - - getAttribute(name) { - return this.attr.get(name); - } - - setAttribute(name, value) { - this.attr.set(name, value); - } - - hasAttribute(name) { - if (!Functions.isset(this.attr)) - return false; - - return this.attr.has(name); - } - - removeAttribute(name) { - this.attr.delete(name); - } - - remove() { - if (Functions.isset(this._parent)) { - this._parent.removeChild(this); - } - } - - removeChild(node) { - for (const child of node.children) { - node.removeChild(child); - } - // No need to re-index node->children because it is about to be removed! - - for (const entity of node.nodes) { - const enidx = node.nodes.indexOf(entity); - const edidx = node._dom.nodes.indexOf(entity); - - if (enidx !== false) { - delete node.nodes[enidx]; - } - - if (edidx !== false) { - delete node._dom.nodes[edidx]; - } - } - - // No need to re-index node->nodes because it is about to be removed! - - const nidx = this.nodes.indexOf(node); - const cidx = this.children.indexOf(node); - const didx = this._dom.nodes.indexOf(node); - - if (nidx !== false) { - delete this.nodes[nidx]; - } - - this.nodes = this.nodes.values(); - - if (cidx !== false) { - delete this.children[cidx]; - } - - this.children = this.children.values(); - - if (didx !== false) { - delete this._dom.nodes[didx]; - } - - // Do not re-index dom->nodes because nodes point to other nodes in the - // array explicitly! - - node.clear(); - } - - getElementById(id, caseInsensitive = false) { - return this.find("#" + id, 0, caseInsensitive); - } - - getElementsById(id, idx = null, caseInsensitive = false) { - return this.find("#" + id, idx, caseInsensitive); - } - - getElementByClassName(className, caseInsensitive = false) { - return this.find("." + className, 0, caseInsensitive); - } - - getElementsByClassName(className, idx = null, caseInsensitive = false) { - return this.find("." + className, idx, caseInsensitive); - } - - getElementByTagName(name, caseInsensitive = false) { - return this.find(name, 0, caseInsensitive); - } - - getElementsByTagName(name, idx = null, caseInsensitive = false) { - return this.find(name, idx, caseInsensitive); - } - - getElementByAttr(attrName, attrKey, caseInsensitive = false) { - return this.getElementsByAttr(attrName, attrKey, 0, caseInsensitive); - } - - getElementsByAttr(attrName, attrKey, idx = null, caseInsensitive = false) { - let s = attrName; - if (!Functions.empty(attrKey)) - s += '=' + attrKey; - s = `[${s}]`; - - return this.find(s, idx, caseInsensitive); - } - - parent() { - return this._parent; - } - - /** - * Get this element's parent and ancestors, up to the document root. - * @return this element's stack of parents, closest first. - */ - parents() { - const p = []; - let element = this; - while (Functions.isset(element.parent()) && element.parent().nodeType !== HTMLNode.TYPE_ROOT) { - element = element.parent(); - p.push(element); - } - return p; - } - - /** - * Get the number of child nodes of this element that are elements. - * - * @return the number of child nodes that are elements - */ - childrenSize() { - return this.children.length; - } - - child(idx = -1) { - if (idx === -1) { - return this.children; - } - if (Functions.isset(this.children[idx])) { - return this.children[idx]; - } - return null; - } - - firstChild() { - if (this.children.length > 0) { - return this.children[0]; - } - return null; - } - - lastChild() { - if (this.children.length > 0) { - return this.children[this.children.length - 1]; - } - return null; - } - - nextSibling() { - if (!Functions.isset(this._parent)) { - return null; - } - - const idx = this._parent.children.indexOf(this); - - if (idx !== false && Functions.isset(this._parent.children[idx + 1])) { - return this._parent.children[idx + 1]; - } - - return null; - } - - previousSibling() { - if (!Functions.isset(this._parent)) { - return null; - } - - const idx = this._parent.children.indexOf(this); - - if (idx !== false && Functions.isset(this._parent.children[idx - 1])) { - return this._parent.children[idx - 1]; - } - - return null; - } - - hasChild() { - return this.children.length > 0; - } - - /** - * Returns true if the provided element is a block level element - * @link https://www.w3resource.com/html/HTML-block-level-and-inline-elements.php - */ - isBlock() { - return HTMLNode._is_block_element(this.tag); - } - - /** - * Returns true if the provided element is an inline level element - * @link https://www.w3resource.com/html/HTML-block-level-and-inline-elements.php - */ - isInline() { - return HTMLNode._is_inline_element(this.tag); - } - - /** - * Get the {@code id} attribute of this element. - * - * @return The id attribute, if present, or an empty string if not. - */ - id() { - return this.attr.has("id") ? this.attr.get("id") : ""; - } - - /** - * Checks if this element matches the given selector CSS query. - * - * @param selector CSS query - * @param caseInsensitive - * @return if this element matches the query - */ - matches(selector, caseInsensitive = false) { - if (!Functions.isset(this._dom)) - return false; - - const found = this._dom.find(selector, null, caseInsensitive); - return found.includes(this); - } - - /** - * Checks if this element matches the given selector CSS query in it's parent. - * - * @param selector CSS query - * @param caseInsensitive - * @return if this element matches the query - */ - matchesInParent(selector, caseInsensitive = false) { - if (!Functions.isset(this._parent)) - return false; - - const found = this._parent.findInChildren(selector, null, caseInsensitive); - return found.includes(this); - } - - /** - * Checks if this element matches the given selector CSS query and it's the only result. - * - * @param selector CSS query - * @param caseInsensitive - * @return if this element matches the query - */ - matchesUnique(selector, caseInsensitive = false) { - if (!Functions.isset(this._dom)) - return false; - - const found = this._dom.find(selector, null, caseInsensitive); - return found.length === 1 && found[0] === this; - } - - dataAttributes() { - const out = new Map(); - for (const [a, v] of this.attr) { - if (a.toLowerCase().startsWith('data-')) { - out.set(a, v); - } - } - return out; - } - - #firstDataAttributeSortByID() { - const input = this.dataAttributes(); - if (input.size === 0) - return null; - - let first = null; - for (const [a, v] of input) { - if (first === null) - first = a; - - if (a.indexOf('id') !== -1) - return a; - } - - return first; - } - - /** - * Get a CSS selector that will uniquely select this element. - *

- * If the element has an ID and {@code supportedAttrs} contains {@code id}, returns #id; - * If the element has an attribute which exists on {@code supportedAttrs}, returns tag[attr=value]; - * If the element has a data-attribute and {@code supportedAttrs} contains data, - * returns tag[data-attr=value] or tag[data-attr] in some cases; - * Otherwise returns the parent (if any) CSS selector, followed by {@literal '>'}, - * followed by a unique selector for the element (tag.class.class:nth-child(n)). - *

- * - * @return the CSS Path that can be used to retrieve the element in a selector. - */ - cssSelector(forceCheck = true, - supportedAttrs = ['data', 'class', 'id']) { - - if (Functions.isset(supportedAttrs) && supportedAttrs.includes('id') && this.id().length > 0) { - // prefer to return the ID - but check that it's actually unique first! - let idSel = "#" + this.id(); - if (Functions.isset(this._dom)) { - if (this.matchesUnique(idSel)) { // otherwise, continue to check tag#id - return idSel; - } else { - if (this.matchesUnique(this.tag + idSel)) // otherwise, continue to the nth-child impl - return this.tag + idSel; - } - } else { - return idSel; // no owner doc, return the ID selector - } - } - - // Translate HTML namespace ns:tag to CSS namespace syntax ns|tag - let selector = this.tag.replace(':', '|'); - - const caseInsensitive = Functions.isset(this._dom) ? this._dom.caseInsensitive : true; - - // meta is a special tag, get first attr as target - let pass = false; - if (this.tag.toLowerCase() === 'meta' && Functions.isset(this.attr) && this.attr.size > 0) { - const data_attr = this.attr.keys().next().value; - selector += '[' + data_attr + '=' + this.attr.get(data_attr) + ']'; - pass = true; - } - - if (!pass && Functions.isset(supportedAttrs)) { - for (const attr_name of supportedAttrs) { - let attr = caseInsensitive ? attr_name.toLowerCase() : attr_name; - let attr_to_check = null; - - if (attr.toLowerCase() === 'class') { - const classes = !Functions.empty(this.class) ? - String(this.class).split(' ').join('.') : ''; - - if (classes.length > 0) { - selector += '.' + classes; - break; - } - - } else if (attr.toLowerCase() === 'data') { - const data_attr = this.#firstDataAttributeSortByID(); - - if (Functions.isset(data_attr)) { - if (String(data_attr).toLowerCase() !== 'data-attrid' - && Functions.isset(this._parent)) { - const pre = selector + '[' + data_attr + ']'; - if (this.matchesUnique(pre)) { - selector = pre; - break; - } - } - - attr_to_check = data_attr; - } - } else if (this.attr.has(attr)) { - attr_to_check = attr; - } - - if (Functions.isset(attr_to_check)) { - if (Functions.isset(this._dom)) { - const pre = selector + '[' + attr_to_check + '=' + this.attr.get(attr_to_check) + ']'; - if (this.matchesUnique(pre)) { - selector = pre; - break; - } - } else { - selector += '[' + attr_to_check + '=' + this.attr.get(attr_to_check) + ']'; - break; - } - } - } - } - - if (forceCheck && Functions.isset(this._dom)) { - if (this._dom.find(selector, 0) === this) { - return selector; - } - } - - if (!Functions.isset(this._parent) || this._parent.nodeType === HTMLNode.TYPE_ROOT) { - // don't add Document to selector, as will always have a html node - return selector; - } - - const found = this._parent.find(selector); - selector = " > " + selector; - if (found.length > 1 && found.indexOf(this) > 0) { - selector += ":nth-child(" + found.indexOf(this) + ")"; - } - - return this._parent.cssSelector(forceCheck, supportedAttrs) + selector; - } - - /** - * Get the value of a form element (input, textarea, etc). - * @return the value of the form element, or empty string if not set. - */ - val() { - if (this.tag.toLowerCase() === "textarea") - return this.innerText(); - else - return this.getAttribute("value"); - } - - /** - * Get the list index of this node in its node sibling list. E.g. if this is the first node - * sibling, returns 0. - * @return position in node sibling list - */ - siblingIndex() { - if (!Functions.isset(this._parent)) - return 0; - return Math.max(this._parent.nodes.indexOf(this), 0); - } - - /** - * Get the list index of this node in the document list. E.g. if this is the first node - * sibling, returns 0. - * @return position in node sibling list - */ - rootIndex() { - return Math.max(this._dom.nodes.indexOf(this), 0); - } - - /** - * Returns array of elements whose plainText equals the target. - */ - matchesPlainText(plainText) { - return this.children.filter(n => n.plainText().trim() === plainText.trim()) - } - - /** - * Returns array of elements whose innerText equals the target. - */ - matchesInnerText(innerText) { - return this.children.filter(n => n.innerText() === innerText) - } - - /** - * Returns array of elements whose outerText equals the target. - */ - matchesOuterText(outerText) { - return this.children.filter(n => n.outerText() === outerText) - } - - /** - * Returns array of elements whose tag name equals the target. - */ - matchesTagName(tag) { - return this.children.filter(n => n.tag.toLowerCase() === tag.toLowerCase()) - } - - static _is_block_element(node) { - const blockElements = ['p', - 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', - 'ol', 'ul', - 'pre', - 'address', - 'blockquote', - 'dl', - 'div', - 'fieldset', - 'form', - 'hr', - 'noscript', - 'table' - ]; - return blockElements.includes(node.tag.toLowerCase()); - } - - /** - * Returns true if the provided element is an inline level element - * @link https://www.w3resource.com/html/HTML-block-level-and-inline-elements.php - */ - static _is_inline_element(node) { - const inlineElements = [ - 'b', 'big', 'i', 'small', 'tt', - 'abbr', 'acronym', 'cite', 'code', 'dfn', 'em', 'kbd', 'strong', 'samp', 'var', - 'a', 'bdo', 'br', 'img', 'map', 'object', 'q', 'script', 'span', 'sub', 'sup', - 'button', 'input', 'label', 'select', 'textarea' - ]; - return inlineElements.includes(node.tag.toLowerCase()); - } - - static #is_utf8(str) { - let c = 0, b = 0; - let bits = 0; - let len = str.length; - - for (let i = 0; i < len; i++) { - c = str[i].charCodeAt(0); - if (c > 128) { - if ((c >= 254)) { - return false; - } else if (c >= 252) { - bits = 6; - } else if (c >= 248) { - bits = 5; - } else if (c >= 240) { - bits = 4; - } else if (c >= 224) { - bits = 3; - } else if (c >= 192) { - bits = 2; - } else { - return false; - } - - if ((i + bits) > len) { - return false; - } - - while (bits > 1) { - i++; - b = str[i].charCodeAt(0); - if (b < 128 || b > 191) { - return false; - } - bits--; - } - } - } - return true; - } -} - -module.exports = HTMLNode; \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/index.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/index.js deleted file mode 100644 index d8baa83e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./jssoup'); \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/jssoup.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/jssoup.js deleted file mode 100644 index 8e7a5778..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/jssoup.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2021 - Amir Hossein Aghajari - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -const HTMLDocument = require('./html_document.js'); -const HTMLNode = require('./html_node.js'); - -const load = function (str = null, - caseInsensitive = true, - forceTagsClosed = false, - target_charset = 'UTF-8', - stripRN = true, - defaultBRText = '\r\n', - defaultSpanText = ' ', - removeSmartyScripts = false) { - return new HTMLDocument(str, caseInsensitive, forceTagsClosed, target_charset, stripRN, defaultBRText, defaultSpanText, removeSmartyScripts); -}; - -const loadFromURL = function (url, options = null, - caseInsensitive = true, - forceTagsClosed = false, - target_charset = 'UTF-8', - stripRN = true, - defaultBRText = '\r\n', - defaultSpanText = ' ', - removeSmartyScripts = false) { - if (options === null) - options = {method: 'GET'}; - - if (options.method === undefined || options.method === null) - options.method = 'GET'; - - return new Promise((resolve, reject) => { - - const http = url.startsWith("https") ? require('https') : require('http'); - - const req = http.request(url, options, (res) => { - - res.setEncoding('utf8'); - let responseBody = ''; - - res.on('data', (chunk) => { - responseBody += chunk; - }); - - res.on('end', () => { - resolve(new HTMLDocument(responseBody, caseInsensitive, forceTagsClosed, target_charset, - stripRN, defaultBRText, defaultSpanText, removeSmartyScripts)); - }); - }); - - req.on('error', (err) => { - reject(err); - }); - - req.end(); - }); -}; - -module.exports = { - HTMLDocument, - HTMLNode, - load, - loadFromURL -}; \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/package.json b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/package.json deleted file mode 100644 index 822c2fe7..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@aghajari/jssoup", - "version": "1.0.2", - "description": "JSSoup: the JavaScript HTML DOM parser for node.js", - "main": "index.js", - "dependencies": { - "iconv": "^3.0.0" - }, - "keywords": [ - "jssoup", - "htmlparser", - "dom", - "html" - ], - "author": "AmirHossein Aghajari", - "license": "Apache-2.0", - "scripts": { - "test": "npm test.js" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Aghajari/JSSoup.git" - }, - "bugs": { - "url": "https://github.com/Aghajari/JSSoup/issues" - }, - "homepage": "https://github.com/Aghajari/JSSoup#readme", - "devDependencies": {} -} diff --git a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/test.js b/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/test.js deleted file mode 100644 index a01b9179..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@aghajari/jssoup/test.js +++ /dev/null @@ -1,101 +0,0 @@ -const jssoup = require('./jssoup'); - -// -------------- LOGGER -------------- -const util = require('util'); -const log = function (name = null, value = null, singleLine = true) { - console.log(new logger(name, value, singleLine)); -}; - -class logger { - constructor(name, value, singleLine) { - this.name = name; - this.value = value; - this.singleLine = singleLine; - } - - [util.inspect.custom](depth, opts) { - if (this.name === null) - return opts.stylize('------------------------------------', 'special'); - - if (this.value instanceof jssoup.HTMLNode) { - return opts.stylize(this.name + ": ", 'special') - + opts.stylize(this.value.plainText(), 'null') + '\n' - + this.value._debug(opts, '', this.singleLine, this.singleLine) + '\n'; - } else { - return opts.stylize(this.name + ": ", 'special') + this.value; - } - }; -} - -// -------------- HTTP(S) OPTIONS -------------- - -const options = () => { - return { - headers: { - 'User-Agent': "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) " + - "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36", - } - }; -}; - -// -------------- TEST -------------- - -test(); - -async function test() { - testHtml(); - await testGoogle(); - await testMeta(); -} - -function testHtml() { - const html = ` - - JSSoup - node.js - - - -

This is a test

-

Hello world!

-

Hello node.js!

-

Hello js!

-

test id1

- - Custom Title - - - Got it by data-type! - - -`; - - const doc = jssoup.load(html); - log(); - log("title", doc.titleEl()); - log("h1", doc.getElementByTagName('h1')); - log("h2.test1", doc.findFirst('h2.test1')); - log("h2.test2 (1)", doc.find('h2.test2', 0)); - log("h2.test2 (2)", doc.find('h2.test2', 1)); - log("#id1", doc.findFirst('#id1')); - log("custom > title", doc.findFirst('custom > title', 0)); - log("comment", doc.comments()[0]); - log("test data-type", doc.getElementByAttr('data-type')); -} - -async function testGoogle() { - const doc = await jssoup.loadFromURL("https://www.google.com/search?q=Hello+lyrics", options()); - - log(); - log('track', doc.getElementByAttr("data-attrid", `"title"`), false); // h2[data-attrid="title"] - log('artist', doc.getElementByAttr("data-attrid", `"subtitle"`), false); // div[data-attrid="subtitle"] - log('lyrics', doc.getElementByAttr("data-lyricid").plainText()); // div[data-lyricid] -} - -async function testMeta() { - const doc = await jssoup.loadFromURL("https://github.com/Aghajari", options()); - - log(); - log('title', doc.title()); - log('description', doc.description()); - log('image', doc.image()); -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md deleted file mode 100644 index b07e75cb..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +++ /dev/null @@ -1,507 +0,0 @@ -# node-pre-gyp changelog - -## 1.0.10 -- Upgraded minimist to 1.2.6 to address dependabot alert [CVE-2021-44906](https://nvd.nist.gov/vuln/detail/CVE-2021-44906) - -## 1.0.9 -- Upgraded node-fetch to 2.6.7 to address [CVE-2022-0235](https://www.cve.org/CVERecord?id=CVE-2022-0235) -- Upgraded detect-libc to 2.0.0 to use non-blocking NodeJS(>=12) Report API - -## 1.0.8 -- Downgraded npmlog to maintain node v10 and v8 support (https://github.com/mapbox/node-pre-gyp/pull/624) - -## 1.0.7 -- Upgraded nyc and npmlog to address https://github.com/advisories/GHSA-93q8-gq69-wqmw - -## 1.0.6 -- Added node v17 to the internal node releases listing -- Upgraded various dependencies declared in package.json to latest major versions (node-fetch from 2.6.1 to 2.6.5, npmlog from 4.1.2 to 5.01, semver from 7.3.4 to 7.3.5, and tar from 6.1.0 to 6.1.11) -- Fixed bug in `staging_host` parameter (https://github.com/mapbox/node-pre-gyp/pull/590) - - -## 1.0.5 -- Fix circular reference warning with node >= v14 - -## 1.0.4 -- Added node v16 to the internal node releases listing - -## 1.0.3 -- Improved support configuring s3 uploads (solves https://github.com/mapbox/node-pre-gyp/issues/571) - - New options added in https://github.com/mapbox/node-pre-gyp/pull/576: 'bucket', 'region', and `s3ForcePathStyle` - -## 1.0.2 -- Fixed regression in proxy support (https://github.com/mapbox/node-pre-gyp/issues/572) - -## 1.0.1 -- Switched from mkdirp@1.0.4 to make-dir@3.1.0 to avoid this bug: https://github.com/isaacs/node-mkdirp/issues/31 - -## 1.0.0 -- Module is now name-spaced at `@mapbox/node-pre-gyp` and the original `node-pre-gyp` is deprecated. -- New: support for staging and production s3 targets (see README.md) -- BREAKING: no longer supporting `node_pre_gyp_accessKeyId` & `node_pre_gyp_secretAccessKey`, use `AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY` instead to authenticate against s3 for `info`, `publish`, and `unpublish` commands. -- Dropped node v6 support, added node v14 support -- Switched tests to use mapbox-owned bucket for testing -- Added coverage tracking and linting with eslint -- Added back support for symlinks inside the tarball -- Upgraded all test apps to N-API/node-addon-api -- New: support for staging and production s3 targets (see README.md) -- Added `node_pre_gyp_s3_host` env var which has priority over the `--s3_host` option or default. -- Replaced needle with node-fetch -- Added proxy support for node-fetch -- Upgraded to mkdirp@1.x - -## 0.17.0 -- Got travis + appveyor green again -- Added support for more node versions - -## 0.16.0 - -- Added Node 15 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/520) - -## 0.15.0 - -- Bump dependency on `mkdirp` from `^0.5.1` to `^0.5.3` (https://github.com/mapbox/node-pre-gyp/pull/492) -- Bump dependency on `needle` from `^2.2.1` to `^2.5.0` (https://github.com/mapbox/node-pre-gyp/pull/502) -- Added Node 14 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/501) - -## 0.14.0 - -- Defer modules requires in napi.js (https://github.com/mapbox/node-pre-gyp/pull/434) -- Bump dependency on `tar` from `^4` to `^4.4.2` (https://github.com/mapbox/node-pre-gyp/pull/454) -- Support extracting compiled binary from local offline mirror (https://github.com/mapbox/node-pre-gyp/pull/459) -- Added Node 13 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/483) - -## 0.13.0 - -- Added Node 12 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/449) - -## 0.12.0 - -- Fixed double-build problem with node v10 (https://github.com/mapbox/node-pre-gyp/pull/428) -- Added node 11 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/422) - -## 0.11.0 - -- Fixed double-install problem with node v10 -- Significant N-API improvements (https://github.com/mapbox/node-pre-gyp/pull/405) - -## 0.10.3 - -- Now will use `request` over `needle` if request is installed. By default `needle` is used for `https`. This should unbreak proxy support that regressed in v0.9.0 - -## 0.10.2 - -- Fixed rc/deep-extent security vulnerability -- Fixed broken reinstall script do to incorrectly named get_best_napi_version - -## 0.10.1 - -- Fix needle error event (@medns) - -## 0.10.0 - -- Allow for a single-level module path when packing @allenluce (https://github.com/mapbox/node-pre-gyp/pull/371) -- Log warnings instead of errors when falling back @xzyfer (https://github.com/mapbox/node-pre-gyp/pull/366) -- Add Node.js v10 support to tests (https://github.com/mapbox/node-pre-gyp/pull/372) -- Remove retire.js from CI (https://github.com/mapbox/node-pre-gyp/pull/372) -- Remove support for Node.js v4 due to [EOL on April 30th, 2018](https://github.com/nodejs/Release/blob/7dd52354049cae99eed0e9fe01345b0722a86fde/schedule.json#L14) -- Update appveyor tests to install default NPM version instead of NPM v2.x for all Windows builds (https://github.com/mapbox/node-pre-gyp/pull/375) - -## 0.9.1 - -- Fixed regression (in v0.9.0) with support for http redirects @allenluce (https://github.com/mapbox/node-pre-gyp/pull/361) - -## 0.9.0 - -- Switched from using `request` to `needle` to reduce size of module deps (https://github.com/mapbox/node-pre-gyp/pull/350) - -## 0.8.0 - -- N-API support (@inspiredware) - -## 0.7.1 - -- Upgraded to tar v4.x - -## 0.7.0 - - - Updated request and hawk (#347) - - Dropped node v0.10.x support - -## 0.6.40 - - - Improved error reporting if an install fails - -## 0.6.39 - - - Support for node v9 - - Support for versioning on `{libc}` to allow binaries to work on non-glic linux systems like alpine linux - - -## 0.6.38 - - - Maintaining compatibility (for v0.6.x series) with node v0.10.x - -## 0.6.37 - - - Solved one part of #276: now now deduce the node ABI from the major version for node >= 2 even when not stored in the abi_crosswalk.json - - Fixed docs to avoid mentioning the deprecated and dangerous `prepublish` in package.json (#291) - - Add new node versions to crosswalk - - Ported tests to use tape instead of mocha - - Got appveyor tests passing by downgrading npm and node-gyp - -## 0.6.36 - - - Removed the running of `testbinary` during install. Because this was regressed for so long, it is too dangerous to re-enable by default. Developers needing validation can call `node-pre-gyp testbinary` directory. - - Fixed regression in v0.6.35 for electron installs (now skipping binary validation which is not yet supported for electron) - -## 0.6.35 - - - No longer recommending `npm ls` in `prepublish` (#291) - - Fixed testbinary command (#283) @szdavid92 - -## 0.6.34 - - - Added new node versions to crosswalk, including v8 - - Upgraded deps to latest versions, started using `^` instead of `~` for all deps. - -## 0.6.33 - - - Improved support for yarn - -## 0.6.32 - - - Honor npm configuration for CA bundles (@heikkipora) - - Add node-pre-gyp and npm versions to user agent (@addaleax) - - Updated various deps - - Add known node version for v7.x - -## 0.6.31 - - - Updated various deps - -## 0.6.30 - - - Update to npmlog@4.x and semver@5.3.x - - Add known node version for v6.5.0 - -## 0.6.29 - - - Add known node versions for v0.10.45, v0.12.14, v4.4.4, v5.11.1, and v6.1.0 - -## 0.6.28 - - - Now more verbose when remote binaries are not available. This is needed since npm is increasingly more quiet by default - and users need to know why builds are falling back to source compiles that might then error out. - -## 0.6.27 - - - Add known node version for node v6 - - Stopped bundling dependencies - - Documented method for module authors to avoid bundling node-pre-gyp - - See https://github.com/mapbox/node-pre-gyp/tree/master#configuring for details - -## 0.6.26 - - - Skip validation for nw runtime (https://github.com/mapbox/node-pre-gyp/pull/181) via @fleg - -## 0.6.25 - - - Improved support for auto-detection of electron runtime in `node-pre-gyp.find()` - - Pull request from @enlight - https://github.com/mapbox/node-pre-gyp/pull/187 - - Add known node version for 4.4.1 and 5.9.1 - -## 0.6.24 - - - Add known node version for 5.8.0, 5.9.0, and 4.4.0. - -## 0.6.23 - - - Add known node version for 0.10.43, 0.12.11, 4.3.2, and 5.7.1. - -## 0.6.22 - - - Add known node version for 4.3.1, and 5.7.0. - -## 0.6.21 - - - Add known node version for 0.10.42, 0.12.10, 4.3.0, and 5.6.0. - -## 0.6.20 - - - Add known node version for 4.2.5, 4.2.6, 5.4.0, 5.4.1,and 5.5.0. - -## 0.6.19 - - - Add known node version for 4.2.4 - -## 0.6.18 - - - Add new known node versions for 0.10.x, 0.12.x, 4.x, and 5.x - -## 0.6.17 - - - Re-tagged to fix packaging problem of `Error: Cannot find module 'isarray'` - -## 0.6.16 - - - Added known version in crosswalk for 5.1.0. - -## 0.6.15 - - - Upgraded tar-pack (https://github.com/mapbox/node-pre-gyp/issues/182) - - Support custom binary hosting mirror (https://github.com/mapbox/node-pre-gyp/pull/170) - - Added known version in crosswalk for 4.2.2. - -## 0.6.14 - - - Added node 5.x version - -## 0.6.13 - - - Added more known node 4.x versions - -## 0.6.12 - - - Added support for [Electron](http://electron.atom.io/). Just pass the `--runtime=electron` flag when building/installing. Thanks @zcbenz - -## 0.6.11 - - - Added known node and io.js versions including more 3.x and 4.x versions - -## 0.6.10 - - - Added known node and io.js versions including 3.x and 4.x versions - - Upgraded `tar` dep - -## 0.6.9 - - - Upgraded `rc` dep - - Updated known io.js version: v2.4.0 - -## 0.6.8 - - - Upgraded `semver` and `rimraf` deps - - Updated known node and io.js versions - -## 0.6.7 - - - Fixed `node_abi` versions for io.js 1.1.x -> 1.8.x (should be 43, but was stored as 42) (refs https://github.com/iojs/build/issues/94) - -## 0.6.6 - - - Updated with known io.js 2.0.0 version - -## 0.6.5 - - - Now respecting `npm_config_node_gyp` (https://github.com/npm/npm/pull/4887) - - Updated to semver@4.3.2 - - Updated known node v0.12.x versions and io.js 1.x versions. - -## 0.6.4 - - - Improved support for `io.js` (@fengmk2) - - Test coverage improvements (@mikemorris) - - Fixed support for `--dist-url` that regressed in 0.6.3 - -## 0.6.3 - - - Added support for passing raw options to node-gyp using `--` separator. Flags passed after - the `--` to `node-pre-gyp configure` will be passed directly to gyp while flags passed - after the `--` will be passed directly to make/visual studio. - - Added `node-pre-gyp configure` command to be able to call `node-gyp configure` directly - - Fix issue with require validation not working on windows 7 (@edgarsilva) - -## 0.6.2 - - - Support for io.js >= v1.0.2 - - Deferred require of `request` and `tar` to help speed up command line usage of `node-pre-gyp`. - -## 0.6.1 - - - Fixed bundled `tar` version - -## 0.6.0 - - - BREAKING: node odd releases like v0.11.x now use `major.minor.patch` for `{node_abi}` instead of `NODE_MODULE_VERSION` (#124) - - Added support for `toolset` option in versioning. By default is an empty string but `--toolset` can be passed to publish or install to select alternative binaries that target a custom toolset like C++11. For example to target Visual Studio 2014 modules like node-sqlite3 use `--toolset=v140`. - - Added support for `--no-rollback` option to request that a failed binary test does not remove the binary module leaves it in place. - - Added support for `--update-binary` option to request an existing binary be re-installed and the check for a valid local module be skipped. - - Added support for passing build options from `npm` through `node-pre-gyp` to `node-gyp`: `--nodedir`, `--disturl`, `--python`, and `--msvs_version` - -## 0.5.31 - - - Added support for deducing node_abi for node.js runtime from previous release if the series is even - - Added support for --target=0.10.33 - -## 0.5.30 - - - Repackaged with latest bundled deps - -## 0.5.29 - - - Added support for semver `build`. - - Fixed support for downloading from urls that include `+`. - -## 0.5.28 - - - Now reporting unix style paths only in reveal command - -## 0.5.27 - - - Fixed support for auto-detecting s3 bucket name when it contains `.` - @taavo - - Fixed support for installing when path contains a `'` - @halfdan - - Ported tests to mocha - -## 0.5.26 - - - Fix node-webkit support when `--target` option is not provided - -## 0.5.25 - - - Fix bundling of deps - -## 0.5.24 - - - Updated ABI crosswalk to incldue node v0.10.30 and v0.10.31 - -## 0.5.23 - - - Added `reveal` command. Pass no options to get all versioning data as json. Pass a second arg to grab a single versioned property value - - Added support for `--silent` (shortcut for `--loglevel=silent`) - -## 0.5.22 - - - Fixed node-webkit versioning name (NOTE: node-webkit support still experimental) - -## 0.5.21 - - - New package to fix `shasum check failed` error with v0.5.20 - -## 0.5.20 - - - Now versioning node-webkit binaries based on major.minor.patch - assuming no compatible ABI across versions (#90) - -## 0.5.19 - - - Updated to know about more node-webkit releases - -## 0.5.18 - - - Updated to know about more node-webkit releases - -## 0.5.17 - - - Updated to know about node v0.10.29 release - -## 0.5.16 - - - Now supporting all aws-sdk configuration parameters (http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html) (#86) - -## 0.5.15 - - - Fixed installation of windows packages sub directories on unix systems (#84) - -## 0.5.14 - - - Finished support for cross building using `--target_platform` option (#82) - - Now skipping binary validation on install if target arch/platform do not match the host. - - Removed multi-arch validing for OS X since it required a FAT node.js binary - -## 0.5.13 - - - Fix problem in 0.5.12 whereby the wrong versions of mkdirp and semver where bundled. - -## 0.5.12 - - - Improved support for node-webkit (@Mithgol) - -## 0.5.11 - - - Updated target versions listing - -## 0.5.10 - - - Fixed handling of `-debug` flag passed directory to node-pre-gyp (#72) - - Added optional second arg to `node_pre_gyp.find` to customize the default versioning options used to locate the runtime binary - - Failed install due to `testbinary` check failure no longer leaves behind binary (#70) - -## 0.5.9 - - - Fixed regression in `testbinary` command causing installs to fail on windows with 0.5.7 (#60) - -## 0.5.8 - - - Started bundling deps - -## 0.5.7 - - - Fixed the `testbinary` check, which is used to determine whether to re-download or source compile, to work even in complex dependency situations (#63) - - Exposed the internal `testbinary` command in node-pre-gyp command line tool - - Fixed minor bug so that `fallback_to_build` option is always respected - -## 0.5.6 - - - Added support for versioning on the `name` value in `package.json` (#57). - - Moved to using streams for reading tarball when publishing (#52) - -## 0.5.5 - - - Improved binary validation that also now works with node-webkit (@Mithgol) - - Upgraded test apps to work with node v0.11.x - - Improved test coverage - -## 0.5.4 - - - No longer depends on external install of node-gyp for compiling builds. - -## 0.5.3 - - - Reverted fix for debian/nodejs since it broke windows (#45) - -## 0.5.2 - - - Support for debian systems where the node binary is named `nodejs` (#45) - - Added `bin/node-pre-gyp.cmd` to be able to run command on windows locally (npm creates an .npm automatically when globally installed) - - Updated abi-crosswalk with node v0.10.26 entry. - -## 0.5.1 - - - Various minor bug fixes, several improving windows support for publishing. - -## 0.5.0 - - - Changed property names in `binary` object: now required are `module_name`, `module_path`, and `host`. - - Now `module_path` supports versioning, which allows developers to opt-in to using a versioned install path (#18). - - Added `remote_path` which also supports versioning. - - Changed `remote_uri` to `host`. - -## 0.4.2 - - - Added support for `--target` flag to request cross-compile against a specific node/node-webkit version. - - Added preliminary support for node-webkit - - Fixed support for `--target_arch` option being respected in all cases. - -## 0.4.1 - - - Fixed exception when only stderr is available in binary test (@bendi / #31) - -## 0.4.0 - - - Enforce only `https:` based remote publishing access. - - Added `node-pre-gyp info` command to display listing of published binaries - - Added support for changing the directory node-pre-gyp should build in with the `-C/--directory` option. - - Added support for S3 prefixes. - -## 0.3.1 - - - Added `unpublish` command. - - Fixed module path construction in tests. - - Added ability to disable falling back to build behavior via `npm install --fallback-to-build=false` which overrides setting in a depedencies package.json `install` target. - -## 0.3.0 - - - Support for packaging all files in `module_path` directory - see `app4` for example - - Added `testpackage` command. - - Changed `clean` command to only delete `.node` not entire `build` directory since node-gyp will handle that. - - `.node` modules must be in a folder of there own since tar-pack will remove everything when it unpacks. diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/LICENSE b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/LICENSE deleted file mode 100644 index 8f5fce91..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c), Mapbox - -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - * Neither the name of node-pre-gyp nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/README.md b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/README.md deleted file mode 100644 index 203285a8..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/README.md +++ /dev/null @@ -1,742 +0,0 @@ -# @mapbox/node-pre-gyp - -#### @mapbox/node-pre-gyp makes it easy to publish and install Node.js C++ addons from binaries - -[![Build Status](https://travis-ci.com/mapbox/node-pre-gyp.svg?branch=master)](https://travis-ci.com/mapbox/node-pre-gyp) -[![Build status](https://ci.appveyor.com/api/projects/status/3nxewb425y83c0gv)](https://ci.appveyor.com/project/Mapbox/node-pre-gyp) - -`@mapbox/node-pre-gyp` stands between [npm](https://github.com/npm/npm) and [node-gyp](https://github.com/Tootallnate/node-gyp) and offers a cross-platform method of binary deployment. - -### Special note on previous package - -On Feb 9th, 2021 `@mapbox/node-pre-gyp@1.0.0` was [released](./CHANGELOG.md). Older, unscoped versions that are not part of the `@mapbox` org are deprecated and only `@mapbox/node-pre-gyp` will see updates going forward. To upgrade to the new package do: - -``` -npm uninstall node-pre-gyp --save -npm install @mapbox/node-pre-gyp --save -``` - -### Features - - - A command line tool called `node-pre-gyp` that can install your package's C++ module from a binary. - - A variety of developer targeted commands for packaging, testing, and publishing binaries. - - A JavaScript module that can dynamically require your installed binary: `require('@mapbox/node-pre-gyp').find` - -For a hello world example of a module packaged with `node-pre-gyp` see and [the wiki ](https://github.com/mapbox/node-pre-gyp/wiki/Modules-using-node-pre-gyp) for real world examples. - -## Credits - - - The module is modeled after [node-gyp](https://github.com/Tootallnate/node-gyp) by [@Tootallnate](https://github.com/Tootallnate) - - Motivation for initial development came from [@ErisDS](https://github.com/ErisDS) and the [Ghost Project](https://github.com/TryGhost/Ghost). - - Development is sponsored by [Mapbox](https://www.mapbox.com/) - -## FAQ - -See the [Frequently Ask Questions](https://github.com/mapbox/node-pre-gyp/wiki/FAQ). - -## Depends - - - Node.js >= node v8.x - -## Install - -`node-pre-gyp` is designed to be installed as a local dependency of your Node.js C++ addon and accessed like: - - ./node_modules/.bin/node-pre-gyp --help - -But you can also install it globally: - - npm install @mapbox/node-pre-gyp -g - -## Usage - -### Commands - -View all possible commands: - - node-pre-gyp --help - -- clean - Remove the entire folder containing the compiled .node module -- install - Install pre-built binary for module -- reinstall - Run "clean" and "install" at once -- build - Compile the module by dispatching to node-gyp or nw-gyp -- rebuild - Run "clean" and "build" at once -- package - Pack binary into tarball -- testpackage - Test that the staged package is valid -- publish - Publish pre-built binary -- unpublish - Unpublish pre-built binary -- info - Fetch info on published binaries - -You can also chain commands: - - node-pre-gyp clean build unpublish publish info - -### Options - -Options include: - - - `-C/--directory`: run the command in this directory - - `--build-from-source`: build from source instead of using pre-built binary - - `--update-binary`: reinstall by replacing previously installed local binary with remote binary - - `--runtime=node-webkit`: customize the runtime: `node`, `electron` and `node-webkit` are the valid options - - `--fallback-to-build`: fallback to building from source if pre-built binary is not available - - `--target=0.4.0`: Pass the target node or node-webkit version to compile against - - `--target_arch=ia32`: Pass the target arch and override the host `arch`. Any value that is [supported by Node.js](https://nodejs.org/api/os.html#osarch) is valid. - - `--target_platform=win32`: Pass the target platform and override the host `platform`. Valid values are `linux`, `darwin`, `win32`, `sunos`, `freebsd`, `openbsd`, and `aix`. - -Both `--build-from-source` and `--fallback-to-build` can be passed alone or they can provide values. You can pass `--fallback-to-build=false` to override the option as declared in package.json. In addition to being able to pass `--build-from-source` you can also pass `--build-from-source=myapp` where `myapp` is the name of your module. - -For example: `npm install --build-from-source=myapp`. This is useful if: - - - `myapp` is referenced in the package.json of a larger app and therefore `myapp` is being installed as a dependency with `npm install`. - - The larger app also depends on other modules installed with `node-pre-gyp` - - You only want to trigger a source compile for `myapp` and the other modules. - -### Configuring - -This is a guide to configuring your module to use node-pre-gyp. - -#### 1) Add new entries to your `package.json` - - - Add `@mapbox/node-pre-gyp` to `dependencies` - - Add `aws-sdk` as a `devDependency` - - Add a custom `install` script - - Declare a `binary` object - -This looks like: - -```js - "dependencies" : { - "@mapbox/node-pre-gyp": "1.x" - }, - "devDependencies": { - "aws-sdk": "2.x" - } - "scripts": { - "install": "node-pre-gyp install --fallback-to-build" - }, - "binary": { - "module_name": "your_module", - "module_path": "./lib/binding/", - "host": "https://your_module.s3-us-west-1.amazonaws.com" - } -``` - -For a full example see [node-addon-examples's package.json](https://github.com/springmeyer/node-addon-example/blob/master/package.json). - -Let's break this down: - - - Dependencies need to list `node-pre-gyp` - - Your devDependencies should list `aws-sdk` so that you can run `node-pre-gyp publish` locally or a CI system. We recommend using `devDependencies` only since `aws-sdk` is large and not needed for `node-pre-gyp install` since it only uses http to fetch binaries - - Your `scripts` section should override the `install` target with `"install": "node-pre-gyp install --fallback-to-build"`. This allows node-pre-gyp to be used instead of the default npm behavior of always source compiling with `node-gyp` directly. - - Your package.json should contain a `binary` section describing key properties you provide to allow node-pre-gyp to package optimally. They are detailed below. - -Note: in the past we recommended putting `@mapbox/node-pre-gyp` in the `bundledDependencies`, but we no longer recommend this. In the past there were npm bugs (with node versions 0.10.x) that could lead to node-pre-gyp not being available at the right time during install (unless we bundled). This should no longer be the case. Also, for a time we recommended using `"preinstall": "npm install @mapbox/node-pre-gyp"` as an alternative method to avoid needing to bundle. But this did not behave predictably across all npm versions - see https://github.com/mapbox/node-pre-gyp/issues/260 for the details. So we do not recommend using `preinstall` to install `@mapbox/node-pre-gyp`. More history on this at https://github.com/strongloop/fsevents/issues/157#issuecomment-265545908. - -##### The `binary` object has three required properties - -###### module_name - -The name of your native node module. This value must: - - - Match the name passed to [the NODE_MODULE macro](http://nodejs.org/api/addons.html#addons_hello_world) - - Must be a valid C variable name (e.g. it cannot contain `-`) - - Should not include the `.node` extension. - -###### module_path - -The location your native module is placed after a build. This should be an empty directory without other Javascript files. This entire directory will be packaged in the binary tarball. When installing from a remote package this directory will be overwritten with the contents of the tarball. - -Note: This property supports variables based on [Versioning](#versioning). - -###### host - -A url to the remote location where you've published tarball binaries (must be `https` not `http`). - -It is highly recommended that you use Amazon S3. The reasons are: - - - Various node-pre-gyp commands like `publish` and `info` only work with an S3 host. - - S3 is a very solid hosting platform for distributing large files. - - We provide detail documentation for using [S3 hosting](#s3-hosting) with node-pre-gyp. - -Why then not require S3? Because while some applications using node-pre-gyp need to distribute binaries as large as 20-30 MB, others might have very small binaries and might wish to store them in a GitHub repo. This is not recommended, but if an author really wants to host in a non-S3 location then it should be possible. - -It should also be mentioned that there is an optional and entirely separate npm module called [node-pre-gyp-github](https://github.com/bchr02/node-pre-gyp-github) which is intended to complement node-pre-gyp and be installed along with it. It provides the ability to store and publish your binaries within your repositories GitHub Releases if you would rather not use S3 directly. Installation and usage instructions can be found [here](https://github.com/bchr02/node-pre-gyp-github), but the basic premise is that instead of using the ```node-pre-gyp publish``` command you would use ```node-pre-gyp-github publish```. - -##### The `binary` object other optional S3 properties - -If you are not using a standard s3 path like `bucket_name.s3(.-)region.amazonaws.com`, you might get an error on `publish` because node-pre-gyp extracts the region and bucket from the `host` url. For example, you may have an on-premises s3-compatible storage server, or may have configured a specific dns redirecting to an s3 endpoint. In these cases, you can explicitly set the `region` and `bucket` properties to tell node-pre-gyp to use these values instead of guessing from the `host` property. The following values can be used in the `binary` section: - -###### host - -The url to the remote server root location (must be `https` not `http`). - -###### bucket - -The bucket name where your tarball binaries should be located. - -###### region - -Your S3 server region. - -###### s3ForcePathStyle - -Set `s3ForcePathStyle` to true if the endpoint url should not be prefixed with the bucket name. If false (default), the server endpoint would be constructed as `bucket_name.your_server.com`. - -##### The `binary` object has optional properties - -###### remote_path - -It **is recommended** that you customize this property. This is an extra path to use for publishing and finding remote tarballs. The default value for `remote_path` is `""` meaning that if you do not provide it then all packages will be published at the base of the `host`. It is recommended to provide a value like `./{name}/v{version}` to help organize remote packages in the case that you choose to publish multiple node addons to the same `host`. - -Note: This property supports variables based on [Versioning](#versioning). - -###### package_name - -It is **not recommended** to override this property unless you are also overriding the `remote_path`. This is the versioned name of the remote tarball containing the binary `.node` module and any supporting files you've placed inside the `module_path` directory. Unless you specify `package_name` in your `package.json` then it defaults to `{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz` which allows your binary to work across node versions, platforms, and architectures. If you are using `remote_path` that is also versioned by `./{module_name}/v{version}` then you could remove these variables from the `package_name` and just use: `{node_abi}-{platform}-{arch}.tar.gz`. Then your remote tarball will be looked up at, for example, `https://example.com/your-module/v0.1.0/node-v11-linux-x64.tar.gz`. - -Avoiding the version of your module in the `package_name` and instead only embedding in a directory name can be useful when you want to make a quick tag of your module that does not change any C++ code. In this case you can just copy binaries to the new version behind the scenes like: - -```sh -aws s3 sync --acl public-read s3://mapbox-node-binary/sqlite3/v3.0.3/ s3://mapbox-node-binary/sqlite3/v3.0.4/ -``` - -Note: This property supports variables based on [Versioning](#versioning). - -#### 2) Add a new target to binding.gyp - -`node-pre-gyp` calls out to `node-gyp` to compile the module and passes variables along like [module_name](#module_name) and [module_path](#module_path). - -A new target must be added to `binding.gyp` that moves the compiled `.node` module from `./build/Release/module_name.node` into the directory specified by `module_path`. - -Add a target like this at the end of your `targets` list: - -```js - { - "target_name": "action_after_build", - "type": "none", - "dependencies": [ "<(module_name)" ], - "copies": [ - { - "files": [ "<(PRODUCT_DIR)/<(module_name).node" ], - "destination": "<(module_path)" - } - ] - } -``` - -For a full example see [node-addon-example's binding.gyp](https://github.com/springmeyer/node-addon-example/blob/2ff60a8ded7f042864ad21db00c3a5a06cf47075/binding.gyp). - -#### 3) Dynamically require your `.node` - -Inside the main js file that requires your addon module you are likely currently doing: - -```js -var binding = require('../build/Release/binding.node'); -``` - -or: - -```js -var bindings = require('./bindings') -``` - -Change those lines to: - -```js -var binary = require('@mapbox/node-pre-gyp'); -var path = require('path'); -var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); -var binding = require(binding_path); -``` - -For a full example see [node-addon-example's index.js](https://github.com/springmeyer/node-addon-example/blob/2ff60a8ded7f042864ad21db00c3a5a06cf47075/index.js#L1-L4) - -#### 4) Build and package your app - -Now build your module from source: - - npm install --build-from-source - -The `--build-from-source` tells `node-pre-gyp` to not look for a remote package and instead dispatch to node-gyp to build. - -Now `node-pre-gyp` should now also be installed as a local dependency so the command line tool it offers can be found at `./node_modules/.bin/node-pre-gyp`. - -#### 5) Test - -Now `npm test` should work just as it did before. - -#### 6) Publish the tarball - -Then package your app: - - ./node_modules/.bin/node-pre-gyp package - -Once packaged, now you can publish: - - ./node_modules/.bin/node-pre-gyp publish - -Currently the `publish` command pushes your binary to S3. This requires: - - - You have installed `aws-sdk` with `npm install aws-sdk` - - You have created a bucket already. - - The `host` points to an S3 http or https endpoint. - - You have configured node-pre-gyp to read your S3 credentials (see [S3 hosting](#s3-hosting) for details). - -You can also host your binaries elsewhere. To do this requires: - - - You manually publish the binary created by the `package` command to an `https` endpoint - - Ensure that the `host` value points to your custom `https` endpoint. - -#### 7) Automate builds - -Now you need to publish builds for all the platforms and node versions you wish to support. This is best automated. - - - See [Appveyor Automation](#appveyor-automation) for how to auto-publish builds on Windows. - - See [Travis Automation](#travis-automation) for how to auto-publish builds on OS X and Linux. - -#### 8) You're done! - -Now publish your module to the npm registry. Users will now be able to install your module from a binary. - -What will happen is this: - -1. `npm install ` will pull from the npm registry -2. npm will run the `install` script which will call out to `node-pre-gyp` -3. `node-pre-gyp` will fetch the binary `.node` module and unpack in the right place -4. Assuming that all worked, you are done - -If a a binary was not available for a given platform and `--fallback-to-build` was used then `node-gyp rebuild` will be called to try to source compile the module. - -#### 9) One more option - -It may be that you want to work with two s3 buckets, one for staging and one for production; this -arrangement makes it less likely to accidentally overwrite a production binary. It also allows the production -environment to have more restrictive permissions than staging while still enabling publishing when -developing and testing. - -The binary.host property can be set at execution time. In order to do so all of the following conditions -must be true. - -- binary.host is falsey or not present -- binary.staging_host is not empty -- binary.production_host is not empty - -If any of these checks fail then the operation will not perform execution time determination of the s3 target. - -If the command being executed is either "publish" or "unpublish" then the default is set to `binary.staging_host`. In all other cases -the default is `binary.production_host`. - -The command-line options `--s3_host=staging` or `--s3_host=production` override the default. If `s3_host` -is present and not `staging` or `production` an exception is thrown. - -This allows installing from staging by specifying `--s3_host=staging`. And it requires specifying -`--s3_option=production` in order to publish to, or unpublish from, production, making accidental errors less likely. - -## Node-API Considerations - -[Node-API](https://nodejs.org/api/n-api.html#n_api_node_api), which was previously known as N-API, is an ABI-stable alternative to previous technologies such as [nan](https://github.com/nodejs/nan) which are tied to a specific Node runtime engine. Node-API is Node runtime engine agnostic and guarantees modules created today will continue to run, without changes, into the future. - -Using `node-pre-gyp` with Node-API projects requires a handful of additional configuration values and imposes some additional requirements. - -The most significant difference is that an Node-API module can be coded to target multiple Node-API versions. Therefore, an Node-API module must declare in its `package.json` file which Node-API versions the module is designed to run against. In addition, since multiple builds may be required for a single module, path and file names must be specified in way that avoids naming conflicts. - -### The `napi_versions` array property - -A Node-API module must declare in its `package.json` file, the Node-API versions the module is intended to support. This is accomplished by including an `napi-versions` array property in the `binary` object. For example: - -```js -"binary": { - "module_name": "your_module", - "module_path": "your_module_path", - "host": "https://your_bucket.s3-us-west-1.amazonaws.com", - "napi_versions": [1,3] - } -``` - -If the `napi_versions` array property is *not* present, `node-pre-gyp` operates as it always has. Including the `napi_versions` array property instructs `node-pre-gyp` that this is a Node-API module build. - -When the `napi_versions` array property is present, `node-pre-gyp` fires off multiple operations, one for each of the Node-API versions in the array. In the example above, two operations are initiated, one for Node-API version 1 and second for Node-API version 3. How this version number is communicated is described next. - -### The `napi_build_version` value - -For each of the Node-API module operations `node-pre-gyp` initiates, it ensures that the `napi_build_version` is set appropriately. - -This value is of importance in two areas: - -1. The C/C++ code which needs to know against which Node-API version it should compile. -2. `node-pre-gyp` itself which must assign appropriate path and file names to avoid collisions. - -### Defining `NAPI_VERSION` for the C/C++ code - -The `napi_build_version` value is communicated to the C/C++ code by adding this code to the `binding.gyp` file: - -``` -"defines": [ - "NAPI_VERSION=<(napi_build_version)", -] -``` - -This ensures that `NAPI_VERSION`, an integer value, is declared appropriately to the C/C++ code for each build. - -> Note that earlier versions of this document recommended defining the symbol `NAPI_BUILD_VERSION`. `NAPI_VERSION` is preferred because it used by the Node-API C/C++ headers to configure the specific Node-API versions being requested. - -### Path and file naming requirements in `package.json` - -Since `node-pre-gyp` fires off multiple operations for each request, it is essential that path and file names be created in such a way as to avoid collisions. This is accomplished by imposing additional path and file naming requirements. - -Specifically, when performing Node-API builds, the `{napi_build_version}` text configuration value *must* be present in the `module_path` property. In addition, the `{napi_build_version}` text configuration value *must* be present in either the `remote_path` or `package_name` property. (No problem if it's in both.) - -Here's an example: - -```js -"binary": { - "module_name": "your_module", - "module_path": "./lib/binding/napi-v{napi_build_version}", - "remote_path": "./{module_name}/v{version}/{configuration}/", - "package_name": "{platform}-{arch}-napi-v{napi_build_version}.tar.gz", - "host": "https://your_bucket.s3-us-west-1.amazonaws.com", - "napi_versions": [1,3] - } -``` - -## Supporting both Node-API and NAN builds - -You may have a legacy native add-on that you wish to continue supporting for those versions of Node that do not support Node-API, as you add Node-API support for later Node versions. This can be accomplished by specifying the `node_napi_label` configuration value in the package.json `binary.package_name` property. - -Placing the configuration value `node_napi_label` in the package.json `binary.package_name` property instructs `node-pre-gyp` to build all viable Node-API binaries supported by the current Node instance. If the current Node instance does not support Node-API, `node-pre-gyp` will request a traditional, non-Node-API build. - -The configuration value `node_napi_label` is set by `node-pre-gyp` to the type of build created, `napi` or `node`, and the version number. For Node-API builds, the string contains the Node-API version nad has values like `napi-v3`. For traditional, non-Node-API builds, the string contains the ABI version with values like `node-v46`. - -Here's how the `binary` configuration above might be changed to support both Node-API and NAN builds: - -```js -"binary": { - "module_name": "your_module", - "module_path": "./lib/binding/{node_napi_label}", - "remote_path": "./{module_name}/v{version}/{configuration}/", - "package_name": "{platform}-{arch}-{node_napi_label}.tar.gz", - "host": "https://your_bucket.s3-us-west-1.amazonaws.com", - "napi_versions": [1,3] - } -``` - -The C/C++ symbol `NAPI_VERSION` can be used to distinguish Node-API and non-Node-API builds. The value of `NAPI_VERSION` is set to the integer Node-API version for Node-API builds and is set to `0` for non-Node-API builds. - -For example: - -```C -#if NAPI_VERSION -// Node-API code goes here -#else -// NAN code goes here -#endif -``` - -### Two additional configuration values - -The following two configuration values, which were implemented in previous versions of `node-pre-gyp`, continue to exist, but have been replaced by the `node_napi_label` configuration value described above. - -1. `napi_version` If Node-API is supported by the currently executing Node instance, this value is the Node-API version number supported by Node. If Node-API is not supported, this value is an empty string. - -2. `node_abi_napi` If the value returned for `napi_version` is non empty, this value is `'napi'`. If the value returned for `napi_version` is empty, this value is the value returned for `node_abi`. - -These values are present for use in the `binding.gyp` file and may be used as `{napi_version}` and `{node_abi_napi}` for text substituion in the `binary` properties of the `package.json` file. - -## S3 Hosting - -You can host wherever you choose but S3 is cheap, `node-pre-gyp publish` expects it, and S3 can be integrated well with [Travis.ci](http://travis-ci.org) to automate builds for OS X and Ubuntu, and with [Appveyor](http://appveyor.com) to automate builds for Windows. Here is an approach to do this: - -First, get setup locally and test the workflow: - -#### 1) Create an S3 bucket - -And have your **key** and **secret key** ready for writing to the bucket. - -It is recommended to create a IAM user with a policy that only gives permissions to the specific bucket you plan to publish to. This can be done in the [IAM console](https://console.aws.amazon.com/iam/) by: 1) adding a new user, 2) choosing `Attach User Policy`, 3) Using the `Policy Generator`, 4) selecting `Amazon S3` for the service, 5) adding the actions: `DeleteObject`, `GetObject`, `GetObjectAcl`, `ListBucket`, `HeadBucket`, `PutObject`, `PutObjectAcl`, 6) adding an ARN of `arn:aws:s3:::bucket/*` (replacing `bucket` with your bucket name), and finally 7) clicking `Add Statement` and saving the policy. It should generate a policy like: - -```js -{ - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "objects", - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObjectAcl", - "s3:GetObject", - "s3:DeleteObject", - "s3:PutObjectAcl" - ], - "Resource": "arn:aws:s3:::your-bucket-name/*" - }, - { - "Sid": "bucket", - "Effect": "Allow", - "Action": "s3:ListBucket", - "Resource": "arn:aws:s3:::your-bucket-name" - }, - { - "Sid": "buckets", - "Effect": "Allow", - "Action": "s3:HeadBucket", - "Resource": "*" - } - ] -} -``` - -#### 2) Install node-pre-gyp - -Either install it globally: - - npm install node-pre-gyp -g - -Or put the local version on your PATH - - export PATH=`pwd`/node_modules/.bin/:$PATH - -#### 3) Configure AWS credentials - -It is recommended to configure the AWS JS SDK v2 used internally by `node-pre-gyp` by setting these environment variables: - -- AWS_ACCESS_KEY_ID -- AWS_SECRET_ACCESS_KEY - -But also you can also use the `Shared Config File` mentioned [in the AWS JS SDK v2 docs](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html) - -#### 4) Package and publish your build - -Install the `aws-sdk`: - - npm install aws-sdk - -Then publish: - - node-pre-gyp package publish - -Note: if you hit an error like `Hostname/IP doesn't match certificate's altnames` it may mean that you need to provide the `region` option in your config. - -## Appveyor Automation - -[Appveyor](http://www.appveyor.com/) can build binaries and publish the results per commit and supports: - - - Windows Visual Studio 2013 and related compilers - - Both 64 bit (x64) and 32 bit (x86) build configurations - - Multiple Node.js versions - -For an example of doing this see [node-sqlite3's appveyor.yml](https://github.com/mapbox/node-sqlite3/blob/master/appveyor.yml). - -Below is a guide to getting set up: - -#### 1) Create a free Appveyor account - -Go to https://ci.appveyor.com/signup/free and sign in with your GitHub account. - -#### 2) Create a new project - -Go to https://ci.appveyor.com/projects/new and select the GitHub repo for your module - -#### 3) Add appveyor.yml and push it - -Once you have committed an `appveyor.yml` ([appveyor.yml reference](http://www.appveyor.com/docs/appveyor-yml)) to your GitHub repo and pushed it AppVeyor should automatically start building your project. - -#### 4) Create secure variables - -Encrypt your S3 AWS keys by going to and hitting the `encrypt` button. - -Then paste the result into your `appveyor.yml` - -```yml -environment: - AWS_ACCESS_KEY_ID: - secure: Dn9HKdLNYvDgPdQOzRq/DqZ/MPhjknRHB1o+/lVU8MA= - AWS_SECRET_ACCESS_KEY: - secure: W1rwNoSnOku1r+28gnoufO8UA8iWADmL1LiiwH9IOkIVhDTNGdGPJqAlLjNqwLnL -``` - -NOTE: keys are per account but not per repo (this is difference than Travis where keys are per repo but not related to the account used to encrypt them). - -#### 5) Hook up publishing - -Just put `node-pre-gyp package publish` in your `appveyor.yml` after `npm install`. - -#### 6) Publish when you want - -You might wish to publish binaries only on a specific commit. To do this you could borrow from the [Travis CI idea of commit keywords](http://about.travis-ci.org/docs/user/how-to-skip-a-build/) and add special handling for commit messages with `[publish binary]`: - - SET CM=%APPVEYOR_REPO_COMMIT_MESSAGE% - if not "%CM%" == "%CM:[publish binary]=%" node-pre-gyp --msvs_version=2013 publish - -If your commit message contains special characters (e.g. `&`) this method might fail. An alternative is to use PowerShell, which gives you additional possibilities, like ignoring case by using `ToLower()`: - - ps: if($env:APPVEYOR_REPO_COMMIT_MESSAGE.ToLower().Contains('[publish binary]')) { node-pre-gyp --msvs_version=2013 publish } - -Remember this publishing is not the same as `npm publish`. We're just talking about the binary module here and not your entire npm package. - -## Travis Automation - -[Travis](https://travis-ci.org/) can push to S3 after a successful build and supports both: - - - Ubuntu Precise and OS X (64 bit) - - Multiple Node.js versions - -For an example of doing this see [node-add-example's .travis.yml](https://github.com/springmeyer/node-addon-example/blob/2ff60a8ded7f042864ad21db00c3a5a06cf47075/.travis.yml). - -Note: if you need 32 bit binaries, this can be done from a 64 bit Travis machine. See [the node-sqlite3 scripts for an example of doing this](https://github.com/mapbox/node-sqlite3/blob/bae122aa6a2b8a45f6b717fab24e207740e32b5d/scripts/build_against_node.sh#L54-L74). - -Below is a guide to getting set up: - -#### 1) Install the Travis gem - - gem install travis - -#### 2) Create secure variables - -Make sure you run this command from within the directory of your module. - -Use `travis-encrypt` like: - - travis encrypt AWS_ACCESS_KEY_ID=${node_pre_gyp_accessKeyId} - travis encrypt AWS_SECRET_ACCESS_KEY=${node_pre_gyp_secretAccessKey} - -Then put those values in your `.travis.yml` like: - -```yaml -env: - global: - - secure: F+sEL/v56CzHqmCSSES4pEyC9NeQlkoR0Gs/ZuZxX1ytrj8SKtp3MKqBj7zhIclSdXBz4Ev966Da5ctmcTd410p0b240MV6BVOkLUtkjZJyErMBOkeb8n8yVfSoeMx8RiIhBmIvEn+rlQq+bSFis61/JkE9rxsjkGRZi14hHr4M= - - secure: o2nkUQIiABD139XS6L8pxq3XO5gch27hvm/gOdV+dzNKc/s2KomVPWcOyXNxtJGhtecAkABzaW8KHDDi5QL1kNEFx6BxFVMLO8rjFPsMVaBG9Ks6JiDQkkmrGNcnVdxI/6EKTLHTH5WLsz8+J7caDBzvKbEfTux5EamEhxIWgrI= -``` - -More details on Travis encryption at http://about.travis-ci.org/docs/user/encryption-keys/. - -#### 3) Hook up publishing - -Just put `node-pre-gyp package publish` in your `.travis.yml` after `npm install`. - -##### OS X publishing - -If you want binaries for OS X in addition to linux you can enable [multi-os for Travis](http://docs.travis-ci.com/user/multi-os/#Setting-.travis.yml) - -Use a configuration like: - -```yml - -language: cpp - -os: -- linux -- osx - -env: - matrix: - - NODE_VERSION="4" - - NODE_VERSION="6" - -before_install: -- rm -rf ~/.nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm -- source ~/.nvm/nvm.sh -- nvm install $NODE_VERSION -- nvm use $NODE_VERSION -``` - -See [Travis OS X Gotchas](#travis-os-x-gotchas) for why we replace `language: node_js` and `node_js:` sections with `language: cpp` and a custom matrix. - -Also create platform specific sections for any deps that need install. For example if you need libpng: - -```yml -- if [ $(uname -s) == 'Linux' ]; then apt-get install libpng-dev; fi; -- if [ $(uname -s) == 'Darwin' ]; then brew install libpng; fi; -``` - -For detailed multi-OS examples see [node-mapnik](https://github.com/mapnik/node-mapnik/blob/master/.travis.yml) and [node-sqlite3](https://github.com/mapbox/node-sqlite3/blob/master/.travis.yml). - -##### Travis OS X Gotchas - -First, unlike the Travis Linux machines, the OS X machines do not put `node-pre-gyp` on PATH by default. To do so you will need to: - -```sh -export PATH=$(pwd)/node_modules/.bin:${PATH} -``` - -Second, the OS X machines do not support using a matrix for installing different Node.js versions. So you need to bootstrap the installation of Node.js in a cross platform way. - -By doing: - -```yml -env: - matrix: - - NODE_VERSION="4" - - NODE_VERSION="6" - -before_install: - - rm -rf ~/.nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm - - source ~/.nvm/nvm.sh - - nvm install $NODE_VERSION - - nvm use $NODE_VERSION -``` - -You can easily recreate the previous behavior of this matrix: - -```yml -node_js: - - "4" - - "6" -``` - -#### 4) Publish when you want - -You might wish to publish binaries only on a specific commit. To do this you could borrow from the [Travis CI idea of commit keywords](http://about.travis-ci.org/docs/user/how-to-skip-a-build/) and add special handling for commit messages with `[publish binary]`: - - COMMIT_MESSAGE=$(git log --format=%B --no-merges -n 1 | tr -d '\n') - if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then node-pre-gyp publish; fi; - -Then you can trigger new binaries to be built like: - - git commit -a -m "[publish binary]" - -Or, if you don't have any changes to make simply run: - - git commit --allow-empty -m "[publish binary]" - -WARNING: if you are working in a pull request and publishing binaries from there then you will want to avoid double publishing when Travis CI builds both the `push` and `pr`. You only want to run the publish on the `push` commit. See https://github.com/Project-OSRM/node-osrm/blob/8eb837abe2e2e30e595093d16e5354bc5c573575/scripts/is_pr_merge.sh which is called from https://github.com/Project-OSRM/node-osrm/blob/8eb837abe2e2e30e595093d16e5354bc5c573575/scripts/publish.sh for an example of how to do this. - -Remember this publishing is not the same as `npm publish`. We're just talking about the binary module here and not your entire npm package. To automate the publishing of your entire package to npm on Travis see http://about.travis-ci.org/docs/user/deployment/npm/ - -# Versioning - -The `binary` properties of `module_path`, `remote_path`, and `package_name` support variable substitution. The strings are evaluated by `node-pre-gyp` depending on your system and any custom build flags you passed. - - - `node_abi`: The node C++ `ABI` number. This value is available in Javascript as `process.versions.modules` as of [`>= v0.10.4 >= v0.11.7`](https://github.com/joyent/node/commit/ccabd4a6fa8a6eb79d29bc3bbe9fe2b6531c2d8e) and in C++ as the `NODE_MODULE_VERSION` define much earlier. For versions of Node before this was available we fallback to the V8 major and minor version. - - `platform` matches node's `process.platform` like `linux`, `darwin`, and `win32` unless the user passed the `--target_platform` option to override. - - `arch` matches node's `process.arch` like `x64` or `ia32` unless the user passes the `--target_arch` option to override. - - `libc` matches `require('detect-libc').family` like `glibc` or `musl` unless the user passes the `--target_libc` option to override. - - `configuration` - Either 'Release' or 'Debug' depending on if `--debug` is passed during the build. - - `module_name` - the `binary.module_name` attribute from `package.json`. - - `version` - the semver `version` value for your module from `package.json` (NOTE: ignores the `semver.build` property). - - `major`, `minor`, `patch`, and `prelease` match the individual semver values for your module's `version` - - `build` - the sevmer `build` value. For example it would be `this.that` if your package.json `version` was `v1.0.0+this.that` - - `prerelease` - the semver `prerelease` value. For example it would be `alpha.beta` if your package.json `version` was `v1.0.0-alpha.beta` - - -The options are visible in the code at - -# Download binary files from a mirror - -S3 is broken in China for the well known reason. - -Using the `npm` config argument: `--{module_name}_binary_host_mirror` can download binary files through a mirror, `-` in `module_name` will be replaced with `_`. - -e.g.: Install [v8-profiler](https://www.npmjs.com/package/v8-profiler) from `npm`. - -```bash -$ npm install v8-profiler --profiler_binary_host_mirror=https://npm.taobao.org/mirrors/node-inspector/ -``` - -e.g.: Install [canvas-prebuilt](https://www.npmjs.com/package/canvas-prebuilt) from `npm`. - -```bash -$ npm install canvas-prebuilt --canvas_prebuilt_binary_host_mirror=https://npm.taobao.org/mirrors/canvas-prebuilt/ -``` diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp deleted file mode 100644 index c38d34d1..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -require('../lib/main'); diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd deleted file mode 100644 index 46e14b54..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -node "%~dp0\node-pre-gyp" %* diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/contributing.md b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/contributing.md deleted file mode 100644 index 4038fa6a..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/contributing.md +++ /dev/null @@ -1,10 +0,0 @@ -# Contributing - - -### Releasing a new version: - -- Ensure tests are passing on travis and appveyor -- Run `node scripts/abi_crosswalk.js` and commit any changes -- Update the changelog -- Tag a new release like: `git tag -a v0.6.34 -m "tagging v0.6.34" && git push --tags` -- Run `npm publish` diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/build.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/build.js deleted file mode 100644 index e8a1459d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/build.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -module.exports = exports = build; - -exports.usage = 'Attempts to compile the module by dispatching to node-gyp or nw-gyp'; - -const napi = require('./util/napi.js'); -const compile = require('./util/compile.js'); -const handle_gyp_opts = require('./util/handle_gyp_opts.js'); -const configure = require('./configure.js'); - -function do_build(gyp, argv, callback) { - handle_gyp_opts(gyp, argv, (err, result) => { - let final_args = ['build'].concat(result.gyp).concat(result.pre); - if (result.unparsed.length > 0) { - final_args = final_args. - concat(['--']). - concat(result.unparsed); - } - if (!err && result.opts.napi_build_version) { - napi.swap_build_dir_in(result.opts.napi_build_version); - } - compile.run_gyp(final_args, result.opts, (err2) => { - if (result.opts.napi_build_version) { - napi.swap_build_dir_out(result.opts.napi_build_version); - } - return callback(err2); - }); - }); -} - -function build(gyp, argv, callback) { - - // Form up commands to pass to node-gyp: - // We map `node-pre-gyp build` to `node-gyp configure build` so that we do not - // trigger a clean and therefore do not pay the penalty of a full recompile - if (argv.length && (argv.indexOf('rebuild') > -1)) { - argv.shift(); // remove `rebuild` - // here we map `node-pre-gyp rebuild` to `node-gyp rebuild` which internally means - // "clean + configure + build" and triggers a full recompile - compile.run_gyp(['clean'], {}, (err3) => { - if (err3) return callback(err3); - configure(gyp, argv, (err4) => { - if (err4) return callback(err4); - return do_build(gyp, argv, callback); - }); - }); - } else { - return do_build(gyp, argv, callback); - } -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/clean.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/clean.js deleted file mode 100644 index e6933923..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/clean.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -module.exports = exports = clean; - -exports.usage = 'Removes the entire folder containing the compiled .node module'; - -const rm = require('rimraf'); -const exists = require('fs').exists || require('path').exists; -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); -const path = require('path'); - -function clean(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - const to_delete = opts.module_path; - if (!to_delete) { - return callback(new Error('module_path is empty, refusing to delete')); - } else if (path.normalize(to_delete) === path.normalize(process.cwd())) { - return callback(new Error('module_path is not set, refusing to delete')); - } else { - exists(to_delete, (found) => { - if (found) { - if (!gyp.opts.silent_clean) console.log('[' + package_json.name + '] Removing "%s"', to_delete); - return rm(to_delete, callback); - } - return callback(); - }); - } -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/configure.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/configure.js deleted file mode 100644 index 1337c0cb..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/configure.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -module.exports = exports = configure; - -exports.usage = 'Attempts to configure node-gyp or nw-gyp build'; - -const napi = require('./util/napi.js'); -const compile = require('./util/compile.js'); -const handle_gyp_opts = require('./util/handle_gyp_opts.js'); - -function configure(gyp, argv, callback) { - handle_gyp_opts(gyp, argv, (err, result) => { - let final_args = result.gyp.concat(result.pre); - // pull select node-gyp configure options out of the npm environ - const known_gyp_args = ['dist-url', 'python', 'nodedir', 'msvs_version']; - known_gyp_args.forEach((key) => { - const val = gyp.opts[key] || gyp.opts[key.replace('-', '_')]; - if (val) { - final_args.push('--' + key + '=' + val); - } - }); - // --ensure=false tell node-gyp to re-install node development headers - // but it is only respected by node-gyp install, so we have to call install - // as a separate step if the user passes it - if (gyp.opts.ensure === false) { - const install_args = final_args.concat(['install', '--ensure=false']); - compile.run_gyp(install_args, result.opts, (err2) => { - if (err2) return callback(err2); - if (result.unparsed.length > 0) { - final_args = final_args. - concat(['--']). - concat(result.unparsed); - } - compile.run_gyp(['configure'].concat(final_args), result.opts, (err3) => { - return callback(err3); - }); - }); - } else { - if (result.unparsed.length > 0) { - final_args = final_args. - concat(['--']). - concat(result.unparsed); - } - compile.run_gyp(['configure'].concat(final_args), result.opts, (err4) => { - if (!err4 && result.opts.napi_build_version) { - napi.swap_build_dir_out(result.opts.napi_build_version); - } - return callback(err4); - }); - } - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/info.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/info.js deleted file mode 100644 index ba22f327..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/info.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -module.exports = exports = info; - -exports.usage = 'Lists all published binaries (requires aws-sdk)'; - -const log = require('npmlog'); -const versioning = require('./util/versioning.js'); -const s3_setup = require('./util/s3_setup.js'); - -function info(gyp, argv, callback) { - const package_json = gyp.package_json; - const opts = versioning.evaluate(package_json, gyp.opts); - const config = {}; - s3_setup.detect(opts, config); - const s3 = s3_setup.get_s3(config); - const s3_opts = { - Bucket: config.bucket, - Prefix: config.prefix - }; - s3.listObjects(s3_opts, (err, meta) => { - if (err && err.code === 'NotFound') { - return callback(new Error('[' + package_json.name + '] Not found: https://' + s3_opts.Bucket + '.s3.amazonaws.com/' + config.prefix)); - } else if (err) { - return callback(err); - } else { - log.verbose(JSON.stringify(meta, null, 1)); - if (meta && meta.Contents) { - meta.Contents.forEach((obj) => { - console.log(obj.Key); - }); - } else { - console.error('[' + package_json.name + '] No objects found at https://' + s3_opts.Bucket + '.s3.amazonaws.com/' + config.prefix); - } - return callback(); - } - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/install.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/install.js deleted file mode 100644 index 617dd866..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/install.js +++ /dev/null @@ -1,235 +0,0 @@ -'use strict'; - -module.exports = exports = install; - -exports.usage = 'Attempts to install pre-built binary for module'; - -const fs = require('fs'); -const path = require('path'); -const log = require('npmlog'); -const existsAsync = fs.exists || path.exists; -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); -const makeDir = require('make-dir'); -// for fetching binaries -const fetch = require('node-fetch'); -const tar = require('tar'); - -let npgVersion = 'unknown'; -try { - // Read own package.json to get the current node-pre-pyp version. - const ownPackageJSON = fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'); - npgVersion = JSON.parse(ownPackageJSON).version; -} catch (e) { - // do nothing -} - -function place_binary(uri, targetDir, opts, callback) { - log.http('GET', uri); - - // Try getting version info from the currently running npm. - const envVersionInfo = process.env.npm_config_user_agent || - 'node ' + process.version; - - const sanitized = uri.replace('+', '%2B'); - const requestOpts = { - uri: sanitized, - headers: { - 'User-Agent': 'node-pre-gyp (v' + npgVersion + ', ' + envVersionInfo + ')' - }, - follow_max: 10 - }; - - if (opts.cafile) { - try { - requestOpts.ca = fs.readFileSync(opts.cafile); - } catch (e) { - return callback(e); - } - } else if (opts.ca) { - requestOpts.ca = opts.ca; - } - - const proxyUrl = opts.proxy || - process.env.http_proxy || - process.env.HTTP_PROXY || - process.env.npm_config_proxy; - let agent; - if (proxyUrl) { - const ProxyAgent = require('https-proxy-agent'); - agent = new ProxyAgent(proxyUrl); - log.http('download', 'proxy agent configured using: "%s"', proxyUrl); - } - - fetch(sanitized, { agent }) - .then((res) => { - if (!res.ok) { - throw new Error(`response status ${res.status} ${res.statusText} on ${sanitized}`); - } - const dataStream = res.body; - - return new Promise((resolve, reject) => { - let extractions = 0; - const countExtractions = (entry) => { - extractions += 1; - log.info('install', 'unpacking %s', entry.path); - }; - - dataStream.pipe(extract(targetDir, countExtractions)) - .on('error', (e) => { - reject(e); - }); - dataStream.on('end', () => { - resolve(`extracted file count: ${extractions}`); - }); - dataStream.on('error', (e) => { - reject(e); - }); - }); - }) - .then((text) => { - log.info(text); - callback(); - }) - .catch((e) => { - log.error(`install ${e.message}`); - callback(e); - }); -} - -function extract(to, onentry) { - return tar.extract({ - cwd: to, - strip: 1, - onentry - }); -} - -function extract_from_local(from, targetDir, callback) { - if (!fs.existsSync(from)) { - return callback(new Error('Cannot find file ' + from)); - } - log.info('Found local file to extract from ' + from); - - // extract helpers - let extractCount = 0; - function countExtractions(entry) { - extractCount += 1; - log.info('install', 'unpacking ' + entry.path); - } - function afterExtract(err) { - if (err) return callback(err); - if (extractCount === 0) { - return callback(new Error('There was a fatal problem while extracting the tarball')); - } - log.info('tarball', 'done parsing tarball'); - callback(); - } - - fs.createReadStream(from).pipe(extract(targetDir, countExtractions)) - .on('close', afterExtract) - .on('error', afterExtract); -} - -function do_build(gyp, argv, callback) { - const args = ['rebuild'].concat(argv); - gyp.todo.push({ name: 'build', args: args }); - process.nextTick(callback); -} - -function print_fallback_error(err, opts, package_json) { - const fallback_message = ' (falling back to source compile with node-gyp)'; - let full_message = ''; - if (err.statusCode !== undefined) { - // If we got a network response it but failed to download - // it means remote binaries are not available, so let's try to help - // the user/developer with the info to debug why - full_message = 'Pre-built binaries not found for ' + package_json.name + '@' + package_json.version; - full_message += ' and ' + opts.runtime + '@' + (opts.target || process.versions.node) + ' (' + opts.node_abi + ' ABI, ' + opts.libc + ')'; - full_message += fallback_message; - log.warn('Tried to download(' + err.statusCode + '): ' + opts.hosted_tarball); - log.warn(full_message); - log.http(err.message); - } else { - // If we do not have a statusCode that means an unexpected error - // happened and prevented an http response, so we output the exact error - full_message = 'Pre-built binaries not installable for ' + package_json.name + '@' + package_json.version; - full_message += ' and ' + opts.runtime + '@' + (opts.target || process.versions.node) + ' (' + opts.node_abi + ' ABI, ' + opts.libc + ')'; - full_message += fallback_message; - log.warn(full_message); - log.warn('Hit error ' + err.message); - } -} - -// -// install -// -function install(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const source_build = gyp.opts['build-from-source'] || gyp.opts.build_from_source; - const update_binary = gyp.opts['update-binary'] || gyp.opts.update_binary; - const should_do_source_build = source_build === package_json.name || (source_build === true || source_build === 'true'); - if (should_do_source_build) { - log.info('build', 'requesting source compile'); - return do_build(gyp, argv, callback); - } else { - const fallback_to_build = gyp.opts['fallback-to-build'] || gyp.opts.fallback_to_build; - let should_do_fallback_build = fallback_to_build === package_json.name || (fallback_to_build === true || fallback_to_build === 'true'); - // but allow override from npm - if (process.env.npm_config_argv) { - const cooked = JSON.parse(process.env.npm_config_argv).cooked; - const match = cooked.indexOf('--fallback-to-build'); - if (match > -1 && cooked.length > match && cooked[match + 1] === 'false') { - should_do_fallback_build = false; - log.info('install', 'Build fallback disabled via npm flag: --fallback-to-build=false'); - } - } - let opts; - try { - opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - } catch (err) { - return callback(err); - } - - opts.ca = gyp.opts.ca; - opts.cafile = gyp.opts.cafile; - - const from = opts.hosted_tarball; - const to = opts.module_path; - const binary_module = path.join(to, opts.module_name + '.node'); - existsAsync(binary_module, (found) => { - if (!update_binary) { - if (found) { - console.log('[' + package_json.name + '] Success: "' + binary_module + '" already installed'); - console.log('Pass --update-binary to reinstall or --build-from-source to recompile'); - return callback(); - } - log.info('check', 'checked for "' + binary_module + '" (not found)'); - } - - makeDir(to).then(() => { - const fileName = from.startsWith('file://') && from.slice('file://'.length); - if (fileName) { - extract_from_local(fileName, to, after_place); - } else { - place_binary(from, to, opts, after_place); - } - }).catch((err) => { - after_place(err); - }); - - function after_place(err) { - if (err && should_do_fallback_build) { - print_fallback_error(err, opts, package_json); - return do_build(gyp, argv, callback); - } else if (err) { - return callback(err); - } else { - console.log('[' + package_json.name + '] Success: "' + binary_module + '" is installed via remote'); - return callback(); - } - } - }); - } -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/main.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/main.js deleted file mode 100644 index bae32acb..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/main.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -/** - * Set the title. - */ - -process.title = 'node-pre-gyp'; - -const node_pre_gyp = require('../'); -const log = require('npmlog'); - -/** - * Process and execute the selected commands. - */ - -const prog = new node_pre_gyp.Run({ argv: process.argv }); -let completed = false; - -if (prog.todo.length === 0) { - if (~process.argv.indexOf('-v') || ~process.argv.indexOf('--version')) { - console.log('v%s', prog.version); - process.exit(0); - } else if (~process.argv.indexOf('-h') || ~process.argv.indexOf('--help')) { - console.log('%s', prog.usage()); - process.exit(0); - } - console.log('%s', prog.usage()); - process.exit(1); -} - -// if --no-color is passed -if (prog.opts && Object.hasOwnProperty.call(prog, 'color') && !prog.opts.color) { - log.disableColor(); -} - -log.info('it worked if it ends with', 'ok'); -log.verbose('cli', process.argv); -log.info('using', process.title + '@%s', prog.version); -log.info('using', 'node@%s | %s | %s', process.versions.node, process.platform, process.arch); - - -/** - * Change dir if -C/--directory was passed. - */ - -const dir = prog.opts.directory; -if (dir) { - const fs = require('fs'); - try { - const stat = fs.statSync(dir); - if (stat.isDirectory()) { - log.info('chdir', dir); - process.chdir(dir); - } else { - log.warn('chdir', dir + ' is not a directory'); - } - } catch (e) { - if (e.code === 'ENOENT') { - log.warn('chdir', dir + ' is not a directory'); - } else { - log.warn('chdir', 'error during chdir() "%s"', e.message); - } - } -} - -function run() { - const command = prog.todo.shift(); - if (!command) { - // done! - completed = true; - log.info('ok'); - return; - } - - // set binary.host when appropriate. host determines the s3 target bucket. - const target = prog.setBinaryHostProperty(command.name); - if (target && ['install', 'publish', 'unpublish', 'info'].indexOf(command.name) >= 0) { - log.info('using binary.host: ' + prog.package_json.binary.host); - } - - prog.commands[command.name](command.args, function(err) { - if (err) { - log.error(command.name + ' error'); - log.error('stack', err.stack); - errorMessage(); - log.error('not ok'); - console.log(err.message); - return process.exit(1); - } - const args_array = [].slice.call(arguments, 1); - if (args_array.length) { - console.log.apply(console, args_array); - } - // now run the next command in the queue - process.nextTick(run); - }); -} - -process.on('exit', (code) => { - if (!completed && !code) { - log.error('Completion callback never invoked!'); - errorMessage(); - process.exit(6); - } -}); - -process.on('uncaughtException', (err) => { - log.error('UNCAUGHT EXCEPTION'); - log.error('stack', err.stack); - errorMessage(); - process.exit(7); -}); - -function errorMessage() { - // copied from npm's lib/util/error-handler.js - const os = require('os'); - log.error('System', os.type() + ' ' + os.release()); - log.error('command', process.argv.map(JSON.stringify).join(' ')); - log.error('cwd', process.cwd()); - log.error('node -v', process.version); - log.error(process.title + ' -v', 'v' + prog.package.version); -} - -// start running the given commands! -run(); diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js deleted file mode 100644 index dc18e749..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +++ /dev/null @@ -1,309 +0,0 @@ -'use strict'; - -/** - * Module exports. - */ - -module.exports = exports; - -/** - * Module dependencies. - */ - -// load mocking control function for accessing s3 via https. the function is a noop always returning -// false if not mocking. -exports.mockS3Http = require('./util/s3_setup').get_mockS3Http(); -exports.mockS3Http('on'); -const mocking = exports.mockS3Http('get'); - - -const fs = require('fs'); -const path = require('path'); -const nopt = require('nopt'); -const log = require('npmlog'); -log.disableProgress(); -const napi = require('./util/napi.js'); - -const EE = require('events').EventEmitter; -const inherits = require('util').inherits; -const cli_commands = [ - 'clean', - 'install', - 'reinstall', - 'build', - 'rebuild', - 'package', - 'testpackage', - 'publish', - 'unpublish', - 'info', - 'testbinary', - 'reveal', - 'configure' -]; -const aliases = {}; - -// differentiate node-pre-gyp's logs from npm's -log.heading = 'node-pre-gyp'; - -if (mocking) { - log.warn(`mocking s3 to ${process.env.node_pre_gyp_mock_s3}`); -} - -// this is a getter to avoid circular reference warnings with node v14. -Object.defineProperty(exports, 'find', { - get: function() { - return require('./pre-binding').find; - }, - enumerable: true -}); - -// in the following, "my_module" is using node-pre-gyp to -// prebuild and install pre-built binaries. "main_module" -// is using "my_module". -// -// "bin/node-pre-gyp" invokes Run() without a path. the -// expectation is that the working directory is the package -// root "my_module". this is true because in all cases npm is -// executing a script in the context of "my_module". -// -// "pre-binding.find()" is executed by "my_module" but in the -// context of "main_module". this is because "main_module" is -// executing and requires "my_module" which is then executing -// "pre-binding.find()" via "node-pre-gyp.find()", so the working -// directory is that of "main_module". -// -// that's why "find()" must pass the path to package.json. -// -function Run({ package_json_path = './package.json', argv }) { - this.package_json_path = package_json_path; - this.commands = {}; - - const self = this; - cli_commands.forEach((command) => { - self.commands[command] = function(argvx, callback) { - log.verbose('command', command, argvx); - return require('./' + command)(self, argvx, callback); - }; - }); - - this.parseArgv(argv); - - // this is set to true after the binary.host property was set to - // either staging_host or production_host. - this.binaryHostSet = false; -} -inherits(Run, EE); -exports.Run = Run; -const proto = Run.prototype; - -/** - * Export the contents of the package.json. - */ - -proto.package = require('../package.json'); - -/** - * nopt configuration definitions - */ - -proto.configDefs = { - help: Boolean, // everywhere - arch: String, // 'configure' - debug: Boolean, // 'build' - directory: String, // bin - proxy: String, // 'install' - loglevel: String // everywhere -}; - -/** - * nopt shorthands - */ - -proto.shorthands = { - release: '--no-debug', - C: '--directory', - debug: '--debug', - j: '--jobs', - silent: '--loglevel=silent', - silly: '--loglevel=silly', - verbose: '--loglevel=verbose' -}; - -/** - * expose the command aliases for the bin file to use. - */ - -proto.aliases = aliases; - -/** - * Parses the given argv array and sets the 'opts', 'argv', - * 'command', and 'package_json' properties. - */ - -proto.parseArgv = function parseOpts(argv) { - this.opts = nopt(this.configDefs, this.shorthands, argv); - this.argv = this.opts.argv.remain.slice(); - const commands = this.todo = []; - - // create a copy of the argv array with aliases mapped - argv = this.argv.map((arg) => { - // is this an alias? - if (arg in this.aliases) { - arg = this.aliases[arg]; - } - return arg; - }); - - // process the mapped args into "command" objects ("name" and "args" props) - argv.slice().forEach((arg) => { - if (arg in this.commands) { - const args = argv.splice(0, argv.indexOf(arg)); - argv.shift(); - if (commands.length > 0) { - commands[commands.length - 1].args = args; - } - commands.push({ name: arg, args: [] }); - } - }); - if (commands.length > 0) { - commands[commands.length - 1].args = argv.splice(0); - } - - - // if a directory was specified package.json is assumed to be relative - // to it. - let package_json_path = this.package_json_path; - if (this.opts.directory) { - package_json_path = path.join(this.opts.directory, package_json_path); - } - - this.package_json = JSON.parse(fs.readFileSync(package_json_path)); - - // expand commands entries for multiple napi builds - this.todo = napi.expand_commands(this.package_json, this.opts, commands); - - // support for inheriting config env variables from npm - const npm_config_prefix = 'npm_config_'; - Object.keys(process.env).forEach((name) => { - if (name.indexOf(npm_config_prefix) !== 0) return; - const val = process.env[name]; - if (name === npm_config_prefix + 'loglevel') { - log.level = val; - } else { - // add the user-defined options to the config - name = name.substring(npm_config_prefix.length); - // avoid npm argv clobber already present args - // which avoids problem of 'npm test' calling - // script that runs unique npm install commands - if (name === 'argv') { - if (this.opts.argv && - this.opts.argv.remain && - this.opts.argv.remain.length) { - // do nothing - } else { - this.opts[name] = val; - } - } else { - this.opts[name] = val; - } - } - }); - - if (this.opts.loglevel) { - log.level = this.opts.loglevel; - } - log.resume(); -}; - -/** - * allow the binary.host property to be set at execution time. - * - * for this to take effect requires all the following to be true. - * - binary is a property in package.json - * - binary.host is falsey - * - binary.staging_host is not empty - * - binary.production_host is not empty - * - * if any of the previous checks fail then the function returns an empty string - * and makes no changes to package.json's binary property. - * - * - * if command is "publish" then the default is set to "binary.staging_host" - * if command is not "publish" the the default is set to "binary.production_host" - * - * if the command-line option '--s3_host' is set to "staging" or "production" then - * "binary.host" is set to the specified "staging_host" or "production_host". if - * '--s3_host' is any other value an exception is thrown. - * - * if '--s3_host' is not present then "binary.host" is set to the default as above. - * - * this strategy was chosen so that any command other than "publish" or "unpublish" uses "production" - * as the default without requiring any command-line options but that "publish" and "unpublish" require - * '--s3_host production_host' to be specified in order to *really* publish (or unpublish). publishing - * to staging can be done freely without worrying about disturbing any production releases. - */ -proto.setBinaryHostProperty = function(command) { - if (this.binaryHostSet) { - return this.package_json.binary.host; - } - const p = this.package_json; - // don't set anything if host is present. it must be left blank to trigger this. - if (!p || !p.binary || p.binary.host) { - return ''; - } - // and both staging and production must be present. errors will be reported later. - if (!p.binary.staging_host || !p.binary.production_host) { - return ''; - } - let target = 'production_host'; - if (command === 'publish' || command === 'unpublish') { - target = 'staging_host'; - } - // the environment variable has priority over the default or the command line. if - // either the env var or the command line option are invalid throw an error. - const npg_s3_host = process.env.node_pre_gyp_s3_host; - if (npg_s3_host === 'staging' || npg_s3_host === 'production') { - target = `${npg_s3_host}_host`; - } else if (this.opts['s3_host'] === 'staging' || this.opts['s3_host'] === 'production') { - target = `${this.opts['s3_host']}_host`; - } else if (this.opts['s3_host'] || npg_s3_host) { - throw new Error(`invalid s3_host ${this.opts['s3_host'] || npg_s3_host}`); - } - - p.binary.host = p.binary[target]; - this.binaryHostSet = true; - - return p.binary.host; -}; - -/** - * Returns the usage instructions for node-pre-gyp. - */ - -proto.usage = function usage() { - const str = [ - '', - ' Usage: node-pre-gyp [options]', - '', - ' where is one of:', - cli_commands.map((c) => { - return ' - ' + c + ' - ' + require('./' + c).usage; - }).join('\n'), - '', - 'node-pre-gyp@' + this.version + ' ' + path.resolve(__dirname, '..'), - 'node@' + process.versions.node - ].join('\n'); - return str; -}; - -/** - * Version number getter. - */ - -Object.defineProperty(proto, 'version', { - get: function() { - return this.package.version; - }, - enumerable: true -}); diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/package.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/package.js deleted file mode 100644 index 07349846..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/package.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; - -module.exports = exports = _package; - -exports.usage = 'Packs binary (and enclosing directory) into locally staged tarball'; - -const fs = require('fs'); -const path = require('path'); -const log = require('npmlog'); -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); -const existsAsync = fs.exists || path.exists; -const makeDir = require('make-dir'); -const tar = require('tar'); - -function readdirSync(dir) { - let list = []; - const files = fs.readdirSync(dir); - - files.forEach((file) => { - const stats = fs.lstatSync(path.join(dir, file)); - if (stats.isDirectory()) { - list = list.concat(readdirSync(path.join(dir, file))); - } else { - list.push(path.join(dir, file)); - } - }); - return list; -} - -function _package(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - const from = opts.module_path; - const binary_module = path.join(from, opts.module_name + '.node'); - existsAsync(binary_module, (found) => { - if (!found) { - return callback(new Error('Cannot package because ' + binary_module + ' missing: run `node-pre-gyp rebuild` first')); - } - const tarball = opts.staged_tarball; - const filter_func = function(entry) { - const basename = path.basename(entry); - if (basename.length && basename[0] !== '.') { - console.log('packing ' + entry); - return true; - } else { - console.log('skipping ' + entry); - } - return false; - }; - makeDir(path.dirname(tarball)).then(() => { - let files = readdirSync(from); - const base = path.basename(from); - files = files.map((file) => { - return path.join(base, path.relative(from, file)); - }); - tar.create({ - portable: false, - gzip: true, - filter: filter_func, - file: tarball, - cwd: path.dirname(from) - }, files, (err2) => { - if (err2) console.error('[' + package_json.name + '] ' + err2.message); - else log.info('package', 'Binary staged at "' + tarball + '"'); - return callback(err2); - }); - }).catch((err) => { - return callback(err); - }); - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js deleted file mode 100644 index e110fe38..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const npg = require('..'); -const versioning = require('../lib/util/versioning.js'); -const napi = require('../lib/util/napi.js'); -const existsSync = require('fs').existsSync || require('path').existsSync; -const path = require('path'); - -module.exports = exports; - -exports.usage = 'Finds the require path for the node-pre-gyp installed module'; - -exports.validate = function(package_json, opts) { - versioning.validate_config(package_json, opts); -}; - -exports.find = function(package_json_path, opts) { - if (!existsSync(package_json_path)) { - throw new Error(package_json_path + 'does not exist'); - } - const prog = new npg.Run({ package_json_path, argv: process.argv }); - prog.setBinaryHostProperty(); - const package_json = prog.package_json; - - versioning.validate_config(package_json, opts); - let napi_build_version; - if (napi.get_napi_build_versions(package_json, opts)) { - napi_build_version = napi.get_best_napi_build_version(package_json, opts); - } - opts = opts || {}; - if (!opts.module_root) opts.module_root = path.dirname(package_json_path); - const meta = versioning.evaluate(package_json, opts, napi_build_version); - return meta.module; -}; diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/publish.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/publish.js deleted file mode 100644 index 8367b150..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/publish.js +++ /dev/null @@ -1,81 +0,0 @@ -'use strict'; - -module.exports = exports = publish; - -exports.usage = 'Publishes pre-built binary (requires aws-sdk)'; - -const fs = require('fs'); -const path = require('path'); -const log = require('npmlog'); -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); -const s3_setup = require('./util/s3_setup.js'); -const existsAsync = fs.exists || path.exists; -const url = require('url'); - -function publish(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - const tarball = opts.staged_tarball; - existsAsync(tarball, (found) => { - if (!found) { - return callback(new Error('Cannot publish because ' + tarball + ' missing: run `node-pre-gyp package` first')); - } - - log.info('publish', 'Detecting s3 credentials'); - const config = {}; - s3_setup.detect(opts, config); - const s3 = s3_setup.get_s3(config); - - const key_name = url.resolve(config.prefix, opts.package_name); - const s3_opts = { - Bucket: config.bucket, - Key: key_name - }; - log.info('publish', 'Authenticating with s3'); - log.info('publish', config); - - log.info('publish', 'Checking for existing binary at ' + opts.hosted_path); - s3.headObject(s3_opts, (err, meta) => { - if (meta) log.info('publish', JSON.stringify(meta)); - if (err && err.code === 'NotFound') { - // we are safe to publish because - // the object does not already exist - log.info('publish', 'Preparing to put object'); - const s3_put_opts = { - ACL: 'public-read', - Body: fs.createReadStream(tarball), - Key: key_name, - Bucket: config.bucket - }; - log.info('publish', 'Putting object', s3_put_opts.ACL, s3_put_opts.Bucket, s3_put_opts.Key); - try { - s3.putObject(s3_put_opts, (err2, resp) => { - log.info('publish', 'returned from putting object'); - if (err2) { - log.info('publish', 's3 putObject error: "' + err2 + '"'); - return callback(err2); - } - if (resp) log.info('publish', 's3 putObject response: "' + JSON.stringify(resp) + '"'); - log.info('publish', 'successfully put object'); - console.log('[' + package_json.name + '] published to ' + opts.hosted_path); - return callback(); - }); - } catch (err3) { - log.info('publish', 's3 putObject error: "' + err3 + '"'); - return callback(err3); - } - } else if (err) { - log.info('publish', 's3 headObject error: "' + err + '"'); - return callback(err); - } else { - log.error('publish', 'Cannot publish over existing version'); - log.error('publish', "Update the 'version' field in package.json and try again"); - log.error('publish', 'If the previous version was published in error see:'); - log.error('publish', '\t node-pre-gyp unpublish'); - return callback(new Error('Failed publishing to ' + opts.hosted_path)); - } - }); - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js deleted file mode 100644 index 31510fbd..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -module.exports = exports = rebuild; - -exports.usage = 'Runs "clean" and "build" at once'; - -const napi = require('./util/napi.js'); - -function rebuild(gyp, argv, callback) { - const package_json = gyp.package_json; - let commands = [ - { name: 'clean', args: [] }, - { name: 'build', args: ['rebuild'] } - ]; - commands = napi.expand_commands(package_json, gyp.opts, commands); - for (let i = commands.length; i !== 0; i--) { - gyp.todo.unshift(commands[i - 1]); - } - process.nextTick(callback); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js deleted file mode 100644 index a29b5c9b..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -module.exports = exports = rebuild; - -exports.usage = 'Runs "clean" and "install" at once'; - -const napi = require('./util/napi.js'); - -function rebuild(gyp, argv, callback) { - const package_json = gyp.package_json; - let installArgs = []; - const napi_build_version = napi.get_best_napi_build_version(package_json, gyp.opts); - if (napi_build_version != null) installArgs = [napi.get_command_arg(napi_build_version)]; - gyp.todo.unshift( - { name: 'clean', args: [] }, - { name: 'install', args: installArgs } - ); - process.nextTick(callback); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/reveal.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/reveal.js deleted file mode 100644 index 7255e5f0..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -module.exports = exports = reveal; - -exports.usage = 'Reveals data on the versioned binary'; - -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); - -function unix_paths(key, val) { - return val && val.replace ? val.replace(/\\/g, '/') : val; -} - -function reveal(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - let hit = false; - // if a second arg is passed look to see - // if it is a known option - // console.log(JSON.stringify(gyp.opts,null,1)) - const remain = gyp.opts.argv.remain[gyp.opts.argv.remain.length - 1]; - if (remain && Object.hasOwnProperty.call(opts, remain)) { - console.log(opts[remain].replace(/\\/g, '/')); - hit = true; - } - // otherwise return all options as json - if (!hit) { - console.log(JSON.stringify(opts, unix_paths, 2)); - } - return callback(); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js deleted file mode 100644 index 429cb130..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; - -module.exports = exports = testbinary; - -exports.usage = 'Tests that the binary.node can be required'; - -const path = require('path'); -const log = require('npmlog'); -const cp = require('child_process'); -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); - -function testbinary(gyp, argv, callback) { - const args = []; - const options = {}; - let shell_cmd = process.execPath; - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - // skip validation for runtimes we don't explicitly support (like electron) - if (opts.runtime && - opts.runtime !== 'node-webkit' && - opts.runtime !== 'node') { - return callback(); - } - const nw = (opts.runtime && opts.runtime === 'node-webkit'); - // ensure on windows that / are used for require path - const binary_module = opts.module.replace(/\\/g, '/'); - if ((process.arch !== opts.target_arch) || - (process.platform !== opts.target_platform)) { - let msg = 'skipping validation since host platform/arch ('; - msg += process.platform + '/' + process.arch + ')'; - msg += ' does not match target ('; - msg += opts.target_platform + '/' + opts.target_arch + ')'; - log.info('validate', msg); - return callback(); - } - if (nw) { - options.timeout = 5000; - if (process.platform === 'darwin') { - shell_cmd = 'node-webkit'; - } else if (process.platform === 'win32') { - shell_cmd = 'nw.exe'; - } else { - shell_cmd = 'nw'; - } - const modulePath = path.resolve(binary_module); - const appDir = path.join(__dirname, 'util', 'nw-pre-gyp'); - args.push(appDir); - args.push(modulePath); - log.info('validate', "Running test command: '" + shell_cmd + ' ' + args.join(' ') + "'"); - cp.execFile(shell_cmd, args, options, (err, stdout, stderr) => { - // check for normal timeout for node-webkit - if (err) { - if (err.killed === true && err.signal && err.signal.indexOf('SIG') > -1) { - return callback(); - } - const stderrLog = stderr.toString(); - log.info('stderr', stderrLog); - if (/^\s*Xlib:\s*extension\s*"RANDR"\s*missing\s*on\s*display\s*":\d+\.\d+"\.\s*$/.test(stderrLog)) { - log.info('RANDR', 'stderr contains only RANDR error, ignored'); - return callback(); - } - return callback(err); - } - return callback(); - }); - return; - } - args.push('--eval'); - args.push("require('" + binary_module.replace(/'/g, '\'') + "')"); - log.info('validate', "Running test command: '" + shell_cmd + ' ' + args.join(' ') + "'"); - cp.execFile(shell_cmd, args, options, (err, stdout, stderr) => { - if (err) { - return callback(err, { stdout: stdout, stderr: stderr }); - } - return callback(); - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js deleted file mode 100644 index fab1911b..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -module.exports = exports = testpackage; - -exports.usage = 'Tests that the staged package is valid'; - -const fs = require('fs'); -const path = require('path'); -const log = require('npmlog'); -const existsAsync = fs.exists || path.exists; -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); -const testbinary = require('./testbinary.js'); -const tar = require('tar'); -const makeDir = require('make-dir'); - -function testpackage(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - const tarball = opts.staged_tarball; - existsAsync(tarball, (found) => { - if (!found) { - return callback(new Error('Cannot test package because ' + tarball + ' missing: run `node-pre-gyp package` first')); - } - const to = opts.module_path; - function filter_func(entry) { - log.info('install', 'unpacking [' + entry.path + ']'); - } - - makeDir(to).then(() => { - tar.extract({ - file: tarball, - cwd: to, - strip: 1, - onentry: filter_func - }).then(after_extract, callback); - }).catch((err) => { - return callback(err); - }); - - function after_extract() { - testbinary(gyp, argv, (err) => { - if (err) { - return callback(err); - } else { - console.log('[' + package_json.name + '] Package appears valid'); - return callback(); - } - }); - } - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js deleted file mode 100644 index 12c9f561..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -module.exports = exports = unpublish; - -exports.usage = 'Unpublishes pre-built binary (requires aws-sdk)'; - -const log = require('npmlog'); -const versioning = require('./util/versioning.js'); -const napi = require('./util/napi.js'); -const s3_setup = require('./util/s3_setup.js'); -const url = require('url'); - -function unpublish(gyp, argv, callback) { - const package_json = gyp.package_json; - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(package_json, gyp.opts, napi_build_version); - const config = {}; - s3_setup.detect(opts, config); - const s3 = s3_setup.get_s3(config); - const key_name = url.resolve(config.prefix, opts.package_name); - const s3_opts = { - Bucket: config.bucket, - Key: key_name - }; - s3.headObject(s3_opts, (err, meta) => { - if (err && err.code === 'NotFound') { - console.log('[' + package_json.name + '] Not found: https://' + s3_opts.Bucket + '.s3.amazonaws.com/' + s3_opts.Key); - return callback(); - } else if (err) { - return callback(err); - } else { - log.info('unpublish', JSON.stringify(meta)); - s3.deleteObject(s3_opts, (err2, resp) => { - if (err2) return callback(err2); - log.info(JSON.stringify(resp)); - console.log('[' + package_json.name + '] Success: removed https://' + s3_opts.Bucket + '.s3.amazonaws.com/' + s3_opts.Key); - return callback(); - }); - } - }); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json deleted file mode 100644 index 7f529727..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +++ /dev/null @@ -1,2602 +0,0 @@ -{ - "0.1.14": { - "node_abi": null, - "v8": "1.3" - }, - "0.1.15": { - "node_abi": null, - "v8": "1.3" - }, - "0.1.16": { - "node_abi": null, - "v8": "1.3" - }, - "0.1.17": { - "node_abi": null, - "v8": "1.3" - }, - "0.1.18": { - "node_abi": null, - "v8": "1.3" - }, - "0.1.19": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.20": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.21": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.22": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.23": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.24": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.25": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.26": { - "node_abi": null, - "v8": "2.0" - }, - "0.1.27": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.28": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.29": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.30": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.31": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.32": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.33": { - "node_abi": null, - "v8": "2.1" - }, - "0.1.90": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.91": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.92": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.93": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.94": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.95": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.96": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.97": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.98": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.99": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.100": { - "node_abi": null, - "v8": "2.2" - }, - "0.1.101": { - "node_abi": null, - "v8": "2.3" - }, - "0.1.102": { - "node_abi": null, - "v8": "2.3" - }, - "0.1.103": { - "node_abi": null, - "v8": "2.3" - }, - "0.1.104": { - "node_abi": null, - "v8": "2.3" - }, - "0.2.0": { - "node_abi": 1, - "v8": "2.3" - }, - "0.2.1": { - "node_abi": 1, - "v8": "2.3" - }, - "0.2.2": { - "node_abi": 1, - "v8": "2.3" - }, - "0.2.3": { - "node_abi": 1, - "v8": "2.3" - }, - "0.2.4": { - "node_abi": 1, - "v8": "2.3" - }, - "0.2.5": { - "node_abi": 1, - "v8": "2.3" - }, - "0.2.6": { - "node_abi": 1, - "v8": "2.3" - }, - "0.3.0": { - "node_abi": 1, - "v8": "2.5" - }, - "0.3.1": { - "node_abi": 1, - "v8": "2.5" - }, - "0.3.2": { - "node_abi": 1, - "v8": "3.0" - }, - "0.3.3": { - "node_abi": 1, - "v8": "3.0" - }, - "0.3.4": { - "node_abi": 1, - "v8": "3.0" - }, - "0.3.5": { - "node_abi": 1, - "v8": "3.0" - }, - "0.3.6": { - "node_abi": 1, - "v8": "3.0" - }, - "0.3.7": { - "node_abi": 1, - "v8": "3.0" - }, - "0.3.8": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.0": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.1": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.2": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.3": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.4": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.5": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.6": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.7": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.8": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.9": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.10": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.11": { - "node_abi": 1, - "v8": "3.1" - }, - "0.4.12": { - "node_abi": 1, - "v8": "3.1" - }, - "0.5.0": { - "node_abi": 1, - "v8": "3.1" - }, - "0.5.1": { - "node_abi": 1, - "v8": "3.4" - }, - "0.5.2": { - "node_abi": 1, - "v8": "3.4" - }, - "0.5.3": { - "node_abi": 1, - "v8": "3.4" - }, - "0.5.4": { - "node_abi": 1, - "v8": "3.5" - }, - "0.5.5": { - "node_abi": 1, - "v8": "3.5" - }, - "0.5.6": { - "node_abi": 1, - "v8": "3.6" - }, - "0.5.7": { - "node_abi": 1, - "v8": "3.6" - }, - "0.5.8": { - "node_abi": 1, - "v8": "3.6" - }, - "0.5.9": { - "node_abi": 1, - "v8": "3.6" - }, - "0.5.10": { - "node_abi": 1, - "v8": "3.7" - }, - "0.6.0": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.1": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.2": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.3": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.4": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.5": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.6": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.7": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.8": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.9": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.10": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.11": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.12": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.13": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.14": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.15": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.16": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.17": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.18": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.19": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.20": { - "node_abi": 1, - "v8": "3.6" - }, - "0.6.21": { - "node_abi": 1, - "v8": "3.6" - }, - "0.7.0": { - "node_abi": 1, - "v8": "3.8" - }, - "0.7.1": { - "node_abi": 1, - "v8": "3.8" - }, - "0.7.2": { - "node_abi": 1, - "v8": "3.8" - }, - "0.7.3": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.4": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.5": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.6": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.7": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.8": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.9": { - "node_abi": 1, - "v8": "3.11" - }, - "0.7.10": { - "node_abi": 1, - "v8": "3.9" - }, - "0.7.11": { - "node_abi": 1, - "v8": "3.11" - }, - "0.7.12": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.0": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.1": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.2": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.3": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.4": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.5": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.6": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.7": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.8": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.9": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.10": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.11": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.12": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.13": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.14": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.15": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.16": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.17": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.18": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.19": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.20": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.21": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.22": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.23": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.24": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.25": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.26": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.27": { - "node_abi": 1, - "v8": "3.11" - }, - "0.8.28": { - "node_abi": 1, - "v8": "3.11" - }, - "0.9.0": { - "node_abi": 1, - "v8": "3.11" - }, - "0.9.1": { - "node_abi": 10, - "v8": "3.11" - }, - "0.9.2": { - "node_abi": 10, - "v8": "3.11" - }, - "0.9.3": { - "node_abi": 10, - "v8": "3.13" - }, - "0.9.4": { - "node_abi": 10, - "v8": "3.13" - }, - "0.9.5": { - "node_abi": 10, - "v8": "3.13" - }, - "0.9.6": { - "node_abi": 10, - "v8": "3.15" - }, - "0.9.7": { - "node_abi": 10, - "v8": "3.15" - }, - "0.9.8": { - "node_abi": 10, - "v8": "3.15" - }, - "0.9.9": { - "node_abi": 11, - "v8": "3.15" - }, - "0.9.10": { - "node_abi": 11, - "v8": "3.15" - }, - "0.9.11": { - "node_abi": 11, - "v8": "3.14" - }, - "0.9.12": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.0": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.1": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.2": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.3": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.4": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.5": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.6": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.7": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.8": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.9": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.10": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.11": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.12": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.13": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.14": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.15": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.16": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.17": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.18": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.19": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.20": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.21": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.22": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.23": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.24": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.25": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.26": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.27": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.28": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.29": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.30": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.31": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.32": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.33": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.34": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.35": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.36": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.37": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.38": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.39": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.40": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.41": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.42": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.43": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.44": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.45": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.46": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.47": { - "node_abi": 11, - "v8": "3.14" - }, - "0.10.48": { - "node_abi": 11, - "v8": "3.14" - }, - "0.11.0": { - "node_abi": 12, - "v8": "3.17" - }, - "0.11.1": { - "node_abi": 12, - "v8": "3.18" - }, - "0.11.2": { - "node_abi": 12, - "v8": "3.19" - }, - "0.11.3": { - "node_abi": 12, - "v8": "3.19" - }, - "0.11.4": { - "node_abi": 12, - "v8": "3.20" - }, - "0.11.5": { - "node_abi": 12, - "v8": "3.20" - }, - "0.11.6": { - "node_abi": 12, - "v8": "3.20" - }, - "0.11.7": { - "node_abi": 12, - "v8": "3.20" - }, - "0.11.8": { - "node_abi": 13, - "v8": "3.21" - }, - "0.11.9": { - "node_abi": 13, - "v8": "3.22" - }, - "0.11.10": { - "node_abi": 13, - "v8": "3.22" - }, - "0.11.11": { - "node_abi": 14, - "v8": "3.22" - }, - "0.11.12": { - "node_abi": 14, - "v8": "3.22" - }, - "0.11.13": { - "node_abi": 14, - "v8": "3.25" - }, - "0.11.14": { - "node_abi": 14, - "v8": "3.26" - }, - "0.11.15": { - "node_abi": 14, - "v8": "3.28" - }, - "0.11.16": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.0": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.1": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.2": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.3": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.4": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.5": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.6": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.7": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.8": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.9": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.10": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.11": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.12": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.13": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.14": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.15": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.16": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.17": { - "node_abi": 14, - "v8": "3.28" - }, - "0.12.18": { - "node_abi": 14, - "v8": "3.28" - }, - "1.0.0": { - "node_abi": 42, - "v8": "3.31" - }, - "1.0.1": { - "node_abi": 42, - "v8": "3.31" - }, - "1.0.2": { - "node_abi": 42, - "v8": "3.31" - }, - "1.0.3": { - "node_abi": 42, - "v8": "4.1" - }, - "1.0.4": { - "node_abi": 42, - "v8": "4.1" - }, - "1.1.0": { - "node_abi": 43, - "v8": "4.1" - }, - "1.2.0": { - "node_abi": 43, - "v8": "4.1" - }, - "1.3.0": { - "node_abi": 43, - "v8": "4.1" - }, - "1.4.1": { - "node_abi": 43, - "v8": "4.1" - }, - "1.4.2": { - "node_abi": 43, - "v8": "4.1" - }, - "1.4.3": { - "node_abi": 43, - "v8": "4.1" - }, - "1.5.0": { - "node_abi": 43, - "v8": "4.1" - }, - "1.5.1": { - "node_abi": 43, - "v8": "4.1" - }, - "1.6.0": { - "node_abi": 43, - "v8": "4.1" - }, - "1.6.1": { - "node_abi": 43, - "v8": "4.1" - }, - "1.6.2": { - "node_abi": 43, - "v8": "4.1" - }, - "1.6.3": { - "node_abi": 43, - "v8": "4.1" - }, - "1.6.4": { - "node_abi": 43, - "v8": "4.1" - }, - "1.7.1": { - "node_abi": 43, - "v8": "4.1" - }, - "1.8.1": { - "node_abi": 43, - "v8": "4.1" - }, - "1.8.2": { - "node_abi": 43, - "v8": "4.1" - }, - "1.8.3": { - "node_abi": 43, - "v8": "4.1" - }, - "1.8.4": { - "node_abi": 43, - "v8": "4.1" - }, - "2.0.0": { - "node_abi": 44, - "v8": "4.2" - }, - "2.0.1": { - "node_abi": 44, - "v8": "4.2" - }, - "2.0.2": { - "node_abi": 44, - "v8": "4.2" - }, - "2.1.0": { - "node_abi": 44, - "v8": "4.2" - }, - "2.2.0": { - "node_abi": 44, - "v8": "4.2" - }, - "2.2.1": { - "node_abi": 44, - "v8": "4.2" - }, - "2.3.0": { - "node_abi": 44, - "v8": "4.2" - }, - "2.3.1": { - "node_abi": 44, - "v8": "4.2" - }, - "2.3.2": { - "node_abi": 44, - "v8": "4.2" - }, - "2.3.3": { - "node_abi": 44, - "v8": "4.2" - }, - "2.3.4": { - "node_abi": 44, - "v8": "4.2" - }, - "2.4.0": { - "node_abi": 44, - "v8": "4.2" - }, - "2.5.0": { - "node_abi": 44, - "v8": "4.2" - }, - "3.0.0": { - "node_abi": 45, - "v8": "4.4" - }, - "3.1.0": { - "node_abi": 45, - "v8": "4.4" - }, - "3.2.0": { - "node_abi": 45, - "v8": "4.4" - }, - "3.3.0": { - "node_abi": 45, - "v8": "4.4" - }, - "3.3.1": { - "node_abi": 45, - "v8": "4.4" - }, - "4.0.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.1.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.1.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.1.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.3": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.4": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.5": { - "node_abi": 46, - "v8": "4.5" - }, - "4.2.6": { - "node_abi": 46, - "v8": "4.5" - }, - "4.3.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.3.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.3.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.3": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.4": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.5": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.6": { - "node_abi": 46, - "v8": "4.5" - }, - "4.4.7": { - "node_abi": 46, - "v8": "4.5" - }, - "4.5.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.6.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.6.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.6.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.7.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.7.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.7.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.7.3": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.1": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.2": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.3": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.4": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.5": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.6": { - "node_abi": 46, - "v8": "4.5" - }, - "4.8.7": { - "node_abi": 46, - "v8": "4.5" - }, - "4.9.0": { - "node_abi": 46, - "v8": "4.5" - }, - "4.9.1": { - "node_abi": 46, - "v8": "4.5" - }, - "5.0.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.1.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.1.1": { - "node_abi": 47, - "v8": "4.6" - }, - "5.2.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.3.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.4.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.4.1": { - "node_abi": 47, - "v8": "4.6" - }, - "5.5.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.6.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.7.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.7.1": { - "node_abi": 47, - "v8": "4.6" - }, - "5.8.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.9.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.9.1": { - "node_abi": 47, - "v8": "4.6" - }, - "5.10.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.10.1": { - "node_abi": 47, - "v8": "4.6" - }, - "5.11.0": { - "node_abi": 47, - "v8": "4.6" - }, - "5.11.1": { - "node_abi": 47, - "v8": "4.6" - }, - "5.12.0": { - "node_abi": 47, - "v8": "4.6" - }, - "6.0.0": { - "node_abi": 48, - "v8": "5.0" - }, - "6.1.0": { - "node_abi": 48, - "v8": "5.0" - }, - "6.2.0": { - "node_abi": 48, - "v8": "5.0" - }, - "6.2.1": { - "node_abi": 48, - "v8": "5.0" - }, - "6.2.2": { - "node_abi": 48, - "v8": "5.0" - }, - "6.3.0": { - "node_abi": 48, - "v8": "5.0" - }, - "6.3.1": { - "node_abi": 48, - "v8": "5.0" - }, - "6.4.0": { - "node_abi": 48, - "v8": "5.0" - }, - "6.5.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.6.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.7.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.8.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.8.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.9.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.9.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.9.2": { - "node_abi": 48, - "v8": "5.1" - }, - "6.9.3": { - "node_abi": 48, - "v8": "5.1" - }, - "6.9.4": { - "node_abi": 48, - "v8": "5.1" - }, - "6.9.5": { - "node_abi": 48, - "v8": "5.1" - }, - "6.10.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.10.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.10.2": { - "node_abi": 48, - "v8": "5.1" - }, - "6.10.3": { - "node_abi": 48, - "v8": "5.1" - }, - "6.11.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.11.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.11.2": { - "node_abi": 48, - "v8": "5.1" - }, - "6.11.3": { - "node_abi": 48, - "v8": "5.1" - }, - "6.11.4": { - "node_abi": 48, - "v8": "5.1" - }, - "6.11.5": { - "node_abi": 48, - "v8": "5.1" - }, - "6.12.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.12.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.12.2": { - "node_abi": 48, - "v8": "5.1" - }, - "6.12.3": { - "node_abi": 48, - "v8": "5.1" - }, - "6.13.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.13.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.14.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.14.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.14.2": { - "node_abi": 48, - "v8": "5.1" - }, - "6.14.3": { - "node_abi": 48, - "v8": "5.1" - }, - "6.14.4": { - "node_abi": 48, - "v8": "5.1" - }, - "6.15.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.15.1": { - "node_abi": 48, - "v8": "5.1" - }, - "6.16.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.17.0": { - "node_abi": 48, - "v8": "5.1" - }, - "6.17.1": { - "node_abi": 48, - "v8": "5.1" - }, - "7.0.0": { - "node_abi": 51, - "v8": "5.4" - }, - "7.1.0": { - "node_abi": 51, - "v8": "5.4" - }, - "7.2.0": { - "node_abi": 51, - "v8": "5.4" - }, - "7.2.1": { - "node_abi": 51, - "v8": "5.4" - }, - "7.3.0": { - "node_abi": 51, - "v8": "5.4" - }, - "7.4.0": { - "node_abi": 51, - "v8": "5.4" - }, - "7.5.0": { - "node_abi": 51, - "v8": "5.4" - }, - "7.6.0": { - "node_abi": 51, - "v8": "5.5" - }, - "7.7.0": { - "node_abi": 51, - "v8": "5.5" - }, - "7.7.1": { - "node_abi": 51, - "v8": "5.5" - }, - "7.7.2": { - "node_abi": 51, - "v8": "5.5" - }, - "7.7.3": { - "node_abi": 51, - "v8": "5.5" - }, - "7.7.4": { - "node_abi": 51, - "v8": "5.5" - }, - "7.8.0": { - "node_abi": 51, - "v8": "5.5" - }, - "7.9.0": { - "node_abi": 51, - "v8": "5.5" - }, - "7.10.0": { - "node_abi": 51, - "v8": "5.5" - }, - "7.10.1": { - "node_abi": 51, - "v8": "5.5" - }, - "8.0.0": { - "node_abi": 57, - "v8": "5.8" - }, - "8.1.0": { - "node_abi": 57, - "v8": "5.8" - }, - "8.1.1": { - "node_abi": 57, - "v8": "5.8" - }, - "8.1.2": { - "node_abi": 57, - "v8": "5.8" - }, - "8.1.3": { - "node_abi": 57, - "v8": "5.8" - }, - "8.1.4": { - "node_abi": 57, - "v8": "5.8" - }, - "8.2.0": { - "node_abi": 57, - "v8": "5.8" - }, - "8.2.1": { - "node_abi": 57, - "v8": "5.8" - }, - "8.3.0": { - "node_abi": 57, - "v8": "6.0" - }, - "8.4.0": { - "node_abi": 57, - "v8": "6.0" - }, - "8.5.0": { - "node_abi": 57, - "v8": "6.0" - }, - "8.6.0": { - "node_abi": 57, - "v8": "6.0" - }, - "8.7.0": { - "node_abi": 57, - "v8": "6.1" - }, - "8.8.0": { - "node_abi": 57, - "v8": "6.1" - }, - "8.8.1": { - "node_abi": 57, - "v8": "6.1" - }, - "8.9.0": { - "node_abi": 57, - "v8": "6.1" - }, - "8.9.1": { - "node_abi": 57, - "v8": "6.1" - }, - "8.9.2": { - "node_abi": 57, - "v8": "6.1" - }, - "8.9.3": { - "node_abi": 57, - "v8": "6.1" - }, - "8.9.4": { - "node_abi": 57, - "v8": "6.1" - }, - "8.10.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.11.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.11.1": { - "node_abi": 57, - "v8": "6.2" - }, - "8.11.2": { - "node_abi": 57, - "v8": "6.2" - }, - "8.11.3": { - "node_abi": 57, - "v8": "6.2" - }, - "8.11.4": { - "node_abi": 57, - "v8": "6.2" - }, - "8.12.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.13.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.14.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.14.1": { - "node_abi": 57, - "v8": "6.2" - }, - "8.15.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.15.1": { - "node_abi": 57, - "v8": "6.2" - }, - "8.16.0": { - "node_abi": 57, - "v8": "6.2" - }, - "8.16.1": { - "node_abi": 57, - "v8": "6.2" - }, - "8.16.2": { - "node_abi": 57, - "v8": "6.2" - }, - "8.17.0": { - "node_abi": 57, - "v8": "6.2" - }, - "9.0.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.1.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.2.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.2.1": { - "node_abi": 59, - "v8": "6.2" - }, - "9.3.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.4.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.5.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.6.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.6.1": { - "node_abi": 59, - "v8": "6.2" - }, - "9.7.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.7.1": { - "node_abi": 59, - "v8": "6.2" - }, - "9.8.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.9.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.10.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.10.1": { - "node_abi": 59, - "v8": "6.2" - }, - "9.11.0": { - "node_abi": 59, - "v8": "6.2" - }, - "9.11.1": { - "node_abi": 59, - "v8": "6.2" - }, - "9.11.2": { - "node_abi": 59, - "v8": "6.2" - }, - "10.0.0": { - "node_abi": 64, - "v8": "6.6" - }, - "10.1.0": { - "node_abi": 64, - "v8": "6.6" - }, - "10.2.0": { - "node_abi": 64, - "v8": "6.6" - }, - "10.2.1": { - "node_abi": 64, - "v8": "6.6" - }, - "10.3.0": { - "node_abi": 64, - "v8": "6.6" - }, - "10.4.0": { - "node_abi": 64, - "v8": "6.7" - }, - "10.4.1": { - "node_abi": 64, - "v8": "6.7" - }, - "10.5.0": { - "node_abi": 64, - "v8": "6.7" - }, - "10.6.0": { - "node_abi": 64, - "v8": "6.7" - }, - "10.7.0": { - "node_abi": 64, - "v8": "6.7" - }, - "10.8.0": { - "node_abi": 64, - "v8": "6.7" - }, - "10.9.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.10.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.11.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.12.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.13.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.14.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.14.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.14.2": { - "node_abi": 64, - "v8": "6.8" - }, - "10.15.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.15.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.15.2": { - "node_abi": 64, - "v8": "6.8" - }, - "10.15.3": { - "node_abi": 64, - "v8": "6.8" - }, - "10.16.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.16.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.16.2": { - "node_abi": 64, - "v8": "6.8" - }, - "10.16.3": { - "node_abi": 64, - "v8": "6.8" - }, - "10.17.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.18.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.18.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.19.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.20.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.20.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.21.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.22.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.22.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.23.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.23.1": { - "node_abi": 64, - "v8": "6.8" - }, - "10.23.2": { - "node_abi": 64, - "v8": "6.8" - }, - "10.23.3": { - "node_abi": 64, - "v8": "6.8" - }, - "10.24.0": { - "node_abi": 64, - "v8": "6.8" - }, - "10.24.1": { - "node_abi": 64, - "v8": "6.8" - }, - "11.0.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.1.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.2.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.3.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.4.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.5.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.6.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.7.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.8.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.9.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.10.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.10.1": { - "node_abi": 67, - "v8": "7.0" - }, - "11.11.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.12.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.13.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.14.0": { - "node_abi": 67, - "v8": "7.0" - }, - "11.15.0": { - "node_abi": 67, - "v8": "7.0" - }, - "12.0.0": { - "node_abi": 72, - "v8": "7.4" - }, - "12.1.0": { - "node_abi": 72, - "v8": "7.4" - }, - "12.2.0": { - "node_abi": 72, - "v8": "7.4" - }, - "12.3.0": { - "node_abi": 72, - "v8": "7.4" - }, - "12.3.1": { - "node_abi": 72, - "v8": "7.4" - }, - "12.4.0": { - "node_abi": 72, - "v8": "7.4" - }, - "12.5.0": { - "node_abi": 72, - "v8": "7.5" - }, - "12.6.0": { - "node_abi": 72, - "v8": "7.5" - }, - "12.7.0": { - "node_abi": 72, - "v8": "7.5" - }, - "12.8.0": { - "node_abi": 72, - "v8": "7.5" - }, - "12.8.1": { - "node_abi": 72, - "v8": "7.5" - }, - "12.9.0": { - "node_abi": 72, - "v8": "7.6" - }, - "12.9.1": { - "node_abi": 72, - "v8": "7.6" - }, - "12.10.0": { - "node_abi": 72, - "v8": "7.6" - }, - "12.11.0": { - "node_abi": 72, - "v8": "7.7" - }, - "12.11.1": { - "node_abi": 72, - "v8": "7.7" - }, - "12.12.0": { - "node_abi": 72, - "v8": "7.7" - }, - "12.13.0": { - "node_abi": 72, - "v8": "7.7" - }, - "12.13.1": { - "node_abi": 72, - "v8": "7.7" - }, - "12.14.0": { - "node_abi": 72, - "v8": "7.7" - }, - "12.14.1": { - "node_abi": 72, - "v8": "7.7" - }, - "12.15.0": { - "node_abi": 72, - "v8": "7.7" - }, - "12.16.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.16.1": { - "node_abi": 72, - "v8": "7.8" - }, - "12.16.2": { - "node_abi": 72, - "v8": "7.8" - }, - "12.16.3": { - "node_abi": 72, - "v8": "7.8" - }, - "12.17.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.18.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.18.1": { - "node_abi": 72, - "v8": "7.8" - }, - "12.18.2": { - "node_abi": 72, - "v8": "7.8" - }, - "12.18.3": { - "node_abi": 72, - "v8": "7.8" - }, - "12.18.4": { - "node_abi": 72, - "v8": "7.8" - }, - "12.19.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.19.1": { - "node_abi": 72, - "v8": "7.8" - }, - "12.20.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.20.1": { - "node_abi": 72, - "v8": "7.8" - }, - "12.20.2": { - "node_abi": 72, - "v8": "7.8" - }, - "12.21.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.0": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.1": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.2": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.3": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.4": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.5": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.6": { - "node_abi": 72, - "v8": "7.8" - }, - "12.22.7": { - "node_abi": 72, - "v8": "7.8" - }, - "13.0.0": { - "node_abi": 79, - "v8": "7.8" - }, - "13.0.1": { - "node_abi": 79, - "v8": "7.8" - }, - "13.1.0": { - "node_abi": 79, - "v8": "7.8" - }, - "13.2.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.3.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.4.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.5.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.6.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.7.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.8.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.9.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.10.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.10.1": { - "node_abi": 79, - "v8": "7.9" - }, - "13.11.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.12.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.13.0": { - "node_abi": 79, - "v8": "7.9" - }, - "13.14.0": { - "node_abi": 79, - "v8": "7.9" - }, - "14.0.0": { - "node_abi": 83, - "v8": "8.1" - }, - "14.1.0": { - "node_abi": 83, - "v8": "8.1" - }, - "14.2.0": { - "node_abi": 83, - "v8": "8.1" - }, - "14.3.0": { - "node_abi": 83, - "v8": "8.1" - }, - "14.4.0": { - "node_abi": 83, - "v8": "8.1" - }, - "14.5.0": { - "node_abi": 83, - "v8": "8.3" - }, - "14.6.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.7.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.8.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.9.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.10.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.10.1": { - "node_abi": 83, - "v8": "8.4" - }, - "14.11.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.12.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.13.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.13.1": { - "node_abi": 83, - "v8": "8.4" - }, - "14.14.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.15.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.15.1": { - "node_abi": 83, - "v8": "8.4" - }, - "14.15.2": { - "node_abi": 83, - "v8": "8.4" - }, - "14.15.3": { - "node_abi": 83, - "v8": "8.4" - }, - "14.15.4": { - "node_abi": 83, - "v8": "8.4" - }, - "14.15.5": { - "node_abi": 83, - "v8": "8.4" - }, - "14.16.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.16.1": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.1": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.2": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.3": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.4": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.5": { - "node_abi": 83, - "v8": "8.4" - }, - "14.17.6": { - "node_abi": 83, - "v8": "8.4" - }, - "14.18.0": { - "node_abi": 83, - "v8": "8.4" - }, - "14.18.1": { - "node_abi": 83, - "v8": "8.4" - }, - "15.0.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.0.1": { - "node_abi": 88, - "v8": "8.6" - }, - "15.1.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.2.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.2.1": { - "node_abi": 88, - "v8": "8.6" - }, - "15.3.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.4.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.5.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.5.1": { - "node_abi": 88, - "v8": "8.6" - }, - "15.6.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.7.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.8.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.9.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.10.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.11.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.12.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.13.0": { - "node_abi": 88, - "v8": "8.6" - }, - "15.14.0": { - "node_abi": 88, - "v8": "8.6" - }, - "16.0.0": { - "node_abi": 93, - "v8": "9.0" - }, - "16.1.0": { - "node_abi": 93, - "v8": "9.0" - }, - "16.2.0": { - "node_abi": 93, - "v8": "9.0" - }, - "16.3.0": { - "node_abi": 93, - "v8": "9.0" - }, - "16.4.0": { - "node_abi": 93, - "v8": "9.1" - }, - "16.4.1": { - "node_abi": 93, - "v8": "9.1" - }, - "16.4.2": { - "node_abi": 93, - "v8": "9.1" - }, - "16.5.0": { - "node_abi": 93, - "v8": "9.1" - }, - "16.6.0": { - "node_abi": 93, - "v8": "9.2" - }, - "16.6.1": { - "node_abi": 93, - "v8": "9.2" - }, - "16.6.2": { - "node_abi": 93, - "v8": "9.2" - }, - "16.7.0": { - "node_abi": 93, - "v8": "9.2" - }, - "16.8.0": { - "node_abi": 93, - "v8": "9.2" - }, - "16.9.0": { - "node_abi": 93, - "v8": "9.3" - }, - "16.9.1": { - "node_abi": 93, - "v8": "9.3" - }, - "16.10.0": { - "node_abi": 93, - "v8": "9.3" - }, - "16.11.0": { - "node_abi": 93, - "v8": "9.4" - }, - "16.11.1": { - "node_abi": 93, - "v8": "9.4" - }, - "16.12.0": { - "node_abi": 93, - "v8": "9.4" - }, - "16.13.0": { - "node_abi": 93, - "v8": "9.4" - }, - "17.0.0": { - "node_abi": 102, - "v8": "9.5" - }, - "17.0.1": { - "node_abi": 102, - "v8": "9.5" - }, - "17.1.0": { - "node_abi": 102, - "v8": "9.5" - } -} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js deleted file mode 100644 index 956e5aa6..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -module.exports = exports; - -const fs = require('fs'); -const path = require('path'); -const win = process.platform === 'win32'; -const existsSync = fs.existsSync || path.existsSync; -const cp = require('child_process'); - -// try to build up the complete path to node-gyp -/* priority: - - node-gyp on ENV:npm_config_node_gyp (https://github.com/npm/npm/pull/4887) - - node-gyp on NODE_PATH - - node-gyp inside npm on NODE_PATH (ignore on iojs) - - node-gyp inside npm beside node exe -*/ -function which_node_gyp() { - let node_gyp_bin; - if (process.env.npm_config_node_gyp) { - try { - node_gyp_bin = process.env.npm_config_node_gyp; - if (existsSync(node_gyp_bin)) { - return node_gyp_bin; - } - } catch (err) { - // do nothing - } - } - try { - const node_gyp_main = require.resolve('node-gyp'); // eslint-disable-line node/no-missing-require - node_gyp_bin = path.join(path.dirname( - path.dirname(node_gyp_main)), - 'bin/node-gyp.js'); - if (existsSync(node_gyp_bin)) { - return node_gyp_bin; - } - } catch (err) { - // do nothing - } - if (process.execPath.indexOf('iojs') === -1) { - try { - const npm_main = require.resolve('npm'); // eslint-disable-line node/no-missing-require - node_gyp_bin = path.join(path.dirname( - path.dirname(npm_main)), - 'node_modules/node-gyp/bin/node-gyp.js'); - if (existsSync(node_gyp_bin)) { - return node_gyp_bin; - } - } catch (err) { - // do nothing - } - } - const npm_base = path.join(path.dirname( - path.dirname(process.execPath)), - 'lib/node_modules/npm/'); - node_gyp_bin = path.join(npm_base, 'node_modules/node-gyp/bin/node-gyp.js'); - if (existsSync(node_gyp_bin)) { - return node_gyp_bin; - } -} - -module.exports.run_gyp = function(args, opts, callback) { - let shell_cmd = ''; - const cmd_args = []; - if (opts.runtime && opts.runtime === 'node-webkit') { - shell_cmd = 'nw-gyp'; - if (win) shell_cmd += '.cmd'; - } else { - const node_gyp_path = which_node_gyp(); - if (node_gyp_path) { - shell_cmd = process.execPath; - cmd_args.push(node_gyp_path); - } else { - shell_cmd = 'node-gyp'; - if (win) shell_cmd += '.cmd'; - } - } - const final_args = cmd_args.concat(args); - const cmd = cp.spawn(shell_cmd, final_args, { cwd: undefined, env: process.env, stdio: [0, 1, 2] }); - cmd.on('error', (err) => { - if (err) { - return callback(new Error("Failed to execute '" + shell_cmd + ' ' + final_args.join(' ') + "' (" + err + ')')); - } - callback(null, opts); - }); - cmd.on('close', (code) => { - if (code && code !== 0) { - return callback(new Error("Failed to execute '" + shell_cmd + ' ' + final_args.join(' ') + "' (" + code + ')')); - } - callback(null, opts); - }); -}; diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js deleted file mode 100644 index d702f785..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +++ /dev/null @@ -1,102 +0,0 @@ -'use strict'; - -module.exports = exports = handle_gyp_opts; - -const versioning = require('./versioning.js'); -const napi = require('./napi.js'); - -/* - -Here we gather node-pre-gyp generated options (from versioning) and pass them along to node-gyp. - -We massage the args and options slightly to account for differences in what commands mean between -node-pre-gyp and node-gyp (e.g. see the difference between "build" and "rebuild" below) - -Keep in mind: the values inside `argv` and `gyp.opts` below are different depending on whether -node-pre-gyp is called directory, or if it is called in a `run-script` phase of npm. - -We also try to preserve any command line options that might have been passed to npm or node-pre-gyp. -But this is fairly difficult without passing way to much through. For example `gyp.opts` contains all -the process.env and npm pushes a lot of variables into process.env which node-pre-gyp inherits. So we have -to be very selective about what we pass through. - -For example: - -`npm install --build-from-source` will give: - -argv == [ 'rebuild' ] -gyp.opts.argv == { remain: [ 'install' ], - cooked: [ 'install', '--fallback-to-build' ], - original: [ 'install', '--fallback-to-build' ] } - -`./bin/node-pre-gyp build` will give: - -argv == [] -gyp.opts.argv == { remain: [ 'build' ], - cooked: [ 'build' ], - original: [ '-C', 'test/app1', 'build' ] } - -*/ - -// select set of node-pre-gyp versioning info -// to share with node-gyp -const share_with_node_gyp = [ - 'module', - 'module_name', - 'module_path', - 'napi_version', - 'node_abi_napi', - 'napi_build_version', - 'node_napi_label' -]; - -function handle_gyp_opts(gyp, argv, callback) { - - // Collect node-pre-gyp specific variables to pass to node-gyp - const node_pre_gyp_options = []; - // generate custom node-pre-gyp versioning info - const napi_build_version = napi.get_napi_build_version_from_command_args(argv); - const opts = versioning.evaluate(gyp.package_json, gyp.opts, napi_build_version); - share_with_node_gyp.forEach((key) => { - const val = opts[key]; - if (val) { - node_pre_gyp_options.push('--' + key + '=' + val); - } else if (key === 'napi_build_version') { - node_pre_gyp_options.push('--' + key + '=0'); - } else { - if (key !== 'napi_version' && key !== 'node_abi_napi') - return callback(new Error('Option ' + key + ' required but not found by node-pre-gyp')); - } - }); - - // Collect options that follow the special -- which disables nopt parsing - const unparsed_options = []; - let double_hyphen_found = false; - gyp.opts.argv.original.forEach((opt) => { - if (double_hyphen_found) { - unparsed_options.push(opt); - } - if (opt === '--') { - double_hyphen_found = true; - } - }); - - // We try respect and pass through remaining command - // line options (like --foo=bar) to node-gyp - const cooked = gyp.opts.argv.cooked; - const node_gyp_options = []; - cooked.forEach((value) => { - if (value.length > 2 && value.slice(0, 2) === '--') { - const key = value.slice(2); - const val = cooked[cooked.indexOf(value) + 1]; - if (val && val.indexOf('--') === -1) { // handle '--foo=bar' or ['--foo','bar'] - node_gyp_options.push('--' + key + '=' + val); - } else { // pass through --foo - node_gyp_options.push(value); - } - } - }); - - const result = { 'opts': opts, 'gyp': node_gyp_options, 'pre': node_pre_gyp_options, 'unparsed': unparsed_options }; - return callback(null, result); -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js deleted file mode 100644 index 5d14ad6d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +++ /dev/null @@ -1,205 +0,0 @@ -'use strict'; - -const fs = require('fs'); - -module.exports = exports; - -const versionArray = process.version - .substr(1) - .replace(/-.*$/, '') - .split('.') - .map((item) => { - return +item; - }); - -const napi_multiple_commands = [ - 'build', - 'clean', - 'configure', - 'package', - 'publish', - 'reveal', - 'testbinary', - 'testpackage', - 'unpublish' -]; - -const napi_build_version_tag = 'napi_build_version='; - -module.exports.get_napi_version = function() { - // returns the non-zero numeric napi version or undefined if napi is not supported. - // correctly supporting target requires an updated cross-walk - let version = process.versions.napi; // can be undefined - if (!version) { // this code should never need to be updated - if (versionArray[0] === 9 && versionArray[1] >= 3) version = 2; // 9.3.0+ - else if (versionArray[0] === 8) version = 1; // 8.0.0+ - } - return version; -}; - -module.exports.get_napi_version_as_string = function(target) { - // returns the napi version as a string or an empty string if napi is not supported. - const version = module.exports.get_napi_version(target); - return version ? '' + version : ''; -}; - -module.exports.validate_package_json = function(package_json, opts) { // throws Error - - const binary = package_json.binary; - const module_path_ok = pathOK(binary.module_path); - const remote_path_ok = pathOK(binary.remote_path); - const package_name_ok = pathOK(binary.package_name); - const napi_build_versions = module.exports.get_napi_build_versions(package_json, opts, true); - const napi_build_versions_raw = module.exports.get_napi_build_versions_raw(package_json); - - if (napi_build_versions) { - napi_build_versions.forEach((napi_build_version)=> { - if (!(parseInt(napi_build_version, 10) === napi_build_version && napi_build_version > 0)) { - throw new Error('All values specified in napi_versions must be positive integers.'); - } - }); - } - - if (napi_build_versions && (!module_path_ok || (!remote_path_ok && !package_name_ok))) { - throw new Error('When napi_versions is specified; module_path and either remote_path or ' + - "package_name must contain the substitution string '{napi_build_version}`."); - } - - if ((module_path_ok || remote_path_ok || package_name_ok) && !napi_build_versions_raw) { - throw new Error("When the substitution string '{napi_build_version}` is specified in " + - 'module_path, remote_path, or package_name; napi_versions must also be specified.'); - } - - if (napi_build_versions && !module.exports.get_best_napi_build_version(package_json, opts) && - module.exports.build_napi_only(package_json)) { - throw new Error( - 'The Node-API version of this Node instance is ' + module.exports.get_napi_version(opts ? opts.target : undefined) + '. ' + - 'This module supports Node-API version(s) ' + module.exports.get_napi_build_versions_raw(package_json) + '. ' + - 'This Node instance cannot run this module.'); - } - - if (napi_build_versions_raw && !napi_build_versions && module.exports.build_napi_only(package_json)) { - throw new Error( - 'The Node-API version of this Node instance is ' + module.exports.get_napi_version(opts ? opts.target : undefined) + '. ' + - 'This module supports Node-API version(s) ' + module.exports.get_napi_build_versions_raw(package_json) + '. ' + - 'This Node instance cannot run this module.'); - } - -}; - -function pathOK(path) { - return path && (path.indexOf('{napi_build_version}') !== -1 || path.indexOf('{node_napi_label}') !== -1); -} - -module.exports.expand_commands = function(package_json, opts, commands) { - const expanded_commands = []; - const napi_build_versions = module.exports.get_napi_build_versions(package_json, opts); - commands.forEach((command)=> { - if (napi_build_versions && command.name === 'install') { - const napi_build_version = module.exports.get_best_napi_build_version(package_json, opts); - const args = napi_build_version ? [napi_build_version_tag + napi_build_version] : []; - expanded_commands.push({ name: command.name, args: args }); - } else if (napi_build_versions && napi_multiple_commands.indexOf(command.name) !== -1) { - napi_build_versions.forEach((napi_build_version)=> { - const args = command.args.slice(); - args.push(napi_build_version_tag + napi_build_version); - expanded_commands.push({ name: command.name, args: args }); - }); - } else { - expanded_commands.push(command); - } - }); - return expanded_commands; -}; - -module.exports.get_napi_build_versions = function(package_json, opts, warnings) { // opts may be undefined - const log = require('npmlog'); - let napi_build_versions = []; - const supported_napi_version = module.exports.get_napi_version(opts ? opts.target : undefined); - // remove duplicates, verify each napi version can actaully be built - if (package_json.binary && package_json.binary.napi_versions) { - package_json.binary.napi_versions.forEach((napi_version) => { - const duplicated = napi_build_versions.indexOf(napi_version) !== -1; - if (!duplicated && supported_napi_version && napi_version <= supported_napi_version) { - napi_build_versions.push(napi_version); - } else if (warnings && !duplicated && supported_napi_version) { - log.info('This Node instance does not support builds for Node-API version', napi_version); - } - }); - } - if (opts && opts['build-latest-napi-version-only']) { - let latest_version = 0; - napi_build_versions.forEach((napi_version) => { - if (napi_version > latest_version) latest_version = napi_version; - }); - napi_build_versions = latest_version ? [latest_version] : []; - } - return napi_build_versions.length ? napi_build_versions : undefined; -}; - -module.exports.get_napi_build_versions_raw = function(package_json) { - const napi_build_versions = []; - // remove duplicates - if (package_json.binary && package_json.binary.napi_versions) { - package_json.binary.napi_versions.forEach((napi_version) => { - if (napi_build_versions.indexOf(napi_version) === -1) { - napi_build_versions.push(napi_version); - } - }); - } - return napi_build_versions.length ? napi_build_versions : undefined; -}; - -module.exports.get_command_arg = function(napi_build_version) { - return napi_build_version_tag + napi_build_version; -}; - -module.exports.get_napi_build_version_from_command_args = function(command_args) { - for (let i = 0; i < command_args.length; i++) { - const arg = command_args[i]; - if (arg.indexOf(napi_build_version_tag) === 0) { - return parseInt(arg.substr(napi_build_version_tag.length), 10); - } - } - return undefined; -}; - -module.exports.swap_build_dir_out = function(napi_build_version) { - if (napi_build_version) { - const rm = require('rimraf'); - rm.sync(module.exports.get_build_dir(napi_build_version)); - fs.renameSync('build', module.exports.get_build_dir(napi_build_version)); - } -}; - -module.exports.swap_build_dir_in = function(napi_build_version) { - if (napi_build_version) { - const rm = require('rimraf'); - rm.sync('build'); - fs.renameSync(module.exports.get_build_dir(napi_build_version), 'build'); - } -}; - -module.exports.get_build_dir = function(napi_build_version) { - return 'build-tmp-napi-v' + napi_build_version; -}; - -module.exports.get_best_napi_build_version = function(package_json, opts) { - let best_napi_build_version = 0; - const napi_build_versions = module.exports.get_napi_build_versions(package_json, opts); - if (napi_build_versions) { - const our_napi_version = module.exports.get_napi_version(opts ? opts.target : undefined); - napi_build_versions.forEach((napi_build_version)=> { - if (napi_build_version > best_napi_build_version && - napi_build_version <= our_napi_version) { - best_napi_build_version = napi_build_version; - } - }); - } - return best_napi_build_version === 0 ? undefined : best_napi_build_version; -}; - -module.exports.build_napi_only = function(package_json) { - return package_json.binary && package_json.binary.package_name && - package_json.binary.package_name.indexOf('{node_napi_label}') === -1; -}; diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html deleted file mode 100644 index 244466c4..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - -Node-webkit-based module test - - - -

Node-webkit-based module test

- - diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json deleted file mode 100644 index 71d03f82..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ -"main": "index.html", -"name": "nw-pre-gyp-module-test", -"description": "Node-webkit-based module test.", -"version": "0.0.1", -"window": { - "show": false -} -} diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js deleted file mode 100644 index 6b1b1a6c..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +++ /dev/null @@ -1,163 +0,0 @@ -'use strict'; - -module.exports = exports; - -const url = require('url'); -const fs = require('fs'); -const path = require('path'); - -module.exports.detect = function(opts, config) { - const to = opts.hosted_path; - const uri = url.parse(to); - config.prefix = (!uri.pathname || uri.pathname === '/') ? '' : uri.pathname.replace('/', ''); - if (opts.bucket && opts.region) { - config.bucket = opts.bucket; - config.region = opts.region; - config.endpoint = opts.host; - config.s3ForcePathStyle = opts.s3ForcePathStyle; - } else { - const parts = uri.hostname.split('.s3'); - const bucket = parts[0]; - if (!bucket) { - return; - } - if (!config.bucket) { - config.bucket = bucket; - } - if (!config.region) { - const region = parts[1].slice(1).split('.')[0]; - if (region === 'amazonaws') { - config.region = 'us-east-1'; - } else { - config.region = region; - } - } - } -}; - -module.exports.get_s3 = function(config) { - - if (process.env.node_pre_gyp_mock_s3) { - // here we're mocking. node_pre_gyp_mock_s3 is the scratch directory - // for the mock code. - const AWSMock = require('mock-aws-s3'); - const os = require('os'); - - AWSMock.config.basePath = `${os.tmpdir()}/mock`; - - const s3 = AWSMock.S3(); - - // wrapped callback maker. fs calls return code of ENOENT but AWS.S3 returns - // NotFound. - const wcb = (fn) => (err, ...args) => { - if (err && err.code === 'ENOENT') { - err.code = 'NotFound'; - } - return fn(err, ...args); - }; - - return { - listObjects(params, callback) { - return s3.listObjects(params, wcb(callback)); - }, - headObject(params, callback) { - return s3.headObject(params, wcb(callback)); - }, - deleteObject(params, callback) { - return s3.deleteObject(params, wcb(callback)); - }, - putObject(params, callback) { - return s3.putObject(params, wcb(callback)); - } - }; - } - - // if not mocking then setup real s3. - const AWS = require('aws-sdk'); - - AWS.config.update(config); - const s3 = new AWS.S3(); - - // need to change if additional options need to be specified. - return { - listObjects(params, callback) { - return s3.listObjects(params, callback); - }, - headObject(params, callback) { - return s3.headObject(params, callback); - }, - deleteObject(params, callback) { - return s3.deleteObject(params, callback); - }, - putObject(params, callback) { - return s3.putObject(params, callback); - } - }; - - - -}; - -// -// function to get the mocking control function. if not mocking it returns a no-op. -// -// if mocking it sets up the mock http interceptors that use the mocked s3 file system -// to fulfill reponses. -module.exports.get_mockS3Http = function() { - let mock_s3 = false; - if (!process.env.node_pre_gyp_mock_s3) { - return () => mock_s3; - } - - const nock = require('nock'); - // the bucket used for testing, as addressed by https. - const host = 'https://mapbox-node-pre-gyp-public-testing-bucket.s3.us-east-1.amazonaws.com'; - const mockDir = process.env.node_pre_gyp_mock_s3 + '/mapbox-node-pre-gyp-public-testing-bucket'; - - // function to setup interceptors. they are "turned off" by setting mock_s3 to false. - const mock_http = () => { - // eslint-disable-next-line no-unused-vars - function get(uri, requestBody) { - const filepath = path.join(mockDir, uri.replace('%2B', '+')); - - try { - fs.accessSync(filepath, fs.constants.R_OK); - } catch (e) { - return [404, 'not found\n']; - } - - // the mock s3 functions just write to disk, so just read from it. - return [200, fs.createReadStream(filepath)]; - } - - // eslint-disable-next-line no-unused-vars - return nock(host) - .persist() - .get(() => mock_s3) // mock any uri for s3 when true - .reply(get); - }; - - // setup interceptors. they check the mock_s3 flag to determine whether to intercept. - mock_http(nock, host, mockDir); - // function to turn matching all requests to s3 on/off. - const mockS3Http = (action) => { - const previous = mock_s3; - if (action === 'off') { - mock_s3 = false; - } else if (action === 'on') { - mock_s3 = true; - } else if (action !== 'get') { - throw new Error(`illegal action for setMockHttp ${action}`); - } - return previous; - }; - - // call mockS3Http with the argument - // - 'on' - turn it on - // - 'off' - turn it off (used by fetch.test.js so it doesn't interfere with redirects) - // - 'get' - return true or false for 'on' or 'off' - return mockS3Http; -}; - - - diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js deleted file mode 100644 index 825cfa1d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +++ /dev/null @@ -1,335 +0,0 @@ -'use strict'; - -module.exports = exports; - -const path = require('path'); -const semver = require('semver'); -const url = require('url'); -const detect_libc = require('detect-libc'); -const napi = require('./napi.js'); - -let abi_crosswalk; - -// This is used for unit testing to provide a fake -// ABI crosswalk that emulates one that is not updated -// for the current version -if (process.env.NODE_PRE_GYP_ABI_CROSSWALK) { - abi_crosswalk = require(process.env.NODE_PRE_GYP_ABI_CROSSWALK); -} else { - abi_crosswalk = require('./abi_crosswalk.json'); -} - -const major_versions = {}; -Object.keys(abi_crosswalk).forEach((v) => { - const major = v.split('.')[0]; - if (!major_versions[major]) { - major_versions[major] = v; - } -}); - -function get_electron_abi(runtime, target_version) { - if (!runtime) { - throw new Error('get_electron_abi requires valid runtime arg'); - } - if (typeof target_version === 'undefined') { - // erroneous CLI call - throw new Error('Empty target version is not supported if electron is the target.'); - } - // Electron guarantees that patch version update won't break native modules. - const sem_ver = semver.parse(target_version); - return runtime + '-v' + sem_ver.major + '.' + sem_ver.minor; -} -module.exports.get_electron_abi = get_electron_abi; - -function get_node_webkit_abi(runtime, target_version) { - if (!runtime) { - throw new Error('get_node_webkit_abi requires valid runtime arg'); - } - if (typeof target_version === 'undefined') { - // erroneous CLI call - throw new Error('Empty target version is not supported if node-webkit is the target.'); - } - return runtime + '-v' + target_version; -} -module.exports.get_node_webkit_abi = get_node_webkit_abi; - -function get_node_abi(runtime, versions) { - if (!runtime) { - throw new Error('get_node_abi requires valid runtime arg'); - } - if (!versions) { - throw new Error('get_node_abi requires valid process.versions object'); - } - const sem_ver = semver.parse(versions.node); - if (sem_ver.major === 0 && sem_ver.minor % 2) { // odd series - // https://github.com/mapbox/node-pre-gyp/issues/124 - return runtime + '-v' + versions.node; - } else { - // process.versions.modules added in >= v0.10.4 and v0.11.7 - // https://github.com/joyent/node/commit/ccabd4a6fa8a6eb79d29bc3bbe9fe2b6531c2d8e - return versions.modules ? runtime + '-v' + (+versions.modules) : - 'v8-' + versions.v8.split('.').slice(0, 2).join('.'); - } -} -module.exports.get_node_abi = get_node_abi; - -function get_runtime_abi(runtime, target_version) { - if (!runtime) { - throw new Error('get_runtime_abi requires valid runtime arg'); - } - if (runtime === 'node-webkit') { - return get_node_webkit_abi(runtime, target_version || process.versions['node-webkit']); - } else if (runtime === 'electron') { - return get_electron_abi(runtime, target_version || process.versions.electron); - } else { - if (runtime !== 'node') { - throw new Error("Unknown Runtime: '" + runtime + "'"); - } - if (!target_version) { - return get_node_abi(runtime, process.versions); - } else { - let cross_obj; - // abi_crosswalk generated with ./scripts/abi_crosswalk.js - if (abi_crosswalk[target_version]) { - cross_obj = abi_crosswalk[target_version]; - } else { - const target_parts = target_version.split('.').map((i) => { return +i; }); - if (target_parts.length !== 3) { // parse failed - throw new Error('Unknown target version: ' + target_version); - } - /* - The below code tries to infer the last known ABI compatible version - that we have recorded in the abi_crosswalk.json when an exact match - is not possible. The reasons for this to exist are complicated: - - - We support passing --target to be able to allow developers to package binaries for versions of node - that are not the same one as they are running. This might also be used in combination with the - --target_arch or --target_platform flags to also package binaries for alternative platforms - - When --target is passed we can't therefore determine the ABI (process.versions.modules) from the node - version that is running in memory - - So, therefore node-pre-gyp keeps an "ABI crosswalk" (lib/util/abi_crosswalk.json) to be able to look - this info up for all versions - - But we cannot easily predict what the future ABI will be for released versions - - And node-pre-gyp needs to be a `bundledDependency` in apps that depend on it in order to work correctly - by being fully available at install time. - - So, the speed of node releases and the bundled nature of node-pre-gyp mean that a new node-pre-gyp release - need to happen for every node.js/io.js/node-webkit/nw.js/atom-shell/etc release that might come online if - you want the `--target` flag to keep working for the latest version - - Which is impractical ^^ - - Hence the below code guesses about future ABI to make the need to update node-pre-gyp less demanding. - - In practice then you can have a dependency of your app like `node-sqlite3` that bundles a `node-pre-gyp` that - only knows about node v0.10.33 in the `abi_crosswalk.json` but target node v0.10.34 (which is assumed to be - ABI compatible with v0.10.33). - - TODO: use semver module instead of custom version parsing - */ - const major = target_parts[0]; - let minor = target_parts[1]; - let patch = target_parts[2]; - // io.js: yeah if node.js ever releases 1.x this will break - // but that is unlikely to happen: https://github.com/iojs/io.js/pull/253#issuecomment-69432616 - if (major === 1) { - // look for last release that is the same major version - // e.g. we assume io.js 1.x is ABI compatible with >= 1.0.0 - while (true) { - if (minor > 0) --minor; - if (patch > 0) --patch; - const new_iojs_target = '' + major + '.' + minor + '.' + patch; - if (abi_crosswalk[new_iojs_target]) { - cross_obj = abi_crosswalk[new_iojs_target]; - console.log('Warning: node-pre-gyp could not find exact match for ' + target_version); - console.log('Warning: but node-pre-gyp successfully choose ' + new_iojs_target + ' as ABI compatible target'); - break; - } - if (minor === 0 && patch === 0) { - break; - } - } - } else if (major >= 2) { - // look for last release that is the same major version - if (major_versions[major]) { - cross_obj = abi_crosswalk[major_versions[major]]; - console.log('Warning: node-pre-gyp could not find exact match for ' + target_version); - console.log('Warning: but node-pre-gyp successfully choose ' + major_versions[major] + ' as ABI compatible target'); - } - } else if (major === 0) { // node.js - if (target_parts[1] % 2 === 0) { // for stable/even node.js series - // look for the last release that is the same minor release - // e.g. we assume node 0.10.x is ABI compatible with >= 0.10.0 - while (--patch > 0) { - const new_node_target = '' + major + '.' + minor + '.' + patch; - if (abi_crosswalk[new_node_target]) { - cross_obj = abi_crosswalk[new_node_target]; - console.log('Warning: node-pre-gyp could not find exact match for ' + target_version); - console.log('Warning: but node-pre-gyp successfully choose ' + new_node_target + ' as ABI compatible target'); - break; - } - } - } - } - } - if (!cross_obj) { - throw new Error('Unsupported target version: ' + target_version); - } - // emulate process.versions - const versions_obj = { - node: target_version, - v8: cross_obj.v8 + '.0', - // abi_crosswalk uses 1 for node versions lacking process.versions.modules - // process.versions.modules added in >= v0.10.4 and v0.11.7 - modules: cross_obj.node_abi > 1 ? cross_obj.node_abi : undefined - }; - return get_node_abi(runtime, versions_obj); - } - } -} -module.exports.get_runtime_abi = get_runtime_abi; - -const required_parameters = [ - 'module_name', - 'module_path', - 'host' -]; - -function validate_config(package_json, opts) { - const msg = package_json.name + ' package.json is not node-pre-gyp ready:\n'; - const missing = []; - if (!package_json.main) { - missing.push('main'); - } - if (!package_json.version) { - missing.push('version'); - } - if (!package_json.name) { - missing.push('name'); - } - if (!package_json.binary) { - missing.push('binary'); - } - const o = package_json.binary; - if (o) { - required_parameters.forEach((p) => { - if (!o[p] || typeof o[p] !== 'string') { - missing.push('binary.' + p); - } - }); - } - - if (missing.length >= 1) { - throw new Error(msg + 'package.json must declare these properties: \n' + missing.join('\n')); - } - if (o) { - // enforce https over http - const protocol = url.parse(o.host).protocol; - if (protocol === 'http:') { - throw new Error("'host' protocol (" + protocol + ") is invalid - only 'https:' is accepted"); - } - } - napi.validate_package_json(package_json, opts); -} - -module.exports.validate_config = validate_config; - -function eval_template(template, opts) { - Object.keys(opts).forEach((key) => { - const pattern = '{' + key + '}'; - while (template.indexOf(pattern) > -1) { - template = template.replace(pattern, opts[key]); - } - }); - return template; -} - -// url.resolve needs single trailing slash -// to behave correctly, otherwise a double slash -// may end up in the url which breaks requests -// and a lacking slash may not lead to proper joining -function fix_slashes(pathname) { - if (pathname.slice(-1) !== '/') { - return pathname + '/'; - } - return pathname; -} - -// remove double slashes -// note: path.normalize will not work because -// it will convert forward to back slashes -function drop_double_slashes(pathname) { - return pathname.replace(/\/\//g, '/'); -} - -function get_process_runtime(versions) { - let runtime = 'node'; - if (versions['node-webkit']) { - runtime = 'node-webkit'; - } else if (versions.electron) { - runtime = 'electron'; - } - return runtime; -} - -module.exports.get_process_runtime = get_process_runtime; - -const default_package_name = '{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz'; -const default_remote_path = ''; - -module.exports.evaluate = function(package_json, options, napi_build_version) { - options = options || {}; - validate_config(package_json, options); // options is a suitable substitute for opts in this case - const v = package_json.version; - const module_version = semver.parse(v); - const runtime = options.runtime || get_process_runtime(process.versions); - const opts = { - name: package_json.name, - configuration: options.debug ? 'Debug' : 'Release', - debug: options.debug, - module_name: package_json.binary.module_name, - version: module_version.version, - prerelease: module_version.prerelease.length ? module_version.prerelease.join('.') : '', - build: module_version.build.length ? module_version.build.join('.') : '', - major: module_version.major, - minor: module_version.minor, - patch: module_version.patch, - runtime: runtime, - node_abi: get_runtime_abi(runtime, options.target), - node_abi_napi: napi.get_napi_version(options.target) ? 'napi' : get_runtime_abi(runtime, options.target), - napi_version: napi.get_napi_version(options.target), // non-zero numeric, undefined if unsupported - napi_build_version: napi_build_version || '', - node_napi_label: napi_build_version ? 'napi-v' + napi_build_version : get_runtime_abi(runtime, options.target), - target: options.target || '', - platform: options.target_platform || process.platform, - target_platform: options.target_platform || process.platform, - arch: options.target_arch || process.arch, - target_arch: options.target_arch || process.arch, - libc: options.target_libc || detect_libc.familySync() || 'unknown', - module_main: package_json.main, - toolset: options.toolset || '', // address https://github.com/mapbox/node-pre-gyp/issues/119 - bucket: package_json.binary.bucket, - region: package_json.binary.region, - s3ForcePathStyle: package_json.binary.s3ForcePathStyle || false - }; - // support host mirror with npm config `--{module_name}_binary_host_mirror` - // e.g.: https://github.com/node-inspector/v8-profiler/blob/master/package.json#L25 - // > npm install v8-profiler --profiler_binary_host_mirror=https://npm.taobao.org/mirrors/node-inspector/ - const validModuleName = opts.module_name.replace('-', '_'); - const host = process.env['npm_config_' + validModuleName + '_binary_host_mirror'] || package_json.binary.host; - opts.host = fix_slashes(eval_template(host, opts)); - opts.module_path = eval_template(package_json.binary.module_path, opts); - // now we resolve the module_path to ensure it is absolute so that binding.gyp variables work predictably - if (options.module_root) { - // resolve relative to known module root: works for pre-binding require - opts.module_path = path.join(options.module_root, opts.module_path); - } else { - // resolve relative to current working directory: works for node-pre-gyp commands - opts.module_path = path.resolve(opts.module_path); - } - opts.module = path.join(opts.module_path, opts.module_name + '.node'); - opts.remote_path = package_json.binary.remote_path ? drop_double_slashes(fix_slashes(eval_template(package_json.binary.remote_path, opts))) : default_remote_path; - const package_name = package_json.binary.package_name ? package_json.binary.package_name : default_package_name; - opts.package_name = eval_template(package_name, opts); - opts.staged_tarball = path.join('build/stage', opts.remote_path, opts.package_name); - opts.hosted_path = url.resolve(opts.host, opts.remote_path); - opts.hosted_tarball = url.resolve(opts.hosted_path, opts.package_name); - return opts; -}; diff --git a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/package.json b/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/package.json deleted file mode 100644 index 34b0d3ce..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@mapbox/node-pre-gyp/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@mapbox/node-pre-gyp", - "description": "Node.js native addon binary install tool", - "version": "1.0.10", - "keywords": [ - "native", - "addon", - "module", - "c", - "c++", - "bindings", - "binary" - ], - "license": "BSD-3-Clause", - "author": "Dane Springmeyer ", - "repository": { - "type": "git", - "url": "git://github.com/mapbox/node-pre-gyp.git" - }, - "bin": "./bin/node-pre-gyp", - "main": "./lib/node-pre-gyp.js", - "dependencies": { - "detect-libc": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.7", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - }, - "devDependencies": { - "@mapbox/cloudfriend": "^5.1.0", - "@mapbox/eslint-config-mapbox": "^3.0.0", - "aws-sdk": "^2.1087.0", - "codecov": "^3.8.3", - "eslint": "^7.32.0", - "eslint-plugin-node": "^11.1.0", - "mock-aws-s3": "^4.0.2", - "nock": "^12.0.3", - "node-addon-api": "^4.3.0", - "nyc": "^15.1.0", - "tape": "^5.5.2", - "tar-fs": "^2.1.1" - }, - "nyc": { - "all": true, - "skip-full": false, - "exclude": [ - "test/**" - ] - }, - "scripts": { - "coverage": "nyc --all --include index.js --include lib/ npm test", - "upload-coverage": "nyc report --reporter json && codecov --clear --flags=unit --file=./coverage/coverage-final.json", - "lint": "eslint bin/node-pre-gyp lib/*js lib/util/*js test/*js scripts/*js", - "fix": "npm run lint -- --fix", - "update-crosswalk": "node scripts/abi_crosswalk.js", - "test": "tape test/*test.js" - } -} diff --git a/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/README.md b/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/README.md deleted file mode 100644 index 3e8315ee..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/README.md +++ /dev/null @@ -1,168 +0,0 @@ -# XPath Parser - -[![Package](https://img.shields.io/npm/v/@remotemerge/xpath-parser?logo=npm)](https://www.npmjs.com/package/@remotemerge/xpath-parser) -![Build](https://img.shields.io/github/workflow/status/remotemerge/xpath-parser/Production?logo=github) -![Downloads](https://img.shields.io/npm/dt/@remotemerge/xpath-parser) -![License](https://img.shields.io/npm/l/@remotemerge/xpath-parser) - -XPath Parser is a modern JavaScript utility to parse XPath expressions; built for web scraping in a JavaScript -environment. It's open source, modern, lightweight and fast. You can easily integrate it into new or existing web -crawlers, browser extensions, etc. - -## Install - -```bash -# using NPM -npm i @remotemerge/xpath-parser -# using Yarn -yarn add @remotemerge/xpath-parser -``` - -## Usage - -Import the XPathParser class in your project. - -```javascript -import XPathParser from '@remotemerge/xpath-parser' -``` - -## Examples - -The XPathParser constructor `XPathParser(html|DOM)` supports both DOM and HTML string, initialize as required. - -```javascript -const parser = new XPathParser('...'); -``` - -### Scrape First Match - -This method evaluates the given expression and captures the first result. It is useful for scraping a single element -value like `title`, `price`, etc. from HTML pages. - -```javascript -const result = parser.queryFirst('//span[@id="productTitle"]'); -console.log(result); -``` - -Sample output: - -```text -LETSCOM Fitness Tracker HR, Activity Tracker Watch with Heart Rate... -``` - -### Scrape All Matches - -This method evaluates the given expression and captures all results. It is useful for scraping all URLs, all images, all -CSS classes, etc. from HTML pages. - -```javascript -// scrape titles -const results = parser.queryList('//span[contains(@class, "zg-item")]/a/div'); -console.log(results); -``` - -Sample output: - -```javascript -['Cell Phone Stand,Angle Height Adjusta…', 'Selfie Ring Light with Tripod…', 'HOVAMP MFi Certified Nylon…', '...'] -``` - -### Scrape multiple elements - -This method loop through the given expressions and captures the first match of each expression. It is useful for -scraping full product information (`title`, `seller`, `price`, `rating`, etc.) from HTML pages. The keys are preserved -and the values are returned to the same keys. - -```javascript -const result = parser.multiQuery({ - title: '//div[@id="ppd"]//span[@id="productTitle"]', - seller: '//div[@id="ppd"]//a[@id="bylineInfo"]', - price: '//div[@id="ppd"]//span[@id="priceblock_dealprice"]', - rating: '//div[@id="ppd"]//span[@id="acrCustomerReviewText"]', -}); -``` - -Sample output: - -```text -{ - title: 'LETSCOM Fitness Tracker HR, Activity Tracker Watch with Heart Rate Monitor...', - seller: 'LETSCOM', - price: '$20.39', - rating: '1,489 ratings', -} -``` - -### Scrape with SubQueries - -This method captures the `root` element and runs queries within its namespace. It is useful for scraping multiple -products and full information about each product. For example, there can be 10 products on a page and each product -has (`title`, `url`, `image`, `price`, etc.). This method also supports `pagination` parameter. The keys are preserved -and the values are returned to the same keys. Here `pagination` is optional parameter. - -```javascript -const result = parser.subQuery({ - root: '//span[contains(@class, "zg-item")]', - pagination: '//ul/li/a[contains(text(), "Next")]/@href', - queries: { - title: 'a/div/@title', - url: 'a/@href', - image: 'a/span/div/img/@src', - price: './/span[contains(@class, "a-color-price")]', - } -}); -console.log(result); -``` - -Sample output: - -```text -{ - paginationUrl: 'https://www.example.com/gp/new-releases/wireless/reTF8&pg=2', - results: [ - { - title: 'Cell Phone Stand,Angle Height Adjustable Stab/Kindle/Tablet,4-10inch', - url: '/Adjustable-LISEN-Aluminum-Compatible-4-10&refRID=H1HWDWERK8YCRN76ER1T', - image: 'https://images-na.ssl-images-example.com/images/I/61UL200_SR200,200_.jpg', - price: '$16.99' - }, - { - title: 'Selfie Ring Light with Tripod Stand and Pheaming Photo Photography Vlogging Video', - url: '/Selfie-Lighting-Steaming-Photography-Vlogging/dp/B081SV&K8YCRN76ER1T', - image: 'https://images-na.ssl-images-example.com/images/I/717L200_SR200,200_.jpg', - price: '$46.99' - }, - { - // ... - } - ] -} -``` - -### Wait for Element - -This method waits until the element (matches by expression) exists on a page. The first parameter `expression` is XPath -expression to match and the second parameter `maxSeconds` is the maximum time to wait in seconds (default to 10 seconds) -. - -```javascript -parser.waitXPath('//span[contains(@class, "a-color-price")]/span') - .then((response) => { - // expression match and element exists - }).catch((error) => { - // match nothing and timeout - }); -``` - -## Contribution - -Welcome the community for contribution. Please make a PR request for bug fixes, enhancements, new features, etc. - -## Disclaimer - -All the XPath expressions above are tested on Amazon [product listing] and related pages for educational purposes only. -The icons are included from [flaticon] website. - -[product listing]: https://www.amazon.com/gp/new-releases/wireless - -[flaticon]: https://www.flaticon.com \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/package.json b/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/package.json deleted file mode 100644 index ba1a1f6f..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/package.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"@remotemerge/xpath-parser","version":"1.0.3","description":"Modern JavaScript utility to parse XPath expressions!","license":"MIT","keywords":["DOM","Evaluate","XPath","Parser"],"author":{"name":"Madan Sapkota","email":"contact@madansapkota.com","url":"https://madansapkota.com"},"repository":{"type":"git","url":"git@github.com:remotemerge/xpath-parser.git"},"bugs":{"url":"https://github.com/remotemerge/xpath-parser/issues"},"type":"module","module":"dist/xpath-parser.js"} \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/xpath-parser.js b/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/xpath-parser.js deleted file mode 100644 index 59fdac3e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/@remotemerge/xpath-parser/xpath-parser.js +++ /dev/null @@ -1,82 +0,0 @@ -class l { - constructor(t) { - if (this.options = { - queryFirst: !1 - }, t instanceof Node) - this.domContent = t; - else { - const e = new DOMParser(); - this.domContent = e.parseFromString(t, "text/html"); - } - } - evaluate(t) { - return document.evaluate( - t, - this.domContent, - null, - this.options.queryFirst ? XPathResult.FIRST_ORDERED_NODE_TYPE : XPathResult.ORDERED_NODE_ITERATOR_TYPE, - null - ); - } - getValue(t) { - let e = ""; - return t instanceof Attr ? e = t.value || "" : t instanceof HTMLElement && (e = t.textContent || ""), e.trim(); - } - queryFirst(t) { - this.options.queryFirst = !0; - const e = this.evaluate(t); - return this.getValue(e.singleNodeValue); - } - queryList(t) { - const e = [], r = this.evaluate(t); - let s; - for (; s = r.iterateNext(); ) { - const a = this.getValue(s); - e.push(a); - } - return e; - } - multiQuery(t) { - const e = {}; - return Object.keys(t).forEach((r) => { - e[r] = this.queryFirst(t[r]); - }), e; - } - subQuery(t = { - root: "/html", - pagination: "", - queries: {} - }) { - const e = this.evaluate(t.root), r = []; - let s = null; - for (; s = e.iterateNext(); ) { - this.domContent = s; - const n = {}; - Object.keys(t.queries).forEach((i) => { - n[i] = this.queryFirst(t.queries[i]); - }), r.push(n); - } - const a = { results: r }; - return t.pagination && Object.assign(a, { - paginationUrl: this.queryFirst(t.pagination) - }), a; - } - waitXPath(t, e = 10) { - let r = 1; - return new Promise((s, a) => { - const n = setInterval(() => { - const i = this.queryFirst(t); - if (i) - return clearInterval(n), s({ found: !0, message: i }); - if (r++ >= e) { - clearInterval(n); - const o = new Error(`Timeout! Max ${e} seconds are allowed.`); - return o.name = "TimeoutError", a(o); - } - }, 1e3); - }); - } -} -export { - l as default -}; diff --git a/env_xbb_lastest_cheerio/node_modules/abbrev/LICENSE b/env_xbb_lastest_cheerio/node_modules/abbrev/LICENSE deleted file mode 100644 index 9bcfa9d7..00000000 --- a/env_xbb_lastest_cheerio/node_modules/abbrev/LICENSE +++ /dev/null @@ -1,46 +0,0 @@ -This software is dual-licensed under the ISC and MIT licenses. -You may use this software under EITHER of the following licenses. - ----------- - -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ----------- - -Copyright Isaac Z. Schlueter and Contributors -All rights reserved. - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/env_xbb_lastest_cheerio/node_modules/abbrev/README.md b/env_xbb_lastest_cheerio/node_modules/abbrev/README.md deleted file mode 100644 index 99746fe6..00000000 --- a/env_xbb_lastest_cheerio/node_modules/abbrev/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# abbrev-js - -Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). - -Usage: - - var abbrev = require("abbrev"); - abbrev("foo", "fool", "folding", "flop"); - - // returns: - { fl: 'flop' - , flo: 'flop' - , flop: 'flop' - , fol: 'folding' - , fold: 'folding' - , foldi: 'folding' - , foldin: 'folding' - , folding: 'folding' - , foo: 'foo' - , fool: 'fool' - } - -This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. diff --git a/env_xbb_lastest_cheerio/node_modules/abbrev/abbrev.js b/env_xbb_lastest_cheerio/node_modules/abbrev/abbrev.js deleted file mode 100644 index 7b1dc5d6..00000000 --- a/env_xbb_lastest_cheerio/node_modules/abbrev/abbrev.js +++ /dev/null @@ -1,61 +0,0 @@ -module.exports = exports = abbrev.abbrev = abbrev - -abbrev.monkeyPatch = monkeyPatch - -function monkeyPatch () { - Object.defineProperty(Array.prototype, 'abbrev', { - value: function () { return abbrev(this) }, - enumerable: false, configurable: true, writable: true - }) - - Object.defineProperty(Object.prototype, 'abbrev', { - value: function () { return abbrev(Object.keys(this)) }, - enumerable: false, configurable: true, writable: true - }) -} - -function abbrev (list) { - if (arguments.length !== 1 || !Array.isArray(list)) { - list = Array.prototype.slice.call(arguments, 0) - } - for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { - args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) - } - - // sort them lexicographically, so that they're next to their nearest kin - args = args.sort(lexSort) - - // walk through each, seeing how much it has in common with the next and previous - var abbrevs = {} - , prev = "" - for (var i = 0, l = args.length ; i < l ; i ++) { - var current = args[i] - , next = args[i + 1] || "" - , nextMatches = true - , prevMatches = true - if (current === next) continue - for (var j = 0, cl = current.length ; j < cl ; j ++) { - var curChar = current.charAt(j) - nextMatches = nextMatches && curChar === next.charAt(j) - prevMatches = prevMatches && curChar === prev.charAt(j) - if (!nextMatches && !prevMatches) { - j ++ - break - } - } - prev = current - if (j === cl) { - abbrevs[current] = current - continue - } - for (var a = current.substr(0, j) ; j <= cl ; j ++) { - abbrevs[a] = current - a += current.charAt(j) - } - } - return abbrevs -} - -function lexSort (a, b) { - return a === b ? 0 : a > b ? 1 : -1 -} diff --git a/env_xbb_lastest_cheerio/node_modules/abbrev/package.json b/env_xbb_lastest_cheerio/node_modules/abbrev/package.json deleted file mode 100644 index bf4e8015..00000000 --- a/env_xbb_lastest_cheerio/node_modules/abbrev/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "abbrev", - "version": "1.1.1", - "description": "Like ruby's abbrev module, but in js", - "author": "Isaac Z. Schlueter ", - "main": "abbrev.js", - "scripts": { - "test": "tap test.js --100", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "repository": "http://github.com/isaacs/abbrev-js", - "license": "ISC", - "devDependencies": { - "tap": "^10.1" - }, - "files": [ - "abbrev.js" - ] -} diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/CHANGELOG.md b/env_xbb_lastest_cheerio/node_modules/acorn-walk/CHANGELOG.md deleted file mode 100644 index 30ec5a5e..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/CHANGELOG.md +++ /dev/null @@ -1,167 +0,0 @@ -## 8.2.0 (2021-09-06) - -### New features - -Add support for walking ES2022 class static blocks. - -## 8.1.1 (2021-06-29) - -### Bug fixes - -Include `base` in the type declarations. - -## 8.1.0 (2021-04-24) - -### New features - -Support node types for class fields and private methods. - -## 8.0.2 (2021-01-25) - -### Bug fixes - -Adjust package.json to work with Node 12.16.0 and 13.0-13.6. - -## 8.0.0 (2021-01-05) - -### Bug fixes - -Fix a bug where `full` and `fullAncestor` would skip nodes with overridden types. - -## 8.0.0 (2020-08-12) - -### New features - -The package can now be loaded directly as an ECMAScript module in node 13+. - -## 7.2.0 (2020-06-17) - -### New features - -Support optional chaining and nullish coalescing. - -Support `import.meta`. - -Add support for `export * as ns from "source"`. - -## 7.1.1 (2020-02-13) - -### Bug fixes - -Clean up the type definitions to actually work well with the main parser. - -## 7.1.0 (2020-02-11) - -### New features - -Add a TypeScript definition file for the library. - -## 7.0.0 (2017-08-12) - -### New features - -Support walking `ImportExpression` nodes. - -## 6.2.0 (2017-07-04) - -### New features - -Add support for `Import` nodes. - -## 6.1.0 (2018-09-28) - -### New features - -The walker now walks `TemplateElement` nodes. - -## 6.0.1 (2018-09-14) - -### Bug fixes - -Fix bad "main" field in package.json. - -## 6.0.0 (2018-09-14) - -### Breaking changes - -This is now a separate package, `acorn-walk`, rather than part of the main `acorn` package. - -The `ScopeBody` and `ScopeExpression` meta-node-types are no longer supported. - -## 5.7.1 (2018-06-15) - -### Bug fixes - -Make sure the walker and bin files are rebuilt on release (the previous release didn't get the up-to-date versions). - -## 5.7.0 (2018-06-15) - -### Bug fixes - -Fix crash in walker when walking a binding-less catch node. - -## 5.6.2 (2018-06-05) - -### Bug fixes - -In the walker, go back to allowing the `baseVisitor` argument to be null to default to the default base everywhere. - -## 5.6.1 (2018-06-01) - -### Bug fixes - -Fix regression when passing `null` as fourth argument to `walk.recursive`. - -## 5.6.0 (2018-05-31) - -### Bug fixes - -Fix a bug in the walker that caused a crash when walking an object pattern spread. - -## 5.5.1 (2018-03-06) - -### Bug fixes - -Fix regression in walker causing property values in object patterns to be walked as expressions. - -## 5.5.0 (2018-02-27) - -### Bug fixes - -Support object spread in the AST walker. - -## 5.4.1 (2018-02-02) - -### Bug fixes - -5.4.0 somehow accidentally included an old version of walk.js. - -## 5.2.0 (2017-10-30) - -### Bug fixes - -The `full` and `fullAncestor` walkers no longer visit nodes multiple times. - -## 5.1.0 (2017-07-05) - -### New features - -New walker functions `full` and `fullAncestor`. - -## 3.2.0 (2016-06-07) - -### New features - -Make it possible to use `visit.ancestor` with a walk state. - -## 3.1.0 (2016-04-18) - -### New features - -The walker now allows defining handlers for `CatchClause` nodes. - -## 2.5.2 (2015-10-27) - -### Fixes - -Fix bug where the walker walked an exported `let` statement as an expression. diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/LICENSE b/env_xbb_lastest_cheerio/node_modules/acorn-walk/LICENSE deleted file mode 100644 index d6be6db2..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (C) 2012-2020 by various contributors (see AUTHORS) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/README.md b/env_xbb_lastest_cheerio/node_modules/acorn-walk/README.md deleted file mode 100644 index e192bace..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# Acorn AST walker - -An abstract syntax tree walker for the -[ESTree](https://github.com/estree/estree) format. - -## Community - -Acorn is open source software released under an -[MIT license](https://github.com/acornjs/acorn/blob/master/acorn-walk/LICENSE). - -You are welcome to -[report bugs](https://github.com/acornjs/acorn/issues) or create pull -requests on [github](https://github.com/acornjs/acorn). For questions -and discussion, please use the -[Tern discussion forum](https://discuss.ternjs.net). - -## Installation - -The easiest way to install acorn is from [`npm`](https://www.npmjs.com/): - -```sh -npm install acorn-walk -``` - -Alternately, you can download the source and build acorn yourself: - -```sh -git clone https://github.com/acornjs/acorn.git -cd acorn -npm install -``` - -## Interface - -An algorithm for recursing through a syntax tree is stored as an -object, with a property for each tree node type holding a function -that will recurse through such a node. There are several ways to run -such a walker. - -**simple**`(node, visitors, base, state)` does a 'simple' walk over a -tree. `node` should be the AST node to walk, and `visitors` an object -with properties whose names correspond to node types in the [ESTree -spec](https://github.com/estree/estree). The properties should contain -functions that will be called with the node object and, if applicable -the state at that point. The last two arguments are optional. `base` -is a walker algorithm, and `state` is a start state. The default -walker will simply visit all statements and expressions and not -produce a meaningful state. (An example of a use of state is to track -scope at each point in the tree.) - -```js -const acorn = require("acorn") -const walk = require("acorn-walk") - -walk.simple(acorn.parse("let x = 10"), { - Literal(node) { - console.log(`Found a literal: ${node.value}`) - } -}) -``` - -**ancestor**`(node, visitors, base, state)` does a 'simple' walk over -a tree, building up an array of ancestor nodes (including the current node) -and passing the array to the callbacks as a third parameter. - -```js -const acorn = require("acorn") -const walk = require("acorn-walk") - -walk.ancestor(acorn.parse("foo('hi')"), { - Literal(_, ancestors) { - console.log("This literal's ancestors are:", ancestors.map(n => n.type)) - } -}) -``` - -**recursive**`(node, state, functions, base)` does a 'recursive' -walk, where the walker functions are responsible for continuing the -walk on the child nodes of their target node. `state` is the start -state, and `functions` should contain an object that maps node types -to walker functions. Such functions are called with `(node, state, c)` -arguments, and can cause the walk to continue on a sub-node by calling -the `c` argument on it with `(node, state)` arguments. The optional -`base` argument provides the fallback walker functions for node types -that aren't handled in the `functions` object. If not given, the -default walkers will be used. - -**make**`(functions, base)` builds a new walker object by using the -walker functions in `functions` and filling in the missing ones by -taking defaults from `base`. - -**full**`(node, callback, base, state)` does a 'full' walk over a -tree, calling the callback with the arguments (node, state, type) for -each node - -**fullAncestor**`(node, callback, base, state)` does a 'full' walk -over a tree, building up an array of ancestor nodes (including the -current node) and passing the array to the callbacks as a third -parameter. - -```js -const acorn = require("acorn") -const walk = require("acorn-walk") - -walk.full(acorn.parse("1 + 1"), node => { - console.log(`There's a ${node.type} node at ${node.ch}`) -}) -``` - -**findNodeAt**`(node, start, end, test, base, state)` tries to locate -a node in a tree at the given start and/or end offsets, which -satisfies the predicate `test`. `start` and `end` can be either `null` -(as wildcard) or a number. `test` may be a string (indicating a node -type) or a function that takes `(nodeType, node)` arguments and -returns a boolean indicating whether this node is interesting. `base` -and `state` are optional, and can be used to specify a custom walker. -Nodes are tested from inner to outer, so if two nodes match the -boundaries, the inner one will be preferred. - -**findNodeAround**`(node, pos, test, base, state)` is a lot like -`findNodeAt`, but will match any node that exists 'around' (spanning) -the given position. - -**findNodeAfter**`(node, pos, test, base, state)` is similar to -`findNodeAround`, but will match all nodes *after* the given position -(testing outer nodes before inner nodes). diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.d.ts b/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.d.ts deleted file mode 100644 index 2d81f01c..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -import {Node} from 'acorn'; - -declare module "acorn-walk" { - type FullWalkerCallback = ( - node: Node, - state: TState, - type: string - ) => void; - - type FullAncestorWalkerCallback = ( - node: Node, - state: TState | Node[], - ancestors: Node[], - type: string - ) => void; - type WalkerCallback = (node: Node, state: TState) => void; - - type SimpleWalkerFn = ( - node: Node, - state: TState - ) => void; - - type AncestorWalkerFn = ( - node: Node, - state: TState| Node[], - ancestors: Node[] - ) => void; - - type RecursiveWalkerFn = ( - node: Node, - state: TState, - callback: WalkerCallback - ) => void; - - type SimpleVisitors = { - [type: string]: SimpleWalkerFn - }; - - type AncestorVisitors = { - [type: string]: AncestorWalkerFn - }; - - type RecursiveVisitors = { - [type: string]: RecursiveWalkerFn - }; - - type FindPredicate = (type: string, node: Node) => boolean; - - interface Found { - node: Node, - state: TState - } - - export function simple( - node: Node, - visitors: SimpleVisitors, - base?: RecursiveVisitors, - state?: TState - ): void; - - export function ancestor( - node: Node, - visitors: AncestorVisitors, - base?: RecursiveVisitors, - state?: TState - ): void; - - export function recursive( - node: Node, - state: TState, - functions: RecursiveVisitors, - base?: RecursiveVisitors - ): void; - - export function full( - node: Node, - callback: FullWalkerCallback, - base?: RecursiveVisitors, - state?: TState - ): void; - - export function fullAncestor( - node: Node, - callback: FullAncestorWalkerCallback, - base?: RecursiveVisitors, - state?: TState - ): void; - - export function make( - functions: RecursiveVisitors, - base?: RecursiveVisitors - ): RecursiveVisitors; - - export function findNodeAt( - node: Node, - start: number | undefined, - end?: number | undefined, - type?: FindPredicate | string, - base?: RecursiveVisitors, - state?: TState - ): Found | undefined; - - export function findNodeAround( - node: Node, - start: number | undefined, - type?: FindPredicate | string, - base?: RecursiveVisitors, - state?: TState - ): Found | undefined; - - export const findNodeAfter: typeof findNodeAround; - - export const base: RecursiveVisitors; -} diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.js b/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.js deleted file mode 100644 index a7f81b00..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.js +++ /dev/null @@ -1,463 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = global || self, factory((global.acorn = global.acorn || {}, global.acorn.walk = {}))); -}(this, (function (exports) { 'use strict'; - - // AST walker module for Mozilla Parser API compatible trees - - // A simple walk is one where you simply specify callbacks to be - // called on specific nodes. The last two arguments are optional. A - // simple use would be - // - // walk.simple(myTree, { - // Expression: function(node) { ... } - // }); - // - // to do something with all expressions. All Parser API node types - // can be used to identify node types, as well as Expression and - // Statement, which denote categories of nodes. - // - // The base argument can be used to pass a custom (recursive) - // walker, and state can be used to give this walked an initial - // state. - - function simple(node, visitors, baseVisitor, state, override) { - if (!baseVisitor) { baseVisitor = base - ; }(function c(node, st, override) { - var type = override || node.type, found = visitors[type]; - baseVisitor[type](node, st, c); - if (found) { found(node, st); } - })(node, state, override); - } - - // An ancestor walk keeps an array of ancestor nodes (including the - // current node) and passes them to the callback as third parameter - // (and also as state parameter when no other state is present). - function ancestor(node, visitors, baseVisitor, state, override) { - var ancestors = []; - if (!baseVisitor) { baseVisitor = base - ; }(function c(node, st, override) { - var type = override || node.type, found = visitors[type]; - var isNew = node !== ancestors[ancestors.length - 1]; - if (isNew) { ancestors.push(node); } - baseVisitor[type](node, st, c); - if (found) { found(node, st || ancestors, ancestors); } - if (isNew) { ancestors.pop(); } - })(node, state, override); - } - - // A recursive walk is one where your functions override the default - // walkers. They can modify and replace the state parameter that's - // threaded through the walk, and can opt how and whether to walk - // their child nodes (by calling their third argument on these - // nodes). - function recursive(node, state, funcs, baseVisitor, override) { - var visitor = funcs ? make(funcs, baseVisitor || undefined) : baseVisitor - ;(function c(node, st, override) { - visitor[override || node.type](node, st, c); - })(node, state, override); - } - - function makeTest(test) { - if (typeof test === "string") - { return function (type) { return type === test; } } - else if (!test) - { return function () { return true; } } - else - { return test } - } - - var Found = function Found(node, state) { this.node = node; this.state = state; }; - - // A full walk triggers the callback on each node - function full(node, callback, baseVisitor, state, override) { - if (!baseVisitor) { baseVisitor = base; } - var last - ;(function c(node, st, override) { - var type = override || node.type; - baseVisitor[type](node, st, c); - if (last !== node) { - callback(node, st, type); - last = node; - } - })(node, state, override); - } - - // An fullAncestor walk is like an ancestor walk, but triggers - // the callback on each node - function fullAncestor(node, callback, baseVisitor, state) { - if (!baseVisitor) { baseVisitor = base; } - var ancestors = [], last - ;(function c(node, st, override) { - var type = override || node.type; - var isNew = node !== ancestors[ancestors.length - 1]; - if (isNew) { ancestors.push(node); } - baseVisitor[type](node, st, c); - if (last !== node) { - callback(node, st || ancestors, ancestors, type); - last = node; - } - if (isNew) { ancestors.pop(); } - })(node, state); - } - - // Find a node with a given start, end, and type (all are optional, - // null can be used as wildcard). Returns a {node, state} object, or - // undefined when it doesn't find a matching node. - function findNodeAt(node, start, end, test, baseVisitor, state) { - if (!baseVisitor) { baseVisitor = base; } - test = makeTest(test); - try { - (function c(node, st, override) { - var type = override || node.type; - if ((start == null || node.start <= start) && - (end == null || node.end >= end)) - { baseVisitor[type](node, st, c); } - if ((start == null || node.start === start) && - (end == null || node.end === end) && - test(type, node)) - { throw new Found(node, st) } - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } - } - - // Find the innermost node of a given type that contains the given - // position. Interface similar to findNodeAt. - function findNodeAround(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - try { - (function c(node, st, override) { - var type = override || node.type; - if (node.start > pos || node.end < pos) { return } - baseVisitor[type](node, st, c); - if (test(type, node)) { throw new Found(node, st) } - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } - } - - // Find the outermost matching node after a given position. - function findNodeAfter(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - try { - (function c(node, st, override) { - if (node.end < pos) { return } - var type = override || node.type; - if (node.start >= pos && test(type, node)) { throw new Found(node, st) } - baseVisitor[type](node, st, c); - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } - } - - // Find the outermost matching node before a given position. - function findNodeBefore(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - var max - ;(function c(node, st, override) { - if (node.start > pos) { return } - var type = override || node.type; - if (node.end <= pos && (!max || max.node.end < node.end) && test(type, node)) - { max = new Found(node, st); } - baseVisitor[type](node, st, c); - })(node, state); - return max - } - - // Used to create a custom walker. Will fill in all missing node - // type properties with the defaults. - function make(funcs, baseVisitor) { - var visitor = Object.create(baseVisitor || base); - for (var type in funcs) { visitor[type] = funcs[type]; } - return visitor - } - - function skipThrough(node, st, c) { c(node, st); } - function ignore(_node, _st, _c) {} - - // Node walkers. - - var base = {}; - - base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) { - for (var i = 0, list = node.body; i < list.length; i += 1) - { - var stmt = list[i]; - - c(stmt, st, "Statement"); - } - }; - base.Statement = skipThrough; - base.EmptyStatement = ignore; - base.ExpressionStatement = base.ParenthesizedExpression = base.ChainExpression = - function (node, st, c) { return c(node.expression, st, "Expression"); }; - base.IfStatement = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.consequent, st, "Statement"); - if (node.alternate) { c(node.alternate, st, "Statement"); } - }; - base.LabeledStatement = function (node, st, c) { return c(node.body, st, "Statement"); }; - base.BreakStatement = base.ContinueStatement = ignore; - base.WithStatement = function (node, st, c) { - c(node.object, st, "Expression"); - c(node.body, st, "Statement"); - }; - base.SwitchStatement = function (node, st, c) { - c(node.discriminant, st, "Expression"); - for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) { - var cs = list$1[i$1]; - - if (cs.test) { c(cs.test, st, "Expression"); } - for (var i = 0, list = cs.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } - } - }; - base.SwitchCase = function (node, st, c) { - if (node.test) { c(node.test, st, "Expression"); } - for (var i = 0, list = node.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } - }; - base.ReturnStatement = base.YieldExpression = base.AwaitExpression = function (node, st, c) { - if (node.argument) { c(node.argument, st, "Expression"); } - }; - base.ThrowStatement = base.SpreadElement = - function (node, st, c) { return c(node.argument, st, "Expression"); }; - base.TryStatement = function (node, st, c) { - c(node.block, st, "Statement"); - if (node.handler) { c(node.handler, st); } - if (node.finalizer) { c(node.finalizer, st, "Statement"); } - }; - base.CatchClause = function (node, st, c) { - if (node.param) { c(node.param, st, "Pattern"); } - c(node.body, st, "Statement"); - }; - base.WhileStatement = base.DoWhileStatement = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.body, st, "Statement"); - }; - base.ForStatement = function (node, st, c) { - if (node.init) { c(node.init, st, "ForInit"); } - if (node.test) { c(node.test, st, "Expression"); } - if (node.update) { c(node.update, st, "Expression"); } - c(node.body, st, "Statement"); - }; - base.ForInStatement = base.ForOfStatement = function (node, st, c) { - c(node.left, st, "ForInit"); - c(node.right, st, "Expression"); - c(node.body, st, "Statement"); - }; - base.ForInit = function (node, st, c) { - if (node.type === "VariableDeclaration") { c(node, st); } - else { c(node, st, "Expression"); } - }; - base.DebuggerStatement = ignore; - - base.FunctionDeclaration = function (node, st, c) { return c(node, st, "Function"); }; - base.VariableDeclaration = function (node, st, c) { - for (var i = 0, list = node.declarations; i < list.length; i += 1) - { - var decl = list[i]; - - c(decl, st); - } - }; - base.VariableDeclarator = function (node, st, c) { - c(node.id, st, "Pattern"); - if (node.init) { c(node.init, st, "Expression"); } - }; - - base.Function = function (node, st, c) { - if (node.id) { c(node.id, st, "Pattern"); } - for (var i = 0, list = node.params; i < list.length; i += 1) - { - var param = list[i]; - - c(param, st, "Pattern"); - } - c(node.body, st, node.expression ? "Expression" : "Statement"); - }; - - base.Pattern = function (node, st, c) { - if (node.type === "Identifier") - { c(node, st, "VariablePattern"); } - else if (node.type === "MemberExpression") - { c(node, st, "MemberPattern"); } - else - { c(node, st); } - }; - base.VariablePattern = ignore; - base.MemberPattern = skipThrough; - base.RestElement = function (node, st, c) { return c(node.argument, st, "Pattern"); }; - base.ArrayPattern = function (node, st, c) { - for (var i = 0, list = node.elements; i < list.length; i += 1) { - var elt = list[i]; - - if (elt) { c(elt, st, "Pattern"); } - } - }; - base.ObjectPattern = function (node, st, c) { - for (var i = 0, list = node.properties; i < list.length; i += 1) { - var prop = list[i]; - - if (prop.type === "Property") { - if (prop.computed) { c(prop.key, st, "Expression"); } - c(prop.value, st, "Pattern"); - } else if (prop.type === "RestElement") { - c(prop.argument, st, "Pattern"); - } - } - }; - - base.Expression = skipThrough; - base.ThisExpression = base.Super = base.MetaProperty = ignore; - base.ArrayExpression = function (node, st, c) { - for (var i = 0, list = node.elements; i < list.length; i += 1) { - var elt = list[i]; - - if (elt) { c(elt, st, "Expression"); } - } - }; - base.ObjectExpression = function (node, st, c) { - for (var i = 0, list = node.properties; i < list.length; i += 1) - { - var prop = list[i]; - - c(prop, st); - } - }; - base.FunctionExpression = base.ArrowFunctionExpression = base.FunctionDeclaration; - base.SequenceExpression = function (node, st, c) { - for (var i = 0, list = node.expressions; i < list.length; i += 1) - { - var expr = list[i]; - - c(expr, st, "Expression"); - } - }; - base.TemplateLiteral = function (node, st, c) { - for (var i = 0, list = node.quasis; i < list.length; i += 1) - { - var quasi = list[i]; - - c(quasi, st); - } - - for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) - { - var expr = list$1[i$1]; - - c(expr, st, "Expression"); - } - }; - base.TemplateElement = ignore; - base.UnaryExpression = base.UpdateExpression = function (node, st, c) { - c(node.argument, st, "Expression"); - }; - base.BinaryExpression = base.LogicalExpression = function (node, st, c) { - c(node.left, st, "Expression"); - c(node.right, st, "Expression"); - }; - base.AssignmentExpression = base.AssignmentPattern = function (node, st, c) { - c(node.left, st, "Pattern"); - c(node.right, st, "Expression"); - }; - base.ConditionalExpression = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.consequent, st, "Expression"); - c(node.alternate, st, "Expression"); - }; - base.NewExpression = base.CallExpression = function (node, st, c) { - c(node.callee, st, "Expression"); - if (node.arguments) - { for (var i = 0, list = node.arguments; i < list.length; i += 1) - { - var arg = list[i]; - - c(arg, st, "Expression"); - } } - }; - base.MemberExpression = function (node, st, c) { - c(node.object, st, "Expression"); - if (node.computed) { c(node.property, st, "Expression"); } - }; - base.ExportNamedDeclaration = base.ExportDefaultDeclaration = function (node, st, c) { - if (node.declaration) - { c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"); } - if (node.source) { c(node.source, st, "Expression"); } - }; - base.ExportAllDeclaration = function (node, st, c) { - if (node.exported) - { c(node.exported, st); } - c(node.source, st, "Expression"); - }; - base.ImportDeclaration = function (node, st, c) { - for (var i = 0, list = node.specifiers; i < list.length; i += 1) - { - var spec = list[i]; - - c(spec, st); - } - c(node.source, st, "Expression"); - }; - base.ImportExpression = function (node, st, c) { - c(node.source, st, "Expression"); - }; - base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore; - - base.TaggedTemplateExpression = function (node, st, c) { - c(node.tag, st, "Expression"); - c(node.quasi, st, "Expression"); - }; - base.ClassDeclaration = base.ClassExpression = function (node, st, c) { return c(node, st, "Class"); }; - base.Class = function (node, st, c) { - if (node.id) { c(node.id, st, "Pattern"); } - if (node.superClass) { c(node.superClass, st, "Expression"); } - c(node.body, st); - }; - base.ClassBody = function (node, st, c) { - for (var i = 0, list = node.body; i < list.length; i += 1) - { - var elt = list[i]; - - c(elt, st); - } - }; - base.MethodDefinition = base.PropertyDefinition = base.Property = function (node, st, c) { - if (node.computed) { c(node.key, st, "Expression"); } - if (node.value) { c(node.value, st, "Expression"); } - }; - - exports.ancestor = ancestor; - exports.base = base; - exports.findNodeAfter = findNodeAfter; - exports.findNodeAround = findNodeAround; - exports.findNodeAt = findNodeAt; - exports.findNodeBefore = findNodeBefore; - exports.full = full; - exports.fullAncestor = fullAncestor; - exports.make = make; - exports.recursive = recursive; - exports.simple = simple; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.mjs b/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.mjs deleted file mode 100644 index 89dd1f1f..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/dist/walk.mjs +++ /dev/null @@ -1,443 +0,0 @@ -// AST walker module for Mozilla Parser API compatible trees - -// A simple walk is one where you simply specify callbacks to be -// called on specific nodes. The last two arguments are optional. A -// simple use would be -// -// walk.simple(myTree, { -// Expression: function(node) { ... } -// }); -// -// to do something with all expressions. All Parser API node types -// can be used to identify node types, as well as Expression and -// Statement, which denote categories of nodes. -// -// The base argument can be used to pass a custom (recursive) -// walker, and state can be used to give this walked an initial -// state. - -function simple(node, visitors, baseVisitor, state, override) { - if (!baseVisitor) { baseVisitor = base - ; }(function c(node, st, override) { - var type = override || node.type, found = visitors[type]; - baseVisitor[type](node, st, c); - if (found) { found(node, st); } - })(node, state, override); -} - -// An ancestor walk keeps an array of ancestor nodes (including the -// current node) and passes them to the callback as third parameter -// (and also as state parameter when no other state is present). -function ancestor(node, visitors, baseVisitor, state, override) { - var ancestors = []; - if (!baseVisitor) { baseVisitor = base - ; }(function c(node, st, override) { - var type = override || node.type, found = visitors[type]; - var isNew = node !== ancestors[ancestors.length - 1]; - if (isNew) { ancestors.push(node); } - baseVisitor[type](node, st, c); - if (found) { found(node, st || ancestors, ancestors); } - if (isNew) { ancestors.pop(); } - })(node, state, override); -} - -// A recursive walk is one where your functions override the default -// walkers. They can modify and replace the state parameter that's -// threaded through the walk, and can opt how and whether to walk -// their child nodes (by calling their third argument on these -// nodes). -function recursive(node, state, funcs, baseVisitor, override) { - var visitor = funcs ? make(funcs, baseVisitor || undefined) : baseVisitor - ;(function c(node, st, override) { - visitor[override || node.type](node, st, c); - })(node, state, override); -} - -function makeTest(test) { - if (typeof test === "string") - { return function (type) { return type === test; } } - else if (!test) - { return function () { return true; } } - else - { return test } -} - -var Found = function Found(node, state) { this.node = node; this.state = state; }; - -// A full walk triggers the callback on each node -function full(node, callback, baseVisitor, state, override) { - if (!baseVisitor) { baseVisitor = base; } - var last - ;(function c(node, st, override) { - var type = override || node.type; - baseVisitor[type](node, st, c); - if (last !== node) { - callback(node, st, type); - last = node; - } - })(node, state, override); -} - -// An fullAncestor walk is like an ancestor walk, but triggers -// the callback on each node -function fullAncestor(node, callback, baseVisitor, state) { - if (!baseVisitor) { baseVisitor = base; } - var ancestors = [], last - ;(function c(node, st, override) { - var type = override || node.type; - var isNew = node !== ancestors[ancestors.length - 1]; - if (isNew) { ancestors.push(node); } - baseVisitor[type](node, st, c); - if (last !== node) { - callback(node, st || ancestors, ancestors, type); - last = node; - } - if (isNew) { ancestors.pop(); } - })(node, state); -} - -// Find a node with a given start, end, and type (all are optional, -// null can be used as wildcard). Returns a {node, state} object, or -// undefined when it doesn't find a matching node. -function findNodeAt(node, start, end, test, baseVisitor, state) { - if (!baseVisitor) { baseVisitor = base; } - test = makeTest(test); - try { - (function c(node, st, override) { - var type = override || node.type; - if ((start == null || node.start <= start) && - (end == null || node.end >= end)) - { baseVisitor[type](node, st, c); } - if ((start == null || node.start === start) && - (end == null || node.end === end) && - test(type, node)) - { throw new Found(node, st) } - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } -} - -// Find the innermost node of a given type that contains the given -// position. Interface similar to findNodeAt. -function findNodeAround(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - try { - (function c(node, st, override) { - var type = override || node.type; - if (node.start > pos || node.end < pos) { return } - baseVisitor[type](node, st, c); - if (test(type, node)) { throw new Found(node, st) } - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } -} - -// Find the outermost matching node after a given position. -function findNodeAfter(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - try { - (function c(node, st, override) { - if (node.end < pos) { return } - var type = override || node.type; - if (node.start >= pos && test(type, node)) { throw new Found(node, st) } - baseVisitor[type](node, st, c); - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } -} - -// Find the outermost matching node before a given position. -function findNodeBefore(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - var max - ;(function c(node, st, override) { - if (node.start > pos) { return } - var type = override || node.type; - if (node.end <= pos && (!max || max.node.end < node.end) && test(type, node)) - { max = new Found(node, st); } - baseVisitor[type](node, st, c); - })(node, state); - return max -} - -// Used to create a custom walker. Will fill in all missing node -// type properties with the defaults. -function make(funcs, baseVisitor) { - var visitor = Object.create(baseVisitor || base); - for (var type in funcs) { visitor[type] = funcs[type]; } - return visitor -} - -function skipThrough(node, st, c) { c(node, st); } -function ignore(_node, _st, _c) {} - -// Node walkers. - -var base = {}; - -base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) { - for (var i = 0, list = node.body; i < list.length; i += 1) - { - var stmt = list[i]; - - c(stmt, st, "Statement"); - } -}; -base.Statement = skipThrough; -base.EmptyStatement = ignore; -base.ExpressionStatement = base.ParenthesizedExpression = base.ChainExpression = - function (node, st, c) { return c(node.expression, st, "Expression"); }; -base.IfStatement = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.consequent, st, "Statement"); - if (node.alternate) { c(node.alternate, st, "Statement"); } -}; -base.LabeledStatement = function (node, st, c) { return c(node.body, st, "Statement"); }; -base.BreakStatement = base.ContinueStatement = ignore; -base.WithStatement = function (node, st, c) { - c(node.object, st, "Expression"); - c(node.body, st, "Statement"); -}; -base.SwitchStatement = function (node, st, c) { - c(node.discriminant, st, "Expression"); - for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) { - var cs = list$1[i$1]; - - if (cs.test) { c(cs.test, st, "Expression"); } - for (var i = 0, list = cs.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } - } -}; -base.SwitchCase = function (node, st, c) { - if (node.test) { c(node.test, st, "Expression"); } - for (var i = 0, list = node.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } -}; -base.ReturnStatement = base.YieldExpression = base.AwaitExpression = function (node, st, c) { - if (node.argument) { c(node.argument, st, "Expression"); } -}; -base.ThrowStatement = base.SpreadElement = - function (node, st, c) { return c(node.argument, st, "Expression"); }; -base.TryStatement = function (node, st, c) { - c(node.block, st, "Statement"); - if (node.handler) { c(node.handler, st); } - if (node.finalizer) { c(node.finalizer, st, "Statement"); } -}; -base.CatchClause = function (node, st, c) { - if (node.param) { c(node.param, st, "Pattern"); } - c(node.body, st, "Statement"); -}; -base.WhileStatement = base.DoWhileStatement = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.body, st, "Statement"); -}; -base.ForStatement = function (node, st, c) { - if (node.init) { c(node.init, st, "ForInit"); } - if (node.test) { c(node.test, st, "Expression"); } - if (node.update) { c(node.update, st, "Expression"); } - c(node.body, st, "Statement"); -}; -base.ForInStatement = base.ForOfStatement = function (node, st, c) { - c(node.left, st, "ForInit"); - c(node.right, st, "Expression"); - c(node.body, st, "Statement"); -}; -base.ForInit = function (node, st, c) { - if (node.type === "VariableDeclaration") { c(node, st); } - else { c(node, st, "Expression"); } -}; -base.DebuggerStatement = ignore; - -base.FunctionDeclaration = function (node, st, c) { return c(node, st, "Function"); }; -base.VariableDeclaration = function (node, st, c) { - for (var i = 0, list = node.declarations; i < list.length; i += 1) - { - var decl = list[i]; - - c(decl, st); - } -}; -base.VariableDeclarator = function (node, st, c) { - c(node.id, st, "Pattern"); - if (node.init) { c(node.init, st, "Expression"); } -}; - -base.Function = function (node, st, c) { - if (node.id) { c(node.id, st, "Pattern"); } - for (var i = 0, list = node.params; i < list.length; i += 1) - { - var param = list[i]; - - c(param, st, "Pattern"); - } - c(node.body, st, node.expression ? "Expression" : "Statement"); -}; - -base.Pattern = function (node, st, c) { - if (node.type === "Identifier") - { c(node, st, "VariablePattern"); } - else if (node.type === "MemberExpression") - { c(node, st, "MemberPattern"); } - else - { c(node, st); } -}; -base.VariablePattern = ignore; -base.MemberPattern = skipThrough; -base.RestElement = function (node, st, c) { return c(node.argument, st, "Pattern"); }; -base.ArrayPattern = function (node, st, c) { - for (var i = 0, list = node.elements; i < list.length; i += 1) { - var elt = list[i]; - - if (elt) { c(elt, st, "Pattern"); } - } -}; -base.ObjectPattern = function (node, st, c) { - for (var i = 0, list = node.properties; i < list.length; i += 1) { - var prop = list[i]; - - if (prop.type === "Property") { - if (prop.computed) { c(prop.key, st, "Expression"); } - c(prop.value, st, "Pattern"); - } else if (prop.type === "RestElement") { - c(prop.argument, st, "Pattern"); - } - } -}; - -base.Expression = skipThrough; -base.ThisExpression = base.Super = base.MetaProperty = ignore; -base.ArrayExpression = function (node, st, c) { - for (var i = 0, list = node.elements; i < list.length; i += 1) { - var elt = list[i]; - - if (elt) { c(elt, st, "Expression"); } - } -}; -base.ObjectExpression = function (node, st, c) { - for (var i = 0, list = node.properties; i < list.length; i += 1) - { - var prop = list[i]; - - c(prop, st); - } -}; -base.FunctionExpression = base.ArrowFunctionExpression = base.FunctionDeclaration; -base.SequenceExpression = function (node, st, c) { - for (var i = 0, list = node.expressions; i < list.length; i += 1) - { - var expr = list[i]; - - c(expr, st, "Expression"); - } -}; -base.TemplateLiteral = function (node, st, c) { - for (var i = 0, list = node.quasis; i < list.length; i += 1) - { - var quasi = list[i]; - - c(quasi, st); - } - - for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) - { - var expr = list$1[i$1]; - - c(expr, st, "Expression"); - } -}; -base.TemplateElement = ignore; -base.UnaryExpression = base.UpdateExpression = function (node, st, c) { - c(node.argument, st, "Expression"); -}; -base.BinaryExpression = base.LogicalExpression = function (node, st, c) { - c(node.left, st, "Expression"); - c(node.right, st, "Expression"); -}; -base.AssignmentExpression = base.AssignmentPattern = function (node, st, c) { - c(node.left, st, "Pattern"); - c(node.right, st, "Expression"); -}; -base.ConditionalExpression = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.consequent, st, "Expression"); - c(node.alternate, st, "Expression"); -}; -base.NewExpression = base.CallExpression = function (node, st, c) { - c(node.callee, st, "Expression"); - if (node.arguments) - { for (var i = 0, list = node.arguments; i < list.length; i += 1) - { - var arg = list[i]; - - c(arg, st, "Expression"); - } } -}; -base.MemberExpression = function (node, st, c) { - c(node.object, st, "Expression"); - if (node.computed) { c(node.property, st, "Expression"); } -}; -base.ExportNamedDeclaration = base.ExportDefaultDeclaration = function (node, st, c) { - if (node.declaration) - { c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"); } - if (node.source) { c(node.source, st, "Expression"); } -}; -base.ExportAllDeclaration = function (node, st, c) { - if (node.exported) - { c(node.exported, st); } - c(node.source, st, "Expression"); -}; -base.ImportDeclaration = function (node, st, c) { - for (var i = 0, list = node.specifiers; i < list.length; i += 1) - { - var spec = list[i]; - - c(spec, st); - } - c(node.source, st, "Expression"); -}; -base.ImportExpression = function (node, st, c) { - c(node.source, st, "Expression"); -}; -base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore; - -base.TaggedTemplateExpression = function (node, st, c) { - c(node.tag, st, "Expression"); - c(node.quasi, st, "Expression"); -}; -base.ClassDeclaration = base.ClassExpression = function (node, st, c) { return c(node, st, "Class"); }; -base.Class = function (node, st, c) { - if (node.id) { c(node.id, st, "Pattern"); } - if (node.superClass) { c(node.superClass, st, "Expression"); } - c(node.body, st); -}; -base.ClassBody = function (node, st, c) { - for (var i = 0, list = node.body; i < list.length; i += 1) - { - var elt = list[i]; - - c(elt, st); - } -}; -base.MethodDefinition = base.PropertyDefinition = base.Property = function (node, st, c) { - if (node.computed) { c(node.key, st, "Expression"); } - if (node.value) { c(node.value, st, "Expression"); } -}; - -export { ancestor, base, findNodeAfter, findNodeAround, findNodeAt, findNodeBefore, full, fullAncestor, make, recursive, simple }; diff --git a/env_xbb_lastest_cheerio/node_modules/acorn-walk/package.json b/env_xbb_lastest_cheerio/node_modules/acorn-walk/package.json deleted file mode 100644 index 8d75b971..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn-walk/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "acorn-walk", - "description": "ECMAScript (ESTree) AST walker", - "homepage": "https://github.com/acornjs/acorn", - "main": "dist/walk.js", - "types": "dist/walk.d.ts", - "module": "dist/walk.mjs", - "exports": { - ".": [ - { - "import": "./dist/walk.mjs", - "require": "./dist/walk.js", - "default": "./dist/walk.js" - }, - "./dist/walk.js" - ], - "./package.json": "./package.json" - }, - "version": "8.2.0", - "engines": {"node": ">=0.4.0"}, - "maintainers": [ - { - "name": "Marijn Haverbeke", - "email": "marijnh@gmail.com", - "web": "https://marijnhaverbeke.nl" - }, - { - "name": "Ingvar Stepanyan", - "email": "me@rreverser.com", - "web": "https://rreverser.com/" - }, - { - "name": "Adrian Heine", - "web": "http://adrianheine.de" - } - ], - "repository": { - "type": "git", - "url": "https://github.com/acornjs/acorn.git" - }, - "scripts": { - "prepare": "cd ..; npm run build:walk" - }, - "license": "MIT" -} diff --git a/env_xbb_lastest_cheerio/node_modules/acorn/CHANGELOG.md b/env_xbb_lastest_cheerio/node_modules/acorn/CHANGELOG.md deleted file mode 100644 index ac78102d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn/CHANGELOG.md +++ /dev/null @@ -1,826 +0,0 @@ -## 8.8.2 (2023-01-23) - -### Bug fixes - -Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`. - -Fix an exception when passing no option object to `parse` or `new Parser`. - -Fix incorrect parse error on `if (0) let\n[astral identifier char]`. - -## 8.8.1 (2022-10-24) - -### Bug fixes - -Make type for `Comment` compatible with estree types. - -## 8.8.0 (2022-07-21) - -### Bug fixes - -Allow parentheses around spread args in destructuring object assignment. - -Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them. - -### New features - -Support hashbang comments by default in ECMAScript 2023 and later. - -## 8.7.1 (2021-04-26) - -### Bug fixes - -Stop handling `"use strict"` directives in ECMAScript versions before 5. - -Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked. - -Add missing type for `tokTypes`. - -## 8.7.0 (2021-12-27) - -### New features - -Support quoted export names. - -Upgrade to Unicode 14. - -Add support for Unicode 13 properties in regular expressions. - -### Bug fixes - -Use a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code. - -## 8.6.0 (2021-11-18) - -### Bug fixes - -Fix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment. - -### New features - -Support class private fields with the `in` operator. - -## 8.5.0 (2021-09-06) - -### Bug fixes - -Improve context-dependent tokenization in a number of corner cases. - -Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number). - -Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators. - -Fix wrong end locations stored on SequenceExpression nodes. - -Implement restriction that `for`/`of` loop LHS can't start with `let`. - -### New features - -Add support for ES2022 class static blocks. - -Allow multiple input files to be passed to the CLI tool. - -## 8.4.1 (2021-06-24) - -### Bug fixes - -Fix a bug where `allowAwaitOutsideFunction` would allow `await` in class field initializers, and setting `ecmaVersion` to 13 or higher would allow top-level await in non-module sources. - -## 8.4.0 (2021-06-11) - -### New features - -A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context. - -## 8.3.0 (2021-05-31) - -### New features - -Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher. - -Add support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag. - -## 8.2.4 (2021-05-04) - -### Bug fixes - -Fix spec conformity in corner case 'for await (async of ...)'. - -## 8.2.3 (2021-05-04) - -### Bug fixes - -Fix an issue where the library couldn't parse 'for (async of ...)'. - -Fix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances. - -## 8.2.2 (2021-04-29) - -### Bug fixes - -Fix a bug where a class field initialized to an async arrow function wouldn't allow await inside it. Same issue existed for generator arrow functions with yield. - -## 8.2.1 (2021-04-24) - -### Bug fixes - -Fix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse. - -## 8.2.0 (2021-04-24) - -### New features - -Add support for ES2022 class fields and private methods. - -## 8.1.1 (2021-04-12) - -### Various - -Stop shipping source maps in the NPM package. - -## 8.1.0 (2021-03-09) - -### Bug fixes - -Fix a spurious error in nested destructuring arrays. - -### New features - -Expose `allowAwaitOutsideFunction` in CLI interface. - -Make `allowImportExportAnywhere` also apply to `import.meta`. - -## 8.0.5 (2021-01-25) - -### Bug fixes - -Adjust package.json to work with Node 12.16.0 and 13.0-13.6. - -## 8.0.4 (2020-10-05) - -### Bug fixes - -Make `await x ** y` an error, following the spec. - -Fix potentially exponential regular expression. - -## 8.0.3 (2020-10-02) - -### Bug fixes - -Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`. - -## 8.0.2 (2020-09-30) - -### Bug fixes - -Make the TypeScript types reflect the current allowed values for `ecmaVersion`. - -Fix another regexp/division tokenizer issue. - -## 8.0.1 (2020-08-12) - -### Bug fixes - -Provide the correct value in the `version` export. - -## 8.0.0 (2020-08-12) - -### Bug fixes - -Disallow expressions like `(a = b) = c`. - -Make non-octal escape sequences a syntax error in strict mode. - -### New features - -The package can now be loaded directly as an ECMAScript module in node 13+. - -Update to the set of Unicode properties from ES2021. - -### Breaking changes - -The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release. - -Some changes to method signatures that may be used by plugins. - -## 7.4.0 (2020-08-03) - -### New features - -Add support for logical assignment operators. - -Add support for numeric separators. - -## 7.3.1 (2020-06-11) - -### Bug fixes - -Make the string in the `version` export match the actual library version. - -## 7.3.0 (2020-06-11) - -### Bug fixes - -Fix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail. - -### New features - -Add support for optional chaining (`?.`). - -## 7.2.0 (2020-05-09) - -### Bug fixes - -Fix precedence issue in parsing of async arrow functions. - -### New features - -Add support for nullish coalescing. - -Add support for `import.meta`. - -Support `export * as ...` syntax. - -Upgrade to Unicode 13. - -## 6.4.1 (2020-03-09) - -### Bug fixes - -More carefully check for valid UTF16 surrogate pairs in regexp validator. - -## 7.1.1 (2020-03-01) - -### Bug fixes - -Treat `\8` and `\9` as invalid escapes in template strings. - -Allow unicode escapes in property names that are keywords. - -Don't error on an exponential operator expression as argument to `await`. - -More carefully check for valid UTF16 surrogate pairs in regexp validator. - -## 7.1.0 (2019-09-24) - -### Bug fixes - -Disallow trailing object literal commas when ecmaVersion is less than 5. - -### New features - -Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on. - -## 7.0.0 (2019-08-13) - -### Breaking changes - -Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression). - -Makes 10 (ES2019) the default value for the `ecmaVersion` option. - -## 6.3.0 (2019-08-12) - -### New features - -`sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard. - -## 6.2.1 (2019-07-21) - -### Bug fixes - -Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such. - -Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances. - -## 6.2.0 (2019-07-04) - -### Bug fixes - -Improve valid assignment checking in `for`/`in` and `for`/`of` loops. - -Disallow binding `let` in patterns. - -### New features - -Support bigint syntax with `ecmaVersion` >= 11. - -Support dynamic `import` syntax with `ecmaVersion` >= 11. - -Upgrade to Unicode version 12. - -## 6.1.1 (2019-02-27) - -### Bug fixes - -Fix bug that caused parsing default exports of with names to fail. - -## 6.1.0 (2019-02-08) - -### Bug fixes - -Fix scope checking when redefining a `var` as a lexical binding. - -### New features - -Split up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins. - -## 6.0.7 (2019-02-04) - -### Bug fixes - -Check that exported bindings are defined. - -Don't treat `\u180e` as a whitespace character. - -Check for duplicate parameter names in methods. - -Don't allow shorthand properties when they are generators or async methods. - -Forbid binding `await` in async arrow function's parameter list. - -## 6.0.6 (2019-01-30) - -### Bug fixes - -The content of class declarations and expressions is now always parsed in strict mode. - -Don't allow `let` or `const` to bind the variable name `let`. - -Treat class declarations as lexical. - -Don't allow a generator function declaration as the sole body of an `if` or `else`. - -Ignore `"use strict"` when after an empty statement. - -Allow string line continuations with special line terminator characters. - -Treat `for` bodies as part of the `for` scope when checking for conflicting bindings. - -Fix bug with parsing `yield` in a `for` loop initializer. - -Implement special cases around scope checking for functions. - -## 6.0.5 (2019-01-02) - -### Bug fixes - -Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type. - -Don't treat `let` as a keyword when the next token is `{` on the next line. - -Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on. - -## 6.0.4 (2018-11-05) - -### Bug fixes - -Further improvements to tokenizing regular expressions in corner cases. - -## 6.0.3 (2018-11-04) - -### Bug fixes - -Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression. - -Remove stray symlink in the package tarball. - -## 6.0.2 (2018-09-26) - -### Bug fixes - -Fix bug where default expressions could fail to parse inside an object destructuring assignment expression. - -## 6.0.1 (2018-09-14) - -### Bug fixes - -Fix wrong value in `version` export. - -## 6.0.0 (2018-09-14) - -### Bug fixes - -Better handle variable-redefinition checks for catch bindings and functions directly under if statements. - -Forbid `new.target` in top-level arrow functions. - -Fix issue with parsing a regexp after `yield` in some contexts. - -### New features - -The package now comes with TypeScript definitions. - -### Breaking changes - -The default value of the `ecmaVersion` option is now 9 (2018). - -Plugins work differently, and will have to be rewritten to work with this version. - -The loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`). - -## 5.7.3 (2018-09-10) - -### Bug fixes - -Fix failure to tokenize regexps after expressions like `x.of`. - -Better error message for unterminated template literals. - -## 5.7.2 (2018-08-24) - -### Bug fixes - -Properly handle `allowAwaitOutsideFunction` in for statements. - -Treat function declarations at the top level of modules like let bindings. - -Don't allow async function declarations as the only statement under a label. - -## 5.7.0 (2018-06-15) - -### New features - -Upgraded to Unicode 11. - -## 5.6.0 (2018-05-31) - -### New features - -Allow U+2028 and U+2029 in string when ECMAVersion >= 10. - -Allow binding-less catch statements when ECMAVersion >= 10. - -Add `allowAwaitOutsideFunction` option for parsing top-level `await`. - -## 5.5.3 (2018-03-08) - -### Bug fixes - -A _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps. - -## 5.5.2 (2018-03-08) - -### Bug fixes - -A republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0. - -## 5.5.1 (2018-03-06) - -### Bug fixes - -Fix misleading error message for octal escapes in template strings. - -## 5.5.0 (2018-02-27) - -### New features - -The identifier character categorization is now based on Unicode version 10. - -Acorn will now validate the content of regular expressions, including new ES9 features. - -## 5.4.0 (2018-02-01) - -### Bug fixes - -Disallow duplicate or escaped flags on regular expressions. - -Disallow octal escapes in strings in strict mode. - -### New features - -Add support for async iteration. - -Add support for object spread and rest. - -## 5.3.0 (2017-12-28) - -### Bug fixes - -Fix parsing of floating point literals with leading zeroes in loose mode. - -Allow duplicate property names in object patterns. - -Don't allow static class methods named `prototype`. - -Disallow async functions directly under `if` or `else`. - -Parse right-hand-side of `for`/`of` as an assignment expression. - -Stricter parsing of `for`/`in`. - -Don't allow unicode escapes in contextual keywords. - -### New features - -Parsing class members was factored into smaller methods to allow plugins to hook into it. - -## 5.2.1 (2017-10-30) - -### Bug fixes - -Fix a token context corruption bug. - -## 5.2.0 (2017-10-30) - -### Bug fixes - -Fix token context tracking for `class` and `function` in property-name position. - -Make sure `%*` isn't parsed as a valid operator. - -Allow shorthand properties `get` and `set` to be followed by default values. - -Disallow `super` when not in callee or object position. - -### New features - -Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements. - -## 5.1.2 (2017-09-04) - -### Bug fixes - -Disable parsing of legacy HTML-style comments in modules. - -Fix parsing of async methods whose names are keywords. - -## 5.1.1 (2017-07-06) - -### Bug fixes - -Fix problem with disambiguating regexp and division after a class. - -## 5.1.0 (2017-07-05) - -### Bug fixes - -Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`. - -Parse zero-prefixed numbers with non-octal digits as decimal. - -Allow object/array patterns in rest parameters. - -Don't error when `yield` is used as a property name. - -Allow `async` as a shorthand object property. - -### New features - -Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9. - -## 5.0.3 (2017-04-01) - -### Bug fixes - -Fix spurious duplicate variable definition errors for named functions. - -## 5.0.2 (2017-03-30) - -### Bug fixes - -A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error. - -## 5.0.0 (2017-03-28) - -### Bug fixes - -Raise an error for duplicated lexical bindings. - -Fix spurious error when an assignement expression occurred after a spread expression. - -Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions. - -Allow labels in front or `var` declarations, even in strict mode. - -### Breaking changes - -Parse declarations following `export default` as declaration nodes, not expressions. This means that class and function declarations nodes can now have `null` as their `id`. - -## 4.0.11 (2017-02-07) - -### Bug fixes - -Allow all forms of member expressions to be parenthesized as lvalue. - -## 4.0.10 (2017-02-07) - -### Bug fixes - -Don't expect semicolons after default-exported functions or classes, even when they are expressions. - -Check for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode. - -## 4.0.9 (2017-02-06) - -### Bug fixes - -Fix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again. - -## 4.0.8 (2017-02-03) - -### Bug fixes - -Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet. - -## 4.0.7 (2017-02-02) - -### Bug fixes - -Accept invalidly rejected code like `(x).y = 2` again. - -Don't raise an error when a function _inside_ strict code has a non-simple parameter list. - -## 4.0.6 (2017-02-02) - -### Bug fixes - -Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check. - -## 4.0.5 (2017-02-02) - -### Bug fixes - -Disallow parenthesized pattern expressions. - -Allow keywords as export names. - -Don't allow the `async` keyword to be parenthesized. - -Properly raise an error when a keyword contains a character escape. - -Allow `"use strict"` to appear after other string literal expressions. - -Disallow labeled declarations. - -## 4.0.4 (2016-12-19) - -### Bug fixes - -Fix crash when `export` was followed by a keyword that can't be -exported. - -## 4.0.3 (2016-08-16) - -### Bug fixes - -Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode. - -Properly parse properties named `async` in ES2017 mode. - -Fix bug where reserved words were broken in ES2017 mode. - -## 4.0.2 (2016-08-11) - -### Bug fixes - -Don't ignore period or 'e' characters after octal numbers. - -Fix broken parsing for call expressions in default parameter values of arrow functions. - -## 4.0.1 (2016-08-08) - -### Bug fixes - -Fix false positives in duplicated export name errors. - -## 4.0.0 (2016-08-07) - -### Breaking changes - -The default `ecmaVersion` option value is now 7. - -A number of internal method signatures changed, so plugins might need to be updated. - -### Bug fixes - -The parser now raises errors on duplicated export names. - -`arguments` and `eval` can now be used in shorthand properties. - -Duplicate parameter names in non-simple argument lists now always produce an error. - -### New features - -The `ecmaVersion` option now also accepts year-style version numbers -(2015, etc). - -Support for `async`/`await` syntax when `ecmaVersion` is >= 8. - -Support for trailing commas in call expressions when `ecmaVersion` is >= 8. - -## 3.3.0 (2016-07-25) - -### Bug fixes - -Fix bug in tokenizing of regexp operator after a function declaration. - -Fix parser crash when parsing an array pattern with a hole. - -### New features - -Implement check against complex argument lists in functions that enable strict mode in ES7. - -## 3.2.0 (2016-06-07) - -### Bug fixes - -Improve handling of lack of unicode regexp support in host -environment. - -Properly reject shorthand properties whose name is a keyword. - -### New features - -Visitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object. - -## 3.1.0 (2016-04-18) - -### Bug fixes - -Properly tokenize the division operator directly after a function expression. - -Allow trailing comma in destructuring arrays. - -## 3.0.4 (2016-02-25) - -### Fixes - -Allow update expressions as left-hand-side of the ES7 exponential operator. - -## 3.0.2 (2016-02-10) - -### Fixes - -Fix bug that accidentally made `undefined` a reserved word when parsing ES7. - -## 3.0.0 (2016-02-10) - -### Breaking changes - -The default value of the `ecmaVersion` option is now 6 (used to be 5). - -Support for comprehension syntax (which was dropped from the draft spec) has been removed. - -### Fixes - -`let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code. - -A parenthesized class or function expression after `export default` is now parsed correctly. - -### New features - -When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`). - -The identifier character ranges are now based on Unicode 8.0.0. - -Plugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled. - -## 2.7.0 (2016-01-04) - -### Fixes - -Stop allowing rest parameters in setters. - -Disallow `y` rexexp flag in ES5. - -Disallow `\00` and `\000` escapes in strict mode. - -Raise an error when an import name is a reserved word. - -## 2.6.2 (2015-11-10) - -### Fixes - -Don't crash when no options object is passed. - -## 2.6.0 (2015-11-09) - -### Fixes - -Add `await` as a reserved word in module sources. - -Disallow `yield` in a parameter default value for a generator. - -Forbid using a comma after a rest pattern in an array destructuring. - -### New features - -Support parsing stdin in command-line tool. - -## 2.5.0 (2015-10-27) - -### Fixes - -Fix tokenizer support in the command-line tool. - -Stop allowing `new.target` outside of functions. - -Remove legacy `guard` and `guardedHandler` properties from try nodes. - -Stop allowing multiple `__proto__` properties on an object literal in strict mode. - -Don't allow rest parameters to be non-identifier patterns. - -Check for duplicate paramter names in arrow functions. diff --git a/env_xbb_lastest_cheerio/node_modules/acorn/LICENSE b/env_xbb_lastest_cheerio/node_modules/acorn/LICENSE deleted file mode 100644 index 9d71cc63..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (C) 2012-2022 by various contributors (see AUTHORS) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/env_xbb_lastest_cheerio/node_modules/acorn/README.md b/env_xbb_lastest_cheerio/node_modules/acorn/README.md deleted file mode 100644 index 61e7dd35..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn/README.md +++ /dev/null @@ -1,273 +0,0 @@ -# Acorn - -A tiny, fast JavaScript parser written in JavaScript. - -## Community - -Acorn is open source software released under an -[MIT license](https://github.com/acornjs/acorn/blob/master/acorn/LICENSE). - -You are welcome to -[report bugs](https://github.com/acornjs/acorn/issues) or create pull -requests on [github](https://github.com/acornjs/acorn). For questions -and discussion, please use the -[Tern discussion forum](https://discuss.ternjs.net). - -## Installation - -The easiest way to install acorn is from [`npm`](https://www.npmjs.com/): - -```sh -npm install acorn -``` - -Alternately, you can download the source and build acorn yourself: - -```sh -git clone https://github.com/acornjs/acorn.git -cd acorn -npm install -``` - -## Interface - -**parse**`(input, options)` is the main interface to the library. The -`input` parameter is a string, `options` must be an object setting -some of the options listed below. The return value will be an abstract -syntax tree object as specified by the [ESTree -spec](https://github.com/estree/estree). - -```javascript -let acorn = require("acorn"); -console.log(acorn.parse("1 + 1", {ecmaVersion: 2020})); -``` - -When encountering a syntax error, the parser will raise a -`SyntaxError` object with a meaningful message. The error object will -have a `pos` property that indicates the string offset at which the -error occurred, and a `loc` object that contains a `{line, column}` -object referring to that same position. - -Options are provided by in a second argument, which should be an -object containing any of these fields (only `ecmaVersion` is -required): - -- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be - either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019), - 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` (the - latest the library supports). This influences support for strict - mode, the set of reserved words, and support for new syntax - features. - - **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being - implemented by Acorn. Other proposed new features must be - implemented through plugins. - -- **sourceType**: Indicate the mode the code should be parsed in. Can be - either `"script"` or `"module"`. This influences global strict mode - and parsing of `import` and `export` declarations. - - **NOTE**: If set to `"module"`, then static `import` / `export` syntax - will be valid, even if `ecmaVersion` is less than 6. - -- **onInsertedSemicolon**: If given a callback, that callback will be - called whenever a missing semicolon is inserted by the parser. The - callback will be given the character offset of the point where the - semicolon is inserted as argument, and if `locations` is on, also a - `{line, column}` object representing this position. - -- **onTrailingComma**: Like `onInsertedSemicolon`, but for trailing - commas. - -- **allowReserved**: If `false`, using a reserved word will generate - an error. Defaults to `true` for `ecmaVersion` 3, `false` for higher - versions. When given the value `"never"`, reserved words and - keywords can also not be used as property names (as in Internet - Explorer's old parser). - -- **allowReturnOutsideFunction**: By default, a return statement at - the top level raises an error. Set this to `true` to accept such - code. - -- **allowImportExportEverywhere**: By default, `import` and `export` - declarations can only appear at a program's top level. Setting this - option to `true` allows them anywhere where a statement is allowed, - and also allows `import.meta` expressions to appear in scripts - (when `sourceType` is not `"module"`). - -- **allowAwaitOutsideFunction**: If `false`, `await` expressions can - only appear inside `async` functions. Defaults to `true` for - `ecmaVersion` 2022 and later, `false` for lower versions. Setting this option to - `true` allows to have top-level `await` expressions. They are - still not allowed in non-`async` functions, though. - -- **allowSuperOutsideMethod**: By default, `super` outside a method - raises an error. Set this to `true` to accept such code. - -- **allowHashBang**: When this is enabled, if the code starts with the - characters `#!` (as in a shellscript), the first line will be - treated as a comment. Defaults to true when `ecmaVersion` >= 2023. - -- **locations**: When `true`, each node has a `loc` object attached - with `start` and `end` subobjects, each of which contains the - one-based line and zero-based column numbers in `{line, column}` - form. Default is `false`. - -- **onToken**: If a function is passed for this option, each found - token will be passed in same format as tokens returned from - `tokenizer().getToken()`. - - If array is passed, each found token is pushed to it. - - Note that you are not allowed to call the parser from the - callback—that will corrupt its internal state. - -- **onComment**: If a function is passed for this option, whenever a - comment is encountered the function will be called with the - following parameters: - - - `block`: `true` if the comment is a block comment, false if it - is a line comment. - - `text`: The content of the comment. - - `start`: Character offset of the start of the comment. - - `end`: Character offset of the end of the comment. - - When the `locations` options is on, the `{line, column}` locations - of the comment’s start and end are passed as two additional - parameters. - - If array is passed for this option, each found comment is pushed - to it as object in Esprima format: - - ```javascript - { - "type": "Line" | "Block", - "value": "comment text", - "start": Number, - "end": Number, - // If `locations` option is on: - "loc": { - "start": {line: Number, column: Number} - "end": {line: Number, column: Number} - }, - // If `ranges` option is on: - "range": [Number, Number] - } - ``` - - Note that you are not allowed to call the parser from the - callback—that will corrupt its internal state. - -- **ranges**: Nodes have their start and end characters offsets - recorded in `start` and `end` properties (directly on the node, - rather than the `loc` object, which holds line/column data. To also - add a - [semi-standardized](https://bugzilla.mozilla.org/show_bug.cgi?id=745678) - `range` property holding a `[start, end]` array with the same - numbers, set the `ranges` option to `true`. - -- **program**: It is possible to parse multiple files into a single - AST by passing the tree produced by parsing the first file as the - `program` option in subsequent parses. This will add the toplevel - forms of the parsed file to the "Program" (top) node of an existing - parse tree. - -- **sourceFile**: When the `locations` option is `true`, you can pass - this option to add a `source` attribute in every node’s `loc` - object. Note that the contents of this option are not examined or - processed in any way; you are free to use whatever format you - choose. - -- **directSourceFile**: Like `sourceFile`, but a `sourceFile` property - will be added (regardless of the `location` option) directly to the - nodes, rather than the `loc` object. - -- **preserveParens**: If this option is `true`, parenthesized expressions - are represented by (non-standard) `ParenthesizedExpression` nodes - that have a single `expression` property containing the expression - inside parentheses. - -**parseExpressionAt**`(input, offset, options)` will parse a single -expression in a string, and return its AST. It will not complain if -there is more of the string left after the expression. - -**tokenizer**`(input, options)` returns an object with a `getToken` -method that can be called repeatedly to get the next token, a `{start, -end, type, value}` object (with added `loc` property when the -`locations` option is enabled and `range` property when the `ranges` -option is enabled). When the token's type is `tokTypes.eof`, you -should stop calling the method, since it will keep returning that same -token forever. - -In ES6 environment, returned result can be used as any other -protocol-compliant iterable: - -```javascript -for (let token of acorn.tokenizer(str)) { - // iterate over the tokens -} - -// transform code to array of tokens: -var tokens = [...acorn.tokenizer(str)]; -``` - -**tokTypes** holds an object mapping names to the token type objects -that end up in the `type` properties of tokens. - -**getLineInfo**`(input, offset)` can be used to get a `{line, -column}` object for a given program string and offset. - -### The `Parser` class - -Instances of the **`Parser`** class contain all the state and logic -that drives a parse. It has static methods `parse`, -`parseExpressionAt`, and `tokenizer` that match the top-level -functions by the same name. - -When extending the parser with plugins, you need to call these methods -on the extended version of the class. To extend a parser with plugins, -you can use its static `extend` method. - -```javascript -var acorn = require("acorn"); -var jsx = require("acorn-jsx"); -var JSXParser = acorn.Parser.extend(jsx()); -JSXParser.parse("foo()", {ecmaVersion: 2020}); -``` - -The `extend` method takes any number of plugin values, and returns a -new `Parser` class that includes the extra parser logic provided by -the plugins. - -## Command line interface - -The `bin/acorn` utility can be used to parse a file from the command -line. It accepts as arguments its input file and the following -options: - -- `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|--ecma10`: Sets the ECMAScript version - to parse. Default is version 9. - -- `--module`: Sets the parsing mode to `"module"`. Is set to `"script"` otherwise. - -- `--locations`: Attaches a "loc" object to each node with "start" and - "end" subobjects, each of which contains the one-based line and - zero-based column numbers in `{line, column}` form. - -- `--allow-hash-bang`: If the code starts with the characters #! (as - in a shellscript), the first line will be treated as a comment. - -- `--allow-await-outside-function`: Allows top-level `await` expressions. - See the `allowAwaitOutsideFunction` option for more information. - -- `--compact`: No whitespace is used in the AST output. - -- `--silent`: Do not output the AST, just return the exit status. - -- `--help`: Print the usage information and quit. - -The utility spits out the syntax tree as JSON data. - -## Existing plugins - - - [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx) diff --git a/env_xbb_lastest_cheerio/node_modules/acorn/bin/acorn b/env_xbb_lastest_cheerio/node_modules/acorn/bin/acorn deleted file mode 100644 index 3ef3c124..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn/bin/acorn +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env node -"use strict" - -require("../dist/bin.js") diff --git a/env_xbb_lastest_cheerio/node_modules/acorn/dist/acorn.d.ts b/env_xbb_lastest_cheerio/node_modules/acorn/dist/acorn.d.ts deleted file mode 100644 index 870d59d8..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn/dist/acorn.d.ts +++ /dev/null @@ -1,252 +0,0 @@ -export as namespace acorn -export = acorn - -declare namespace acorn { - function parse(input: string, options: Options): Node - - function parseExpressionAt(input: string, pos: number, options: Options): Node - - function tokenizer(input: string, options: Options): { - getToken(): Token - [Symbol.iterator](): Iterator - } - - type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 'latest' - - interface Options { - ecmaVersion: ecmaVersion - sourceType?: 'script' | 'module' - onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void - onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void - allowReserved?: boolean | 'never' - allowReturnOutsideFunction?: boolean - allowImportExportEverywhere?: boolean - allowAwaitOutsideFunction?: boolean - allowSuperOutsideMethod?: boolean - allowHashBang?: boolean - locations?: boolean - onToken?: ((token: Token) => any) | Token[] - onComment?: (( - isBlock: boolean, text: string, start: number, end: number, startLoc?: Position, - endLoc?: Position - ) => void) | Comment[] - ranges?: boolean - program?: Node - sourceFile?: string - directSourceFile?: string - preserveParens?: boolean - } - - class Parser { - // state.js - lineStart: number; - options: Options; - curLine: number; - start: number; - end: number; - input: string; - type: TokenType; - - // state.js - constructor(options: Options, input: string, startPos?: number) - parse(this: Parser): Node - - // tokenize.js - next(): void; - nextToken(): void; - - // statement.js - parseTopLevel(node: Node): Node; - - // node.js - finishNode(node: Node, type: string): Node; - finishNodeAt(node: Node, type: string, pos: number, loc: Position): Node; - - // location.js - raise(pos: number, message: string) : void; - raiseRecoverable?(pos: number, message: string) : void; - - // parseutils.js - unexpected(pos: number) : void; - - // index.js - static acorn: typeof acorn; - - // state.js - static parse(this: typeof Parser, input: string, options: Options): Node - static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node - static tokenizer(this: typeof Parser, input: string, options: Options): { - getToken(): Token - [Symbol.iterator](): Iterator - } - static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser - } - - interface Position { line: number; column: number; offset: number } - - const defaultOptions: Options - - function getLineInfo(input: string, offset: number): Position - - class SourceLocation { - start: Position - end: Position - source?: string | null - constructor(p: Parser, start: Position, end: Position) - } - - class Node { - type: string - start: number - end: number - loc?: SourceLocation - sourceFile?: string - range?: [number, number] - constructor(parser: Parser, pos: number, loc?: SourceLocation) - } - - class TokenType { - label: string - keyword: string - beforeExpr: boolean - startsExpr: boolean - isLoop: boolean - isAssign: boolean - prefix: boolean - postfix: boolean - binop: number - updateContext?: (prevType: TokenType) => void - constructor(label: string, conf?: any) - } - - const tokTypes: { - num: TokenType - regexp: TokenType - string: TokenType - name: TokenType - privateId: TokenType - eof: TokenType - bracketL: TokenType - bracketR: TokenType - braceL: TokenType - braceR: TokenType - parenL: TokenType - parenR: TokenType - comma: TokenType - semi: TokenType - colon: TokenType - dot: TokenType - question: TokenType - questionDot: TokenType - arrow: TokenType - template: TokenType - invalidTemplate: TokenType - ellipsis: TokenType - backQuote: TokenType - dollarBraceL: TokenType - eq: TokenType - assign: TokenType - incDec: TokenType - prefix: TokenType - logicalOR: TokenType - logicalAND: TokenType - bitwiseOR: TokenType - bitwiseXOR: TokenType - bitwiseAND: TokenType - equality: TokenType - relational: TokenType - bitShift: TokenType - plusMin: TokenType - modulo: TokenType - star: TokenType - slash: TokenType - starstar: TokenType - coalesce: TokenType - _break: TokenType - _case: TokenType - _catch: TokenType - _continue: TokenType - _debugger: TokenType - _default: TokenType - _do: TokenType - _else: TokenType - _finally: TokenType - _for: TokenType - _function: TokenType - _if: TokenType - _return: TokenType - _switch: TokenType - _throw: TokenType - _try: TokenType - _var: TokenType - _const: TokenType - _while: TokenType - _with: TokenType - _new: TokenType - _this: TokenType - _super: TokenType - _class: TokenType - _extends: TokenType - _export: TokenType - _import: TokenType - _null: TokenType - _true: TokenType - _false: TokenType - _in: TokenType - _instanceof: TokenType - _typeof: TokenType - _void: TokenType - _delete: TokenType - } - - class TokContext { - constructor(token: string, isExpr: boolean, preserveSpace: boolean, override?: (p: Parser) => void) - } - - const tokContexts: { - b_stat: TokContext - b_expr: TokContext - b_tmpl: TokContext - p_stat: TokContext - p_expr: TokContext - q_tmpl: TokContext - f_expr: TokContext - f_stat: TokContext - f_expr_gen: TokContext - f_gen: TokContext - } - - function isIdentifierStart(code: number, astral?: boolean): boolean - - function isIdentifierChar(code: number, astral?: boolean): boolean - - interface AbstractToken { - } - - interface Comment extends AbstractToken { - type: 'Line' | 'Block' - value: string - start: number - end: number - loc?: SourceLocation - range?: [number, number] - } - - class Token { - type: TokenType - value: any - start: number - end: number - loc?: SourceLocation - range?: [number, number] - constructor(p: Parser) - } - - function isNewLine(code: number): boolean - - const lineBreak: RegExp - - const lineBreakG: RegExp - - const version: string -} diff --git a/env_xbb_lastest_cheerio/node_modules/acorn/dist/acorn.js b/env_xbb_lastest_cheerio/node_modules/acorn/dist/acorn.js deleted file mode 100644 index f623ebc9..00000000 --- a/env_xbb_lastest_cheerio/node_modules/acorn/dist/acorn.js +++ /dev/null @@ -1,5608 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {})); -})(this, (function (exports) { 'use strict'; - - // This file was generated. Do not modify manually! - var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; - - // This file was generated. Do not modify manually! - var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191]; - - // This file was generated. Do not modify manually! - var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f"; - - // This file was generated. Do not modify manually! - var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; - - // These are a run-length and offset encoded representation of the - - // Reserved word lists for various dialects of the language - - var reservedWords = { - 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", - 5: "class enum extends super const export import", - 6: "enum", - strict: "implements interface let package private protected public static yield", - strictBind: "eval arguments" - }; - - // And the keywords - - var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"; - - var keywords$1 = { - 5: ecma5AndLessKeywords, - "5module": ecma5AndLessKeywords + " export import", - 6: ecma5AndLessKeywords + " const class extends export import super" - }; - - var keywordRelationalOperator = /^in(stanceof)?$/; - - // ## Character categories - - var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); - var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); - - // This has a complexity linear to the value of the code. The - // assumption is that looking up astral identifier characters is - // rare. - function isInAstralSet(code, set) { - var pos = 0x10000; - for (var i = 0; i < set.length; i += 2) { - pos += set[i]; - if (pos > code) { return false } - pos += set[i + 1]; - if (pos >= code) { return true } - } - return false - } - - // Test whether a given character code starts an identifier. - - function isIdentifierStart(code, astral) { - if (code < 65) { return code === 36 } - if (code < 91) { return true } - if (code < 97) { return code === 95 } - if (code < 123) { return true } - if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) } - if (astral === false) { return false } - return isInAstralSet(code, astralIdentifierStartCodes) - } - - // Test whether a given character is part of an identifier. - - function isIdentifierChar(code, astral) { - if (code < 48) { return code === 36 } - if (code < 58) { return true } - if (code < 65) { return false } - if (code < 91) { return true } - if (code < 97) { return code === 95 } - if (code < 123) { return true } - if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) } - if (astral === false) { return false } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes) - } - - // ## Token types - - // The assignment of fine-grained, information-carrying type objects - // allows the tokenizer to store the information it has about a - // token in a way that is very cheap for the parser to look up. - - // All token type variables start with an underscore, to make them - // easy to recognize. - - // The `beforeExpr` property is used to disambiguate between regular - // expressions and divisions. It is set on all token types that can - // be followed by an expression (thus, a slash after them would be a - // regular expression). - // - // The `startsExpr` property is used to check if the token ends a - // `yield` expression. It is set on all token types that either can - // directly start an expression (like a quotation mark) or can - // continue an expression (like the body of a string). - // - // `isLoop` marks a keyword as starting a loop, which is important - // to know when parsing a label, in order to allow or disallow - // continue jumps to that label. - - var TokenType = function TokenType(label, conf) { - if ( conf === void 0 ) conf = {}; - - this.label = label; - this.keyword = conf.keyword; - this.beforeExpr = !!conf.beforeExpr; - this.startsExpr = !!conf.startsExpr; - this.isLoop = !!conf.isLoop; - this.isAssign = !!conf.isAssign; - this.prefix = !!conf.prefix; - this.postfix = !!conf.postfix; - this.binop = conf.binop || null; - this.updateContext = null; - }; - - function binop(name, prec) { - return new TokenType(name, {beforeExpr: true, binop: prec}) - } - var beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true}; - - // Map keyword names to token types. - - var keywords = {}; - - // Succinct definitions of keyword token types - function kw(name, options) { - if ( options === void 0 ) options = {}; - - options.keyword = name; - return keywords[name] = new TokenType(name, options) - } - - var types$1 = { - num: new TokenType("num", startsExpr), - regexp: new TokenType("regexp", startsExpr), - string: new TokenType("string", startsExpr), - name: new TokenType("name", startsExpr), - privateId: new TokenType("privateId", startsExpr), - eof: new TokenType("eof"), - - // Punctuation token types. - bracketL: new TokenType("[", {beforeExpr: true, startsExpr: true}), - bracketR: new TokenType("]"), - braceL: new TokenType("{", {beforeExpr: true, startsExpr: true}), - braceR: new TokenType("}"), - parenL: new TokenType("(", {beforeExpr: true, startsExpr: true}), - parenR: new TokenType(")"), - comma: new TokenType(",", beforeExpr), - semi: new TokenType(";", beforeExpr), - colon: new TokenType(":", beforeExpr), - dot: new TokenType("."), - question: new TokenType("?", beforeExpr), - questionDot: new TokenType("?."), - arrow: new TokenType("=>", beforeExpr), - template: new TokenType("template"), - invalidTemplate: new TokenType("invalidTemplate"), - ellipsis: new TokenType("...", beforeExpr), - backQuote: new TokenType("`", startsExpr), - dollarBraceL: new TokenType("${", {beforeExpr: true, startsExpr: true}), - - // Operators. These carry several kinds of properties to help the - // parser use them properly (the presence of these properties is - // what categorizes them as operators). - // - // `binop`, when present, specifies that this operator is a binary - // operator, and will refer to its precedence. - // - // `prefix` and `postfix` mark the operator as a prefix or postfix - // unary operator. - // - // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as - // binary operators with a very low precedence, that should result - // in AssignmentExpression nodes. - - eq: new TokenType("=", {beforeExpr: true, isAssign: true}), - assign: new TokenType("_=", {beforeExpr: true, isAssign: true}), - incDec: new TokenType("++/--", {prefix: true, postfix: true, startsExpr: true}), - prefix: new TokenType("!/~", {beforeExpr: true, prefix: true, startsExpr: true}), - logicalOR: binop("||", 1), - logicalAND: binop("&&", 2), - bitwiseOR: binop("|", 3), - bitwiseXOR: binop("^", 4), - bitwiseAND: binop("&", 5), - equality: binop("==/!=/===/!==", 6), - relational: binop("/<=/>=", 7), - bitShift: binop("<>/>>>", 8), - plusMin: new TokenType("+/-", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}), - modulo: binop("%", 10), - star: binop("*", 10), - slash: binop("/", 10), - starstar: new TokenType("**", {beforeExpr: true}), - coalesce: binop("??", 1), - - // Keyword token types. - _break: kw("break"), - _case: kw("case", beforeExpr), - _catch: kw("catch"), - _continue: kw("continue"), - _debugger: kw("debugger"), - _default: kw("default", beforeExpr), - _do: kw("do", {isLoop: true, beforeExpr: true}), - _else: kw("else", beforeExpr), - _finally: kw("finally"), - _for: kw("for", {isLoop: true}), - _function: kw("function", startsExpr), - _if: kw("if"), - _return: kw("return", beforeExpr), - _switch: kw("switch"), - _throw: kw("throw", beforeExpr), - _try: kw("try"), - _var: kw("var"), - _const: kw("const"), - _while: kw("while", {isLoop: true}), - _with: kw("with"), - _new: kw("new", {beforeExpr: true, startsExpr: true}), - _this: kw("this", startsExpr), - _super: kw("super", startsExpr), - _class: kw("class", startsExpr), - _extends: kw("extends", beforeExpr), - _export: kw("export"), - _import: kw("import", startsExpr), - _null: kw("null", startsExpr), - _true: kw("true", startsExpr), - _false: kw("false", startsExpr), - _in: kw("in", {beforeExpr: true, binop: 7}), - _instanceof: kw("instanceof", {beforeExpr: true, binop: 7}), - _typeof: kw("typeof", {beforeExpr: true, prefix: true, startsExpr: true}), - _void: kw("void", {beforeExpr: true, prefix: true, startsExpr: true}), - _delete: kw("delete", {beforeExpr: true, prefix: true, startsExpr: true}) - }; - - // Matches a whole line break (where CRLF is considered a single - // line break). Used to count lines. - - var lineBreak = /\r\n?|\n|\u2028|\u2029/; - var lineBreakG = new RegExp(lineBreak.source, "g"); - - function isNewLine(code) { - return code === 10 || code === 13 || code === 0x2028 || code === 0x2029 - } - - function nextLineBreak(code, from, end) { - if ( end === void 0 ) end = code.length; - - for (var i = from; i < end; i++) { - var next = code.charCodeAt(i); - if (isNewLine(next)) - { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 } - } - return -1 - } - - var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/; - - var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; - - var ref = Object.prototype; - var hasOwnProperty = ref.hasOwnProperty; - var toString = ref.toString; - - var hasOwn = Object.hasOwn || (function (obj, propName) { return ( - hasOwnProperty.call(obj, propName) - ); }); - - var isArray = Array.isArray || (function (obj) { return ( - toString.call(obj) === "[object Array]" - ); }); - - function wordsRegexp(words) { - return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$") - } - - function codePointToString(code) { - // UTF-16 Decoding - if (code <= 0xFFFF) { return String.fromCharCode(code) } - code -= 0x10000; - return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00) - } - - var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/; - - // These are used when `options.locations` is on, for the - // `startLoc` and `endLoc` properties. - - var Position = function Position(line, col) { - this.line = line; - this.column = col; - }; - - Position.prototype.offset = function offset (n) { - return new Position(this.line, this.column + n) - }; - - var SourceLocation = function SourceLocation(p, start, end) { - this.start = start; - this.end = end; - if (p.sourceFile !== null) { this.source = p.sourceFile; } - }; - - // The `getLineInfo` function is mostly useful when the - // `locations` option is off (for performance reasons) and you - // want to find the line/column position for a given character - // offset. `input` should be the code string that the offset refers - // into. - - function getLineInfo(input, offset) { - for (var line = 1, cur = 0;;) { - var nextBreak = nextLineBreak(input, cur, offset); - if (nextBreak < 0) { return new Position(line, offset - cur) } - ++line; - cur = nextBreak; - } - } - - // A second argument must be given to configure the parser process. - // These options are recognized (only `ecmaVersion` is required): - - var defaultOptions = { - // `ecmaVersion` indicates the ECMAScript version to parse. Must be - // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 - // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` - // (the latest version the library supports). This influences - // support for strict mode, the set of reserved words, and support - // for new syntax features. - ecmaVersion: null, - // `sourceType` indicates the mode the code should be parsed in. - // Can be either `"script"` or `"module"`. This influences global - // strict mode and parsing of `import` and `export` declarations. - sourceType: "script", - // `onInsertedSemicolon` can be a callback that will be called - // when a semicolon is automatically inserted. It will be passed - // the position of the comma as an offset, and if `locations` is - // enabled, it is given the location as a `{line, column}` object - // as second argument. - onInsertedSemicolon: null, - // `onTrailingComma` is similar to `onInsertedSemicolon`, but for - // trailing commas. - onTrailingComma: null, - // By default, reserved words are only enforced if ecmaVersion >= 5. - // Set `allowReserved` to a boolean value to explicitly turn this on - // an off. When this option has the value "never", reserved words - // and keywords can also not be used as property names. - allowReserved: null, - // When enabled, a return at the top level is not considered an - // error. - allowReturnOutsideFunction: false, - // When enabled, import/export statements are not constrained to - // appearing at the top of the program, and an import.meta expression - // in a script isn't considered an error. - allowImportExportEverywhere: false, - // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022. - // When enabled, await identifiers are allowed to appear at the top-level scope, - // but they are still not allowed in non-async functions. - allowAwaitOutsideFunction: null, - // When enabled, super identifiers are not constrained to - // appearing in methods and do not raise an error when they appear elsewhere. - allowSuperOutsideMethod: null, - // When enabled, hashbang directive in the beginning of file is - // allowed and treated as a line comment. Enabled by default when - // `ecmaVersion` >= 2023. - allowHashBang: false, - // When `locations` is on, `loc` properties holding objects with - // `start` and `end` properties in `{line, column}` form (with - // line being 1-based and column 0-based) will be attached to the - // nodes. - locations: false, - // A function can be passed as `onToken` option, which will - // cause Acorn to call that function with object in the same - // format as tokens returned from `tokenizer().getToken()`. Note - // that you are not allowed to call the parser from the - // callback—that will corrupt its internal state. - onToken: null, - // A function can be passed as `onComment` option, which will - // cause Acorn to call that function with `(block, text, start, - // end)` parameters whenever a comment is skipped. `block` is a - // boolean indicating whether this is a block (`/* */`) comment, - // `text` is the content of the comment, and `start` and `end` are - // character offsets that denote the start and end of the comment. - // When the `locations` option is on, two more parameters are - // passed, the full `{line, column}` locations of the start and - // end of the comments. Note that you are not allowed to call the - // parser from the callback—that will corrupt its internal state. - onComment: null, - // Nodes have their start and end characters offsets recorded in - // `start` and `end` properties (directly on the node, rather than - // the `loc` object, which holds line/column data. To also add a - // [semi-standardized][range] `range` property holding a `[start, - // end]` array with the same numbers, set the `ranges` option to - // `true`. - // - // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678 - ranges: false, - // It is possible to parse multiple files into a single AST by - // passing the tree produced by parsing the first file as - // `program` option in subsequent parses. This will add the - // toplevel forms of the parsed file to the `Program` (top) node - // of an existing parse tree. - program: null, - // When `locations` is on, you can pass this to record the source - // file in every node's `loc` object. - sourceFile: null, - // This value, if given, is stored in every node, whether - // `locations` is on or off. - directSourceFile: null, - // When enabled, parenthesized expressions are represented by - // (non-standard) ParenthesizedExpression nodes - preserveParens: false - }; - - // Interpret and default an options object - - var warnedAboutEcmaVersion = false; - - function getOptions(opts) { - var options = {}; - - for (var opt in defaultOptions) - { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; } - - if (options.ecmaVersion === "latest") { - options.ecmaVersion = 1e8; - } else if (options.ecmaVersion == null) { - if (!warnedAboutEcmaVersion && typeof console === "object" && console.warn) { - warnedAboutEcmaVersion = true; - console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future."); - } - options.ecmaVersion = 11; - } else if (options.ecmaVersion >= 2015) { - options.ecmaVersion -= 2009; - } - - if (options.allowReserved == null) - { options.allowReserved = options.ecmaVersion < 5; } - - if (!opts || opts.allowHashBang == null) - { options.allowHashBang = options.ecmaVersion >= 14; } - - if (isArray(options.onToken)) { - var tokens = options.onToken; - options.onToken = function (token) { return tokens.push(token); }; - } - if (isArray(options.onComment)) - { options.onComment = pushComment(options, options.onComment); } - - return options - } - - function pushComment(options, array) { - return function(block, text, start, end, startLoc, endLoc) { - var comment = { - type: block ? "Block" : "Line", - value: text, - start: start, - end: end - }; - if (options.locations) - { comment.loc = new SourceLocation(this, startLoc, endLoc); } - if (options.ranges) - { comment.range = [start, end]; } - array.push(comment); - } - } - - // Each scope gets a bitset that may contain these flags - var - SCOPE_TOP = 1, - SCOPE_FUNCTION = 2, - SCOPE_ASYNC = 4, - SCOPE_GENERATOR = 8, - SCOPE_ARROW = 16, - SCOPE_SIMPLE_CATCH = 32, - SCOPE_SUPER = 64, - SCOPE_DIRECT_SUPER = 128, - SCOPE_CLASS_STATIC_BLOCK = 256, - SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK; - - function functionFlags(async, generator) { - return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0) - } - - // Used in checkLVal* and declareName to determine the type of a binding - var - BIND_NONE = 0, // Not a binding - BIND_VAR = 1, // Var-style binding - BIND_LEXICAL = 2, // Let- or const-style binding - BIND_FUNCTION = 3, // Function declaration - BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding - BIND_OUTSIDE = 5; // Special case for function names as bound inside the function - - var Parser = function Parser(options, input, startPos) { - this.options = options = getOptions(options); - this.sourceFile = options.sourceFile; - this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]); - var reserved = ""; - if (options.allowReserved !== true) { - reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3]; - if (options.sourceType === "module") { reserved += " await"; } - } - this.reservedWords = wordsRegexp(reserved); - var reservedStrict = (reserved ? reserved + " " : "") + reservedWords.strict; - this.reservedWordsStrict = wordsRegexp(reservedStrict); - this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind); - this.input = String(input); - - // Used to signal to callers of `readWord1` whether the word - // contained any escape sequences. This is needed because words with - // escape sequences must not be interpreted as keywords. - this.containsEsc = false; - - // Set up token state - - // The current position of the tokenizer in the input. - if (startPos) { - this.pos = startPos; - this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1; - this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length; - } else { - this.pos = this.lineStart = 0; - this.curLine = 1; - } - - // Properties of the current token: - // Its type - this.type = types$1.eof; - // For tokens that include more information than their type, the value - this.value = null; - // Its start and end offset - this.start = this.end = this.pos; - // And, if locations are used, the {line, column} object - // corresponding to those offsets - this.startLoc = this.endLoc = this.curPosition(); - - // Position information for the previous token - this.lastTokEndLoc = this.lastTokStartLoc = null; - this.lastTokStart = this.lastTokEnd = this.pos; - - // The context stack is used to superficially track syntactic - // context to predict whether a regular expression is allowed in a - // given position. - this.context = this.initialContext(); - this.exprAllowed = true; - - // Figure out if it's a module code. - this.inModule = options.sourceType === "module"; - this.strict = this.inModule || this.strictDirective(this.pos); - - // Used to signify the start of a potential arrow function - this.potentialArrowAt = -1; - this.potentialArrowInForAwait = false; - - // Positions to delayed-check that yield/await does not exist in default parameters. - this.yieldPos = this.awaitPos = this.awaitIdentPos = 0; - // Labels in scope. - this.labels = []; - // Thus-far undefined exports. - this.undefinedExports = Object.create(null); - - // If enabled, skip leading hashbang line. - if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!") - { this.skipLineComment(2); } - - // Scope tracking for duplicate variable names (see scope.js) - this.scopeStack = []; - this.enterScope(SCOPE_TOP); - - // For RegExp validation - this.regexpState = null; - - // The stack of private names. - // Each element has two properties: 'declared' and 'used'. - // When it exited from the outermost class definition, all used private names must be declared. - this.privateNameStack = []; - }; - - var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } }; - - Parser.prototype.parse = function parse () { - var node = this.options.program || this.startNode(); - this.nextToken(); - return this.parseTopLevel(node) - }; - - prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 }; - - prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit }; - - prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit }; - - prototypeAccessors.canAwait.get = function () { - for (var i = this.scopeStack.length - 1; i >= 0; i--) { - var scope = this.scopeStack[i]; - if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false } - if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 } - } - return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction - }; - - prototypeAccessors.allowSuper.get = function () { - var ref = this.currentThisScope(); - var flags = ref.flags; - var inClassFieldInit = ref.inClassFieldInit; - return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod - }; - - prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 }; - - prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) }; - - prototypeAccessors.allowNewDotTarget.get = function () { - var ref = this.currentThisScope(); - var flags = ref.flags; - var inClassFieldInit = ref.inClassFieldInit; - return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit - }; - - prototypeAccessors.inClassStaticBlock.get = function () { - return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0 - }; - - Parser.extend = function extend () { - var plugins = [], len = arguments.length; - while ( len-- ) plugins[ len ] = arguments[ len ]; - - var cls = this; - for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); } - return cls - }; - - Parser.parse = function parse (input, options) { - return new this(options, input).parse() - }; - - Parser.parseExpressionAt = function parseExpressionAt (input, pos, options) { - var parser = new this(options, input, pos); - parser.nextToken(); - return parser.parseExpression() - }; - - Parser.tokenizer = function tokenizer (input, options) { - return new this(options, input) - }; - - Object.defineProperties( Parser.prototype, prototypeAccessors ); - - var pp$9 = Parser.prototype; - - // ## Parser utilities - - var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/; - pp$9.strictDirective = function(start) { - if (this.options.ecmaVersion < 5) { return false } - for (;;) { - // Try to find string literal. - skipWhiteSpace.lastIndex = start; - start += skipWhiteSpace.exec(this.input)[0].length; - var match = literal.exec(this.input.slice(start)); - if (!match) { return false } - if ((match[1] || match[2]) === "use strict") { - skipWhiteSpace.lastIndex = start + match[0].length; - var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length; - var next = this.input.charAt(end); - return next === ";" || next === "}" || - (lineBreak.test(spaceAfter[0]) && - !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=")) - } - start += match[0].length; - - // Skip semicolon, if any. - skipWhiteSpace.lastIndex = start; - start += skipWhiteSpace.exec(this.input)[0].length; - if (this.input[start] === ";") - { start++; } - } - }; - - // Predicate that tests whether the next token is of the given - // type, and if yes, consumes it as a side effect. - - pp$9.eat = function(type) { - if (this.type === type) { - this.next(); - return true - } else { - return false - } - }; - - // Tests whether parsed token is a contextual keyword. - - pp$9.isContextual = function(name) { - return this.type === types$1.name && this.value === name && !this.containsEsc - }; - - // Consumes contextual keyword if possible. - - pp$9.eatContextual = function(name) { - if (!this.isContextual(name)) { return false } - this.next(); - return true - }; - - // Asserts that following token is given contextual keyword. - - pp$9.expectContextual = function(name) { - if (!this.eatContextual(name)) { this.unexpected(); } - }; - - // Test whether a semicolon can be inserted at the current position. - - pp$9.canInsertSemicolon = function() { - return this.type === types$1.eof || - this.type === types$1.braceR || - lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) - }; - - pp$9.insertSemicolon = function() { - if (this.canInsertSemicolon()) { - if (this.options.onInsertedSemicolon) - { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); } - return true - } - }; - - // Consume a semicolon, or, failing that, see if we are allowed to - // pretend that there is a semicolon at this position. - - pp$9.semicolon = function() { - if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); } - }; - - pp$9.afterTrailingComma = function(tokType, notNext) { - if (this.type === tokType) { - if (this.options.onTrailingComma) - { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); } - if (!notNext) - { this.next(); } - return true - } - }; - - // Expect a token of a given type. If found, consume it, otherwise, - // raise an unexpected token error. - - pp$9.expect = function(type) { - this.eat(type) || this.unexpected(); - }; - - // Raise an unexpected token error. - - pp$9.unexpected = function(pos) { - this.raise(pos != null ? pos : this.start, "Unexpected token"); - }; - - var DestructuringErrors = function DestructuringErrors() { - this.shorthandAssign = - this.trailingComma = - this.parenthesizedAssign = - this.parenthesizedBind = - this.doubleProto = - -1; - }; - - pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) { - if (!refDestructuringErrors) { return } - if (refDestructuringErrors.trailingComma > -1) - { this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); } - var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind; - if (parens > -1) { this.raiseRecoverable(parens, isAssign ? "Assigning to rvalue" : "Parenthesized pattern"); } - }; - - pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) { - if (!refDestructuringErrors) { return false } - var shorthandAssign = refDestructuringErrors.shorthandAssign; - var doubleProto = refDestructuringErrors.doubleProto; - if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 } - if (shorthandAssign >= 0) - { this.raise(shorthandAssign, "Shorthand property assignments are valid only in destructuring patterns"); } - if (doubleProto >= 0) - { this.raiseRecoverable(doubleProto, "Redefinition of __proto__ property"); } - }; - - pp$9.checkYieldAwaitInDefaultParams = function() { - if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos)) - { this.raise(this.yieldPos, "Yield expression cannot be a default value"); } - if (this.awaitPos) - { this.raise(this.awaitPos, "Await expression cannot be a default value"); } - }; - - pp$9.isSimpleAssignTarget = function(expr) { - if (expr.type === "ParenthesizedExpression") - { return this.isSimpleAssignTarget(expr.expression) } - return expr.type === "Identifier" || expr.type === "MemberExpression" - }; - - var pp$8 = Parser.prototype; - - // ### Statement parsing - - // Parse a program. Initializes the parser, reads any number of - // statements, and wraps them in a Program node. Optionally takes a - // `program` argument. If present, the statements will be appended - // to its body instead of creating a new node. - - pp$8.parseTopLevel = function(node) { - var exports = Object.create(null); - if (!node.body) { node.body = []; } - while (this.type !== types$1.eof) { - var stmt = this.parseStatement(null, true, exports); - node.body.push(stmt); - } - if (this.inModule) - { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1) - { - var name = list[i]; - - this.raiseRecoverable(this.undefinedExports[name].start, ("Export '" + name + "' is not defined")); - } } - this.adaptDirectivePrologue(node.body); - this.next(); - node.sourceType = this.options.sourceType; - return this.finishNode(node, "Program") - }; - - var loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"}; - - pp$8.isLet = function(context) { - if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false } - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next); - // For ambiguous cases, determine if a LexicalDeclaration (or only a - // Statement) is allowed here. If context is not empty then only a Statement - // is allowed. However, `let [` is an explicit negative lookahead for - // ExpressionStatement, so special-case it first. - if (nextCh === 91 || nextCh === 92) { return true } // '[', '/' - if (context) { return false } - - if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral - if (isIdentifierStart(nextCh, true)) { - var pos = next + 1; - while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; } - if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } - var ident = this.input.slice(next, pos); - if (!keywordRelationalOperator.test(ident)) { return true } - } - return false - }; - - // check 'async [no LineTerminator here] function' - // - 'async /*foo*/ function' is OK. - // - 'async /*\n*/ function' is invalid. - pp$8.isAsyncFunction = function() { - if (this.options.ecmaVersion < 8 || !this.isContextual("async")) - { return false } - - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, after; - return !lineBreak.test(this.input.slice(this.pos, next)) && - this.input.slice(next, next + 8) === "function" && - (next + 8 === this.input.length || - !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00)) - }; - - // Parse a single statement. - // - // If expecting a statement and finding a slash operator, parse a - // regular expression literal. This is to handle cases like - // `if (foo) /blah/.exec(foo)`, where looking at the previous token - // does not help. - - pp$8.parseStatement = function(context, topLevel, exports) { - var starttype = this.type, node = this.startNode(), kind; - - if (this.isLet(context)) { - starttype = types$1._var; - kind = "let"; - } - - // Most types of statements are recognized by the keyword they - // start with. Many are trivial to parse, some require a bit of - // complexity. - - switch (starttype) { - case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword) - case types$1._debugger: return this.parseDebuggerStatement(node) - case types$1._do: return this.parseDoStatement(node) - case types$1._for: return this.parseForStatement(node) - case types$1._function: - // Function as sole body of either an if statement or a labeled statement - // works, but not when it is part of a labeled statement that is the sole - // body of an if statement. - if ((context && (this.strict || context !== "if" && context !== "label")) && this.options.ecmaVersion >= 6) { this.unexpected(); } - return this.parseFunctionStatement(node, false, !context) - case types$1._class: - if (context) { this.unexpected(); } - return this.parseClass(node, true) - case types$1._if: return this.parseIfStatement(node) - case types$1._return: return this.parseReturnStatement(node) - case types$1._switch: return this.parseSwitchStatement(node) - case types$1._throw: return this.parseThrowStatement(node) - case types$1._try: return this.parseTryStatement(node) - case types$1._const: case types$1._var: - kind = kind || this.value; - if (context && kind !== "var") { this.unexpected(); } - return this.parseVarStatement(node, kind) - case types$1._while: return this.parseWhileStatement(node) - case types$1._with: return this.parseWithStatement(node) - case types$1.braceL: return this.parseBlock(true, node) - case types$1.semi: return this.parseEmptyStatement(node) - case types$1._export: - case types$1._import: - if (this.options.ecmaVersion > 10 && starttype === types$1._import) { - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next); - if (nextCh === 40 || nextCh === 46) // '(' or '.' - { return this.parseExpressionStatement(node, this.parseExpression()) } - } - - if (!this.options.allowImportExportEverywhere) { - if (!topLevel) - { this.raise(this.start, "'import' and 'export' may only appear at the top level"); } - if (!this.inModule) - { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); } - } - return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports) - - // If the statement does not start with a statement keyword or a - // brace, it's an ExpressionStatement or LabeledStatement. We - // simply start parsing an expression, and afterwards, if the - // next token is a colon and the expression was a simple - // Identifier node, we switch to interpreting it as a label. - default: - if (this.isAsyncFunction()) { - if (context) { this.unexpected(); } - this.next(); - return this.parseFunctionStatement(node, true, !context) - } - - var maybeName = this.value, expr = this.parseExpression(); - if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon)) - { return this.parseLabeledStatement(node, maybeName, expr, context) } - else { return this.parseExpressionStatement(node, expr) } - } - }; - - pp$8.parseBreakContinueStatement = function(node, keyword) { - var isBreak = keyword === "break"; - this.next(); - if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; } - else if (this.type !== types$1.name) { this.unexpected(); } - else { - node.label = this.parseIdent(); - this.semicolon(); - } - - // Verify that there is an actual destination to break or - // continue to. - var i = 0; - for (; i < this.labels.length; ++i) { - var lab = this.labels[i]; - if (node.label == null || lab.name === node.label.name) { - if (lab.kind != null && (isBreak || lab.kind === "loop")) { break } - if (node.label && isBreak) { break } - } - } - if (i === this.labels.length) { this.raise(node.start, "Unsyntactic " + keyword); } - return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement") - }; - - pp$8.parseDebuggerStatement = function(node) { - this.next(); - this.semicolon(); - return this.finishNode(node, "DebuggerStatement") - }; - - pp$8.parseDoStatement = function(node) { - this.next(); - this.labels.push(loopLabel); - node.body = this.parseStatement("do"); - this.labels.pop(); - this.expect(types$1._while); - node.test = this.parseParenExpression(); - if (this.options.ecmaVersion >= 6) - { this.eat(types$1.semi); } - else - { this.semicolon(); } - return this.finishNode(node, "DoWhileStatement") - }; - - // Disambiguating between a `for` and a `for`/`in` or `for`/`of` - // loop is non-trivial. Basically, we have to parse the init `var` - // statement or expression, disallowing the `in` operator (see - // the second parameter to `parseExpression`), and then check - // whether the next token is `in` or `of`. When there is no init - // part (semicolon immediately after the opening parenthesis), it - // is a regular `for` loop. - - pp$8.parseForStatement = function(node) { - this.next(); - var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1; - this.labels.push(loopLabel); - this.enterScope(0); - this.expect(types$1.parenL); - if (this.type === types$1.semi) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, null) - } - var isLet = this.isLet(); - if (this.type === types$1._var || this.type === types$1._const || isLet) { - var init$1 = this.startNode(), kind = isLet ? "let" : this.value; - this.next(); - this.parseVar(init$1, true, kind); - this.finishNode(init$1, "VariableDeclaration"); - if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init$1.declarations.length === 1) { - if (this.options.ecmaVersion >= 9) { - if (this.type === types$1._in) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - } else { node.await = awaitAt > -1; } - } - return this.parseForIn(node, init$1) - } - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, init$1) - } - var startsWithLet = this.isContextual("let"), isForOf = false; - var refDestructuringErrors = new DestructuringErrors; - var init = this.parseExpression(awaitAt > -1 ? "await" : true, refDestructuringErrors); - if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) { - if (this.options.ecmaVersion >= 9) { - if (this.type === types$1._in) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - } else { node.await = awaitAt > -1; } - } - if (startsWithLet && isForOf) { this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."); } - this.toAssignable(init, false, refDestructuringErrors); - this.checkLValPattern(init); - return this.parseForIn(node, init) - } else { - this.checkExpressionErrors(refDestructuringErrors, true); - } - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, init) - }; - - pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) { - this.next(); - return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync) - }; - - pp$8.parseIfStatement = function(node) { - this.next(); - node.test = this.parseParenExpression(); - // allow function declarations in branches, but only in non-strict mode - node.consequent = this.parseStatement("if"); - node.alternate = this.eat(types$1._else) ? this.parseStatement("if") : null; - return this.finishNode(node, "IfStatement") - }; - - pp$8.parseReturnStatement = function(node) { - if (!this.inFunction && !this.options.allowReturnOutsideFunction) - { this.raise(this.start, "'return' outside of function"); } - this.next(); - - // In `return` (and `break`/`continue`), the keywords with - // optional arguments, we eagerly look for a semicolon or the - // possibility to insert one. - - if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; } - else { node.argument = this.parseExpression(); this.semicolon(); } - return this.finishNode(node, "ReturnStatement") - }; - - pp$8.parseSwitchStatement = function(node) { - this.next(); - node.discriminant = this.parseParenExpression(); - node.cases = []; - this.expect(types$1.braceL); - this.labels.push(switchLabel); - this.enterScope(0); - - // Statements under must be grouped (by label) in SwitchCase - // nodes. `cur` is used to keep the node that we are currently - // adding statements to. - - var cur; - for (var sawDefault = false; this.type !== types$1.braceR;) { - if (this.type === types$1._case || this.type === types$1._default) { - var isCase = this.type === types$1._case; - if (cur) { this.finishNode(cur, "SwitchCase"); } - node.cases.push(cur = this.startNode()); - cur.consequent = []; - this.next(); - if (isCase) { - cur.test = this.parseExpression(); - } else { - if (sawDefault) { this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"); } - sawDefault = true; - cur.test = null; - } - this.expect(types$1.colon); - } else { - if (!cur) { this.unexpected(); } - cur.consequent.push(this.parseStatement(null)); - } - } - this.exitScope(); - if (cur) { this.finishNode(cur, "SwitchCase"); } - this.next(); // Closing brace - this.labels.pop(); - return this.finishNode(node, "SwitchStatement") - }; - - pp$8.parseThrowStatement = function(node) { - this.next(); - if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) - { this.raise(this.lastTokEnd, "Illegal newline after throw"); } - node.argument = this.parseExpression(); - this.semicolon(); - return this.finishNode(node, "ThrowStatement") - }; - - // Reused empty array added for node fields that are always empty. - - var empty$1 = []; - - pp$8.parseTryStatement = function(node) { - this.next(); - node.block = this.parseBlock(); - node.handler = null; - if (this.type === types$1._catch) { - var clause = this.startNode(); - this.next(); - if (this.eat(types$1.parenL)) { - clause.param = this.parseBindingAtom(); - var simple = clause.param.type === "Identifier"; - this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0); - this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL); - this.expect(types$1.parenR); - } else { - if (this.options.ecmaVersion < 10) { this.unexpected(); } - clause.param = null; - this.enterScope(0); - } - clause.body = this.parseBlock(false); - this.exitScope(); - node.handler = this.finishNode(clause, "CatchClause"); - } - node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null; - if (!node.handler && !node.finalizer) - { this.raise(node.start, "Missing catch or finally clause"); } - return this.finishNode(node, "TryStatement") - }; - - pp$8.parseVarStatement = function(node, kind) { - this.next(); - this.parseVar(node, false, kind); - this.semicolon(); - return this.finishNode(node, "VariableDeclaration") - }; - - pp$8.parseWhileStatement = function(node) { - this.next(); - node.test = this.parseParenExpression(); - this.labels.push(loopLabel); - node.body = this.parseStatement("while"); - this.labels.pop(); - return this.finishNode(node, "WhileStatement") - }; - - pp$8.parseWithStatement = function(node) { - if (this.strict) { this.raise(this.start, "'with' in strict mode"); } - this.next(); - node.object = this.parseParenExpression(); - node.body = this.parseStatement("with"); - return this.finishNode(node, "WithStatement") - }; - - pp$8.parseEmptyStatement = function(node) { - this.next(); - return this.finishNode(node, "EmptyStatement") - }; - - pp$8.parseLabeledStatement = function(node, maybeName, expr, context) { - for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1) - { - var label = list[i$1]; - - if (label.name === maybeName) - { this.raise(expr.start, "Label '" + maybeName + "' is already declared"); - } } - var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null; - for (var i = this.labels.length - 1; i >= 0; i--) { - var label$1 = this.labels[i]; - if (label$1.statementStart === node.start) { - // Update information about previous labels on this node - label$1.statementStart = this.start; - label$1.kind = kind; - } else { break } - } - this.labels.push({name: maybeName, kind: kind, statementStart: this.start}); - node.body = this.parseStatement(context ? context.indexOf("label") === -1 ? context + "label" : context : "label"); - this.labels.pop(); - node.label = expr; - return this.finishNode(node, "LabeledStatement") - }; - - pp$8.parseExpressionStatement = function(node, expr) { - node.expression = expr; - this.semicolon(); - return this.finishNode(node, "ExpressionStatement") - }; - - // Parse a semicolon-enclosed block of statements, handling `"use - // strict"` declarations when `allowStrict` is true (used for - // function bodies). - - pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) { - if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true; - if ( node === void 0 ) node = this.startNode(); - - node.body = []; - this.expect(types$1.braceL); - if (createNewLexicalScope) { this.enterScope(0); } - while (this.type !== types$1.braceR) { - var stmt = this.parseStatement(null); - node.body.push(stmt); - } - if (exitStrict) { this.strict = false; } - this.next(); - if (createNewLexicalScope) { this.exitScope(); } - return this.finishNode(node, "BlockStatement") - }; - - // Parse a regular `for` loop. The disambiguation code in - // `parseStatement` will already have parsed the init statement or - // expression. - - pp$8.parseFor = function(node, init) { - node.init = init; - this.expect(types$1.semi); - node.test = this.type === types$1.semi ? null : this.parseExpression(); - this.expect(types$1.semi); - node.update = this.type === types$1.parenR ? null : this.parseExpression(); - this.expect(types$1.parenR); - node.body = this.parseStatement("for"); - this.exitScope(); - this.labels.pop(); - return this.finishNode(node, "ForStatement") - }; - - // Parse a `for`/`in` and `for`/`of` loop, which are almost - // same from parser's perspective. - - pp$8.parseForIn = function(node, init) { - var isForIn = this.type === types$1._in; - this.next(); - - if ( - init.type === "VariableDeclaration" && - init.declarations[0].init != null && - ( - !isForIn || - this.options.ecmaVersion < 8 || - this.strict || - init.kind !== "var" || - init.declarations[0].id.type !== "Identifier" - ) - ) { - this.raise( - init.start, - ((isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer") - ); - } - node.left = init; - node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign(); - this.expect(types$1.parenR); - node.body = this.parseStatement("for"); - this.exitScope(); - this.labels.pop(); - return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement") - }; - - // Parse a list of variable declarations. - - pp$8.parseVar = function(node, isFor, kind) { - node.declarations = []; - node.kind = kind; - for (;;) { - var decl = this.startNode(); - this.parseVarId(decl, kind); - if (this.eat(types$1.eq)) { - decl.init = this.parseMaybeAssign(isFor); - } else if (kind === "const" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) { - this.unexpected(); - } else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) { - this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value"); - } else { - decl.init = null; - } - node.declarations.push(this.finishNode(decl, "VariableDeclarator")); - if (!this.eat(types$1.comma)) { break } - } - return node - }; - - pp$8.parseVarId = function(decl, kind) { - decl.id = this.parseBindingAtom(); - this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false); - }; - - var FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4; - - // Parse a function declaration or literal (depending on the - // `statement & FUNC_STATEMENT`). - - // Remove `allowExpressionBody` for 7.0.0, as it is only called with false - pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) { - this.initFunction(node); - if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) { - if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT)) - { this.unexpected(); } - node.generator = this.eat(types$1.star); - } - if (this.options.ecmaVersion >= 8) - { node.async = !!isAsync; } - - if (statement & FUNC_STATEMENT) { - node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent(); - if (node.id && !(statement & FUNC_HANGING_STATEMENT)) - // If it is a regular function declaration in sloppy mode, then it is - // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding - // mode depends on properties of the current scope (see - // treatFunctionsAsVar). - { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); } - } - - var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - this.enterScope(functionFlags(node.async, node.generator)); - - if (!(statement & FUNC_STATEMENT)) - { node.id = this.type === types$1.name ? this.parseIdent() : null; } - - this.parseFunctionParams(node); - this.parseFunctionBody(node, allowExpressionBody, false, forInit); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, (statement & FUNC_STATEMENT) ? "FunctionDeclaration" : "FunctionExpression") - }; - - pp$8.parseFunctionParams = function(node) { - this.expect(types$1.parenL); - node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8); - this.checkYieldAwaitInDefaultParams(); - }; - - // Parse a class declaration or literal (depending on the - // `isStatement` parameter). - - pp$8.parseClass = function(node, isStatement) { - this.next(); - - // ecma-262 14.6 Class Definitions - // A class definition is always strict mode code. - var oldStrict = this.strict; - this.strict = true; - - this.parseClassId(node, isStatement); - this.parseClassSuper(node); - var privateNameMap = this.enterClassBody(); - var classBody = this.startNode(); - var hadConstructor = false; - classBody.body = []; - this.expect(types$1.braceL); - while (this.type !== types$1.braceR) { - var element = this.parseClassElement(node.superClass !== null); - if (element) { - classBody.body.push(element); - if (element.type === "MethodDefinition" && element.kind === "constructor") { - if (hadConstructor) { this.raise(element.start, "Duplicate constructor in the same class"); } - hadConstructor = true; - } else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) { - this.raiseRecoverable(element.key.start, ("Identifier '#" + (element.key.name) + "' has already been declared")); - } - } - } - this.strict = oldStrict; - this.next(); - node.body = this.finishNode(classBody, "ClassBody"); - this.exitClassBody(); - return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression") - }; - - pp$8.parseClassElement = function(constructorAllowsSuper) { - if (this.eat(types$1.semi)) { return null } - - var ecmaVersion = this.options.ecmaVersion; - var node = this.startNode(); - var keyName = ""; - var isGenerator = false; - var isAsync = false; - var kind = "method"; - var isStatic = false; - - if (this.eatContextual("static")) { - // Parse static init block - if (ecmaVersion >= 13 && this.eat(types$1.braceL)) { - this.parseClassStaticBlock(node); - return node - } - if (this.isClassElementNameStart() || this.type === types$1.star) { - isStatic = true; - } else { - keyName = "static"; - } - } - node.static = isStatic; - if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) { - if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) { - isAsync = true; - } else { - keyName = "async"; - } - } - if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) { - isGenerator = true; - } - if (!keyName && !isAsync && !isGenerator) { - var lastValue = this.value; - if (this.eatContextual("get") || this.eatContextual("set")) { - if (this.isClassElementNameStart()) { - kind = lastValue; - } else { - keyName = lastValue; - } - } - } - - // Parse element name - if (keyName) { - // 'async', 'get', 'set', or 'static' were not a keyword contextually. - // The last token is any of those. Make it the element name. - node.computed = false; - node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc); - node.key.name = keyName; - this.finishNode(node.key, "Identifier"); - } else { - this.parseClassElementName(node); - } - - // Parse element value - if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) { - var isConstructor = !node.static && checkKeyName(node, "constructor"); - var allowsDirectSuper = isConstructor && constructorAllowsSuper; - // Couldn't move this check into the 'parseClassMethod' method for backward compatibility. - if (isConstructor && kind !== "method") { this.raise(node.key.start, "Constructor can't have get/set modifier"); } - node.kind = isConstructor ? "constructor" : kind; - this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper); - } else { - this.parseClassField(node); - } - - return node - }; - - pp$8.isClassElementNameStart = function() { - return ( - this.type === types$1.name || - this.type === types$1.privateId || - this.type === types$1.num || - this.type === types$1.string || - this.type === types$1.bracketL || - this.type.keyword - ) - }; - - pp$8.parseClassElementName = function(element) { - if (this.type === types$1.privateId) { - if (this.value === "constructor") { - this.raise(this.start, "Classes can't have an element named '#constructor'"); - } - element.computed = false; - element.key = this.parsePrivateIdent(); - } else { - this.parsePropertyName(element); - } - }; - - pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) { - // Check key and flags - var key = method.key; - if (method.kind === "constructor") { - if (isGenerator) { this.raise(key.start, "Constructor can't be a generator"); } - if (isAsync) { this.raise(key.start, "Constructor can't be an async method"); } - } else if (method.static && checkKeyName(method, "prototype")) { - this.raise(key.start, "Classes may not have a static property named prototype"); - } - - // Parse value - var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper); - - // Check value - if (method.kind === "get" && value.params.length !== 0) - { this.raiseRecoverable(value.start, "getter should have no params"); } - if (method.kind === "set" && value.params.length !== 1) - { this.raiseRecoverable(value.start, "setter should have exactly one param"); } - if (method.kind === "set" && value.params[0].type === "RestElement") - { this.raiseRecoverable(value.params[0].start, "Setter cannot use rest params"); } - - return this.finishNode(method, "MethodDefinition") - }; - - pp$8.parseClassField = function(field) { - if (checkKeyName(field, "constructor")) { - this.raise(field.key.start, "Classes can't have a field named 'constructor'"); - } else if (field.static && checkKeyName(field, "prototype")) { - this.raise(field.key.start, "Classes can't have a static field named 'prototype'"); - } - - if (this.eat(types$1.eq)) { - // To raise SyntaxError if 'arguments' exists in the initializer. - var scope = this.currentThisScope(); - var inClassFieldInit = scope.inClassFieldInit; - scope.inClassFieldInit = true; - field.value = this.parseMaybeAssign(); - scope.inClassFieldInit = inClassFieldInit; - } else { - field.value = null; - } - this.semicolon(); - - return this.finishNode(field, "PropertyDefinition") - }; - - pp$8.parseClassStaticBlock = function(node) { - node.body = []; - - var oldLabels = this.labels; - this.labels = []; - this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER); - while (this.type !== types$1.braceR) { - var stmt = this.parseStatement(null); - node.body.push(stmt); - } - this.next(); - this.exitScope(); - this.labels = oldLabels; - - return this.finishNode(node, "StaticBlock") - }; - - pp$8.parseClassId = function(node, isStatement) { - if (this.type === types$1.name) { - node.id = this.parseIdent(); - if (isStatement) - { this.checkLValSimple(node.id, BIND_LEXICAL, false); } - } else { - if (isStatement === true) - { this.unexpected(); } - node.id = null; - } - }; - - pp$8.parseClassSuper = function(node) { - node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null; - }; - - pp$8.enterClassBody = function() { - var element = {declared: Object.create(null), used: []}; - this.privateNameStack.push(element); - return element.declared - }; - - pp$8.exitClassBody = function() { - var ref = this.privateNameStack.pop(); - var declared = ref.declared; - var used = ref.used; - var len = this.privateNameStack.length; - var parent = len === 0 ? null : this.privateNameStack[len - 1]; - for (var i = 0; i < used.length; ++i) { - var id = used[i]; - if (!hasOwn(declared, id.name)) { - if (parent) { - parent.used.push(id); - } else { - this.raiseRecoverable(id.start, ("Private field '#" + (id.name) + "' must be declared in an enclosing class")); - } - } - } - }; - - function isPrivateNameConflicted(privateNameMap, element) { - var name = element.key.name; - var curr = privateNameMap[name]; - - var next = "true"; - if (element.type === "MethodDefinition" && (element.kind === "get" || element.kind === "set")) { - next = (element.static ? "s" : "i") + element.kind; - } - - // `class { get #a(){}; static set #a(_){} }` is also conflict. - if ( - curr === "iget" && next === "iset" || - curr === "iset" && next === "iget" || - curr === "sget" && next === "sset" || - curr === "sset" && next === "sget" - ) { - privateNameMap[name] = "true"; - return false - } else if (!curr) { - privateNameMap[name] = next; - return false - } else { - return true - } - } - - function checkKeyName(node, name) { - var computed = node.computed; - var key = node.key; - return !computed && ( - key.type === "Identifier" && key.name === name || - key.type === "Literal" && key.value === name - ) - } - - // Parses module export declaration. - - pp$8.parseExport = function(node, exports) { - this.next(); - // export * from '...' - if (this.eat(types$1.star)) { - if (this.options.ecmaVersion >= 11) { - if (this.eatContextual("as")) { - node.exported = this.parseModuleExportName(); - this.checkExport(exports, node.exported, this.lastTokStart); - } else { - node.exported = null; - } - } - this.expectContextual("from"); - if (this.type !== types$1.string) { this.unexpected(); } - node.source = this.parseExprAtom(); - this.semicolon(); - return this.finishNode(node, "ExportAllDeclaration") - } - if (this.eat(types$1._default)) { // export default ... - this.checkExport(exports, "default", this.lastTokStart); - var isAsync; - if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) { - var fNode = this.startNode(); - this.next(); - if (isAsync) { this.next(); } - node.declaration = this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync); - } else if (this.type === types$1._class) { - var cNode = this.startNode(); - node.declaration = this.parseClass(cNode, "nullableID"); - } else { - node.declaration = this.parseMaybeAssign(); - this.semicolon(); - } - return this.finishNode(node, "ExportDefaultDeclaration") - } - // export var|const|let|function|class ... - if (this.shouldParseExportStatement()) { - node.declaration = this.parseStatement(null); - if (node.declaration.type === "VariableDeclaration") - { this.checkVariableExport(exports, node.declaration.declarations); } - else - { this.checkExport(exports, node.declaration.id, node.declaration.id.start); } - node.specifiers = []; - node.source = null; - } else { // export { x, y as z } [from '...'] - node.declaration = null; - node.specifiers = this.parseExportSpecifiers(exports); - if (this.eatContextual("from")) { - if (this.type !== types$1.string) { this.unexpected(); } - node.source = this.parseExprAtom(); - } else { - for (var i = 0, list = node.specifiers; i < list.length; i += 1) { - // check for keywords used as local names - var spec = list[i]; - - this.checkUnreserved(spec.local); - // check if export is defined - this.checkLocalExport(spec.local); - - if (spec.local.type === "Literal") { - this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`."); - } - } - - node.source = null; - } - this.semicolon(); - } - return this.finishNode(node, "ExportNamedDeclaration") - }; - - pp$8.checkExport = function(exports, name, pos) { - if (!exports) { return } - if (typeof name !== "string") - { name = name.type === "Identifier" ? name.name : name.value; } - if (hasOwn(exports, name)) - { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); } - exports[name] = true; - }; - - pp$8.checkPatternExport = function(exports, pat) { - var type = pat.type; - if (type === "Identifier") - { this.checkExport(exports, pat, pat.start); } - else if (type === "ObjectPattern") - { for (var i = 0, list = pat.properties; i < list.length; i += 1) - { - var prop = list[i]; - - this.checkPatternExport(exports, prop); - } } - else if (type === "ArrayPattern") - { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) { - var elt = list$1[i$1]; - - if (elt) { this.checkPatternExport(exports, elt); } - } } - else if (type === "Property") - { this.checkPatternExport(exports, pat.value); } - else if (type === "AssignmentPattern") - { this.checkPatternExport(exports, pat.left); } - else if (type === "RestElement") - { this.checkPatternExport(exports, pat.argument); } - else if (type === "ParenthesizedExpression") - { this.checkPatternExport(exports, pat.expression); } - }; - - pp$8.checkVariableExport = function(exports, decls) { - if (!exports) { return } - for (var i = 0, list = decls; i < list.length; i += 1) - { - var decl = list[i]; - - this.checkPatternExport(exports, decl.id); - } - }; - - pp$8.shouldParseExportStatement = function() { - return this.type.keyword === "var" || - this.type.keyword === "const" || - this.type.keyword === "class" || - this.type.keyword === "function" || - this.isLet() || - this.isAsyncFunction() - }; - - // Parses a comma-separated list of module exports. - - pp$8.parseExportSpecifiers = function(exports) { - var nodes = [], first = true; - // export { x, y as z } [from '...'] - this.expect(types$1.braceL); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var node = this.startNode(); - node.local = this.parseModuleExportName(); - node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local; - this.checkExport( - exports, - node.exported, - node.exported.start - ); - nodes.push(this.finishNode(node, "ExportSpecifier")); - } - return nodes - }; - - // Parses import declaration. - - pp$8.parseImport = function(node) { - this.next(); - // import '...' - if (this.type === types$1.string) { - node.specifiers = empty$1; - node.source = this.parseExprAtom(); - } else { - node.specifiers = this.parseImportSpecifiers(); - this.expectContextual("from"); - node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected(); - } - this.semicolon(); - return this.finishNode(node, "ImportDeclaration") - }; - - // Parses a comma-separated list of module imports. - - pp$8.parseImportSpecifiers = function() { - var nodes = [], first = true; - if (this.type === types$1.name) { - // import defaultObj, { x, y as z } from '...' - var node = this.startNode(); - node.local = this.parseIdent(); - this.checkLValSimple(node.local, BIND_LEXICAL); - nodes.push(this.finishNode(node, "ImportDefaultSpecifier")); - if (!this.eat(types$1.comma)) { return nodes } - } - if (this.type === types$1.star) { - var node$1 = this.startNode(); - this.next(); - this.expectContextual("as"); - node$1.local = this.parseIdent(); - this.checkLValSimple(node$1.local, BIND_LEXICAL); - nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier")); - return nodes - } - this.expect(types$1.braceL); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var node$2 = this.startNode(); - node$2.imported = this.parseModuleExportName(); - if (this.eatContextual("as")) { - node$2.local = this.parseIdent(); - } else { - this.checkUnreserved(node$2.imported); - node$2.local = node$2.imported; - } - this.checkLValSimple(node$2.local, BIND_LEXICAL); - nodes.push(this.finishNode(node$2, "ImportSpecifier")); - } - return nodes - }; - - pp$8.parseModuleExportName = function() { - if (this.options.ecmaVersion >= 13 && this.type === types$1.string) { - var stringLiteral = this.parseLiteral(this.value); - if (loneSurrogate.test(stringLiteral.value)) { - this.raise(stringLiteral.start, "An export name cannot include a lone surrogate."); - } - return stringLiteral - } - return this.parseIdent(true) - }; - - // Set `ExpressionStatement#directive` property for directive prologues. - pp$8.adaptDirectivePrologue = function(statements) { - for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) { - statements[i].directive = statements[i].expression.raw.slice(1, -1); - } - }; - pp$8.isDirectiveCandidate = function(statement) { - return ( - this.options.ecmaVersion >= 5 && - statement.type === "ExpressionStatement" && - statement.expression.type === "Literal" && - typeof statement.expression.value === "string" && - // Reject parenthesized strings. - (this.input[statement.start] === "\"" || this.input[statement.start] === "'") - ) - }; - - var pp$7 = Parser.prototype; - - // Convert existing expression atom to assignable pattern - // if possible. - - pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) { - if (this.options.ecmaVersion >= 6 && node) { - switch (node.type) { - case "Identifier": - if (this.inAsync && node.name === "await") - { this.raise(node.start, "Cannot use 'await' as identifier inside an async function"); } - break - - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - break - - case "ObjectExpression": - node.type = "ObjectPattern"; - if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - for (var i = 0, list = node.properties; i < list.length; i += 1) { - var prop = list[i]; - - this.toAssignable(prop, isBinding); - // Early error: - // AssignmentRestProperty[Yield, Await] : - // `...` DestructuringAssignmentTarget[Yield, Await] - // - // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|. - if ( - prop.type === "RestElement" && - (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern") - ) { - this.raise(prop.argument.start, "Unexpected token"); - } - } - break - - case "Property": - // AssignmentProperty has type === "Property" - if (node.kind !== "init") { this.raise(node.key.start, "Object pattern can't contain getter or setter"); } - this.toAssignable(node.value, isBinding); - break - - case "ArrayExpression": - node.type = "ArrayPattern"; - if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - this.toAssignableList(node.elements, isBinding); - break - - case "SpreadElement": - node.type = "RestElement"; - this.toAssignable(node.argument, isBinding); - if (node.argument.type === "AssignmentPattern") - { this.raise(node.argument.start, "Rest elements cannot have a default value"); } - break - - case "AssignmentExpression": - if (node.operator !== "=") { this.raise(node.left.end, "Only '=' operator can be used for specifying default value."); } - node.type = "AssignmentPattern"; - delete node.operator; - this.toAssignable(node.left, isBinding); - break - - case "ParenthesizedExpression": - this.toAssignable(node.expression, isBinding, refDestructuringErrors); - break - - case "ChainExpression": - this.raiseRecoverable(node.start, "Optional chaining cannot appear in left-hand side"); - break - - case "MemberExpression": - if (!isBinding) { break } - - default: - this.raise(node.start, "Assigning to rvalue"); - } - } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - return node - }; - - // Convert list of expression atoms to binding list. - - pp$7.toAssignableList = function(exprList, isBinding) { - var end = exprList.length; - for (var i = 0; i < end; i++) { - var elt = exprList[i]; - if (elt) { this.toAssignable(elt, isBinding); } - } - if (end) { - var last = exprList[end - 1]; - if (this.options.ecmaVersion === 6 && isBinding && last && last.type === "RestElement" && last.argument.type !== "Identifier") - { this.unexpected(last.argument.start); } - } - return exprList - }; - - // Parses spread element. - - pp$7.parseSpread = function(refDestructuringErrors) { - var node = this.startNode(); - this.next(); - node.argument = this.parseMaybeAssign(false, refDestructuringErrors); - return this.finishNode(node, "SpreadElement") - }; - - pp$7.parseRestBinding = function() { - var node = this.startNode(); - this.next(); - - // RestElement inside of a function parameter must be an identifier - if (this.options.ecmaVersion === 6 && this.type !== types$1.name) - { this.unexpected(); } - - node.argument = this.parseBindingAtom(); - - return this.finishNode(node, "RestElement") - }; - - // Parses lvalue (assignable) atom. - - pp$7.parseBindingAtom = function() { - if (this.options.ecmaVersion >= 6) { - switch (this.type) { - case types$1.bracketL: - var node = this.startNode(); - this.next(); - node.elements = this.parseBindingList(types$1.bracketR, true, true); - return this.finishNode(node, "ArrayPattern") - - case types$1.braceL: - return this.parseObj(true) - } - } - return this.parseIdent() - }; - - pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) { - var elts = [], first = true; - while (!this.eat(close)) { - if (first) { first = false; } - else { this.expect(types$1.comma); } - if (allowEmpty && this.type === types$1.comma) { - elts.push(null); - } else if (allowTrailingComma && this.afterTrailingComma(close)) { - break - } else if (this.type === types$1.ellipsis) { - var rest = this.parseRestBinding(); - this.parseBindingListItem(rest); - elts.push(rest); - if (this.type === types$1.comma) { this.raise(this.start, "Comma is not permitted after the rest element"); } - this.expect(close); - break - } else { - var elem = this.parseMaybeDefault(this.start, this.startLoc); - this.parseBindingListItem(elem); - elts.push(elem); - } - } - return elts - }; - - pp$7.parseBindingListItem = function(param) { - return param - }; - - // Parses assignment pattern around given atom if possible. - - pp$7.parseMaybeDefault = function(startPos, startLoc, left) { - left = left || this.parseBindingAtom(); - if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left } - var node = this.startNodeAt(startPos, startLoc); - node.left = left; - node.right = this.parseMaybeAssign(); - return this.finishNode(node, "AssignmentPattern") - }; - - // The following three functions all verify that a node is an lvalue — - // something that can be bound, or assigned to. In order to do so, they perform - // a variety of checks: - // - // - Check that none of the bound/assigned-to identifiers are reserved words. - // - Record name declarations for bindings in the appropriate scope. - // - Check duplicate argument names, if checkClashes is set. - // - // If a complex binding pattern is encountered (e.g., object and array - // destructuring), the entire pattern is recursively checked. - // - // There are three versions of checkLVal*() appropriate for different - // circumstances: - // - // - checkLValSimple() shall be used if the syntactic construct supports - // nothing other than identifiers and member expressions. Parenthesized - // expressions are also correctly handled. This is generally appropriate for - // constructs for which the spec says - // - // > It is a Syntax Error if AssignmentTargetType of [the production] is not - // > simple. - // - // It is also appropriate for checking if an identifier is valid and not - // defined elsewhere, like import declarations or function/class identifiers. - // - // Examples where this is used include: - // a += …; - // import a from '…'; - // where a is the node to be checked. - // - // - checkLValPattern() shall be used if the syntactic construct supports - // anything checkLValSimple() supports, as well as object and array - // destructuring patterns. This is generally appropriate for constructs for - // which the spec says - // - // > It is a Syntax Error if [the production] is neither an ObjectLiteral nor - // > an ArrayLiteral and AssignmentTargetType of [the production] is not - // > simple. - // - // Examples where this is used include: - // (a = …); - // const a = …; - // try { … } catch (a) { … } - // where a is the node to be checked. - // - // - checkLValInnerPattern() shall be used if the syntactic construct supports - // anything checkLValPattern() supports, as well as default assignment - // patterns, rest elements, and other constructs that may appear within an - // object or array destructuring pattern. - // - // As a special case, function parameters also use checkLValInnerPattern(), - // as they also support defaults and rest constructs. - // - // These functions deliberately support both assignment and binding constructs, - // as the logic for both is exceedingly similar. If the node is the target of - // an assignment, then bindingType should be set to BIND_NONE. Otherwise, it - // should be set to the appropriate BIND_* constant, like BIND_VAR or - // BIND_LEXICAL. - // - // If the function is called with a non-BIND_NONE bindingType, then - // additionally a checkClashes object may be specified to allow checking for - // duplicate argument names. checkClashes is ignored if the provided construct - // is an assignment (i.e., bindingType is BIND_NONE). - - pp$7.checkLValSimple = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - var isBind = bindingType !== BIND_NONE; - - switch (expr.type) { - case "Identifier": - if (this.strict && this.reservedWordsStrictBind.test(expr.name)) - { this.raiseRecoverable(expr.start, (isBind ? "Binding " : "Assigning to ") + expr.name + " in strict mode"); } - if (isBind) { - if (bindingType === BIND_LEXICAL && expr.name === "let") - { this.raiseRecoverable(expr.start, "let is disallowed as a lexically bound name"); } - if (checkClashes) { - if (hasOwn(checkClashes, expr.name)) - { this.raiseRecoverable(expr.start, "Argument name clash"); } - checkClashes[expr.name] = true; - } - if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); } - } - break - - case "ChainExpression": - this.raiseRecoverable(expr.start, "Optional chaining cannot appear in left-hand side"); - break - - case "MemberExpression": - if (isBind) { this.raiseRecoverable(expr.start, "Binding member expression"); } - break - - case "ParenthesizedExpression": - if (isBind) { this.raiseRecoverable(expr.start, "Binding parenthesized expression"); } - return this.checkLValSimple(expr.expression, bindingType, checkClashes) - - default: - this.raise(expr.start, (isBind ? "Binding" : "Assigning to") + " rvalue"); - } - }; - - pp$7.checkLValPattern = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - switch (expr.type) { - case "ObjectPattern": - for (var i = 0, list = expr.properties; i < list.length; i += 1) { - var prop = list[i]; - - this.checkLValInnerPattern(prop, bindingType, checkClashes); - } - break - - case "ArrayPattern": - for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) { - var elem = list$1[i$1]; - - if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); } - } - break - - default: - this.checkLValSimple(expr, bindingType, checkClashes); - } - }; - - pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - switch (expr.type) { - case "Property": - // AssignmentProperty has type === "Property" - this.checkLValInnerPattern(expr.value, bindingType, checkClashes); - break - - case "AssignmentPattern": - this.checkLValPattern(expr.left, bindingType, checkClashes); - break - - case "RestElement": - this.checkLValPattern(expr.argument, bindingType, checkClashes); - break - - default: - this.checkLValPattern(expr, bindingType, checkClashes); - } - }; - - // The algorithm used to determine whether a regexp can appear at a - - var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) { - this.token = token; - this.isExpr = !!isExpr; - this.preserveSpace = !!preserveSpace; - this.override = override; - this.generator = !!generator; - }; - - var types = { - b_stat: new TokContext("{", false), - b_expr: new TokContext("{", true), - b_tmpl: new TokContext("${", false), - p_stat: new TokContext("(", false), - p_expr: new TokContext("(", true), - q_tmpl: new TokContext("`", true, true, function (p) { return p.tryReadTemplateToken(); }), - f_stat: new TokContext("function", false), - f_expr: new TokContext("function", true), - f_expr_gen: new TokContext("function", true, false, null, true), - f_gen: new TokContext("function", false, false, null, true) - }; - - var pp$6 = Parser.prototype; - - pp$6.initialContext = function() { - return [types.b_stat] - }; - - pp$6.curContext = function() { - return this.context[this.context.length - 1] - }; - - pp$6.braceIsBlock = function(prevType) { - var parent = this.curContext(); - if (parent === types.f_expr || parent === types.f_stat) - { return true } - if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr)) - { return !parent.isExpr } - - // The check for `tt.name && exprAllowed` detects whether we are - // after a `yield` or `of` construct. See the `updateContext` for - // `tt.name`. - if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed) - { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) } - if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow) - { return true } - if (prevType === types$1.braceL) - { return parent === types.b_stat } - if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name) - { return false } - return !this.exprAllowed - }; - - pp$6.inGeneratorContext = function() { - for (var i = this.context.length - 1; i >= 1; i--) { - var context = this.context[i]; - if (context.token === "function") - { return context.generator } - } - return false - }; - - pp$6.updateContext = function(prevType) { - var update, type = this.type; - if (type.keyword && prevType === types$1.dot) - { this.exprAllowed = false; } - else if (update = type.updateContext) - { update.call(this, prevType); } - else - { this.exprAllowed = type.beforeExpr; } - }; - - // Used to handle egde cases when token context could not be inferred correctly during tokenization phase - - pp$6.overrideContext = function(tokenCtx) { - if (this.curContext() !== tokenCtx) { - this.context[this.context.length - 1] = tokenCtx; - } - }; - - // Token-specific context update code - - types$1.parenR.updateContext = types$1.braceR.updateContext = function() { - if (this.context.length === 1) { - this.exprAllowed = true; - return - } - var out = this.context.pop(); - if (out === types.b_stat && this.curContext().token === "function") { - out = this.context.pop(); - } - this.exprAllowed = !out.isExpr; - }; - - types$1.braceL.updateContext = function(prevType) { - this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr); - this.exprAllowed = true; - }; - - types$1.dollarBraceL.updateContext = function() { - this.context.push(types.b_tmpl); - this.exprAllowed = true; - }; - - types$1.parenL.updateContext = function(prevType) { - var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while; - this.context.push(statementParens ? types.p_stat : types.p_expr); - this.exprAllowed = true; - }; - - types$1.incDec.updateContext = function() { - // tokExprAllowed stays unchanged - }; - - types$1._function.updateContext = types$1._class.updateContext = function(prevType) { - if (prevType.beforeExpr && prevType !== types$1._else && - !(prevType === types$1.semi && this.curContext() !== types.p_stat) && - !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) && - !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat)) - { this.context.push(types.f_expr); } - else - { this.context.push(types.f_stat); } - this.exprAllowed = false; - }; - - types$1.backQuote.updateContext = function() { - if (this.curContext() === types.q_tmpl) - { this.context.pop(); } - else - { this.context.push(types.q_tmpl); } - this.exprAllowed = false; - }; - - types$1.star.updateContext = function(prevType) { - if (prevType === types$1._function) { - var index = this.context.length - 1; - if (this.context[index] === types.f_expr) - { this.context[index] = types.f_expr_gen; } - else - { this.context[index] = types.f_gen; } - } - this.exprAllowed = true; - }; - - types$1.name.updateContext = function(prevType) { - var allowed = false; - if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) { - if (this.value === "of" && !this.exprAllowed || - this.value === "yield" && this.inGeneratorContext()) - { allowed = true; } - } - this.exprAllowed = allowed; - }; - - // A recursive descent parser operates by defining functions for all - - var pp$5 = Parser.prototype; - - // Check if property name clashes with already added. - // Object/class getters and setters are not allowed to clash — - // either with each other or with an init property — and in - // strict mode, init properties are also not allowed to be repeated. - - pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) { - if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement") - { return } - if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) - { return } - var key = prop.key; - var name; - switch (key.type) { - case "Identifier": name = key.name; break - case "Literal": name = String(key.value); break - default: return - } - var kind = prop.kind; - if (this.options.ecmaVersion >= 6) { - if (name === "__proto__" && kind === "init") { - if (propHash.proto) { - if (refDestructuringErrors) { - if (refDestructuringErrors.doubleProto < 0) { - refDestructuringErrors.doubleProto = key.start; - } - } else { - this.raiseRecoverable(key.start, "Redefinition of __proto__ property"); - } - } - propHash.proto = true; - } - return - } - name = "$" + name; - var other = propHash[name]; - if (other) { - var redefinition; - if (kind === "init") { - redefinition = this.strict && other.init || other.get || other.set; - } else { - redefinition = other.init || other[kind]; - } - if (redefinition) - { this.raiseRecoverable(key.start, "Redefinition of property"); } - } else { - other = propHash[name] = { - init: false, - get: false, - set: false - }; - } - other[kind] = true; - }; - - // ### Expression parsing - - // These nest, from the most general expression type at the top to - // 'atomic', nondivisible expression types at the bottom. Most of - // the functions will simply let the function(s) below them parse, - // and, *if* the syntactic construct they handle is present, wrap - // the AST node that the inner parser gave them in another node. - - // Parse a full expression. The optional arguments are used to - // forbid the `in` operator (in for loops initalization expressions) - // and provide reference for storing '=' operator inside shorthand - // property assignment in contexts where both object expression - // and object pattern might appear (so it's possible to raise - // delayed syntax error at correct position). - - pp$5.parseExpression = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseMaybeAssign(forInit, refDestructuringErrors); - if (this.type === types$1.comma) { - var node = this.startNodeAt(startPos, startLoc); - node.expressions = [expr]; - while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); } - return this.finishNode(node, "SequenceExpression") - } - return expr - }; - - // Parse an assignment expression. This includes applications of - // operators like `+=`. - - pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) { - if (this.isContextual("yield")) { - if (this.inGenerator) { return this.parseYield(forInit) } - // The tokenizer will assume an expression is allowed after - // `yield`, but this isn't that kind of yield - else { this.exprAllowed = false; } - } - - var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1; - if (refDestructuringErrors) { - oldParenAssign = refDestructuringErrors.parenthesizedAssign; - oldTrailingComma = refDestructuringErrors.trailingComma; - oldDoubleProto = refDestructuringErrors.doubleProto; - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1; - } else { - refDestructuringErrors = new DestructuringErrors; - ownDestructuringErrors = true; - } - - var startPos = this.start, startLoc = this.startLoc; - if (this.type === types$1.parenL || this.type === types$1.name) { - this.potentialArrowAt = this.start; - this.potentialArrowInForAwait = forInit === "await"; - } - var left = this.parseMaybeConditional(forInit, refDestructuringErrors); - if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); } - if (this.type.isAssign) { - var node = this.startNodeAt(startPos, startLoc); - node.operator = this.value; - if (this.type === types$1.eq) - { left = this.toAssignable(left, false, refDestructuringErrors); } - if (!ownDestructuringErrors) { - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1; - } - if (refDestructuringErrors.shorthandAssign >= left.start) - { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly - if (this.type === types$1.eq) - { this.checkLValPattern(left); } - else - { this.checkLValSimple(left); } - node.left = left; - this.next(); - node.right = this.parseMaybeAssign(forInit); - if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; } - return this.finishNode(node, "AssignmentExpression") - } else { - if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); } - } - if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; } - if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; } - return left - }; - - // Parse a ternary conditional (`?:`) operator. - - pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseExprOps(forInit, refDestructuringErrors); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - if (this.eat(types$1.question)) { - var node = this.startNodeAt(startPos, startLoc); - node.test = expr; - node.consequent = this.parseMaybeAssign(); - this.expect(types$1.colon); - node.alternate = this.parseMaybeAssign(forInit); - return this.finishNode(node, "ConditionalExpression") - } - return expr - }; - - // Start the precedence parser. - - pp$5.parseExprOps = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - return expr.start === startPos && expr.type === "ArrowFunctionExpression" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit) - }; - - // Parse binary operators with the operator precedence parsing - // algorithm. `left` is the left-hand side of the operator. - // `minPrec` provides context that allows the function to stop and - // defer further parser to one of its callers when it encounters an - // operator that has a lower precedence than the set it is parsing. - - pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) { - var prec = this.type.binop; - if (prec != null && (!forInit || this.type !== types$1._in)) { - if (prec > minPrec) { - var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND; - var coalesce = this.type === types$1.coalesce; - if (coalesce) { - // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions. - // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error. - prec = types$1.logicalAND.binop; - } - var op = this.value; - this.next(); - var startPos = this.start, startLoc = this.startLoc; - var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit); - var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce); - if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) { - this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"); - } - return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit) - } - } - return left - }; - - pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) { - if (right.type === "PrivateIdentifier") { this.raise(right.start, "Private identifier can only be left side of binary expression"); } - var node = this.startNodeAt(startPos, startLoc); - node.left = left; - node.operator = op; - node.right = right; - return this.finishNode(node, logical ? "LogicalExpression" : "BinaryExpression") - }; - - // Parse unary operators, both prefix and postfix. - - pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) { - var startPos = this.start, startLoc = this.startLoc, expr; - if (this.isContextual("await") && this.canAwait) { - expr = this.parseAwait(forInit); - sawUnary = true; - } else if (this.type.prefix) { - var node = this.startNode(), update = this.type === types$1.incDec; - node.operator = this.value; - node.prefix = true; - this.next(); - node.argument = this.parseMaybeUnary(null, true, update, forInit); - this.checkExpressionErrors(refDestructuringErrors, true); - if (update) { this.checkLValSimple(node.argument); } - else if (this.strict && node.operator === "delete" && - node.argument.type === "Identifier") - { this.raiseRecoverable(node.start, "Deleting local variable in strict mode"); } - else if (node.operator === "delete" && isPrivateFieldAccess(node.argument)) - { this.raiseRecoverable(node.start, "Private fields can not be deleted"); } - else { sawUnary = true; } - expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression"); - } else if (!sawUnary && this.type === types$1.privateId) { - if (forInit || this.privateNameStack.length === 0) { this.unexpected(); } - expr = this.parsePrivateIdent(); - // only could be private fields in 'in', such as #x in obj - if (this.type !== types$1._in) { this.unexpected(); } - } else { - expr = this.parseExprSubscripts(refDestructuringErrors, forInit); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - while (this.type.postfix && !this.canInsertSemicolon()) { - var node$1 = this.startNodeAt(startPos, startLoc); - node$1.operator = this.value; - node$1.prefix = false; - node$1.argument = expr; - this.checkLValSimple(expr); - this.next(); - expr = this.finishNode(node$1, "UpdateExpression"); - } - } - - if (!incDec && this.eat(types$1.starstar)) { - if (sawUnary) - { this.unexpected(this.lastTokStart); } - else - { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false) } - } else { - return expr - } - }; - - function isPrivateFieldAccess(node) { - return ( - node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || - node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) - ) - } - - // Parse call, dot, and `[]`-subscript expressions. - - pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseExprAtom(refDestructuringErrors, forInit); - if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") - { return expr } - var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit); - if (refDestructuringErrors && result.type === "MemberExpression") { - if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; } - if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; } - if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; } - } - return result - }; - - pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) { - var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === "Identifier" && base.name === "async" && - this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && - this.potentialArrowAt === base.start; - var optionalChained = false; - - while (true) { - var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit); - - if (element.optional) { optionalChained = true; } - if (element === base || element.type === "ArrowFunctionExpression") { - if (optionalChained) { - var chainNode = this.startNodeAt(startPos, startLoc); - chainNode.expression = element; - element = this.finishNode(chainNode, "ChainExpression"); - } - return element - } - - base = element; - } - }; - - pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) { - var optionalSupported = this.options.ecmaVersion >= 11; - var optional = optionalSupported && this.eat(types$1.questionDot); - if (noCalls && optional) { this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions"); } - - var computed = this.eat(types$1.bracketL); - if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) { - var node = this.startNodeAt(startPos, startLoc); - node.object = base; - if (computed) { - node.property = this.parseExpression(); - this.expect(types$1.bracketR); - } else if (this.type === types$1.privateId && base.type !== "Super") { - node.property = this.parsePrivateIdent(); - } else { - node.property = this.parseIdent(this.options.allowReserved !== "never"); - } - node.computed = !!computed; - if (optionalSupported) { - node.optional = optional; - } - base = this.finishNode(node, "MemberExpression"); - } else if (!noCalls && this.eat(types$1.parenL)) { - var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors); - if (maybeAsyncArrow && !optional && !this.canInsertSemicolon() && this.eat(types$1.arrow)) { - this.checkPatternErrors(refDestructuringErrors, false); - this.checkYieldAwaitInDefaultParams(); - if (this.awaitIdentPos > 0) - { this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"); } - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit) - } - this.checkExpressionErrors(refDestructuringErrors, true); - this.yieldPos = oldYieldPos || this.yieldPos; - this.awaitPos = oldAwaitPos || this.awaitPos; - this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos; - var node$1 = this.startNodeAt(startPos, startLoc); - node$1.callee = base; - node$1.arguments = exprList; - if (optionalSupported) { - node$1.optional = optional; - } - base = this.finishNode(node$1, "CallExpression"); - } else if (this.type === types$1.backQuote) { - if (optional || optionalChained) { - this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions"); - } - var node$2 = this.startNodeAt(startPos, startLoc); - node$2.tag = base; - node$2.quasi = this.parseTemplate({isTagged: true}); - base = this.finishNode(node$2, "TaggedTemplateExpression"); - } - return base - }; - - // Parse an atomic expression — either a single token that is an - // expression, an expression started by a keyword like `function` or - // `new`, or an expression wrapped in punctuation like `()`, `[]`, - // or `{}`. - - pp$5.parseExprAtom = function(refDestructuringErrors, forInit) { - // If a division operator appears in an expression position, the - // tokenizer got confused, and we force it to read a regexp instead. - if (this.type === types$1.slash) { this.readRegexp(); } - - var node, canBeArrow = this.potentialArrowAt === this.start; - switch (this.type) { - case types$1._super: - if (!this.allowSuper) - { this.raise(this.start, "'super' keyword outside a method"); } - node = this.startNode(); - this.next(); - if (this.type === types$1.parenL && !this.allowDirectSuper) - { this.raise(node.start, "super() call outside constructor of a subclass"); } - // The `super` keyword can appear at below: - // SuperProperty: - // super [ Expression ] - // super . IdentifierName - // SuperCall: - // super ( Arguments ) - if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL) - { this.unexpected(); } - return this.finishNode(node, "Super") - - case types$1._this: - node = this.startNode(); - this.next(); - return this.finishNode(node, "ThisExpression") - - case types$1.name: - var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc; - var id = this.parseIdent(false); - if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function)) { - this.overrideContext(types.f_expr); - return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit) - } - if (canBeArrow && !this.canInsertSemicolon()) { - if (this.eat(types$1.arrow)) - { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) } - if (this.options.ecmaVersion >= 8 && id.name === "async" && this.type === types$1.name && !containsEsc && - (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) { - id = this.parseIdent(false); - if (this.canInsertSemicolon() || !this.eat(types$1.arrow)) - { this.unexpected(); } - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit) - } - } - return id - - case types$1.regexp: - var value = this.value; - node = this.parseLiteral(value.value); - node.regex = {pattern: value.pattern, flags: value.flags}; - return node - - case types$1.num: case types$1.string: - return this.parseLiteral(this.value) - - case types$1._null: case types$1._true: case types$1._false: - node = this.startNode(); - node.value = this.type === types$1._null ? null : this.type === types$1._true; - node.raw = this.type.keyword; - this.next(); - return this.finishNode(node, "Literal") - - case types$1.parenL: - var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit); - if (refDestructuringErrors) { - if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr)) - { refDestructuringErrors.parenthesizedAssign = start; } - if (refDestructuringErrors.parenthesizedBind < 0) - { refDestructuringErrors.parenthesizedBind = start; } - } - return expr - - case types$1.bracketL: - node = this.startNode(); - this.next(); - node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors); - return this.finishNode(node, "ArrayExpression") - - case types$1.braceL: - this.overrideContext(types.b_expr); - return this.parseObj(false, refDestructuringErrors) - - case types$1._function: - node = this.startNode(); - this.next(); - return this.parseFunction(node, 0) - - case types$1._class: - return this.parseClass(this.startNode(), false) - - case types$1._new: - return this.parseNew() - - case types$1.backQuote: - return this.parseTemplate() - - case types$1._import: - if (this.options.ecmaVersion >= 11) { - return this.parseExprImport() - } else { - return this.unexpected() - } - - default: - this.unexpected(); - } - }; - - pp$5.parseExprImport = function() { - var node = this.startNode(); - - // Consume `import` as an identifier for `import.meta`. - // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`. - if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); } - var meta = this.parseIdent(true); - - switch (this.type) { - case types$1.parenL: - return this.parseDynamicImport(node) - case types$1.dot: - node.meta = meta; - return this.parseImportMeta(node) - default: - this.unexpected(); - } - }; - - pp$5.parseDynamicImport = function(node) { - this.next(); // skip `(` - - // Parse node.source. - node.source = this.parseMaybeAssign(); - - // Verify ending. - if (!this.eat(types$1.parenR)) { - var errorPos = this.start; - if (this.eat(types$1.comma) && this.eat(types$1.parenR)) { - this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()"); - } else { - this.unexpected(errorPos); - } - } - - return this.finishNode(node, "ImportExpression") - }; - - pp$5.parseImportMeta = function(node) { - this.next(); // skip `.` - - var containsEsc = this.containsEsc; - node.property = this.parseIdent(true); - - if (node.property.name !== "meta") - { this.raiseRecoverable(node.property.start, "The only valid meta property for import is 'import.meta'"); } - if (containsEsc) - { this.raiseRecoverable(node.start, "'import.meta' must not contain escaped characters"); } - if (this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere) - { this.raiseRecoverable(node.start, "Cannot use 'import.meta' outside a module"); } - - return this.finishNode(node, "MetaProperty") - }; - - pp$5.parseLiteral = function(value) { - var node = this.startNode(); - node.value = value; - node.raw = this.input.slice(this.start, this.end); - if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, ""); } - this.next(); - return this.finishNode(node, "Literal") - }; - - pp$5.parseParenExpression = function() { - this.expect(types$1.parenL); - var val = this.parseExpression(); - this.expect(types$1.parenR); - return val - }; - - pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) { - var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8; - if (this.options.ecmaVersion >= 6) { - this.next(); - - var innerStartPos = this.start, innerStartLoc = this.startLoc; - var exprList = [], first = true, lastIsComma = false; - var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart; - this.yieldPos = 0; - this.awaitPos = 0; - // Do not save awaitIdentPos to allow checking awaits nested in parameters - while (this.type !== types$1.parenR) { - first ? first = false : this.expect(types$1.comma); - if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) { - lastIsComma = true; - break - } else if (this.type === types$1.ellipsis) { - spreadStart = this.start; - exprList.push(this.parseParenItem(this.parseRestBinding())); - if (this.type === types$1.comma) { this.raise(this.start, "Comma is not permitted after the rest element"); } - break - } else { - exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem)); - } - } - var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc; - this.expect(types$1.parenR); - - if (canBeArrow && !this.canInsertSemicolon() && this.eat(types$1.arrow)) { - this.checkPatternErrors(refDestructuringErrors, false); - this.checkYieldAwaitInDefaultParams(); - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - return this.parseParenArrowList(startPos, startLoc, exprList, forInit) - } - - if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); } - if (spreadStart) { this.unexpected(spreadStart); } - this.checkExpressionErrors(refDestructuringErrors, true); - this.yieldPos = oldYieldPos || this.yieldPos; - this.awaitPos = oldAwaitPos || this.awaitPos; - - if (exprList.length > 1) { - val = this.startNodeAt(innerStartPos, innerStartLoc); - val.expressions = exprList; - this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc); - } else { - val = exprList[0]; - } - } else { - val = this.parseParenExpression(); - } - - if (this.options.preserveParens) { - var par = this.startNodeAt(startPos, startLoc); - par.expression = val; - return this.finishNode(par, "ParenthesizedExpression") - } else { - return val - } - }; - - pp$5.parseParenItem = function(item) { - return item - }; - - pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) { - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit) - }; - - // New's precedence is slightly tricky. It must allow its argument to - // be a `[]` or dot subscript expression, but not a call — at least, - // not without wrapping it in parentheses. Thus, it uses the noCalls - // argument to parseSubscripts to prevent it from consuming the - // argument list. - - var empty = []; - - pp$5.parseNew = function() { - if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword new"); } - var node = this.startNode(); - var meta = this.parseIdent(true); - if (this.options.ecmaVersion >= 6 && this.eat(types$1.dot)) { - node.meta = meta; - var containsEsc = this.containsEsc; - node.property = this.parseIdent(true); - if (node.property.name !== "target") - { this.raiseRecoverable(node.property.start, "The only valid meta property for new is 'new.target'"); } - if (containsEsc) - { this.raiseRecoverable(node.start, "'new.target' must not contain escaped characters"); } - if (!this.allowNewDotTarget) - { this.raiseRecoverable(node.start, "'new.target' can only be used in functions and class static block"); } - return this.finishNode(node, "MetaProperty") - } - var startPos = this.start, startLoc = this.startLoc, isImport = this.type === types$1._import; - node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false); - if (isImport && node.callee.type === "ImportExpression") { - this.raise(startPos, "Cannot use new with import()"); - } - if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); } - else { node.arguments = empty; } - return this.finishNode(node, "NewExpression") - }; - - // Parse template expression. - - pp$5.parseTemplateElement = function(ref) { - var isTagged = ref.isTagged; - - var elem = this.startNode(); - if (this.type === types$1.invalidTemplate) { - if (!isTagged) { - this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"); - } - elem.value = { - raw: this.value, - cooked: null - }; - } else { - elem.value = { - raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), - cooked: this.value - }; - } - this.next(); - elem.tail = this.type === types$1.backQuote; - return this.finishNode(elem, "TemplateElement") - }; - - pp$5.parseTemplate = function(ref) { - if ( ref === void 0 ) ref = {}; - var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false; - - var node = this.startNode(); - this.next(); - node.expressions = []; - var curElt = this.parseTemplateElement({isTagged: isTagged}); - node.quasis = [curElt]; - while (!curElt.tail) { - if (this.type === types$1.eof) { this.raise(this.pos, "Unterminated template literal"); } - this.expect(types$1.dollarBraceL); - node.expressions.push(this.parseExpression()); - this.expect(types$1.braceR); - node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged})); - } - this.next(); - return this.finishNode(node, "TemplateLiteral") - }; - - pp$5.isAsyncProp = function(prop) { - return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" && - (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) && - !lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) - }; - - // Parse an object literal or binding pattern. - - pp$5.parseObj = function(isPattern, refDestructuringErrors) { - var node = this.startNode(), first = true, propHash = {}; - node.properties = []; - this.next(); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var prop = this.parseProperty(isPattern, refDestructuringErrors); - if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); } - node.properties.push(prop); - } - return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression") - }; - - pp$5.parseProperty = function(isPattern, refDestructuringErrors) { - var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc; - if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) { - if (isPattern) { - prop.argument = this.parseIdent(false); - if (this.type === types$1.comma) { - this.raise(this.start, "Comma is not permitted after the rest element"); - } - return this.finishNode(prop, "RestElement") - } - // Parse argument. - prop.argument = this.parseMaybeAssign(false, refDestructuringErrors); - // To disallow trailing comma via `this.toAssignable()`. - if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) { - refDestructuringErrors.trailingComma = this.start; - } - // Finish - return this.finishNode(prop, "SpreadElement") - } - if (this.options.ecmaVersion >= 6) { - prop.method = false; - prop.shorthand = false; - if (isPattern || refDestructuringErrors) { - startPos = this.start; - startLoc = this.startLoc; - } - if (!isPattern) - { isGenerator = this.eat(types$1.star); } - } - var containsEsc = this.containsEsc; - this.parsePropertyName(prop); - if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) { - isAsync = true; - isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star); - this.parsePropertyName(prop); - } else { - isAsync = false; - } - this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc); - return this.finishNode(prop, "Property") - }; - - pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) { - if ((isGenerator || isAsync) && this.type === types$1.colon) - { this.unexpected(); } - - if (this.eat(types$1.colon)) { - prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors); - prop.kind = "init"; - } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) { - if (isPattern) { this.unexpected(); } - prop.kind = "init"; - prop.method = true; - prop.value = this.parseMethod(isGenerator, isAsync); - } else if (!isPattern && !containsEsc && - this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && - (prop.key.name === "get" || prop.key.name === "set") && - (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) { - if (isGenerator || isAsync) { this.unexpected(); } - prop.kind = prop.key.name; - this.parsePropertyName(prop); - prop.value = this.parseMethod(false); - var paramCount = prop.kind === "get" ? 0 : 1; - if (prop.value.params.length !== paramCount) { - var start = prop.value.start; - if (prop.kind === "get") - { this.raiseRecoverable(start, "getter should have no params"); } - else - { this.raiseRecoverable(start, "setter should have exactly one param"); } - } else { - if (prop.kind === "set" && prop.value.params[0].type === "RestElement") - { this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); } - } - } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") { - if (isGenerator || isAsync) { this.unexpected(); } - this.checkUnreserved(prop.key); - if (prop.key.name === "await" && !this.awaitIdentPos) - { this.awaitIdentPos = startPos; } - prop.kind = "init"; - if (isPattern) { - prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key)); - } else if (this.type === types$1.eq && refDestructuringErrors) { - if (refDestructuringErrors.shorthandAssign < 0) - { refDestructuringErrors.shorthandAssign = this.start; } - prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key)); - } else { - prop.value = this.copyNode(prop.key); - } - prop.shorthand = true; - } else { this.unexpected(); } - }; - - pp$5.parsePropertyName = function(prop) { - if (this.options.ecmaVersion >= 6) { - if (this.eat(types$1.bracketL)) { - prop.computed = true; - prop.key = this.parseMaybeAssign(); - this.expect(types$1.bracketR); - return prop.key - } else { - prop.computed = false; - } - } - return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never") - }; - - // Initialize empty function node. - - pp$5.initFunction = function(node) { - node.id = null; - if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; } - if (this.options.ecmaVersion >= 8) { node.async = false; } - }; - - // Parse object or class method. - - pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) { - var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - - this.initFunction(node); - if (this.options.ecmaVersion >= 6) - { node.generator = isGenerator; } - if (this.options.ecmaVersion >= 8) - { node.async = !!isAsync; } - - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0)); - - this.expect(types$1.parenL); - node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8); - this.checkYieldAwaitInDefaultParams(); - this.parseFunctionBody(node, false, true, false); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, "FunctionExpression") - }; - - // Parse arrow function expression with given parameters. - - pp$5.parseArrowExpression = function(node, params, isAsync, forInit) { - var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - - this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW); - this.initFunction(node); - if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; } - - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - - node.params = this.toAssignableList(params, true); - this.parseFunctionBody(node, true, false, forInit); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, "ArrowFunctionExpression") - }; - - // Parse function body and check parameters. - - pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) { - var isExpression = isArrowFunction && this.type !== types$1.braceL; - var oldStrict = this.strict, useStrict = false; - - if (isExpression) { - node.body = this.parseMaybeAssign(forInit); - node.expression = true; - this.checkParams(node, false); - } else { - var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params); - if (!oldStrict || nonSimple) { - useStrict = this.strictDirective(this.end); - // If this is a strict mode function, verify that argument names - // are not repeated, and it does not try to bind the words `eval` - // or `arguments`. - if (useStrict && nonSimple) - { this.raiseRecoverable(node.start, "Illegal 'use strict' directive in function with non-simple parameter list"); } - } - // Start a new scope with regard to labels and the `inFunction` - // flag (restore them to their old value afterwards). - var oldLabels = this.labels; - this.labels = []; - if (useStrict) { this.strict = true; } - - // Add the params to varDeclaredNames to ensure that an error is thrown - // if a let/const declaration in the function clashes with one of the params. - this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params)); - // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval' - if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); } - node.body = this.parseBlock(false, undefined, useStrict && !oldStrict); - node.expression = false; - this.adaptDirectivePrologue(node.body.body); - this.labels = oldLabels; - } - this.exitScope(); - }; - - pp$5.isSimpleParamList = function(params) { - for (var i = 0, list = params; i < list.length; i += 1) - { - var param = list[i]; - - if (param.type !== "Identifier") { return false - } } - return true - }; - - // Checks function params for various disallowed patterns such as using "eval" - // or "arguments" and duplicate parameters. - - pp$5.checkParams = function(node, allowDuplicates) { - var nameHash = Object.create(null); - for (var i = 0, list = node.params; i < list.length; i += 1) - { - var param = list[i]; - - this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash); - } - }; - - // Parses a comma-separated list of expressions, and returns them as - // an array. `close` is the token type that ends the list, and - // `allowEmpty` can be turned on to allow subsequent commas with - // nothing in between them to be parsed as `null` (which is needed - // for array literals). - - pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) { - var elts = [], first = true; - while (!this.eat(close)) { - if (!first) { - this.expect(types$1.comma); - if (allowTrailingComma && this.afterTrailingComma(close)) { break } - } else { first = false; } - - var elt = (void 0); - if (allowEmpty && this.type === types$1.comma) - { elt = null; } - else if (this.type === types$1.ellipsis) { - elt = this.parseSpread(refDestructuringErrors); - if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0) - { refDestructuringErrors.trailingComma = this.start; } - } else { - elt = this.parseMaybeAssign(false, refDestructuringErrors); - } - elts.push(elt); - } - return elts - }; - - pp$5.checkUnreserved = function(ref) { - var start = ref.start; - var end = ref.end; - var name = ref.name; - - if (this.inGenerator && name === "yield") - { this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator"); } - if (this.inAsync && name === "await") - { this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function"); } - if (this.currentThisScope().inClassFieldInit && name === "arguments") - { this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer"); } - if (this.inClassStaticBlock && (name === "arguments" || name === "await")) - { this.raise(start, ("Cannot use " + name + " in class static initialization block")); } - if (this.keywords.test(name)) - { this.raise(start, ("Unexpected keyword '" + name + "'")); } - if (this.options.ecmaVersion < 6 && - this.input.slice(start, end).indexOf("\\") !== -1) { return } - var re = this.strict ? this.reservedWordsStrict : this.reservedWords; - if (re.test(name)) { - if (!this.inAsync && name === "await") - { this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function"); } - this.raiseRecoverable(start, ("The keyword '" + name + "' is reserved")); - } - }; - - // Parse the next token as an identifier. If `liberal` is true (used - // when parsing properties), it will also convert keywords into - // identifiers. - - pp$5.parseIdent = function(liberal) { - var node = this.startNode(); - if (this.type === types$1.name) { - node.name = this.value; - } else if (this.type.keyword) { - node.name = this.type.keyword; - - // To fix https://github.com/acornjs/acorn/issues/575 - // `class` and `function` keywords push new context into this.context. - // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name. - // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword - if ((node.name === "class" || node.name === "function") && - (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) { - this.context.pop(); - } - } else { - this.unexpected(); - } - this.next(!!liberal); - this.finishNode(node, "Identifier"); - if (!liberal) { - this.checkUnreserved(node); - if (node.name === "await" && !this.awaitIdentPos) - { this.awaitIdentPos = node.start; } - } - return node - }; - - pp$5.parsePrivateIdent = function() { - var node = this.startNode(); - if (this.type === types$1.privateId) { - node.name = this.value; - } else { - this.unexpected(); - } - this.next(); - this.finishNode(node, "PrivateIdentifier"); - - // For validating existence - if (this.privateNameStack.length === 0) { - this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class")); - } else { - this.privateNameStack[this.privateNameStack.length - 1].used.push(node); - } - - return node - }; - - // Parses yield expression inside generator. - - pp$5.parseYield = function(forInit) { - if (!this.yieldPos) { this.yieldPos = this.start; } - - var node = this.startNode(); - this.next(); - if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) { - node.delegate = false; - node.argument = null; - } else { - node.delegate = this.eat(types$1.star); - node.argument = this.parseMaybeAssign(forInit); - } - return this.finishNode(node, "YieldExpression") - }; - - pp$5.parseAwait = function(forInit) { - if (!this.awaitPos) { this.awaitPos = this.start; } - - var node = this.startNode(); - this.next(); - node.argument = this.parseMaybeUnary(null, true, false, forInit); - return this.finishNode(node, "AwaitExpression") - }; - - var pp$4 = Parser.prototype; - - // This function is used to raise exceptions on parse errors. It - // takes an offset integer (into the current `input`) to indicate - // the location of the error, attaches the position to the end - // of the error message, and then raises a `SyntaxError` with that - // message. - - pp$4.raise = function(pos, message) { - var loc = getLineInfo(this.input, pos); - message += " (" + loc.line + ":" + loc.column + ")"; - var err = new SyntaxError(message); - err.pos = pos; err.loc = loc; err.raisedAt = this.pos; - throw err - }; - - pp$4.raiseRecoverable = pp$4.raise; - - pp$4.curPosition = function() { - if (this.options.locations) { - return new Position(this.curLine, this.pos - this.lineStart) - } - }; - - var pp$3 = Parser.prototype; - - var Scope = function Scope(flags) { - this.flags = flags; - // A list of var-declared names in the current lexical scope - this.var = []; - // A list of lexically-declared names in the current lexical scope - this.lexical = []; - // A list of lexically-declared FunctionDeclaration names in the current lexical scope - this.functions = []; - // A switch to disallow the identifier reference 'arguments' - this.inClassFieldInit = false; - }; - - // The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names. - - pp$3.enterScope = function(flags) { - this.scopeStack.push(new Scope(flags)); - }; - - pp$3.exitScope = function() { - this.scopeStack.pop(); - }; - - // The spec says: - // > At the top level of a function, or script, function declarations are - // > treated like var declarations rather than like lexical declarations. - pp$3.treatFunctionsAsVarInScope = function(scope) { - return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP) - }; - - pp$3.declareName = function(name, bindingType, pos) { - var redeclared = false; - if (bindingType === BIND_LEXICAL) { - var scope = this.currentScope(); - redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1; - scope.lexical.push(name); - if (this.inModule && (scope.flags & SCOPE_TOP)) - { delete this.undefinedExports[name]; } - } else if (bindingType === BIND_SIMPLE_CATCH) { - var scope$1 = this.currentScope(); - scope$1.lexical.push(name); - } else if (bindingType === BIND_FUNCTION) { - var scope$2 = this.currentScope(); - if (this.treatFunctionsAsVar) - { redeclared = scope$2.lexical.indexOf(name) > -1; } - else - { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; } - scope$2.functions.push(name); - } else { - for (var i = this.scopeStack.length - 1; i >= 0; --i) { - var scope$3 = this.scopeStack[i]; - if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) || - !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) { - redeclared = true; - break - } - scope$3.var.push(name); - if (this.inModule && (scope$3.flags & SCOPE_TOP)) - { delete this.undefinedExports[name]; } - if (scope$3.flags & SCOPE_VAR) { break } - } - } - if (redeclared) { this.raiseRecoverable(pos, ("Identifier '" + name + "' has already been declared")); } - }; - - pp$3.checkLocalExport = function(id) { - // scope.functions must be empty as Module code is always strict. - if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && - this.scopeStack[0].var.indexOf(id.name) === -1) { - this.undefinedExports[id.name] = id; - } - }; - - pp$3.currentScope = function() { - return this.scopeStack[this.scopeStack.length - 1] - }; - - pp$3.currentVarScope = function() { - for (var i = this.scopeStack.length - 1;; i--) { - var scope = this.scopeStack[i]; - if (scope.flags & SCOPE_VAR) { return scope } - } - }; - - // Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`. - pp$3.currentThisScope = function() { - for (var i = this.scopeStack.length - 1;; i--) { - var scope = this.scopeStack[i]; - if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope } - } - }; - - var Node = function Node(parser, pos, loc) { - this.type = ""; - this.start = pos; - this.end = 0; - if (parser.options.locations) - { this.loc = new SourceLocation(parser, loc); } - if (parser.options.directSourceFile) - { this.sourceFile = parser.options.directSourceFile; } - if (parser.options.ranges) - { this.range = [pos, 0]; } - }; - - // Start an AST node, attaching a start offset. - - var pp$2 = Parser.prototype; - - pp$2.startNode = function() { - return new Node(this, this.start, this.startLoc) - }; - - pp$2.startNodeAt = function(pos, loc) { - return new Node(this, pos, loc) - }; - - // Finish an AST node, adding `type` and `end` properties. - - function finishNodeAt(node, type, pos, loc) { - node.type = type; - node.end = pos; - if (this.options.locations) - { node.loc.end = loc; } - if (this.options.ranges) - { node.range[1] = pos; } - return node - } - - pp$2.finishNode = function(node, type) { - return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc) - }; - - // Finish node at given position - - pp$2.finishNodeAt = function(node, type, pos, loc) { - return finishNodeAt.call(this, node, type, pos, loc) - }; - - pp$2.copyNode = function(node) { - var newNode = new Node(this, node.start, this.startLoc); - for (var prop in node) { newNode[prop] = node[prop]; } - return newNode - }; - - // This file contains Unicode properties extracted from the ECMAScript specification. - // The lists are extracted like so: - // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText) - - // #table-binary-unicode-properties - var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS"; - var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic"; - var ecma11BinaryProperties = ecma10BinaryProperties; - var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict"; - var ecma13BinaryProperties = ecma12BinaryProperties; - var ecma14BinaryProperties = ecma13BinaryProperties; - - var unicodeBinaryProperties = { - 9: ecma9BinaryProperties, - 10: ecma10BinaryProperties, - 11: ecma11BinaryProperties, - 12: ecma12BinaryProperties, - 13: ecma13BinaryProperties, - 14: ecma14BinaryProperties - }; - - // #table-unicode-general-category-values - var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu"; - - // #table-unicode-script-values - var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb"; - var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd"; - var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"; - var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"; - var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith"; - var ecma14ScriptValues = ecma13ScriptValues + " Kawi Nag_Mundari Nagm"; - - var unicodeScriptValues = { - 9: ecma9ScriptValues, - 10: ecma10ScriptValues, - 11: ecma11ScriptValues, - 12: ecma12ScriptValues, - 13: ecma13ScriptValues, - 14: ecma14ScriptValues - }; - - var data = {}; - function buildUnicodeData(ecmaVersion) { - var d = data[ecmaVersion] = { - binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues), - nonBinary: { - General_Category: wordsRegexp(unicodeGeneralCategoryValues), - Script: wordsRegexp(unicodeScriptValues[ecmaVersion]) - } - }; - d.nonBinary.Script_Extensions = d.nonBinary.Script; - - d.nonBinary.gc = d.nonBinary.General_Category; - d.nonBinary.sc = d.nonBinary.Script; - d.nonBinary.scx = d.nonBinary.Script_Extensions; - } - - for (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) { - var ecmaVersion = list[i]; - - buildUnicodeData(ecmaVersion); - } - - var pp$1 = Parser.prototype; - - var RegExpValidationState = function RegExpValidationState(parser) { - this.parser = parser; - this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : ""); - this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion]; - this.source = ""; - this.flags = ""; - this.start = 0; - this.switchU = false; - this.switchN = false; - this.pos = 0; - this.lastIntValue = 0; - this.lastStringValue = ""; - this.lastAssertionIsQuantifiable = false; - this.numCapturingParens = 0; - this.maxBackReference = 0; - this.groupNames = []; - this.backReferenceNames = []; - }; - - RegExpValidationState.prototype.reset = function reset (start, pattern, flags) { - var unicode = flags.indexOf("u") !== -1; - this.start = start | 0; - this.source = pattern + ""; - this.flags = flags; - this.switchU = unicode && this.parser.options.ecmaVersion >= 6; - this.switchN = unicode && this.parser.options.ecmaVersion >= 9; - }; - - RegExpValidationState.prototype.raise = function raise (message) { - this.parser.raiseRecoverable(this.start, ("Invalid regular expression: /" + (this.source) + "/: " + message)); - }; - - // If u flag is given, this returns the code point at the index (it combines a surrogate pair). - // Otherwise, this returns the code unit of the index (can be a part of a surrogate pair). - RegExpValidationState.prototype.at = function at (i, forceU) { - if ( forceU === void 0 ) forceU = false; - - var s = this.source; - var l = s.length; - if (i >= l) { - return -1 - } - var c = s.charCodeAt(i); - if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) { - return c - } - var next = s.charCodeAt(i + 1); - return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c - }; - - RegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) { - if ( forceU === void 0 ) forceU = false; - - var s = this.source; - var l = s.length; - if (i >= l) { - return l - } - var c = s.charCodeAt(i), next; - if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l || - (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) { - return i + 1 - } - return i + 2 - }; - - RegExpValidationState.prototype.current = function current (forceU) { - if ( forceU === void 0 ) forceU = false; - - return this.at(this.pos, forceU) - }; - - RegExpValidationState.prototype.lookahead = function lookahead (forceU) { - if ( forceU === void 0 ) forceU = false; - - return this.at(this.nextIndex(this.pos, forceU), forceU) - }; - - RegExpValidationState.prototype.advance = function advance (forceU) { - if ( forceU === void 0 ) forceU = false; - - this.pos = this.nextIndex(this.pos, forceU); - }; - - RegExpValidationState.prototype.eat = function eat (ch, forceU) { - if ( forceU === void 0 ) forceU = false; - - if (this.current(forceU) === ch) { - this.advance(forceU); - return true - } - return false - }; - - /** - * Validate the flags part of a given RegExpLiteral. - * - * @param {RegExpValidationState} state The state to validate RegExp. - * @returns {void} - */ - pp$1.validateRegExpFlags = function(state) { - var validFlags = state.validFlags; - var flags = state.flags; - - for (var i = 0; i < flags.length; i++) { - var flag = flags.charAt(i); - if (validFlags.indexOf(flag) === -1) { - this.raise(state.start, "Invalid regular expression flag"); - } - if (flags.indexOf(flag, i + 1) > -1) { - this.raise(state.start, "Duplicate regular expression flag"); - } - } - }; - - /** - * Validate the pattern part of a given RegExpLiteral. - * - * @param {RegExpValidationState} state The state to validate RegExp. - * @returns {void} - */ - pp$1.validateRegExpPattern = function(state) { - this.regexp_pattern(state); - - // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of - // parsing contains a |GroupName|, reparse with the goal symbol - // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError* - // exception if _P_ did not conform to the grammar, if any elements of _P_ - // were not matched by the parse, or if any Early Error conditions exist. - if (!state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0) { - state.switchN = true; - this.regexp_pattern(state); - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern - pp$1.regexp_pattern = function(state) { - state.pos = 0; - state.lastIntValue = 0; - state.lastStringValue = ""; - state.lastAssertionIsQuantifiable = false; - state.numCapturingParens = 0; - state.maxBackReference = 0; - state.groupNames.length = 0; - state.backReferenceNames.length = 0; - - this.regexp_disjunction(state); - - if (state.pos !== state.source.length) { - // Make the same messages as V8. - if (state.eat(0x29 /* ) */)) { - state.raise("Unmatched ')'"); - } - if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) { - state.raise("Lone quantifier brackets"); - } - } - if (state.maxBackReference > state.numCapturingParens) { - state.raise("Invalid escape"); - } - for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) { - var name = list[i]; - - if (state.groupNames.indexOf(name) === -1) { - state.raise("Invalid named capture referenced"); - } - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction - pp$1.regexp_disjunction = function(state) { - this.regexp_alternative(state); - while (state.eat(0x7C /* | */)) { - this.regexp_alternative(state); - } - - // Make the same message as V8. - if (this.regexp_eatQuantifier(state, true)) { - state.raise("Nothing to repeat"); - } - if (state.eat(0x7B /* { */)) { - state.raise("Lone quantifier brackets"); - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative - pp$1.regexp_alternative = function(state) { - while (state.pos < state.source.length && this.regexp_eatTerm(state)) - { } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term - pp$1.regexp_eatTerm = function(state) { - if (this.regexp_eatAssertion(state)) { - // Handle `QuantifiableAssertion Quantifier` alternative. - // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion - // is a QuantifiableAssertion. - if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) { - // Make the same message as V8. - if (state.switchU) { - state.raise("Invalid quantifier"); - } - } - return true - } - - if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) { - this.regexp_eatQuantifier(state); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion - pp$1.regexp_eatAssertion = function(state) { - var start = state.pos; - state.lastAssertionIsQuantifiable = false; - - // ^, $ - if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) { - return true - } - - // \b \B - if (state.eat(0x5C /* \ */)) { - if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) { - return true - } - state.pos = start; - } - - // Lookahead / Lookbehind - if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) { - var lookbehind = false; - if (this.options.ecmaVersion >= 9) { - lookbehind = state.eat(0x3C /* < */); - } - if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) { - this.regexp_disjunction(state); - if (!state.eat(0x29 /* ) */)) { - state.raise("Unterminated group"); - } - state.lastAssertionIsQuantifiable = !lookbehind; - return true - } - } - - state.pos = start; - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier - pp$1.regexp_eatQuantifier = function(state, noError) { - if ( noError === void 0 ) noError = false; - - if (this.regexp_eatQuantifierPrefix(state, noError)) { - state.eat(0x3F /* ? */); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix - pp$1.regexp_eatQuantifierPrefix = function(state, noError) { - return ( - state.eat(0x2A /* * */) || - state.eat(0x2B /* + */) || - state.eat(0x3F /* ? */) || - this.regexp_eatBracedQuantifier(state, noError) - ) - }; - pp$1.regexp_eatBracedQuantifier = function(state, noError) { - var start = state.pos; - if (state.eat(0x7B /* { */)) { - var min = 0, max = -1; - if (this.regexp_eatDecimalDigits(state)) { - min = state.lastIntValue; - if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) { - max = state.lastIntValue; - } - if (state.eat(0x7D /* } */)) { - // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term - if (max !== -1 && max < min && !noError) { - state.raise("numbers out of order in {} quantifier"); - } - return true - } - } - if (state.switchU && !noError) { - state.raise("Incomplete quantifier"); - } - state.pos = start; - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Atom - pp$1.regexp_eatAtom = function(state) { - return ( - this.regexp_eatPatternCharacters(state) || - state.eat(0x2E /* . */) || - this.regexp_eatReverseSolidusAtomEscape(state) || - this.regexp_eatCharacterClass(state) || - this.regexp_eatUncapturingGroup(state) || - this.regexp_eatCapturingGroup(state) - ) - }; - pp$1.regexp_eatReverseSolidusAtomEscape = function(state) { - var start = state.pos; - if (state.eat(0x5C /* \ */)) { - if (this.regexp_eatAtomEscape(state)) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatUncapturingGroup = function(state) { - var start = state.pos; - if (state.eat(0x28 /* ( */)) { - if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) { - this.regexp_disjunction(state); - if (state.eat(0x29 /* ) */)) { - return true - } - state.raise("Unterminated group"); - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatCapturingGroup = function(state) { - if (state.eat(0x28 /* ( */)) { - if (this.options.ecmaVersion >= 9) { - this.regexp_groupSpecifier(state); - } else if (state.current() === 0x3F /* ? */) { - state.raise("Invalid group"); - } - this.regexp_disjunction(state); - if (state.eat(0x29 /* ) */)) { - state.numCapturingParens += 1; - return true - } - state.raise("Unterminated group"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom - pp$1.regexp_eatExtendedAtom = function(state) { - return ( - state.eat(0x2E /* . */) || - this.regexp_eatReverseSolidusAtomEscape(state) || - this.regexp_eatCharacterClass(state) || - this.regexp_eatUncapturingGroup(state) || - this.regexp_eatCapturingGroup(state) || - this.regexp_eatInvalidBracedQuantifier(state) || - this.regexp_eatExtendedPatternCharacter(state) - ) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier - pp$1.regexp_eatInvalidBracedQuantifier = function(state) { - if (this.regexp_eatBracedQuantifier(state, true)) { - state.raise("Nothing to repeat"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter - pp$1.regexp_eatSyntaxCharacter = function(state) { - var ch = state.current(); - if (isSyntaxCharacter(ch)) { - state.lastIntValue = ch; - state.advance(); - return true - } - return false - }; - function isSyntaxCharacter(ch) { - return ( - ch === 0x24 /* $ */ || - ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ || - ch === 0x2E /* . */ || - ch === 0x3F /* ? */ || - ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ || - ch >= 0x7B /* { */ && ch <= 0x7D /* } */ - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter - // But eat eager. - pp$1.regexp_eatPatternCharacters = function(state) { - var start = state.pos; - var ch = 0; - while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) { - state.advance(); - } - return state.pos !== start - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter - pp$1.regexp_eatExtendedPatternCharacter = function(state) { - var ch = state.current(); - if ( - ch !== -1 && - ch !== 0x24 /* $ */ && - !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) && - ch !== 0x2E /* . */ && - ch !== 0x3F /* ? */ && - ch !== 0x5B /* [ */ && - ch !== 0x5E /* ^ */ && - ch !== 0x7C /* | */ - ) { - state.advance(); - return true - } - return false - }; - - // GroupSpecifier :: - // [empty] - // `?` GroupName - pp$1.regexp_groupSpecifier = function(state) { - if (state.eat(0x3F /* ? */)) { - if (this.regexp_eatGroupName(state)) { - if (state.groupNames.indexOf(state.lastStringValue) !== -1) { - state.raise("Duplicate capture group name"); - } - state.groupNames.push(state.lastStringValue); - return - } - state.raise("Invalid group"); - } - }; - - // GroupName :: - // `<` RegExpIdentifierName `>` - // Note: this updates `state.lastStringValue` property with the eaten name. - pp$1.regexp_eatGroupName = function(state) { - state.lastStringValue = ""; - if (state.eat(0x3C /* < */)) { - if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) { - return true - } - state.raise("Invalid capture group name"); - } - return false - }; - - // RegExpIdentifierName :: - // RegExpIdentifierStart - // RegExpIdentifierName RegExpIdentifierPart - // Note: this updates `state.lastStringValue` property with the eaten name. - pp$1.regexp_eatRegExpIdentifierName = function(state) { - state.lastStringValue = ""; - if (this.regexp_eatRegExpIdentifierStart(state)) { - state.lastStringValue += codePointToString(state.lastIntValue); - while (this.regexp_eatRegExpIdentifierPart(state)) { - state.lastStringValue += codePointToString(state.lastIntValue); - } - return true - } - return false - }; - - // RegExpIdentifierStart :: - // UnicodeIDStart - // `$` - // `_` - // `\` RegExpUnicodeEscapeSequence[+U] - pp$1.regexp_eatRegExpIdentifierStart = function(state) { - var start = state.pos; - var forceU = this.options.ecmaVersion >= 11; - var ch = state.current(forceU); - state.advance(forceU); - - if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) { - ch = state.lastIntValue; - } - if (isRegExpIdentifierStart(ch)) { - state.lastIntValue = ch; - return true - } - - state.pos = start; - return false - }; - function isRegExpIdentifierStart(ch) { - return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ - } - - // RegExpIdentifierPart :: - // UnicodeIDContinue - // `$` - // `_` - // `\` RegExpUnicodeEscapeSequence[+U] - // - // - pp$1.regexp_eatRegExpIdentifierPart = function(state) { - var start = state.pos; - var forceU = this.options.ecmaVersion >= 11; - var ch = state.current(forceU); - state.advance(forceU); - - if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) { - ch = state.lastIntValue; - } - if (isRegExpIdentifierPart(ch)) { - state.lastIntValue = ch; - return true - } - - state.pos = start; - return false - }; - function isRegExpIdentifierPart(ch) { - return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape - pp$1.regexp_eatAtomEscape = function(state) { - if ( - this.regexp_eatBackReference(state) || - this.regexp_eatCharacterClassEscape(state) || - this.regexp_eatCharacterEscape(state) || - (state.switchN && this.regexp_eatKGroupName(state)) - ) { - return true - } - if (state.switchU) { - // Make the same message as V8. - if (state.current() === 0x63 /* c */) { - state.raise("Invalid unicode escape"); - } - state.raise("Invalid escape"); - } - return false - }; - pp$1.regexp_eatBackReference = function(state) { - var start = state.pos; - if (this.regexp_eatDecimalEscape(state)) { - var n = state.lastIntValue; - if (state.switchU) { - // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape - if (n > state.maxBackReference) { - state.maxBackReference = n; - } - return true - } - if (n <= state.numCapturingParens) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatKGroupName = function(state) { - if (state.eat(0x6B /* k */)) { - if (this.regexp_eatGroupName(state)) { - state.backReferenceNames.push(state.lastStringValue); - return true - } - state.raise("Invalid named reference"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape - pp$1.regexp_eatCharacterEscape = function(state) { - return ( - this.regexp_eatControlEscape(state) || - this.regexp_eatCControlLetter(state) || - this.regexp_eatZero(state) || - this.regexp_eatHexEscapeSequence(state) || - this.regexp_eatRegExpUnicodeEscapeSequence(state, false) || - (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) || - this.regexp_eatIdentityEscape(state) - ) - }; - pp$1.regexp_eatCControlLetter = function(state) { - var start = state.pos; - if (state.eat(0x63 /* c */)) { - if (this.regexp_eatControlLetter(state)) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatZero = function(state) { - if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) { - state.lastIntValue = 0; - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape - pp$1.regexp_eatControlEscape = function(state) { - var ch = state.current(); - if (ch === 0x74 /* t */) { - state.lastIntValue = 0x09; /* \t */ - state.advance(); - return true - } - if (ch === 0x6E /* n */) { - state.lastIntValue = 0x0A; /* \n */ - state.advance(); - return true - } - if (ch === 0x76 /* v */) { - state.lastIntValue = 0x0B; /* \v */ - state.advance(); - return true - } - if (ch === 0x66 /* f */) { - state.lastIntValue = 0x0C; /* \f */ - state.advance(); - return true - } - if (ch === 0x72 /* r */) { - state.lastIntValue = 0x0D; /* \r */ - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter - pp$1.regexp_eatControlLetter = function(state) { - var ch = state.current(); - if (isControlLetter(ch)) { - state.lastIntValue = ch % 0x20; - state.advance(); - return true - } - return false - }; - function isControlLetter(ch) { - return ( - (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) || - (ch >= 0x61 /* a */ && ch <= 0x7A /* z */) - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence - pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) { - if ( forceU === void 0 ) forceU = false; - - var start = state.pos; - var switchU = forceU || state.switchU; - - if (state.eat(0x75 /* u */)) { - if (this.regexp_eatFixedHexDigits(state, 4)) { - var lead = state.lastIntValue; - if (switchU && lead >= 0xD800 && lead <= 0xDBFF) { - var leadSurrogateEnd = state.pos; - if (state.eat(0x5C /* \ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) { - var trail = state.lastIntValue; - if (trail >= 0xDC00 && trail <= 0xDFFF) { - state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000; - return true - } - } - state.pos = leadSurrogateEnd; - state.lastIntValue = lead; - } - return true - } - if ( - switchU && - state.eat(0x7B /* { */) && - this.regexp_eatHexDigits(state) && - state.eat(0x7D /* } */) && - isValidUnicode(state.lastIntValue) - ) { - return true - } - if (switchU) { - state.raise("Invalid unicode escape"); - } - state.pos = start; - } - - return false - }; - function isValidUnicode(ch) { - return ch >= 0 && ch <= 0x10FFFF - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape - pp$1.regexp_eatIdentityEscape = function(state) { - if (state.switchU) { - if (this.regexp_eatSyntaxCharacter(state)) { - return true - } - if (state.eat(0x2F /* / */)) { - state.lastIntValue = 0x2F; /* / */ - return true - } - return false - } - - var ch = state.current(); - if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) { - state.lastIntValue = ch; - state.advance(); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape - pp$1.regexp_eatDecimalEscape = function(state) { - state.lastIntValue = 0; - var ch = state.current(); - if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) { - do { - state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */); - state.advance(); - } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape - pp$1.regexp_eatCharacterClassEscape = function(state) { - var ch = state.current(); - - if (isCharacterClassEscape(ch)) { - state.lastIntValue = -1; - state.advance(); - return true - } - - if ( - state.switchU && - this.options.ecmaVersion >= 9 && - (ch === 0x50 /* P */ || ch === 0x70 /* p */) - ) { - state.lastIntValue = -1; - state.advance(); - if ( - state.eat(0x7B /* { */) && - this.regexp_eatUnicodePropertyValueExpression(state) && - state.eat(0x7D /* } */) - ) { - return true - } - state.raise("Invalid property name"); - } - - return false - }; - function isCharacterClassEscape(ch) { - return ( - ch === 0x64 /* d */ || - ch === 0x44 /* D */ || - ch === 0x73 /* s */ || - ch === 0x53 /* S */ || - ch === 0x77 /* w */ || - ch === 0x57 /* W */ - ) - } - - // UnicodePropertyValueExpression :: - // UnicodePropertyName `=` UnicodePropertyValue - // LoneUnicodePropertyNameOrValue - pp$1.regexp_eatUnicodePropertyValueExpression = function(state) { - var start = state.pos; - - // UnicodePropertyName `=` UnicodePropertyValue - if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) { - var name = state.lastStringValue; - if (this.regexp_eatUnicodePropertyValue(state)) { - var value = state.lastStringValue; - this.regexp_validateUnicodePropertyNameAndValue(state, name, value); - return true - } - } - state.pos = start; - - // LoneUnicodePropertyNameOrValue - if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) { - var nameOrValue = state.lastStringValue; - this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue); - return true - } - return false - }; - pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) { - if (!hasOwn(state.unicodeProperties.nonBinary, name)) - { state.raise("Invalid property name"); } - if (!state.unicodeProperties.nonBinary[name].test(value)) - { state.raise("Invalid property value"); } - }; - pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) { - if (!state.unicodeProperties.binary.test(nameOrValue)) - { state.raise("Invalid property name"); } - }; - - // UnicodePropertyName :: - // UnicodePropertyNameCharacters - pp$1.regexp_eatUnicodePropertyName = function(state) { - var ch = 0; - state.lastStringValue = ""; - while (isUnicodePropertyNameCharacter(ch = state.current())) { - state.lastStringValue += codePointToString(ch); - state.advance(); - } - return state.lastStringValue !== "" - }; - function isUnicodePropertyNameCharacter(ch) { - return isControlLetter(ch) || ch === 0x5F /* _ */ - } - - // UnicodePropertyValue :: - // UnicodePropertyValueCharacters - pp$1.regexp_eatUnicodePropertyValue = function(state) { - var ch = 0; - state.lastStringValue = ""; - while (isUnicodePropertyValueCharacter(ch = state.current())) { - state.lastStringValue += codePointToString(ch); - state.advance(); - } - return state.lastStringValue !== "" - }; - function isUnicodePropertyValueCharacter(ch) { - return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch) - } - - // LoneUnicodePropertyNameOrValue :: - // UnicodePropertyValueCharacters - pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) { - return this.regexp_eatUnicodePropertyValue(state) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass - pp$1.regexp_eatCharacterClass = function(state) { - if (state.eat(0x5B /* [ */)) { - state.eat(0x5E /* ^ */); - this.regexp_classRanges(state); - if (state.eat(0x5D /* ] */)) { - return true - } - // Unreachable since it threw "unterminated regular expression" error before. - state.raise("Unterminated character class"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges - // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges - // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash - pp$1.regexp_classRanges = function(state) { - while (this.regexp_eatClassAtom(state)) { - var left = state.lastIntValue; - if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) { - var right = state.lastIntValue; - if (state.switchU && (left === -1 || right === -1)) { - state.raise("Invalid character class"); - } - if (left !== -1 && right !== -1 && left > right) { - state.raise("Range out of order in character class"); - } - } - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash - pp$1.regexp_eatClassAtom = function(state) { - var start = state.pos; - - if (state.eat(0x5C /* \ */)) { - if (this.regexp_eatClassEscape(state)) { - return true - } - if (state.switchU) { - // Make the same message as V8. - var ch$1 = state.current(); - if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) { - state.raise("Invalid class escape"); - } - state.raise("Invalid escape"); - } - state.pos = start; - } - - var ch = state.current(); - if (ch !== 0x5D /* ] */) { - state.lastIntValue = ch; - state.advance(); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape - pp$1.regexp_eatClassEscape = function(state) { - var start = state.pos; - - if (state.eat(0x62 /* b */)) { - state.lastIntValue = 0x08; /* */ - return true - } - - if (state.switchU && state.eat(0x2D /* - */)) { - state.lastIntValue = 0x2D; /* - */ - return true - } - - if (!state.switchU && state.eat(0x63 /* c */)) { - if (this.regexp_eatClassControlLetter(state)) { - return true - } - state.pos = start; - } - - return ( - this.regexp_eatCharacterClassEscape(state) || - this.regexp_eatCharacterEscape(state) - ) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter - pp$1.regexp_eatClassControlLetter = function(state) { - var ch = state.current(); - if (isDecimalDigit(ch) || ch === 0x5F /* _ */) { - state.lastIntValue = ch % 0x20; - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence - pp$1.regexp_eatHexEscapeSequence = function(state) { - var start = state.pos; - if (state.eat(0x78 /* x */)) { - if (this.regexp_eatFixedHexDigits(state, 2)) { - return true - } - if (state.switchU) { - state.raise("Invalid escape"); - } - state.pos = start; - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits - pp$1.regexp_eatDecimalDigits = function(state) { - var start = state.pos; - var ch = 0; - state.lastIntValue = 0; - while (isDecimalDigit(ch = state.current())) { - state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */); - state.advance(); - } - return state.pos !== start - }; - function isDecimalDigit(ch) { - return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits - pp$1.regexp_eatHexDigits = function(state) { - var start = state.pos; - var ch = 0; - state.lastIntValue = 0; - while (isHexDigit(ch = state.current())) { - state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch); - state.advance(); - } - return state.pos !== start - }; - function isHexDigit(ch) { - return ( - (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) || - (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) || - (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) - ) - } - function hexToInt(ch) { - if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) { - return 10 + (ch - 0x41 /* A */) - } - if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) { - return 10 + (ch - 0x61 /* a */) - } - return ch - 0x30 /* 0 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence - // Allows only 0-377(octal) i.e. 0-255(decimal). - pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) { - if (this.regexp_eatOctalDigit(state)) { - var n1 = state.lastIntValue; - if (this.regexp_eatOctalDigit(state)) { - var n2 = state.lastIntValue; - if (n1 <= 3 && this.regexp_eatOctalDigit(state)) { - state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue; - } else { - state.lastIntValue = n1 * 8 + n2; - } - } else { - state.lastIntValue = n1; - } - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit - pp$1.regexp_eatOctalDigit = function(state) { - var ch = state.current(); - if (isOctalDigit(ch)) { - state.lastIntValue = ch - 0x30; /* 0 */ - state.advance(); - return true - } - state.lastIntValue = 0; - return false - }; - function isOctalDigit(ch) { - return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit - // And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence - pp$1.regexp_eatFixedHexDigits = function(state, length) { - var start = state.pos; - state.lastIntValue = 0; - for (var i = 0; i < length; ++i) { - var ch = state.current(); - if (!isHexDigit(ch)) { - state.pos = start; - return false - } - state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch); - state.advance(); - } - return true - }; - - // Object type used to represent tokens. Note that normally, tokens - // simply exist as properties on the parser object. This is only - // used for the onToken callback and the external tokenizer. - - var Token = function Token(p) { - this.type = p.type; - this.value = p.value; - this.start = p.start; - this.end = p.end; - if (p.options.locations) - { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); } - if (p.options.ranges) - { this.range = [p.start, p.end]; } - }; - - // ## Tokenizer - - var pp = Parser.prototype; - - // Move to the next token - - pp.next = function(ignoreEscapeSequenceInKeyword) { - if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) - { this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword); } - if (this.options.onToken) - { this.options.onToken(new Token(this)); } - - this.lastTokEnd = this.end; - this.lastTokStart = this.start; - this.lastTokEndLoc = this.endLoc; - this.lastTokStartLoc = this.startLoc; - this.nextToken(); - }; - - pp.getToken = function() { - this.next(); - return new Token(this) - }; - - // If we're in an ES6 environment, make parsers iterable - if (typeof Symbol !== "undefined") - { pp[Symbol.iterator] = function() { - var this$1$1 = this; - - return { - next: function () { - var token = this$1$1.getToken(); - return { - done: token.type === types$1.eof, - value: token - } - } - } - }; } - - // Toggle strict mode. Re-reads the next number or string to please - // pedantic tests (`"use strict"; 010;` should fail). - - // Read a single token, updating the parser object's token-related - // properties. - - pp.nextToken = function() { - var curContext = this.curContext(); - if (!curContext || !curContext.preserveSpace) { this.skipSpace(); } - - this.start = this.pos; - if (this.options.locations) { this.startLoc = this.curPosition(); } - if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) } - - if (curContext.override) { return curContext.override(this) } - else { this.readToken(this.fullCharCodeAtPos()); } - }; - - pp.readToken = function(code) { - // Identifier or keyword. '\uXXXX' sequences are allowed in - // identifiers, so '\' also dispatches to that. - if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */) - { return this.readWord() } - - return this.getTokenFromCode(code) - }; - - pp.fullCharCodeAtPos = function() { - var code = this.input.charCodeAt(this.pos); - if (code <= 0xd7ff || code >= 0xdc00) { return code } - var next = this.input.charCodeAt(this.pos + 1); - return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00 - }; - - pp.skipBlockComment = function() { - var startLoc = this.options.onComment && this.curPosition(); - var start = this.pos, end = this.input.indexOf("*/", this.pos += 2); - if (end === -1) { this.raise(this.pos - 2, "Unterminated comment"); } - this.pos = end + 2; - if (this.options.locations) { - for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) { - ++this.curLine; - pos = this.lineStart = nextBreak; - } - } - if (this.options.onComment) - { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, - startLoc, this.curPosition()); } - }; - - pp.skipLineComment = function(startSkip) { - var start = this.pos; - var startLoc = this.options.onComment && this.curPosition(); - var ch = this.input.charCodeAt(this.pos += startSkip); - while (this.pos < this.input.length && !isNewLine(ch)) { - ch = this.input.charCodeAt(++this.pos); - } - if (this.options.onComment) - { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, - startLoc, this.curPosition()); } - }; - - // Called at the start of the parse and after every token. Skips - // whitespace and comments, and. - - pp.skipSpace = function() { - loop: while (this.pos < this.input.length) { - var ch = this.input.charCodeAt(this.pos); - switch (ch) { - case 32: case 160: // ' ' - ++this.pos; - break - case 13: - if (this.input.charCodeAt(this.pos + 1) === 10) { - ++this.pos; - } - case 10: case 8232: case 8233: - ++this.pos; - if (this.options.locations) { - ++this.curLine; - this.lineStart = this.pos; - } - break - case 47: // '/' - switch (this.input.charCodeAt(this.pos + 1)) { - case 42: // '*' - this.skipBlockComment(); - break - case 47: - this.skipLineComment(2); - break - default: - break loop - } - break - default: - if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) { - ++this.pos; - } else { - break loop - } - } - } - }; - - // Called at the end of every token. Sets `end`, `val`, and - // maintains `context` and `exprAllowed`, and skips the space after - // the token, so that the next one's `start` will point at the - // right position. - - pp.finishToken = function(type, val) { - this.end = this.pos; - if (this.options.locations) { this.endLoc = this.curPosition(); } - var prevType = this.type; - this.type = type; - this.value = val; - - this.updateContext(prevType); - }; - - // ### Token reading - - // This is the function that is called to fetch the next token. It - // is somewhat obscure, because it works in character codes rather - // than characters, and because operator parsing has been inlined - // into it. - // - // All in the name of speed. - // - pp.readToken_dot = function() { - var next = this.input.charCodeAt(this.pos + 1); - if (next >= 48 && next <= 57) { return this.readNumber(true) } - var next2 = this.input.charCodeAt(this.pos + 2); - if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.' - this.pos += 3; - return this.finishToken(types$1.ellipsis) - } else { - ++this.pos; - return this.finishToken(types$1.dot) - } - }; - - pp.readToken_slash = function() { // '/' - var next = this.input.charCodeAt(this.pos + 1); - if (this.exprAllowed) { ++this.pos; return this.readRegexp() } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.slash, 1) - }; - - pp.readToken_mult_modulo_exp = function(code) { // '%*' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - var tokentype = code === 42 ? types$1.star : types$1.modulo; - - // exponentiation operator ** and **= - if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) { - ++size; - tokentype = types$1.starstar; - next = this.input.charCodeAt(this.pos + 2); - } - - if (next === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(tokentype, size) - }; - - pp.readToken_pipe_amp = function(code) { // '|&' - var next = this.input.charCodeAt(this.pos + 1); - if (next === code) { - if (this.options.ecmaVersion >= 12) { - var next2 = this.input.charCodeAt(this.pos + 2); - if (next2 === 61) { return this.finishOp(types$1.assign, 3) } - } - return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1) - }; - - pp.readToken_caret = function() { // '^' - var next = this.input.charCodeAt(this.pos + 1); - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.bitwiseXOR, 1) - }; - - pp.readToken_plus_min = function(code) { // '+-' - var next = this.input.charCodeAt(this.pos + 1); - if (next === code) { - if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && - (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) { - // A `-->` line comment - this.skipLineComment(3); - this.skipSpace(); - return this.nextToken() - } - return this.finishOp(types$1.incDec, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.plusMin, 1) - }; - - pp.readToken_lt_gt = function(code) { // '<>' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - if (next === code) { - size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(types$1.bitShift, size) - } - if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && - this.input.charCodeAt(this.pos + 3) === 45) { - // `` line comment - this.skipLineComment(3); - this.skipSpace(); - return this.nextToken() - } - return this.finishOp(types$1.incDec, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.plusMin, 1) -}; - -pp.readToken_lt_gt = function(code) { // '<>' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - if (next === code) { - size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(types$1.bitShift, size) - } - if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && - this.input.charCodeAt(this.pos + 3) === 45) { - // `"; -var handler = new htmlparser.DefaultHandler(function (error, dom) { - if (error) - [...do something for errors...] - else - [...parsing done, do something...] -}); -var parser = new htmlparser.Parser(handler); -parser.parseComplete(rawHtml); -sys.puts(sys.inspect(handler.dom, false, null)); -``` - -##Usage In Browser - -```javascript -var handler = new Tautologistics.NodeHtmlParser.DefaultHandler(function (error, dom) { - if (error) - [...do something for errors...] - else - [...parsing done, do something...] -}); -var parser = new Tautologistics.NodeHtmlParser.Parser(handler); -parser.parseComplete(document.body.innerHTML); -alert(JSON.stringify(handler.dom, null, 2)); -``` - -##Example output - -```javascript -[ { raw: 'Xyz ', data: 'Xyz ', type: 'text' } - , { raw: 'script language= javascript' - , data: 'script language= javascript' - , type: 'script' - , name: 'script' - , attribs: { language: 'javascript' } - , children: - [ { raw: 'var foo = \'\';<' - , data: 'var foo = \'\';<' - , type: 'text' - } - ] - } -, { raw: ' - , Script: "script" //Special tag - , Style: "style" //Special tag - , Tag: "tag" //Any tag that isn't special -} - -function Parser (handler, options) { - this._options = options ? options : { }; - if (this._options.includeLocation == undefined) { - this._options.includeLocation = false; //Do not track element position in document by default - } - - this.validateHandler(handler); - this._handler = handler; - this.reset(); -} - - //**"Static"**// - //Regular expressions used for cleaning up and parsing (stateless) - Parser._reTrim = /(^\s+|\s+$)/g; //Trim leading/trailing whitespace - Parser._reTrimComment = /(^\!--|--$)/g; //Remove comment tag markup from comment contents - Parser._reWhitespace = /\s/g; //Used to find any whitespace to split on - Parser._reTagName = /^\s*(\/?)\s*([^\s\/]+)/; //Used to find the tag name for an element - - //Regular expressions used for parsing (stateful) - Parser._reAttrib = //Find attributes in a tag - /([^=<>\"\'\s]+)\s*=\s*"([^"]*)"|([^=<>\"\'\s]+)\s*=\s*'([^']*)'|([^=<>\"\'\s]+)\s*=\s*([^'"\s]+)|([^=<>\"\'\s\/]+)/g; - Parser._reTags = /[\<\>]/g; //Find tag markers - - //**Public**// - //Methods// - //Parses a complete HTML and pushes it to the handler - Parser.prototype.parseComplete = function Parser$parseComplete (data) { - this.reset(); - this.parseChunk(data); - this.done(); - } - - //Parses a piece of an HTML document - Parser.prototype.parseChunk = function Parser$parseChunk (data) { - if (this._done) - this.handleError(new Error("Attempted to parse chunk after parsing already done")); - this._buffer += data; //FIXME: this can be a bottleneck - this.parseTags(); - } - - //Tells the parser that the HTML being parsed is complete - Parser.prototype.done = function Parser$done () { - if (this._done) - return; - this._done = true; - - //Push any unparsed text into a final element in the element list - if (this._buffer.length) { - var rawData = this._buffer; - this._buffer = ""; - var element = { - raw: rawData - , data: (this._parseState == ElementType.Text) ? rawData : rawData.replace(Parser._reTrim, "") - , type: this._parseState - }; - if (this._parseState == ElementType.Tag || this._parseState == ElementType.Script || this._parseState == ElementType.Style) - element.name = this.parseTagName(element.data); - this.parseAttribs(element); - this._elements.push(element); - } - - this.writeHandler(); - this._handler.done(); - } - - //Resets the parser to a blank state, ready to parse a new HTML document - Parser.prototype.reset = function Parser$reset () { - this._buffer = ""; - this._done = false; - this._elements = []; - this._elementsCurrent = 0; - this._current = 0; - this._next = 0; - this._location = { - row: 0 - , col: 0 - , charOffset: 0 - , inBuffer: 0 - }; - this._parseState = ElementType.Text; - this._prevTagSep = ''; - this._tagStack = []; - this._handler.reset(); - } - - //**Private**// - //Properties// - Parser.prototype._options = null; //Parser options for how to behave - Parser.prototype._handler = null; //Handler for parsed elements - Parser.prototype._buffer = null; //Buffer of unparsed data - Parser.prototype._done = false; //Flag indicating whether parsing is done - Parser.prototype._elements = null; //Array of parsed elements - Parser.prototype._elementsCurrent = 0; //Pointer to last element in _elements that has been processed - Parser.prototype._current = 0; //Position in data that has already been parsed - Parser.prototype._next = 0; //Position in data of the next tag marker (<>) - Parser.prototype._location = null; //Position tracking for elements in a stream - Parser.prototype._parseState = ElementType.Text; //Current type of element being parsed - Parser.prototype._prevTagSep = ''; //Previous tag marker found - //Stack of element types previously encountered; keeps track of when - //parsing occurs inside a script/comment/style tag - Parser.prototype._tagStack = null; - - //Methods// - //Takes an array of elements and parses any found attributes - Parser.prototype.parseTagAttribs = function Parser$parseTagAttribs (elements) { - var idxEnd = elements.length; - var idx = 0; - - while (idx < idxEnd) { - var element = elements[idx++]; - if (element.type == ElementType.Tag || element.type == ElementType.Script || element.type == ElementType.style) - this.parseAttribs(element); - } - - return(elements); - } - - //Takes an element and adds an "attribs" property for any element attributes found - Parser.prototype.parseAttribs = function Parser$parseAttribs (element) { - //Only parse attributes for tags - if (element.type != ElementType.Script && element.type != ElementType.Style && element.type != ElementType.Tag) - return; - - var tagName = element.data.split(Parser._reWhitespace, 1)[0]; - var attribRaw = element.data.substring(tagName.length); - if (attribRaw.length < 1) - return; - - var match; - Parser._reAttrib.lastIndex = 0; - while (match = Parser._reAttrib.exec(attribRaw)) { - if (element.attribs == undefined) - element.attribs = {}; - - if (typeof match[1] == "string" && match[1].length) { - element.attribs[match[1]] = match[2]; - } else if (typeof match[3] == "string" && match[3].length) { - element.attribs[match[3].toString()] = match[4].toString(); - } else if (typeof match[5] == "string" && match[5].length) { - element.attribs[match[5]] = match[6]; - } else if (typeof match[7] == "string" && match[7].length) { - element.attribs[match[7]] = match[7]; - } - } - } - - //Extracts the base tag name from the data value of an element - Parser.prototype.parseTagName = function Parser$parseTagName (data) { - if (data == null || data == "") - return(""); - var match = Parser._reTagName.exec(data); - if (!match) - return(""); - return((match[1] ? "/" : "") + match[2]); - } - - //Parses through HTML text and returns an array of found elements - //I admit, this function is rather large but splitting up had an noticeable impact on speed - Parser.prototype.parseTags = function Parser$parseTags () { - var bufferEnd = this._buffer.length - 1; - while (Parser._reTags.test(this._buffer)) { - this._next = Parser._reTags.lastIndex - 1; - var tagSep = this._buffer.charAt(this._next); //The currently found tag marker - var rawData = this._buffer.substring(this._current, this._next); //The next chunk of data to parse - - //A new element to eventually be appended to the element list - var element = { - raw: rawData - , data: (this._parseState == ElementType.Text) ? rawData : rawData.replace(Parser._reTrim, "") - , type: this._parseState - }; - - var elementName = this.parseTagName(element.data); - - //This section inspects the current tag stack and modifies the current - //element if we're actually parsing a special area (script/comment/style tag) - if (this._tagStack.length) { //We're parsing inside a script/comment/style tag - if (this._tagStack[this._tagStack.length - 1] == ElementType.Script) { //We're currently in a script tag - if (elementName.toLowerCase() == "/script") //Actually, we're no longer in a script tag, so pop it off the stack - this._tagStack.pop(); - else { //Not a closing script tag - if (element.raw.indexOf("!--") != 0) { //Make sure we're not in a comment - //All data from here to script close is now a text element - element.type = ElementType.Text; - //If the previous element is text, append the current text to it - if (this._elements.length && this._elements[this._elements.length - 1].type == ElementType.Text) { - var prevElement = this._elements[this._elements.length - 1]; - prevElement.raw = prevElement.data = prevElement.raw + this._prevTagSep + element.raw; - element.raw = element.data = ""; //This causes the current element to not be added to the element list - } - } - } - } - else if (this._tagStack[this._tagStack.length - 1] == ElementType.Style) { //We're currently in a style tag - if (elementName.toLowerCase() == "/style") //Actually, we're no longer in a style tag, so pop it off the stack - this._tagStack.pop(); - else { - if (element.raw.indexOf("!--") != 0) { //Make sure we're not in a comment - //All data from here to style close is now a text element - element.type = ElementType.Text; - //If the previous element is text, append the current text to it - if (this._elements.length && this._elements[this._elements.length - 1].type == ElementType.Text) { - var prevElement = this._elements[this._elements.length - 1]; - if (element.raw != "") { - prevElement.raw = prevElement.data = prevElement.raw + this._prevTagSep + element.raw; - element.raw = element.data = ""; //This causes the current element to not be added to the element list - } else { //Element is empty, so just append the last tag marker found - prevElement.raw = prevElement.data = prevElement.raw + this._prevTagSep; - } - } else { //The previous element was not text - if (element.raw != "") { - element.raw = element.data = element.raw; - } - } - } - } - } - else if (this._tagStack[this._tagStack.length - 1] == ElementType.Comment) { //We're currently in a comment tag - var rawLen = element.raw.length; - if (element.raw.charAt(rawLen - 2) == "-" && element.raw.charAt(rawLen - 1) == "-" && tagSep == ">") { - //Actually, we're no longer in a style tag, so pop it off the stack - this._tagStack.pop(); - //If the previous element is a comment, append the current text to it - if (this._elements.length && this._elements[this._elements.length - 1].type == ElementType.Comment) { - var prevElement = this._elements[this._elements.length - 1]; - prevElement.raw = prevElement.data = (prevElement.raw + element.raw).replace(Parser._reTrimComment, ""); - element.raw = element.data = ""; //This causes the current element to not be added to the element list - element.type = ElementType.Text; - } - else //Previous element not a comment - element.type = ElementType.Comment; //Change the current element's type to a comment - } - else { //Still in a comment tag - element.type = ElementType.Comment; - //If the previous element is a comment, append the current text to it - if (this._elements.length && this._elements[this._elements.length - 1].type == ElementType.Comment) { - var prevElement = this._elements[this._elements.length - 1]; - prevElement.raw = prevElement.data = prevElement.raw + element.raw + tagSep; - element.raw = element.data = ""; //This causes the current element to not be added to the element list - element.type = ElementType.Text; - } - else - element.raw = element.data = element.raw + tagSep; - } - } - } - - //Processing of non-special tags - if (element.type == ElementType.Tag) { - element.name = elementName; - var elementNameCI = elementName.toLowerCase(); - - if (element.raw.indexOf("!--") == 0) { //This tag is really comment - element.type = ElementType.Comment; - delete element["name"]; - var rawLen = element.raw.length; - //Check if the comment is terminated in the current element - if (element.raw.charAt(rawLen - 1) == "-" && element.raw.charAt(rawLen - 2) == "-" && tagSep == ">") - element.raw = element.data = element.raw.replace(Parser._reTrimComment, ""); - else { //It's not so push the comment onto the tag stack - element.raw += tagSep; - this._tagStack.push(ElementType.Comment); - } - } - else if (element.raw.indexOf("!") == 0 || element.raw.indexOf("?") == 0) { - element.type = ElementType.Directive; - //TODO: what about CDATA? - } - else if (elementNameCI == "script") { - element.type = ElementType.Script; - //Special tag, push onto the tag stack if not terminated - if (element.data.charAt(element.data.length - 1) != "/") - this._tagStack.push(ElementType.Script); - } - else if (elementNameCI == "/script") - element.type = ElementType.Script; - else if (elementNameCI == "style") { - element.type = ElementType.Style; - //Special tag, push onto the tag stack if not terminated - if (element.data.charAt(element.data.length - 1) != "/") - this._tagStack.push(ElementType.Style); - } - else if (elementNameCI == "/style") - element.type = ElementType.Style; - if (element.name && element.name.charAt(0) == "/") - element.data = element.name; - } - - //Add all tags and non-empty text elements to the element list - if (element.raw != "" || element.type != ElementType.Text) { - if (this._options.includeLocation && !element.location) { - element.location = this.getLocation(element.type == ElementType.Tag); - } - this.parseAttribs(element); - this._elements.push(element); - //If tag self-terminates, add an explicit, separate closing tag - if ( - element.type != ElementType.Text - && - element.type != ElementType.Comment - && - element.type != ElementType.Directive - && - element.data.charAt(element.data.length - 1) == "/" - ) - this._elements.push({ - raw: "/" + element.name - , data: "/" + element.name - , name: "/" + element.name - , type: element.type - }); - } - this._parseState = (tagSep == "<") ? ElementType.Tag : ElementType.Text; - this._current = this._next + 1; - this._prevTagSep = tagSep; - } - - if (this._options.includeLocation) { - this.getLocation(); - this._location.row += this._location.inBuffer; - this._location.inBuffer = 0; - this._location.charOffset = 0; - } - this._buffer = (this._current <= bufferEnd) ? this._buffer.substring(this._current) : ""; - this._current = 0; - - this.writeHandler(); - } - - Parser.prototype.getLocation = function Parser$getLocation (startTag) { - var c, - l = this._location, - end = this._current - (startTag ? 1 : 0), - chunk = startTag && l.charOffset == 0 && this._current == 0; - - for (; l.charOffset < end; l.charOffset++) { - c = this._buffer.charAt(l.charOffset); - if (c == '\n') { - l.inBuffer++; - l.col = 0; - } else if (c != '\r') { - l.col++; - } - } - return { - line: l.row + l.inBuffer + 1 - , col: l.col + (chunk ? 0: 1) - }; - } - - //Checks the handler to make it is an object with the right "interface" - Parser.prototype.validateHandler = function Parser$validateHandler (handler) { - if ((typeof handler) != "object") - throw new Error("Handler is not an object"); - if ((typeof handler.reset) != "function") - throw new Error("Handler method 'reset' is invalid"); - if ((typeof handler.done) != "function") - throw new Error("Handler method 'done' is invalid"); - if ((typeof handler.writeTag) != "function") - throw new Error("Handler method 'writeTag' is invalid"); - if ((typeof handler.writeText) != "function") - throw new Error("Handler method 'writeText' is invalid"); - if ((typeof handler.writeComment) != "function") - throw new Error("Handler method 'writeComment' is invalid"); - if ((typeof handler.writeDirective) != "function") - throw new Error("Handler method 'writeDirective' is invalid"); - } - - //Writes parsed elements out to the handler - Parser.prototype.writeHandler = function Parser$writeHandler (forceFlush) { - forceFlush = !!forceFlush; - if (this._tagStack.length && !forceFlush) - return; - while (this._elements.length) { - var element = this._elements.shift(); - switch (element.type) { - case ElementType.Comment: - this._handler.writeComment(element); - break; - case ElementType.Directive: - this._handler.writeDirective(element); - break; - case ElementType.Text: - this._handler.writeText(element); - break; - default: - this._handler.writeTag(element); - break; - } - } - } - - Parser.prototype.handleError = function Parser$handleError (error) { - if ((typeof this._handler.error) == "function") - this._handler.error(error); - else - throw error; - } - -//TODO: make this a trully streamable handler -function RssHandler (callback) { - RssHandler.super_.call(this, callback, { ignoreWhitespace: true, verbose: false, enforceEmptyTags: false }); -} -inherits(RssHandler, DefaultHandler); - - RssHandler.prototype.done = function RssHandler$done () { - var feed = { }; - var feedRoot; - - var found = DomUtils.getElementsByTagName(function (value) { return(value == "rss" || value == "feed"); }, this.dom, false); - if (found.length) { - feedRoot = found[0]; - } - if (feedRoot) { - if (feedRoot.name == "rss") { - feed.type = "rss"; - feedRoot = feedRoot.children[0]; // - feed.id = ""; - try { - feed.title = DomUtils.getElementsByTagName("title", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - try { - feed.link = DomUtils.getElementsByTagName("link", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - try { - feed.description = DomUtils.getElementsByTagName("description", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - try { - feed.updated = new Date(DomUtils.getElementsByTagName("lastBuildDate", feedRoot.children, false)[0].children[0].data); - } catch (ex) { } - try { - feed.author = DomUtils.getElementsByTagName("managingEditor", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - feed.items = []; - DomUtils.getElementsByTagName("item", feedRoot.children).forEach(function (item, index, list) { - var entry = {}; - try { - entry.id = DomUtils.getElementsByTagName("guid", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.title = DomUtils.getElementsByTagName("title", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.link = DomUtils.getElementsByTagName("link", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.description = DomUtils.getElementsByTagName("description", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.pubDate = new Date(DomUtils.getElementsByTagName("pubDate", item.children, false)[0].children[0].data); - } catch (ex) { } - feed.items.push(entry); - }); - } else { - feed.type = "atom"; - try { - feed.id = DomUtils.getElementsByTagName("id", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - try { - feed.title = DomUtils.getElementsByTagName("title", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - try { - feed.link = DomUtils.getElementsByTagName("link", feedRoot.children, false)[0].attribs.href; - } catch (ex) { } - try { - feed.description = DomUtils.getElementsByTagName("subtitle", feedRoot.children, false)[0].children[0].data; - } catch (ex) { } - try { - feed.updated = new Date(DomUtils.getElementsByTagName("updated", feedRoot.children, false)[0].children[0].data); - } catch (ex) { } - try { - feed.author = DomUtils.getElementsByTagName("email", feedRoot.children, true)[0].children[0].data; - } catch (ex) { } - feed.items = []; - DomUtils.getElementsByTagName("entry", feedRoot.children).forEach(function (item, index, list) { - var entry = {}; - try { - entry.id = DomUtils.getElementsByTagName("id", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.title = DomUtils.getElementsByTagName("title", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.link = DomUtils.getElementsByTagName("link", item.children, false)[0].attribs.href; - } catch (ex) { } - try { - entry.description = DomUtils.getElementsByTagName("summary", item.children, false)[0].children[0].data; - } catch (ex) { } - try { - entry.pubDate = new Date(DomUtils.getElementsByTagName("updated", item.children, false)[0].children[0].data); - } catch (ex) { } - feed.items.push(entry); - }); - } - - this.dom = feed; - } - RssHandler.super_.prototype.done.call(this); - } - -/////////////////////////////////////////////////// - -function DefaultHandler (callback, options) { - this.reset(); - this._options = options ? options : { }; - if (this._options.ignoreWhitespace == undefined) - this._options.ignoreWhitespace = false; //Keep whitespace-only text nodes - if (this._options.verbose == undefined) - this._options.verbose = true; //Keep data property for tags and raw property for all - if (this._options.enforceEmptyTags == undefined) - this._options.enforceEmptyTags = true; //Don't allow children for HTML tags defined as empty in spec - if ((typeof callback) == "function") - this._callback = callback; -} - - //**"Static"**// - //HTML Tags that shouldn't contain child nodes - DefaultHandler._emptyTags = { - area: 1 - , base: 1 - , basefont: 1 - , br: 1 - , col: 1 - , frame: 1 - , hr: 1 - , img: 1 - , input: 1 - , isindex: 1 - , link: 1 - , meta: 1 - , param: 1 - , embed: 1 - } - //Regex to detect whitespace only text nodes - DefaultHandler.reWhitespace = /^\s*$/; - - //**Public**// - //Properties// - DefaultHandler.prototype.dom = null; //The hierarchical object containing the parsed HTML - //Methods// - //Resets the handler back to starting state - DefaultHandler.prototype.reset = function DefaultHandler$reset() { - this.dom = []; - this._done = false; - this._tagStack = []; - this._tagStack.last = function DefaultHandler$_tagStack$last () { - return(this.length ? this[this.length - 1] : null); - } - } - //Signals the handler that parsing is done - DefaultHandler.prototype.done = function DefaultHandler$done () { - this._done = true; - this.handleCallback(null); - } - DefaultHandler.prototype.writeTag = function DefaultHandler$writeTag (element) { - this.handleElement(element); - } - DefaultHandler.prototype.writeText = function DefaultHandler$writeText (element) { - if (this._options.ignoreWhitespace) - if (DefaultHandler.reWhitespace.test(element.data)) - return; - this.handleElement(element); - } - DefaultHandler.prototype.writeComment = function DefaultHandler$writeComment (element) { - this.handleElement(element); - } - DefaultHandler.prototype.writeDirective = function DefaultHandler$writeDirective (element) { - this.handleElement(element); - } - DefaultHandler.prototype.error = function DefaultHandler$error (error) { - this.handleCallback(error); - } - - //**Private**// - //Properties// - DefaultHandler.prototype._options = null; //Handler options for how to behave - DefaultHandler.prototype._callback = null; //Callback to respond to when parsing done - DefaultHandler.prototype._done = false; //Flag indicating whether handler has been notified of parsing completed - DefaultHandler.prototype._tagStack = null; //List of parents to the currently element being processed - //Methods// - DefaultHandler.prototype.handleCallback = function DefaultHandler$handleCallback (error) { - if ((typeof this._callback) != "function") - if (error) - throw error; - else - return; - this._callback(error, this.dom); - } - - DefaultHandler.prototype.isEmptyTag = function(element) { - var name = element.name.toLowerCase(); - if (name.charAt(0) == '/') { - name = name.substring(1); - } - return this._options.enforceEmptyTags && !!DefaultHandler._emptyTags[name]; - }; - - DefaultHandler.prototype.handleElement = function DefaultHandler$handleElement (element) { - if (this._done) - this.handleCallback(new Error("Writing to the handler after done() called is not allowed without a reset()")); - if (!this._options.verbose) { -// element.raw = null; //FIXME: Not clean - //FIXME: Serious performance problem using delete - delete element.raw; - if (element.type == "tag" || element.type == "script" || element.type == "style") - delete element.data; - } - if (!this._tagStack.last()) { //There are no parent elements - //If the element can be a container, add it to the tag stack and the top level list - if (element.type != ElementType.Text && element.type != ElementType.Comment && element.type != ElementType.Directive) { - if (element.name.charAt(0) != "/") { //Ignore closing tags that obviously don't have an opening tag - this.dom.push(element); - if (!this.isEmptyTag(element)) { //Don't add tags to the tag stack that can't have children - this._tagStack.push(element); - } - } - } - else //Otherwise just add to the top level list - this.dom.push(element); - } - else { //There are parent elements - //If the element can be a container, add it as a child of the element - //on top of the tag stack and then add it to the tag stack - if (element.type != ElementType.Text && element.type != ElementType.Comment && element.type != ElementType.Directive) { - if (element.name.charAt(0) == "/") { - //This is a closing tag, scan the tagStack to find the matching opening tag - //and pop the stack up to the opening tag's parent - var baseName = element.name.substring(1); - if (!this.isEmptyTag(element)) { - var pos = this._tagStack.length - 1; - while (pos > -1 && this._tagStack[pos--].name != baseName) { } - if (pos > -1 || this._tagStack[0].name == baseName) - while (pos < this._tagStack.length - 1) - this._tagStack.pop(); - } - } - else { //This is not a closing tag - if (!this._tagStack.last().children) - this._tagStack.last().children = []; - this._tagStack.last().children.push(element); - if (!this.isEmptyTag(element)) //Don't add tags to the tag stack that can't have children - this._tagStack.push(element); - } - } - else { //This is not a container element - if (!this._tagStack.last().children) - this._tagStack.last().children = []; - this._tagStack.last().children.push(element); - } - } - } - - var DomUtils = { - testElement: function DomUtils$testElement (options, element) { - if (!element) { - return false; - } - - for (var key in options) { - if (key == "tag_name") { - if (element.type != "tag" && element.type != "script" && element.type != "style") { - return false; - } - if (!options["tag_name"](element.name)) { - return false; - } - } else if (key == "tag_type") { - if (!options["tag_type"](element.type)) { - return false; - } - } else if (key == "tag_contains") { - if (element.type != "text" && element.type != "comment" && element.type != "directive") { - return false; - } - if (!options["tag_contains"](element.data)) { - return false; - } - } else { - if (!element.attribs || !options[key](element.attribs[key])) { - return false; - } - } - } - - return true; - } - - , getElements: function DomUtils$getElements (options, currentElement, recurse, limit) { - recurse = (recurse === undefined || recurse === null) || !!recurse; - limit = isNaN(parseInt(limit)) ? -1 : parseInt(limit); - - if (!currentElement) { - return([]); - } - - var found = []; - var elementList; - - function getTest (checkVal) { - return(function (value) { return(value == checkVal); }); - } - for (var key in options) { - if ((typeof options[key]) != "function") { - options[key] = getTest(options[key]); - } - } - - if (DomUtils.testElement(options, currentElement)) { - found.push(currentElement); - } - - if (limit >= 0 && found.length >= limit) { - return(found); - } - - if (recurse && currentElement.children) { - elementList = currentElement.children; - } else if (currentElement instanceof Array) { - elementList = currentElement; - } else { - return(found); - } - - for (var i = 0; i < elementList.length; i++) { - found = found.concat(DomUtils.getElements(options, elementList[i], recurse, limit)); - if (limit >= 0 && found.length >= limit) { - break; - } - } - - return(found); - } - - , getElementById: function DomUtils$getElementById (id, currentElement, recurse) { - var result = DomUtils.getElements({ id: id }, currentElement, recurse, 1); - return(result.length ? result[0] : null); - } - - , getElementsByTagName: function DomUtils$getElementsByTagName (name, currentElement, recurse, limit) { - return(DomUtils.getElements({ tag_name: name }, currentElement, recurse, limit)); - } - - , getElementsByTagType: function DomUtils$getElementsByTagType (type, currentElement, recurse, limit) { - return(DomUtils.getElements({ tag_type: type }, currentElement, recurse, limit)); - } - } - - function inherits (ctor, superCtor) { - var tempCtor = function(){}; - tempCtor.prototype = superCtor.prototype; - ctor.super_ = superCtor; - ctor.prototype = new tempCtor(); - ctor.prototype.constructor = ctor; - } - -exports.Parser = Parser; - -exports.DefaultHandler = DefaultHandler; - -exports.RssHandler = RssHandler; - -exports.ElementType = ElementType; - -exports.DomUtils = DomUtils; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/htmlparser.min.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/htmlparser.min.js deleted file mode 100644 index c1281c5b..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/htmlparser.min.js +++ /dev/null @@ -1,22 +0,0 @@ -/*********************************************** -Copyright 2010, 2011, Chris Winberry . All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -***********************************************/ -/* v1.7.6 */ -(function(){function e(a,c){this._options=c?c:{};void 0==this._options.includeLocation&&(this._options.includeLocation=!1);this.validateHandler(a);this._handler=a;this.reset()}function j(a){j.super_.call(this,a,{ignoreWhitespace:!0,verbose:!1,enforceEmptyTags:!1})}function g(a,c){this.reset();this._options=c?c:{};void 0==this._options.ignoreWhitespace&&(this._options.ignoreWhitespace=!1);void 0==this._options.verbose&&(this._options.verbose=!0);void 0==this._options.enforceEmptyTags&&(this._options.enforceEmptyTags= !0);"function"==typeof a&&(this._callback=a)}if(!("function"==typeof require&&"object"==typeof exports&&"object"==typeof module&&"string"==typeof __filename&&"string"==typeof __dirname)){if(this.Tautologistics){if(this.Tautologistics.NodeHtmlParser)return}else this.Tautologistics={};this.Tautologistics.NodeHtmlParser={};exports=this.Tautologistics.NodeHtmlParser}var d={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag"};e._reTrim=/(^\s+|\s+$)/g;e._reTrimComment= /(^\!--|--$)/g;e._reWhitespace=/\s/g;e._reTagName=/^\s*(\/?)\s*([^\s\/]+)/;e._reAttrib=/([^=<>\"\'\s]+)\s*=\s*"([^"]*)"|([^=<>\"\'\s]+)\s*=\s*'([^']*)'|([^=<>\"\'\s]+)\s*=\s*([^'"\s]+)|([^=<>\"\'\s\/]+)/g;e._reTags=/[\<\>]/g;e.prototype.parseComplete=function(a){this.reset();this.parseChunk(a);this.done()};e.prototype.parseChunk=function(a){this._done&&this.handleError(Error("Attempted to parse chunk after parsing already done"));this._buffer+=a;this.parseTags()};e.prototype.done=function(){if(!this._done){this._done= !0;if(this._buffer.length){var a=this._buffer;this._buffer="";a={raw:a,data:this._parseState==d.Text?a:a.replace(e._reTrim,""),type:this._parseState};if(this._parseState==d.Tag||this._parseState==d.Script||this._parseState==d.Style)a.name=this.parseTagName(a.data);this.parseAttribs(a);this._elements.push(a)}this.writeHandler();this._handler.done()}};e.prototype.reset=function(){this._buffer="";this._done=!1;this._elements=[];this._next=this._current=this._elementsCurrent=0;this._location={row:0,col:0, charOffset:0,inBuffer:0};this._parseState=d.Text;this._prevTagSep="";this._tagStack=[];this._handler.reset()};e.prototype._options=null;e.prototype._handler=null;e.prototype._buffer=null;e.prototype._done=!1;e.prototype._elements=null;e.prototype._elementsCurrent=0;e.prototype._current=0;e.prototype._next=0;e.prototype._location=null;e.prototype._parseState=d.Text;e.prototype._prevTagSep="";e.prototype._tagStack=null;e.prototype.parseTagAttribs=function(a){for(var c=a.length,b=0;bc.length)){var b;for(e._reAttrib.lastIndex=0;b=e._reAttrib.exec(c);)void 0==a.attribs&&(a.attribs={}),"string"==typeof b[1]&&b[1].length?a.attribs[b[1]]=b[2]:"string"==typeof b[3]&&b[3].length?a.attribs[b[3].toString()]=b[4].toString():"string"==typeof b[5]&& b[5].length?a.attribs[b[5]]=b[6]:"string"==typeof b[7]&&b[7].length&&(a.attribs[b[7]]=b[7])}}};e.prototype.parseTagName=function(a){if(null==a||""==a)return"";a=e._reTagName.exec(a);return!a?"":(a[1]?"/":"")+a[2]};e.prototype.parseTags=function(){for(var a=this._buffer.length-1;e._reTags.test(this._buffer);){this._next=e._reTags.lastIndex-1;var c=this._buffer.charAt(this._next),b=this._buffer.substring(this._current,this._next),b={raw:b,data:this._parseState==d.Text?b:b.replace(e._reTrim,""),type:this._parseState}, f=this.parseTagName(b.data);if(this._tagStack.length)if(this._tagStack[this._tagStack.length-1]==d.Script)if("/script"==f.toLowerCase())this._tagStack.pop();else{if(0!=b.raw.indexOf("!--")&&(b.type=d.Text,this._elements.length&&this._elements[this._elements.length-1].type==d.Text)){var h=this._elements[this._elements.length-1];h.raw=h.data=h.raw+this._prevTagSep+b.raw;b.raw=b.data=""}}else this._tagStack[this._tagStack.length-1]==d.Style?"/style"==f.toLowerCase()?this._tagStack.pop():0!=b.raw.indexOf("!--")&& (b.type=d.Text,this._elements.length&&this._elements[this._elements.length-1].type==d.Text?(h=this._elements[this._elements.length-1],""!=b.raw?(h.raw=h.data=h.raw+this._prevTagSep+b.raw,b.raw=b.data=""):h.raw=h.data=h.raw+this._prevTagSep):""!=b.raw&&(b.raw=b.data=b.raw)):this._tagStack[this._tagStack.length-1]==d.Comment&&(h=b.raw.length,"-"==b.raw.charAt(h-2)&&"-"==b.raw.charAt(h-1)&&">"==c?(this._tagStack.pop(),this._elements.length&&this._elements[this._elements.length-1].type==d.Comment?(h= this._elements[this._elements.length-1],h.raw=h.data=(h.raw+b.raw).replace(e._reTrimComment,""),b.raw=b.data="",b.type=d.Text):b.type=d.Comment):(b.type=d.Comment,this._elements.length&&this._elements[this._elements.length-1].type==d.Comment?(h=this._elements[this._elements.length-1],h.raw=h.data=h.raw+b.raw+c,b.raw=b.data="",b.type=d.Text):b.raw=b.data=b.raw+c));if(b.type==d.Tag&&(b.name=f,f=f.toLowerCase(),0==b.raw.indexOf("!--")?(b.type=d.Comment,delete b.name,h=b.raw.length,"-"==b.raw.charAt(h- 1)&&"-"==b.raw.charAt(h-2)&&">"==c?b.raw=b.data=b.raw.replace(e._reTrimComment,""):(b.raw+=c,this._tagStack.push(d.Comment))):0==b.raw.indexOf("!")||0==b.raw.indexOf("?")?b.type=d.Directive:"script"==f?(b.type=d.Script,"/"!=b.data.charAt(b.data.length-1)&&this._tagStack.push(d.Script)):"/script"==f?b.type=d.Script:"style"==f?(b.type=d.Style,"/"!=b.data.charAt(b.data.length-1)&&this._tagStack.push(d.Style)):"/style"==f&&(b.type=d.Style),b.name&&"/"==b.name.charAt(0)))b.data=b.name;if(""!=b.raw||b.type!= d.Text)this._options.includeLocation&&!b.location&&(b.location=this.getLocation(b.type==d.Tag)),this.parseAttribs(b),this._elements.push(b),b.type!=d.Text&&b.type!=d.Comment&&b.type!=d.Directive&&"/"==b.data.charAt(b.data.length-1)&&this._elements.push({raw:"/"+b.name,data:"/"+b.name,name:"/"+b.name,type:b.type});this._parseState="<"==c?d.Tag:d.Text;this._current=this._next+1;this._prevTagSep=c}this._options.includeLocation&&(this.getLocation(),this._location.row+=this._location.inBuffer,this._location.inBuffer= 0,this._location.charOffset=0);this._buffer=this._current<=a?this._buffer.substring(this._current):"";this._current=0;this.writeHandler()};e.prototype.getLocation=function(a){for(var c=this._location,b=this._current-(a?1:0),d=a&&0==c.charOffset&&0==this._current;c.charOffset=d)return g;if(b&&c.children)c= c.children;else if(!(c instanceof Array))return g;for(i=0;i=d);i++);return g},getElementById:function(a,c,b){a=f.getElements({id:a},c,b,1);return a.length?a[0]:null},getElementsByTagName:function(a,c,b,d){return f.getElements({tag_name:a},c,b,d)},getElementsByTagType:function(a,c,b,d){return f.getElements({tag_type:a},c,b,d)}};exports.Parser=e;exports.DefaultHandler=g;exports.RssHandler=j;exports.ElementType=d;exports.DomUtils=f})(); \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/node-htmlparser.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/node-htmlparser.js deleted file mode 100644 index 1fc03ea8..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/node-htmlparser.js +++ /dev/null @@ -1,6 +0,0 @@ -var htmlparser = require("./htmlparser"); -exports.Parser = htmlparser.Parser; -exports.DefaultHandler = htmlparser.DefaultHandler; -exports.RssHandler = htmlparser.RssHandler; -exports.ElementType = htmlparser.ElementType; -exports.DomUtils = htmlparser.DomUtils; diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/node-htmlparser.min.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/node-htmlparser.min.js deleted file mode 100644 index 27d5eea6..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/lib/node-htmlparser.min.js +++ /dev/null @@ -1,6 +0,0 @@ -var htmlparser = require("./htmlparser.min"); -exports.Parser = htmlparser.Parser; -exports.DefaultHandler = htmlparser.DefaultHandler; -exports.RssHandler = htmlparser.RssHandler; -exports.ElementType = htmlparser.ElementType; -exports.DomUtils = htmlparser.DomUtils; diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/package.json b/env_xbb_lastest_cheerio/node_modules/htmlparser/package.json deleted file mode 100644 index b8aec5e9..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "htmlparser", - "description": "Forgiving HTML/XML/RSS Parser in JS for *both* Node and Browsers", - "version": "1.7.7", - "author": { - "name": "Chris Winberry", - "email": "chris@winberry.net" - }, - "contributors": [], - "repository": { - "type": "git", - "url": "https://github.com/tautologistics/node-htmlparser" - }, - "keywords": [ - "html", - "xml", - "rss", - "parser" - ], - "directories": { - "lib": "./lib/" - }, - "main": "./lib/htmlparser", - "homepage": "http://github.com/tautologistics/node-htmlparser", - "bugs": { - "url": "http://github.com/tautologistics/node-htmlparser/issues" - }, - "engines": { - "node": ">=0.1.33" - }, - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/tautologistics/node-htmlparser/raw/master/LICENSE" - } - ], - "readme": "#NodeHtmlParser\nA forgiving HTML/XML/RSS parser written in JS for both the browser and NodeJS (yes, despite the name it works just fine in any modern browser). The parser can handle streams (chunked data) and supports custom handlers for writing custom DOMs/output.\n\n##Installing\n\n\tnpm install htmlparser\n\n##Running Tests\n\n###Run tests under node:\n\tnode runtests.js\n\n###Run tests in browser:\nView runtests.html in any browser\n\n##Usage In Node\n\n```javascript\nvar htmlparser = require(\"htmlparser\");\nvar rawHtml = \"Xyz - - - \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.js deleted file mode 100644 index e906fe4c..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.js +++ /dev/null @@ -1,75 +0,0 @@ -/*********************************************** -Copyright 2010, Chris Winberry . All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -***********************************************/ - -var sys = require("sys"); -var fs = require("fs"); -var htmlparser = require("./lib/htmlparser"); - -var testFolder = "./tests"; -var chunkSize = 5; - -var testFiles = fs.readdirSync(testFolder); -var testCount = 0; -var failedCount = 0; -for (var i in testFiles) { - testCount++; - var fileParts = testFiles[i].split("."); - fileParts.pop(); - var moduleName = fileParts.join("."); - var test = require(testFolder + "/" + moduleName); - var handlerCallback = function handlerCallback (error) { - if (error) - sys.puts("Handler error: " + error); - } - var handler = (test.type == "rss") ? - new htmlparser.RssHandler(handlerCallback, test.options.handler) - : - new htmlparser.DefaultHandler(handlerCallback, test.options.handler) - ; - var parser = new htmlparser.Parser(handler, test.options.parser); - parser.parseComplete(test.html); - var resultComplete = handler.dom; - var chunkPos = 0; - parser.reset(); - while (chunkPos < test.html.length) { - parser.parseChunk(test.html.substring(chunkPos, chunkPos + chunkSize)); - chunkPos += chunkSize; - } - parser.done(); - var resultChunk = handler.dom; - var testResult = - sys.inspect(resultComplete, false, null) === sys.inspect(test.expected, false, null) - && - sys.inspect(resultChunk, false, null) === sys.inspect(test.expected, false, null) - ; - sys.puts("[" + test.name + "\]: " + (testResult ? "passed" : "FAILED")); - if (!testResult) { - failedCount++; - sys.puts("== Complete =="); - sys.puts(sys.inspect(resultComplete, false, null)); - sys.puts("== Chunked =="); - sys.puts(sys.inspect(resultChunk, false, null)); - sys.puts("== Expected =="); - sys.puts(sys.inspect(test.expected, false, null)); - } -} -sys.puts("Total tests: " + testCount); -sys.puts("Failed tests: " + failedCount); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.min.html b/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.min.html deleted file mode 100644 index 73ea4c75..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.min.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - Node.js HTML Parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.min.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.min.js deleted file mode 100644 index df337367..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/runtests.min.js +++ /dev/null @@ -1,75 +0,0 @@ -/*********************************************** -Copyright 2010, Chris Winberry . All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -***********************************************/ - -var sys = require("sys"); -var fs = require("fs"); -var htmlparser = require("./lib/htmlparser.min"); - -var testFolder = "./tests"; -var chunkSize = 5; - -var testFiles = fs.readdirSync(testFolder); -var testCount = 0; -var failedCount = 0; -for (var i in testFiles) { - testCount++; - var fileParts = testFiles[i].split("."); - fileParts.pop(); - var moduleName = fileParts.join("."); - var test = require(testFolder + "/" + moduleName); - var handlerCallback = function handlerCallback (error) { - if (error) - sys.puts("Handler error: " + error); - } - var handler = (test.type == "rss") ? - new htmlparser.RssHandler(handlerCallback, test.options.handler) - : - new htmlparser.DefaultHandler(handlerCallback, test.options.handler) - ; - var parser = new htmlparser.Parser(handler, test.options.parser); - parser.parseComplete(test.html); - var resultComplete = handler.dom; - var chunkPos = 0; - parser.reset(); - while (chunkPos < test.html.length) { - parser.parseChunk(test.html.substring(chunkPos, chunkPos + chunkSize)); - chunkPos += chunkSize; - } - parser.done(); - var resultChunk = handler.dom; - var testResult = - sys.inspect(resultComplete, false, null) === sys.inspect(test.expected, false, null) - && - sys.inspect(resultChunk, false, null) === sys.inspect(test.expected, false, null) - ; - sys.puts("[" + test.name + "\]: " + (testResult ? "passed" : "FAILED")); - if (!testResult) { - failedCount++; - sys.puts("== Complete =="); - sys.puts(sys.inspect(resultComplete, false, null)); - sys.puts("== Chunked =="); - sys.puts(sys.inspect(resultChunk, false, null)); - sys.puts("== Expected =="); - sys.puts(sys.inspect(test.expected, false, null)); - } -} -sys.puts("Total tests: " + testCount); -sys.puts("Failed tests: " + failedCount); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/01-basic.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/01-basic.js deleted file mode 100644 index 7846898f..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/01-basic.js +++ /dev/null @@ -1,61 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Basic test"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = "The TitleHello world"; -exports.expected = - [ { raw: 'html' - , data: 'html' - , type: 'tag' - , name: 'html' - , children: - [ { raw: 'title' - , data: 'title' - , type: 'tag' - , name: 'title' - , children: [ { raw: 'The Title', data: 'The Title', type: 'text' } ] - } - , { raw: 'body' - , data: 'body' - , type: 'tag' - , name: 'body' - , children: - [ { raw: 'Hello world' - , data: 'Hello world' - , type: 'text' - } - ] - } - ] - } - ]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/02-single_tag_1.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/02-single_tag_1.js deleted file mode 100644 index 1735b5ea..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/02-single_tag_1.js +++ /dev/null @@ -1,39 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Single Tag 1"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = "
text
"; -exports.expected = - [ { raw: 'br', data: 'br', type: 'tag', name: 'br' } - , { raw: 'text', data: 'text', type: 'text' } - ]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/03-single_tag_2.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/03-single_tag_2.js deleted file mode 100644 index 2e6e92c0..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/03-single_tag_2.js +++ /dev/null @@ -1,40 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Single Tag 2"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = "
text
"; -exports.expected = - [ { raw: 'br', data: 'br', type: 'tag', name: 'br' } - , { raw: 'text', data: 'text', type: 'text' } - , { raw: 'br', data: 'br', type: 'tag', name: 'br' } - ]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/04-unescaped_in_script.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/04-unescaped_in_script.js deleted file mode 100644 index fb2cc3a8..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/04-unescaped_in_script.js +++ /dev/null @@ -1,56 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Unescaped chars in script"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = ""; -exports.expected = -[ { raw: 'head' - , data: 'head' - , type: 'tag' - , name: 'head' - , children: - [ { raw: 'script language="Javascript"' - , data: 'script language="Javascript"' - , type: 'script' - , name: 'script' - , attribs: { language: 'Javascript' } - , children: - [ { raw: 'var foo = ""; alert(2 > foo); var baz = 10 << 2; var zip = 10 >> 1; var yap = \"<<>>>><<\";' - , data: 'var foo = ""; alert(2 > foo); var baz = 10 << 2; var zip = 10 >> 1; var yap = \"<<>>>><<\";' - , type: 'text' - } - ] - } - ] - } -]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/05-tags_in_comment.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/05-tags_in_comment.js deleted file mode 100644 index 68a0779d..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/05-tags_in_comment.js +++ /dev/null @@ -1,48 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Special char in comment"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = ""; -exports.expected = -[ { raw: 'head' - , data: 'head' - , type: 'tag' - , name: 'head' - , children: - [ { raw: ' commented out tags Test' - , data: ' commented out tags Test' - , type: 'comment' - } - ] - } -]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/06-comment_in_script.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/06-comment_in_script.js deleted file mode 100644 index 2d04ec07..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/06-comment_in_script.js +++ /dev/null @@ -1,48 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Script source in comment"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = ""; -exports.expected = -[ { raw: 'script' - , data: 'script' - , type: 'script' - , name: 'script' - , children: - [ { raw: 'var foo = 1;' - , data: 'var foo = 1;' - , type: 'comment' - } - ] - } -]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/07-unescaped_in_style.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/07-unescaped_in_style.js deleted file mode 100644 index 563a64af..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/07-unescaped_in_style.js +++ /dev/null @@ -1,49 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Unescaped chars in style"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = ""; -exports.expected = -[ { raw: 'style type="text/css"' - , data: 'style type="text/css"' - , type: 'style' - , name: 'style' - , attribs: { type: 'text/css' } - , children: - [ { raw: '\n body > p\n { font-weight: bold; }' - , data: '\n body > p\n { font-weight: bold; }' - , type: 'text' - } - ] - } -]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/08-extra_spaces_in_tag.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/08-extra_spaces_in_tag.js deleted file mode 100644 index 17675656..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/08-extra_spaces_in_tag.js +++ /dev/null @@ -1,49 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Extra spaces in tag"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = "<\n font \n size='14' \n>the text<\n / \nfont \n>"; -exports.expected = -[ { raw: '\n font \n size=\'14\' \n' - , data: 'font \n size=\'14\'' - , type: 'tag' - , name: 'font' - , attribs: { size: '14' } - , children: - [ { raw: 'the text' - , data: 'the text' - , type: 'text' - } - ] - } -]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/09-unquoted_attrib.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/09-unquoted_attrib.js deleted file mode 100644 index da6bac7a..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/09-unquoted_attrib.js +++ /dev/null @@ -1,49 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Unquoted attributes"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = "the text"; -exports.expected = -[ { raw: 'font size= 14' - , data: 'font size= 14' - , type: 'tag' - , name: 'font' - , attribs: { size: '14' } - , children: - [ { raw: 'the text' - , data: 'the text' - , type: 'text' - } - ] - } -]; - -})(); diff --git a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/10-singular_attribute.js b/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/10-singular_attribute.js deleted file mode 100644 index 6c22e1a4..00000000 --- a/env_xbb_lastest_cheerio/node_modules/htmlparser/tests/10-singular_attribute.js +++ /dev/null @@ -1,43 +0,0 @@ -(function () { - -function RunningInNode () { - return( - (typeof require) == "function" - && - (typeof exports) == "object" - && - (typeof module) == "object" - && - (typeof __filename) == "string" - && - (typeof __dirname) == "string" - ); -} - -if (!RunningInNode()) { - if (!this.Tautologistics) - this.Tautologistics = {}; - if (!this.Tautologistics.NodeHtmlParser) - this.Tautologistics.NodeHtmlParser = {}; - if (!this.Tautologistics.NodeHtmlParser.Tests) - this.Tautologistics.NodeHtmlParser.Tests = []; - exports = {}; - this.Tautologistics.NodeHtmlParser.Tests.push(exports); -} - -exports.name = "Singular attribute"; -exports.options = { - handler: {} - , parser: {} -}; -exports.html = "