orbrewer[colors][breakpoints.length + 1];
                            } catch {
                                if (breakpoints.length < Math.min(...Object.keys(colorbrewer[colors]))) {
                                    palette = colorbrewer[colors][Math.min(...Object.keys(colorbrewer[colors]))];
                                } else if (breakpoints.length >= Math.max(...Object.keys(colorbrewer[colors]))) {
                                    palette = colorbrewer[colors][Math.max(...Object.keys(colorbre