extension-develop 4.0.1 → 4.0.2-canary.local-d776e4d9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/0~rspack-config.mjs +27 -40
- package/dist/101.mjs +30 -6
- package/dist/839.mjs +47 -56
- package/dist/extension-js-devtools/chrome/content_scripts/content-0.js +2 -2
- package/dist/extension-js-devtools/chrome/devtools/index.js +1 -1
- package/dist/extension-js-devtools/chrome/manifest.json +3 -3
- package/dist/extension-js-devtools/chrome/pages/centralized-logger.js +4 -4
- package/dist/extension-js-devtools/chrome/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/chrome/scripts/logger-client.js +1 -1
- package/dist/extension-js-devtools/chromium/content_scripts/content-0.js +2 -2
- package/dist/extension-js-devtools/chromium/devtools/index.js +1 -1
- package/dist/extension-js-devtools/chromium/manifest.json +3 -3
- package/dist/extension-js-devtools/chromium/pages/centralized-logger.js +4 -4
- package/dist/extension-js-devtools/chromium/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/chromium/scripts/logger-client.js +1 -1
- package/dist/extension-js-devtools/edge/content_scripts/content-0.js +2 -2
- package/dist/extension-js-devtools/edge/devtools/index.js +1 -1
- package/dist/extension-js-devtools/edge/manifest.json +3 -3
- package/dist/extension-js-devtools/edge/pages/centralized-logger.js +4 -4
- package/dist/extension-js-devtools/edge/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/edge/scripts/logger-client.js +1 -1
- package/dist/extension-js-devtools/firefox/content_scripts/content-0.js +2 -2
- package/dist/extension-js-devtools/firefox/devtools/index.js +1 -1
- package/dist/extension-js-devtools/firefox/pages/centralized-logger.js +4 -4
- package/dist/extension-js-devtools/firefox/pages/welcome.js +2 -2
- package/dist/extension-js-devtools/firefox/scripts/logger-client.js +1 -1
- package/dist/extension-js-theme/brave/background/service_worker.js +2003 -0
- package/dist/extension-js-theme/brave/background/service_worker.js.map +1 -0
- package/dist/extension-js-theme/brave/manifest.json +45 -0
- package/dist/extension-js-theme/chrome/Cached Theme.pak +0 -0
- package/dist/extension-js-theme/chromium/Cached Theme.pak +0 -0
- package/dist/extension-js-theme/extension-js/brave/events.ndjson +4 -0
- package/dist/extension-js-theme/extension-js/brave/logs.ndjson +3 -0
- package/dist/extension-js-theme/extension-js/brave/ready.json +20 -0
- package/dist/extension-js-theme/extension-js/firefox/events.ndjson +148 -4
- package/dist/extension-js-theme/extension-js/firefox/ready.json +7 -7
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/.extension-js-managed-profile +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/ChromeFeatureState +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/AccessibilityAnnotatorDatabase +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Account Web Data +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Account Web Data-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Affiliation Database +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Affiliation Database-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/AutofillAiModelCache/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/AutofillAiModelCache/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/AutofillStrikeDatabase/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/AutofillStrikeDatabase/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/BookmarkMergedSurfaceOrdering +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/BrowsingTopicsSiteData +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/BrowsingTopicsSiteData-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/BrowsingTopicsState +12 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/BudgetDatabase/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/BudgetDatabase/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cache/Cache_Data/index +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cache/Cache_Data/sqldb0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cache/Cache_Data/sqldb1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cache/Cache_Data/sqldb2 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cache/No_Vary_Search/journal.baj +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cache/No_Vary_Search/snapshot.baf +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/ClientCertificates/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/ClientCertificates/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Code Cache/pc/05_@;2t2fb2=a6@=`6`2`218;50[[=243915.92@2126345=;-629[`2.db +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Code Cache/pc/05_@;2t2fb2=a6@=`6`2`218;50[[=243915.92@2126345=;-629[`2.journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Collaboration/MessageDB +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Collaboration/MessageDB-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cookies +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Cookies-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DIPS +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DIPS-wal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DataSharing/DataSharingDB +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DataSharing/DataSharingDB-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnGraphiteCache/data_0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnGraphiteCache/data_1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnGraphiteCache/data_2 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnGraphiteCache/data_3 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnGraphiteCache/index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnWebGPUCache/data_0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnWebGPUCache/data_1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnWebGPUCache/data_2 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnWebGPUCache/data_3 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/DawnWebGPUCache/index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Rules/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Rules/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Rules/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Rules/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Rules/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Scripts/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Scripts/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Scripts/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Scripts/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension Scripts/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension State/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension State/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension State/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension State/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Extension State/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Favicons +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Favicons-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Feature Engagement Tracker/AvailabilityDB/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Feature Engagement Tracker/AvailabilityDB/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Feature Engagement Tracker/EventDB/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Feature Engagement Tracker/EventDB/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GCM Store/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GCM Store/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GCM Store/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GCM Store/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GCM Store/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GPUCache/data_0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GPUCache/data_1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GPUCache/data_2 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GPUCache/data_3 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/GPUCache/index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/History +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/History-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Extension Settings/dkmhcppnegfldhbleoedeifghnmaielp/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Extension Settings/dkmhcppnegfldhbleoedeifghnmaielp/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Extension Settings/dkmhcppnegfldhbleoedeifghnmaielp/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Extension Settings/dkmhcppnegfldhbleoedeifghnmaielp/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Extension Settings/dkmhcppnegfldhbleoedeifghnmaielp/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Storage/leveldb/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Storage/leveldb/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Storage/leveldb/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Storage/leveldb/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Local Storage/leveldb/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Login Data +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Login Data For Account +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Login Data For Account-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Login Data-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Network Action Predictor +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Network Action Predictor-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Network Persistent State +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/PersistentOriginTrials/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/PersistentOriginTrials/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Preferences +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/PreferredApps +1 -0
- NEL +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Reporting and NEL-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/SCT Auditing Pending Reports +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Safe Browsing Cookies +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Safe Browsing Cookies-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Secure Preferences +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Segmentation Platform/SegmentInfoDB/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Segmentation Platform/SegmentInfoDB/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Segmentation Platform/SignalDB/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Segmentation Platform/SignalDB/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Segmentation Platform/SignalStorageConfigDB/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Segmentation Platform/SignalStorageConfigDB/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/ServerCertificate +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/ServerCertificate-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/Database/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/Database/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/Database/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/Database/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/Database/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/ScriptCache/2cc80dabc69f58b6_0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/ScriptCache/2cc80dabc69f58b6_1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/ScriptCache/4cb013792b196a35_0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/ScriptCache/4cb013792b196a35_1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/ScriptCache/index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Service Worker/ScriptCache/index-dir/the-real-index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Session Storage/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Session Storage/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Session Storage/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Session Storage/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Session Storage/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sessions/Session_13426296971679614 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sessions/Tabs_13426296976710116 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Shared Dictionary/cache/index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Shared Dictionary/cache/index-dir/the-real-index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Shared Dictionary/db +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Shared Dictionary/db-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/SharedStorage +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Shortcuts +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Shortcuts-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Site Characteristics Database/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Site Characteristics Database/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Site Characteristics Database/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Site Characteristics Database/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Site Characteristics Database/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sync Data/LevelDB/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sync Data/LevelDB/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sync Data/LevelDB/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sync Data/LevelDB/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Sync Data/LevelDB/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Top Sites +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Top Sites-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/TransportSecurity +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Trust Tokens +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Trust Tokens-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Web Data +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/Web Data-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/WebStorage/QuotaManager +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/WebStorage/QuotaManager-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/chrome_cart_db/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/chrome_cart_db/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/commerce_subscription_db/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/commerce_subscription_db/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/discount_infos_db/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/discount_infos_db/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/discounts_db/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/discounts_db/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/engine_allowlist.bf +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/heavy_ad_intervention_opt_out.db +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/heavy_ad_intervention_opt_out.db-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/optimization_guide_hint_cache_store/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/optimization_guide_hint_cache_store/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/parcel_tracking_db/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/parcel_tracking_db/LOG +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/metadata/000003.log +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/metadata/CURRENT +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/metadata/LOCK +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/metadata/LOG +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/shared_proto_db/metadata/MANIFEST-000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Default/trusted_vault.pb +2 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GPUPersistentCache/GPUCache/6SE4MO4T2PYNTMRZGJ6B4HK2AV4LBDP4/cache.db +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GPUPersistentCache/GPUCache/6SE4MO4T2PYNTMRZGJ6B4HK2AV4LBDP4/cache.db-wal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GPUPersistentCache/GPUCache/6SE4MO4T2PYNTMRZGJ6B4HK2AV4LBDP4/cache.journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GraphiteDawnCache/data_0 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GraphiteDawnCache/data_1 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GraphiteDawnCache/data_2 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GraphiteDawnCache/data_3 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GraphiteDawnCache/f_000001 +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/GraphiteDawnCache/index +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Last Version +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Local State +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/Variations +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/extensions_crx_cache/metadata.json +1 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/first_party_sets.db +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/first_party_sets.db-journal +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/segmentation_platform/ukm_db +0 -0
- package/dist/extension-js-theme/extension-js/profiles/brave-profile/circular-scarlet-slug/segmentation_platform/ukm_db-wal +0 -0
- package/dist/extension-js-theme/theme-dist-bak/chrome/Cached Theme.pak +0 -0
- package/dist/extension-js-theme/theme-dist-bak/chrome/manifest.json +22 -0
- package/dist/extension-js-theme/theme-dist-bak/chromium/Cached Theme.pak +0 -0
- package/dist/extension-js-theme/theme-dist-bak/chromium/manifest.json +22 -0
- package/dist/extension-js-theme/theme-dist-bak/edge/Cached Theme.pak +0 -0
- package/dist/extension-js-theme/theme-dist-bak/edge/manifest.json +22 -0
- package/dist/extension-js-theme/theme-dist-bak/firefox/manifest.json +66 -0
- package/package.json +3 -3
- package/dist/extension-js-devtools/extension-js/chrome/events.ndjson +0 -2
- package/dist/extension-js-devtools/extension-js/chrome/ready.json +0 -16
- package/dist/extension-js-devtools/extension-js/chromium/events.ndjson +0 -2
- package/dist/extension-js-devtools/extension-js/chromium/ready.json +0 -16
- package/dist/extension-js-devtools/extension-js/edge/events.ndjson +0 -2
- package/dist/extension-js-devtools/extension-js/edge/ready.json +0 -16
- package/dist/extension-js-devtools/extension-js/firefox/events.ndjson +0 -2
- package/dist/extension-js-devtools/extension-js/firefox/ready.json +0 -16
- package/dist/extension-js-theme/extension-js/chrome/events.ndjson +0 -2
- package/dist/extension-js-theme/extension-js/chrome/ready.json +0 -16
- package/dist/extension-js-theme/extension-js/chromium/events.ndjson +0 -2
- package/dist/extension-js-theme/extension-js/chromium/ready.json +0 -16
- package/dist/extension-js-theme/extension-js/edge/events.ndjson +0 -2
- package/dist/extension-js-theme/extension-js/edge/ready.json +0 -16
|
@@ -0,0 +1,2003 @@
|
|
|
1
|
+
;(function () {
|
|
2
|
+
try {
|
|
3
|
+
var g = (typeof globalThis === "object" && globalThis) ? globalThis : this;
|
|
4
|
+
if (!g || g.__extjsBridgeProducerInstalled) return;
|
|
5
|
+
|
|
6
|
+
var PORT = parseInt("61571", 10);
|
|
7
|
+
var INSTANCE_ID = "f360bfe1eaa0ab76";
|
|
8
|
+
var CONTEXT = "background";
|
|
9
|
+
if (!PORT || PORT < 1) return;
|
|
10
|
+
|
|
11
|
+
var WS = g.WebSocket;
|
|
12
|
+
if (typeof WS !== "function") return;
|
|
13
|
+
|
|
14
|
+
var consoleRef = g.console || {};
|
|
15
|
+
g.__extjsBridgeProducerInstalled = true;
|
|
16
|
+
|
|
17
|
+
// Capture extension event listeners at install time. The producer is
|
|
18
|
+
// prepended to the background bundle, so these wraps run BEFORE user code
|
|
19
|
+
// registers its listeners — letting the bridge replay them on demand. The
|
|
20
|
+
// platform exposes no API to dispatch these events, and CDP attaches too
|
|
21
|
+
// late to wrap addListener, so this is the only path. Replay invokes the
|
|
22
|
+
// handler WITHOUT a user gesture, so the gesture-derived activeTab grant
|
|
23
|
+
// does NOT apply (callers are told gesture:false). This is engine-agnostic:
|
|
24
|
+
// it works on Chromium and Gecko because it only touches addListener.
|
|
25
|
+
//
|
|
26
|
+
// captureEvent transparently wraps addListener/removeListener (delegating to
|
|
27
|
+
// the originals) and records callbacks into the sink array.
|
|
28
|
+
function captureEvent(event, sink) {
|
|
29
|
+
try {
|
|
30
|
+
if (!event || typeof event.addListener !== "function") return;
|
|
31
|
+
var origAdd = event.addListener.bind(event);
|
|
32
|
+
event.addListener = function (cb) {
|
|
33
|
+
if (typeof cb === "function" && sink.indexOf(cb) === -1) sink.push(cb);
|
|
34
|
+
return origAdd(cb);
|
|
35
|
+
};
|
|
36
|
+
if (typeof event.removeListener === "function") {
|
|
37
|
+
var origRemove = event.removeListener.bind(event);
|
|
38
|
+
event.removeListener = function (cb) {
|
|
39
|
+
var i = sink.indexOf(cb);
|
|
40
|
+
if (i !== -1) sink.splice(i, 1);
|
|
41
|
+
return origRemove(cb);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
} catch (e) { /* non-fatal: trigger falls back to its no-listener reply */ }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Use g.chrome (not the hoisted chrome var below) — this runs first.
|
|
48
|
+
var actionClickedListeners = [];
|
|
49
|
+
var commandListeners = [];
|
|
50
|
+
if (g.chrome) {
|
|
51
|
+
captureEvent(g.chrome.action && g.chrome.action.onClicked, actionClickedListeners);
|
|
52
|
+
captureEvent(g.chrome.commands && g.chrome.commands.onCommand, commandListeners);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var LEVELS = ["log", "info", "warn", "error", "debug", "trace"];
|
|
56
|
+
var socket = null;
|
|
57
|
+
var open = false;
|
|
58
|
+
var queue = [];
|
|
59
|
+
var backoff = 250;
|
|
60
|
+
var MAX_BACKOFF = 5000;
|
|
61
|
+
var MAX_QUEUE = 1000;
|
|
62
|
+
var MAX_RESULT_BYTES = 256 * 1024;
|
|
63
|
+
|
|
64
|
+
function nowId() {
|
|
65
|
+
return Date.now().toString(36) + Math.random().toString(36).slice(2, 8);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function engineName() {
|
|
69
|
+
try {
|
|
70
|
+
return (typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)) ? "firefox" : "chromium";
|
|
71
|
+
} catch (e) { return "chromium"; }
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// JSON-safe, byte-capped clone of a result value.
|
|
75
|
+
function safeValue(v) {
|
|
76
|
+
try {
|
|
77
|
+
var s = JSON.stringify(v);
|
|
78
|
+
if (s === undefined) return {value: undefined, truncated: false};
|
|
79
|
+
if (s.length > MAX_RESULT_BYTES) {
|
|
80
|
+
return {value: {__type: "truncated", preview: s.slice(0, 1024)}, truncated: true};
|
|
81
|
+
}
|
|
82
|
+
return {value: JSON.parse(s), truncated: false};
|
|
83
|
+
} catch (e) {
|
|
84
|
+
return {value: {__type: "unserializable", preview: String(v).slice(0, 512)}, truncated: false};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function replyOk(cmdId, value) {
|
|
89
|
+
var s = safeValue(value);
|
|
90
|
+
var frame = {type: "result", cmdId: cmdId, ok: true, value: s.value};
|
|
91
|
+
if (s.truncated) frame.truncated = true;
|
|
92
|
+
try { socket && socket.send(JSON.stringify(frame)); } catch (e) {}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function replyErr(cmdId, name, message) {
|
|
96
|
+
var frame = {type: "result", cmdId: cmdId, ok: false, error: {name: name, message: String(message), engine: engineName()}};
|
|
97
|
+
try { socket && socket.send(JSON.stringify(frame)); } catch (e) {}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Execute one authorized command in the SW (or route to a tab). chrome.*
|
|
101
|
+
// promise APIs are used; callback-only APIs are wrapped.
|
|
102
|
+
function executeCommand(cmd) {
|
|
103
|
+
var op = cmd.op, target = cmd.target || {}, args = cmd.args || {};
|
|
104
|
+
var ctx = target.context || "background";
|
|
105
|
+
var chrome = g.chrome;
|
|
106
|
+
var cmdId = cmd.cmdId;
|
|
107
|
+
try {
|
|
108
|
+
if (!chrome) { replyErr(cmdId, "Unsupported", "chrome.* not available in this context"); return; }
|
|
109
|
+
if (op === "eval") {
|
|
110
|
+
if (ctx === "background") {
|
|
111
|
+
Promise.resolve().then(function () { return (0, eval)(args.expression); })
|
|
112
|
+
.then(function (r) { replyOk(cmdId, r); }, function (e) {
|
|
113
|
+
var msg = (e && e.message) || String(e);
|
|
114
|
+
// MV3 forbids eval of strings in the SW/extension pages; Chrome
|
|
115
|
+
// rejects 'unsafe-eval' in MV3 extension_pages, so this can't be
|
|
116
|
+
// relaxed. Surface it honestly with a usable alternative.
|
|
117
|
+
if (/Content Security Policy|unsafe-eval/i.test(msg)) {
|
|
118
|
+
replyErr(cmdId, "Unsupported", "eval is blocked in the MV3 service worker by CSP. Use --context page --tab <id> (eval runs in the page's MAIN world), or run on an MV2/Firefox build. Engine: " + engineName());
|
|
119
|
+
} else {
|
|
120
|
+
replyErr(cmdId, (e && e.name) || "EvalError", msg);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
} else if ((ctx === "content" || ctx === "page") && target.tabId && chrome.scripting) {
|
|
124
|
+
chrome.scripting.executeScript({
|
|
125
|
+
target: {tabId: target.tabId},
|
|
126
|
+
world: ctx === "page" ? "MAIN" : "ISOLATED",
|
|
127
|
+
func: function (src) { return eval(src); },
|
|
128
|
+
args: [String(args.expression)]
|
|
129
|
+
}).then(function (res) { replyOk(cmdId, res && res[0] ? res[0].result : undefined); },
|
|
130
|
+
function (e) { replyErr(cmdId, "EvalError", e); });
|
|
131
|
+
} else {
|
|
132
|
+
replyErr(cmdId, "Unsupported", "eval in context " + ctx + " requires a tabId");
|
|
133
|
+
}
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (op === "storage.get") {
|
|
137
|
+
chrome.storage[args.area || "local"].get(args.key != null ? args.key : null)
|
|
138
|
+
.then(function (r) { replyOk(cmdId, r); }, function (e) { replyErr(cmdId, "StorageError", e); });
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (op === "storage.set") {
|
|
142
|
+
chrome.storage[args.area || "local"].set(args.items || {})
|
|
143
|
+
.then(function () { replyOk(cmdId, {set: Object.keys(args.items || {})}); }, function (e) { replyErr(cmdId, "StorageError", e); });
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (op === "reload") {
|
|
147
|
+
if (ctx === "background") {
|
|
148
|
+
replyOk(cmdId, {reloading: true});
|
|
149
|
+
setTimeout(function () { try { chrome.runtime.reload(); } catch (e) {} }, 50);
|
|
150
|
+
} else if (target.tabId) {
|
|
151
|
+
chrome.tabs.reload(target.tabId).then(function () { replyOk(cmdId, {reloaded: target.tabId}); }, function (e) { replyErr(cmdId, "ReloadError", e); });
|
|
152
|
+
} else {
|
|
153
|
+
replyErr(cmdId, "Unsupported", "reload needs background or a tabId");
|
|
154
|
+
}
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
if (op === "open") {
|
|
158
|
+
var surface = args.surface || ctx;
|
|
159
|
+
// getPopup is promise-style on Gecko and (MV3) Chromium; fall back to
|
|
160
|
+
// callback-style for older Chromium. Always resolves to a string.
|
|
161
|
+
var getActionPopup = function (cb) {
|
|
162
|
+
try {
|
|
163
|
+
var r = chrome.action && chrome.action.getPopup && chrome.action.getPopup({});
|
|
164
|
+
if (r && typeof r.then === "function") {
|
|
165
|
+
r.then(function (p) { cb(p || ""); }, function () { cb(""); });
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
} catch (e) {}
|
|
169
|
+
try { chrome.action.getPopup({}, function (p) { cb(p || ""); }); }
|
|
170
|
+
catch (e) { cb(""); }
|
|
171
|
+
};
|
|
172
|
+
// Resolve the tab a replayed event should carry: an explicit args.tabId,
|
|
173
|
+
// else the active tab of the focused window.
|
|
174
|
+
var resolveActiveTab = function (a, cb) {
|
|
175
|
+
if (a && typeof a.tabId === "number") {
|
|
176
|
+
try { chrome.tabs.get(a.tabId, function (t) { cb(t || {id: a.tabId}); }); return; }
|
|
177
|
+
catch (e) {}
|
|
178
|
+
}
|
|
179
|
+
try { chrome.tabs.query({active: true, lastFocusedWindow: true}, function (tabs) { cb((tabs && tabs[0]) || undefined); }); }
|
|
180
|
+
catch (e) { cb(undefined); }
|
|
181
|
+
};
|
|
182
|
+
// Replaying a listener carries no user gesture, so activeTab is never
|
|
183
|
+
// granted. Warn when the manifest declares it (handler will diverge
|
|
184
|
+
// from a real click).
|
|
185
|
+
var activeTabWarning = function () {
|
|
186
|
+
try {
|
|
187
|
+
var m = chrome.runtime.getManifest();
|
|
188
|
+
var perms = (m && m.permissions) || [];
|
|
189
|
+
if (perms.indexOf("activeTab") !== -1) {
|
|
190
|
+
return "replayed without a user gesture: activeTab is NOT granted, so APIs that depend on it (scripting on the active tab, captureVisibleTab) behave differently than a real click";
|
|
191
|
+
}
|
|
192
|
+
} catch (e) {}
|
|
193
|
+
return null;
|
|
194
|
+
};
|
|
195
|
+
if (surface === "popup") {
|
|
196
|
+
if (chrome.action && chrome.action.openPopup) {
|
|
197
|
+
chrome.action.openPopup().then(function () { replyOk(cmdId, {opened: "popup"}); }, function (e) { replyErr(cmdId, "Unsupported", "openPopup: " + e); });
|
|
198
|
+
} else { replyErr(cmdId, "Unsupported", "action.openPopup not available"); }
|
|
199
|
+
} else if (surface === "options") {
|
|
200
|
+
try { chrome.runtime.openOptionsPage(function () { replyOk(cmdId, {opened: "options"}); }); }
|
|
201
|
+
catch (e) { replyErr(cmdId, "Unsupported", "openOptionsPage: " + e); }
|
|
202
|
+
} else if (surface === "sidebar") {
|
|
203
|
+
if (chrome.sidePanel && chrome.sidePanel.open && chrome.windows) {
|
|
204
|
+
chrome.windows.getCurrent(function (w) {
|
|
205
|
+
chrome.sidePanel.open({windowId: w.id}).then(function () { replyOk(cmdId, {opened: "sidebar"}); }, function (e) { replyErr(cmdId, "Unsupported", "sidePanel.open: " + e); });
|
|
206
|
+
});
|
|
207
|
+
} else { replyErr(cmdId, "Unsupported", "sidePanel not available (engine: " + engineName() + ")"); }
|
|
208
|
+
} else if (surface === "action") {
|
|
209
|
+
// Trigger the toolbar action. With a default_popup, clicking the icon
|
|
210
|
+
// opens it (reuse openPopup). Without a popup, clicking fires
|
|
211
|
+
// chrome.action.onClicked — we replay the listeners captured at install.
|
|
212
|
+
if (chrome.action) {
|
|
213
|
+
getActionPopup(function (popup) {
|
|
214
|
+
if (popup) {
|
|
215
|
+
try {
|
|
216
|
+
chrome.action.openPopup().then(function () { replyOk(cmdId, {triggered: "popup"}); }, function (e) { replyErr(cmdId, "Unsupported", "openPopup: " + e); });
|
|
217
|
+
} catch (e) { replyErr(cmdId, "Unsupported", "openPopup: " + e); }
|
|
218
|
+
} else if (actionClickedListeners.length) {
|
|
219
|
+
resolveActiveTab(args, function (tab) {
|
|
220
|
+
var fired = 0;
|
|
221
|
+
for (var i = 0; i < actionClickedListeners.length; i++) {
|
|
222
|
+
try { actionClickedListeners[i](tab); fired++; } catch (e) {}
|
|
223
|
+
}
|
|
224
|
+
var reply = {triggered: "onClicked", listeners: fired, gesture: false};
|
|
225
|
+
var warning = activeTabWarning();
|
|
226
|
+
if (warning) reply.warning = warning;
|
|
227
|
+
replyOk(cmdId, reply);
|
|
228
|
+
});
|
|
229
|
+
} else {
|
|
230
|
+
replyErr(cmdId, "Unsupported", "action has no popup and no onClicked listener registered");
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
} else { replyErr(cmdId, "Unsupported", "chrome.action not available (engine: " + engineName() + ")"); }
|
|
234
|
+
} else if (surface === "command") {
|
|
235
|
+
// Replay a captured chrome.commands.onCommand listener (keyboard
|
|
236
|
+
// shortcut). Same no-gesture caveat as onClicked.
|
|
237
|
+
var commandName = (args && args.name) || undefined;
|
|
238
|
+
if (!commandListeners.length) {
|
|
239
|
+
replyErr(cmdId, "Unsupported", "no chrome.commands.onCommand listener registered");
|
|
240
|
+
} else {
|
|
241
|
+
resolveActiveTab(args, function (tab) {
|
|
242
|
+
var fired = 0;
|
|
243
|
+
for (var i = 0; i < commandListeners.length; i++) {
|
|
244
|
+
try { commandListeners[i](commandName, tab); fired++; } catch (e) {}
|
|
245
|
+
}
|
|
246
|
+
replyOk(cmdId, {triggered: "command", command: commandName || null, listeners: fired, gesture: false});
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
} else { replyErr(cmdId, "BadRequest", "unknown surface: " + surface); }
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
if (op === "tabs.query") {
|
|
253
|
+
chrome.tabs.query(args || {}).then(function (tabs) {
|
|
254
|
+
replyOk(cmdId, (tabs || []).map(function (t) { return {id: t.id, url: t.url, title: t.title, active: t.active, windowId: t.windowId}; }));
|
|
255
|
+
}, function (e) { replyErr(cmdId, "TabsError", e); });
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
if (op === "inspect") {
|
|
259
|
+
// Slice 3 sidecar/default path: extract a DOM snapshot from the target
|
|
260
|
+
// page via chrome.scripting (CDP-free). Closed shadow roots need the
|
|
261
|
+
// --deep-dom CDP escape hatch (separate tool); here we read open ones.
|
|
262
|
+
if ((ctx === "content" || ctx === "page") && target.tabId && chrome.scripting) {
|
|
263
|
+
var maxBytes = (args && args.maxBytes) || 262144;
|
|
264
|
+
var includeHtml = !args || !args.include || args.include.indexOf("html") !== -1;
|
|
265
|
+
chrome.scripting.executeScript({
|
|
266
|
+
target: {tabId: target.tabId},
|
|
267
|
+
world: ctx === "page" ? "MAIN" : "ISOLATED",
|
|
268
|
+
func: function (wantHtml, cap) {
|
|
269
|
+
function countShadow(root) {
|
|
270
|
+
var n = 0, els = root.querySelectorAll("*");
|
|
271
|
+
for (var i = 0; i < els.length; i++) { if (els[i].shadowRoot) { n++; n += countShadow(els[i].shadowRoot); } }
|
|
272
|
+
return n;
|
|
273
|
+
}
|
|
274
|
+
var doc = document;
|
|
275
|
+
var roots = doc.querySelectorAll('#extension-root,[data-extension-root]');
|
|
276
|
+
var out = {
|
|
277
|
+
url: location.href,
|
|
278
|
+
title: doc.title,
|
|
279
|
+
summary: {
|
|
280
|
+
htmlLength: doc.documentElement.outerHTML.length,
|
|
281
|
+
scriptCount: doc.querySelectorAll("script").length,
|
|
282
|
+
styleCount: doc.querySelectorAll("style,link[rel=stylesheet]").length,
|
|
283
|
+
extensionRootCount: roots.length,
|
|
284
|
+
openShadowRoots: countShadow(doc),
|
|
285
|
+
bodyChildCount: doc.body ? doc.body.children.length : 0
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
if (wantHtml) {
|
|
289
|
+
var html = doc.documentElement.outerHTML;
|
|
290
|
+
if (cap > 0 && html.length > cap) { out.html = html.slice(0, cap); out.htmlTruncated = true; }
|
|
291
|
+
else { out.html = html; }
|
|
292
|
+
}
|
|
293
|
+
return out;
|
|
294
|
+
},
|
|
295
|
+
args: [includeHtml, maxBytes]
|
|
296
|
+
}).then(function (res) { replyOk(cmdId, res && res[0] ? res[0].result : undefined); },
|
|
297
|
+
function (e) { replyErr(cmdId, "InspectError", e); });
|
|
298
|
+
} else if (ctx === "popup" || ctx === "options" || ctx === "sidebar" || ctx === "devtools") {
|
|
299
|
+
// The SW can't read a surface page's DOM; ask the surface's own
|
|
300
|
+
// in-bundle relay (only the open, matching-context page responds).
|
|
301
|
+
chrome.runtime.sendMessage(
|
|
302
|
+
{__extjsInspectRequest: true, target: target, args: args},
|
|
303
|
+
function (resp) {
|
|
304
|
+
if (chrome.runtime.lastError || !resp) {
|
|
305
|
+
replyErr(cmdId, "Unsupported", "surface '" + ctx + "' is not open (open it first: extension open " + ctx + ")");
|
|
306
|
+
} else if (resp.ok) {
|
|
307
|
+
replyOk(cmdId, resp.value);
|
|
308
|
+
} else {
|
|
309
|
+
replyErr(cmdId, (resp.error && resp.error.name) || "InspectError", (resp.error && resp.error.message) || "inspect failed");
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
);
|
|
313
|
+
} else if (ctx === "background") {
|
|
314
|
+
replyErr(cmdId, "Unsupported", "the service worker has no DOM; inspect a content/page (with --tab) or an open surface");
|
|
315
|
+
} else {
|
|
316
|
+
replyErr(cmdId, "Unsupported", "inspect of " + ctx + " requires a tabId (content/page) or an open surface");
|
|
317
|
+
}
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
replyErr(cmdId, "BadRequest", "unknown op: " + op);
|
|
321
|
+
} catch (e) {
|
|
322
|
+
replyErr(cmdId, "ExecutorError", e);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function sanitize(args) {
|
|
327
|
+
var out = [];
|
|
328
|
+
for (var i = 0; i < args.length; i++) {
|
|
329
|
+
var p = args[i];
|
|
330
|
+
try {
|
|
331
|
+
if (typeof p === "string") out.push(p.length > 2048 ? p.slice(0, 2048) + "..." : p);
|
|
332
|
+
else if (p instanceof Error) out.push(p.name + ": " + p.message);
|
|
333
|
+
else out.push(JSON.stringify(p));
|
|
334
|
+
} catch (e) {
|
|
335
|
+
out.push(String(p));
|
|
336
|
+
}
|
|
337
|
+
if (out.join(" ").length > 8192) break;
|
|
338
|
+
}
|
|
339
|
+
return out;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
function flush() {
|
|
343
|
+
while (queue.length && open && socket) {
|
|
344
|
+
var f = queue.shift();
|
|
345
|
+
try { socket.send(JSON.stringify(f)); } catch (e) { break; }
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
function send(frame) {
|
|
350
|
+
if (open && socket) {
|
|
351
|
+
try { socket.send(JSON.stringify(frame)); return; } catch (e) {}
|
|
352
|
+
}
|
|
353
|
+
if (queue.length < MAX_QUEUE) queue.push(frame);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
function schedule() {
|
|
357
|
+
var delay = backoff;
|
|
358
|
+
backoff = Math.min(backoff * 2, MAX_BACKOFF);
|
|
359
|
+
try { setTimeout(connect, delay); } catch (e) {}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
function connect() {
|
|
363
|
+
try {
|
|
364
|
+
socket = new WS("ws://127.0.0.1:" + PORT + "/extjs-control");
|
|
365
|
+
} catch (e) {
|
|
366
|
+
schedule();
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
socket.onopen = function () {
|
|
370
|
+
open = true;
|
|
371
|
+
backoff = 250;
|
|
372
|
+
try {
|
|
373
|
+
socket.send(JSON.stringify({type: "hello", v: 1, role: "producer", instanceId: INSTANCE_ID}));
|
|
374
|
+
} catch (e) {}
|
|
375
|
+
flush();
|
|
376
|
+
};
|
|
377
|
+
socket.onmessage = function (ev) {
|
|
378
|
+
// Slice 2: the broker routes authorized command frames to this SW.
|
|
379
|
+
var frame;
|
|
380
|
+
try { frame = JSON.parse(typeof ev.data === "string" ? ev.data : ""); } catch (e) { return; }
|
|
381
|
+
if (frame && frame.type === "command") {
|
|
382
|
+
try { executeCommand(frame); } catch (e) { replyErr(frame.cmdId, "ExecutorError", e); }
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
socket.onclose = function () {
|
|
386
|
+
open = false;
|
|
387
|
+
socket = null;
|
|
388
|
+
schedule();
|
|
389
|
+
};
|
|
390
|
+
socket.onerror = function () {
|
|
391
|
+
try { socket && socket.close(); } catch (e) {}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
LEVELS.forEach(function (level) {
|
|
396
|
+
var orig = typeof consoleRef[level] === "function"
|
|
397
|
+
? consoleRef[level].bind(consoleRef)
|
|
398
|
+
: function () {};
|
|
399
|
+
consoleRef[level] = function () {
|
|
400
|
+
try {
|
|
401
|
+
send({
|
|
402
|
+
type: "log",
|
|
403
|
+
event: {
|
|
404
|
+
v: 1,
|
|
405
|
+
id: nowId(),
|
|
406
|
+
timestamp: Date.now(),
|
|
407
|
+
level: level,
|
|
408
|
+
context: CONTEXT,
|
|
409
|
+
messageParts: sanitize([].slice.call(arguments)),
|
|
410
|
+
runId: INSTANCE_ID
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
} catch (e) {}
|
|
414
|
+
return orig.apply(consoleRef, arguments);
|
|
415
|
+
};
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
// Multi-context console forwarding: other contexts (content scripts, surface
|
|
419
|
+
// pages) can't reliably open ws://127.0.0.1 (page CSP / connect-src), so they
|
|
420
|
+
// relay console via chrome.runtime.sendMessage to this SW, which owns the WS.
|
|
421
|
+
// We enrich with the real tabId/url from the message sender.
|
|
422
|
+
try {
|
|
423
|
+
var rt = g.chrome;
|
|
424
|
+
if (rt && rt.runtime && rt.runtime.onMessage) {
|
|
425
|
+
rt.runtime.onMessage.addListener(function (msg, sender) {
|
|
426
|
+
if (!msg || !msg.__extjsBridgeLog) return;
|
|
427
|
+
var ev = msg.__extjsBridgeLog;
|
|
428
|
+
try {
|
|
429
|
+
send({
|
|
430
|
+
type: "log",
|
|
431
|
+
event: {
|
|
432
|
+
v: 1,
|
|
433
|
+
id: nowId(),
|
|
434
|
+
timestamp: Date.now(),
|
|
435
|
+
level: ev.level || "log",
|
|
436
|
+
context: ev.context || "content",
|
|
437
|
+
messageParts: Array.isArray(ev.messageParts) ? ev.messageParts : [],
|
|
438
|
+
url: ev.url || (sender ? sender.url : undefined),
|
|
439
|
+
tabId: sender && sender.tab ? sender.tab.id : undefined,
|
|
440
|
+
frameId: sender ? sender.frameId : undefined,
|
|
441
|
+
runId: INSTANCE_ID
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
} catch (e) {}
|
|
445
|
+
// No async response.
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
} catch (e) {}
|
|
449
|
+
|
|
450
|
+
connect();
|
|
451
|
+
} catch (e) {}
|
|
452
|
+
})();
|
|
453
|
+
|
|
454
|
+
;(function () {
|
|
455
|
+
try {
|
|
456
|
+
if (typeof globalThis !== "object" || !globalThis) return;
|
|
457
|
+
var chromeRef =
|
|
458
|
+
(globalThis.chrome && globalThis.chrome.scripting && typeof globalThis.chrome.scripting.executeScript === "function")
|
|
459
|
+
? globalThis.chrome
|
|
460
|
+
: (globalThis.browser && globalThis.browser.scripting && typeof globalThis.browser.scripting.executeScript === "function")
|
|
461
|
+
? globalThis.browser
|
|
462
|
+
: null;
|
|
463
|
+
if (!chromeRef) return;
|
|
464
|
+
if (globalThis.__extjsScriptsReplayInstalled) return;
|
|
465
|
+
globalThis.__extjsScriptsReplayInstalled = true;
|
|
466
|
+
|
|
467
|
+
var registry = new Map();
|
|
468
|
+
var originalExecuteScript = chromeRef.scripting.executeScript.bind(chromeRef.scripting);
|
|
469
|
+
|
|
470
|
+
var serialize = function (entry) {
|
|
471
|
+
try {
|
|
472
|
+
return JSON.stringify({
|
|
473
|
+
files: entry && Array.isArray(entry.files) ? entry.files : [],
|
|
474
|
+
world: entry && entry.world ? String(entry.world) : ""
|
|
475
|
+
});
|
|
476
|
+
} catch (error) {
|
|
477
|
+
return "";
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
var track = function (injection) {
|
|
482
|
+
try {
|
|
483
|
+
var tabId = injection && injection.target && injection.target.tabId;
|
|
484
|
+
var files =
|
|
485
|
+
injection && Array.isArray(injection.files) ? injection.files.slice() : null;
|
|
486
|
+
if (typeof tabId !== "number") return;
|
|
487
|
+
if (!files || !files.length) return;
|
|
488
|
+
var world = injection.world ? String(injection.world) : undefined;
|
|
489
|
+
var entry = { files: files, world: world, sig: serialize({ files: files, world: world }) };
|
|
490
|
+
var existing = registry.get(tabId) || [];
|
|
491
|
+
// Dedupe by signature — repeated identical injections (e.g. user
|
|
492
|
+
// clicks the action twice) shouldn't stack in the replay list.
|
|
493
|
+
if (existing.some(function (e) { return e.sig === entry.sig; })) return;
|
|
494
|
+
existing.push(entry);
|
|
495
|
+
// Cap to the most recent 50 distinct injections per tab so a misbehaving
|
|
496
|
+
// user loop can't grow the registry unbounded.
|
|
497
|
+
registry.set(tabId, existing.slice(-50));
|
|
498
|
+
} catch (error) {
|
|
499
|
+
// Tracking is best-effort; never break the user's executeScript call.
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
chromeRef.scripting.executeScript = function (injection, callback) {
|
|
504
|
+
track(injection);
|
|
505
|
+
return originalExecuteScript(injection, callback);
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
var normalizeFile = function (value) {
|
|
509
|
+
return String(value || "").replace(/^[/\\]+/, "");
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
var fileMatches = function (entryFile, changedNormalized) {
|
|
513
|
+
var fn = normalizeFile(entryFile);
|
|
514
|
+
for (var i = 0; i < changedNormalized.length; i++) {
|
|
515
|
+
var c = changedNormalized[i];
|
|
516
|
+
if (!c) continue;
|
|
517
|
+
if (fn === c) return true;
|
|
518
|
+
if (fn.length > c.length && fn.slice(fn.length - c.length - 1) === "/" + c) return true;
|
|
519
|
+
if (c.length > fn.length && c.slice(c.length - fn.length - 1) === "/" + fn) return true;
|
|
520
|
+
}
|
|
521
|
+
return false;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
globalThis.__extjsScriptsReplay = function (changedFiles) {
|
|
525
|
+
var changedNormalized = (Array.isArray(changedFiles) ? changedFiles : []).map(normalizeFile);
|
|
526
|
+
var promises = [];
|
|
527
|
+
registry.forEach(function (entries, tabId) {
|
|
528
|
+
entries.forEach(function (entry) {
|
|
529
|
+
var matches = false;
|
|
530
|
+
for (var i = 0; i < entry.files.length; i++) {
|
|
531
|
+
if (fileMatches(entry.files[i], changedNormalized)) {
|
|
532
|
+
matches = true;
|
|
533
|
+
break;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
if (!matches) return;
|
|
537
|
+
try {
|
|
538
|
+
promises.push(
|
|
539
|
+
originalExecuteScript({
|
|
540
|
+
target: { tabId: tabId },
|
|
541
|
+
files: entry.files,
|
|
542
|
+
world: entry.world
|
|
543
|
+
}).then(
|
|
544
|
+
function () { return { ok: true, tabId: tabId, files: entry.files }; },
|
|
545
|
+
function (error) {
|
|
546
|
+
return {
|
|
547
|
+
ok: false,
|
|
548
|
+
tabId: tabId,
|
|
549
|
+
files: entry.files,
|
|
550
|
+
error: String((error && error.message) || error)
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
)
|
|
554
|
+
);
|
|
555
|
+
} catch (error) {
|
|
556
|
+
// Tab may have closed; skip silently.
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
});
|
|
560
|
+
return Promise.all(promises);
|
|
561
|
+
};
|
|
562
|
+
} catch (error) {
|
|
563
|
+
// Best-effort shim; do not break the SW bootstrap on any failure.
|
|
564
|
+
}
|
|
565
|
+
})();
|
|
566
|
+
|
|
567
|
+
(() => {
|
|
568
|
+
"use strict";
|
|
569
|
+
var __webpack_modules__ = ({
|
|
570
|
+
978(__webpack_module__, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
571
|
+
/* import */ var _log_js__rspack_import_0 = __webpack_require__(293);
|
|
572
|
+
/* import */ var _emitter_js__rspack_import_1 = __webpack_require__(305);
|
|
573
|
+
/* import */ var _log_apply_result_js__rspack_import_2 = __webpack_require__(728);
|
|
574
|
+
/*
|
|
575
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
576
|
+
Author Tobias Koppers @sokra
|
|
577
|
+
*/
|
|
578
|
+
/* globals __webpack_hash__ */
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
if (true) {
|
|
585
|
+
/** @type {undefined|string} */
|
|
586
|
+
var lastHash;
|
|
587
|
+
var upToDate = function upToDate() {
|
|
588
|
+
return /** @type {string} */ (lastHash).indexOf(__webpack_require__.h()) >= 0;
|
|
589
|
+
};
|
|
590
|
+
var check = function check() {
|
|
591
|
+
__webpack_module__.hot
|
|
592
|
+
.check(true)
|
|
593
|
+
.then(function (updatedModules) {
|
|
594
|
+
if (!updatedModules) {
|
|
595
|
+
(0,_log_js__rspack_import_0.log)(
|
|
596
|
+
'warning',
|
|
597
|
+
'[HMR] Cannot find update. ' +
|
|
598
|
+
(typeof window !== 'undefined'
|
|
599
|
+
? 'Need to do a full reload!'
|
|
600
|
+
: 'Please reload manually!'),
|
|
601
|
+
);
|
|
602
|
+
(0,_log_js__rspack_import_0.log)(
|
|
603
|
+
'warning',
|
|
604
|
+
'[HMR] (Probably because of restarting the rspack-dev-server)',
|
|
605
|
+
);
|
|
606
|
+
if (typeof window !== 'undefined') {
|
|
607
|
+
window.location.reload();
|
|
608
|
+
}
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
if (!upToDate()) {
|
|
613
|
+
check();
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
(0,_log_apply_result_js__rspack_import_2.logApplyResult)(updatedModules, updatedModules);
|
|
617
|
+
|
|
618
|
+
if (upToDate()) {
|
|
619
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] App is up to date.');
|
|
620
|
+
}
|
|
621
|
+
})
|
|
622
|
+
.catch(function (err) {
|
|
623
|
+
var status = __webpack_module__.hot.status();
|
|
624
|
+
if (['abort', 'fail'].indexOf(status) >= 0) {
|
|
625
|
+
(0,_log_js__rspack_import_0.log)(
|
|
626
|
+
'warning',
|
|
627
|
+
'[HMR] Cannot apply update. ' +
|
|
628
|
+
(typeof window !== 'undefined'
|
|
629
|
+
? 'Need to do a full reload!'
|
|
630
|
+
: 'Please reload manually!'),
|
|
631
|
+
);
|
|
632
|
+
(0,_log_js__rspack_import_0.log)('warning', '[HMR] ' + (0,_log_js__rspack_import_0.formatError)(err));
|
|
633
|
+
if (typeof window !== 'undefined') {
|
|
634
|
+
window.location.reload();
|
|
635
|
+
}
|
|
636
|
+
} else {
|
|
637
|
+
(0,_log_js__rspack_import_0.log)('warning', '[HMR] Update failed: ' + (0,_log_js__rspack_import_0.formatError)(err));
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
};
|
|
641
|
+
_emitter_js__rspack_import_1.emitter.on('webpackHotUpdate', function (currentHash) {
|
|
642
|
+
lastHash = currentHash;
|
|
643
|
+
if (!upToDate() && __webpack_module__.hot.status() === 'idle') {
|
|
644
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] Checking for updates on the server...');
|
|
645
|
+
check();
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] Waiting for update signal from WDS...');
|
|
649
|
+
} else {}
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
},
|
|
653
|
+
305(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
654
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
655
|
+
emitter: () => (emitter)
|
|
656
|
+
});
|
|
657
|
+
function EventEmitter() {
|
|
658
|
+
this.events = {};
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
EventEmitter.prototype.on = function (eventName, callback) {
|
|
662
|
+
if (!this.events[eventName]) {
|
|
663
|
+
this.events[eventName] = [];
|
|
664
|
+
}
|
|
665
|
+
this.events[eventName].push(callback);
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
EventEmitter.prototype.emit = function (eventName) {
|
|
669
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
|
670
|
+
if (this.events[eventName]) {
|
|
671
|
+
this.events[eventName].forEach(function (callback) {
|
|
672
|
+
callback.apply(null, args);
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
var emitter = new EventEmitter();
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
},
|
|
683
|
+
728(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
684
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
685
|
+
logApplyResult: () => (logApplyResult)
|
|
686
|
+
});
|
|
687
|
+
/* import */ var _log_js__rspack_import_0 = __webpack_require__(293);
|
|
688
|
+
/*
|
|
689
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
690
|
+
Author Tobias Koppers @sokra
|
|
691
|
+
*/
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @param {(string | number)[]} updatedModules updated modules
|
|
697
|
+
* @param {(string | number)[] | null} renewedModules renewed modules
|
|
698
|
+
*/
|
|
699
|
+
function logApplyResult(updatedModules, renewedModules) {
|
|
700
|
+
var unacceptedModules = updatedModules.filter(function (moduleId) {
|
|
701
|
+
return renewedModules && renewedModules.indexOf(moduleId) < 0;
|
|
702
|
+
});
|
|
703
|
+
|
|
704
|
+
if (unacceptedModules.length > 0) {
|
|
705
|
+
(0,_log_js__rspack_import_0.log)(
|
|
706
|
+
'warning',
|
|
707
|
+
"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)",
|
|
708
|
+
);
|
|
709
|
+
unacceptedModules.forEach(function (moduleId) {
|
|
710
|
+
(0,_log_js__rspack_import_0.log)('warning', '[HMR] - ' + moduleId);
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
if (!renewedModules || renewedModules.length === 0) {
|
|
715
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] Nothing hot updated.');
|
|
716
|
+
} else {
|
|
717
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] Updated modules:');
|
|
718
|
+
renewedModules.forEach(function (moduleId) {
|
|
719
|
+
if (typeof moduleId === 'string' && moduleId.indexOf('!') !== -1) {
|
|
720
|
+
var parts = moduleId.split('!');
|
|
721
|
+
(0,_log_js__rspack_import_0.groupCollapsed)('info', '[HMR] - ' + parts.pop());
|
|
722
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] - ' + moduleId);
|
|
723
|
+
(0,_log_js__rspack_import_0.groupEnd)('info');
|
|
724
|
+
} else {
|
|
725
|
+
(0,_log_js__rspack_import_0.log)('info', '[HMR] - ' + moduleId);
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
var numberIds = renewedModules.every(function (moduleId) {
|
|
729
|
+
return typeof moduleId === 'number';
|
|
730
|
+
});
|
|
731
|
+
if (numberIds)
|
|
732
|
+
(0,_log_js__rspack_import_0.log)(
|
|
733
|
+
'info',
|
|
734
|
+
'[HMR] Consider using the optimization.moduleIds: "named" for module names.',
|
|
735
|
+
);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
},
|
|
743
|
+
293(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
744
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
745
|
+
formatError: () => (formatError),
|
|
746
|
+
groupCollapsed: () => (groupCollapsed),
|
|
747
|
+
groupEnd: () => (groupEnd),
|
|
748
|
+
log: () => (log)
|
|
749
|
+
});
|
|
750
|
+
/** @typedef {"info" | "warning" | "error"} LogLevel */
|
|
751
|
+
|
|
752
|
+
/** @type {LogLevel} */
|
|
753
|
+
var logLevel = 'info';
|
|
754
|
+
|
|
755
|
+
function dummy() {}
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* @param {LogLevel} level log level
|
|
759
|
+
* @returns {boolean} true, if should log
|
|
760
|
+
*/
|
|
761
|
+
function shouldLog(level) {
|
|
762
|
+
var shouldLog =
|
|
763
|
+
(logLevel === 'info' && level === 'info') ||
|
|
764
|
+
(['info', 'warning'].indexOf(logLevel) >= 0 && level === 'warning') ||
|
|
765
|
+
(['info', 'warning', 'error'].indexOf(logLevel) >= 0 && level === 'error');
|
|
766
|
+
return shouldLog;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @param {(msg?: string) => void} logFn log function
|
|
771
|
+
* @returns {(level: LogLevel, msg?: string) => void} function that logs when log level is sufficient
|
|
772
|
+
*/
|
|
773
|
+
function logGroup(logFn) {
|
|
774
|
+
return function (level, msg) {
|
|
775
|
+
if (shouldLog(level)) {
|
|
776
|
+
logFn(msg);
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* @param {LogLevel} level log level
|
|
783
|
+
* @param {string|Error} msg message
|
|
784
|
+
*/
|
|
785
|
+
function log(level, msg) {
|
|
786
|
+
if (shouldLog(level)) {
|
|
787
|
+
if (level === 'info') {
|
|
788
|
+
console.log(msg);
|
|
789
|
+
} else if (level === 'warning') {
|
|
790
|
+
console.warn(msg);
|
|
791
|
+
} else if (level === 'error') {
|
|
792
|
+
console.error(msg);
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
var group = console.group || dummy;
|
|
798
|
+
var groupCollapsed = console.groupCollapsed || dummy;
|
|
799
|
+
var groupEnd = console.groupEnd || dummy;
|
|
800
|
+
|
|
801
|
+
var group = logGroup(group);
|
|
802
|
+
|
|
803
|
+
var groupCollapsed = logGroup(groupCollapsed);
|
|
804
|
+
|
|
805
|
+
var groupEnd = logGroup(groupEnd);
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* @param {LogLevel} level log level
|
|
809
|
+
*/
|
|
810
|
+
var setLogLevel = function (level) {
|
|
811
|
+
logLevel = level;
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* @param {Error} err error
|
|
816
|
+
* @returns {string} formatted error
|
|
817
|
+
*/
|
|
818
|
+
var formatError = function (err) {
|
|
819
|
+
var message = err.message;
|
|
820
|
+
var stack = err.stack;
|
|
821
|
+
if (!stack) {
|
|
822
|
+
return message;
|
|
823
|
+
} else if (stack.indexOf(message) < 0) {
|
|
824
|
+
return message + '\n' + stack;
|
|
825
|
+
} else {
|
|
826
|
+
return stack;
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
log.group = group;
|
|
831
|
+
log.groupCollapsed = groupCollapsed;
|
|
832
|
+
log.groupEnd = groupEnd;
|
|
833
|
+
log.setLogLevel = setLogLevel;
|
|
834
|
+
log.formatError = formatError;
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
},
|
|
840
|
+
652() {
|
|
841
|
+
try {
|
|
842
|
+
const loc = globalThis?.location;
|
|
843
|
+
if (loc && 'function' != typeof loc.reload) loc.reload = ()=>{};
|
|
844
|
+
} catch {}
|
|
845
|
+
console.log('Minimum Chromium file loaded for reload purposes');
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
},
|
|
849
|
+
|
|
850
|
+
});
|
|
851
|
+
// The module cache
|
|
852
|
+
var __webpack_module_cache__ = {};
|
|
853
|
+
|
|
854
|
+
// The require function
|
|
855
|
+
function __webpack_require__(moduleId) {
|
|
856
|
+
|
|
857
|
+
// Check if module is in cache
|
|
858
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
859
|
+
if (cachedModule !== undefined) {
|
|
860
|
+
return cachedModule.exports;
|
|
861
|
+
}
|
|
862
|
+
// Create a new module (and put it into the cache)
|
|
863
|
+
var module = (__webpack_module_cache__[moduleId] = {
|
|
864
|
+
id: moduleId,
|
|
865
|
+
exports: {}
|
|
866
|
+
});
|
|
867
|
+
// Execute the module function
|
|
868
|
+
|
|
869
|
+
var execOptions = { id: moduleId, module: module, factory: __webpack_modules__[moduleId], require: __webpack_require__ };
|
|
870
|
+
__webpack_require__.i.forEach(function(handler) { handler(execOptions); });
|
|
871
|
+
module = execOptions.module;
|
|
872
|
+
if (!execOptions.factory) {
|
|
873
|
+
console.error("undefined factory", moduleId);
|
|
874
|
+
throw Error("RuntimeError: factory is undefined (" + moduleId + ")");
|
|
875
|
+
}
|
|
876
|
+
execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
|
|
877
|
+
|
|
878
|
+
// Return the exports of the module
|
|
879
|
+
return module.exports;
|
|
880
|
+
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
// expose the modules object (__webpack_modules__)
|
|
884
|
+
__webpack_require__.m = __webpack_modules__;
|
|
885
|
+
|
|
886
|
+
// expose the module cache
|
|
887
|
+
__webpack_require__.c = __webpack_module_cache__;
|
|
888
|
+
|
|
889
|
+
// expose the module execution interceptor
|
|
890
|
+
__webpack_require__.i = [];
|
|
891
|
+
|
|
892
|
+
// WebExtensionBrowserRuntime
|
|
893
|
+
(() => {
|
|
894
|
+
let isChrome, runtime;
|
|
895
|
+
try {
|
|
896
|
+
if (typeof globalThis === "object" && globalThis && typeof globalThis.browser !== "undefined" && typeof globalThis.browser.runtime?.getURL === "function") {
|
|
897
|
+
runtime = globalThis.browser;
|
|
898
|
+
}
|
|
899
|
+
} catch (_) {}
|
|
900
|
+
if (!runtime) {
|
|
901
|
+
try {
|
|
902
|
+
if (typeof globalThis === "object" && globalThis && typeof globalThis.chrome !== "undefined" && typeof globalThis.chrome.runtime?.getURL === "function") {
|
|
903
|
+
isChrome = true;
|
|
904
|
+
runtime = globalThis.chrome;
|
|
905
|
+
}
|
|
906
|
+
} catch (_) {}
|
|
907
|
+
}
|
|
908
|
+
__webpack_require__.webExtRtModern = !isChrome;
|
|
909
|
+
__webpack_require__.webExtRt = runtime || { runtime: null };
|
|
910
|
+
if (!runtime && (typeof self !== "object" || !self.addEventListener)) {
|
|
911
|
+
__webpack_require__.webExtRt = { runtime: { getURL: String } };
|
|
912
|
+
}
|
|
913
|
+
})();
|
|
914
|
+
// webpack/runtime/define_property_getters
|
|
915
|
+
(() => {
|
|
916
|
+
__webpack_require__.d = (exports, definition) => {
|
|
917
|
+
for(var key in definition) {
|
|
918
|
+
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
919
|
+
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
})();
|
|
924
|
+
// webpack/runtime/get_chunk_update_filename
|
|
925
|
+
(() => {
|
|
926
|
+
__webpack_require__.hu = (chunkId) => ('hot/' + chunkId + '.' + __webpack_require__.h() + '.js')
|
|
927
|
+
})();
|
|
928
|
+
// webpack/runtime/get_full_hash
|
|
929
|
+
(() => {
|
|
930
|
+
__webpack_require__.h = () => ("90ac35b1d1dab440")
|
|
931
|
+
})();
|
|
932
|
+
// webpack/runtime/get_main_filename/update manifest
|
|
933
|
+
(() => {
|
|
934
|
+
__webpack_require__.hmrF = function () {
|
|
935
|
+
return "hot/background/service_worker." + __webpack_require__.h() + ".json";
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
})();
|
|
939
|
+
// webpack/runtime/has_own_property
|
|
940
|
+
(() => {
|
|
941
|
+
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
942
|
+
})();
|
|
943
|
+
// webpack/runtime/hot_module_replacement
|
|
944
|
+
(() => {
|
|
945
|
+
var currentModuleData = {};
|
|
946
|
+
var installedModules = __webpack_require__.c;
|
|
947
|
+
|
|
948
|
+
// module and require creation
|
|
949
|
+
var currentChildModule;
|
|
950
|
+
var currentParents = [];
|
|
951
|
+
|
|
952
|
+
// status
|
|
953
|
+
var registeredStatusHandlers = [];
|
|
954
|
+
var currentStatus = "idle";
|
|
955
|
+
|
|
956
|
+
// while downloading
|
|
957
|
+
var blockingPromises = 0;
|
|
958
|
+
var blockingPromisesWaiting = [];
|
|
959
|
+
|
|
960
|
+
// The update info
|
|
961
|
+
var currentUpdateApplyHandlers;
|
|
962
|
+
var queuedInvalidatedModules;
|
|
963
|
+
|
|
964
|
+
__webpack_require__.hmrD = currentModuleData;
|
|
965
|
+
__webpack_require__.i.push(function (options) {
|
|
966
|
+
var module = options.module;
|
|
967
|
+
var require = createRequire(options.require, options.id);
|
|
968
|
+
module.hot = createModuleHotObject(options.id, module);
|
|
969
|
+
module.parents = currentParents;
|
|
970
|
+
module.children = [];
|
|
971
|
+
currentParents = [];
|
|
972
|
+
options.require = require;
|
|
973
|
+
});
|
|
974
|
+
|
|
975
|
+
__webpack_require__.hmrC = {};
|
|
976
|
+
__webpack_require__.hmrI = {};
|
|
977
|
+
|
|
978
|
+
function createRequire(require, moduleId) {
|
|
979
|
+
var me = installedModules[moduleId];
|
|
980
|
+
if (!me) return require;
|
|
981
|
+
var fn = function (request) {
|
|
982
|
+
if (me.hot.active) {
|
|
983
|
+
if (installedModules[request]) {
|
|
984
|
+
var parents = installedModules[request].parents;
|
|
985
|
+
if (parents.indexOf(moduleId) === -1) {
|
|
986
|
+
parents.push(moduleId);
|
|
987
|
+
}
|
|
988
|
+
} else {
|
|
989
|
+
currentParents = [moduleId];
|
|
990
|
+
currentChildModule = request;
|
|
991
|
+
}
|
|
992
|
+
if (me.children.indexOf(request) === -1) {
|
|
993
|
+
me.children.push(request);
|
|
994
|
+
}
|
|
995
|
+
} else {
|
|
996
|
+
console.warn(
|
|
997
|
+
"[HMR] unexpected require(" +
|
|
998
|
+
request +
|
|
999
|
+
") from disposed module " +
|
|
1000
|
+
moduleId
|
|
1001
|
+
);
|
|
1002
|
+
currentParents = [];
|
|
1003
|
+
}
|
|
1004
|
+
return require(request);
|
|
1005
|
+
};
|
|
1006
|
+
var createPropertyDescriptor = function (name) {
|
|
1007
|
+
return {
|
|
1008
|
+
configurable: true,
|
|
1009
|
+
enumerable: true,
|
|
1010
|
+
get: function () {
|
|
1011
|
+
return require[name];
|
|
1012
|
+
},
|
|
1013
|
+
set: function (value) {
|
|
1014
|
+
require[name] = value;
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
for (var name in require) {
|
|
1019
|
+
if (Object.prototype.hasOwnProperty.call(require, name) && name !== "e") {
|
|
1020
|
+
Object.defineProperty(fn, name, createPropertyDescriptor(name));
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
fn.e = function (chunkId, fetchPriority) {
|
|
1025
|
+
return trackBlockingPromise(require.e(chunkId, fetchPriority));
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
return fn;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
function createModuleHotObject(moduleId, me) {
|
|
1032
|
+
var _main = currentChildModule !== moduleId;
|
|
1033
|
+
var hot = {
|
|
1034
|
+
_acceptedDependencies: {},
|
|
1035
|
+
_acceptedErrorHandlers: {},
|
|
1036
|
+
_declinedDependencies: {},
|
|
1037
|
+
_selfAccepted: false,
|
|
1038
|
+
_selfDeclined: false,
|
|
1039
|
+
_selfInvalidated: false,
|
|
1040
|
+
_disposeHandlers: [],
|
|
1041
|
+
_main: _main,
|
|
1042
|
+
_requireSelf: function () {
|
|
1043
|
+
currentParents = me.parents.slice();
|
|
1044
|
+
currentChildModule = _main ? undefined : moduleId;
|
|
1045
|
+
__webpack_require__(moduleId);
|
|
1046
|
+
},
|
|
1047
|
+
active: true,
|
|
1048
|
+
accept: function (dep, callback, errorHandler) {
|
|
1049
|
+
if (dep === undefined) hot._selfAccepted = true;
|
|
1050
|
+
else if (typeof dep === "function") hot._selfAccepted = dep;
|
|
1051
|
+
else if (typeof dep === "object" && dep !== null) {
|
|
1052
|
+
for (var i = 0; i < dep.length; i++) {
|
|
1053
|
+
hot._acceptedDependencies[dep[i]] = callback || function () { };
|
|
1054
|
+
hot._acceptedErrorHandlers[dep[i]] = errorHandler;
|
|
1055
|
+
}
|
|
1056
|
+
} else {
|
|
1057
|
+
hot._acceptedDependencies[dep] = callback || function () { };
|
|
1058
|
+
hot._acceptedErrorHandlers[dep] = errorHandler;
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
decline: function (dep) {
|
|
1062
|
+
if (dep === undefined) hot._selfDeclined = true;
|
|
1063
|
+
else if (typeof dep === "object" && dep !== null)
|
|
1064
|
+
for (var i = 0; i < dep.length; i++)
|
|
1065
|
+
hot._declinedDependencies[dep[i]] = true;
|
|
1066
|
+
else hot._declinedDependencies[dep] = true;
|
|
1067
|
+
},
|
|
1068
|
+
dispose: function (callback) {
|
|
1069
|
+
hot._disposeHandlers.push(callback);
|
|
1070
|
+
},
|
|
1071
|
+
addDisposeHandler: function (callback) {
|
|
1072
|
+
hot._disposeHandlers.push(callback);
|
|
1073
|
+
},
|
|
1074
|
+
removeDisposeHandler: function (callback) {
|
|
1075
|
+
var idx = hot._disposeHandlers.indexOf(callback);
|
|
1076
|
+
if (idx >= 0) hot._disposeHandlers.splice(idx, 1);
|
|
1077
|
+
},
|
|
1078
|
+
invalidate: function () {
|
|
1079
|
+
this._selfInvalidated = true;
|
|
1080
|
+
switch (currentStatus) {
|
|
1081
|
+
case "idle":
|
|
1082
|
+
currentUpdateApplyHandlers = [];
|
|
1083
|
+
Object.keys(__webpack_require__.hmrI).forEach(function (key) {
|
|
1084
|
+
__webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
|
|
1085
|
+
});
|
|
1086
|
+
setStatus("ready");
|
|
1087
|
+
break;
|
|
1088
|
+
case "ready":
|
|
1089
|
+
Object.keys(__webpack_require__.hmrI).forEach(function (key) {
|
|
1090
|
+
__webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
|
|
1091
|
+
});
|
|
1092
|
+
break;
|
|
1093
|
+
case "prepare":
|
|
1094
|
+
case "check":
|
|
1095
|
+
case "dispose":
|
|
1096
|
+
case "apply":
|
|
1097
|
+
(queuedInvalidatedModules = queuedInvalidatedModules || []).push(
|
|
1098
|
+
moduleId
|
|
1099
|
+
);
|
|
1100
|
+
break;
|
|
1101
|
+
default:
|
|
1102
|
+
break;
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
check: hotCheck,
|
|
1106
|
+
apply: hotApply,
|
|
1107
|
+
status: function (l) {
|
|
1108
|
+
if (!l) return currentStatus;
|
|
1109
|
+
registeredStatusHandlers.push(l);
|
|
1110
|
+
},
|
|
1111
|
+
addStatusHandler: function (l) {
|
|
1112
|
+
registeredStatusHandlers.push(l);
|
|
1113
|
+
},
|
|
1114
|
+
removeStatusHandler: function (l) {
|
|
1115
|
+
var idx = registeredStatusHandlers.indexOf(l);
|
|
1116
|
+
if (idx >= 0) registeredStatusHandlers.splice(idx, 1);
|
|
1117
|
+
},
|
|
1118
|
+
data: currentModuleData[moduleId]
|
|
1119
|
+
};
|
|
1120
|
+
currentChildModule = undefined;
|
|
1121
|
+
return hot;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
function setStatus(newStatus) {
|
|
1125
|
+
currentStatus = newStatus;
|
|
1126
|
+
|
|
1127
|
+
var results = [];
|
|
1128
|
+
for (var i = 0; i < registeredStatusHandlers.length; i++)
|
|
1129
|
+
results[i] = registeredStatusHandlers[i].call(null, newStatus);
|
|
1130
|
+
|
|
1131
|
+
return Promise.all(results).then(function () { });
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
function unblock() {
|
|
1135
|
+
if (--blockingPromises === 0) {
|
|
1136
|
+
setStatus("ready").then(function () {
|
|
1137
|
+
if (blockingPromises === 0) {
|
|
1138
|
+
var list = blockingPromisesWaiting;
|
|
1139
|
+
blockingPromisesWaiting = [];
|
|
1140
|
+
for (var i = 0; i < list.length; i++) {
|
|
1141
|
+
list[i]();
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
function trackBlockingPromise(promise) {
|
|
1149
|
+
switch (currentStatus) {
|
|
1150
|
+
case "ready":
|
|
1151
|
+
setStatus("prepare");
|
|
1152
|
+
case "prepare":
|
|
1153
|
+
blockingPromises++;
|
|
1154
|
+
promise.then(unblock, unblock);
|
|
1155
|
+
return promise;
|
|
1156
|
+
default:
|
|
1157
|
+
return promise;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
function waitForBlockingPromises(fn) {
|
|
1162
|
+
if (blockingPromises === 0) return fn();
|
|
1163
|
+
return new Promise(function (resolve) {
|
|
1164
|
+
blockingPromisesWaiting.push(function () {
|
|
1165
|
+
resolve(fn());
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
function hotCheck(applyOnUpdate) {
|
|
1171
|
+
if (currentStatus !== "idle") {
|
|
1172
|
+
throw new Error("check() is only allowed in idle status");
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
return setStatus("check")
|
|
1176
|
+
.then(__webpack_require__.hmrM)
|
|
1177
|
+
.then(function (update) {
|
|
1178
|
+
if (!update) {
|
|
1179
|
+
return setStatus(applyInvalidatedModules() ? "ready" : "idle").then(
|
|
1180
|
+
function () {
|
|
1181
|
+
return null;
|
|
1182
|
+
}
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
return setStatus("prepare").then(function () {
|
|
1187
|
+
var updatedModules = [];
|
|
1188
|
+
currentUpdateApplyHandlers = [];
|
|
1189
|
+
|
|
1190
|
+
return Promise.all(
|
|
1191
|
+
Object.keys(__webpack_require__.hmrC).reduce(function (
|
|
1192
|
+
promises,
|
|
1193
|
+
key
|
|
1194
|
+
) {
|
|
1195
|
+
__webpack_require__.hmrC[key](
|
|
1196
|
+
update.c,
|
|
1197
|
+
update.r,
|
|
1198
|
+
update.m,
|
|
1199
|
+
promises,
|
|
1200
|
+
currentUpdateApplyHandlers,
|
|
1201
|
+
updatedModules
|
|
1202
|
+
);
|
|
1203
|
+
return promises;
|
|
1204
|
+
},
|
|
1205
|
+
[])
|
|
1206
|
+
).then(function () {
|
|
1207
|
+
return waitForBlockingPromises(function () {
|
|
1208
|
+
if (applyOnUpdate) {
|
|
1209
|
+
return internalApply(applyOnUpdate);
|
|
1210
|
+
}
|
|
1211
|
+
return setStatus("ready").then(function () {
|
|
1212
|
+
return updatedModules;
|
|
1213
|
+
});
|
|
1214
|
+
});
|
|
1215
|
+
});
|
|
1216
|
+
});
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
function hotApply(options) {
|
|
1221
|
+
if (currentStatus !== "ready") {
|
|
1222
|
+
return Promise.resolve().then(function () {
|
|
1223
|
+
throw new Error(
|
|
1224
|
+
"apply() is only allowed in ready status (state: " + currentStatus + ")"
|
|
1225
|
+
);
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
return internalApply(options);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
function internalApply(options) {
|
|
1232
|
+
options = options || {};
|
|
1233
|
+
applyInvalidatedModules();
|
|
1234
|
+
var results = currentUpdateApplyHandlers.map(function (handler) {
|
|
1235
|
+
return handler(options);
|
|
1236
|
+
});
|
|
1237
|
+
currentUpdateApplyHandlers = undefined;
|
|
1238
|
+
var errors = results
|
|
1239
|
+
.map(function (r) {
|
|
1240
|
+
return r.error;
|
|
1241
|
+
})
|
|
1242
|
+
.filter(Boolean);
|
|
1243
|
+
|
|
1244
|
+
if (errors.length > 0) {
|
|
1245
|
+
return setStatus("abort").then(function () {
|
|
1246
|
+
throw errors[0];
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
var disposePromise = setStatus("dispose");
|
|
1251
|
+
|
|
1252
|
+
results.forEach(function (result) {
|
|
1253
|
+
if (result.dispose) result.dispose();
|
|
1254
|
+
});
|
|
1255
|
+
|
|
1256
|
+
var applyPromise = setStatus("apply");
|
|
1257
|
+
|
|
1258
|
+
var error;
|
|
1259
|
+
var reportError = function (err) {
|
|
1260
|
+
if (!error) error = err;
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
var outdatedModules = [];
|
|
1264
|
+
results.forEach(function (result) {
|
|
1265
|
+
if (result.apply) {
|
|
1266
|
+
var modules = result.apply(reportError);
|
|
1267
|
+
if (modules) {
|
|
1268
|
+
for (var i = 0; i < modules.length; i++) {
|
|
1269
|
+
outdatedModules.push(modules[i]);
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
|
|
1275
|
+
return Promise.all([disposePromise, applyPromise]).then(function () {
|
|
1276
|
+
if (error) {
|
|
1277
|
+
return setStatus("fail").then(function () {
|
|
1278
|
+
throw error;
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
if (queuedInvalidatedModules) {
|
|
1283
|
+
return internalApply(options).then(function (list) {
|
|
1284
|
+
outdatedModules.forEach(function (moduleId) {
|
|
1285
|
+
if (list.indexOf(moduleId) < 0) list.push(moduleId);
|
|
1286
|
+
});
|
|
1287
|
+
return list;
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
return setStatus("idle").then(function () {
|
|
1292
|
+
return outdatedModules;
|
|
1293
|
+
});
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function applyInvalidatedModules() {
|
|
1298
|
+
if (queuedInvalidatedModules) {
|
|
1299
|
+
if (!currentUpdateApplyHandlers) currentUpdateApplyHandlers = [];
|
|
1300
|
+
Object.keys(__webpack_require__.hmrI).forEach(function (key) {
|
|
1301
|
+
queuedInvalidatedModules.forEach(function (moduleId) {
|
|
1302
|
+
__webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
|
|
1303
|
+
});
|
|
1304
|
+
});
|
|
1305
|
+
queuedInvalidatedModules = undefined;
|
|
1306
|
+
return true;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
})();
|
|
1311
|
+
// webpack/runtime/load_script
|
|
1312
|
+
(() => {
|
|
1313
|
+
var inProgress = {};
|
|
1314
|
+
|
|
1315
|
+
var uniqueName = "@extension-js/theme:";
|
|
1316
|
+
// loadScript function to load a script via script tag
|
|
1317
|
+
__webpack_require__.l = function (url, done, key, chunkId) {
|
|
1318
|
+
if (inProgress[url]) {
|
|
1319
|
+
inProgress[url].push(done);
|
|
1320
|
+
return;
|
|
1321
|
+
}
|
|
1322
|
+
var script, needAttach;
|
|
1323
|
+
if (key !== undefined) {
|
|
1324
|
+
var scripts = document.getElementsByTagName("script");
|
|
1325
|
+
for (var i = 0; i < scripts.length; i++) {
|
|
1326
|
+
var s = scripts[i];
|
|
1327
|
+
if (s.getAttribute("src") == url || s.getAttribute("data-rspack") == uniqueName + key) {
|
|
1328
|
+
script = s;
|
|
1329
|
+
break;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
if (!script) {
|
|
1334
|
+
needAttach = true;
|
|
1335
|
+
script = document.createElement('script');
|
|
1336
|
+
|
|
1337
|
+
script.timeout = 120;
|
|
1338
|
+
if (__webpack_require__.nc) {
|
|
1339
|
+
script.setAttribute("nonce", __webpack_require__.nc);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
script.setAttribute("data-rspack", uniqueName + key);
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
script.src = url;
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
}
|
|
1350
|
+
inProgress[url] = [done];
|
|
1351
|
+
var onScriptComplete = function (prev, event) {
|
|
1352
|
+
script.onerror = script.onload = null;
|
|
1353
|
+
clearTimeout(timeout);
|
|
1354
|
+
var doneFns = inProgress[url];
|
|
1355
|
+
delete inProgress[url];
|
|
1356
|
+
script.parentNode && script.parentNode.removeChild(script);
|
|
1357
|
+
doneFns &&
|
|
1358
|
+
doneFns.forEach(function (fn) {
|
|
1359
|
+
return fn(event);
|
|
1360
|
+
});
|
|
1361
|
+
if (prev) return prev(event);
|
|
1362
|
+
};
|
|
1363
|
+
var timeout = setTimeout(
|
|
1364
|
+
onScriptComplete.bind(null, undefined, {
|
|
1365
|
+
type: 'timeout',
|
|
1366
|
+
target: script
|
|
1367
|
+
}),
|
|
1368
|
+
120000
|
|
1369
|
+
);
|
|
1370
|
+
script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
1371
|
+
script.onload = onScriptComplete.bind(null, script.onload);
|
|
1372
|
+
needAttach && document.head.appendChild(script);
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
})();
|
|
1376
|
+
// webpack/runtime/public_path
|
|
1377
|
+
(() => {
|
|
1378
|
+
__webpack_require__.p = "/";
|
|
1379
|
+
})();
|
|
1380
|
+
// load script
|
|
1381
|
+
(() => {
|
|
1382
|
+
let bug816121warned, isNotIframe;
|
|
1383
|
+
try {
|
|
1384
|
+
isNotIframe = typeof window === "object" ? window.top === window : true;
|
|
1385
|
+
} catch(e) {
|
|
1386
|
+
isNotIframe = false /* CORS error */;
|
|
1387
|
+
}
|
|
1388
|
+
const hasExtensionRuntime = (function(){ try {return ((typeof globalThis === "object" && globalThis && globalThis.browser && globalThis.browser.runtime && typeof globalThis.browser.runtime.sendMessage === "function") || (typeof globalThis === "object" && globalThis && globalThis.chrome && globalThis.chrome.runtime && typeof globalThis.chrome.runtime.sendMessage === "function"));} catch (e) { return false; } })();
|
|
1389
|
+
const classicLoader = (url, done) => {
|
|
1390
|
+
const msg = { type: "WTW_INJECT", file: url };
|
|
1391
|
+
const onError = (e) => {
|
|
1392
|
+
done(Object.assign(e, { type: "missing" }))
|
|
1393
|
+
};
|
|
1394
|
+
try {
|
|
1395
|
+
if (__webpack_require__.webExtRtModern) {
|
|
1396
|
+
__webpack_require__.webExtRt.runtime.sendMessage(msg).then(done, onError);
|
|
1397
|
+
} else {
|
|
1398
|
+
__webpack_require__.webExtRt.runtime.sendMessage(msg, () => {
|
|
1399
|
+
const error = __webpack_require__.webExtRt.runtime.lastError;
|
|
1400
|
+
if (error) onError(error);
|
|
1401
|
+
else done();
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
} catch (e) { onError(e); }
|
|
1405
|
+
};
|
|
1406
|
+
const dynamicImportLoader = (url, done, key, chunkId) => {
|
|
1407
|
+
import(url).then(() => {
|
|
1408
|
+
if (isNotIframe) return done();
|
|
1409
|
+
try {
|
|
1410
|
+
// It's a Chrome bug, if the import() is called in a sandboxed iframe, it _fails_ the script loading but _resolve_ the Promise.
|
|
1411
|
+
// we call __webpack_require__.f.j(chunkId) to check if it is loaded.
|
|
1412
|
+
// if it is, this is a no-op. if it is not, it will throw a TypeError because this function requires 2 parameters.
|
|
1413
|
+
// This call will not trigger the chunk loading because it is already loading.
|
|
1414
|
+
// see https://github.com/awesome-webextension/webpack-target-webextension/issues/41
|
|
1415
|
+
chunkId !== undefined && __webpack_require__.f.j(chunkId);
|
|
1416
|
+
done();
|
|
1417
|
+
}
|
|
1418
|
+
catch (_) {
|
|
1419
|
+
if (!bug816121warned) {
|
|
1420
|
+
console.warn("Chrome bug https://crbug.com/816121 hit.");
|
|
1421
|
+
bug816121warned = true;
|
|
1422
|
+
}
|
|
1423
|
+
return fallbackLoader(url, done, key, chunkId);
|
|
1424
|
+
}
|
|
1425
|
+
}, (e) => {
|
|
1426
|
+
console.warn("Dynamic import loader failed. Using fallback loader (see https://github.com/awesome-webextension/webpack-target-webextension#content-script).", e);
|
|
1427
|
+
fallbackLoader(url, done, key, chunkId);
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
const scriptLoader = (url, done) => {
|
|
1431
|
+
const script = document.createElement('script');
|
|
1432
|
+
script.src = url;
|
|
1433
|
+
script.onload = done;
|
|
1434
|
+
script.onerror = done;
|
|
1435
|
+
document.body.appendChild(script);
|
|
1436
|
+
}
|
|
1437
|
+
const workerLoader = (url, done) => {
|
|
1438
|
+
try {
|
|
1439
|
+
importScripts(url);
|
|
1440
|
+
done();
|
|
1441
|
+
} catch (e) {
|
|
1442
|
+
done(e);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
const isWorker = typeof importScripts === 'function'
|
|
1446
|
+
if (typeof location === 'object' && location.protocol.includes('-extension:')) {
|
|
1447
|
+
__webpack_require__.l = isWorker ? workerLoader : scriptLoader;
|
|
1448
|
+
} else {
|
|
1449
|
+
if (!isWorker && hasExtensionRuntime) __webpack_require__.l = classicLoader;
|
|
1450
|
+
else if (!isWorker) __webpack_require__.l = scriptLoader;
|
|
1451
|
+
}
|
|
1452
|
+
const fallbackLoader = __webpack_require__.l;
|
|
1453
|
+
__webpack_require__.l = dynamicImportLoader;
|
|
1454
|
+
})();
|
|
1455
|
+
// publicPath
|
|
1456
|
+
(() => {
|
|
1457
|
+
var __extjsBase = (typeof globalThis === "object" && globalThis && globalThis.__EXTJS_EXTENSION_BASE__) ? String(globalThis.__EXTJS_EXTENSION_BASE__) : "";
|
|
1458
|
+
if (!__extjsBase && typeof document === "object" && document && document.documentElement) {
|
|
1459
|
+
try { __extjsBase = document.documentElement.getAttribute("data-extjs-extension-base") || ""; } catch(_) { __extjsBase = ""; }
|
|
1460
|
+
}
|
|
1461
|
+
var __extjsRuntimePath = "";
|
|
1462
|
+
if (__webpack_require__.webExtRt && __webpack_require__.webExtRt.runtime && typeof __webpack_require__.webExtRt.runtime.getURL === "function") {
|
|
1463
|
+
try { __extjsRuntimePath = __webpack_require__.webExtRt.runtime.getURL("/"); } catch (_) { __extjsRuntimePath = ""; }
|
|
1464
|
+
}
|
|
1465
|
+
if (__extjsRuntimePath) {
|
|
1466
|
+
__webpack_require__.p = __extjsRuntimePath;
|
|
1467
|
+
} else if (__extjsBase) {
|
|
1468
|
+
__webpack_require__.p = __extjsBase.replace(/\/+$/, "/") + String("/").replace(/^\/+/, "");
|
|
1469
|
+
} else {
|
|
1470
|
+
__webpack_require__.p = "";
|
|
1471
|
+
}
|
|
1472
|
+
if (!__extjsBase && typeof document === "object" && document && document.documentElement) {
|
|
1473
|
+
try {
|
|
1474
|
+
var __extjsRetries = 0;
|
|
1475
|
+
var __extjsUpdateBase = function(){
|
|
1476
|
+
var base = "";
|
|
1477
|
+
try { base = document.documentElement.getAttribute("data-extjs-extension-base") || ""; } catch(_) { base = ""; }
|
|
1478
|
+
if (base) {
|
|
1479
|
+
__webpack_require__.p = base.replace(/\/+$/, "/") + String("/").replace(/^\/+/, "");
|
|
1480
|
+
} else if (__extjsRetries++ < 50) {
|
|
1481
|
+
setTimeout(__extjsUpdateBase, 100);
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
__extjsUpdateBase();
|
|
1485
|
+
} catch (_) {}
|
|
1486
|
+
}
|
|
1487
|
+
})();
|
|
1488
|
+
// webpack/runtime/jsonp_chunk_loading
|
|
1489
|
+
(() => {
|
|
1490
|
+
|
|
1491
|
+
// object to store loaded and loading chunks
|
|
1492
|
+
// undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
1493
|
+
// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
1494
|
+
var installedChunks = __webpack_require__.hmrS_jsonp = __webpack_require__.hmrS_jsonp || {169: 0,};
|
|
1495
|
+
var currentUpdatedModulesList;
|
|
1496
|
+
var waitingUpdateResolves = {};
|
|
1497
|
+
function loadUpdateChunk(chunkId, updatedModulesList) {
|
|
1498
|
+
currentUpdatedModulesList = updatedModulesList;
|
|
1499
|
+
return new Promise((resolve, reject) => {
|
|
1500
|
+
waitingUpdateResolves[chunkId] = resolve;
|
|
1501
|
+
// start update chunk loading
|
|
1502
|
+
var url = __webpack_require__.p + __webpack_require__.hu(chunkId);
|
|
1503
|
+
// create error before stack unwound to get useful stacktrace later
|
|
1504
|
+
var error = new Error();
|
|
1505
|
+
var loadingEnded = (event) => {
|
|
1506
|
+
if (waitingUpdateResolves[chunkId]) {
|
|
1507
|
+
waitingUpdateResolves[chunkId] = undefined;
|
|
1508
|
+
var errorType =
|
|
1509
|
+
event && (event.type === 'load' ? 'missing' : event.type);
|
|
1510
|
+
var realSrc = event && event.target && event.target.src;
|
|
1511
|
+
error.message =
|
|
1512
|
+
'Loading hot update chunk ' +
|
|
1513
|
+
chunkId +
|
|
1514
|
+
' failed.\n(' +
|
|
1515
|
+
errorType +
|
|
1516
|
+
': ' +
|
|
1517
|
+
realSrc +
|
|
1518
|
+
')';
|
|
1519
|
+
error.name = 'ChunkLoadError';
|
|
1520
|
+
error.type = errorType;
|
|
1521
|
+
error.request = realSrc;
|
|
1522
|
+
reject(error);
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
__webpack_require__.l(url, loadingEnded);
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
self["rspackHotUpdate_extension_js_theme"] = (chunkId, moreModules, runtime) => {
|
|
1530
|
+
for (var moduleId in moreModules) {
|
|
1531
|
+
if (__webpack_require__.o(moreModules, moduleId)) {
|
|
1532
|
+
currentUpdate[moduleId] = moreModules[moduleId];
|
|
1533
|
+
if (currentUpdatedModulesList) currentUpdatedModulesList.push(moduleId);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
if (runtime) currentUpdateRuntime.push(runtime);
|
|
1537
|
+
if (waitingUpdateResolves[chunkId]) {
|
|
1538
|
+
waitingUpdateResolves[chunkId]();
|
|
1539
|
+
waitingUpdateResolves[chunkId] = undefined;
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
var currentUpdateChunks;
|
|
1543
|
+
var currentUpdate;
|
|
1544
|
+
var currentUpdateRemovedChunks;
|
|
1545
|
+
var currentUpdateRuntime;
|
|
1546
|
+
function applyHandler(options) {
|
|
1547
|
+
if (__webpack_require__.f) delete __webpack_require__.f.jsonpHmr;
|
|
1548
|
+
currentUpdateChunks = undefined;
|
|
1549
|
+
function getAffectedModuleEffects(updateModuleId) {
|
|
1550
|
+
var outdatedModules = [updateModuleId];
|
|
1551
|
+
var outdatedDependencies = {};
|
|
1552
|
+
var queue = outdatedModules.map(function (id) {
|
|
1553
|
+
return {
|
|
1554
|
+
chain: [id],
|
|
1555
|
+
id: id
|
|
1556
|
+
};
|
|
1557
|
+
});
|
|
1558
|
+
while (queue.length > 0) {
|
|
1559
|
+
var queueItem = queue.pop();
|
|
1560
|
+
var moduleId = queueItem.id;
|
|
1561
|
+
var chain = queueItem.chain;
|
|
1562
|
+
var module = __webpack_require__.c[moduleId];
|
|
1563
|
+
if (
|
|
1564
|
+
!module ||
|
|
1565
|
+
(module.hot._selfAccepted && !module.hot._selfInvalidated)
|
|
1566
|
+
) {
|
|
1567
|
+
continue;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
if (module.hot._selfDeclined) {
|
|
1571
|
+
return {
|
|
1572
|
+
type: "self-declined",
|
|
1573
|
+
chain: chain,
|
|
1574
|
+
moduleId: moduleId
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (module.hot._main) {
|
|
1579
|
+
return {
|
|
1580
|
+
type: "unaccepted",
|
|
1581
|
+
chain: chain,
|
|
1582
|
+
moduleId: moduleId
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
for (var i = 0; i < module.parents.length; i++) {
|
|
1587
|
+
var parentId = module.parents[i];
|
|
1588
|
+
var parent = __webpack_require__.c[parentId];
|
|
1589
|
+
if (!parent) {
|
|
1590
|
+
continue;
|
|
1591
|
+
}
|
|
1592
|
+
if (parent.hot._declinedDependencies[moduleId]) {
|
|
1593
|
+
return {
|
|
1594
|
+
type: "declined",
|
|
1595
|
+
chain: chain.concat([parentId]),
|
|
1596
|
+
moduleId: moduleId,
|
|
1597
|
+
parentId: parentId
|
|
1598
|
+
};
|
|
1599
|
+
}
|
|
1600
|
+
if (outdatedModules.indexOf(parentId) !== -1) {
|
|
1601
|
+
continue;
|
|
1602
|
+
}
|
|
1603
|
+
if (parent.hot._acceptedDependencies[moduleId]) {
|
|
1604
|
+
if (!outdatedDependencies[parentId]) {
|
|
1605
|
+
outdatedDependencies[parentId] = [];
|
|
1606
|
+
}
|
|
1607
|
+
addAllToSet(outdatedDependencies[parentId], [moduleId]);
|
|
1608
|
+
continue;
|
|
1609
|
+
}
|
|
1610
|
+
delete outdatedDependencies[parentId];
|
|
1611
|
+
outdatedModules.push(parentId);
|
|
1612
|
+
queue.push({
|
|
1613
|
+
chain: chain.concat([parentId]),
|
|
1614
|
+
id: parentId
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
return {
|
|
1620
|
+
type: "accepted",
|
|
1621
|
+
moduleId: updateModuleId,
|
|
1622
|
+
outdatedModules: outdatedModules,
|
|
1623
|
+
outdatedDependencies: outdatedDependencies
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
function addAllToSet(a, b) {
|
|
1628
|
+
for (var i = 0; i < b.length; i++) {
|
|
1629
|
+
var item = b[i];
|
|
1630
|
+
if (a.indexOf(item) === -1) a.push(item);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
var outdatedDependencies = {};
|
|
1635
|
+
var outdatedModules = [];
|
|
1636
|
+
var appliedUpdate = {};
|
|
1637
|
+
|
|
1638
|
+
var warnUnexpectedRequire = function warnUnexpectedRequire(module) {
|
|
1639
|
+
console.warn(
|
|
1640
|
+
"[HMR] unexpected require(" + module.id + ") to disposed module"
|
|
1641
|
+
);
|
|
1642
|
+
throw Error("RuntimeError: factory is undefined(" + module.id + ")");
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
for (var moduleId in currentUpdate) {
|
|
1646
|
+
if (__webpack_require__.o(currentUpdate, moduleId)) {
|
|
1647
|
+
var newModuleFactory = currentUpdate[moduleId];
|
|
1648
|
+
var result = newModuleFactory ? getAffectedModuleEffects(moduleId) : {
|
|
1649
|
+
type: "disposed",
|
|
1650
|
+
moduleId: moduleId
|
|
1651
|
+
};
|
|
1652
|
+
var abortError = false;
|
|
1653
|
+
var doApply = false;
|
|
1654
|
+
var doDispose = false;
|
|
1655
|
+
var chainInfo = "";
|
|
1656
|
+
if (result.chain) {
|
|
1657
|
+
chainInfo = "\nUpdate propagation: " + result.chain.join(" -> ");
|
|
1658
|
+
}
|
|
1659
|
+
switch (result.type) {
|
|
1660
|
+
case "self-declined":
|
|
1661
|
+
if (options.onDeclined) options.onDeclined(result);
|
|
1662
|
+
if (!options.ignoreDeclined)
|
|
1663
|
+
abortError = new Error(
|
|
1664
|
+
"Aborted because of self decline: " + result.moduleId + chainInfo
|
|
1665
|
+
);
|
|
1666
|
+
break;
|
|
1667
|
+
case "declined":
|
|
1668
|
+
if (options.onDeclined) options.onDeclined(result);
|
|
1669
|
+
if (!options.ignoreDeclined)
|
|
1670
|
+
abortError = new Error(
|
|
1671
|
+
"Aborted because of declined dependency: " +
|
|
1672
|
+
result.moduleId +
|
|
1673
|
+
" in " +
|
|
1674
|
+
result.parentId +
|
|
1675
|
+
chainInfo
|
|
1676
|
+
);
|
|
1677
|
+
break;
|
|
1678
|
+
case "unaccepted":
|
|
1679
|
+
if (options.onUnaccepted) options.onUnaccepted(result);
|
|
1680
|
+
if (!options.ignoreUnaccepted)
|
|
1681
|
+
abortError = new Error(
|
|
1682
|
+
"Aborted because " + moduleId + " is not accepted" + chainInfo
|
|
1683
|
+
);
|
|
1684
|
+
break;
|
|
1685
|
+
case "accepted":
|
|
1686
|
+
if (options.onAccepted) options.onAccepted(result);
|
|
1687
|
+
doApply = true;
|
|
1688
|
+
break;
|
|
1689
|
+
case "disposed":
|
|
1690
|
+
if (options.onDisposed) options.onDisposed(result);
|
|
1691
|
+
doDispose = true;
|
|
1692
|
+
break;
|
|
1693
|
+
default:
|
|
1694
|
+
throw new Error("Unexception type " + result.type);
|
|
1695
|
+
}
|
|
1696
|
+
if (abortError) {
|
|
1697
|
+
return {
|
|
1698
|
+
error: abortError
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
if (doApply) {
|
|
1702
|
+
appliedUpdate[moduleId] = newModuleFactory;
|
|
1703
|
+
addAllToSet(outdatedModules, result.outdatedModules);
|
|
1704
|
+
for (moduleId in result.outdatedDependencies) {
|
|
1705
|
+
if (__webpack_require__.o(result.outdatedDependencies, moduleId)) {
|
|
1706
|
+
if (!outdatedDependencies[moduleId])
|
|
1707
|
+
outdatedDependencies[moduleId] = [];
|
|
1708
|
+
addAllToSet(
|
|
1709
|
+
outdatedDependencies[moduleId],
|
|
1710
|
+
result.outdatedDependencies[moduleId]
|
|
1711
|
+
);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
if (doDispose) {
|
|
1716
|
+
addAllToSet(outdatedModules, [result.moduleId]);
|
|
1717
|
+
appliedUpdate[moduleId] = warnUnexpectedRequire;
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
currentUpdate = undefined;
|
|
1722
|
+
|
|
1723
|
+
var outdatedSelfAcceptedModules = [];
|
|
1724
|
+
for (var j = 0; j < outdatedModules.length; j++) {
|
|
1725
|
+
var outdatedModuleId = outdatedModules[j];
|
|
1726
|
+
var module = __webpack_require__.c[outdatedModuleId];
|
|
1727
|
+
if (
|
|
1728
|
+
module &&
|
|
1729
|
+
(module.hot._selfAccepted || module.hot._main) &&
|
|
1730
|
+
// removed self-accepted modules should not be required
|
|
1731
|
+
appliedUpdate[outdatedModuleId] !== warnUnexpectedRequire &&
|
|
1732
|
+
// when called invalidate self-accepting is not possible
|
|
1733
|
+
!module.hot._selfInvalidated
|
|
1734
|
+
) {
|
|
1735
|
+
outdatedSelfAcceptedModules.push({
|
|
1736
|
+
module: outdatedModuleId,
|
|
1737
|
+
require: module.hot._requireSelf,
|
|
1738
|
+
errorHandler: module.hot._selfAccepted
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
var moduleOutdatedDependencies;
|
|
1745
|
+
return {
|
|
1746
|
+
dispose: function () {
|
|
1747
|
+
currentUpdateRemovedChunks.forEach(function (chunkId) {
|
|
1748
|
+
delete installedChunks[chunkId];
|
|
1749
|
+
});
|
|
1750
|
+
currentUpdateRemovedChunks = undefined;
|
|
1751
|
+
|
|
1752
|
+
var idx;
|
|
1753
|
+
var queue = outdatedModules.slice();
|
|
1754
|
+
while (queue.length > 0) {
|
|
1755
|
+
var moduleId = queue.pop();
|
|
1756
|
+
var module = __webpack_require__.c[moduleId];
|
|
1757
|
+
if (!module) continue;
|
|
1758
|
+
|
|
1759
|
+
var data = {};
|
|
1760
|
+
|
|
1761
|
+
// Call dispose handlers
|
|
1762
|
+
var disposeHandlers = module.hot._disposeHandlers;
|
|
1763
|
+
|
|
1764
|
+
for (j = 0; j < disposeHandlers.length; j++) {
|
|
1765
|
+
disposeHandlers[j].call(null, data);
|
|
1766
|
+
}
|
|
1767
|
+
__webpack_require__.hmrD[moduleId] = data;
|
|
1768
|
+
|
|
1769
|
+
module.hot.active = false;
|
|
1770
|
+
|
|
1771
|
+
delete __webpack_require__.c[moduleId];
|
|
1772
|
+
|
|
1773
|
+
delete outdatedDependencies[moduleId];
|
|
1774
|
+
|
|
1775
|
+
for (j = 0; j < module.children.length; j++) {
|
|
1776
|
+
var child = __webpack_require__.c[module.children[j]];
|
|
1777
|
+
if (!child) continue;
|
|
1778
|
+
idx = child.parents.indexOf(moduleId);
|
|
1779
|
+
if (idx >= 0) {
|
|
1780
|
+
child.parents.splice(idx, 1);
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
var dependency;
|
|
1786
|
+
for (var outdatedModuleId in outdatedDependencies) {
|
|
1787
|
+
if (__webpack_require__.o(outdatedDependencies, outdatedModuleId)) {
|
|
1788
|
+
module = __webpack_require__.c[outdatedModuleId];
|
|
1789
|
+
if (module) {
|
|
1790
|
+
moduleOutdatedDependencies = outdatedDependencies[outdatedModuleId];
|
|
1791
|
+
for (j = 0; j < moduleOutdatedDependencies.length; j++) {
|
|
1792
|
+
dependency = moduleOutdatedDependencies[j];
|
|
1793
|
+
idx = module.children.indexOf(dependency);
|
|
1794
|
+
if (idx >= 0) module.children.splice(idx, 1);
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
apply: function (reportError) {
|
|
1801
|
+
// insert new code
|
|
1802
|
+
for (var updateModuleId in appliedUpdate) {
|
|
1803
|
+
if (__webpack_require__.o(appliedUpdate, updateModuleId)) {
|
|
1804
|
+
__webpack_require__.m[updateModuleId] = appliedUpdate[updateModuleId];
|
|
1805
|
+
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
// run new runtime modules
|
|
1810
|
+
for (var i = 0; i < currentUpdateRuntime.length; i++) {
|
|
1811
|
+
|
|
1812
|
+
currentUpdateRuntime[i](__webpack_require__);
|
|
1813
|
+
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
// call accept handlers
|
|
1817
|
+
for (var outdatedModuleId in outdatedDependencies) {
|
|
1818
|
+
if (__webpack_require__.o(outdatedDependencies, outdatedModuleId)) {
|
|
1819
|
+
var module = __webpack_require__.c[outdatedModuleId];
|
|
1820
|
+
if (module) {
|
|
1821
|
+
moduleOutdatedDependencies = outdatedDependencies[outdatedModuleId];
|
|
1822
|
+
var callbacks = [];
|
|
1823
|
+
var errorHandlers = [];
|
|
1824
|
+
var dependenciesForCallbacks = [];
|
|
1825
|
+
for (var j = 0; j < moduleOutdatedDependencies.length; j++) {
|
|
1826
|
+
var dependency = moduleOutdatedDependencies[j];
|
|
1827
|
+
var acceptCallback = module.hot._acceptedDependencies[dependency];
|
|
1828
|
+
var errorHandler = module.hot._acceptedErrorHandlers[dependency];
|
|
1829
|
+
if (acceptCallback) {
|
|
1830
|
+
if (callbacks.indexOf(acceptCallback) !== -1) continue;
|
|
1831
|
+
callbacks.push(acceptCallback);
|
|
1832
|
+
errorHandlers.push(errorHandler);
|
|
1833
|
+
|
|
1834
|
+
dependenciesForCallbacks.push(dependency);
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
for (var k = 0; k < callbacks.length; k++) {
|
|
1838
|
+
try {
|
|
1839
|
+
callbacks[k].call(null, moduleOutdatedDependencies);
|
|
1840
|
+
} catch (err) {
|
|
1841
|
+
if (typeof errorHandlers[k] === "function") {
|
|
1842
|
+
try {
|
|
1843
|
+
errorHandlers[k](err, {
|
|
1844
|
+
moduleId: outdatedModuleId,
|
|
1845
|
+
dependencyId: dependenciesForCallbacks[k]
|
|
1846
|
+
});
|
|
1847
|
+
} catch (err2) {
|
|
1848
|
+
if (options.onErrored) {
|
|
1849
|
+
options.onErrored({
|
|
1850
|
+
type: "accept-error-handler-errored",
|
|
1851
|
+
moduleId: outdatedModuleId,
|
|
1852
|
+
dependencyId: dependenciesForCallbacks[k],
|
|
1853
|
+
error: err2,
|
|
1854
|
+
originalError: err
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
if (!options.ignoreErrored) {
|
|
1858
|
+
reportError(err2);
|
|
1859
|
+
reportError(err);
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
} else {
|
|
1863
|
+
if (options.onErrored) {
|
|
1864
|
+
options.onErrored({
|
|
1865
|
+
type: "accept-errored",
|
|
1866
|
+
moduleId: outdatedModuleId,
|
|
1867
|
+
dependencyId: dependenciesForCallbacks[k],
|
|
1868
|
+
error: err
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
if (!options.ignoreErrored) {
|
|
1872
|
+
reportError(err);
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
// Load self accepted modules
|
|
1882
|
+
for (var o = 0; o < outdatedSelfAcceptedModules.length; o++) {
|
|
1883
|
+
var item = outdatedSelfAcceptedModules[o];
|
|
1884
|
+
var moduleId = item.module;
|
|
1885
|
+
try {
|
|
1886
|
+
item.require(moduleId);
|
|
1887
|
+
} catch (err) {
|
|
1888
|
+
if (typeof item.errorHandler === "function") {
|
|
1889
|
+
try {
|
|
1890
|
+
item.errorHandler(err, {
|
|
1891
|
+
moduleId: moduleId,
|
|
1892
|
+
module: __webpack_require__.c[moduleId]
|
|
1893
|
+
});
|
|
1894
|
+
} catch (err1) {
|
|
1895
|
+
if (options.onErrored) {
|
|
1896
|
+
options.onErrored({
|
|
1897
|
+
type: "self-accept-error-handler-errored",
|
|
1898
|
+
moduleId: moduleId,
|
|
1899
|
+
error: err1,
|
|
1900
|
+
originalError: err
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
if (!options.ignoreErrored) {
|
|
1904
|
+
reportError(err1);
|
|
1905
|
+
reportError(err);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
} else {
|
|
1909
|
+
if (options.onErrored) {
|
|
1910
|
+
options.onErrored({
|
|
1911
|
+
type: "self-accept-errored",
|
|
1912
|
+
moduleId: moduleId,
|
|
1913
|
+
error: err
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
if (!options.ignoreErrored) {
|
|
1917
|
+
reportError(err);
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
return outdatedModules;
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
__webpack_require__.hmrI.jsonp = function (moduleId, applyHandlers) {
|
|
1929
|
+
if (!currentUpdate) {
|
|
1930
|
+
currentUpdate = {};
|
|
1931
|
+
currentUpdateRuntime = [];
|
|
1932
|
+
currentUpdateRemovedChunks = [];
|
|
1933
|
+
applyHandlers.push(applyHandler);
|
|
1934
|
+
}
|
|
1935
|
+
if (!__webpack_require__.o(currentUpdate, moduleId)) {
|
|
1936
|
+
currentUpdate[moduleId] = __webpack_require__.m[moduleId];
|
|
1937
|
+
}
|
|
1938
|
+
};
|
|
1939
|
+
|
|
1940
|
+
__webpack_require__.hmrC.jsonp = function (
|
|
1941
|
+
chunkIds,
|
|
1942
|
+
removedChunks,
|
|
1943
|
+
removedModules,
|
|
1944
|
+
promises,
|
|
1945
|
+
applyHandlers,
|
|
1946
|
+
updatedModulesList
|
|
1947
|
+
) {
|
|
1948
|
+
applyHandlers.push(applyHandler);
|
|
1949
|
+
currentUpdateChunks = {};
|
|
1950
|
+
currentUpdateRemovedChunks = removedChunks;
|
|
1951
|
+
currentUpdate = removedModules.reduce(function (obj, key) {
|
|
1952
|
+
obj[key] = false;
|
|
1953
|
+
return obj;
|
|
1954
|
+
}, {});
|
|
1955
|
+
currentUpdateRuntime = [];
|
|
1956
|
+
chunkIds.forEach(function (chunkId) {
|
|
1957
|
+
if (
|
|
1958
|
+
__webpack_require__.o(installedChunks, chunkId) &&
|
|
1959
|
+
installedChunks[chunkId] !== undefined
|
|
1960
|
+
) {
|
|
1961
|
+
promises.push(loadUpdateChunk(chunkId, updatedModulesList));
|
|
1962
|
+
currentUpdateChunks[chunkId] = true;
|
|
1963
|
+
} else {
|
|
1964
|
+
currentUpdateChunks[chunkId] = false;
|
|
1965
|
+
}
|
|
1966
|
+
});
|
|
1967
|
+
if (__webpack_require__.f) {
|
|
1968
|
+
__webpack_require__.f.jsonpHmr = function (chunkId, promises) {
|
|
1969
|
+
if (
|
|
1970
|
+
currentUpdateChunks &&
|
|
1971
|
+
__webpack_require__.o(currentUpdateChunks, chunkId) &&
|
|
1972
|
+
!currentUpdateChunks[chunkId]
|
|
1973
|
+
) {
|
|
1974
|
+
promises.push(loadUpdateChunk(chunkId));
|
|
1975
|
+
currentUpdateChunks[chunkId] = true;
|
|
1976
|
+
}
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
};
|
|
1980
|
+
__webpack_require__.hmrM = () => {
|
|
1981
|
+
if (typeof fetch === "undefined")
|
|
1982
|
+
throw new Error("No browser support: need fetch API");
|
|
1983
|
+
return fetch(__webpack_require__.p + __webpack_require__.hmrF()).then(
|
|
1984
|
+
(response) => {
|
|
1985
|
+
if (response.status === 404) return; // no update available
|
|
1986
|
+
if (!response.ok)
|
|
1987
|
+
throw new Error(
|
|
1988
|
+
"Failed to fetch update manifest " + response.statusText
|
|
1989
|
+
);
|
|
1990
|
+
return response.json();
|
|
1991
|
+
}
|
|
1992
|
+
);
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
})();
|
|
1996
|
+
// module factories are used so entry inlining is disabled
|
|
1997
|
+
// startup
|
|
1998
|
+
// Load entry module and return exports
|
|
1999
|
+
__webpack_require__(978);
|
|
2000
|
+
var __webpack_exports__ = __webpack_require__(652);
|
|
2001
|
+
})()
|
|
2002
|
+
;
|
|
2003
|
+
//# sourceMappingURL=service_worker.js.map
|