A price as the supplier lists it. Kept in the native currency, so a change in exchange rate can't look like a drop.
One price that went down.
A watched product.
The result of comparing fresh prices with an alert's last known ones.
Whether a storage key holds a price alert, for change listeners.
Reads every price alert.
Starts watching a product. Storage is called before anything is awaited, so the write survives the popup closing right after.
Applies changes to an alert, unless it was removed in the meantime.
Picks the alerts with a drop the user hasn't seen.
Marks products' latest drops as seen, so the badge stops counting them.
Stops watching products.
The price alert settings, with defaults and limits applied.
Collects a product's prices by price-history series: each size, plus the headline when no size has its price. Sizes that can't be told apart are left out, since their order may change.
How far a price went down.
Compares fresh prices with an alert's last known ones.
The price alert watchlist, and the rules for what counts as a price drop. Price changes themselves are logged in the price history; an alert only remembers the latest prices.