UNPKG

snyk

Version:

snyk library and cli utility

2,554 lines (2,279 loc) • 8.07 MB
exports.id = 315; exports.ids = [315]; exports.modules = { /***/ 28231: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { const GraphemeSplitter = __webpack_require__(30323); const ANSI_SEQUENCE = /^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/; const splitter = new GraphemeSplitter(); module.exports = (orig, at = 0, until = orig.length) => { // Because to do this we'd need to know the printable length of the string, // which would require to do two passes (or would complexify the main one) if (at < 0 || until < 0) throw new RangeError(`Negative indices aren't supported by this implementation`); const length = until - at; let output = ``; let skipped = 0; let visible = 0; while (orig.length > 0) { const lookup = orig.match(ANSI_SEQUENCE) || [orig, orig, undefined]; let graphemes = splitter.splitGraphemes(lookup[1]); const skipping = Math.min(at - skipped, graphemes.length); graphemes = graphemes.slice(skipping); const displaying = Math.min(length - visible, graphemes.length); output += graphemes.slice(0, displaying).join(``); skipped += skipping; visible += displaying; if (typeof lookup[2] !== `undefined`) output += lookup[2]; orig = orig.slice(lookup[0].length); } return output; }; /***/ }), /***/ 54916: /***/ ((__unused_webpack_module, exports) => { exports.file = `# Write glob rules for ignored files. # Check syntax on https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories- # Check examples on https://github.com/github/gitignore `; /***/ }), /***/ 78105: /***/ ((__unused_webpack_module, exports) => { exports.file = `# Write glob rules for ignored files. # Check syntax on https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories- # Check examples on https://github.com/github/gitignore # Hidden directories .*/ # Julia deps/downloads/ deps/usr/ docs/build/ docs/site/ # CakePHP /vendor/* /tmp/cache/models/* !/tmp/cache/models/empty /tmp/cache/persistent/* !/tmp/cache/persistent/empty /tmp/cache/views/* !/tmp/cache/views/empty /tmp/sessions/* !/tmp/sessions/empty /tmp/tests/* !/tmp/tests/empty /logs/* !/logs/empty /app/tmp/* /vendors/* # KiCad *~ _autosave-* fp-info-cache # Dart build/ doc/api/ # PlayFramework bin/ /db /lib/ /logs/ /modules /project/project /project/target /target tmp/ test-result /dist/ # Zephir ext/build/ ext/modules/ ext/Makefile* ext/config* ext/autom4te* ext/install-sh ext/missing ext/mkinstalldirs ext/libtool # RhodesRhomobile rholog-* sim-* bin/libs bin/RhoBundle bin/tmp bin/target # AppEngine appengine-generated/ # Textpattern rpc/ sites/site*/admin/ sites/site*/private/ sites/site*/public/admin/ sites/site*/public/setup/ sites/site*/public/theme/ textpattern/ # ExpressionEngine images/avatars/ images/captchas/ images/smileys/ images/member_photos/ images/signature_attachments/ images/pm_attachments/ sized/ thumbs/ _thumbs/ */expressionengine/cache/* # CMake CMakeFiles CMakeScripts Testing Makefile _deps # Qt Makefile* *build-* # Yeoman node_modules/ bower_components/ build/ dist/ # ExtJs build/ ext/ # R /*.Rcheck/ *_cache/ /cache/ docs/ po/*~ # Python __pycache__/ build/ develop-eggs/ dist/ downloads/ eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ MANIFEST htmlcov/ cover/ instance/ docs/_build/ target/ profile_default/ __pypackages__/ celerybeat-schedule env/ venv/ ENV/ env.bak/ venv.bak/ /site cython_debug/ # Magento /media/* !/media/customer /media/customer/* !/media/dhl /media/dhl/* !/media/downloadable /media/downloadable/* !/media/xmlconnect /media/xmlconnect/* !/media/xmlconnect/custom /media/xmlconnect/custom/* !/media/xmlconnect/original /media/xmlconnect/original/* !/media/xmlconnect/system /media/xmlconnect/system/* /var/* !/var/package /var/package/* # CodeIgniter */config/development */cache/* application/logs/* /vendor/ # Haskell dist dist-* cabal-dev # ArchLinuxPackages pkg/ # Elm elm-stuff repl-temp-* # Lithium libraries/* resources/tmp/* # Erlang rel/example_project deps _build/ _checkouts/ # ForceDotCom Referenced Packages # Plone bin/ build/ develop-eggs/ downloads/ eggs/ fake-eggs/ parts/ dist/ var/ # AppceleratorTitanium build/ # ChefCookbook /cookbooks bin/* # Objective-C xcuserdata/ build/ DerivedData/ Carthage/Build/ fastlane/test_output iOSInjectionProject/ # Opa _build _tracks opa-debug-js # Smalltalk /package-cache /play-cache /play-stash /github-cache # SeamGen /bootstrap/data /bootstrap/tmp /classes/ /dist/ /exploded-archives/ /test-build/ /test-output/ /test-report/ /target/ # Xilinx *_synth_* */*/bd/*/hdl */*/*/bd/*/hdl */*/bd/*/ip/*/*/ */*/*/bd/*/ip/*/*/ hw_handoff ipshared # Strapi Icon *~ $RECYCLE.BIN/ *# nbproject lib-cov pids logs results build node_modules testApp coverage cypress/screenshots cypress/videos dist packages/strapi-generate-new/files/public/ # Snap parts/ prime/ stage/ # Logtalk lgt_tmp/ logtalk_tester_logs/ logtalk_doclet_logs/ # SPFx logs node_modules dist lib solution temp coverage bin obj # Vue docs/_book test/ # NWjs locales/ pnacl/ # Cordova /platforms # Bazel /bazel-* # AltiumDesigner History __Previews Project\ Logs* Project\ Outputs* # ThinkPHP /Application/Runtime/ # Jigsaw build_* # Bitrix /bitrix/* !/bitrix/templates !/bitrix/components /bitrix/components/bitrix !/bitrix/gadgets /bitrix/gadgets/bitrix !/bitrix/php_interface/ /upload/ # CodeSniffer /wpcs/* # Pimcore /pimcore /website/var/assets/* /website/var/backup/* /website/var/cache/* /website/var/classes/Object* !/website/var/classes/objectbricks /website/var/config/Geo* /website/var/config/object/* /website/var/config/portal/* /website/var/config/sqlreport/* /website/var/email/* /website/var/recyclebin/* /website/var/search/* /website/var/system/* /website/var/tmp/* /website/var/versions/asset/* /website/var/versions/document/* /website/var/versions/object/* /website/var/user-image/* # Magento1 /media/* !/media/customer /media/customer/* !/media/dhl /media/dhl/* !/media/downloadable /media/downloadable/* !/media/xmlconnect /media/xmlconnect/* !/media/xmlconnect/custom /media/xmlconnect/custom/* !/media/xmlconnect/original /media/xmlconnect/original/* !/media/xmlconnect/system /media/xmlconnect/system/* /var/* !/var/package /var/package/* # Magento2 /sitemap /pub/sitemap /app/config_sandbox /app/code/Magento/TestModule* /pub/media/attribute/* /pub/media/analytics/* /pub/media/catalog/* /pub/media/customer/* /pub/media/downloadable/* /pub/media/favicon/* /pub/media/import/* /pub/media/logo/* /pub/media/theme/* /pub/media/theme_customization/* /pub/media/wysiwyg/* /pub/media/tmp/* /pub/media/captcha/* /pub/static/* /var/* /vendor/* /generated/* # Drupal7 files/ sites/*/files sites/*/private sites/*/translations /includes /misc /modules /profiles /scripts /themes # InforCMS [Mm]odel/[Dd]eployment !Model/Portal/*/SupportFiles/[Bb]in/ !Model/Portal/PortalTemplates/*/SupportFiles/[Bb]in # Kentico !CMS/CMSAdminControls/*/ !CMS/CMSModules/System/*/ !CMS/App_Data/CIRepository/** CMS/App_Data/AzureCache CMS/App_Data/AzureTemp CMS/App_Data/CMSTemp CMS/App_Data/Persistent CMS/CMSSiteUtils/Export CMS/CMSSiteUtils/Import CMS/App_Data/CMSModules/SmartSearch/** !CMS/App_Data/CMSModules/SmartSearch/*/ !CMS/App_Data/CMSModules/SmartSearch/_StopWords/** !CMS/App_Data/CMSModules/SmartSearch/_Synonyms/** CMS/App_Data/DancingGoat CMS/App_Data/Templates/CommunitySite CMS/App_Data/Templates/CorporateSite CMS/App_Data/Templates/DancingGoat CMS/App_Data/Templates/EcommerceSite CMS/App_Data/Templates/IntranetPortal CMS/App_Data/Templates/PersonalSite CMS/App_Themes/CommunitySite CMS/App_Themes/CorporateSite CMS/App_Themes/EcommerceSite CMS/App_Themes/IntranetPortal* CMS/App_Themes/PersonalSite CMS/CMSTemplates/CorporateSite CMS/CommunitySite CMS/CorporateSite CMS/DancingGoat CMS/EcommerceSite CMS/IntranetPortal CMS/PersonalSite # ROS2 install/ log/ build/ qtcreator-* *~ COLCON_IGNORE AMENT_IGNORE # Splunk local # Racket compiled/ # JupyterNotebooks profile_default/ # Nikola cache/ output/ # Red quick-test/runnable/ system/tests/source/units/auto-tests/ tests/source/units/auto-tests/ # AtmelStudio [Dd]ebug/ [Rr]elease/ # IAR_EWARM EWARM/**/Obj EWARM/**/List EWARM/**/Exe EWARM/settings # esp-idf build/ sdkconfig # Phoenix /tmp /node_modules /assets/node_modules /priv/static/ /installer/_build /installer/tmp /installer/doc /installer/deps # JBoss4 /server/all/data /server/all/log /server/all/tmp /server/all/work /server/default/data /server/default/log /server/default/tmp /server/default/work /server/minimal/data /server/minimal/log /server/minimal/tmp /server/minimal/work # JBoss6 /server/all/data /server/all/log /server/all/tmp /server/all/work /server/default/data /server/default/log /server/default/tmp /server/default/work /server/minimal/data /server/minimal/log /server/minimal/tmp /server/minimal/work /server/jbossweb-standalone/data /server/jbossweb-standalone/log /server/jbossweb-standalone/tmp /server/jbossweb-standalone/work /server/standard/data /server/standard/log /server/standard/tmp /server/standard/work # Hugo /public/ /resources/_gen/ # Puppet pkg/* spec/fixtures/* coverage/* vendor/* # Kotlin hs_err_pid* # Composer /vendor/ # Android bin/ gen/ out/ build/ proguard/ captures/ freeline/ fastlane/screenshots fastlane/test_output lint/intermediates/ lint/generated/ lint/outputs/ lint/tmp/ # Nim nimcache/ nimblecache/ htmldocs/ # Actionscript bin-debug/ bin-release/ [Oo]bj/ [Bb]in/ # Maven target/ # Agda MAlonzo/** # Unity /[Ll]ibrary/ /[Tt]emp/ /[Oo]bj/ /[Bb]uild/ /[Bb]uilds/ /[Ll]ogs/ /[Uu]ser[Ss]ettings/ /[Mm]emoryCaptures/ /[Aa]ssets/Plugins/Editor/JetBrains* ExportedObj/ /[Aa]ssets/[Ss]treamingAssets/aa/* # GWT war/gwt_bree/ gwt-unitCache/ war/WEB-INF/deploy/ war/WEB-INF/classes/ www-test/ # VirtualEnv [Bb]in [Ii]nclude [Ll]ib [Ll]ib64 [Ll]ocal [Ss]cripts # SBT dist/* target/ lib_managed/ project/boot/ project/plugins/project/ # PSoCCreator Debug/ Release/ Export/ */codegentemp */Generated_Source # TextMate tmtags # MonoDevelop test-results/ # SublimeText Package Control.cache/ Package Control.ca-certs/ # Dreamweaver _notes _compareTemp configs/ # NetBeans **/nbproject/private/ build/ nbbuild/ dist/ nbdist/ # Windows $RECYCLE.BIN/ # MATLAB helpsearch*/ slprj/ sccprj/ codegen/ octave-workspace # Octave helpsearch*/ slprj/ sccprj/ codegen/ octave-workspace # FlexBuilder bin/ bin-debug/ bin-release/ # Xcode xcuserdata/ build/ DerivedData/ # Lazarus backup/ lib/ *.app/ # CVS /CVS/* **/CVS/* # Eclipse bin/ tmp/ # Momentics x86/ arm/ arm-p/ # Linux *~ # Virtuoso lvsRunDir/* drcRunDir/* # Emacs *~ \#*\# auto-save-list tramp *_archive /eshell/history /eshell/lastdir /elpa/ /auto/ dist/ /server/ # EiffelStudio EIFGENs # macOS Icon Network Trash Folder Temporary Items # XilinxISE iseconfig/ xlnx_auto_0_xdb/ xst/ _ngo/ _xmsgs/ # CodeKit /min # SynopsysVCS simv simv.daidir/ simv.db.dir/ simv.vdb/ urgReport/ DVEfiles/ # Tags TAGS !TAGS/ tags !tags/ GTAGS GRTAGS GPATH GSYMS # ModelSim [_@]* wlf* cov*/ transcript* # JetBrains cmake-build-*/ out/ # WebMethods **/IntegrationServer/datastore/ **/IntegrationServer/db/ **/IntegrationServer/DocumentStore/ **/IntegrationServer/lib/ **/IntegrationServer/logs/ **/IntegrationServer/replicate/ **/IntegrationServer/sdk/ **/IntegrationServer/support/ **/IntegrationServer/update/ **/IntegrationServer/userFtpRoot/ **/IntegrationServer/web/ **/IntegrationServer/WmRepository4/ **/IntegrationServer/XAStore/ **/IntegrationServer/packages/Wm*/ # Vim *~ tags # Calabash rerun/ reports/ screenshots/ test-servers/ vendor # JDeveloper temp/ classes/ deploy/ javadoc/ # Drupal /sites/*/files /sites/*/public /sites/*/private /sites/*/files-public /sites/*/files-private /sites/*/translations /sites/*/tmp /sites/*/cache /sites/simpletest /core /vendor # UnrealEngine Binaries/* Plugins/*/Binaries/* Build/* !Build/*/ Build/*/** Saved/* Intermediate/* Plugins/*/Intermediate/* DerivedDataCache/* # Symfony /app/cache/* /app/logs/* /app/spool/* /var/cache/* /var/logs/* /var/sessions/* /var/log/* /bin/* !bin/console !bin/symfony_requirements /vendor/ /web/bundles/ /web/uploads/ /build/ **/Entity/*~ # JBoss jboss/server/all/tmp/**/* jboss/server/all/data/**/* jboss/server/all/work/**/* jboss/server/default/tmp/**/* jboss/server/default/data/**/* jboss/server/default/work/**/* jboss/server/minimal/tmp/**/* jboss/server/minimal/data/**/* jboss/server/minimal/work/**/* # SugarCRM /cache/* /custom/history/ /custom/modulebuilder/ /custom/working/ /custom/modules/*/Ext/ /custom/application/Ext/ /upload/* /upload_backup/ # Leiningen /lib/ /classes/ /target/ /checkouts/ # OpenCart download/ image/data/ image/cache/ system/cache/ system/logs/ system/storage/ vqmod/logs/* vqmod/vqcache/* # VVVV bin/ # Gradle **/build/ # FuelPHP /fuel/vendor /docs/ /fuel/app/logs/*/*/* /fuel/app/cache/*/* # Autotools /ar-lib /mdate-sh /py-compile /test-driver /ylwrap /compile /configure /depcomp /install-sh /missing /stamp-h1 Makefile # Delphi __history/ __recovery/ modules/ # GitBook node_modules _book # Prestashop /cache/* !/cache/push/activity !/cache/push/trends /download/* /img/* !/img/jquery-ui !/img/scenes /upload/* /vendor/* /docs/phpdoc-sf/ /admin-dev/autoupgrade/* /admin-dev/backups/* /admin-dev/import/* /admin-dev/export/* themes/*/cache/* config/xml/* config/themes/* modules/* override/* themes/*/ !themes/classic !themes/_core !themes/_libraries bower_components/ node_modules/ php-cs-fixer translations/* mails/* !mails/themes/ !mails/_partials/ themes/default-bootstrap/lang/* themes/default-bootstrap/mails/* !themes/default-bootstrap/mails/en/ themes/default-bootstrap/modules/*/mails/* !themes/default-bootstrap/modules/*/mails/en /bin/ /app/Resources/translations/* !/app/Resources/translations/default /build/ /var/* !/var/cache /var/cache/* !/var/logs /var/logs/* !/var/sessions /var/sessions/* /vendor/ /web/bundles/ # Xojo Builds* Debug*/Debug*\ Libs # WordPress !wp-content/ wp-content/* !wp-content/mu-plugins/ !wp-content/plugins/ !wp-content/themes/ wp-content/themes/twenty*/ node_modules/ # ROS devel/ logs/ build/ bin/ lib/ msg_gen/ srv_gen/ build_isolated/ devel_isolated/ /cfg/cpp/ qtcreator-* /planning/cfg /planning/docs *~ CATKIN_IGNORE # Scala hs_err_pid* # VisualStudio [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ x64/ x86/ [Ww][Ii][Nn]32/ [Aa][Rr][Mm]/ [Aa][Rr][Mm]64/ bld/ [Bb]in/ [Oo]bj/ [Ll]og/ [Ll]ogs/ Generated\ Files/ [Tt]est[Rr]esult*/ [Dd]ebugPS/ [Rr]eleasePS/ BenchmarkDotNet.Artifacts/ artifacts/ _Chutzpah* ipch/ $tf/ _ReSharper*/ _TeamCity* _NCrunch_* nCrunchTemp_* AutoTest.Net/ [Ee]xpress/ DocProject/buildhelp/ DocProject/Help/Html2 DocProject/Help/html publish/ PublishScripts/ **/[Pp]ackages/* !**/[Pp]ackages/build/ csx/ ecf/ rcf/ AppPackages/ BundleArtifacts/ !?*.[Cc]ache/ ClientBin/ ~$* *~ Generated_Code/ _UpgradeReport_Files/ Backup*/ ServiceFabricBackup/ FakesAssemblies/ node_modules/ **/*.HTMLClient/GeneratedArtifacts **/*.DesktopClient/GeneratedArtifacts **/*.Server/GeneratedArtifacts _Pvt_Extensions paket-files/ __pycache__/ OpenCover/ ASALocalRun/ healthchecksdb MigrationBackup/ # Qooxdoo cache cache-downloads inspector api # Concrete5 error_log files/cache/* files/tmp/* /application/files/* /updates/* # Grails /web-app/WEB-INF/classes /test/reports /logs /plugins /web-app/plugins /target # Stella obj/ # Processing applet out # Rails /public/system /coverage/ /spec/tmp /log/* /tmp/* /vendor/bundle /vendor/assets/bower_components node_modules/ /public/packs /public/packs-test /public/assets /storage/* /public/uploads # PureScript bower_components node_modules output # Laravel /vendor/ node_modules/ app/storage/ public/storage public/hot public_html/storage public_html/hot # TwinCAT3 _Boot/ _CompileInfo/ _Libraries/ # Elixir /_build /cover /deps /doc # TurboGears2 data/* dist build # Godot data_*/ # Java hs_err_pid* # Swift xcuserdata/ build/ DerivedData/ Carthage/Build/ Dependencies/ fastlane/test_output iOSInjectionProject/ # Lilypond *~ # Joomla /administrator/cache/* /administrator/components/com_actionlogs/* /administrator/components/com_admin/* /administrator/components/com_ajax/* /administrator/components/com_associations/* /administrator/components/com_banners/* /administrator/components/com_cache/* /administrator/components/com_categories/* /administrator/components/com_checkin/* /administrator/components/com_config/* /administrator/components/com_contact/* /administrator/components/com_content/* /administrator/components/com_contenthistory/* /administrator/components/com_cpanel/* /administrator/components/com_fields/* /administrator/components/com_finder/* /administrator/components/com_installer/* /administrator/components/com_joomlaupdate/* /administrator/components/com_languages/* /administrator/components/com_login/* /administrator/components/com_media/* /administrator/components/com_menus/* /administrator/components/com_messages/* /administrator/components/com_modules/* /administrator/components/com_newsfeeds/* /administrator/components/com_plugins/* /administrator/components/com_postinstall/* /administrator/components/com_privacy/* /administrator/components/com_redirect/* /administrator/components/com_search/* /administrator/components/com_tags/* /administrator/components/com_templates/* /administrator/components/com_users/* /administrator/help/* /administrator/includes/* /administrator/language/overrides/* /administrator/logs/* /administrator/modules/mod_custom/* /administrator/modules/mod_feed/* /administrator/modules/mod_latest/* /administrator/modules/mod_latestactions/* /administrator/modules/mod_logged/* /administrator/modules/mod_login/* /administrator/modules/mod_menu/* /administrator/modules/mod_multilangstatus/* /administrator/modules/mod_online/* /administrator/modules/mod_popular/* /administrator/modules/mod_privacy_dashboard/* /administrator/modules/mod_quickicon/* /administrator/modules/mod_sampledata/* /administrator/modules/mod_stats_admin/* /administrator/modules/mod_status/* /administrator/modules/mod_submenu/* /administrator/modules/mod_title/* /administrator/modules/mod_toolbar/* /administrator/modules/mod_unread/* /administrator/modules/mod_version/* /administrator/templates/hathor/* /administrator/templates/isis/* /administrator/templates/system/* /bin/* /cache/* /cli/* /components/com_ajax/* /components/com_banners/* /components/com_config/* /components/com_contact/* /components/com_content/* /components/com_contenthistory/* /components/com_fields/* /components/com_finder/* /components/com_mailto/* /components/com_media/* /components/com_menus/* /components/com_modules/* /components/com_newsfeeds/* /components/com_privacy/* /components/com_search/* /components/com_tags/* /components/com_users/* /components/com_wrapper/* /images/banners/* /images/headers/* /images/sampledata/* /images/joomla* /includes/* /installation/* /language/overrides/* /layouts/joomla/* /layouts/libraries/* /layouts/plugins/* /libraries/cms/* /libraries/fof/* /libraries/idna_convert/* /libraries/joomla/* /libraries/legacy/* /libraries/php-encryption/* /libraries/phpass/* /libraries/phpmailer/* /libraries/phputf8/* /libraries/simplepie/* /libraries/vendor/* /media/cms/* /media/com_associations/* /media/com_contact/* /media/com_content/* /media/com_contenthistory/* /media/com_fields/* /media/com_finder/* /media/com_joomlaupdate/* /media/com_menus/* /media/com_modules/* /media/com_wrapper/* /media/contacts/* /media/editors/* /media/jui/* /media/mailto/* /media/media/* /media/mod_languages/* /media/mod_sampledata/* /media/overrider/* /media/plg_captcha_recaptcha/* /media/plg_captcha_recaptcha_invisible/* /media/plg_quickicon_extensionupdate/* /media/plg_quickicon_joomlaupdate/* /media/plg_quickicon_privacycheck/* /media/plg_system_highlight/* /media/plg_system_stats/* /media/plg_twofactorauth_totp/* /media/system/* /modules/mod_articles_archive/* /modules/mod_articles_categories/* /modules/mod_articles_category/* /modules/mod_articles_latest/* /modules/mod_articles_news/* /modules/mod_articles_popular/* /modules/mod_banners/* /modules/mod_breadcrumbs/* /modules/mod_custom/* /modules/mod_feed/* /modules/mod_finder/* /modules/mod_footer/* /modules/mod_languages/* /modules/mod_login/* /modules/mod_menu/* /modules/mod_random_image/* /modules/mod_related_items/* /modules/mod_search/* /modules/mod_stats/* /modules/mod_syndicate/* /modules/mod_tags_popular/* /modules/mod_tags_similar/* /modules/mod_users_latest/* /modules/mod_whosonline/* /modules/mod_wrapper/* /plugins/actionlog/joomla/* /plugins/authentication/cookie/* /plugins/authentication/example/* /plugins/authentication/gmail/* /plugins/authentication/joomla/* /plugins/authentication/ldap/* /plugins/captcha/recaptcha/* /plugins/captcha/recaptcha_invisible/* /plugins/content/confirmconsent/* /plugins/content/contact/* /plugins/content/emailcloak/* /plugins/content/example/* /plugins/content/fields/* /plugins/content/finder/* /plugins/content/geshi/* /plugins/content/joomla/* /plugins/content/loadmodule/* /plugins/content/pagebreak/* /plugins/content/pagenavigation/* /plugins/content/vote/* /plugins/editors/codemirror/* /plugins/editors/none/* /plugins/editors/tinymce/* /plugins/editors-xtd/article/* /plugins/editors-xtd/contact/* /plugins/editors-xtd/fields/* /plugins/editors-xtd/image/* /plugins/editors-xtd/menu/* /plugins/editors-xtd/module/* /plugins/editors-xtd/pagebreak/* /plugins/editors-xtd/readmore/* /plugins/extension/example/* /plugins/extension/joomla/* /plugins/fields/calendar/* /plugins/fields/checkboxes/* /plugins/fields/color/* /plugins/fields/editor/* /plugins/fields/imagelist/* /plugins/fields/integer/* /plugins/fields/list/* /plugins/fields/media/* /plugins/fields/radio/* /plugins/fields/repeatable/* /plugins/fields/sql/* /plugins/fields/text/* /plugins/fields/textarea/* /plugins/fields/url/* /plugins/fields/user/* /plugins/fields/usergrouplist/* /plugins/finder/categories/* /plugins/finder/contacts/* /plugins/finder/content/* /plugins/finder/newsfeeds/* /plugins/finder/tags/* /plugins/installer/folderinstaller/* /plugins/installer/packageinstaller/* /plugins/installer/urlinstaller/* /plugins/privacy/actionlogs/* /plugins/privacy/consents/* /plugins/privacy/contact/* /plugins/privacy/content/* /plugins/privacy/message/* /plugins/privacy/user/* /plugins/quickicon/extensionupdate/* /plugins/quickicon/joomlaupdate/* /plugins/quickicon/phpversioncheck/* /plugins/quickicon/privacycheck/* /plugins/sampledata/blog/* /plugins/search/categories/* /plugins/search/contacts/* /plugins/search/content/* /plugins/search/newsfeeds/* /plugins/search/tags/* /plugins/search/weblinks/* /plugins/system/actionlogs/* /plugins/system/cache/* /plugins/system/debug/* /plugins/system/fields/* /plugins/system/highlight/* /plugins/system/languagecode/* /plugins/system/languagefilter/* /plugins/system/log/* /plugins/system/logout/* /plugins/system/logrotation/* /plugins/system/p3p/* /plugins/system/privacyconsent/* /plugins/system/redirect/* /plugins/system/remember/* /plugins/system/sef/* /plugins/system/sessiongc/* /plugins/system/stats/* /plugins/system/updatenotification/* /plugins/twofactorauth/totp/* /plugins/twofactorauth/yubikey/* /plugins/user/contactcreator/* /plugins/user/example/* /plugins/user/joomla/* /plugins/user/profile/* /plugins/user/terms/* /templates/beez3/* /templates/protostar/* /templates/system/* /tmp/* # SymphonyCMS manifest/cache/ manifest/logs/ manifest/tmp/ symphony/ workspace/uploads/ # ZendFramework vendor/ data/logs/ data/cache/ data/sessions/ data/tmp/ temp/ data/DoctrineORMModule/Proxy/ data/DoctrineORMModule/cache/ demos/ extras/documentation # C *.dSYM/ # Node logs pids lib-cov coverage bower_components build/Release node_modules/ jspm_packages/ web_modules/ out dist # LemonStand /config/* /controllers/* /init/* /logs/* /phproad/* /temp/* /uploaded/* /installer_files/* /modules/backend/* /modules/blog/* /modules/cms/* /modules/core/* /modules/session/* /modules/shop/* /modules/system/* /modules/users/* # Waf waf-*-*/ waf3-*-*/ # TeX latex.out/ *-gnuplottex-* *-tikzDictionary _minted* sympy-plots-for-*.tex/ pythontex-files-*/ TSWLatexianTemp* *~[0-9]* # Rust debug/ target/ # Yii assets/* protected/runtime/* themes/classic/views/ # Mercury Mercury/ # Scrivener */QuickLook/ # Clojure /lib/ /classes/ /target/ /checkouts/ # Phalcon /cache/ /config/development/ # Typo3 /fileadmin/user_upload/ /fileadmin/_temp_/ /fileadmin/_processed_/ /uploads/ /typo3conf/temp_CACHED* /typo3conf/ENABLE_INSTALL_TOOL /FIRST_INSTALL /typo3 /Packages /typo3temp/ # JENKINS_HOME !/jobs jobs/** !jobs/**/ builds indexing jobs/**/*workspace # MetaProgrammingSystem classes_gen source_gen test_gen # CraftCMS /craft/storage/* !/craft/storage/rebrand # CFWheels plugins/**/* files db/sql javascripts/bundles stylesheets/bundles # OCaml _build/ _opam/ # Ruby /coverage/ /InstalledFiles /pkg/ /spec/reports/ /test/tmp/ /test/version_tmp/ /tmp/ build/ build-iPhoneOS/ build-iPhoneSimulator/ /_yardoc/ /doc/ /rdoc/ /vendor/bundle /lib/bundler/man/ # Perl !Build/ cover_db/ _build/ Build inc/ /blib/ /_eumm/ /Makefile /pm_to_blib # Elisp *~ # Jekyll _site/ # D docs/ # Packer packer_cache/ # Umbraco **/App_Data/Logs/ **/App_Data/[Pp]review/ **/App_Data/TEMP/ **/App_Data/NuGetBackup/ !**/App_Data/[Pp]ackages/* !**/[Uu]mbraco/[Dd]eveloper/[Pp]ackages/* !**/[Uu]mbraco/[Vv]iews/[Pp]ackages/* **/App_Data/cache/ # Kohana application/cache/* application/logs/* # Nanoc output/ tmp/nanoc/ `; /***/ }), /***/ 55086: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { const { file: DefaultDCIgnore } = __webpack_require__(78105); const { file: CustomDCIgnore } = __webpack_require__(54916); module.exports = { DefaultDCIgnore, CustomDCIgnore, }; /***/ }), /***/ 98925: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; const f = __webpack_require__(98633) const DateTime = global.Date class Date extends DateTime { constructor (value) { super(value) this.isDate = true } toISOString () { return `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}` } } module.exports = value => { const date = new Date(value) /* istanbul ignore if */ if (isNaN(date)) { throw new TypeError('Invalid Datetime') } else { return date } } /***/ }), /***/ 58904: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; const f = __webpack_require__(98633) class FloatingDateTime extends Date { constructor (value) { super(value + 'Z') this.isFloating = true } toISOString () { const date = `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}` const time = `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}` return `${date}T${time}` } } module.exports = value => { const date = new FloatingDateTime(value) /* istanbul ignore if */ if (isNaN(date)) { throw new TypeError('Invalid Datetime') } else { return date } } /***/ }), /***/ 76114: /***/ ((module) => { "use strict"; module.exports = value => { const date = new Date(value) /* istanbul ignore if */ if (isNaN(date)) { throw new TypeError('Invalid Datetime') } else { return date } } /***/ }), /***/ 99439: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; const f = __webpack_require__(98633) class Time extends Date { constructor (value) { super(`0000-01-01T${value}Z`) this.isTime = true } toISOString () { return `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}` } } module.exports = value => { const date = new Time(value) /* istanbul ignore if */ if (isNaN(date)) { throw new TypeError('Invalid Datetime') } else { return date } } /***/ }), /***/ 98633: /***/ ((module) => { "use strict"; module.exports = (d, num) => { num = String(num) while (num.length < d) num = '0' + num return num } /***/ }), /***/ 98818: /***/ ((module) => { "use strict"; const ParserEND = 0x110000 class ParserError extends Error { /* istanbul ignore next */ constructor (msg, filename, linenumber) { super('[ParserError] ' + msg, filename, linenumber) this.name = 'ParserError' this.code = 'ParserError' if (Error.captureStackTrace) Error.captureStackTrace(this, ParserError) } } class State { constructor (parser) { this.parser = parser this.buf = '' this.returned = null this.result = null this.resultTable = null this.resultArr = null } } class Parser { constructor () { this.pos = 0 this.col = 0 this.line = 0 this.obj = {} this.ctx = this.obj this.stack = [] this._buf = '' this.char = null this.ii = 0 this.state = new State(this.parseStart) } parse (str) { /* istanbul ignore next */ if (str.length === 0 || str.length == null) return this._buf = String(str) this.ii = -1 this.char = -1 let getNext while (getNext === false || this.nextChar()) { getNext = this.runOne() } this._buf = null } nextChar () { if (this.char === 0x0A) { ++this.line this.col = -1 } ++this.ii this.char = this._buf.codePointAt(this.ii) ++this.pos ++this.col return this.haveBuffer() } haveBuffer () { return this.ii < this._buf.length } runOne () { return this.state.parser.call(this, this.state.returned) } finish () { this.char = ParserEND let last do { last = this.state.parser this.runOne() } while (this.state.parser !== last) this.ctx = null this.state = null this._buf = null return this.obj } next (fn) { /* istanbul ignore next */ if (typeof fn !== 'function') throw new ParserError('Tried to set state to non-existent state: ' + JSON.stringify(fn)) this.state.parser = fn } goto (fn) { this.next(fn) return this.runOne() } call (fn, returnWith) { if (returnWith) this.next(returnWith) this.stack.push(this.state) this.state = new State(fn) } callNow (fn, returnWith) { this.call(fn, returnWith) return this.runOne() } return (value) { /* istanbul ignore next */ if (this.stack.length === 0) throw this.error(new ParserError('Stack underflow')) if (value === undefined) value = this.state.buf this.state = this.stack.pop() this.state.returned = value } returnNow (value) { this.return(value) return this.runOne() } consume () { /* istanbul ignore next */ if (this.char === ParserEND) throw this.error(new ParserError('Unexpected end-of-buffer')) this.state.buf += this._buf[this.ii] } error (err) { err.line = this.line err.col = this.col err.pos = this.pos return err } /* istanbul ignore next */ parseStart () { throw new ParserError('Must declare a parseStart method') } } Parser.END = ParserEND Parser.Error = ParserError module.exports = Parser /***/ }), /***/ 8676: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; /* eslint-disable no-new-wrappers, no-eval, camelcase, operator-linebreak */ module.exports = makeParserClass(__webpack_require__(98818)) module.exports.makeParserClass = makeParserClass class TomlError extends Error { constructor (msg) { super(msg) this.name = 'TomlError' /* istanbul ignore next */ if (Error.captureStackTrace) Error.captureStackTrace(this, TomlError) this.fromTOML = true this.wrapped = null } } TomlError.wrap = err => { const terr = new TomlError(err.message) terr.code = err.code terr.wrapped = err return terr } module.exports.TomlError = TomlError const createDateTime = __webpack_require__(76114) const createDateTimeFloat = __webpack_require__(58904) const createDate = __webpack_require__(98925) const createTime = __webpack_require__(99439) const CTRL_I = 0x09 const CTRL_J = 0x0A const CTRL_M = 0x0D const CTRL_CHAR_BOUNDARY = 0x1F // the last non-character in the latin1 region of unicode, except DEL const CHAR_SP = 0x20 const CHAR_QUOT = 0x22 const CHAR_NUM = 0x23 const CHAR_APOS = 0x27 const CHAR_PLUS = 0x2B const CHAR_COMMA = 0x2C const CHAR_HYPHEN = 0x2D const CHAR_PERIOD = 0x2E const CHAR_0 = 0x30 const CHAR_1 = 0x31 const CHAR_7 = 0x37 const CHAR_9 = 0x39 const CHAR_COLON = 0x3A const CHAR_EQUALS = 0x3D const CHAR_A = 0x41 const CHAR_E = 0x45 const CHAR_F = 0x46 const CHAR_T = 0x54 const CHAR_U = 0x55 const CHAR_Z = 0x5A const CHAR_LOWBAR = 0x5F const CHAR_a = 0x61 const CHAR_b = 0x62 const CHAR_e = 0x65 const CHAR_f = 0x66 const CHAR_i = 0x69 const CHAR_l = 0x6C const CHAR_n = 0x6E const CHAR_o = 0x6F const CHAR_r = 0x72 const CHAR_s = 0x73 const CHAR_t = 0x74 const CHAR_u = 0x75 const CHAR_x = 0x78 const CHAR_z = 0x7A const CHAR_LCUB = 0x7B const CHAR_RCUB = 0x7D const CHAR_LSQB = 0x5B const CHAR_BSOL = 0x5C const CHAR_RSQB = 0x5D const CHAR_DEL = 0x7F const SURROGATE_FIRST = 0xD800 const SURROGATE_LAST = 0xDFFF const escapes = { [CHAR_b]: '\u0008', [CHAR_t]: '\u0009', [CHAR_n]: '\u000A', [CHAR_f]: '\u000C', [CHAR_r]: '\u000D', [CHAR_QUOT]: '\u0022', [CHAR_BSOL]: '\u005C' } function isDigit (cp) { return cp >= CHAR_0 && cp <= CHAR_9 } function isHexit (cp) { return (cp >= CHAR_A && cp <= CHAR_F) || (cp >= CHAR_a && cp <= CHAR_f) || (cp >= CHAR_0 && cp <= CHAR_9) } function isBit (cp) { return cp === CHAR_1 || cp === CHAR_0 } function isOctit (cp) { return (cp >= CHAR_0 && cp <= CHAR_7) } function isAlphaNumQuoteHyphen (cp) { return (cp >= CHAR_A && cp <= CHAR_Z) || (cp >= CHAR_a && cp <= CHAR_z) || (cp >= CHAR_0 && cp <= CHAR_9) || cp === CHAR_APOS || cp === CHAR_QUOT || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN } function isAlphaNumHyphen (cp) { return (cp >= CHAR_A && cp <= CHAR_Z) || (cp >= CHAR_a && cp <= CHAR_z) || (cp >= CHAR_0 && cp <= CHAR_9) || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN } const _type = Symbol('type') const _declared = Symbol('declared') const hasOwnProperty = Object.prototype.hasOwnProperty const defineProperty = Object.defineProperty const descriptor = {configurable: true, enumerable: true, writable: true, value: undefined} function hasKey (obj, key) { if (hasOwnProperty.call(obj, key)) return true if (key === '__proto__') defineProperty(obj, '__proto__', descriptor) return false } const INLINE_TABLE = Symbol('inline-table') function InlineTable () { return Object.defineProperties({}, { [_type]: {value: INLINE_TABLE} }) } function isInlineTable (obj) { if (obj === null || typeof (obj) !== 'object') return false return obj[_type] === INLINE_TABLE } const TABLE = Symbol('table') function Table () { return Object.defineProperties({}, { [_type]: {value: TABLE}, [_declared]: {value: false, writable: true} }) } function isTable (obj) { if (obj === null || typeof (obj) !== 'object') return false return obj[_type] === TABLE } const _contentType = Symbol('content-type') const INLINE_LIST = Symbol('inline-list') function InlineList (type) { return Object.defineProperties([], { [_type]: {value: INLINE_LIST}, [_contentType]: {value: type} }) } function isInlineList (obj) { if (obj === null || typeof (obj) !== 'object') return false return obj[_type] === INLINE_LIST } const LIST = Symbol('list') function List () { return Object.defineProperties([], { [_type]: {value: LIST} }) } function isList (obj) { if (obj === null || typeof (obj) !== 'object') return false return obj[_type] === LIST } // in an eval, to let bundlers not slurp in a util proxy let _custom try { const utilInspect = eval("require('util').inspect") _custom = utilInspect.custom } catch (_) { /* eval require not available in transpiled bundle */ } /* istanbul ignore next */ const _inspect = _custom || 'inspect' class BoxedBigInt { constructor (value) { try { this.value = global.BigInt.asIntN(64, value) } catch (_) { /* istanbul ignore next */ this.value = null } Object.defineProperty(this, _type, {value: INTEGER}) } isNaN () { return this.value === null } /* istanbul ignore next */ toString () { return String(this.value) } /* istanbul ignore next */ [_inspect] () { return `[BigInt: ${this.toString()}]}` } valueOf () { return this.value } } const INTEGER = Symbol('integer') function Integer (value) { let num = Number(value) // -0 is a float thing, not an int thing if (Object.is(num, -0)) num = 0 /* istanbul ignore else */ if (global.BigInt && !Number.isSafeInteger(num)) { return new BoxedBigInt(value) } else { /* istanbul ignore next */ return Object.defineProperties(new Number(num), { isNaN: {value: function () { return isNaN(this) }}, [_type]: {value: INTEGER}, [_inspect]: {value: () => `[Integer: ${value}]`} }) } } function isInteger (obj) { if (obj === null || typeof (obj) !== 'object') return false return obj[_type] === INTEGER } const FLOAT = Symbol('float') function Float (value) { /* istanbul ignore next */ return Object.defineProperties(new Number(value), { [_type]: {value: FLOAT}, [_inspect]: {value: () => `[Float: ${value}]`} }) } function isFloat (obj) { if (obj === null || typeof (obj) !== 'object') return false return obj[_type] === FLOAT } function tomlType (value) { const type = typeof value if (type === 'object') { /* istanbul ignore if */ if (value === null) return 'null' if (value instanceof Date) return 'datetime' /* istanbul ignore else */ if (_type in value) { switch (value[_type]) { case INLINE_TABLE: return 'inline-table' case INLINE_LIST: return 'inline-list' /* istanbul ignore next */ case TABLE: return 'table' /* istanbul ignore next */ case LIST: return 'list' case FLOAT: return 'float' case INTEGER: return 'integer' } } } return type } function makeParserClass (Parser) { class TOMLParser extends Parser { constructor () { super() this.ctx = this.obj = Table() } /* MATCH HELPER */ atEndOfWord () { return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine() } atEndOfLine () { return this.char === Parser.END || this.char === CTRL_J || this.char === CTRL_M } parseStart () { if (this.char === Parser.END) { return null } else if (this.char === CHAR_LSQB) { return this.call(this.parseTableOrList) } else if (this.char === CHAR_NUM) { return this.call(this.parseComment) } else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) { return null } else if (isAlphaNumQuoteHyphen(this.char)) { return this.callNow(this.parseAssignStatement) } else { throw this.error(new TomlError(`Unknown character "${this.char}"`)) } } // HELPER, this strips any whitespace and comments to the end of the line // then RETURNS. Last state in a production. parseWhitespaceToEOL () { if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) { return null } else if (this.char === CHAR_NUM) { return this.goto(this.parseComment) } else if (this.char === Parser.END || this.char === CTRL_J) { return this.return() } else { throw this.error(new TomlError('Unexpected character, expected only whitespace or comments till end of line')) } } /* ASSIGNMENT: key = value */ parseAssignStatement () { return this.callNow(this.parseAssign, this.recordAssignStatement) } recordAssignStatement (kv) { let target = this.ctx let finalKey = kv.key.pop() for (let kw of kv.key) { if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) { throw this.error(new TomlError("Can't redefine existing key")) } target = target[kw] = target[kw] || Table() } if (hasKey(target, finalKey)) { throw this.error(new TomlError("Can't redefine existing key")) } // unbox our numbers if (isInteger(kv.value) || isFloat(kv.value)) { target[finalKey] = kv.value.valueOf() } else { target[finalKey] = kv.value } return this.goto(this.parseWhitespaceToEOL) } /* ASSSIGNMENT expression, key = value possibly inside an inline table */ parseAssign () { return this.callNow(this.parseKeyword, this.recordAssignKeyword) } recordAssignKeyword (key) { if (this.state.resultTable) { this.state.resultTable.push(key) } else { this.state.resultTable = [key] } return this.goto(this.parseAssignKeywordPreDot) } parseAssignKeywordPreDot () { if (this.char === CHAR_PERIOD) { return this.next(this.parseAssignKeywordPostDot) } else if (this.char !== CHAR_SP && this.char !== CTRL_I) { return this.goto(this.parseAssignEqual) } } parseAssignKeywordPostDot () { if (this.char !== CHAR_SP && this.char !== CTRL_I) { return this.callNow(this.parseKeyword, this.recordAssignKeyword) } } parseAssignEqual () { if (this.char === CHAR_EQUALS) { return this.next(this.parseAssignPreValue) } else { throw this.error(new TomlError('Invalid character, expected "="')) } } parseAssignPreValue () { if (this.char === CHAR_SP || this.char === CTRL_I) { return null } else { return this.callNow(this.parseValue, this.recordAssignValue) } } recordAssignValue (value) { return this.returnNow({key: this.state.resultTable, value: value}) } /* COMMENTS: #...eol */ parseComment () { do { if (this.char === Parser.END || this.char === CTRL_J) { return this.return() } } while (this.nextChar()) } /* TABLES AND LISTS, [foo] and [[foo]] */ parseTableOrList () { if (this.char === CHAR_LSQB) { this.next(this.parseList) } else { return this.goto(this.parseTable) } } /* TABLE [foo.bar.baz] */ parseTable () { this.ctx = this.obj return this.goto(this.parseTableNext) } parseTableNext () { if (this.char === CHAR_SP || this.char === CTRL_I) { return null } else { return this.callNow(this.parseKeyword, this.parseTableMore) } } parseTableMore (keyword) { if (this.char === CHAR_SP || this.char === CTRL_I) { return null } else if (this.char === CHAR_RSQB) { if (hasKey(this.ctx, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) { throw this.error(new TomlError("Can't redefine existing key")) } else { this.ctx = this.ctx[keyword] = this.ctx[keyword] || Table() this.ctx[_declared] = true } return this.next(this.parseWhitespaceToEOL) } else if (this.char === CHAR_PERIOD) { if (!hasKey(this.ctx, keyword)) { this.ctx = this.ctx[keyword] = Table() } else if (isTable(this.ctx[keyword])) { this.ctx = this.ctx[keyword] } else if (isList(this.ctx[keyword])) { this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1] } else { throw this.error(new TomlError("Can't redefine existing key")) } return this.next(this.parseTableNext) } else { throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]')) } } /* LIST [[a.b.c]] */ parseList () { this.ctx = this.obj return this.goto(this.parseListNext) } parseListNext () { if (this.char === CHAR_SP || this.char === CTRL_I) { return null } else { return this.callNow(this.parseKeyword, this.parseListMore) } } parseListMore (keyword) { if (this.char === CHAR_SP || this.char === CTRL_I) { return null } else if (this.char === CHAR_RSQB) { if (!hasKey(this.ctx, keyword)) { this.ctx[keyword] = List() } if (isInlineList(this.ctx[keyword])) { throw this.error(new TomlError("Can't extend an inline array")) } else if (isList(this.ctx[keyword])) { const next = Table() this.ctx[keyword].push(next) this.ctx = next } else { throw this.error(new TomlError("Can't redefine an existing key")) } return this.next(this.parseListEnd) } else if (this.char === CHAR_PERIOD) { if (!hasKey(this.ctx, keyword)) { this.ctx = this.ctx[keyword] = Table() } else if (isInlineList(this.ctx[keyword])) { throw this.error(new TomlError("Can't extend an inline array")) } else if (isInlineTable(this.ctx[keyword])) { throw this.error(new TomlError("Can't extend an inline table")) } else if (isList(this.ctx[keyword])) { this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1] } else if (isTable(this.ctx[keyword])) { this.ctx = this.ctx[keyword] } else { throw this.error(new TomlError("Can't redefine an existing key")) } return this.next(this.parseListNext) } else { throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]')) } } parseListEnd (keyword) { if (this.char === CHAR_RSQB) { return this.next(this.parseWhitespaceToEOL) } else { throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]')) } } /* VALUE string, number, boolean, inline list, inline object */ parseValue () { if (this.char === Parser.END) { throw this.error(new TomlError('Key without value')) } else if (this.char === CHAR_QUOT) { return this.next(this.parseDoubleString) } if (this.char === CHAR_APOS) { return this.next(this.parseSingleString) } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) { return this.goto(this.parseNumberSign) } else if (this.char === CHAR_i) { return this.next(this.parseInf) } else if (this.char === CHAR_n) { return this.next(this.parseNan) } else if (isDigit(this.char)) { return this.goto(this.parseNumberOrDateTime) } else if (this.char === CHAR_t || this.char === CHAR_f) { return this.goto(this.parseBoolean) } else if (this.char === CHAR_LSQB) { return this.call(this.parseInlineList, this.recordValue) } else if (this.char === CHAR_LCUB) { return this.call(this.parseInlineTable, this.recordValue) } else { throw this.error(new TomlError('Unexpected character, expecting string, number, datetime, boolean, inline array or inline table')) } } recordValue (value) { return this.returnNow(value) } parseInf () { if (this.char === CHAR_n) { return this.next(this.parseInf2) } else { throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"')) } } parseInf2 () { if (this.char === CHAR_f) { if (this.state.buf === '-') { return this.return(-Infinity) } else { return this.return(Infinity) } } else { throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"')) } } parseNan () { if (this.char === CHAR_a) { return this.next(this.parseNan2) } else { throw this.error(new TomlError('Unexpected character, expected "nan"')) } } parseNan2 () { if (this.char === CHAR_n) { return this.return(NaN) } else { throw this.error(new TomlError('Unexpected character, expected "nan"')) } } /* KEYS, barewords or basic, literal, or dotted */ parseKeyword () { if (this.char === CHAR_QUOT) { return this.next(this.parseBasicString) } else if (this.char === CHAR_APOS) { return this.next(this.parseLiteralString) } else { return this.goto(this.parseBareKey) } } /* KEYS: barewords */ parseBareKey () { do { if (this.char === Parser.END) { throw this.error(new TomlError('Key ended without value')) } else if (isAlphaNumHyphen(this.char)) { this.consume() } else if (this.state.buf.length === 0) { throw this.error(new TomlError('Empty bare keys are not allowed')) } else { return this.returnNow() } } while (this.nextChar()) } /* STRINGS, single quoted (literal) */ parseSingleString () { if (this.char === CHAR_APOS) { return this.next(this.parseLiteralMultiStringMaybe) } else { return this.goto(this.parseLiteralString) } } parseLiteralString () { do { if (this.char === CHAR_APOS) { return this.return() } else if (this.atEndOfLine()) { throw this.error(new TomlError('Unterminated string')) } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I)) { throw this.errorControlCharInString() } else { this.consume() } } while (this.nextChar()) } parseLiteralMultiStringMaybe () { if (t