@mark1russell7/guidebook-preparedness 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["POWER"],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/topics.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"sourcesContent":["// The sources of the preparedness content. This list is shared by all the add-ons of the content. Add a source at the end, and do not change an id.\n// The sources of the steps are pages of US federal agencies, so their text is in the US public domain (17 U.S.C. 105).\n// The sources of the bundles are open wikis under a share-alike license.\n\nimport type { Source } from \"@mark1russell7/guidebook\";\n\n/** The date of the last check of the sources against their pages. */\nexport const CHECKED = \"2026-11-21\";\n\nconst federal = (id: string, by: string, title: string, url: string): Source => ({ id, title, url, license: \"us-public-domain\", checked: CHECKED, by });\n\n/** The sources of the content, each with its id, its title, its address and the date of its last check. */\nexport const SOURCES: readonly Source[] = [\n federal(\"ready-winter\", \"Ready.gov\", \"Winter Weather\", \"https://www.ready.gov/winter-weather\"),\n federal(\"ready-hurricanes\", \"Ready.gov\", \"Hurricanes\", \"https://www.ready.gov/hurricanes\"),\n federal(\"ready-floods\", \"Ready.gov\", \"Floods\", \"https://www.ready.gov/floods\"),\n federal(\"ready-heat\", \"Ready.gov\", \"Extreme Heat\", \"https://www.ready.gov/heat\"),\n federal(\"ready-tornadoes\", \"Ready.gov\", \"Tornadoes\", \"https://www.ready.gov/tornadoes\"),\n federal(\"ready-earthquakes\", \"Ready.gov\", \"Earthquakes\", \"https://www.ready.gov/earthquakes\"),\n federal(\"ready-fire\", \"Ready.gov\", \"Home Fires\", \"https://www.ready.gov/home-fires\"),\n federal(\"ready-wildfires\", \"Ready.gov\", \"Wildfires\", \"https://www.ready.gov/wildfires\"),\n federal(\"ready-hazmat\", \"Ready.gov\", \"Chemicals and Hazardous Materials Incidents\", \"https://www.ready.gov/hazmat\"),\n federal(\"ready-radiation\", \"Ready.gov\", \"Radiation Emergencies\", \"https://www.ready.gov/radiation\"),\n federal(\"ready-pandemic\", \"Ready.gov\", \"Pandemics\", \"https://www.ready.gov/pandemic\"),\n federal(\"ready-evacuation\", \"Ready.gov\", \"Evacuation\", \"https://www.ready.gov/evacuation\"),\n federal(\"ready-power\", \"Ready.gov\", \"Power Outages\", \"https://www.ready.gov/power-outages\"),\n federal(\"ready-water\", \"Ready.gov\", \"Water\", \"https://www.ready.gov/water\"),\n federal(\"ready-kit\", \"Ready.gov\", \"Build a Kit\", \"https://www.ready.gov/kit\"),\n federal(\"ready-safety\", \"Ready.gov\", \"Safety Skills\", \"https://www.ready.gov/safety-skills\"),\n federal(\"cdc-co\", \"CDC\", \"Carbon Monoxide Poisoning Basics\", \"https://www.cdc.gov/carbon-monoxide/about/index.html\"),\n federal(\"cdc-water\", \"CDC\", \"How to Make Water Safe in an Emergency\", \"https://www.cdc.gov/water-emergency/about/index.html\"),\n federal(\"fda-drugs\", \"FDA\", \"Safe Drug Use After a Natural Disaster\", \"https://www.fda.gov/drugs/emergency-preparedness-drugs/safe-drug-use-after-natural-disaster\"),\n // The text of the Wikimedia projects is CC BY-SA 4.0 (Terms of Use, section 7, in effect from 2023-06-07).\n { id: \"wikipedia-en\", title: \"Wikipedia, the English edition\", url: \"https://en.wikipedia.org/\", license: \"cc-by-sa-4.0\", checked: CHECKED, by: \"Wikipedia contributors\" },\n { id: \"wikibooks-en\", title: \"Wikibooks, the English edition\", url: \"https://en.wikibooks.org/\", license: \"cc-by-sa-4.0\", checked: CHECKED, by: \"Wikibooks contributors\" },\n // The page Appropedia:Intellectual_property says that the content \"defaults to\" CC BY-SA 4.0. Its data table says 3.0. The two permit a bundle.\n { id: \"appropedia\", title: \"Appropedia\", url: \"https://www.appropedia.org/\", license: \"cc-by-sa-4.0\", checked: CHECKED, by: \"Appropedia contributors\" },\n // The footer of each page of energypedia gives CC BY-SA 4.0.\n { id: \"energypedia\", title: \"energypedia\", url: \"https://energypedia.info/\", license: \"cc-by-sa-4.0\", checked: CHECKED, by: \"energypedia contributors\" },\n federal(\"cdc-heart\", \"CDC\", \"About Heart Attack Symptoms, Risk, and Recovery\", \"https://www.cdc.gov/heart-disease/about/heart-attack.html\"),\n federal(\"cdc-stroke\", \"CDC\", \"Signs and Symptoms of Stroke\", \"https://www.cdc.gov/stroke/signs-symptoms/index.html\"),\n // The data dump of Stack Exchange, Inc. on archive.org gives CC BY-SA 4.0 for all user content of the network.\n // A use shows the network as the source, links each question, and shows and links the name of each author.\n { id: \"stackexchange\", title: \"The Stack Exchange network\", url: \"https://archive.org/details/stackexchange\", license: \"cc-by-sa-4.0\", checked: CHECKED, by: \"Stack Exchange contributors\" },\n // Backblaze gives the failure rates of the drives of its data centers. The units cite each rate as a fact, so the license permits the use.\n { id: \"backblaze-hdd-2026q2\", title: \"Backblaze Drive Stats for Q2 2026\", url: \"https://www.backblaze.com/blog/backblaze-drive-stats-for-q2-2026/\", license: \"all-rights-reserved\", checked: CHECKED, by: \"Backblaze\" },\n { id: \"backblaze-ssd-2023\", title: \"SSD Edition: 2023 Drive Stats Mid-Year Review\", url: \"https://www.backblaze.com/blog/ssd-edition-2023-mid-year-drive-stats-review/\", license: \"all-rights-reserved\", checked: CHECKED, by: \"Backblaze\" },\n];\n","// The steps of the 12 cases of v1, the 2 more cases and the 6 cuts. Each step is in the words of the guidebook, and each step cites the page that tells it.\n// The steps are full from `ready` to `P3`. `P4` and `P5` are an outline. Each cell with no step has a marked gap in `gaps.ts`.\n\nimport type { Phase, Step } from \"@mark1russell7/guidebook-plans\";\n\n/** One row of a key: the phase, a short name, the action, the sources and the needs that the step protects. */\ntype Row = readonly [phase: Phase, name: string, action: string, sources: readonly string[], needs?: readonly string[]];\n\n/** This function makes the steps of a key from its rows. The order of a step is its position among the rows of its phase. */\nfunction stepsOf(on: string, rows: readonly Row[]): Step[] {\n const count = new Map<Phase, number>();\n return rows.map(([phase, name, action, sources, needs = []]) => {\n const order = (count.get(phase) ?? 0) + 1;\n count.set(phase, order);\n return { id: `${on}.${phase}.${name}`, on, phase, needs, do: action, order, sources };\n });\n}\n\nconst DRINK = \"hydration.drink\";\nconst FOOD = \"food.energy\";\nconst MEDICINE = \"health.medicine\";\nconst POWER = \"power.electric\";\n\n/** The outline of `P4` and `P5` that each case shares: the kit after the event. */\nconst RECOVERY: readonly Row[] = [\n [\"P4\", \"restock\", \"Replace the items of the kit that you used, and the items that are past their dates.\", [\"ready-kit\"], [DRINK, FOOD, MEDICINE]],\n [\"P5\", \"review\", \"Each year, examine the needs of your household, and change the kit to agree with them.\", [\"ready-kit\"]],\n];\n\n/**\n * The evacuation steps that each case with an evacuation shares. An evacuation is a set of steps of a case, not a case.\n */\nconst EVACUATION: readonly Row[] = [\n [\"ready\", \"evac-places\", \"Choose several places to go in different directions, for example the home of a friend or a motel.\", [\"ready-evacuation\"]],\n [\"ready\", \"evac-pets\", \"Find a place that accepts pets. Most public shelters accept only service animals.\", [\"ready-evacuation\"]],\n [\"ready\", \"evac-go-bag\", \"Prepare a go-bag that you can carry on foot or on public transport.\", [\"ready-evacuation\"], [DRINK, FOOD, MEDICINE]],\n [\"ready\", \"evac-half-tank\", \"Keep the fuel tank of the car at least half full.\", [\"ready-evacuation\"]],\n [\"ready\", \"evac-no-car\", \"If you have no car, make a plan with family, friends or local emergency management.\", [\"ready-evacuation\"]],\n [\"warned\", \"evac-early\", \"Leave early, so that the weather does not trap you.\", [\"ready-evacuation\"]],\n [\"P0\", \"evac-kit\", \"Take your emergency kit and your pets.\", [\"ready-evacuation\"], [DRINK, FOOD, MEDICINE]],\n [\"P0\", \"evac-lock\", \"Close and lock the doors and windows.\", [\"ready-evacuation\"]],\n [\"P0\", \"evac-utilities\", \"If officials tell you to, turn off the water, gas and electricity before you go.\", [\"ready-evacuation\"]],\n [\"P0\", \"evac-note\", \"Leave a note that tells when you left and where you will go.\", [\"ready-evacuation\"]],\n [\"P0\", \"evac-neighbors\", \"Ask your neighbors if they need a ride.\", [\"ready-evacuation\"]],\n [\"P1\", \"evac-routes\", \"Use the recommended routes. Do not take shortcuts.\", [\"ready-evacuation\"]],\n [\"P1\", \"evac-hazards\", \"On the road, look for washed-out roads and fallen power lines.\", [\"ready-evacuation\"]],\n [\"P2\", \"evac-check\", \"Before you travel back, speak to the local officials where you stay and at home.\", [\"ready-evacuation\"]],\n [\"P2\", \"evac-tell\", \"Tell your friends and family when you leave and when you arrive.\", [\"ready-evacuation\"]],\n [\"P3\", \"evac-debris\", \"Do not go back before the debris is clear.\", [\"ready-evacuation\"]],\n [\"P3\", \"evac-lines\", \"Stay away from fallen power lines, and tell the power company about them.\", [\"ready-evacuation\"]],\n];\n\n/** The steps of the cases. A case is a kind of event. */\nexport const CASE_STEPS: readonly Step[] = [\n ...stepsOf(\"met.winter.storm\", [\n [\"ready\", \"supplies\", \"Get supplies for several days at home with no power. Keep extra batteries for the radio and the lights.\", [\"ready-winter\"], [FOOD, POWER]],\n [\"ready\", \"alarms\", \"Install smoke alarms and carbon monoxide alarms with battery backup, and test them.\", [\"ready-winter\"]],\n [\"ready\", \"car-kit\", \"Put a kit in the car: jumper cables, sand, a flashlight, warm clothes, blankets, water and snacks.\", [\"ready-winter\"], [DRINK, FOOD]],\n [\"ready\", \"pipes\", \"Insulate the house, and learn how to prevent frozen water pipes.\", [\"ready-winter\"]],\n [\"warned\", \"shelter\", \"When a winter storm warning comes, go to a shelter immediately.\", [\"ready-winter\"]],\n [\"warned\", \"fuel\", \"Keep the fuel tank of the car full.\", [\"ready-winter\"]],\n [\"P0\", \"roads\", \"Stay off the roads. If the storm traps you in the car, stay in the car.\", [\"ready-winter\"]],\n [\"P1\", \"outside\", \"Limit the time outside, and wear layers of clothes.\", [\"ready-winter\"]],\n [\"P1\", \"shovel\", \"Do not work too hard when you remove snow or walk in snow.\", [\"ready-winter\"]],\n [\"P2\", \"frostbite\", \"For frostbite, go to a warm room and put the skin in warm water. Do not rub it.\", [\"ready-winter\"]],\n [\"P2\", \"hypothermia\", \"A body temperature below 95 °F is an emergency. Warm the chest, neck, head and groin first.\", [\"ready-winter\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"met.tropical.hurricane\", [\n [\"ready\", \"route\", \"Learn your evacuation route, practice it with your household and pets, and know where you will stay.\", [\"ready-hurricanes\"]],\n [\"ready\", \"papers\", \"Keep copies of your ID and insurance papers in a digital store with a password.\", [\"ready-hurricanes\"]],\n [\"ready\", \"gutters\", \"Clear the drains and gutters, and think about shutters for the windows.\", [\"ready-hurricanes\"]],\n [\"warned\", \"furniture\", \"Bring the outdoor furniture inside.\", [\"ready-hurricanes\"]],\n [\"warned\", \"neighbors\", \"Check on your neighbors, older adults and persons who need help.\", [\"ready-hurricanes\"]],\n [\"P0\", \"evacuate\", \"If you are in a mandatory evacuation zone and officials tell you to go, go immediately.\", [\"ready-hurricanes\"]],\n [\"P0\", \"wind\", \"For high winds, go to a storm shelter or to an interior room.\", [\"ready-hurricanes\"]],\n [\"P1\", \"high\", \"If a flood traps you, go to the highest level. Do not go into a closed attic.\", [\"ready-hurricanes\"]],\n [\"P1\", \"water\", \"Do not walk, swim or drive through flood water. Six inches of moving water can knock you down.\", [\"ready-hurricanes\"]],\n [\"P2\", \"electric\", \"Do not touch wet electrical equipment. If it is safe, turn off the power at the main breaker.\", [\"ready-hurricanes\"]],\n [\"P2\", \"photos\", \"Make photos of the damage, and speak to your insurance company.\", [\"ready-hurricanes\"]],\n [\"P3\", \"mold\", \"Wear protective clothes and a mask when you clean mold or debris. Do not let children help.\", [\"ready-hurricanes\"]],\n ...EVACUATION,\n ...RECOVERY,\n ]),\n ...stepsOf(\"met.flood\", [\n [\"ready\", \"risk\", \"Find your flood risk on the FEMA Flood Map Service Center.\", [\"ready-floods\"]],\n [\"ready\", \"insurance\", \"Buy flood insurance well before a flood. A new policy can need up to 30 days to start.\", [\"ready-floods\"]],\n [\"ready\", \"papers\", \"Keep your papers in a waterproof container, and make digital copies with a password.\", [\"ready-floods\"]],\n [\"ready\", \"valuables\", \"Move valuable items to higher levels, and clear the drains and gutters.\", [\"ready-floods\"]],\n [\"warned\", \"shelter\", \"When a flood warning comes, go to a safe shelter immediately.\", [\"ready-floods\"]],\n [\"warned\", \"bridges\", \"Stay off bridges over fast-moving water.\", [\"ready-floods\"]],\n [\"P0\", \"evacuate\", \"If officials tell you to evacuate, go immediately. Do not drive around barricades.\", [\"ready-floods\"]],\n [\"P0\", \"water\", \"Do not walk, swim or drive through flood water. One foot of moving water can move a car.\", [\"ready-floods\"]],\n [\"P1\", \"car\", \"If fast water holds your car, stay inside. If water comes into the car, go onto the roof.\", [\"ready-floods\"]],\n [\"P1\", \"building\", \"If a building traps you, go to the highest level. Go onto the roof only if necessary.\", [\"ready-floods\"]],\n [\"P2\", \"return\", \"Go back home only when the authorities tell you that it is safe.\", [\"ready-floods\"]],\n [\"P2\", \"electric\", \"Do not touch wet electrical equipment, and do not stand in water near it.\", [\"ready-floods\"]],\n [\"P2\", \"animals\", \"Look for snakes and other animals in the water and near it.\", [\"ready-floods\"]],\n [\"P3\", \"clean\", \"When you clean, wear heavy gloves, boots and protective clothes. Wear a mask near mold.\", [\"ready-floods\"]],\n [\"P3\", \"mold\", \"Keep persons with asthma, lung disease or a weak immune system out of buildings with mold.\", [\"ready-floods\"]],\n ...EVACUATION,\n ...RECOVERY,\n ]),\n ...stepsOf(\"met.heat.extreme\", [\n [\"ready\", \"signs\", \"Learn the signs of heat illness.\", [\"ready-heat\"]],\n [\"ready\", \"cool-places\", \"Find the cool places near you, for example libraries, or ask the local health department.\", [\"ready-heat\"]],\n [\"ready\", \"windows\", \"Cover the windows with drapes or shades, and seal the doors and windows against air.\", [\"ready-heat\"]],\n [\"ready\", \"fans\", \"Do not use a fan as your main cooling. A fan does not decrease body temperature.\", [\"ready-heat\"]],\n [\"ready\", \"liheap\", \"If you cannot pay for cooling, ask the LIHEAP program for help.\", [\"ready-heat\"]],\n [\"P0\", \"car\", \"Do not leave a person or a pet in a closed car on a warm day at any time.\", [\"ready-heat\"]],\n [\"P1\", \"cooling\", \"If you have no air conditioning, go to a cooling center. Take cool showers or baths.\", [\"ready-heat\"]],\n [\"P1\", \"fluids\", \"Wear loose, light clothes of a light color, and drink a lot of fluids.\", [\"ready-heat\"], [DRINK]],\n [\"P1\", \"work\", \"Do not do hard work outside in the heat of midday.\", [\"ready-heat\"]],\n [\"P1\", \"check\", \"Check on your family, older adults and neighbors.\", [\"ready-heat\"]],\n [\"P2\", \"stroke\", \"A body temperature above 103 °F with hot, dry skin is heat stroke. Call 9-1-1 immediately.\", [\"ready-heat\"]],\n [\"P2\", \"stroke-aid\", \"For heat stroke, move the person to shade, and put cold, wet cloths on the head, neck, armpits and groin.\", [\"ready-heat\"]],\n [\"P2\", \"cramps\", \"For heat cramps, go to a cooler place and drink water. Call a doctor after one hour with no improvement.\", [\"ready-heat\"], [DRINK]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"met.tornado\", [\n [\"ready\", \"shelter\", \"Find a safe shelter: a safe room, or a small interior room with no windows on the lowest level.\", [\"ready-tornadoes\"]],\n [\"ready\", \"practice\", \"Practice the route to the shelter with your household and pets.\", [\"ready-tornadoes\"]],\n [\"ready\", \"signs\", \"Learn the signs: a turning funnel cloud, a cloud of debris, or a loud roar.\", [\"ready-tornadoes\"]],\n [\"ready\", \"sirens\", \"Learn the sounds of the sirens in your area.\", [\"ready-tornadoes\"]],\n [\"warned\", \"shelter\", \"When a tornado warning comes, go to your safe shelter immediately.\", [\"ready-tornadoes\"]],\n [\"warned\", \"walls\", \"Stay away from windows, doors and outside walls.\", [\"ready-tornadoes\"]],\n [\"P0\", \"cover\", \"Cover your head and neck with your arms, and put blankets around you or on you.\", [\"ready-tornadoes\"]],\n [\"P0\", \"car\", \"In a car that cannot drive away, park, keep the belt on, and put your head below the windows.\", [\"ready-tornadoes\"]],\n [\"P1\", \"lines\", \"Stay away from fallen power lines and broken utility lines.\", [\"ready-tornadoes\"]],\n [\"P1\", \"listen\", \"Continue to listen to the weather radio and to the local authorities.\", [\"ready-tornadoes\"]],\n [\"P2\", \"clean\", \"When you clean, wear thick-soled shoes, long pants, work gloves and a mask.\", [\"ready-tornadoes\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"geo.earthquake\", [\n [\"ready\", \"drill\", \"Practice Drop, Cover and Hold On with your household.\", [\"ready-earthquakes\"]],\n [\"ready\", \"secure\", \"Attach heavy items to the walls, and put heavy and breakable items on low shelves.\", [\"ready-earthquakes\"]],\n [\"ready\", \"alerts\", \"Sign up for the earthquake alerts of USGS and ShakeAlert.\", [\"ready-earthquakes\"]],\n [\"ready\", \"insurance\", \"A standard home insurance policy does not include earthquakes. Think about earthquake insurance.\", [\"ready-earthquakes\"]],\n [\"P0\", \"drop\", \"Drop to your hands and knees, cover your head and neck, and hold on until the shaking stops.\", [\"ready-earthquakes\"]],\n [\"P0\", \"inside\", \"If you are inside, stay inside. Do not run outside, and do not go to a doorway.\", [\"ready-earthquakes\"]],\n [\"P0\", \"bed\", \"In bed, turn face down, and cover your head and neck with a pillow.\", [\"ready-earthquakes\"]],\n [\"P0\", \"car\", \"In a car, pull over, stop, and set the parking brake.\", [\"ready-earthquakes\"]],\n [\"P0\", \"tsunami\", \"In a tsunami area, go inland or to high ground immediately after the shaking stops.\", [\"ready-earthquakes\"]],\n [\"P1\", \"damaged\", \"If the building has damage, go outside and move away from it quickly.\", [\"ready-earthquakes\"]],\n [\"P1\", \"trapped\", \"If you are trapped, send a text, or hit a pipe or a wall. Use a whistle, not shouts.\", [\"ready-earthquakes\"]],\n [\"P1\", \"aftershock\", \"Expect aftershocks. When one comes, drop, cover and hold on.\", [\"ready-earthquakes\"]],\n [\"P2\", \"enter\", \"Do not go into damaged buildings.\", [\"ready-earthquakes\"]],\n [\"P3\", \"clean\", \"When you clean, wear long sleeves, long pants, work gloves and thick-soled shoes. Do not move heavy debris alone.\", [\"ready-earthquakes\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"fire.structure\", [\n [\"ready\", \"escape\", \"Make an escape plan with two ways out of each room, and practice it two times each year.\", [\"ready-fire\"]],\n [\"ready\", \"alarms\", \"Put smoke alarms on each level. Replace the batteries two times a year, and the alarms every 10 years.\", [\"ready-fire\"]],\n [\"ready\", \"doors\", \"Sleep with the bedroom doors closed.\", [\"ready-fire\"]],\n [\"ready\", \"extinguisher\", \"Keep a fire extinguisher in the kitchen.\", [\"ready-fire\"]],\n [\"ready\", \"children\", \"Teach children not to hide from firefighters.\", [\"ready-fire\"]],\n [\"P0\", \"crawl\", \"Get down, and crawl low under the smoke to the exit.\", [\"ready-fire\"]],\n [\"P0\", \"door\", \"Touch the door before you open it. If it is hot, use your second way out.\", [\"ready-fire\"]],\n [\"P0\", \"trapped\", \"If you cannot get out, close the door, seal the gaps, and signal at a window.\", [\"ready-fire\"]],\n [\"P0\", \"clothes\", \"If your clothes burn, stop, drop and roll.\", [\"ready-fire\"]],\n [\"P0\", \"call\", \"Get out, and then call 9-1-1 or the fire department.\", [\"ready-fire\"]],\n [\"P1\", \"burns\", \"Put a burn in cool water for three to five minutes, and cover it with a clean, dry cloth.\", [\"ready-fire\"]],\n [\"P1\", \"enter\", \"Speak to the fire department before you go back into the house.\", [\"ready-fire\"]],\n [\"P2\", \"relief\", \"Ask the Red Cross or other disaster relief for temporary housing, food and medicine.\", [\"ready-fire\"], [FOOD, MEDICINE]],\n [\"P2\", \"utilities\", \"Do not connect the utilities again yourself.\", [\"ready-fire\"]],\n [\"P2\", \"inventory\", \"Make a list of the damaged property before you discard anything.\", [\"ready-fire\"]],\n [\"P3\", \"receipts\", \"Keep the receipts of all the money that you spend because of the fire.\", [\"ready-fire\"]],\n [\"P3\", \"mortgage\", \"Tell your mortgage company about the fire.\", [\"ready-fire\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"fire.wildfire\", [\n [\"ready\", \"zone\", \"Keep an area of at least 30 feet around the house clear of leaves and debris.\", [\"ready-wildfires\"]],\n [\"ready\", \"clean-room\", \"Choose a room that you can close from the outside air, and keep a portable air cleaner.\", [\"ready-wildfires\"]],\n [\"ready\", \"hose\", \"Have a hose that reaches all areas of the property.\", [\"ready-wildfires\"]],\n [\"ready\", \"masks\", \"If possible, keep N95 masks.\", [\"ready-wildfires\"]],\n [\"ready\", \"routes\", \"Learn the evacuation routes and where you will go.\", [\"ready-wildfires\"]],\n [\"warned\", \"alerts\", \"Pay attention to the emergency alerts and to the air quality alerts.\", [\"ready-wildfires\"]],\n [\"P0\", \"evacuate\", \"If the authorities tell you to evacuate, go immediately.\", [\"ready-wildfires\"]],\n [\"P0\", \"trapped\", \"If the fire traps you, call 9-1-1, give your location, and turn on the lights.\", [\"ready-wildfires\"]],\n [\"P1\", \"smoke\", \"For smoke, stay in the closed room with the air cleaner, and wear an N95 mask.\", [\"ready-wildfires\"]],\n [\"P1\", \"central-air\", \"Set the central air to recirculate, and close the outdoor air intake.\", [\"ready-wildfires\"]],\n [\"P1\", \"shelter\", \"Find a public shelter from the local authorities, the FEMA app or the Red Cross app.\", [\"ready-wildfires\"]],\n [\"P2\", \"return\", \"Do not go back until the authorities tell you that it is safe.\", [\"ready-wildfires\"]],\n [\"P2\", \"ash\", \"Stay away from hot ash, burned trees, smoking debris and live embers.\", [\"ready-wildfires\"]],\n [\"P3\", \"clean\", \"Wear a respirator when you clean, and make the debris wet to decrease the dust.\", [\"ready-wildfires\"]],\n [\"P3\", \"photos\", \"Make photos and a list of the damage, and speak to your insurance company.\", [\"ready-wildfires\"]],\n ...EVACUATION,\n ...RECOVERY,\n ]),\n ...stepsOf(\"cbrne.hazardous-materials\", [\n [\"ready\", \"seal-kit\", \"Put duct tape, scissors and plastic sheets in the kit to seal the doors, windows and vents.\", [\"ready-hazmat\"]],\n [\"ready\", \"ventilation\", \"Learn how to stop the ventilation system of your house.\", [\"ready-hazmat\"]],\n [\"ready\", \"room\", \"Choose an interior room above the ground with as few openings as possible.\", [\"ready-hazmat\"]],\n [\"warned\", \"listen\", \"Listen to the local radio or TV, and do the instructions carefully. Some chemicals have no odor.\", [\"ready-hazmat\"]],\n [\"P0\", \"evacuate\", \"If officials tell you to evacuate, go immediately.\", [\"ready-hazmat\"]],\n [\"P0\", \"upwind\", \"If you are outside, move upwind of the source immediately.\", [\"ready-hazmat\"]],\n [\"P0\", \"car\", \"In a car, close the windows and vents, and stop the air conditioner and the heater.\", [\"ready-hazmat\"]],\n [\"P1\", \"inside\", \"If officials tell you to stay inside, bring the pets in, and close and lock the doors and windows.\", [\"ready-hazmat\"]],\n [\"P1\", \"seal\", \"Go to the interior room, and seal it with duct tape and plastic sheets.\", [\"ready-hazmat\"]],\n [\"P1\", \"air\", \"Stop the air conditioners and the fans, or set them to 100 percent recirculation.\", [\"ready-hazmat\"]],\n [\"P1\", \"food\", \"Do not eat or drink food or water that can be contaminated.\", [\"ready-hazmat\"], [FOOD, DRINK]],\n [\"P2\", \"stay\", \"Stay in the shelter until the authorities tell you that it is safe.\", [\"ready-hazmat\"]],\n [\"P2\", \"clothes\", \"Remove contaminated clothes. Cut off clothes that go over the head, and put them in a sealed bag.\", [\"ready-hazmat\"]],\n [\"P2\", \"wash\", \"Wash your hands, face and hair with soap and water, and flush your eyes with water.\", [\"ready-hazmat\"]],\n [\"P2\", \"medical\", \"Go to a medical facility for a check as soon as it is safe.\", [\"ready-hazmat\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"cbrne.radiological\", [\n [\"ready\", \"radio\", \"Keep a radio with batteries or a hand crank.\", [\"ready-radiation\"]],\n [\"ready\", \"clothes\", \"Put a change of clothes for each person and a trash bag in the kit.\", [\"ready-radiation\"]],\n [\"ready\", \"plans\", \"Learn the shelter and evacuation plans of your school, work and care facility.\", [\"ready-radiation\"]],\n [\"warned\", \"inside\", \"When a warning of radiation comes, go inside immediately. Get inside, stay inside, and stay tuned.\", [\"ready-radiation\"]],\n [\"P0\", \"walls\", \"Go into the nearest building, away from the windows, with many walls between you and the outside.\", [\"ready-radiation\"]],\n [\"P0\", \"outside\", \"If you are outside at a detonation, lie face down, and then go into a building quickly.\", [\"ready-radiation\"]],\n [\"P0\", \"fallout\", \"Fallout comes 10 minutes or more after a detonation. Go to a basement if you can get there in minutes.\", [\"ready-radiation\"]],\n [\"P1\", \"air\", \"Stop the fans, the air conditioners and the forced-air heat, and close the windows, doors and dampers.\", [\"ready-radiation\"]],\n [\"P1\", \"outer-layer\", \"Remove your outer layer of clothes. This can remove up to 90 percent of the radioactive material.\", [\"ready-radiation\"]],\n [\"P1\", \"wash\", \"Wash with soap and water. Do not use cleaning wipes on the skin. Hand sanitizer gives no protection.\", [\"ready-radiation\"]],\n [\"P1\", \"pets\", \"Bring the pets inside.\", [\"ready-radiation\"]],\n [\"P2\", \"stay\", \"Stay in the shelter for at least 24 hours, unless the authorities tell you to go.\", [\"ready-radiation\"]],\n [\"P2\", \"food\", \"Food and drink inside the building are safe. Wipe sealed containers from outside with a damp towel.\", [\"ready-radiation\"], [FOOD, DRINK]],\n [\"P2\", \"garden\", \"Do not eat food from the garden until the authorities tell you that it is safe.\", [\"ready-radiation\"], [FOOD]],\n [\"P3\", \"return\", \"After an evacuation, go back only when the local authorities tell you that it is safe.\", [\"ready-radiation\"]],\n [\"P3\", \"talk\", \"If you feel upset, talk to someone.\", [\"ready-radiation\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"health.outbreak\", [\n [\"ready\", \"supplies\", \"Get supplies for several days or weeks: food, water, cleaning supplies and prescriptions.\", [\"ready-pandemic\"], [FOOD, DRINK, MEDICINE]],\n [\"ready\", \"slowly\", \"Buy the supplies slowly, so that all persons can get what they need.\", [\"ready-pandemic\"]],\n [\"ready\", \"closures\", \"Prepare for the closure of schools and workplaces.\", [\"ready-pandemic\"]],\n [\"ready\", \"insurance\", \"Examine your health insurance, and learn if it includes telemedicine.\", [\"ready-pandemic\"], [MEDICINE]],\n [\"warned\", \"hands\", \"Wash your hands with soap and water for at least 20 seconds.\", [\"ready-pandemic\"]],\n [\"warned\", \"distance\", \"Stay at least six feet from persons outside your household.\", [\"ready-pandemic\"]],\n [\"warned\", \"home\", \"Stay at home as much as possible, and wear a mask in public.\", [\"ready-pandemic\"]],\n [\"P2\", \"guidance\", \"Follow the latest CDC guidance, and get vaccinated.\", [\"ready-pandemic\"]],\n [\"P2\", \"sanitizer\", \"With no soap and water, use a hand sanitizer with at least 60 percent alcohol.\", [\"ready-pandemic\"]],\n [\"P2\", \"sick\", \"Stay home when you are sick, except to get medical care.\", [\"ready-pandemic\"]],\n [\"P2\", \"surfaces\", \"Clean and disinfect the surfaces that persons touch often.\", [\"ready-pandemic\"]],\n [\"P3\", \"exposure\", \"After an exposure, speak to your doctor, follow the quarantine instructions, and monitor your symptoms.\", [\"ready-pandemic\"]],\n [\"P3\", \"anxious\", \"It is normal to feel anxious. If you feel upset, talk to someone.\", [\"ready-pandemic\"]],\n [\"P4\", \"continue\", \"Continue the protective actions: stay home when sick, and cover coughs and sneezes.\", [\"ready-pandemic\"]],\n [\"P5\", \"plan\", \"After the outbreak, examine your emergency plan, and change it.\", [\"ready-pandemic\"]],\n ...RECOVERY,\n ]),\n ...stepsOf(\"infra.power.outage\", [...RECOVERY]),\n ...stepsOf(\"infra.water.outage\", [...RECOVERY]),\n ...stepsOf(\"health.medical-emergency\", [\n [\"ready\", \"class\", \"Take a first aid and CPR class. Ask your local Red Cross chapter for the training.\", [\"ready-safety\"]],\n [\"ready\", \"first-aid-kit\", \"Keep a first aid kit at home, at work and in the car.\", [\"ready-kit\"], [MEDICINE]],\n [\"ready\", \"befast\", \"Learn the signs of a stroke with B.E. F.A.S.T.: balance, eyes, face, arms, speech and time.\", [\"cdc-stroke\"]],\n [\"P0\", \"heart\", \"Chest discomfort for more than a few minutes can be a heart attack. Call 9-1-1 immediately.\", [\"cdc-heart\"]],\n [\"P0\", \"stroke\", \"For a sudden droop of the face, a weak arm or strange speech, call 9-1-1 immediately.\", [\"cdc-stroke\"]],\n [\"P0\", \"time\", \"Write down the time of the first signs of a stroke.\", [\"cdc-stroke\"]],\n [\"P0\", \"ambulance\", \"Do not drive a person with the signs of a stroke to the hospital. Call for an ambulance.\", [\"cdc-stroke\"]],\n [\"P0\", \"cpr\", \"If you know CPR, give it until the emergency team arrives.\", [\"cdc-heart\"]],\n ...RECOVERY,\n ]),\n];\n\n/** The steps of the cuts. A cut is a service that an event stops. A plan of a case adds the steps of its cuts. */\nexport const CUT_STEPS: readonly Step[] = [\n ...stepsOf(\"energy.grid\", [\n [\"ready\", \"list\", \"Make a list of the items that need electricity, and plan batteries or a power bank for them.\", [\"ready-power\"], [POWER]],\n [\"ready\", \"flashlights\", \"Keep a flashlight for each person in the household.\", [\"ready-power\"]],\n [\"ready\", \"co-alarms\", \"Put carbon monoxide alarms with battery backup on each level of the house.\", [\"ready-power\", \"cdc-co\"]],\n [\"ready\", \"devices\", \"Ask your doctor how to keep power-dependent devices and refrigerated medicines working.\", [\"ready-power\", \"fda-drugs\"], [MEDICINE, POWER]],\n [\"ready\", \"cooler\", \"Keep coolers, ice and a thermometer to monitor the temperature of the food.\", [\"ready-power\"], [FOOD]],\n [\"P0\", \"surge\", \"Disconnect the appliances and the electronics to prevent damage from a surge.\", [\"ready-power\"]],\n [\"P1\", \"closed\", \"Keep the freezer and the refrigerator closed. The refrigerator keeps food cold for approximately four hours.\", [\"ready-power\"], [FOOD]],\n [\"P1\", \"generator\", \"Use generators, camp stoves and charcoal grills only outdoors, more than 20 feet from windows and doors.\", [\"ready-power\", \"cdc-co\"]],\n [\"P1\", \"gas-heat\", \"Do not use a gas stove or a gas oven to heat the house.\", [\"ready-power\", \"cdc-co\"]],\n [\"P2\", \"freezer\", \"A full freezer keeps its temperature for approximately 48 hours. Keep it closed.\", [\"ready-power\"], [FOOD]],\n [\"P2\", \"food-40\", \"Discard food that is at 40 °F or higher for two hours or more.\", [\"ready-power\"], [FOOD]],\n [\"P2\", \"extreme\", \"If the heat or the cold is extreme, go to a community place that has power.\", [\"ready-power\"]],\n [\"P2\", \"refuel\", \"Let a generator cool before you add fuel.\", [\"ready-power\"]],\n [\"P2\", \"medicine\", \"After more than one day with no power, discard refrigerated medicine, unless its label tells otherwise.\", [\"ready-power\"], [MEDICINE]],\n [\"P3\", \"doubt\", \"Discard food with an unusual odor, color or texture. When in doubt, throw it out.\", [\"ready-power\"], [FOOD]],\n [\"P3\", \"lifesaving\", \"If a refrigerated medicine keeps you alive and you have no replacement, use it until you get a new supply.\", [\"fda-drugs\"], [MEDICINE]],\n ]),\n ...stepsOf(\"water.main\", [\n [\"ready\", \"store\", \"Store at least one gallon of water for each person for each day, for several days.\", [\"ready-water\", \"ready-kit\"], [DRINK]],\n [\"ready\", \"heat\", \"In very hot weather, the need for water can double. Store more water.\", [\"ready-water\"], [DRINK]],\n [\"ready\", \"containers\", \"Store water in clean food-grade containers. Replace water that you filled yourself every six months.\", [\"ready-water\"], [DRINK]],\n [\"ready\", \"valve\", \"Find the main water valve of the house, put a tag on it, and tell all persons where it is.\", [\"ready-safety\"]],\n [\"P0\", \"crack\", \"If a water line has a crack, close the main valve until the authorities tell you the water is safe.\", [\"ready-safety\"], [DRINK]],\n [\"P1\", \"unsafe\", \"Do not use unsafe water to drink, wash dishes, brush teeth, prepare food, or make ice or baby formula.\", [\"cdc-water\"], [DRINK, FOOD]],\n [\"P1\", \"safe\", \"Use bottled, boiled or treated water.\", [\"cdc-water\"], [DRINK]],\n [\"P1\", \"ration\", \"Do not ration drinking water unless the authorities tell you to.\", [\"ready-water\"], [DRINK]],\n [\"P2\", \"boil\", \"Boil clear water for 1 minute. Above 6,500 feet, boil it for 3 minutes.\", [\"cdc-water\"], [DRINK]],\n [\"P2\", \"cloudy\", \"If the water is cloudy, filter it through a clean cloth or a coffee filter first.\", [\"cdc-water\"], [DRINK]],\n [\"P2\", \"bleach\", \"To disinfect, add 8 drops of bleach of 5 to 9 percent to each gallon, and wait 30 minutes.\", [\"cdc-water\"], [DRINK]],\n [\"P2\", \"scented\", \"Do not use scented bleach or color-safe bleach.\", [\"ready-water\"], [DRINK]],\n [\"P2\", \"chemicals\", \"Water with fuel or toxic chemicals does not become safe when you boil or disinfect it.\", [\"cdc-water\"], [DRINK]],\n [\"P3\", \"filter\", \"A portable filter does not remove viruses. After you filter the water, add a disinfectant.\", [\"cdc-water\"], [DRINK]],\n [\"P3\", \"iodine\", \"Do not drink water with iodine for more than a few weeks at a time.\", [\"cdc-water\"], [DRINK]],\n ]),\n ...stepsOf(\"road.local\", [\n [\"ready\", \"food\", \"Keep a supply of non-perishable food for several days.\", [\"ready-kit\"], [FOOD]],\n [\"ready\", \"opener\", \"Keep a manual can opener and local maps in the kit.\", [\"ready-kit\"], [FOOD]],\n [\"ready\", \"storage\", \"Store canned food in a cool, dry place, and boxed food in tightly closed containers.\", [\"ready-kit\"], [FOOD]],\n [\"warned\", \"fuel\", \"Fill the fuel tank of the car.\", [\"ready-winter\", \"ready-evacuation\"]],\n [\"P1\", \"drive\", \"Do not drive, except in an emergency.\", [\"ready-floods\"]],\n [\"P2\", \"officials\", \"Before you travel, speak to the local officials.\", [\"ready-evacuation\"]],\n [\"P3\", \"trip\", \"Before a trip, fill the fuel tank, and take water and non-perishable food for the ride.\", [\"ready-evacuation\"], [DRINK, FOOD]],\n ]),\n ...stepsOf(\"telecom.network\", [\n [\"ready\", \"radio\", \"Keep a radio with batteries or a hand crank, and a NOAA Weather Radio with a tone alert.\", [\"ready-kit\"]],\n [\"ready\", \"home-phone\", \"Learn if your home phone works with no power, and for how long its battery lasts.\", [\"ready-power\"]],\n [\"ready\", \"contact\", \"Make a communication plan with a contact outside the state and a meeting place.\", [\"ready-earthquakes\"]],\n [\"warned\", \"charge\", \"Charge your phone, and keep a backup charger.\", [\"ready-hurricanes\", \"ready-wildfires\"], [POWER]],\n [\"P1\", \"text\", \"Use text messages. They are more reliable than calls and use less battery.\", [\"ready-earthquakes\"]],\n [\"P1\", \"calls\", \"Make phone calls only for emergencies.\", [\"ready-tornadoes\", \"ready-hurricanes\"]],\n [\"P2\", \"news\", \"Listen to the local news on a radio with batteries.\", [\"ready-earthquakes\"]],\n ]),\n ...stepsOf(\"gas.main\", [\n [\"ready\", \"meter\", \"Ask your gas company how to turn off the gas at your meter, and teach your household.\", [\"ready-safety\"]],\n [\"ready\", \"practice\", \"Do not turn off the gas when you practice.\", [\"ready-safety\"]],\n [\"ready\", \"service\", \"Have a technician service the heater, the water heater and the gas appliances each year.\", [\"cdc-co\"]],\n [\"P0\", \"leave\", \"If you smell gas or hear a hiss, open a window, and get all persons out quickly.\", [\"ready-safety\"]],\n [\"P0\", \"valve\", \"If you can, turn off the gas at the outside main valve. Call the gas company from a neighbor's house.\", [\"ready-safety\"]],\n [\"P1\", \"restore\", \"Do not turn the gas on again yourself. Only a qualified professional can do this.\", [\"ready-safety\"]],\n [\"P2\", \"indoors\", \"Do not use a camp stove or charcoal indoors at any time.\", [\"cdc-co\"]],\n ]),\n ...stepsOf(\"store.pharmacy\", [\n [\"ready\", \"list\", \"Keep a current list of your medicines: the name, the strength, the dose, the time and your allergies.\", [\"fda-drugs\"], [MEDICINE]],\n [\"ready\", \"copies\", \"Keep a copy of your prescriptions with the emergency supplies.\", [\"fda-drugs\"], [MEDICINE]],\n [\"ready\", \"watertight\", \"Store medicines in watertight containers, in a place that flood water cannot reach.\", [\"fda-drugs\"], [MEDICINE]],\n [\"ready\", \"laws\", \"Learn the emergency refill laws of your state.\", [\"fda-drugs\"], [MEDICINE]],\n [\"warned\", \"refill\", \"If a disaster can stop access to the pharmacy, get early refills.\", [\"fda-drugs\"], [MEDICINE]],\n [\"P2\", \"damage\", \"Examine all medicines for damage. Discard medicine that is wet or changed.\", [\"fda-drugs\"], [MEDICINE]],\n [\"P2\", \"flood\", \"Discard medicines that flood water touched, also in sealed containers.\", [\"fda-drugs\"], [MEDICINE]],\n [\"P2\", \"mix\", \"Mix medicines only with purified or bottled water.\", [\"fda-drugs\"], [MEDICINE]],\n [\"P3\", \"lifesaving\", \"If a lifesaving medicine looks normal and you have no replacement, use it, and replace it soon.\", [\"fda-drugs\"], [MEDICINE]],\n [\"P4\", \"replace\", \"Replace the medicines that you cannot use as soon as possible.\", [\"fda-drugs\"], [MEDICINE]],\n ]),\n];\n\n/** All the steps of the content. */\nexport const STEPS: readonly Step[] = [...CASE_STEPS, ...CUT_STEPS];\n","// The marked gaps of the content: each key and phase that has no step on purpose, with the reason.\n\nimport type { Gap } from \"@mark1russell7/guidebook-plans\";\n\nconst OF_GRID = \"This case is the power cut itself. The steps of the cut `energy.grid` apply.\";\nconst OF_WATER = \"This case is the water cut itself. The steps of the cut `water.main` apply.\";\nconst NO_HOME_STEP = \"The emergency team and the hospital give the care after the first minutes. The sources give no household step.\";\n\nconst NO_LONG_STEP = \"The sources give no step for a cut of this length. The steps of the earlier phases continue.\";\n\n/** The marked gaps of the cases and the cuts. */\nexport const GAPS: readonly Gap[] = [\n { on: \"met.winter.storm\", phase: \"P3\", why: \"The source gives no step past the first days of the storm. The steps of the cuts apply.\" },\n { on: \"met.heat.extreme\", phase: \"warned\", why: \"The source gives no separate step for a heat warning. The steps of P0 and P1 apply.\" },\n { on: \"met.heat.extreme\", phase: \"P3\", why: \"The source gives no step past the first days of the heat. The steps of P2 continue.\" },\n { on: \"met.tornado\", phase: \"P3\", why: \"The source gives no step past the cleanup. The steps of the cuts apply.\" },\n { on: \"geo.earthquake\", phase: \"warned\", why: \"An earthquake alert comes only seconds before the shaking. Do the steps of P0 immediately.\" },\n { on: \"fire.structure\", phase: \"warned\", why: \"A house fire gives no warning before the smoke alarm. The steps of P0 apply.\" },\n { on: \"cbrne.hazardous-materials\", phase: \"P3\", why: \"The source gives no step past the decontamination and the medical check.\" },\n { on: \"health.outbreak\", phase: \"P0\", why: \"An outbreak grows over days, not minutes. The steps of the warning continue.\" },\n { on: \"health.outbreak\", phase: \"P1\", why: \"An outbreak grows over days, not hours. The steps of the warning continue.\" },\n { on: \"energy.grid\", phase: \"warned\", why: \"A power cut often comes with no warning. The warning steps of the case and of the network apply.\" },\n { on: \"energy.grid\", phase: \"P4\", why: NO_LONG_STEP },\n { on: \"energy.grid\", phase: \"P5\", why: NO_LONG_STEP },\n { on: \"water.main\", phase: \"warned\", why: \"A break of a water main comes with no warning. The stored water of the ready phase is the protection.\" },\n { on: \"water.main\", phase: \"P4\", why: NO_LONG_STEP },\n { on: \"water.main\", phase: \"P5\", why: NO_LONG_STEP },\n { on: \"road.local\", phase: \"P0\", why: \"A closed road does not change the first minutes at home. The steps of the case apply.\" },\n { on: \"road.local\", phase: \"P4\", why: NO_LONG_STEP },\n { on: \"road.local\", phase: \"P5\", why: NO_LONG_STEP },\n { on: \"telecom.network\", phase: \"P0\", why: \"A cut of the network does not change the first minutes. The steps of the case apply.\" },\n { on: \"telecom.network\", phase: \"P3\", why: NO_LONG_STEP },\n { on: \"telecom.network\", phase: \"P4\", why: NO_LONG_STEP },\n { on: \"telecom.network\", phase: \"P5\", why: NO_LONG_STEP },\n { on: \"gas.main\", phase: \"warned\", why: \"A gas leak gives no warning before you smell it or hear it.\" },\n { on: \"gas.main\", phase: \"P3\", why: NO_LONG_STEP },\n { on: \"gas.main\", phase: \"P4\", why: NO_LONG_STEP },\n { on: \"gas.main\", phase: \"P5\", why: NO_LONG_STEP },\n { on: \"store.pharmacy\", phase: \"P0\", why: \"A closed pharmacy does not change the first minutes. The steps of the case apply.\" },\n { on: \"store.pharmacy\", phase: \"P1\", why: \"A closed pharmacy does not change the first hours. The medicines of the ready phase are the protection.\" },\n { on: \"store.pharmacy\", phase: \"P5\", why: NO_LONG_STEP },\n { on: \"infra.power.outage\", phase: \"ready\", why: OF_GRID },\n { on: \"infra.power.outage\", phase: \"warned\", why: OF_GRID },\n { on: \"infra.power.outage\", phase: \"P0\", why: OF_GRID },\n { on: \"infra.power.outage\", phase: \"P1\", why: OF_GRID },\n { on: \"infra.power.outage\", phase: \"P2\", why: OF_GRID },\n { on: \"infra.power.outage\", phase: \"P3\", why: OF_GRID },\n { on: \"infra.water.outage\", phase: \"ready\", why: OF_WATER },\n { on: \"infra.water.outage\", phase: \"warned\", why: OF_WATER },\n { on: \"infra.water.outage\", phase: \"P0\", why: OF_WATER },\n { on: \"infra.water.outage\", phase: \"P1\", why: OF_WATER },\n { on: \"infra.water.outage\", phase: \"P2\", why: OF_WATER },\n { on: \"infra.water.outage\", phase: \"P3\", why: OF_WATER },\n { on: \"health.medical-emergency\", phase: \"warned\", why: \"A medical emergency comes with no warning. The steps of P0 apply.\" },\n { on: \"health.medical-emergency\", phase: \"P1\", why: NO_HOME_STEP },\n { on: \"health.medical-emergency\", phase: \"P2\", why: NO_HOME_STEP },\n { on: \"health.medical-emergency\", phase: \"P3\", why: NO_HOME_STEP },\n];\n","// The open cells of the coverage gate: each key and horizon from 5 minutes to 5 years that has no step yet.\n// The coverage gate fails each of them. A test holds this list, so it can only get shorter.\n\n/**\n * The cells with no step, as `<key>/<phase>`, in the sequence of the matrix.\n * Each cell is open until a cited step fills it. The items G8, G9 and G10 of the roadmap fill them.\n */\nexport const OPEN_CELLS: readonly string[] = [\n \"met.winter.storm/P3\",\n \"met.heat.extreme/P3\",\n \"met.tornado/P3\",\n \"infra.power.outage/P0\",\n \"infra.power.outage/P1\",\n \"infra.power.outage/P2\",\n \"infra.power.outage/P3\",\n \"infra.water.outage/P0\",\n \"infra.water.outage/P1\",\n \"infra.water.outage/P2\",\n \"infra.water.outage/P3\",\n \"health.outbreak/P0\",\n \"health.outbreak/P1\",\n \"health.medical-emergency/P1\",\n \"health.medical-emergency/P2\",\n \"health.medical-emergency/P3\",\n \"cbrne.hazardous-materials/P3\",\n \"energy.grid/P4\",\n \"energy.grid/P5\",\n \"water.main/P4\",\n \"water.main/P5\",\n \"road.local/P0\",\n \"road.local/P4\",\n \"road.local/P5\",\n \"telecom.network/P0\",\n \"telecom.network/P3\",\n \"telecom.network/P4\",\n \"telecom.network/P5\",\n \"gas.main/P3\",\n \"gas.main/P4\",\n \"gas.main/P5\",\n \"store.pharmacy/P0\",\n \"store.pharmacy/P1\",\n \"store.pharmacy/P5\",\n];\n","// The topics of the preparedness content: 40 topics in 12 areas, as a graph of prerequisites.\n// Each topic names the bundles that hold it. The cited units of each topic come later.\n\nimport type { Topic } from \"@mark1russell7/guidebook-topics\";\n\n/** The areas of the topics. */\nexport const AREAS = [\n \"water\",\n \"food\",\n \"farming\",\n \"medicine\",\n \"sanitation\",\n \"shelter\",\n \"energy\",\n \"electronics\",\n \"metals\",\n \"tools\",\n \"chemistry\",\n \"communication\",\n] as const;\n\ntype Area = (typeof AREAS)[number];\n\n/** The bundles of the topics of each area, after the two Wikipedia bundles that each topic has. */\nconst AREA_BUNDLES: Readonly<Record<Area, readonly string[]>> = {\n water: [\"appropedia\", \"stackexchange-outdoors\", \"stackexchange-sustainability\"],\n food: [\"appropedia\", \"stackexchange-cooking\"],\n farming: [\"appropedia\", \"stackexchange-gardening\"],\n medicine: [\"wikipedia-medicine\", \"stackexchange-medicalsciences\"],\n sanitation: [\"appropedia\", \"stackexchange-diy\"],\n shelter: [\"appropedia\", \"stackexchange-diy\", \"stackexchange-outdoors\"],\n energy: [\"energypedia\", \"appropedia\", \"stackexchange-sustainability\"],\n electronics: [\"stackexchange-electronics\"],\n metals: [],\n tools: [\"stackexchange-diy\", \"stackexchange-woodworking\"],\n chemistry: [\"stackexchange-chemistry\"],\n communication: [\"stackexchange-ham\"],\n};\n\n/** The need code that the topics of each area help to keep. */\nconst AREA_SERVES: Readonly<Partial<Record<Area, string>>> = {\n water: \"hydration.drink\",\n food: \"food.energy\",\n medicine: \"health.medicine\",\n};\n\nconst topic = (id: string, title: string, requires: readonly string[] = [], extra: { readonly bundles?: readonly string[]; readonly serves?: readonly string[] } = {}): Topic => {\n const area = id.split(\".\")[0] as Area;\n const serve = AREA_SERVES[area];\n return {\n id,\n title,\n area,\n requires,\n units: [],\n bundles: [\"wikipedia-mini\", \"wikipedia-all\", ...AREA_BUNDLES[area], ...(extra.bundles ?? [])],\n serves: extra.serves ?? (serve === undefined ? [] : [serve]),\n };\n};\n\nconst POWER = { serves: [\"power.electric\"] } as const;\n\n/** The topics of the content. `printOrder` of the topics add-on gives the sequence of the book. */\nexport const TOPICS: readonly Topic[] = [\n topic(\"water.sources\", \"Where to find water\"),\n topic(\"water.boil\", \"Boil water to make it safe\", [\"energy.fire\"]),\n topic(\"water.disinfect\", \"Disinfect water with chlorine\", [\"chemistry.measure\"]),\n topic(\"water.filter\", \"Filter water\", [\"water.sources\"]),\n topic(\"water.store\", \"Store water\", [\"water.disinfect\"]),\n topic(\"food.store\", \"Store food\"),\n topic(\"food.cook.offgrid\", \"Cook with no grid power\", [\"energy.fire\"], { bundles: [\"energypedia\"] }),\n topic(\"food.preserve.dry\", \"Dry food\", [\"food.store\"]),\n topic(\"food.preserve.can\", \"Can food at home\", [\"food.store\", \"food.cook.offgrid\", \"chemistry.measure\"]),\n topic(\"farming.soil\", \"Make good soil\"),\n topic(\"farming.garden\", \"Grow a kitchen garden\", [\"farming.soil\"]),\n topic(\"farming.seed\", \"Save seeds\", [\"farming.garden\"]),\n topic(\"medicine.first-aid\", \"First aid\"),\n topic(\"medicine.wounds\", \"Clean and close a wound\", [\"medicine.first-aid\", \"sanitation.hygiene\"]),\n topic(\"medicine.dehydration\", \"Treat dehydration\", [\"medicine.first-aid\", \"water.boil\"]),\n topic(\"medicine.medicines\", \"Essential medicines\", [\"medicine.first-aid\"]),\n topic(\"medicine.childbirth\", \"Help at a childbirth\", [\"medicine.first-aid\", \"sanitation.hygiene\"]),\n topic(\"sanitation.hygiene\", \"Wash hands and keep clean\"),\n topic(\"sanitation.toilet\", \"Make a toilet\", [\"sanitation.hygiene\", \"tools.hand\"]),\n topic(\"sanitation.waste\", \"Manage waste and pests\", [\"sanitation.toilet\"]),\n topic(\"shelter.warmth\", \"Keep warm\"),\n topic(\"shelter.repair\", \"Repair a roof and a wall\", [\"tools.hand\"]),\n topic(\"shelter.build.basic\", \"Build a basic shelter\", [\"tools.hand\", \"tools.rope\"]),\n topic(\"energy.fire\", \"Make and control a fire\"),\n topic(\"energy.electric.basic\", \"Electric power: volts, amps and watts\", [], POWER),\n topic(\"energy.battery\", \"Use and charge a battery\", [\"energy.electric.basic\"], POWER),\n topic(\"energy.solar\", \"Solar power\", [\"energy.battery\"], POWER),\n topic(\"energy.generator\", \"Use a generator safely\", [\"energy.electric.basic\"], POWER),\n topic(\"electronics.basic\", \"Electronic components\", [\"energy.electric.basic\"]),\n topic(\"electronics.solder\", \"Solder\", [\"electronics.basic\", \"tools.hand\"]),\n topic(\"electronics.radio\", \"Build a simple radio\", [\"electronics.solder\"]),\n topic(\"metals.forge\", \"Forge metal\", [\"energy.fire\", \"tools.hand\"]),\n topic(\"metals.sharpen\", \"Sharpen and harden a blade\", [\"metals.forge\"]),\n topic(\"tools.hand\", \"Hand tools\"),\n topic(\"tools.rope\", \"Knots and rope\"),\n topic(\"chemistry.measure\", \"Measure and dilute\"),\n topic(\"chemistry.soap\", \"Make soap\", [\"chemistry.measure\", \"energy.fire\"]),\n topic(\"communication.radio.receive\", \"Receive weather and emergency radio\"),\n topic(\"communication.radio.amateur\", \"Amateur radio\", [\"electronics.basic\"]),\n topic(\"communication.signals\", \"Signal for help\"),\n];\n","// The offline bundles of the preparedness content: Kiwix ZIM files of open wikis and of 10 sites of Stack Exchange.\n// The release and the address of each file come from the Kiwix catalog feed, read on the date `BUNDLES_CHECKED`.\n// The exact size and the SHA-256 of each file come from the `.meta4` file of its release.\n// The weekly workflow `bundles.yml` starts `scripts/check-bundles.ts`, which compares the bundles to the live feed.\n\nimport type { Bundle } from \"@mark1russell7/guidebook-library\";\n\n/** The date of the last read of the Kiwix catalog feed. */\nexport const BUNDLES_CHECKED = \"2026-11-21\";\n\n/**\n * The levels of the bundles.\n * - `pocket`: the small bundles. Together they fit on one flash drive of 32 GB.\n * - `shelf`: the large bundles. Each needs a drive of 64 GB or more.\n */\nexport const BUNDLE_LEVELS = [\"pocket\", \"shelf\"] as const;\n\nconst ZIM = \"https://download.kiwix.org/zim\";\n\n/** The bundles of the content, in the sequence of their level, and then of their size. */\nexport const BUNDLES: readonly Bundle[] = [\n { id: \"wikipedia-medicine\", title: \"Wikipedia: medicine, with no pictures\", bytes: 1_047_708_415, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"wikipedia-en\", version: \"2026-10\", sha256: \"718fadad40b3491be3fa8f95181a948e4d726f97a79a14e0ef1b90c6b2b03625\", url: `${ZIM}/wikipedia/wikipedia_en_medicine_nopic_2026-10.zim` },\n { id: \"appropedia\", title: \"Appropedia: appropriate technology\", bytes: 581_641_351, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"appropedia\", version: \"2026-02\", sha256: \"dcf200ba723c27397e1c9a2e4891ff91fa13993df1fa285315190d8525a53469\", url: `${ZIM}/other/appropedia_en_all_maxi_2026-02.zim` },\n { id: \"energypedia\", title: \"energypedia: energy access, with no pictures\", bytes: 722_590_405, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"energypedia\", version: \"2026-06\", sha256: \"f1b2cf0afde2927eab9acd2b6365144eae35986894c2a8eac7071045fd01d295\", url: `${ZIM}/other/energypedia_en_all_nopic_2026-06.zim` },\n { id: \"wikibooks\", title: \"Wikibooks, with no pictures\", bytes: 3_544_612_812, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"wikibooks-en\", version: \"2026-10\", sha256: \"bda3410005656daeb523c81774e151b750cd5a8828f081ded0848cd7fdccba7c\", url: `${ZIM}/wikibooks/wikibooks_en_all_nopic_2026-10.zim` },\n { id: \"stackexchange-sustainability\", title: \"Stack Exchange: Sustainable Living Q&A\", bytes: 27_687_333, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"1516f252827b1409b7b55c1a44671e7e59b857bf2bb3732f3af62c996e40412f\", url: `${ZIM}/stack_exchange/sustainability.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-medicalsciences\", title: \"Stack Exchange: Medical Sciences Q&A\", bytes: 60_659_941, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"14542ddfa6a9b354fa3e0468b3ff49ee2544defce175270209f4014d34f2feec\", url: `${ZIM}/stack_exchange/medicalsciences.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-ham\", title: \"Stack Exchange: Amateur Radio Q&A\", bytes: 77_108_284, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"cb8a0cd7ae0078279ace1cd2a05e60505aa2494c29e82dac1942bf4cd54fcf9c\", url: `${ZIM}/stack_exchange/ham.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-woodworking\", title: \"Stack Exchange: Woodworking Q&A\", bytes: 106_657_287, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"2ba925d1028f9442c153569701868b5b7abc6dbb2551c620680a92be9272b062\", url: `${ZIM}/stack_exchange/woodworking.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-outdoors\", title: \"Stack Exchange: The Great Outdoors Q&A\", bytes: 141_820_374, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"73752057bd2253af6cf80c69caf0def158bcf378188f0fbc7ab8ed07bbbe9bc5\", url: `${ZIM}/stack_exchange/outdoors.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-cooking\", title: \"Stack Exchange: Cooking Q&A (Seasoned Advice)\", bytes: 238_098_128, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"b5dc3a79b681be1afea32dd65e837c604e7dd7072f51622414a7a1d61fc52541\", url: `${ZIM}/stack_exchange/cooking.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-chemistry\", title: \"Stack Exchange: Chemistry Q&A\", bytes: 419_958_885, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"29df06f911373044997678301ebe894ef10fdf15c8e83d39ab83f7ae91f65394\", url: `${ZIM}/stack_exchange/chemistry.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-gardening\", title: \"Stack Exchange: Gardening & Landscaping Q&A\", bytes: 933_097_375, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"8079b77ba40d830c31cdfa0e3f43a100e9d9488d856b10ffb3aca4e829594e6e\", url: `${ZIM}/stack_exchange/gardening.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-diy\", title: \"Stack Exchange: Home Improvement Q&A\", bytes: 2_086_024_326, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"df795a094698282164ddee422814f88bf84841a2413c89ac23401efd71f22731\", url: `${ZIM}/stack_exchange/diy.stackexchange.com_en_all_2026-10.zim` },\n { id: \"stackexchange-electronics\", title: \"Stack Exchange: Electronics Q&A\", bytes: 4_261_397_539, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"stackexchange\", version: \"2026-10\", sha256: \"b28e58b24ed55c602265729b34b0c6cc4e12228e6fe2f55df5b5e9eae169b266\", url: `${ZIM}/stack_exchange/electronics.stackexchange.com_en_all_2026-10.zim` },\n { id: \"wikipedia-mini\", title: \"Wikipedia: the introduction of each article\", bytes: 14_386_799_064, license: \"cc-by-sa-4.0\", level: \"pocket\", source: \"wikipedia-en\", version: \"2026-09\", sha256: \"350d8956ee3d7abe2839c464c3a983f93d6934a16c7f04b10715b49439dfd349\", url: `${ZIM}/wikipedia/wikipedia_en_all_mini_2026-09.zim` },\n { id: \"wikipedia-all\", title: \"Wikipedia: all articles, with no pictures\", bytes: 52_690_706_555, license: \"cc-by-sa-4.0\", level: \"shelf\", source: \"wikipedia-en\", version: \"2026-06\", sha256: \"441a56d9e05b2d98f8ae9acb7986a513ed47904d73852c92dc6b7d50baa122e5\", url: `${ZIM}/wikipedia/wikipedia_en_all_nopic_2026-06.zim` },\n];\n","// The cited rates of loss of the kinds of media, for the plan of copies of the library add-on.\n// The rates come from drives that run all the time in a data center. A drive that sits with no power can be different.\n\nimport type { CitedUnit } from \"@mark1russell7/guidebook\";\nimport type { MediumKind } from \"@mark1russell7/guidebook-library\";\n\n/** The fact units of the rates. */\nexport const MEDIA_UNITS: readonly CitedUnit[] = [\n {\n id: \"media.hdd.afr\",\n use: \"fact\",\n text: \"The lifetime annualized failure rate of all the hard drives of Backblaze is 1.41%, to 2026-06-30.\",\n source: \"backblaze-hdd-2026q2\",\n locator: \"The lifetime table, the row Totals\",\n },\n {\n id: \"media.ssd.afr\",\n use: \"fact\",\n text: \"The lifetime annualized failure rate of all the SSD boot drives of Backblaze is 0.90%, from Q4 2018 to Q2 2023.\",\n source: \"backblaze-ssd-2023\",\n locator: \"The section of the lifetime rates\",\n },\n];\n\n/** The yearly loss of each kind with a cited rate, and the unit of the rate. */\nexport const MEDIUM_LOSSES: Readonly<Partial<Record<MediumKind, { readonly yearlyLoss: number; readonly unit: string }>>> = {\n hdd: { yearlyLoss: 0.0141, unit: \"media.hdd.afr\" },\n ssd: { yearlyLoss: 0.009, unit: \"media.ssd.afr\" },\n};\n\n/** The kinds with no cited rate. A plan of copies cannot use them until a source gives a rate. */\nexport const MEDIUM_GAPS: readonly MediumKind[] = [\"flash\", \"optical\", \"paper\"];\n","// The preparedness content of the guidebook: the sources, the steps and the marked gaps of 12 cases and 6 cuts,\n// the topics of 12 areas, and the catalog of offline bundles.\n\nexport { CHECKED, SOURCES } from \"./data/sources.ts\";\nexport { CASE_STEPS, CUT_STEPS, STEPS } from \"./data/steps.ts\";\nexport { GAPS } from \"./data/gaps.ts\";\nexport { OPEN_CELLS } from \"./data/coverage.ts\";\nexport { AREAS, TOPICS } from \"./data/topics.ts\";\nexport { BUNDLES, BUNDLES_CHECKED, BUNDLE_LEVELS } from \"./data/bundles.ts\";\nexport { MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LOSSES } from \"./data/media.ts\";\n\n/**\n * The 12 cases of v1. A case is a kind of event. The codes come from the event taxonomy of the alerts project.\n * The code `health.medical-emergency` is new in that taxonomy.\n */\nexport const CASES = [\n \"met.winter.storm\",\n \"met.tropical.hurricane\",\n \"met.flood\",\n \"met.heat.extreme\",\n \"met.tornado\",\n \"geo.earthquake\",\n \"fire.wildfire\",\n \"fire.structure\",\n \"infra.power.outage\",\n \"infra.water.outage\",\n \"health.outbreak\",\n \"health.medical-emergency\",\n] as const;\n\n/** The cases past v1. Their steps have the same gates as the steps of `CASES`. */\nexport const MORE_CASES = [\"cbrne.hazardous-materials\", \"cbrne.radiological\"] as const;\n\n/** The cuts of the content. A cut is a service that an event stops. These ids are a proposal until the stack model names them. */\nexport const CUTS = [\"energy.grid\", \"water.main\", \"road.local\", \"telecom.network\", \"gas.main\", \"store.pharmacy\"] as const;\n\n/** The need codes that the steps protect. */\nexport const NEEDS = [\"hydration.drink\", \"food.energy\", \"health.medicine\", \"power.electric\"] as const;\n"],"mappings":";;AAOA,MAAa,UAAU;AAEvB,MAAM,WAAW,IAAY,IAAY,OAAe,SAAyB;CAAE;CAAI;CAAO;CAAK,SAAS;CAAoB,SAAS;CAAS;AAAG;;AAGrJ,MAAa,UAA6B;CACxC,QAAQ,gBAAgB,aAAa,kBAAkB,sCAAsC;CAC7F,QAAQ,oBAAoB,aAAa,cAAc,kCAAkC;CACzF,QAAQ,gBAAgB,aAAa,UAAU,8BAA8B;CAC7E,QAAQ,cAAc,aAAa,gBAAgB,4BAA4B;CAC/E,QAAQ,mBAAmB,aAAa,aAAa,iCAAiC;CACtF,QAAQ,qBAAqB,aAAa,eAAe,mCAAmC;CAC5F,QAAQ,cAAc,aAAa,cAAc,kCAAkC;CACnF,QAAQ,mBAAmB,aAAa,aAAa,iCAAiC;CACtF,QAAQ,gBAAgB,aAAa,+CAA+C,8BAA8B;CAClH,QAAQ,mBAAmB,aAAa,yBAAyB,iCAAiC;CAClG,QAAQ,kBAAkB,aAAa,aAAa,gCAAgC;CACpF,QAAQ,oBAAoB,aAAa,cAAc,kCAAkC;CACzF,QAAQ,eAAe,aAAa,iBAAiB,qCAAqC;C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Ae,SAAS;EAAgB,OAAO;EAAU,QAAQ;EAAiB,SAAS;EAAW,QAAQ;EAAoE,KAAK,GAAG,IAAI;CAAkE;CACpV;EAAE,IAAI;EAAkB,OAAO;EAA+C,OAAO;EAAgB,SAAS;EAAgB,OAAO;EAAU,QAAQ;EAAgB,SAAS;EAAW,QAAQ;EAAoE,KAAK,GAAG,IAAI;CAA8C;CACjU;EAAE,IAAI;EAAiB,OAAO;EAA6C,OAAO;EAAgB,SAAS;EAAgB,OAAO;EAAS,QAAQ;EAAgB,SAAS;EAAW,QAAQ;EAAoE,KAAK,GAAG,IAAI;CAA+C;AAChU;;;AC9BA,MAAa,cAAoC,CAC/C;CACE,IAAI;CACJ,KAAK;CACL,MAAM;CACN,QAAQ;CACR,SAAS;AACX,GACA;CACE,IAAI;CACJ,KAAK;CACL,MAAM;CACN,QAAQ;CACR,SAAS;AACX,CACF;;AAGA,MAAa,gBAA+G;CAC1H,KAAK;EAAE,YAAY;EAAQ,MAAM;CAAgB;CACjD,KAAK;EAAE,YAAY;EAAO,MAAM;CAAgB;AAClD;;AAGA,MAAa,cAAqC;CAAC;CAAS;CAAW;AAAO;;;;;;AChB9E,MAAa,QAAQ;CACnB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,aAAa,CAAC,6BAA6B,oBAAoB;;AAG5E,MAAa,OAAO;CAAC;CAAe;CAAc;CAAc;CAAmB;CAAY;AAAgB;;AAG/G,MAAa,QAAQ;CAAC;CAAmB;CAAe;CAAmB;AAAgB"}
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/package",
2
3
  "name": "@mark1russell7/guidebook-preparedness",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
4
+ "version": "0.1.1",
5
+ "description": "The preparedness content of the guidebook: cited sources, the steps and marked gaps of 12 cases and 6 cuts, 40 topics in 12 areas, and the catalog of offline bundles.",
6
+ "keywords": [
7
+ "guidebook",
8
+ "preparedness",
9
+ "emergency",
10
+ "plan",
11
+ "steps",
12
+ "typescript"
13
+ ],
14
+ "homepage": "https://github.com/mark1russell7/guidebook#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/mark1russell7/guidebook/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/mark1russell7/guidebook.git",
21
+ "directory": "packages/preparedness"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Mark Russell (https://github.com/mark1russell7)",
25
+ "type": "module",
26
+ "sideEffects": false,
27
+ "main": "./build/index.js",
28
+ "types": "./build/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./build/index.d.ts",
32
+ "default": "./build/index.js"
33
+ },
34
+ "./package.json": "./package.json"
35
+ },
36
+ "files": [
37
+ "build",
38
+ "src",
39
+ "data",
40
+ "!src/**/*.test.ts"
41
+ ],
42
+ "engines": {
43
+ "node": ">=22.12"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "devDependencies": {
49
+ "@mark1russell7/cue": "^2.0.0",
50
+ "@types/node": "^26.6.5",
51
+ "@vitest/coverage-v8": "^5.0.3",
52
+ "typescript": "^7.0.2",
53
+ "vitest": "^5.0.3",
54
+ "tsdown": "^0.23.7",
55
+ "@mark1russell7/ste-lint": "^0.4.0"
56
+ },
57
+ "dependencies": {
58
+ "@mark1russell7/guidebook": "0.1.1",
59
+ "@mark1russell7/guidebook-library": "0.1.1",
60
+ "@mark1russell7/guidebook-plans": "0.1.1",
61
+ "@mark1russell7/guidebook-topics": "0.1.1"
62
+ },
63
+ "scripts": {
64
+ "build": "tsdown",
65
+ "test": "vitest run",
66
+ "test:watch": "vitest",
67
+ "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.test.json"
68
+ }
6
69
  }
@@ -0,0 +1,38 @@
1
+ // The offline bundles of the preparedness content: Kiwix ZIM files of open wikis and of 10 sites of Stack Exchange.
2
+ // The release and the address of each file come from the Kiwix catalog feed, read on the date `BUNDLES_CHECKED`.
3
+ // The exact size and the SHA-256 of each file come from the `.meta4` file of its release.
4
+ // The weekly workflow `bundles.yml` starts `scripts/check-bundles.ts`, which compares the bundles to the live feed.
5
+
6
+ import type { Bundle } from "@mark1russell7/guidebook-library";
7
+
8
+ /** The date of the last read of the Kiwix catalog feed. */
9
+ export const BUNDLES_CHECKED = "2026-11-21";
10
+
11
+ /**
12
+ * The levels of the bundles.
13
+ * - `pocket`: the small bundles. Together they fit on one flash drive of 32 GB.
14
+ * - `shelf`: the large bundles. Each needs a drive of 64 GB or more.
15
+ */
16
+ export const BUNDLE_LEVELS = ["pocket", "shelf"] as const;
17
+
18
+ const ZIM = "https://download.kiwix.org/zim";
19
+
20
+ /** The bundles of the content, in the sequence of their level, and then of their size. */
21
+ export const BUNDLES: readonly Bundle[] = [
22
+ { id: "wikipedia-medicine", title: "Wikipedia: medicine, with no pictures", bytes: 1_047_708_415, license: "cc-by-sa-4.0", level: "pocket", source: "wikipedia-en", version: "2026-10", sha256: "718fadad40b3491be3fa8f95181a948e4d726f97a79a14e0ef1b90c6b2b03625", url: `${ZIM}/wikipedia/wikipedia_en_medicine_nopic_2026-10.zim` },
23
+ { id: "appropedia", title: "Appropedia: appropriate technology", bytes: 581_641_351, license: "cc-by-sa-4.0", level: "pocket", source: "appropedia", version: "2026-02", sha256: "dcf200ba723c27397e1c9a2e4891ff91fa13993df1fa285315190d8525a53469", url: `${ZIM}/other/appropedia_en_all_maxi_2026-02.zim` },
24
+ { id: "energypedia", title: "energypedia: energy access, with no pictures", bytes: 722_590_405, license: "cc-by-sa-4.0", level: "pocket", source: "energypedia", version: "2026-06", sha256: "f1b2cf0afde2927eab9acd2b6365144eae35986894c2a8eac7071045fd01d295", url: `${ZIM}/other/energypedia_en_all_nopic_2026-06.zim` },
25
+ { id: "wikibooks", title: "Wikibooks, with no pictures", bytes: 3_544_612_812, license: "cc-by-sa-4.0", level: "pocket", source: "wikibooks-en", version: "2026-10", sha256: "bda3410005656daeb523c81774e151b750cd5a8828f081ded0848cd7fdccba7c", url: `${ZIM}/wikibooks/wikibooks_en_all_nopic_2026-10.zim` },
26
+ { id: "stackexchange-sustainability", title: "Stack Exchange: Sustainable Living Q&A", bytes: 27_687_333, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "1516f252827b1409b7b55c1a44671e7e59b857bf2bb3732f3af62c996e40412f", url: `${ZIM}/stack_exchange/sustainability.stackexchange.com_en_all_2026-10.zim` },
27
+ { id: "stackexchange-medicalsciences", title: "Stack Exchange: Medical Sciences Q&A", bytes: 60_659_941, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "14542ddfa6a9b354fa3e0468b3ff49ee2544defce175270209f4014d34f2feec", url: `${ZIM}/stack_exchange/medicalsciences.stackexchange.com_en_all_2026-10.zim` },
28
+ { id: "stackexchange-ham", title: "Stack Exchange: Amateur Radio Q&A", bytes: 77_108_284, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "cb8a0cd7ae0078279ace1cd2a05e60505aa2494c29e82dac1942bf4cd54fcf9c", url: `${ZIM}/stack_exchange/ham.stackexchange.com_en_all_2026-10.zim` },
29
+ { id: "stackexchange-woodworking", title: "Stack Exchange: Woodworking Q&A", bytes: 106_657_287, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "2ba925d1028f9442c153569701868b5b7abc6dbb2551c620680a92be9272b062", url: `${ZIM}/stack_exchange/woodworking.stackexchange.com_en_all_2026-10.zim` },
30
+ { id: "stackexchange-outdoors", title: "Stack Exchange: The Great Outdoors Q&A", bytes: 141_820_374, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "73752057bd2253af6cf80c69caf0def158bcf378188f0fbc7ab8ed07bbbe9bc5", url: `${ZIM}/stack_exchange/outdoors.stackexchange.com_en_all_2026-10.zim` },
31
+ { id: "stackexchange-cooking", title: "Stack Exchange: Cooking Q&A (Seasoned Advice)", bytes: 238_098_128, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "b5dc3a79b681be1afea32dd65e837c604e7dd7072f51622414a7a1d61fc52541", url: `${ZIM}/stack_exchange/cooking.stackexchange.com_en_all_2026-10.zim` },
32
+ { id: "stackexchange-chemistry", title: "Stack Exchange: Chemistry Q&A", bytes: 419_958_885, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "29df06f911373044997678301ebe894ef10fdf15c8e83d39ab83f7ae91f65394", url: `${ZIM}/stack_exchange/chemistry.stackexchange.com_en_all_2026-10.zim` },
33
+ { id: "stackexchange-gardening", title: "Stack Exchange: Gardening & Landscaping Q&A", bytes: 933_097_375, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "8079b77ba40d830c31cdfa0e3f43a100e9d9488d856b10ffb3aca4e829594e6e", url: `${ZIM}/stack_exchange/gardening.stackexchange.com_en_all_2026-10.zim` },
34
+ { id: "stackexchange-diy", title: "Stack Exchange: Home Improvement Q&A", bytes: 2_086_024_326, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "df795a094698282164ddee422814f88bf84841a2413c89ac23401efd71f22731", url: `${ZIM}/stack_exchange/diy.stackexchange.com_en_all_2026-10.zim` },
35
+ { id: "stackexchange-electronics", title: "Stack Exchange: Electronics Q&A", bytes: 4_261_397_539, license: "cc-by-sa-4.0", level: "pocket", source: "stackexchange", version: "2026-10", sha256: "b28e58b24ed55c602265729b34b0c6cc4e12228e6fe2f55df5b5e9eae169b266", url: `${ZIM}/stack_exchange/electronics.stackexchange.com_en_all_2026-10.zim` },
36
+ { id: "wikipedia-mini", title: "Wikipedia: the introduction of each article", bytes: 14_386_799_064, license: "cc-by-sa-4.0", level: "pocket", source: "wikipedia-en", version: "2026-09", sha256: "350d8956ee3d7abe2839c464c3a983f93d6934a16c7f04b10715b49439dfd349", url: `${ZIM}/wikipedia/wikipedia_en_all_mini_2026-09.zim` },
37
+ { id: "wikipedia-all", title: "Wikipedia: all articles, with no pictures", bytes: 52_690_706_555, license: "cc-by-sa-4.0", level: "shelf", source: "wikipedia-en", version: "2026-06", sha256: "441a56d9e05b2d98f8ae9acb7986a513ed47904d73852c92dc6b7d50baa122e5", url: `${ZIM}/wikipedia/wikipedia_en_all_nopic_2026-06.zim` },
38
+ ];
@@ -0,0 +1,43 @@
1
+ // The open cells of the coverage gate: each key and horizon from 5 minutes to 5 years that has no step yet.
2
+ // The coverage gate fails each of them. A test holds this list, so it can only get shorter.
3
+
4
+ /**
5
+ * The cells with no step, as `<key>/<phase>`, in the sequence of the matrix.
6
+ * Each cell is open until a cited step fills it. The items G8, G9 and G10 of the roadmap fill them.
7
+ */
8
+ export const OPEN_CELLS: readonly string[] = [
9
+ "met.winter.storm/P3",
10
+ "met.heat.extreme/P3",
11
+ "met.tornado/P3",
12
+ "infra.power.outage/P0",
13
+ "infra.power.outage/P1",
14
+ "infra.power.outage/P2",
15
+ "infra.power.outage/P3",
16
+ "infra.water.outage/P0",
17
+ "infra.water.outage/P1",
18
+ "infra.water.outage/P2",
19
+ "infra.water.outage/P3",
20
+ "health.outbreak/P0",
21
+ "health.outbreak/P1",
22
+ "health.medical-emergency/P1",
23
+ "health.medical-emergency/P2",
24
+ "health.medical-emergency/P3",
25
+ "cbrne.hazardous-materials/P3",
26
+ "energy.grid/P4",
27
+ "energy.grid/P5",
28
+ "water.main/P4",
29
+ "water.main/P5",
30
+ "road.local/P0",
31
+ "road.local/P4",
32
+ "road.local/P5",
33
+ "telecom.network/P0",
34
+ "telecom.network/P3",
35
+ "telecom.network/P4",
36
+ "telecom.network/P5",
37
+ "gas.main/P3",
38
+ "gas.main/P4",
39
+ "gas.main/P5",
40
+ "store.pharmacy/P0",
41
+ "store.pharmacy/P1",
42
+ "store.pharmacy/P5",
43
+ ];
@@ -0,0 +1,58 @@
1
+ // The marked gaps of the content: each key and phase that has no step on purpose, with the reason.
2
+
3
+ import type { Gap } from "@mark1russell7/guidebook-plans";
4
+
5
+ const OF_GRID = "This case is the power cut itself. The steps of the cut `energy.grid` apply.";
6
+ const OF_WATER = "This case is the water cut itself. The steps of the cut `water.main` apply.";
7
+ const NO_HOME_STEP = "The emergency team and the hospital give the care after the first minutes. The sources give no household step.";
8
+
9
+ const NO_LONG_STEP = "The sources give no step for a cut of this length. The steps of the earlier phases continue.";
10
+
11
+ /** The marked gaps of the cases and the cuts. */
12
+ export const GAPS: readonly Gap[] = [
13
+ { on: "met.winter.storm", phase: "P3", why: "The source gives no step past the first days of the storm. The steps of the cuts apply." },
14
+ { on: "met.heat.extreme", phase: "warned", why: "The source gives no separate step for a heat warning. The steps of P0 and P1 apply." },
15
+ { on: "met.heat.extreme", phase: "P3", why: "The source gives no step past the first days of the heat. The steps of P2 continue." },
16
+ { on: "met.tornado", phase: "P3", why: "The source gives no step past the cleanup. The steps of the cuts apply." },
17
+ { on: "geo.earthquake", phase: "warned", why: "An earthquake alert comes only seconds before the shaking. Do the steps of P0 immediately." },
18
+ { on: "fire.structure", phase: "warned", why: "A house fire gives no warning before the smoke alarm. The steps of P0 apply." },
19
+ { on: "cbrne.hazardous-materials", phase: "P3", why: "The source gives no step past the decontamination and the medical check." },
20
+ { on: "health.outbreak", phase: "P0", why: "An outbreak grows over days, not minutes. The steps of the warning continue." },
21
+ { on: "health.outbreak", phase: "P1", why: "An outbreak grows over days, not hours. The steps of the warning continue." },
22
+ { on: "energy.grid", phase: "warned", why: "A power cut often comes with no warning. The warning steps of the case and of the network apply." },
23
+ { on: "energy.grid", phase: "P4", why: NO_LONG_STEP },
24
+ { on: "energy.grid", phase: "P5", why: NO_LONG_STEP },
25
+ { on: "water.main", phase: "warned", why: "A break of a water main comes with no warning. The stored water of the ready phase is the protection." },
26
+ { on: "water.main", phase: "P4", why: NO_LONG_STEP },
27
+ { on: "water.main", phase: "P5", why: NO_LONG_STEP },
28
+ { on: "road.local", phase: "P0", why: "A closed road does not change the first minutes at home. The steps of the case apply." },
29
+ { on: "road.local", phase: "P4", why: NO_LONG_STEP },
30
+ { on: "road.local", phase: "P5", why: NO_LONG_STEP },
31
+ { on: "telecom.network", phase: "P0", why: "A cut of the network does not change the first minutes. The steps of the case apply." },
32
+ { on: "telecom.network", phase: "P3", why: NO_LONG_STEP },
33
+ { on: "telecom.network", phase: "P4", why: NO_LONG_STEP },
34
+ { on: "telecom.network", phase: "P5", why: NO_LONG_STEP },
35
+ { on: "gas.main", phase: "warned", why: "A gas leak gives no warning before you smell it or hear it." },
36
+ { on: "gas.main", phase: "P3", why: NO_LONG_STEP },
37
+ { on: "gas.main", phase: "P4", why: NO_LONG_STEP },
38
+ { on: "gas.main", phase: "P5", why: NO_LONG_STEP },
39
+ { on: "store.pharmacy", phase: "P0", why: "A closed pharmacy does not change the first minutes. The steps of the case apply." },
40
+ { on: "store.pharmacy", phase: "P1", why: "A closed pharmacy does not change the first hours. The medicines of the ready phase are the protection." },
41
+ { on: "store.pharmacy", phase: "P5", why: NO_LONG_STEP },
42
+ { on: "infra.power.outage", phase: "ready", why: OF_GRID },
43
+ { on: "infra.power.outage", phase: "warned", why: OF_GRID },
44
+ { on: "infra.power.outage", phase: "P0", why: OF_GRID },
45
+ { on: "infra.power.outage", phase: "P1", why: OF_GRID },
46
+ { on: "infra.power.outage", phase: "P2", why: OF_GRID },
47
+ { on: "infra.power.outage", phase: "P3", why: OF_GRID },
48
+ { on: "infra.water.outage", phase: "ready", why: OF_WATER },
49
+ { on: "infra.water.outage", phase: "warned", why: OF_WATER },
50
+ { on: "infra.water.outage", phase: "P0", why: OF_WATER },
51
+ { on: "infra.water.outage", phase: "P1", why: OF_WATER },
52
+ { on: "infra.water.outage", phase: "P2", why: OF_WATER },
53
+ { on: "infra.water.outage", phase: "P3", why: OF_WATER },
54
+ { on: "health.medical-emergency", phase: "warned", why: "A medical emergency comes with no warning. The steps of P0 apply." },
55
+ { on: "health.medical-emergency", phase: "P1", why: NO_HOME_STEP },
56
+ { on: "health.medical-emergency", phase: "P2", why: NO_HOME_STEP },
57
+ { on: "health.medical-emergency", phase: "P3", why: NO_HOME_STEP },
58
+ ];
@@ -0,0 +1,32 @@
1
+ // The cited rates of loss of the kinds of media, for the plan of copies of the library add-on.
2
+ // The rates come from drives that run all the time in a data center. A drive that sits with no power can be different.
3
+
4
+ import type { CitedUnit } from "@mark1russell7/guidebook";
5
+ import type { MediumKind } from "@mark1russell7/guidebook-library";
6
+
7
+ /** The fact units of the rates. */
8
+ export const MEDIA_UNITS: readonly CitedUnit[] = [
9
+ {
10
+ id: "media.hdd.afr",
11
+ use: "fact",
12
+ text: "The lifetime annualized failure rate of all the hard drives of Backblaze is 1.41%, to 2026-06-30.",
13
+ source: "backblaze-hdd-2026q2",
14
+ locator: "The lifetime table, the row Totals",
15
+ },
16
+ {
17
+ id: "media.ssd.afr",
18
+ use: "fact",
19
+ text: "The lifetime annualized failure rate of all the SSD boot drives of Backblaze is 0.90%, from Q4 2018 to Q2 2023.",
20
+ source: "backblaze-ssd-2023",
21
+ locator: "The section of the lifetime rates",
22
+ },
23
+ ];
24
+
25
+ /** The yearly loss of each kind with a cited rate, and the unit of the rate. */
26
+ export const MEDIUM_LOSSES: Readonly<Partial<Record<MediumKind, { readonly yearlyLoss: number; readonly unit: string }>>> = {
27
+ hdd: { yearlyLoss: 0.0141, unit: "media.hdd.afr" },
28
+ ssd: { yearlyLoss: 0.009, unit: "media.ssd.afr" },
29
+ };
30
+
31
+ /** The kinds with no cited rate. A plan of copies cannot use them until a source gives a rate. */
32
+ export const MEDIUM_GAPS: readonly MediumKind[] = ["flash", "optical", "paper"];
@@ -0,0 +1,48 @@
1
+ // The sources of the preparedness content. This list is shared by all the add-ons of the content. Add a source at the end, and do not change an id.
2
+ // The sources of the steps are pages of US federal agencies, so their text is in the US public domain (17 U.S.C. 105).
3
+ // The sources of the bundles are open wikis under a share-alike license.
4
+
5
+ import type { Source } from "@mark1russell7/guidebook";
6
+
7
+ /** The date of the last check of the sources against their pages. */
8
+ export const CHECKED = "2026-11-21";
9
+
10
+ const federal = (id: string, by: string, title: string, url: string): Source => ({ id, title, url, license: "us-public-domain", checked: CHECKED, by });
11
+
12
+ /** The sources of the content, each with its id, its title, its address and the date of its last check. */
13
+ export const SOURCES: readonly Source[] = [
14
+ federal("ready-winter", "Ready.gov", "Winter Weather", "https://www.ready.gov/winter-weather"),
15
+ federal("ready-hurricanes", "Ready.gov", "Hurricanes", "https://www.ready.gov/hurricanes"),
16
+ federal("ready-floods", "Ready.gov", "Floods", "https://www.ready.gov/floods"),
17
+ federal("ready-heat", "Ready.gov", "Extreme Heat", "https://www.ready.gov/heat"),
18
+ federal("ready-tornadoes", "Ready.gov", "Tornadoes", "https://www.ready.gov/tornadoes"),
19
+ federal("ready-earthquakes", "Ready.gov", "Earthquakes", "https://www.ready.gov/earthquakes"),
20
+ federal("ready-fire", "Ready.gov", "Home Fires", "https://www.ready.gov/home-fires"),
21
+ federal("ready-wildfires", "Ready.gov", "Wildfires", "https://www.ready.gov/wildfires"),
22
+ federal("ready-hazmat", "Ready.gov", "Chemicals and Hazardous Materials Incidents", "https://www.ready.gov/hazmat"),
23
+ federal("ready-radiation", "Ready.gov", "Radiation Emergencies", "https://www.ready.gov/radiation"),
24
+ federal("ready-pandemic", "Ready.gov", "Pandemics", "https://www.ready.gov/pandemic"),
25
+ federal("ready-evacuation", "Ready.gov", "Evacuation", "https://www.ready.gov/evacuation"),
26
+ federal("ready-power", "Ready.gov", "Power Outages", "https://www.ready.gov/power-outages"),
27
+ federal("ready-water", "Ready.gov", "Water", "https://www.ready.gov/water"),
28
+ federal("ready-kit", "Ready.gov", "Build a Kit", "https://www.ready.gov/kit"),
29
+ federal("ready-safety", "Ready.gov", "Safety Skills", "https://www.ready.gov/safety-skills"),
30
+ federal("cdc-co", "CDC", "Carbon Monoxide Poisoning Basics", "https://www.cdc.gov/carbon-monoxide/about/index.html"),
31
+ federal("cdc-water", "CDC", "How to Make Water Safe in an Emergency", "https://www.cdc.gov/water-emergency/about/index.html"),
32
+ federal("fda-drugs", "FDA", "Safe Drug Use After a Natural Disaster", "https://www.fda.gov/drugs/emergency-preparedness-drugs/safe-drug-use-after-natural-disaster"),
33
+ // The text of the Wikimedia projects is CC BY-SA 4.0 (Terms of Use, section 7, in effect from 2023-06-07).
34
+ { id: "wikipedia-en", title: "Wikipedia, the English edition", url: "https://en.wikipedia.org/", license: "cc-by-sa-4.0", checked: CHECKED, by: "Wikipedia contributors" },
35
+ { id: "wikibooks-en", title: "Wikibooks, the English edition", url: "https://en.wikibooks.org/", license: "cc-by-sa-4.0", checked: CHECKED, by: "Wikibooks contributors" },
36
+ // The page Appropedia:Intellectual_property says that the content "defaults to" CC BY-SA 4.0. Its data table says 3.0. The two permit a bundle.
37
+ { id: "appropedia", title: "Appropedia", url: "https://www.appropedia.org/", license: "cc-by-sa-4.0", checked: CHECKED, by: "Appropedia contributors" },
38
+ // The footer of each page of energypedia gives CC BY-SA 4.0.
39
+ { id: "energypedia", title: "energypedia", url: "https://energypedia.info/", license: "cc-by-sa-4.0", checked: CHECKED, by: "energypedia contributors" },
40
+ federal("cdc-heart", "CDC", "About Heart Attack Symptoms, Risk, and Recovery", "https://www.cdc.gov/heart-disease/about/heart-attack.html"),
41
+ federal("cdc-stroke", "CDC", "Signs and Symptoms of Stroke", "https://www.cdc.gov/stroke/signs-symptoms/index.html"),
42
+ // The data dump of Stack Exchange, Inc. on archive.org gives CC BY-SA 4.0 for all user content of the network.
43
+ // A use shows the network as the source, links each question, and shows and links the name of each author.
44
+ { id: "stackexchange", title: "The Stack Exchange network", url: "https://archive.org/details/stackexchange", license: "cc-by-sa-4.0", checked: CHECKED, by: "Stack Exchange contributors" },
45
+ // Backblaze gives the failure rates of the drives of its data centers. The units cite each rate as a fact, so the license permits the use.
46
+ { id: "backblaze-hdd-2026q2", title: "Backblaze Drive Stats for Q2 2026", url: "https://www.backblaze.com/blog/backblaze-drive-stats-for-q2-2026/", license: "all-rights-reserved", checked: CHECKED, by: "Backblaze" },
47
+ { id: "backblaze-ssd-2023", title: "SSD Edition: 2023 Drive Stats Mid-Year Review", url: "https://www.backblaze.com/blog/ssd-edition-2023-mid-year-drive-stats-review/", license: "all-rights-reserved", checked: CHECKED, by: "Backblaze" },
48
+ ];