Code accompanying the study Quantifying Resilience in Non-Autonomous and Stochastic Earth System Dynamics with Application to Glacial-Interglacial Cycles (Harteg et al., 2025)