@carbonplan/components 12.0.0-develop.3 → 12.0.0
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/dst/index.esm.js +1 -1
- package/dst/index.esm.js.map +1 -1
- package/dst/index.js +1 -1
- package/dst/index.js.map +1 -1
- package/dst/index.modern.js +1 -1
- package/dst/index.modern.js.map +1 -1
- package/package.json +3 -3
package/dst/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{Children as t,forwardRef as n,cloneElement as r,useRef as o,useState as a,useEffect as i,useCallback as l}from"react";import{Box as c,Image as s,Grid as m,Link as p,Flex as d,useThemeUI as u,IconButton as x,Container as h,useColorMode as f,Text as g,Input as b,Slider as E}from"theme-ui";import{transparentize as y}from"@theme-ui/color";import v from"next/link";import{Arrow as w,Sun as k,RotatingArrow as C}from"@carbonplan/icons";import{PoopSad as S}from"@carbonplan/emoji";import z from"next/head";import{keyframes as W}from"@emotion/react";function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(this,arguments)}function A(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var L=["color","width","maxWidth","name","github","alt","src","sx"],T=function(t){var n,r,o=t.color,a=void 0===o?"transparent":o,i=t.width,l=void 0===i?"90px":i,m=t.maxWidth,p=t.name,d=t.github,u=t.alt,x=t.src,h=t.sx,f=A(t,L);return p||x||d||console.warn("must specify either name, github, or src"),p?(n="https://images.carbonplan.org/team/"+p.toLowerCase().replace(" ","-")+".png",r=u||p):d?(n="https://github.com/"+d+".png",r=u||d):(n=x,r=u),e.createElement(c,M({sx:M({width:l,maxWidth:m,height:"auto",borderRadius:"50%",position:"relative",display:"inline-block",verticalAlign:"top",bg:a},h)},f),e.createElement(s,{alt:r,src:n,sx:{opacity:a&&"transparent"!==a?.25:1,filter:a&&"transparent"!==a?"grayscale(100%) contrast(200%) brightness(100%)":"none",width:"100%",borderRadius:"50%",display:"block"}}))},F=["children","sx","columns","gap"],I=function(t){var n,r,o=t.children,a=t.sx,i=t.columns,l=t.gap,c=A(t,F),s=function(e){if(Array.isArray(e)||(e=[e,e,e,e]),Array.isArray(e)&&![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length&&(e=e.map(function(e){return[e]}).flat()),Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};return Number.isInteger(l)||Array.isArray(l)?(n=l=s(l),r=l):(n=[4,5,5,6],r=[0,0,0,0]),i=Number.isInteger(i)||Array.isArray(i)?s(i):[6,8,12,12],e.createElement(m,M({},c,{columns:i,sx:M({columnGap:n,rowGap:r},a)}),o)},O=["start","width","dl","dr","children","sx"],B=function(t){var n=t.start,r=t.width,o=t.dl,a=t.dr,i=t.children,l=t.sx,s=A(t,O);r=r||"auto";var m=function(e){if(e&&!Array.isArray(e)&&(e=[e]),![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length?e=e.map(function(e){return[e,e,e,e]}).flat():Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};n=m(n=n||"auto"),r=m(r);var p,d,u=n.map(function(e,t){return"auto"==e?"auto":e+r[t]});if(o){if(![.5,1].includes(o))throw new Error("dl must be 0.5 or 1");.5===o&&(p=["-12px",-3,-3,-4]),1===o&&(p=[-4,-5,-5,-6])}if(a){if(![.5,1].includes(a))throw new Error("dr must be 0.5 or 1");.5===a&&(d=["-12px",-3,-3,-4]),1===a&&(d=[-4,-5,-5,-6])}return e.createElement(c,M({},s,{sx:M({gridColumnStart:n,gridColumnEnd:u,ml:p,mr:d},l)}),i)},R={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},D=function(t){var n,r=t.children,o=t.direction,a=void 0===o?"vertical":o,i=t.spacing,l=void 0===i?"md":i,s=t.sx;if(n="string"==typeof l&&R.hasOwnProperty(l)?R[l]:l,!["horizontal","vertical"].includes(a))throw new Error("Invalid direction value. Must be either horizontal or vertical");var m="vertical"===a?"mb":"mr",p="horizontal"===a?{display:"inline-block"}:{};return e.createElement(c,{sx:s},e.Children.map(r,function(t,o){var a;return e.createElement(c,{sx:M((a={},a[m]=o<r.length-1?n:0,a),p)},t)}))},H=["members","direction","align","spacing","limit","width","maxWidth","fixedCount","sx"],j={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},_=function(t){return e.createElement(c,{sx:{bg:"muted",height:"100%",maxWidth:t.maxWidth,borderRadius:"50%"}},e.createElement(c,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},e.createElement(c,{sx:{fontFamily:"mono",letterSpacing:"mono",fontSize:[3,3,3,4]}},"+",t.overflow)))},V=function(t){var n,r=t.members,o=t.direction,a=void 0===o?"horizontal":o,i=t.align,l=t.spacing,c=void 0===l?"md":l,s=t.limit,m=t.width,p=t.maxWidth,d=t.fixedCount,u=t.sx,x=A(t,H);n=j.hasOwnProperty(c)?j[c]:c;var h=function(e){return"auto"};i&&(Array.isArray(i)||(i=[i]),h=function(e){return i.map(function(t){if("left"===t)return"auto";if("right"===t)return(Math.max(1,d-r.length+1)+e)%d;throw Error("alignment '"+i+"' not recognized")})});var f=r.length>s,g=r.length-s+1;return e.createElement(e.Fragment,null,d&&e.createElement(I,M({columns:d,gap:n,sx:u},x),r.map(function(t,n){return e.createElement(B,{key:n,start:h(n)},(!f||n<s-1)&&e.createElement(T,M({},t,{width:m,maxWidth:p})),f&&n===s-1&&e.createElement(_,{overflow:g,maxWidth:p}))})),!d&&e.createElement(D,M({direction:a,spacing:c,sx:u},x),r.map(function(t,n){return e.createElement(T,M({key:n},t,{width:m,maxWidth:p}))})))},N=["sx","children"],P=function(t){var n=t.sx,r=t.children,o=A(t,N),a=n&&n.color?n.color:"primary";return e.createElement(c,M({sx:M({display:"inline-block",width:"fit-content",height:["24px","24px","24px","26px"],borderRadius:"5px",backgroundColor:"primary"==a||"secondary"==a?"muted":y(a,.7),textAlign:"center",userSelect:"none",fontSize:[2,2,2,3]},n)},o),e.createElement(c,{sx:{letterSpacing:"0.02em",fontFamily:"mono",mt:["1px","1px","1px","0px"],px:[1,1,1,"5px"],color:a}},r))},G=["“",'"',"'","‘"],Y=function(n){var r=n.children;return e.createElement(c,{variant:"styles.blockquote"},t.map(r,function(t,n){var o="",a=r;return t.props&&"string"==typeof t.props.children?(o=t.props.children.slice(0,1),a=t.props.children.slice(1)):"string"==typeof t&&(o=t.slice(0,1),a=t.slice(1)),e.createElement(e.Fragment,null,G.includes(o)&&e.createElement(c,{as:"span",sx:{position:"absolute",ml:"-0.4em"}},o),G.includes(o)?a:t)}))},X=["href","children","internal","tracking"],U=n(function(t,n){var r=t.href,o=t.children,a=t.internal,i=void 0!==a&&a,l=t.tracking,c=void 0!==l&&l,s=A(t,X);if(i||r&&r.startsWith("/"))return e.createElement(v,{href:r,passHref:!0},e.createElement(p,M({ref:n},s),o));if(c){var m,d;r&&r.includes("pdf")?(m="PDF",d="download"):(m="website",d="external");var u=function(e){!function(e){var t=e.action;"function"==typeof window.gtag?window.gtag("event",t,{event_category:e.category,event_label:e.label,value:e.value}):console.warn("Missing window.gtag, skipping analytics action: '"+t+"'.")}({action:m,category:d,label:r})};return e.createElement(p,M({ref:n,onClick:u,onContextMenu:u,href:r},s),o)}return e.createElement(p,M({ref:n,href:r},s),o)}),q=function(e){if(!["xs","sm","md","lg","xl"].includes(e))throw new Error("Size must be xs, sm, md, lg, or xl");var t,n,r,o;return"xs"===e&&(t=[2,2,2,3],n="body",r="body",o=[1.2]),"sm"===e&&(t=[3,3,3,4],n="body",r="body",o=[1.2]),"md"===e&&(t=[4,4,4,5],n="body",r="body",o=[1.2]),"lg"===e&&(t=[5,5,6,7],n="heading",r="heading",o=[1.2,1.2,1.25,1.25]),"xl"===e&&(t=[6,7,8,9],n="heading",r="heading",o=[1.25]),{fontSize:t,fontFamily:n,letterSpacing:r,lineHeight:o}},K=["size","prefix","suffix","inverted","sx","children","align","href","internal","tracking"],Z=["color"],J=n(function(t,n){var o,a,i,l,s,m=t.size,p=void 0===m?"sm":m,d=t.prefix,u=t.suffix,x=t.inverted,h=t.sx,f=t.children,g=t.align,b=t.href,E=t.internal,y=t.tracking,v=A(t,K);if(!["xs","sm","md","lg","xl"].includes(p))throw new Error("Size must be xs, sm, md, lg, or xl");var w,k,C,S,z,W,L=h||{},T=L.color,F=A(L,Z),I=T||(x?"secondary":"primary"),O=T||x?"primary":"secondary";"xs"===p&&(a=["6px","6px","6px","6px"],i=[12,12,12,13],l=[12,12,12,13],s=[1.5,1.5,1.5,1.5],o={transform:"translateY(0.25px)"}),"sm"===p&&(a=["7px","7px","7px","7px"],i=[13,13,13,18],l=[13,13,13,18],s=[1.5,1.5,1.5,2],o={transform:"translateY(0.25px)"}),"md"===p&&(a=["8px","8px","8px","8px"],i=[18,18,18,24],l=[18,18,18,24],s=[2,2,2,3]),"lg"===p&&(a=["10px","10px","12px","16px"],i=[24,24,34,46],l=[24,24,34,46],s=[3,3,4,5]),"xl"===p&&(a=["12px","16px","18px","20px"],i=[34,46,56,68],l=[34,46,56,68],s=[4,5,6,7]),g?(C=g,S=g):d&&u?(C="initial",S="initial"):d?C="initial":u&&(S="middle"),z="middle"===C?{}:o,W="middle"===S?{}:o,d&&(w={"&:hover > #prefix-span > #prefix":M({color:O},d.type.hover)},d=r(d,{id:"prefix",sx:M({position:"relative",height:i,width:l,mr:f?a:[0],strokeWidth:s,verticalAlign:C,transition:"color 0.15s, transform 0.15s"},d.props.sx)})),u&&(k={"&:hover > #suffix-span >#suffix":M({color:O},u.type.hover)},u=r(u,{id:"suffix",sx:M({height:i,width:l,ml:f?a:[0],strokeWidth:s,verticalAlign:S,transition:"color 0.15s, transform 0.15s"},u.props.sx)}));var B=M({},q(p),{lineHeight:1.05,border:"none",background:"transparent",display:"block",color:I,padding:[0],textAlign:"left",cursor:"pointer",width:"fit-content","@media (hover: hover) and (pointer: fine)":M({"&:hover":{color:O}},k,w)},F),R=e.createElement(e.Fragment,null,e.createElement(c,{as:"span",id:"prefix-span",sx:M({display:"inline-block"},z)},d&&d),e.createElement(c,{as:"span",sx:{transition:"color 0.15s"}},f),e.createElement(c,{as:"span",id:"suffix-span",sx:M({display:"inline-block"},W)},u&&u));return b?e.createElement(U,M({ref:n,href:b,internal:E,tracking:y,sx:M({},B,{textDecoration:"none"})},v),R):e.createElement(c,M({ref:n,as:"button",sx:B},v),R)}),Q=["label","children","inverted","color","href","internal","tracking","sx"],$=n(function(t,n){var r=t.label,o=t.children,a=t.inverted,i=t.color,l=t.href,s=t.internal,m=t.tracking,p=t.sx,d=A(t,Q),u=i||(a?"secondary":"primary"),x=i||a?"primary":"secondary",h=M({border:"none",padding:[0],fontSize:[3,3,3,4],color:u,background:"transparent",textDecoration:"none",fontFamily:"body",lineHeight:"h3",letterSpacing:"body",width:"fit-content",cursor:"pointer",textAlign:"left",mb:[1],"@media (hover: hover) and (pointer: fine)":{"&:hover > #container > #arrow":{transform:"rotate(45deg)",fill:x},"&:hover":{color:x}}},p),f=e.createElement(e.Fragment,null,e.createElement(c,{sx:{transition:"0.15s",letterSpacing:"body",pb:["6px"]}},o),e.createElement(c,{sx:{transition:"0.15s",display:"inline-block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]}},r),e.createElement(c,{as:"span",id:"container",sx:{ml:[2],display:"inline-block"}},e.createElement(w,{id:"arrow",sx:{transition:"fill 0.15s, transform 0.15s",position:"relative",top:["2px"],color:u,height:[15,15,15,17],width:[15,15,15,17]}})));return l?e.createElement(U,M({ref:n,href:l,internal:s,tracking:m,sx:h},d),f):e.createElement(c,M({ref:n,as:"button",sx:h},d),f)}),ee=function(t){var n=t.as,r=t.number,o=t.children,a=t.label;return e.createElement(c,{as:void 0===n?"figcaption":n,sx:{color:"secondary",display:"block",textAlign:"left",fontSize:[2,2,2,3],"& a":{color:"secondary"},"& a:hover":{color:"primary"},"& > p":{display:"inline",fontSize:[2,2,2,3]}}},r&&e.createElement(e.Fragment,null,e.createElement(c,{sx:{textTransform:"uppercase",letterSpacing:"smallcaps",display:"inline-block"}},void 0===a?"figure":a," ",r)," ",e.createElement(c,{sx:{display:"inline-block",mx:[1],pr:[1]}},"/")),o)},te=["colormap","label","clim","setClim","setClimStep","discrete","units","width","height","format","horizontal","bottom","sx","sxClim"],ne=function(e){return{bg:"unset",border:"none",color:"primary",px:0,fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase",transition:"border 0.15s",userSelect:e?"none !important":"unset",width:"fit-content",minWidth:"fit-content"}},re={width:["10px","16px","16px","17px"],height:["80px","110px","110px","130px"]},oe=function(t){var n=t.colormap,r=t.discrete,o=t.horizontal,a=t.width,i=t.height,l=1/n.length*100,s="linear-gradient(to "+(o?"right":"top")+", "+n.map(function(e,t){return"rgb("+e+") "+t*l+"% "+(r&&t<n.length-1?(t+1)*l+"%":"")}).join(",")+")";return e.createElement(c,{sx:M({},o?{width:a||re.height,height:i||re.width}:{width:a||re.width,minHeight:i||re.height},{mt:o?["1px","1px","1px",0]:0,border:function(e){return"solid 1px "+e.colors.hinted},background:s})})},ae=function(t){var n=t.label,r=t.units,o=t.horizontal;return e.createElement(c,{sx:!o&&{width:["13px","17px","17px","19px"],alignSelf:"flex-end"}},e.createElement(c,{sx:M({mb:o?0:["-4px","-4px","-4px","-3px"],fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase"},o?{}:{writingMode:"vertical-rl",transform:"rotate(180deg)",whiteSpace:"nowrap",display:"inline-block",overflow:"visible"})},n," ",e.createElement(c,{as:"span",sx:{textTransform:"none",color:"secondary",display:"inline-block"}},r)))},ie=function(t){var n=t.colormap,r=t.label,l=t.clim,s=t.setClim,m=t.setClimStep,p=void 0===m?1:m,u=t.discrete,x=t.units,h=t.width,f=t.height,g=t.format,b=void 0===g?function(e){return e}:g,E=t.horizontal,y=void 0!==E&&E,v=t.bottom,w=void 0!==v&&v,k=t.sx,C=t.sxClim,S=A(t,te);if(!Array.isArray(n))throw new Error("expected array for colormap, got '"+n+"'.");var z,W,L,T=[o(),o()],F=a(!1),I=F[0],O=F[1],B=a(!1),R=B[0],D=B[1],H=0,j=null,_=[0,0],V=p,N=function(e){"min"!==j||I||O(!0),"max"!==j||R||D(!0),L=e.pageX-z,H=e.pageY-W,y?("min"===j&&s(function(e){return[Math.min(_[0]+L*V,_[1]),e[1]]}),"max"===j&&s(function(e){return[e[0],Math.max(_[1]+L*V,_[0])]})):("min"===j&&s(function(e){return[Math.min(_[0]-H*V,_[1]),e[1]]}),"max"===j&&s(function(e){return[e[0],Math.max(_[1]-H*V,_[0])]}))},P=function(e){W=e.pageY,z=e.pageX,j=e.target.id,_=l,document.body.setAttribute("style",y?"cursor: ew-resize !important":"cursor: ns-resize !important"),document.addEventListener("mousemove",N),window.addEventListener("mouseup",function e(){document.body.setAttribute("style","cursor: unset"),document.removeEventListener("mousemove",N),window.removeEventListener("mouseup",e),"min"===j&&O(!1),"max"===j&&D(!1)})};i(function(){var e=function(e){(["ArrowUp","ArrowRight"].includes(e.code)||["ArrowUp","ArrowRight"].includes(e.key))&&function(e){T[0].current===document.activeElement&&(e.preventDefault(),s(function(e){return[Math.min(e[0]+V,e[1]),e[1]]}),T[0].current.focus()),T[1].current===document.activeElement&&(e.preventDefault(),s(function(e){return[e[0],Math.max(e[1]+V,e[0])]}),T[1].current.focus())}(e),(["ArrowDown","ArrowLeft"].includes(e.code)||["ArrowDown","ArrowLeft"].includes(e.key))&&function(e){T[0].current===document.activeElement&&(e.preventDefault(),s(function(e){return[Math.min(e[0]-V,e[1]),e[1]]}),T[0].current.focus()),T[1].current===document.activeElement&&(e.preventDefault(),s(function(e){return[e[0],Math.max(e[1]-V,e[0])]}),T[1].current.focus())}(e)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[l]);var G=function(){return e.createElement(c,{id:"min",as:s?"button":"div",ref:T[0],tabIndex:0,sx:M({},ne(s),{ml:r?y?w?"0px":"10px":["2px","1px","1px","2px"]:0,mr:y?["2px","1px","1px","2px"]:0,mb:y?0:["-2px","-2px","-2px","-3px"],borderBottom:s?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:s?y?"ew-resize":"ns-resize":"default"},C),onMouseDown:s?P:function(){},onClick:function(){return T[0].current.focus()}},b(l[0]))},Y=function(){return e.createElement(c,{id:"max",as:s?"button":"div",ref:T[1],tabIndex:0,sx:M({},ne(s),{ml:["2px","1px","1px","2px"],mt:y?0:["-2px","-3px","-3px","-3px"],borderBottom:s?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:s?y?"ew-resize":"ns-resize":"default"},C),onMouseDown:s?P:function(){},onClick:function(){return T[1].current.focus()}},b(l[1]))};return e.createElement(d,M({},S,{sx:M({flexDirection:"row",alignItems:"start",justifyContent:"flex-start",gap:["3px","6px","6px","7px"],height:y?"unset":"100%"},k)}),r&&e.createElement(ae,{label:r,units:x,horizontal:y}),e.createElement(d,{sx:{flexGrow:y?1:"unset",flexDirection:"column",ml:w&&r?"4px":"0px",height:y?"unset":"100%"}},e.createElement(d,{sx:{gap:["3px","6px","6px","7px"],height:y?"unset":"100%"}},y&&l&&!w&&e.createElement(G,null),e.createElement(oe,{colormap:n,horizontal:y,discrete:u,width:h,height:f}),y&&l&&!w&&e.createElement(Y,null)),y&&l&&w&&e.createElement(d,{sx:{justifyContent:"space-between"}},e.createElement(G,null),e.createElement(Y,null))),!y&&e.createElement(d,{sx:{flexDirection:"column-reverse",justifyContent:"space-between",height:f||re.height}},l&&e.createElement(G,null),l&&e.createElement(Y,null)))},le=["sx","color","children"],ce=function(t){var n=t.sx,r=t.color,o=t.children,a=A(t,le);return e.createElement(c,M({as:"span",sx:M({display:"inline-block",color:r},n)},a),o)},se={Primary:function(t){return e.createElement(ce,M({color:"primary"},t))},Secondary:function(t){return e.createElement(ce,M({color:"secondary"},t))},Background:function(t){return e.createElement(ce,M({color:"background"},t))},Red:function(t){return e.createElement(ce,M({color:"red"},t))},Orange:function(t){return e.createElement(ce,M({color:"orange"},t))},Yellow:function(t){return e.createElement(ce,M({color:"yellow"},t))},Green:function(t){return e.createElement(ce,M({color:"green"},t))},Teal:function(t){return e.createElement(ce,M({color:"teal"},t))},Blue:function(t){return e.createElement(ce,M({color:"blue"},t))},Purple:function(t){return e.createElement(ce,M({color:"purple"},t))},Pink:function(t){return e.createElement(ce,M({color:"pink"},t))},Grey:function(t){return e.createElement(ce,M({color:"grey"},t))}},me=function(t){var n=t.title,r=t.description,o=t.card,a=u(),i=a.theme,l=a.colorMode;r||console.warn("a custom description should be used for search engine optimization"),n||console.warn("a custom title should be used for search engine optimization");var c=n||"CarbonPlan",s=r||"Improving the transparency and scientific integrity of climate solutions with open data and tools.",m=o||"https://images.carbonplan.org/social/homepage.png";return e.createElement(z,null,e.createElement("title",null,c),e.createElement("meta",{name:"description",content:s}),e.createElement("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),e.createElement("link",{rel:"alternate icon",type:"image/png",href:"https://images.carbonplan.org/favicon.png"}),e.createElement("link",{rel:"icon",type:"image/svg+xml",href:"https://images.carbonplan.org/favicon.svg"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-medium-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-mono-11-pitch-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-faux-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"manifest",href:"https://images.carbonplan.org/manifest.json"}),e.createElement("meta",{name:"theme-color",content:i.colors.background}),e.createElement("meta",{name:"color-scheme",content:"light"===l?"light":"dark"}),e.createElement("link",{rel:"mask-icon",href:"https://images.carbonplan.org/safari-pinned-tab.svg",color:"#000000"}),e.createElement("link",{rel:"apple-touch-icon",sizes:"180x180",href:"https://images.carbonplan.org/apple-touch-icon.png"}),e.createElement("meta",{name:"msapplication-TileColor",content:i.colors.background}),e.createElement("meta",{name:"msapplication-TileImage",content:"https://images.carbonplan.org/mstile-144x144.png"}),e.createElement("meta",{name:"msapplication-config",content:"https://images.carbonplan.org/browserconfig.xml"}),e.createElement("meta",{property:"og:title",content:c}),e.createElement("meta",{property:"og:description",content:s}),e.createElement("meta",{property:"og:image",content:m}),e.createElement("meta",{property:"og:url",content:"https://carbonplan.org"}),e.createElement("meta",{name:"twitter:title",content:c}),e.createElement("meta",{name:"twitter:description",content:s}),e.createElement("meta",{name:"twitter:image",content:m}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"format-detection",content:"telephone=no"}))},pe=function(t){var n=M({},t);return e.createElement(c,M({as:"svg",width:"150",fill:"currentColor",stroke:"none",viewBox:"0 0 151.1 28.8"},n),e.createElement("g",null,e.createElement("g",null,e.createElement("path",{d:"M9.7,20.1c-1.3-1.4-2-3.1-2-5.2c0-2.1,0.7-3.9,2-5.2c1.3-1.4,3-2,5.1-2c1.7,0,3.1,0.4,4.3,1.3 c1.1,0.9,1.8,2.1,2.1,3.5c0,0.1,0,0.2,0,0.3s-0.1,0.2-0.2,0.2h-2.3c-0.2,0-0.3-0.1-0.4-0.2c-0.3-0.8-0.7-1.4-1.3-1.8 c-0.6-0.4-1.4-0.6-2.2-0.6c-1.3,0-2.3,0.4-3,1.2c-0.8,0.8-1.1,1.9-1.1,3.4c0,1.5,0.4,2.6,1.1,3.4c0.8,0.8,1.8,1.2,3,1.2 c0.8,0,1.6-0.2,2.2-0.6c0.6-0.4,1.1-1,1.3-1.8c0.1-0.2,0.2-0.2,0.4-0.3H21c0.1,0,0.2,0.1,0.2,0.2c0,0.1,0,0.2,0,0.3 c-0.3,1.4-1,2.6-2.1,3.5c-1.1,0.9-2.5,1.3-4.3,1.3C12.7,22.1,11,21.4,9.7,20.1z"})),e.createElement("g",null,e.createElement("path",{d:"M22.5,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1C30.6,7.6,32,8.1,33,9c1,0.9,1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C23,20.1,22.5,19,22.5,17.6z M25.4,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C25.7,16.3,25.4,16.8,25.4,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M37,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.1c1-1.1,2.3-1.6,3.7-1.6 c0.8,0,1.7,0.1,2.5,0.4c0.2,0.1,0.3,0.3,0.3,0.5v2.2c0,0.2-0.1,0.3-0.2,0.3c0,0-0.1,0-0.2-0.1c-1.1-0.5-2-0.8-2.9-0.8 c-0.9,0-1.7,0.4-2.3,1.1c-0.6,0.7-0.9,1.7-0.9,3v7.3c0,0.2-0.1,0.3-0.3,0.3h-2.2C37.1,21.8,37,21.7,37,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M47.6,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3H50c0.2,0,0.3,0.1,0.3,0.3v6.5c1.3-1.1,2.7-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2c1.1,1.3,1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.8,0-3.2-0.5-4.3-1.6v1 c0,0.2-0.1,0.3-0.3,0.3h-2.2C47.7,21.8,47.6,21.7,47.6,21.6z M51.2,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3 s1.7,1.3,2.9,1.3c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3 C52.9,10.2,51.9,10.7,51.2,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M64.3,20.1c-1.4-1.4-2.1-3.1-2.1-5.2c0-2.1,0.7-3.9,2.1-5.2c1.4-1.4,3.1-2,5.2-2c2.1,0,3.8,0.7,5.2,2 c1.4,1.4,2.1,3.1,2.1,5.2c0,2.1-0.7,3.9-2.1,5.2c-1.4,1.4-3.1,2-5.2,2C67.4,22.1,65.7,21.4,64.3,20.1z M66.4,11.5 c-0.8,0.8-1.2,2-1.2,3.4c0,1.4,0.4,2.5,1.2,3.4s1.9,1.3,3.1,1.3c1.3,0,2.3-0.4,3.1-1.3c0.8-0.8,1.2-2,1.2-3.4 c0-1.4-0.4-2.5-1.2-3.4c-0.8-0.8-1.9-1.3-3.1-1.3C68.2,10.2,67.2,10.7,66.4,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M78.7,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C78.7,21.8,78.7,21.7,78.7,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M101.7,27.1V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1c1.1-1.1,2.5-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2s1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.5,0-3-0.5-4.3-1.6v6.6c0,0.2-0.1,0.3-0.3,0.3 H102C101.8,27.3,101.7,27.2,101.7,27.1z M105.3,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3s1.7,1.3,2.9,1.3 c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3C107,10.2,106,10.7,105.3,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M117.2,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v18.9c0,0.2-0.1,0.3-0.3,0.3h-2.2 C117.3,21.8,117.2,21.7,117.2,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M122,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1c1.7,0,3.1,0.5,4.2,1.4s1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C122.5,20.1,122,19,122,17.6z M124.9,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C125.2,16.3,124.9,16.8,124.9,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M136.9,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C137,21.8,136.9,21.7,136.9,21.6z"})),e.createElement("path",{d:"M97.6,14.9c0,4.2-0.6,8.3-1.6,12.3c0,0.1-0.1,0.2-0.2,0.2h-2.4c-0.1,0-0.2-0.1-0.2-0.3c1.1-3.9,1.7-8,1.7-12.2 s-0.6-8.3-1.7-12.2c0-0.1,0.1-0.3,0.2-0.3l2.4,0c0.1,0,0.2,0.1,0.2,0.2C97.1,6.5,97.6,10.6,97.6,14.9z"}),e.createElement("path",{d:"M1.4,14.9C1.4,10.6,2,6.5,3,2.6c0-0.1,0.1-0.2,0.2-0.2l2.4,0c0.1,0,0.2,0.1,0.2,0.3c-1.1,3.9-1.7,8-1.7,12.2 s0.6,8.3,1.7,12.2c0,0.1-0.1,0.3-0.2,0.3H3.3c-0.1,0-0.2-0.1-0.2-0.2C2,23.2,1.4,19.1,1.4,14.9z"})))},de=["value","sx"],ue=function(t){var n=t.value,r=t.sx,o=A(t,de);return e.createElement(x,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"52",y1:"29.9",x2:"16",y2:"29.9"}),e.createElement("line",{x1:"52",y1:"6.1",x2:"16",y2:"6.1"}),e.createElement("line",{x1:"52",y1:"18",x2:"16",y2:"18"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},xe=function(e,t,n){return void 0===n&&(n=!1),{width:"auto",color:e===t?"secondary":"text",fontSize:[6,6,7,8],fontFamily:"heading",letterSpacing:"heading",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",borderTopWidth:n?"1px":"0px",py:[3,3,4,5],textDecoration:"none",display:"block",position:"relative",transition:"color 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover > #arrow":{opacity:1}},"&:hover":{color:e==t?"secondary":"text"}}},he=[{url:"about",display:"About"},{url:"research",display:"Research"},{url:"blog",display:"Blog"},{url:"press",display:"Press"}],fe=function(){return e.createElement(w,{id:"arrow",sx:{pointerEvents:"none",display:"inline-block",position:"absolute",left:["-60px","-68px","-80px","-104px"],top:["32px","32px","46px","62px"],opacity:0,transition:"opacity 0.2s ease-out",transform:"rotate(45deg)",width:[36,36,48,56],height:[36,36,48,56]}})},ge=function(t){var n=t.link,r=t.mode,o=t.nav,a=t.first,i=t.setExpanded,l=n.url,c=n.display,s="remote"===r?"https://carbonplan.org/"+l:"/"+l;return"homepage"===r||"local"===r&&o===l?e.createElement(v,{href:s,passHref:!0},e.createElement(p,{onClick:function(){o===l&&i(!1)},sx:xe(o,l,a)},e.createElement(fe,null),c)):e.createElement(p,{href:s,sx:xe(o,l,a)},e.createElement(fe,null),c)},be=function(t){var n=t.nav,r=t.mode,o=t.setExpanded;return t.links.map(function(t,a){return e.createElement(ge,{key:a,link:t,mode:r,nav:n,first:0===a,setExpanded:o})})},Ee=function(t){var n=t.status,r=t.mode,o=t.nav,i=t.menuItems,l=a(!1),s=l[0],m=l[1];return e.createElement(I,{sx:{pt:["12px"],pb:[3]}},e.createElement(B,{start:[1],width:[2]},e.createElement(c,{sx:{pointerEvents:"all",display:"block",width:"fit-content"}},("homepage"==r||"local"==r)&&e.createElement(v,{href:"/",passHref:!0},e.createElement(p,{"aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(pe,{id:"logo",sx:{cursor:"pointer",color:"primary"}}))),(null==r||"remote"==r)&&e.createElement(p,{href:"https://carbonplan.org","aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(pe,{sx:{cursor:"pointer",color:"primary"}})))),e.createElement(B,{start:[4,9],width:[2,2],dr:1,sx:{display:[n?"flex":"none","flex","flex","flex"],alignItems:"center"}},e.createElement(c,{sx:{fontSize:[1,2,3],position:"relative",top:["-2px","-3px","-3px"]}},n?"("+n+")":"")),e.createElement(B,{start:[n?6:4,6,11,11],width:[n?1:3,3,2,2],sx:{zIndex:5e3}},e.createElement(d,{sx:{pointerEvents:"all",justifyContent:"flex-end"}},e.createElement(c,{sx:{display:[n?"none":"flex","flex","flex","flex"],mr:"18px",gap:"18px",opacity:s?0:1,transition:"opacity 0.15s",justifyContent:"space-between",alignItems:"center"}},i),e.createElement(ue,{sx:{flexShrink:0,mr:["-2px"]},value:s,onClick:function(e){m(!s)}}))),e.createElement(c,{sx:{opacity:s?1:0,pointerEvents:s?"all":"none",position:"fixed",top:"0px",right:"0px",bottom:"0px",minWidth:"0px",maxHeight:"100vh",width:"100vw",backgroundColor:"background",zIndex:4e3,pt:["79px"],transition:"opacity 0.25s"}},e.createElement(h,null,e.createElement(I,null,e.createElement(B,{start:[2,4,7,7],width:[5,4,5,5]},e.createElement(c,{as:"nav",sx:{display:s?"inherit":"none",mt:[5,5,5,6]}},e.createElement(be,{links:he,nav:o,mode:r,setExpanded:m})))))))},ye=function(t){var n=M({},t);return e.createElement(c,M({as:"svg",width:"80",stroke:"none",fill:"currentColor",viewBox:"0 0 32 32"},n),e.createElement("path",{d:"M21.9395,14.9395 L17.5005,19.3785 L17.5005,7.0005 L14.5005,7.0005 L14.5005,19.3785 L10.0605,14.9395 L7.9395,17.0605 L14.9395,24.0605 C15.2325,24.3535 15.6165,24.5005 16.0005,24.5005 C16.3835,24.5005 16.7675,24.3535 17.0605,24.0605 L24.0605,17.0605 L21.9395,14.9395 Z"}),e.createElement("path",{d:"M27.5986,4 L22.8966,4 C26.5556,6.303 28.9996,10.366 28.9996,15 C28.9996,20.4 25.6896,25.039 20.9926,27 L26.5586,27 C29.8886,24.068 31.9996,19.785 31.9996,15 C31.9996,10.734 30.3196,6.868 27.5986,4"}),e.createElement("path",{d:"M3,15 C3,10.366 5.444,6.303 9.104,4 L4.401,4 C1.68,6.868 0,10.734 0,15 C0,19.785 2.112,24.068 5.441,27 L11.008,27 C6.311,25.039 3,20.4 3,15"}))},ve=function(){return e.createElement(c,{sx:{mt:[7,7,7,8],mb:[7,7,7,8],pb:[2,1,0,0]}},e.createElement(I,{sx:{mb:[0,0,4,5]}},e.createElement(B,{start:[1,2],width:[3,3]},e.createElement(c,null,e.createElement(c,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"EMAIL"),e.createElement(p,{href:"mailto:hello@carbonplan.org",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"hello@carbonplan.org"))),e.createElement(B,{start:[5],width:[1],dl:1,dr:1,sx:{display:["flex","none","none","none"],justifyContent:["center"]}},e.createElement(ye,{sx:{mt:["-4px"],width:"60px",height:"60px"}})),e.createElement(B,{start:[1,5,5,5],width:[3,3],sx:{mt:[3,0,0,0]}},e.createElement(c,null,e.createElement(c,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"FOLLOW"),e.createElement(p,{href:"https://twitter.com/carbonplanorg",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"@carbonplanorg"))),e.createElement(B,{start:[1,9],width:[5,4,3,3],sx:{mt:["42px","42px",0,0],mb:[3,3,0,0]}},e.createElement(c,null,e.createElement(c,{sx:{fontSize:[2,2,2,3],fontFamily:"body",color:"secondary"}},"CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status.")))),e.createElement(I,{sx:{mb:["2px"],mt:[5,5,4]}},e.createElement(B,{start:[1,1,2,2],width:[3,2,3,3],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"]}},e.createElement(c,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",pt:[2]}},e.createElement(c,{sx:{color:"secondary",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono"}},"(c) 2022 CARBONPLAN"))),e.createElement(B,{start:[4,3,5,5],width:[2,2,3,3],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"],mt:[0,0,0,0]}},e.createElement(c,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",width:["100%","auto","auto","auto"],pt:[2]}},e.createElement(v,{href:"/terms",passHref:!0},e.createElement(c,{as:"a",sx:{textDecoration:"none",fontSize:[1,1,1,2],color:"secondary",fontFamily:"mono",letterSpacing:"mono",display:"block"}},"READ OUR TERMS")))),e.createElement(B,{start:[5,7,9,9],width:[2,3,3,3],sx:{display:["none","initial","initial","initial"]}},e.createElement(ye,{sx:{width:80,height:80,mt:[0,"-10px",4,5],mb:["-12px"]}}))))},we=["sx"],ke=function(t){var n=t.sx,r=A(t,we),o=f(),a=o[0],i=o[1],c=l(function(){i("light"===a?"dark":"light")},[a]);return e.createElement(x,M({"aria-label":"Toggle dark mode",onClick:c,role:"checkbox",sx:M({width:32,height:32,display:"inline-block",cursor:"pointer",color:"secondary"},n)},r),e.createElement(k,{sx:{strokeWidth:"1.75",transition:"stroke 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover":{stroke:"primary"}}}}))},Ce=function(){var t=process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,n=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,r=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,o=u().theme.rawColors.secondary;if(t&&n&&r){var a=t.substring(0,7),i="https://github.com/"+n+"/"+r+"/tree/"+t;return e.createElement(c,{sx:{display:"inline-block",width:"87px"}},e.createElement(Se,{color:o}),e.createElement(p,{href:i,sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase",textDecoration:"none"}},a))}return e.createElement(c,{sx:{display:"inline-block",width:"87px"}},e.createElement(Se,{color:o}),e.createElement(g,{sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase"}},o))},Se=function(t){return e.createElement("svg",{fill:t.color,opacity:"0.8",viewBox:"0 0 24 24",width:"24",height:"24"},e.createElement("circle",{r:5,cx:19,cy:19}))},ze=function(t){var n=t.mode,r=a(function(e){return"mouse"===e?"X,Y: "+Me(0,4)+","+Me(0,4):"scroll"===e?"SCROLL: 0."+Me((0).toFixed(0),2):e}(n)),o=r[0],l=r[1];return i(function(){if("mouse"===n){var e=function(e){var t=Me(e.clientX,4),n=Me(e.clientY,4);l("X,Y: "+t+","+n)};return window.addEventListener("mousemove",e),function(){window.removeEventListener("mousemove",e)}}if("scroll"===n){var t=function(e){var t=function(e,t){return Math.min(e.scrollY/(document.body.offsetHeight-770),.99)}(window);l("SCROLL: 0."+Me((100*t).toFixed(0),2))};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}},[]),e.createElement(g,{sx:{whiteSpace:"nowrap",display:"inline-block",mr:"-6px",fontFamily:"mono",letterSpacing:"body",color:"secondary",fontSize:[1],textTransform:"uppercase"}},o)},We=function(t){return e.createElement(c,{sx:{userSelect:"none",position:"fixed",bottom:"42px",right:"24px",transformOrigin:"right",transform:"rotate(90deg)",display:["none","none","initial"]}},e.createElement(ze,{mode:t.mode}),e.createElement(Ce,null))};function Me(e,t){return e.toString().padStart(t,"0")}var Ae=["duration","delay","children"],Le=W({from:{opacity:0},to:{opacity:1}}),Te=function(t){var n=t.duration,r=void 0===n?300:n,o=t.delay,a=void 0===o?0:o,i=t.children,l=A(t,Ae);return e.createElement(c,M({},l,{sx:{animationDuration:r+"ms",animationDelay:a+"ms",animationName:Le.toString(),animationFillMode:"backwards"}}),i)},Fe=function(e){var t=e.createElement("div");t.style.visibility="hidden",t.style.width="100px",e.body.appendChild(t),t.style.overflow="scroll";var n=e.createElement("div");n.style.width="100%",t.appendChild(n);var r=t.offsetWidth-n.offsetWidth;return t.parentNode.removeChild(t),r},Ie=function(){return i(function(){"undefined"!=typeof document&&Fe(document)>0&&(document.body.classList.add("custom-scrollbar"),document.getElementsByTagName("html")[0].classList.add("custom-scrollbar"))},[]),null},Oe=function(t){var n=t.color,r=void 0===n?"muted":n,o=a(!1),l=o[0],s=o[1];return i(function(){function e(e){";"===e.key&&e.metaKey&&s(function(e){return!e})}return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[]),e.createElement(c,{sx:{position:"fixed",width:"100%",left:0,top:0,zIndex:"teal"===r?5e3:-1,pointerEvents:"none",display:l?"initial":"none"}},e.createElement(h,null,e.createElement(c,{sx:{display:["none","none","initial","initial"]}},e.createElement(Re,{indices:[1,2,3,4,5,6,7,8,9,10,11,12],color:r})),e.createElement(c,{sx:{display:["none","initial","none","none"]}},e.createElement(Re,{indices:[1,2,3,4,5,6,7,8],color:r})),e.createElement(c,{sx:{display:["initial","none","none","none"]}},e.createElement(Re,{indices:[1,2,3,4,5,6],color:r}))))},Be=["red","orange","yellow","green","teal","blue","purple","pink"];function Re(t){var n=t.color,r={outerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"teal"===n?"0px":"1px",borderRightWidth:"teal"===n?"0px":"1px",opacity:"teal"==n?.4:1},innerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"0px",borderRightWidth:"0px",opacity:"teal"==n?.4:1}};return e.createElement(I,null,t.indices.map(function(t){return e.createElement(B,{key:t,start:[t],width:[1,1],dl:.5,dr:.5,sx:M({bg:"teal"===n?"teal":"transparent",height:"100vh"},r.innerGuideColumn)},e.createElement(c,{sx:M({mx:["12px",3,3,4],bg:"teal"===n?"background":"transparent",height:"100%",borderLeftColor:"rainbow"===n?Be[t%8]:"muted",borderRightColor:"rainbow"===n?Be[t%8]:"muted"},r.outerGuideColumn)}))}))}var De=["value","sx"],He=function(t){var n=t.value,r=t.sx,o=A(t,De);return e.createElement(x,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"24",y1:"2.1",x2:"24",y2:"6.1"}),e.createElement("line",{x1:"24",y1:"24.1",x2:"24",y2:"33.9"}),e.createElement("line",{x1:"44",y1:"2.1",x2:"44",y2:"12.1"}),e.createElement("line",{x1:"44",y1:"30.1",x2:"44",y2:"33.9"}),e.createElement("circle",{cx:"24",cy:"15.1",r:"5"}),e.createElement("circle",{cx:"44",cy:"21.1",r:"5"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},je=function(t){var n=t.title,r=t.description,o=t.card,a=t.status,l=t.nav,s=t.settings,m=t.footer,p=void 0===m||m,x=t.header,f=void 0===x||x,g=t.metadata,b=void 0===g?"mouse":g,E=t.links,y=void 0===E?"remote":E,v=t.dimmer,w=void 0===v?"bottom":v,k=t.guide,C=void 0===k||k,S=t.scrollbar,z=void 0!==S&&S,W=t.fade,A=t.container,L=void 0===A||A,T=t.printable,F=void 0!==T&&T,I=t.children;(void 0===W||W)&&(I=e.createElement(Te,{duration:250},I)),L&&(I=e.createElement(c,{sx:{mb:[8,8,9,10]}},e.createElement(h,null,I)));var O=u().theme,B=F?{"@media print":{display:"none"}}:{};i(function(){if(O){var e=window.matchMedia("(min-width: "+O.breakpoints[1]+")");return e.onchange=function(e){e.matches&&null!=s&&s.value&&null!=s&&s.onClick&&(null==s||s.onClick())},function(){e.onchange=null}}},[null==O?void 0:O.breakpoints,null==s?void 0:s.value,null==s?void 0:s.onClick]);var R=[e.createElement(ke,{key:"dimmer",sx:{color:"primary",mt:"-2px",display:["block","block","top"===w?"block":"none","top"===w?"block":"none"]}})];return s&&R.push(e.createElement(He,M({key:"settings",sx:{mr:["2px"],display:["inherit","inherit","none","none"]}},s))),e.createElement(e.Fragment,null,C&&e.createElement(Oe,{color:C}),z&&e.createElement(Ie,null),e.createElement(me,{card:o,description:r,title:n}),e.createElement(d,{sx:{flexDirection:"column",minHeight:"100vh"}},f&&e.createElement(c,{as:"header",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",position:"sticky",top:0,bg:"background",height:"56px",zIndex:2e3},B)},e.createElement(h,null,e.createElement(Ee,{mode:y,status:a,nav:l,menuItems:R}))),e.createElement(c,{sx:{width:"100%",flex:"1 1 auto"}},I),p&&e.createElement(c,{as:"footer",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px"},B)},e.createElement(h,null,e.createElement(ve,null))),"bottom"===w&&e.createElement(c,{sx:{display:["none","none","initial","initial"],position:["fixed"],right:[13],bottom:[17,17,15,15]}},e.createElement(ke,null)),b&&e.createElement(We,{mode:b})))},_e=function(){return e.createElement(je,{footer:!1,title:"404 – CarbonPlan",description:"Sorry but we can't seem to find the page you are looking for."},e.createElement(I,{sx:{mb:[5,0,0],pt:[0,0,6]}},e.createElement(B,{start:[1,1,3,3],width:[6,4,4,4]},e.createElement(c,{as:"h1",variant:"styles.h1"},"Oops!"),e.createElement(c,{sx:{fontSize:[4,4,4,5],lineHeight:"h3",mt:[3,4,4],mb:[2,3,3],maxWidth:["90%","90%","400px"]}},"Sorry but we can't seem to find the page you are looking for."),e.createElement(c,{sx:{color:"secondary",fontFamily:"mono",letterSpacing:"mono",fontSize:[2,2,2,3],mt:[4,5,5]}},"ERROR CODE 404")),e.createElement(B,{start:[2,5,7,7],width:[4,4,4,4]},e.createElement(c,{sx:{width:["100%"],mt:[2,4,4,5],fill:"primary"}},e.createElement(S,{sx:{width:"100%",height:"auto"}})))))},Ve=function(t){var n=t.value;return e.createElement(x,{onClick:t.onClick,id:t.id,role:"checkbox","aria-checked":n,"aria-label":"Expand",sx:M({display:"inline-block",width:24,height:24,p:[1],cursor:"pointer",fill:"secondary",stroke:"secondary","@media (hover: hover) and (pointer: fine)":{"&:hover":{fill:"primary",stroke:"primary"}}},t.sx)},e.createElement("svg",{viewBox:"0 0 16 16"},e.createElement("path",{d:"M8,0 V16 M0,8 H16",style:{strokeWidth:2,transition:"0.25s all",transformOrigin:"8px 8px",transform:n?"rotate(45deg)":""}})))},Ne=function(t){var n=t.as,r=t.children;return e.createElement(c,{as:void 0===n?"figure":n,sx:M({my:[6,6,6,7],"@media print":{breakInside:"avoid"}},t.sx)},e.createElement(D,{spacing:[4,4,4,5]},r))},Pe=function(t){var n=t.as;return e.createElement(ee,{as:void 0===n?"figcaption":n,number:t.number,label:"figure"},t.children)},Ge=["label","value","sx","children"],Ye=function(t){var n=t.label,r=t.value,o=t.sx,a=t.children,i=A(t,Ge),l=o&&o.color?o.color:"primary",s=i&&(i.onClick||i.onDoubleClick);return e.createElement(c,M({as:s?"button":"span",role:"checkbox","aria-checked":r,"aria-label":n,sx:M({display:"inline-block",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono",cursor:s?"pointer":"inherit",color:l,backgroundColor:"transparent",borderStyle:"solid",borderColor:l,lineHeight:"body",borderWidth:"0px",borderBottomWidth:"1px",textTransform:"uppercase",userSelect:"none",transition:"opacity 0.05s",pt:["1px"],pb:["2px"],px:[0],m:[0],opacity:null==r||r?1:"primary"==l?.24:.33},o)},i),a)},Xe=["values","setValues","label","colors","showAll","multiSelect"],Ue={label:{fontFamily:"mono",letterSpacing:"mono",fontSize:[1,1,1,2],color:"secondary",userSelect:"none",textTransform:"uppercase"}},qe=function(e,t,n){return void 0===n&&(n={}),Object.keys(e).reduce(function(e,r){var o;return Object.assign(e,((o={})[r]=n[r]||t,o))},{})},Ke=function(e){return Object.keys(e).filter(function(t){return e[t]}).length==Object.keys(e).length},Ze=function(e){var t,n=e.values,r=e.multiSelect,o=e.setValues,a=e.value,i=Ke(n),l="all"===a;if(r)if(l&&!i)t=qe(n,!0);else if(l&&i)t=qe(n,!1);else{var c;t=M({},n,((c={})[a]=!n[a],c))}else if(l&&!i)t=qe(n,!0);else if(l&&i);else{var s;t=qe(n,!1,((s={})[a]=!0,s))}t&&o(t)},Je=function(t){var n=t.values,r=t.setValues,o=t.label,a=t.colors,i=t.showAll,l=void 0!==i&&i,s=t.multiSelect,m=void 0!==s&&s,p=A(t,Xe);return e.createElement(c,p,o&&e.createElement(c,{sx:Ue.label},o),e.createElement(c,{sx:{mt:o?[3]:0}},l&&e.createElement(Ye,{onClick:function(){return Ze({values:n,multiSelect:m,setValues:r,value:"all"})},value:Ke(n),sx:{mr:[2]}},"All"),Object.keys(n).map(function(t,o){return e.createElement(Ye,{onClick:function(){return Ze({values:n,multiSelect:m,setValues:r,value:t})},onDoubleClick:function(){return Ze({values:n,multiSelect:!1,setValues:r,value:t})},key:o,value:n[t],sx:{width:"max-content",color:a?a[t]:"primary",mr:[2],mb:[1]}},t)})))},Qe=function(t){var n,r=t.children,o=t.variant,a=void 0===o?"h1":o;return"h1"===a&&(n=[4,"27px","42px","54px"]),"h2"===a&&(n=[4,4,"14px","25px"]),e.createElement(e.Fragment,null,e.createElement(B,{start:[1,4,8,8],width:[1,1,1,1]},e.createElement(c,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],textAlign:"right"}},"/")),e.createElement(B,{start:[2,5,9,9],width:[3,3,2,2]},e.createElement(c,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],height:["100%","0px","0px","0px"]}},r)))},$e=function(t){var n=t.children,r=t.sidenote,o=t.variant,a=void 0===o?"h1":o,i=t.description,l=t.descriptionStart,s=void 0===l?[1,3,5,5]:l,m=t.descriptionWidth,p=void 0===m?[5,5,5,4]:m,d=t.sx,u=[6,6,6,6];if(i&&(u[1]=s[1]-1,u[2]=s[2]-2,u[3]=s[3]-2),!["h1","h2"].includes(a))throw new Error("variant must be 'h1' or 'h2' but got '"+a+"'");return e.createElement(I,{sx:M({mt:[5,6,7,8],mb:[5,6,7,8]},d)},e.createElement(B,{start:[1,1,2,2],width:u},"h1"===a&&e.createElement(c,{as:"h1",variant:"styles.h1",sx:{my:[0,0,0,0]}},n),"h2"===a&&e.createElement(c,{as:"h2",variant:"styles.h2",sx:{my:[0,0,0,0]}},n)),r&&e.createElement(Qe,{variant:a},r),i&&e.createElement(B,{start:s,width:p},e.createElement(c,{sx:{mt:[4,"5px","20px","31px"],fontSize:[2,2,2,3]}},i)))},et=["size","inverted","sx"],tt=n(function(t,n){var r,o=t.size,a=void 0===o?"sm":o,i=t.inverted,l=t.sx,c=A(t,et),s=M(((r={color:i?"secondary":"primary",borderColor:"secondary",borderStyle:"solid",borderWidth:"0px",borderBottomWidth:"1px",borderRadius:"0px",transition:"border 0.15s"}).borderBottomWidth="1px",r.width="calc(min(15ch, 100%))",r.p=[0],r.py=["2px"],r["input::-webkit-outer-spin-button"]={WebkitAppearance:"none",margin:0},r["input::-webkit-inner-spin-button"]={WebkitAppearance:"none",margin:0},r[":focus"]={borderColor:"primary"},r[":focus-visible"]={outline:"none !important",background:"none !important"},r),q(a),l);return e.createElement(b,M({},c,{ref:n,sx:s}))}),nt=function(t){var n=t.members,r=t.color,o=t.inverted,a=t.tracking,i=t.size,l=void 0===i?"xs":i,c=t.rowGap,s=t.columnGap,m=t.direction;return e.createElement(d,{sx:M({flexDirection:"horizontal"===(void 0===m?"horizontal":m)?"row":"column",rowGap:void 0===c?[2,2,2,3]:c,columnGap:void 0===s?[3,3,3,4]:s,flexWrap:"wrap"},t.sx)},n.map(function(t,n){return e.createElement(J,{key:n,href:t.href,label:t.label,size:l,sx:{color:r},inverted:o,suffix:e.createElement(C,null),tracking:a},t.label)}))},rt=["children","size","sx","sxSelect"],ot=function(t){var n,r,a,i,l,s,m,p=t.children,d=t.size,u=void 0===d?"sm":d,x=t.sx,h=t.sxSelect,f=A(t,rt),g=x&&x.color?x.color:"primary",b=q(u),E=o(null),y=f.onChange,v=(r=function(e){return"onChange"!==e},function(e){var t={};for(var n in e)r(n||"")&&(t[n]=e[n]);return t})(f);if(!["xs","sm","md"].includes(u))throw new Error("Size must be xs, sm, or md");return"xs"===u&&(i=[14,14,14,16],l=[14,14,14,14],m=["1px"],s=["-14px","-14px","-14px","-16px"]),"sm"===u&&(i=[15,15,15,20],l=[15,15,15,20],m=["1px"],s=["-16px","-16px","-16px","-20px"]),"md"===u&&(i=[20,20,20,20],l=[20,20,20,20],m=["2px"],s=["-20px","-20px","-20px","-20px"]),a=l.map(function(e){return e+12}),e.createElement(c,{sx:M({display:"inline-block"},x)},e.createElement(c,M({as:"select",ref:E,onChange:function(e){E.current.blur(),y&&y(e)},sx:M({},b,(n={lineHeight:"normal",cursor:"pointer",WebkitAppearance:"none",MozAppearance:"none",pb:["5px"],bg:"background",pr:a,border:"none",borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:"primary",borderRadius:"0px",color:"text",width:"fit-content"},n.color=g,n.userSelect="none",n["@media (hover: none) and (pointer: coarse)"]={"&:focus-visible":{outline:"none !important",background:"transparent !important"}},n),h)},v),p),e.createElement(w,{sx:{width:l,height:i,position:"relative",ml:s,top:m,fill:"secondary",transform:"rotate(135deg)",pointerEvents:"none"}}))},at=["sx"],it=n(function(t,n){var r=t.sx,o=A(t,at),a=r&&r.color?r.color:"primary",i=u().theme.rawColors;return e.createElement(E,M({ref:n,sx:M({"&::-webkit-slider-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},"&::-moz-range-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},":focus-visible":{outline:"none !important",background:i.secondary+" !important"},":focus":{color:a,"&::-webkit-slider-thumb":{boxShadow:"0 0 0 4px "+i.secondary},"&::-moz-range-thumb":{boxShadow:"0 0 0 4px "+i.secondary}},color:a},r)},o))}),lt={reset:{verticalAlign:"baseline",border:0,outline:0,margin:0,padding:0},row:{borderStyle:"solid",borderWidth:"0px",borderTopWidth:"1px",borderColor:"muted",pt:[3,3,3,"20px"],pb:[3,3,3,"20px"],mb:["2px"]},header:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},index:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},entry:{display:"block",fontSize:[2,2,2,3],fontFamily:"faux",letterSpacing:"faux",mb:["1px"],mt:[2,0,0,0]}},ct=function(t){var n=t.data,r=t.sx,o=t.color,a=t.header,i=t.columns,l=t.start,s=t.width,m=t.index,p=void 0===m||m,d=t.borderBottom,u=void 0===d||d,x=t.borderTop,h=void 0===x||x;if(!l||!i||!s)throw new Error("Must provide columns, start, and width");return e.createElement(c,{as:"table",sx:M({display:"block"},r)},e.createElement(c,{as:"tbody",sx:{display:"block"}},a&&e.createElement(I,{as:"tr",sx:M({},lt.reset,lt.header,lt.row,{color:o,borderTopWidth:h?"1px":"0px"})},e.createElement(B,{as:"td",start:[1],width:i,sx:lt.index},a)),n.map(function(t,r){return e.createElement(I,{as:"tr",columns:i,key:r,sx:M({},lt.reset,lt.row,{pb:u&&r===n.length-1?["18px","18px","18px","22px"]:[3,3,3,"20px"],borderBottomWidth:u&&r===n.length-1?"1px":"0px",borderTopWidth:h||0!==r||a?"1px":"0px"})},t.map(function(t,n){return e.createElement(B,{as:"td",key:n,start:l[n],width:s[n],sx:M({},lt.reset,0==n&&p?lt.index:lt.entry)},t)}))})))},st=function(t){var n=t.as;return e.createElement(ee,{as:void 0===n?"figcaption":n,number:t.number,label:"table"},t.children)},mt=["value","onClick","disabled","sx"],pt=n(function(t,n){var r=t.value,o=t.onClick,a=t.disabled,i=t.sx,l=A(t,mt),s=i&&i.color?i.color:"primary";return e.createElement(c,M({ref:n,as:"button",onClick:o,role:"checkbox","aria-checked":r=!a&&r,"aria-label":"Toggle",sx:M({border:"none",background:"none",cursor:a?"default":"pointer",p:[0],m:[0],display:"inline-block"},i)},l),e.createElement(c,{sx:{width:"50px",height:"20px",borderRadius:"20px",backgroundColor:r?y(s,"primary"==s?.5:.45):"muted",position:"relative",transition:"0.15s",display:"inline-block"}},e.createElement(c,{sx:{width:"14px",height:"14px",borderRadius:"7px",position:"absolute",left:r?"32px":"4px",top:"3px",backgroundColor:r?s:"secondary",transition:"0.15s"}})))}),dt=function(t){var n=t.id;return n?e.createElement(e.Fragment,null,e.createElement("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id="+n}),e.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '"+n+"', {\n page_path: window.location.pathname,\n });\n "}})):null},ut=function(t){var n=t.expanded,r=t.sx,o=t.children;return e.createElement(e.Fragment,null,e.createElement(c,{sx:{position:"fixed",top:"56px",bottom:"0px",left:"0px",width:"calc(100vw)",mt:["56px"],bg:"background",zIndex:1e3,transition:"opacity 0.15s",opacity:n?.9:0,pointerEvents:n?"all":"none"}}),e.createElement(c,{sx:M({position:"fixed",width:"calc(100vw)",top:"0px",mt:["56px"],pb:[6,7,7,8],pt:[5,6,7,8],bg:"background",zIndex:1100,borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",transition:"transform 0.15s",ml:[-3,-4,-5,-6],pl:[3,4,5,6],pr:[3,4,5,6],transform:n?"translateY(0)":"translateY(-100%)"},r)},e.createElement(I,null,e.createElement(B,{start:[1,1,1,1],width:[6,8,10,10]},o))))},xt={month:"short",day:"numeric",year:"numeric"},ht=function(e,t,n){var r;if(!n)return null;var o="string"==typeof n?n:xt[t],a=e.toLocaleString("default",((r={})[t]=o,r));return"numeric"===o&&["day","month"].includes(t)?a.padStart(2,"0"):a},ft=function(e,t){var n;void 0===t&&(t=xt);var r=new Date(e.replace(/-/g,"/"));return[ht(r,"month",t.month),ht(r,"day",t.day),ht(r,"year",t.year)].filter(Boolean).join(null!=(n=t.separator)?n:" ")},gt=function(){var e=a(null),t=e[0],n=e[1];return i(function(){document&&Fe(document)>0&&n("custom-scrollbar")},[]),t};export{T as Avatar,V as AvatarGroup,P as Badge,Y as Blockquote,J as Button,$ as Callout,ee as Caption,ie as Colorbar,se as Colors,B as Column,_e as Custom404,ke as Dimmer,Ve as Expander,Te as FadeIn,Ne as Figure,Pe as FigureCaption,Je as Filter,ve as Footer,D as Group,Oe as Guide,Ee as Header,$e as Heading,tt as Input,je as Layout,U as Link,nt as LinkGroup,pe as Logo,ue as Menu,me as Meta,ye as Monogram,I as Row,Ie as Scrollbar,ot as Select,He as Settings,it as Slider,ct as Table,st as TableCaption,Ye as Tag,pt as Toggle,dt as Tracking,ut as Tray,ft as formatDate,Fe as getScrollbarWidth,gt as useScrollbarClass};
|
|
1
|
+
import e,{Children as t,forwardRef as n,cloneElement as r,useRef as o,useState as a,useEffect as i,useCallback as l}from"react";import{Box as c,Image as s,Grid as m,Link as p,Flex as d,useThemeUI as u,IconButton as x,Container as h,useColorMode as f,Text as g,Input as b,Slider as E}from"theme-ui";import{transparentize as y}from"@theme-ui/color";import v from"next/link";import{Arrow as w,Sun as k,RotatingArrow as C}from"@carbonplan/icons";import{PoopSad as S}from"@carbonplan/emoji";import z from"next/head";import{keyframes as W}from"@emotion/react";function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(this,arguments)}function A(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function L(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var T=["color","width","maxWidth","name","github","alt","src","sx"],F=function(t){var n,r,o=t.color,a=void 0===o?"transparent":o,i=t.width,l=void 0===i?"90px":i,m=t.maxWidth,p=t.name,d=t.github,u=t.alt,x=t.src,h=t.sx,f=L(t,T);return p||x||d||console.warn("must specify either name, github, or src"),p?(n="https://images.carbonplan.org/team/"+p.toLowerCase().replace(" ","-")+".png",r=u||p):d?(n="https://github.com/"+d+".png",r=u||d):(n=x,r=u),e.createElement(c,M({sx:M({width:l,maxWidth:m,height:"auto",borderRadius:"50%",position:"relative",display:"inline-block",verticalAlign:"top",bg:a},h)},f),e.createElement(s,{alt:r,src:n,sx:{opacity:a&&"transparent"!==a?.25:1,filter:a&&"transparent"!==a?"grayscale(100%) contrast(200%) brightness(100%)":"none",width:"100%",borderRadius:"50%",display:"block"}}))},I=["children","sx","columns","gap"],O=function(t){var n,r,o=t.children,a=t.sx,i=t.columns,l=t.gap,c=L(t,I),s=function(e){if(Array.isArray(e)||(e=[e,e,e,e]),Array.isArray(e)&&![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length&&(e=e.map(function(e){return[e]}).flat()),Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};return Number.isInteger(l)||Array.isArray(l)?(n=l=s(l),r=l):(n=[4,5,5,6],r=[0,0,0,0]),i=Number.isInteger(i)||Array.isArray(i)?s(i):[6,8,12,12],e.createElement(m,M({},c,{columns:i,sx:M({columnGap:n,rowGap:r},a)}),o)},B=["start","width","dl","dr","children","sx"],R=function(t){var n=t.start,r=t.width,o=t.dl,a=t.dr,i=t.children,l=t.sx,s=L(t,B);r=r||"auto";var m=function(e){if(e&&!Array.isArray(e)&&(e=[e]),![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length?e=e.map(function(e){return[e,e,e,e]}).flat():Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};n=m(n=n||"auto"),r=m(r);var p,d,u=n.map(function(e,t){return"auto"==e?"auto":e+r[t]});if(o){if(![.5,1].includes(o))throw new Error("dl must be 0.5 or 1");.5===o&&(p=["-12px",-3,-3,-4]),1===o&&(p=[-4,-5,-5,-6])}if(a){if(![.5,1].includes(a))throw new Error("dr must be 0.5 or 1");.5===a&&(d=["-12px",-3,-3,-4]),1===a&&(d=[-4,-5,-5,-6])}return e.createElement(c,M({},s,{sx:M({gridColumnStart:n,gridColumnEnd:u,ml:p,mr:d},l)}),i)},D={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},H=function(t){var n,r=t.children,o=t.direction,a=void 0===o?"vertical":o,i=t.spacing,l=void 0===i?"md":i,s=t.sx;if(n="string"==typeof l&&D.hasOwnProperty(l)?D[l]:l,!["horizontal","vertical"].includes(a))throw new Error("Invalid direction value. Must be either horizontal or vertical");var m="vertical"===a?"mb":"mr",p="horizontal"===a?{display:"inline-block"}:{};return e.createElement(c,{sx:s},e.Children.map(r,function(t,o){var a;return e.createElement(c,{sx:M((a={},a[m]=o<r.length-1?n:0,a),p)},t)}))},j=["members","direction","align","spacing","limit","width","maxWidth","fixedCount","sx"],_={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},V=function(t){return e.createElement(c,{sx:{bg:"muted",height:"100%",maxWidth:t.maxWidth,borderRadius:"50%"}},e.createElement(c,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},e.createElement(c,{sx:{fontFamily:"mono",letterSpacing:"mono",fontSize:[3,3,3,4]}},"+",t.overflow)))},N=function(t){var n,r=t.members,o=t.direction,a=void 0===o?"horizontal":o,i=t.align,l=t.spacing,c=void 0===l?"md":l,s=t.limit,m=t.width,p=t.maxWidth,d=t.fixedCount,u=t.sx,x=L(t,j);n=_.hasOwnProperty(c)?_[c]:c;var h=function(e){return"auto"};i&&(Array.isArray(i)||(i=[i]),h=function(e){return i.map(function(t){if("left"===t)return"auto";if("right"===t)return(Math.max(1,d-r.length+1)+e)%d;throw Error("alignment '"+i+"' not recognized")})});var f=r.length>s,g=r.length-s+1;return e.createElement(e.Fragment,null,d&&e.createElement(O,M({columns:d,gap:n,sx:u},x),r.map(function(t,n){return e.createElement(R,{key:n,start:h(n)},(!f||n<s-1)&&e.createElement(F,M({},t,{width:m,maxWidth:p})),f&&n===s-1&&e.createElement(V,{overflow:g,maxWidth:p}))})),!d&&e.createElement(H,M({direction:a,spacing:c,sx:u},x),r.map(function(t,n){return e.createElement(F,M({key:n},t,{width:m,maxWidth:p}))})))},P=["sx","children"],G=function(t){var n=t.sx,r=t.children,o=L(t,P),a=n&&n.color?n.color:"primary";return e.createElement(c,M({sx:M({display:"inline-block",width:"fit-content",height:["24px","24px","24px","26px"],borderRadius:"5px",backgroundColor:"primary"==a||"secondary"==a?"muted":y(a,.7),textAlign:"center",userSelect:"none",fontSize:[2,2,2,3]},n)},o),e.createElement(c,{sx:{letterSpacing:"0.02em",fontFamily:"mono",mt:["1px","1px","1px","0px"],px:[1,1,1,"5px"],color:a}},r))},Y=["“",'"',"'","‘"],X=function(n){var r=n.children;return e.createElement(c,{variant:"styles.blockquote"},t.map(r,function(t,n){var o="",a=r;return t.props&&"string"==typeof t.props.children?(o=t.props.children.slice(0,1),a=t.props.children.slice(1)):"string"==typeof t&&(o=t.slice(0,1),a=t.slice(1)),e.createElement(e.Fragment,null,Y.includes(o)&&e.createElement(c,{as:"span",sx:{position:"absolute",ml:"-0.4em"}},o),Y.includes(o)?a:t)}))},U=["href","children","internal","tracking"],q=n(function(t,n){var r=t.href,o=t.children,a=t.internal,i=void 0!==a&&a,l=t.tracking,c=void 0!==l&&l,s=L(t,U);if(i||r&&r.startsWith("/"))return e.createElement(v,{href:r,passHref:!0},e.createElement(p,M({ref:n},s),o));if(c){var m,d;r&&r.includes("pdf")?(m="PDF",d="download"):(m="website",d="external");var u=function(e){!function(e){var t=e.action;"function"==typeof window.gtag?window.gtag("event",t,{event_category:e.category,event_label:e.label,value:e.value}):console.warn("Missing window.gtag, skipping analytics action: '"+t+"'.")}({action:m,category:d,label:r})};return e.createElement(p,M({ref:n,onClick:u,onContextMenu:u,href:r},s),o)}return e.createElement(p,M({ref:n,href:r},s),o)}),K=function(e){if(!["xs","sm","md","lg","xl"].includes(e))throw new Error("Size must be xs, sm, md, lg, or xl");var t,n,r,o;return"xs"===e&&(t=[2,2,2,3],n="body",r="body",o=[1.2]),"sm"===e&&(t=[3,3,3,4],n="body",r="body",o=[1.2]),"md"===e&&(t=[4,4,4,5],n="body",r="body",o=[1.2]),"lg"===e&&(t=[5,5,6,7],n="heading",r="heading",o=[1.2,1.2,1.25,1.25]),"xl"===e&&(t=[6,7,8,9],n="heading",r="heading",o=[1.25]),{fontSize:t,fontFamily:n,letterSpacing:r,lineHeight:o}},Z=["size","prefix","suffix","inverted","sx","children","align","href","internal","tracking"],J=["color"],Q=n(function(t,n){var o,a,i,l,s,m=t.size,p=void 0===m?"sm":m,d=t.prefix,u=t.suffix,x=t.inverted,h=t.sx,f=t.children,g=t.align,b=t.href,E=t.internal,y=t.tracking,v=L(t,Z);if(!["xs","sm","md","lg","xl"].includes(p))throw new Error("Size must be xs, sm, md, lg, or xl");var w,k,C,S,z,W,A=h||{},T=A.color,F=L(A,J),I=T||(x?"secondary":"primary"),O=T||x?"primary":"secondary";"xs"===p&&(a=["6px","6px","6px","6px"],i=[12,12,12,13],l=[12,12,12,13],s=[1.5,1.5,1.5,1.5],o={transform:"translateY(0.25px)"}),"sm"===p&&(a=["7px","7px","7px","7px"],i=[13,13,13,18],l=[13,13,13,18],s=[1.5,1.5,1.5,2],o={transform:"translateY(0.25px)"}),"md"===p&&(a=["8px","8px","8px","8px"],i=[18,18,18,24],l=[18,18,18,24],s=[2,2,2,3]),"lg"===p&&(a=["10px","10px","12px","16px"],i=[24,24,34,46],l=[24,24,34,46],s=[3,3,4,5]),"xl"===p&&(a=["12px","16px","18px","20px"],i=[34,46,56,68],l=[34,46,56,68],s=[4,5,6,7]),g?(C=g,S=g):d&&u?(C="initial",S="initial"):d?C="initial":u&&(S="middle"),z="middle"===C?{}:o,W="middle"===S?{}:o,d&&(w={"&:hover > #prefix-span > #prefix":M({color:O},d.type.hover)},d=r(d,{id:"prefix",sx:M({position:"relative",height:i,width:l,mr:f?a:[0],strokeWidth:s,verticalAlign:C,transition:"color 0.15s, transform 0.15s"},d.props.sx)})),u&&(k={"&:hover > #suffix-span >#suffix":M({color:O},u.type.hover)},u=r(u,{id:"suffix",sx:M({height:i,width:l,ml:f?a:[0],strokeWidth:s,verticalAlign:S,transition:"color 0.15s, transform 0.15s"},u.props.sx)}));var B=M({},K(p),{lineHeight:1.05,border:"none",background:"transparent",display:"block",color:I,padding:[0],textAlign:"left",cursor:"pointer",width:"fit-content","@media (hover: hover) and (pointer: fine)":M({"&:hover":{color:O}},k,w)},F),R=e.createElement(e.Fragment,null,e.createElement(c,{as:"span",id:"prefix-span",sx:M({display:"inline-block"},z)},d&&d),e.createElement(c,{as:"span",sx:{transition:"color 0.15s"}},f),e.createElement(c,{as:"span",id:"suffix-span",sx:M({display:"inline-block"},W)},u&&u));return b?e.createElement(q,M({ref:n,href:b,internal:E,tracking:y,sx:M({},B,{textDecoration:"none"})},v),R):e.createElement(c,M({ref:n,as:"button",sx:B},v),R)}),$=["label","children","inverted","color","href","internal","tracking","sx"],ee=n(function(t,n){var r=t.label,o=t.children,a=t.inverted,i=t.color,l=t.href,s=t.internal,m=t.tracking,p=t.sx,d=L(t,$),u=i||(a?"secondary":"primary"),x=i||a?"primary":"secondary",h=M({border:"none",padding:[0],fontSize:[3,3,3,4],color:u,background:"transparent",textDecoration:"none",fontFamily:"body",lineHeight:"h3",letterSpacing:"body",width:"fit-content",cursor:"pointer",textAlign:"left",mb:[1],"@media (hover: hover) and (pointer: fine)":{"&:hover > #container > #arrow":{transform:"rotate(45deg)",fill:x},"&:hover":{color:x}}},p),f=e.createElement(e.Fragment,null,e.createElement(c,{sx:{transition:"0.15s",letterSpacing:"body",pb:["6px"]}},o),e.createElement(c,{sx:{transition:"0.15s",display:"inline-block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]}},r),e.createElement(c,{as:"span",id:"container",sx:{ml:[2],display:"inline-block"}},e.createElement(w,{id:"arrow",sx:{transition:"fill 0.15s, transform 0.15s",position:"relative",top:["2px"],color:u,height:[15,15,15,17],width:[15,15,15,17]}})));return l?e.createElement(q,M({ref:n,href:l,internal:s,tracking:m,sx:h},d),f):e.createElement(c,M({ref:n,as:"button",sx:h},d),f)}),te=function(t){var n=t.as,r=t.number,o=t.children,a=t.label;return e.createElement(c,{as:void 0===n?"figcaption":n,sx:{color:"secondary",display:"block",textAlign:"left",fontSize:[2,2,2,3],"& a":{color:"secondary"},"& a:hover":{color:"primary"},"& > p":{display:"inline",fontSize:[2,2,2,3]}}},r&&e.createElement(e.Fragment,null,e.createElement(c,{sx:{textTransform:"uppercase",letterSpacing:"smallcaps",display:"inline-block"}},void 0===a?"figure":a," ",r)," ",e.createElement(c,{sx:{display:"inline-block",mx:[1],pr:[1]}},"/")),o)},ne=["colormap","label","clim","setClim","setClimStep","discrete","units","width","height","format","horizontal","bottom","sx","sxClim"],re=function(e){return{bg:"unset",border:"none",color:"primary",px:0,fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase",transition:"border 0.15s",userSelect:e?"none !important":"unset",width:"fit-content",minWidth:"fit-content"}},oe={width:["10px","16px","16px","17px"],height:["80px","110px","110px","130px"]},ae=function(t){var n=t.colormap,r=t.discrete,o=t.horizontal,a=t.width,i=t.height,l=1/n.length*100,s="linear-gradient(to "+(o?"right":"top")+", "+n.map(function(e,t){return"rgb("+e+") "+t*l+"% "+(r&&t<n.length-1?(t+1)*l+"%":"")}).join(",")+")";return e.createElement(c,{sx:M({},o?{width:a||oe.height,height:i||oe.width}:{width:a||oe.width,minHeight:i||oe.height},{mt:o?["1px","1px","1px",0]:0,border:function(e){return"solid 1px "+e.colors.hinted},background:s})})},ie=function(t){var n=t.label,r=t.units,o=t.horizontal;return e.createElement(c,{sx:!o&&{width:["13px","17px","17px","19px"],alignSelf:"flex-end"}},e.createElement(c,{sx:M({mb:o?0:["-4px","-4px","-4px","-3px"],fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase"},o?{}:{writingMode:"vertical-rl",transform:"rotate(180deg)",whiteSpace:"nowrap",display:"inline-block",overflow:"visible"})},n," ",e.createElement(c,{as:"span",sx:{textTransform:"none",color:"secondary",display:"inline-block"}},r)))},le=function(t){var n=t.colormap,r=t.label,l=t.clim,s=t.setClim,m=t.setClimStep,p=void 0===m?1:m,u=t.discrete,x=t.units,h=t.width,f=t.height,g=t.format,b=void 0===g?function(e){return e}:g,E=t.horizontal,y=void 0!==E&&E,v=t.bottom,w=void 0!==v&&v,k=t.sx,C=t.sxClim,S=L(t,ne);if(!Array.isArray(n))throw new Error("expected array for colormap, got '"+n+"'.");var z,W,A,T=[o(),o()],F=a(!1),I=F[0],O=F[1],B=a(!1),R=B[0],D=B[1],H=0,j=null,_=[0,0],V=p,N=function(e){"min"!==j||I||O(!0),"max"!==j||R||D(!0),A=e.pageX-z,H=e.pageY-W,y?("min"===j&&s(function(e){return[Math.min(_[0]+A*V,_[1]),e[1]]}),"max"===j&&s(function(e){return[e[0],Math.max(_[1]+A*V,_[0])]})):("min"===j&&s(function(e){return[Math.min(_[0]-H*V,_[1]),e[1]]}),"max"===j&&s(function(e){return[e[0],Math.max(_[1]-H*V,_[0])]}))},P=function(e){W=e.pageY,z=e.pageX,j=e.target.id,_=l,document.body.setAttribute("style",y?"cursor: ew-resize !important":"cursor: ns-resize !important"),document.addEventListener("mousemove",N),window.addEventListener("mouseup",function e(){document.body.setAttribute("style","cursor: unset"),document.removeEventListener("mousemove",N),window.removeEventListener("mouseup",e),"min"===j&&O(!1),"max"===j&&D(!1)})};i(function(){var e=function(e){(["ArrowUp","ArrowRight"].includes(e.code)||["ArrowUp","ArrowRight"].includes(e.key))&&function(e){T[0].current===document.activeElement&&(e.preventDefault(),s(function(e){return[Math.min(e[0]+V,e[1]),e[1]]}),T[0].current.focus()),T[1].current===document.activeElement&&(e.preventDefault(),s(function(e){return[e[0],Math.max(e[1]+V,e[0])]}),T[1].current.focus())}(e),(["ArrowDown","ArrowLeft"].includes(e.code)||["ArrowDown","ArrowLeft"].includes(e.key))&&function(e){T[0].current===document.activeElement&&(e.preventDefault(),s(function(e){return[Math.min(e[0]-V,e[1]),e[1]]}),T[0].current.focus()),T[1].current===document.activeElement&&(e.preventDefault(),s(function(e){return[e[0],Math.max(e[1]-V,e[0])]}),T[1].current.focus())}(e)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[l]);var G=function(){return e.createElement(c,{id:"min",as:s?"button":"div",ref:T[0],tabIndex:0,sx:M({},re(s),{ml:r?y?w?"0px":"10px":["2px","1px","1px","2px"]:0,mr:y?["2px","1px","1px","2px"]:0,mb:y?0:["-2px","-2px","-2px","-3px"],borderBottom:s?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:s?y?"ew-resize":"ns-resize":"default"},C),onMouseDown:s?P:function(){},onClick:function(){return T[0].current.focus()}},b(l[0]))},Y=function(){return e.createElement(c,{id:"max",as:s?"button":"div",ref:T[1],tabIndex:0,sx:M({},re(s),{ml:["2px","1px","1px","2px"],mt:y?0:["-2px","-3px","-3px","-3px"],borderBottom:s?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:s?y?"ew-resize":"ns-resize":"default"},C),onMouseDown:s?P:function(){},onClick:function(){return T[1].current.focus()}},b(l[1]))};return e.createElement(d,M({},S,{sx:M({flexDirection:"row",alignItems:"start",justifyContent:"flex-start",gap:["3px","6px","6px","7px"],height:y?"unset":"100%"},k)}),r&&e.createElement(ie,{label:r,units:x,horizontal:y}),e.createElement(d,{sx:{flexGrow:y?1:"unset",flexDirection:"column",ml:w&&r?"4px":"0px",height:y?"unset":"100%"}},e.createElement(d,{sx:{gap:["3px","6px","6px","7px"],height:y?"unset":"100%"}},y&&l&&!w&&e.createElement(G,null),e.createElement(ae,{colormap:n,horizontal:y,discrete:u,width:h,height:f}),y&&l&&!w&&e.createElement(Y,null)),y&&l&&w&&e.createElement(d,{sx:{justifyContent:"space-between"}},e.createElement(G,null),e.createElement(Y,null))),!y&&e.createElement(d,{sx:{flexDirection:"column-reverse",justifyContent:"space-between",height:f||oe.height}},l&&e.createElement(G,null),l&&e.createElement(Y,null)))},ce=["sx","color","children"],se=function(t){var n=t.sx,r=t.color,o=t.children,a=L(t,ce);return e.createElement(c,M({as:"span",sx:M({display:"inline-block",color:r},n)},a),o)},me={Primary:function(t){return e.createElement(se,M({color:"primary"},t))},Secondary:function(t){return e.createElement(se,M({color:"secondary"},t))},Background:function(t){return e.createElement(se,M({color:"background"},t))},Red:function(t){return e.createElement(se,M({color:"red"},t))},Orange:function(t){return e.createElement(se,M({color:"orange"},t))},Yellow:function(t){return e.createElement(se,M({color:"yellow"},t))},Green:function(t){return e.createElement(se,M({color:"green"},t))},Teal:function(t){return e.createElement(se,M({color:"teal"},t))},Blue:function(t){return e.createElement(se,M({color:"blue"},t))},Purple:function(t){return e.createElement(se,M({color:"purple"},t))},Pink:function(t){return e.createElement(se,M({color:"pink"},t))},Grey:function(t){return e.createElement(se,M({color:"grey"},t))}},pe=function(t){var n=t.title,r=t.description,o=t.card,a=u(),i=a.theme,l=a.colorMode;r||console.warn("a custom description should be used for search engine optimization"),n||console.warn("a custom title should be used for search engine optimization");var c=n||"CarbonPlan",s=r||"Improving the transparency and scientific integrity of climate solutions with open data and tools.",m=o||"https://images.carbonplan.org/social/homepage.png";return e.createElement(z,null,e.createElement("title",null,c),e.createElement("meta",{name:"description",content:s}),e.createElement("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),e.createElement("link",{rel:"alternate icon",type:"image/png",href:"https://images.carbonplan.org/favicon.png"}),e.createElement("link",{rel:"icon",type:"image/svg+xml",href:"https://images.carbonplan.org/favicon.svg"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-medium-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-mono-11-pitch-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-faux-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"manifest",href:"https://images.carbonplan.org/manifest.json"}),e.createElement("meta",{name:"theme-color",content:i.colors.background}),e.createElement("meta",{name:"color-scheme",content:"light"===l?"light":"dark"}),e.createElement("link",{rel:"mask-icon",href:"https://images.carbonplan.org/safari-pinned-tab.svg",color:"#000000"}),e.createElement("link",{rel:"apple-touch-icon",sizes:"180x180",href:"https://images.carbonplan.org/apple-touch-icon.png"}),e.createElement("meta",{name:"msapplication-TileColor",content:i.colors.background}),e.createElement("meta",{name:"msapplication-TileImage",content:"https://images.carbonplan.org/mstile-144x144.png"}),e.createElement("meta",{name:"msapplication-config",content:"https://images.carbonplan.org/browserconfig.xml"}),e.createElement("meta",{property:"og:title",content:c}),e.createElement("meta",{property:"og:description",content:s}),e.createElement("meta",{property:"og:image",content:m}),e.createElement("meta",{property:"og:url",content:"https://carbonplan.org"}),e.createElement("meta",{name:"twitter:title",content:c}),e.createElement("meta",{name:"twitter:description",content:s}),e.createElement("meta",{name:"twitter:image",content:m}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"format-detection",content:"telephone=no"}))},de=function(t){var n=M({},(A(t),t));return e.createElement(c,M({as:"svg",width:"150",fill:"currentColor",stroke:"none",viewBox:"0 0 151.1 28.8"},n),e.createElement("g",null,e.createElement("g",null,e.createElement("path",{d:"M9.7,20.1c-1.3-1.4-2-3.1-2-5.2c0-2.1,0.7-3.9,2-5.2c1.3-1.4,3-2,5.1-2c1.7,0,3.1,0.4,4.3,1.3 c1.1,0.9,1.8,2.1,2.1,3.5c0,0.1,0,0.2,0,0.3s-0.1,0.2-0.2,0.2h-2.3c-0.2,0-0.3-0.1-0.4-0.2c-0.3-0.8-0.7-1.4-1.3-1.8 c-0.6-0.4-1.4-0.6-2.2-0.6c-1.3,0-2.3,0.4-3,1.2c-0.8,0.8-1.1,1.9-1.1,3.4c0,1.5,0.4,2.6,1.1,3.4c0.8,0.8,1.8,1.2,3,1.2 c0.8,0,1.6-0.2,2.2-0.6c0.6-0.4,1.1-1,1.3-1.8c0.1-0.2,0.2-0.2,0.4-0.3H21c0.1,0,0.2,0.1,0.2,0.2c0,0.1,0,0.2,0,0.3 c-0.3,1.4-1,2.6-2.1,3.5c-1.1,0.9-2.5,1.3-4.3,1.3C12.7,22.1,11,21.4,9.7,20.1z"})),e.createElement("g",null,e.createElement("path",{d:"M22.5,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1C30.6,7.6,32,8.1,33,9c1,0.9,1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C23,20.1,22.5,19,22.5,17.6z M25.4,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C25.7,16.3,25.4,16.8,25.4,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M37,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.1c1-1.1,2.3-1.6,3.7-1.6 c0.8,0,1.7,0.1,2.5,0.4c0.2,0.1,0.3,0.3,0.3,0.5v2.2c0,0.2-0.1,0.3-0.2,0.3c0,0-0.1,0-0.2-0.1c-1.1-0.5-2-0.8-2.9-0.8 c-0.9,0-1.7,0.4-2.3,1.1c-0.6,0.7-0.9,1.7-0.9,3v7.3c0,0.2-0.1,0.3-0.3,0.3h-2.2C37.1,21.8,37,21.7,37,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M47.6,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3H50c0.2,0,0.3,0.1,0.3,0.3v6.5c1.3-1.1,2.7-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2c1.1,1.3,1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.8,0-3.2-0.5-4.3-1.6v1 c0,0.2-0.1,0.3-0.3,0.3h-2.2C47.7,21.8,47.6,21.7,47.6,21.6z M51.2,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3 s1.7,1.3,2.9,1.3c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3 C52.9,10.2,51.9,10.7,51.2,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M64.3,20.1c-1.4-1.4-2.1-3.1-2.1-5.2c0-2.1,0.7-3.9,2.1-5.2c1.4-1.4,3.1-2,5.2-2c2.1,0,3.8,0.7,5.2,2 c1.4,1.4,2.1,3.1,2.1,5.2c0,2.1-0.7,3.9-2.1,5.2c-1.4,1.4-3.1,2-5.2,2C67.4,22.1,65.7,21.4,64.3,20.1z M66.4,11.5 c-0.8,0.8-1.2,2-1.2,3.4c0,1.4,0.4,2.5,1.2,3.4s1.9,1.3,3.1,1.3c1.3,0,2.3-0.4,3.1-1.3c0.8-0.8,1.2-2,1.2-3.4 c0-1.4-0.4-2.5-1.2-3.4c-0.8-0.8-1.9-1.3-3.1-1.3C68.2,10.2,67.2,10.7,66.4,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M78.7,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C78.7,21.8,78.7,21.7,78.7,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M101.7,27.1V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1c1.1-1.1,2.5-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2s1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.5,0-3-0.5-4.3-1.6v6.6c0,0.2-0.1,0.3-0.3,0.3 H102C101.8,27.3,101.7,27.2,101.7,27.1z M105.3,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3s1.7,1.3,2.9,1.3 c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3C107,10.2,106,10.7,105.3,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M117.2,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v18.9c0,0.2-0.1,0.3-0.3,0.3h-2.2 C117.3,21.8,117.2,21.7,117.2,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M122,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1c1.7,0,3.1,0.5,4.2,1.4s1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C122.5,20.1,122,19,122,17.6z M124.9,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C125.2,16.3,124.9,16.8,124.9,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M136.9,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C137,21.8,136.9,21.7,136.9,21.6z"})),e.createElement("path",{d:"M97.6,14.9c0,4.2-0.6,8.3-1.6,12.3c0,0.1-0.1,0.2-0.2,0.2h-2.4c-0.1,0-0.2-0.1-0.2-0.3c1.1-3.9,1.7-8,1.7-12.2 s-0.6-8.3-1.7-12.2c0-0.1,0.1-0.3,0.2-0.3l2.4,0c0.1,0,0.2,0.1,0.2,0.2C97.1,6.5,97.6,10.6,97.6,14.9z"}),e.createElement("path",{d:"M1.4,14.9C1.4,10.6,2,6.5,3,2.6c0-0.1,0.1-0.2,0.2-0.2l2.4,0c0.1,0,0.2,0.1,0.2,0.3c-1.1,3.9-1.7,8-1.7,12.2 s0.6,8.3,1.7,12.2c0,0.1-0.1,0.3-0.2,0.3H3.3c-0.1,0-0.2-0.1-0.2-0.2C2,23.2,1.4,19.1,1.4,14.9z"})))},ue=["value","sx"],xe=function(t){var n=t.value,r=t.sx,o=L(t,ue);return e.createElement(x,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"52",y1:"29.9",x2:"16",y2:"29.9"}),e.createElement("line",{x1:"52",y1:"6.1",x2:"16",y2:"6.1"}),e.createElement("line",{x1:"52",y1:"18",x2:"16",y2:"18"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},he=function(e,t,n){return void 0===n&&(n=!1),{width:"auto",color:e===t?"secondary":"text",fontSize:[6,6,7,8],fontFamily:"heading",letterSpacing:"heading",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",borderTopWidth:n?"1px":"0px",py:[3,3,4,5],textDecoration:"none",display:"block",position:"relative",transition:"color 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover > #arrow":{opacity:1}},"&:hover":{color:e==t?"secondary":"text"}}},fe=[{url:"about",display:"About"},{url:"research",display:"Research"},{url:"blog",display:"Blog"},{url:"press",display:"Press"}],ge=function(){return e.createElement(w,{id:"arrow",sx:{pointerEvents:"none",display:"inline-block",position:"absolute",left:["-60px","-68px","-80px","-104px"],top:["32px","32px","46px","62px"],opacity:0,transition:"opacity 0.2s ease-out",transform:"rotate(45deg)",width:[36,36,48,56],height:[36,36,48,56]}})},be=function(t){var n=t.link,r=t.mode,o=t.nav,a=t.first,i=t.setExpanded,l=n.url,c=n.display,s="remote"===r?"https://carbonplan.org/"+l:"/"+l;return"homepage"===r||"local"===r&&o===l?e.createElement(v,{href:s,passHref:!0},e.createElement(p,{onClick:function(){o===l&&i(!1)},sx:he(o,l,a)},e.createElement(ge,null),c)):e.createElement(p,{href:s,sx:he(o,l,a)},e.createElement(ge,null),c)},Ee=function(t){var n=t.nav,r=t.mode,o=t.setExpanded;return t.links.map(function(t,a){return e.createElement(be,{key:a,link:t,mode:r,nav:n,first:0===a,setExpanded:o})})},ye=function(t){var n=t.status,r=t.mode,o=t.nav,i=t.menuItems,l=a(!1),s=l[0],m=l[1];return e.createElement(O,{sx:{pt:["12px"],pb:[3]}},e.createElement(R,{start:[1],width:[2]},e.createElement(c,{sx:{pointerEvents:"all",display:"block",width:"fit-content"}},("homepage"==r||"local"==r)&&e.createElement(v,{href:"/",passHref:!0},e.createElement(p,{"aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(de,{id:"logo",sx:{cursor:"pointer",color:"primary"}}))),(null==r||"remote"==r)&&e.createElement(p,{href:"https://carbonplan.org","aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(de,{sx:{cursor:"pointer",color:"primary"}})))),e.createElement(R,{start:[4,9],width:[2,2],dr:1,sx:{display:[n?"flex":"none","flex","flex","flex"],alignItems:"center"}},e.createElement(c,{sx:{fontSize:[1,2,3],position:"relative",top:["-2px","-3px","-3px"]}},n?"("+n+")":"")),e.createElement(R,{start:[n?6:4,6,11,11],width:[n?1:3,3,2,2],sx:{zIndex:5e3}},e.createElement(d,{sx:{pointerEvents:"all",justifyContent:"flex-end"}},e.createElement(c,{sx:{display:[n?"none":"flex","flex","flex","flex"],mr:"18px",gap:"18px",opacity:s?0:1,transition:"opacity 0.15s",justifyContent:"space-between",alignItems:"center"}},i),e.createElement(xe,{sx:{flexShrink:0,mr:["-2px"]},value:s,onClick:function(e){m(!s)}}))),e.createElement(c,{sx:{opacity:s?1:0,pointerEvents:s?"all":"none",position:"fixed",top:"0px",right:"0px",bottom:"0px",minWidth:"0px",maxHeight:"100vh",width:"100vw",backgroundColor:"background",zIndex:4e3,pt:["79px"],transition:"opacity 0.25s"}},e.createElement(h,null,e.createElement(O,null,e.createElement(R,{start:[2,4,7,7],width:[5,4,5,5]},e.createElement(c,{as:"nav",sx:{display:s?"inherit":"none",mt:[5,5,5,6]}},e.createElement(Ee,{links:fe,nav:o,mode:r,setExpanded:m})))))))},ve=function(t){var n=M({},(A(t),t));return e.createElement(c,M({as:"svg",width:"80",stroke:"none",fill:"currentColor",viewBox:"0 0 32 32"},n),e.createElement("path",{d:"M21.9395,14.9395 L17.5005,19.3785 L17.5005,7.0005 L14.5005,7.0005 L14.5005,19.3785 L10.0605,14.9395 L7.9395,17.0605 L14.9395,24.0605 C15.2325,24.3535 15.6165,24.5005 16.0005,24.5005 C16.3835,24.5005 16.7675,24.3535 17.0605,24.0605 L24.0605,17.0605 L21.9395,14.9395 Z"}),e.createElement("path",{d:"M27.5986,4 L22.8966,4 C26.5556,6.303 28.9996,10.366 28.9996,15 C28.9996,20.4 25.6896,25.039 20.9926,27 L26.5586,27 C29.8886,24.068 31.9996,19.785 31.9996,15 C31.9996,10.734 30.3196,6.868 27.5986,4"}),e.createElement("path",{d:"M3,15 C3,10.366 5.444,6.303 9.104,4 L4.401,4 C1.68,6.868 0,10.734 0,15 C0,19.785 2.112,24.068 5.441,27 L11.008,27 C6.311,25.039 3,20.4 3,15"}))},we=function(){return e.createElement(c,{sx:{mt:[7,7,7,8],mb:[7,7,7,8],pb:[2,1,0,0]}},e.createElement(O,{sx:{mb:[0,0,4,5]}},e.createElement(R,{start:[1,2],width:[3,3]},e.createElement(c,null,e.createElement(c,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"EMAIL"),e.createElement(p,{href:"mailto:hello@carbonplan.org",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"hello@carbonplan.org"))),e.createElement(R,{start:[5],width:[1],dl:1,dr:1,sx:{display:["flex","none","none","none"],justifyContent:["center"]}},e.createElement(ve,{sx:{mt:["-4px"],width:"60px",height:"60px"}})),e.createElement(R,{start:[1,5,5,5],width:[3,3],sx:{mt:[3,0,0,0]}},e.createElement(c,null,e.createElement(c,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"FOLLOW"),e.createElement(p,{href:"https://twitter.com/carbonplanorg",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"@carbonplanorg"))),e.createElement(R,{start:[1,9],width:[5,4,3,3],sx:{mt:["42px","42px",0,0],mb:[3,3,0,0]}},e.createElement(c,null,e.createElement(c,{sx:{fontSize:[2,2,2,3],fontFamily:"body",color:"secondary"}},"CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status.")))),e.createElement(O,{sx:{mb:["2px"],mt:[5,5,4]}},e.createElement(R,{start:[1,1,2,2],width:[3,2,3,3],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"]}},e.createElement(c,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",pt:[2]}},e.createElement(c,{sx:{color:"secondary",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono"}},"(c) 2022 CARBONPLAN"))),e.createElement(R,{start:[4,3,5,5],width:[2,2,3,3],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"],mt:[0,0,0,0]}},e.createElement(c,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",width:["100%","auto","auto","auto"],pt:[2]}},e.createElement(v,{href:"/terms",passHref:!0},e.createElement(c,{as:"a",sx:{textDecoration:"none",fontSize:[1,1,1,2],color:"secondary",fontFamily:"mono",letterSpacing:"mono",display:"block"}},"READ OUR TERMS")))),e.createElement(R,{start:[5,7,9,9],width:[2,3,3,3],sx:{display:["none","initial","initial","initial"]}},e.createElement(ve,{sx:{width:80,height:80,mt:[0,"-10px",4,5],mb:["-12px"]}}))))},ke=["sx"],Ce=function(t){var n=t.sx,r=L(t,ke),o=f(),a=o[0],i=o[1],c=l(function(){i("light"===a?"dark":"light")},[a]);return e.createElement(x,M({"aria-label":"Toggle dark mode",onClick:c,role:"checkbox",sx:M({width:32,height:32,display:"inline-block",cursor:"pointer",color:"secondary"},n)},r),e.createElement(k,{sx:{strokeWidth:"1.75",transition:"stroke 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover":{stroke:"primary"}}}}))},Se=function(){var t=process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,n=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,r=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,o=u().theme.rawColors.secondary;if(t&&n&&r){var a=t.substring(0,7),i="https://github.com/"+n+"/"+r+"/tree/"+t;return e.createElement(c,{sx:{display:"inline-block",width:"87px"}},e.createElement(ze,{color:o}),e.createElement(p,{href:i,sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase",textDecoration:"none"}},a))}return e.createElement(c,{sx:{display:"inline-block",width:"87px"}},e.createElement(ze,{color:o}),e.createElement(g,{sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase"}},o))},ze=function(t){return e.createElement("svg",{fill:t.color,opacity:"0.8",viewBox:"0 0 24 24",width:"24",height:"24"},e.createElement("circle",{r:5,cx:19,cy:19}))},We=function(t){var n=t.mode,r=a(function(e){return"mouse"===e?"X,Y: "+Ae(0,4)+","+Ae(0,4):"scroll"===e?"SCROLL: 0."+Ae((0).toFixed(0),2):e}(n)),o=r[0],l=r[1];return i(function(){if("mouse"===n){var e=function(e){var t=Ae(e.clientX,4),n=Ae(e.clientY,4);l("X,Y: "+t+","+n)};return window.addEventListener("mousemove",e),function(){window.removeEventListener("mousemove",e)}}if("scroll"===n){var t=function(e){var t=function(e,t){return Math.min(e.scrollY/(document.body.offsetHeight-770),.99)}(window);l("SCROLL: 0."+Ae((100*t).toFixed(0),2))};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}},[]),e.createElement(g,{sx:{whiteSpace:"nowrap",display:"inline-block",mr:"-6px",fontFamily:"mono",letterSpacing:"body",color:"secondary",fontSize:[1],textTransform:"uppercase"}},o)},Me=function(t){return e.createElement(c,{sx:{userSelect:"none",position:"fixed",bottom:"42px",right:"24px",transformOrigin:"right",transform:"rotate(90deg)",display:["none","none","initial"]}},e.createElement(We,{mode:t.mode}),e.createElement(Se,null))};function Ae(e,t){return e.toString().padStart(t,"0")}var Le=["duration","delay","children"],Te=W({from:{opacity:0},to:{opacity:1}}),Fe=function(t){var n=t.duration,r=void 0===n?300:n,o=t.delay,a=void 0===o?0:o,i=t.children,l=L(t,Le);return e.createElement(c,M({},l,{sx:{animationDuration:r+"ms",animationDelay:a+"ms",animationName:Te.toString(),animationFillMode:"backwards"}}),i)},Ie=function(e){var t=e.createElement("div");t.style.visibility="hidden",t.style.width="100px",e.body.appendChild(t),t.style.overflow="scroll";var n=e.createElement("div");n.style.width="100%",t.appendChild(n);var r=t.offsetWidth-n.offsetWidth;return t.parentNode.removeChild(t),r},Oe=function(){return i(function(){"undefined"!=typeof document&&Ie(document)>0&&(document.body.classList.add("custom-scrollbar"),document.getElementsByTagName("html")[0].classList.add("custom-scrollbar"))},[]),null},Be=function(t){var n=t.color,r=void 0===n?"muted":n,o=a(!1),l=o[0],s=o[1];return i(function(){function e(e){";"===e.key&&e.metaKey&&s(function(e){return!e})}return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[]),e.createElement(c,{sx:{position:"fixed",width:"100%",left:0,top:0,zIndex:"teal"===r?5e3:-1,pointerEvents:"none",display:l?"initial":"none"}},e.createElement(h,null,e.createElement(c,{sx:{display:["none","none","initial","initial"]}},e.createElement(De,{indices:[1,2,3,4,5,6,7,8,9,10,11,12],color:r})),e.createElement(c,{sx:{display:["none","initial","none","none"]}},e.createElement(De,{indices:[1,2,3,4,5,6,7,8],color:r})),e.createElement(c,{sx:{display:["initial","none","none","none"]}},e.createElement(De,{indices:[1,2,3,4,5,6],color:r}))))},Re=["red","orange","yellow","green","teal","blue","purple","pink"];function De(t){var n=t.color,r={outerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"teal"===n?"0px":"1px",borderRightWidth:"teal"===n?"0px":"1px",opacity:"teal"==n?.4:1},innerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"0px",borderRightWidth:"0px",opacity:"teal"==n?.4:1}};return e.createElement(O,null,t.indices.map(function(t){return e.createElement(R,{key:t,start:[t],width:[1,1],dl:.5,dr:.5,sx:M({bg:"teal"===n?"teal":"transparent",height:"100vh"},r.innerGuideColumn)},e.createElement(c,{sx:M({mx:["12px",3,3,4],bg:"teal"===n?"background":"transparent",height:"100%",borderLeftColor:"rainbow"===n?Re[t%8]:"muted",borderRightColor:"rainbow"===n?Re[t%8]:"muted"},r.outerGuideColumn)}))}))}var He=["value","sx"],je=function(t){var n=t.value,r=t.sx,o=L(t,He);return e.createElement(x,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"24",y1:"2.1",x2:"24",y2:"6.1"}),e.createElement("line",{x1:"24",y1:"24.1",x2:"24",y2:"33.9"}),e.createElement("line",{x1:"44",y1:"2.1",x2:"44",y2:"12.1"}),e.createElement("line",{x1:"44",y1:"30.1",x2:"44",y2:"33.9"}),e.createElement("circle",{cx:"24",cy:"15.1",r:"5"}),e.createElement("circle",{cx:"44",cy:"21.1",r:"5"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},_e=function(t){var n=t.title,r=t.description,o=t.card,a=t.status,l=t.nav,s=t.settings,m=t.footer,p=void 0===m||m,x=t.header,f=void 0===x||x,g=t.metadata,b=void 0===g?"mouse":g,E=t.links,y=void 0===E?"remote":E,v=t.dimmer,w=void 0===v?"bottom":v,k=t.guide,C=void 0===k||k,S=t.scrollbar,z=void 0!==S&&S,W=t.fade,A=t.container,L=void 0===A||A,T=t.printable,F=void 0!==T&&T,I=t.children;(void 0===W||W)&&(I=e.createElement(Fe,{duration:250},I)),L&&(I=e.createElement(c,{sx:{mb:[8,8,9,10]}},e.createElement(h,null,I)));var O=u().theme,B=F?{"@media print":{display:"none"}}:{};i(function(){if(O){var e=window.matchMedia("(min-width: "+O.breakpoints[1]+")");return e.onchange=function(e){e.matches&&null!=s&&s.value&&null!=s&&s.onClick&&(null==s||s.onClick())},function(){e.onchange=null}}},[null==O?void 0:O.breakpoints,null==s?void 0:s.value,null==s?void 0:s.onClick]);var R=[e.createElement(Ce,{key:"dimmer",sx:{color:"primary",mt:"-2px",display:["block","block","top"===w?"block":"none","top"===w?"block":"none"]}})];return s&&R.push(e.createElement(je,M({key:"settings",sx:{mr:["2px"],display:["inherit","inherit","none","none"]}},s))),e.createElement(e.Fragment,null,C&&e.createElement(Be,{color:C}),z&&e.createElement(Oe,null),e.createElement(pe,{card:o,description:r,title:n}),e.createElement(d,{sx:{flexDirection:"column",minHeight:"100vh"}},f&&e.createElement(c,{as:"header",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",position:"sticky",top:0,bg:"background",height:"56px",zIndex:2e3},B)},e.createElement(h,null,e.createElement(ye,{mode:y,status:a,nav:l,menuItems:R}))),e.createElement(c,{sx:{width:"100%",flex:"1 1 auto"}},I),p&&e.createElement(c,{as:"footer",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px"},B)},e.createElement(h,null,e.createElement(we,null))),"bottom"===w&&e.createElement(c,{sx:{display:["none","none","initial","initial"],position:["fixed"],right:[13],bottom:[17,17,15,15]}},e.createElement(Ce,null)),b&&e.createElement(Me,{mode:b})))},Ve=function(){return e.createElement(_e,{footer:!1,title:"404 – CarbonPlan",description:"Sorry but we can't seem to find the page you are looking for."},e.createElement(O,{sx:{mb:[5,0,0],pt:[0,0,6]}},e.createElement(R,{start:[1,1,3,3],width:[6,4,4,4]},e.createElement(c,{as:"h1",variant:"styles.h1"},"Oops!"),e.createElement(c,{sx:{fontSize:[4,4,4,5],lineHeight:"h3",mt:[3,4,4],mb:[2,3,3],maxWidth:["90%","90%","400px"]}},"Sorry but we can't seem to find the page you are looking for."),e.createElement(c,{sx:{color:"secondary",fontFamily:"mono",letterSpacing:"mono",fontSize:[2,2,2,3],mt:[4,5,5]}},"ERROR CODE 404")),e.createElement(R,{start:[2,5,7,7],width:[4,4,4,4]},e.createElement(c,{sx:{width:["100%"],mt:[2,4,4,5],fill:"primary"}},e.createElement(S,{sx:{width:"100%",height:"auto"}})))))},Ne=function(t){var n=t.value;return e.createElement(x,{onClick:t.onClick,id:t.id,role:"checkbox","aria-checked":n,"aria-label":"Expand",sx:M({display:"inline-block",width:24,height:24,p:[1],cursor:"pointer",fill:"secondary",stroke:"secondary","@media (hover: hover) and (pointer: fine)":{"&:hover":{fill:"primary",stroke:"primary"}}},t.sx)},e.createElement("svg",{viewBox:"0 0 16 16"},e.createElement("path",{d:"M8,0 V16 M0,8 H16",style:{strokeWidth:2,transition:"0.25s all",transformOrigin:"8px 8px",transform:n?"rotate(45deg)":""}})))},Pe=function(t){var n=t.as,r=t.children;return e.createElement(c,{as:void 0===n?"figure":n,sx:M({my:[6,6,6,7],"@media print":{breakInside:"avoid"}},t.sx)},e.createElement(H,{spacing:[4,4,4,5]},r))},Ge=function(t){var n=t.as;return e.createElement(te,{as:void 0===n?"figcaption":n,number:t.number,label:"figure"},t.children)},Ye=["label","value","sx","children"],Xe=function(t){var n=t.label,r=t.value,o=t.sx,a=t.children,i=L(t,Ye),l=o&&o.color?o.color:"primary",s=i&&(i.onClick||i.onDoubleClick);return e.createElement(c,M({as:s?"button":"span",role:"checkbox","aria-checked":r,"aria-label":n,sx:M({display:"inline-block",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono",cursor:s?"pointer":"inherit",color:l,backgroundColor:"transparent",borderStyle:"solid",borderColor:l,lineHeight:"body",borderWidth:"0px",borderBottomWidth:"1px",textTransform:"uppercase",userSelect:"none",transition:"opacity 0.05s",pt:["1px"],pb:["2px"],px:[0],m:[0],opacity:null==r||r?1:"primary"==l?.24:.33},o)},i),a)},Ue=["values","setValues","label","colors","showAll","multiSelect"],qe={label:{fontFamily:"mono",letterSpacing:"mono",fontSize:[1,1,1,2],color:"secondary",userSelect:"none",textTransform:"uppercase"}},Ke=function(e,t,n){return void 0===n&&(n={}),Object.keys(e).reduce(function(e,r){var o;return Object.assign(e,((o={})[r]=n[r]||t,o))},{})},Ze=function(e){return Object.keys(e).filter(function(t){return e[t]}).length==Object.keys(e).length},Je=function(e){var t,n=e.values,r=e.multiSelect,o=e.setValues,a=e.value,i=Ze(n),l="all"===a;if(r)if(l&&!i)t=Ke(n,!0);else if(l&&i)t=Ke(n,!1);else{var c;t=M({},n,((c={})[a]=!n[a],c))}else if(l&&!i)t=Ke(n,!0);else if(l&&i);else{var s;t=Ke(n,!1,((s={})[a]=!0,s))}t&&o(t)},Qe=function(t){var n=t.values,r=t.setValues,o=t.label,a=t.colors,i=t.showAll,l=void 0!==i&&i,s=t.multiSelect,m=void 0!==s&&s,p=L(t,Ue);return e.createElement(c,p,o&&e.createElement(c,{sx:qe.label},o),e.createElement(c,{sx:{mt:o?[3]:0}},l&&e.createElement(Xe,{onClick:function(){return Je({values:n,multiSelect:m,setValues:r,value:"all"})},value:Ze(n),sx:{mr:[2]}},"All"),Object.keys(n).map(function(t,o){return e.createElement(Xe,{onClick:function(){return Je({values:n,multiSelect:m,setValues:r,value:t})},onDoubleClick:function(){return Je({values:n,multiSelect:!1,setValues:r,value:t})},key:o,value:n[t],sx:{width:"max-content",color:a?a[t]:"primary",mr:[2],mb:[1]}},t)})))},$e=function(t){var n,r=t.children,o=t.variant,a=void 0===o?"h1":o;return"h1"===a&&(n=[4,"27px","42px","54px"]),"h2"===a&&(n=[4,4,"14px","25px"]),e.createElement(e.Fragment,null,e.createElement(R,{start:[1,4,8,8],width:[1,1,1,1]},e.createElement(c,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],textAlign:"right"}},"/")),e.createElement(R,{start:[2,5,9,9],width:[3,3,2,2]},e.createElement(c,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],height:["100%","0px","0px","0px"]}},r)))},et=function(t){var n=t.children,r=t.sidenote,o=t.variant,a=void 0===o?"h1":o,i=t.description,l=t.descriptionStart,s=void 0===l?[1,3,5,5]:l,m=t.descriptionWidth,p=void 0===m?[5,5,5,4]:m,d=t.sx,u=[6,6,6,6];if(i&&(u[1]=s[1]-1,u[2]=s[2]-2,u[3]=s[3]-2),!["h1","h2"].includes(a))throw new Error("variant must be 'h1' or 'h2' but got '"+a+"'");return e.createElement(O,{sx:M({mt:[5,6,7,8],mb:[5,6,7,8]},d)},e.createElement(R,{start:[1,1,2,2],width:u},"h1"===a&&e.createElement(c,{as:"h1",variant:"styles.h1",sx:{my:[0,0,0,0]}},n),"h2"===a&&e.createElement(c,{as:"h2",variant:"styles.h2",sx:{my:[0,0,0,0]}},n)),r&&e.createElement($e,{variant:a},r),i&&e.createElement(R,{start:s,width:p},e.createElement(c,{sx:{mt:[4,"5px","20px","31px"],fontSize:[2,2,2,3]}},i)))},tt=["size","inverted","sx"],nt=n(function(t,n){var r,o=t.size,a=void 0===o?"sm":o,i=t.inverted,l=t.sx,c=L(t,tt),s=M(((r={color:i?"secondary":"primary",borderColor:"secondary",borderStyle:"solid",borderWidth:"0px",borderBottomWidth:"1px",borderRadius:"0px",transition:"border 0.15s"}).borderBottomWidth="1px",r.width="calc(min(15ch, 100%))",r.p=[0],r.py=["2px"],r["input::-webkit-outer-spin-button"]={WebkitAppearance:"none",margin:0},r["input::-webkit-inner-spin-button"]={WebkitAppearance:"none",margin:0},r[":focus"]={borderColor:"primary"},r[":focus-visible"]={outline:"none !important",background:"none !important"},r),K(a),l);return e.createElement(b,M({},c,{ref:n,sx:s}))}),rt=function(t){var n=t.members,r=t.color,o=t.inverted,a=t.tracking,i=t.size,l=void 0===i?"xs":i,c=t.rowGap,s=t.columnGap,m=t.direction;return e.createElement(d,{sx:M({flexDirection:"horizontal"===(void 0===m?"horizontal":m)?"row":"column",rowGap:void 0===c?[2,2,2,3]:c,columnGap:void 0===s?[3,3,3,4]:s,flexWrap:"wrap"},t.sx)},n.map(function(t,n){return e.createElement(Q,{key:n,href:t.href,label:t.label,size:l,sx:{color:r},inverted:o,suffix:e.createElement(C,null),tracking:a},t.label)}))},ot=["children","size","sx","sxSelect"],at=function(t){var n,r,a,i,l,s,m,p=t.children,d=t.size,u=void 0===d?"sm":d,x=t.sx,h=t.sxSelect,f=L(t,ot),g=x&&x.color?x.color:"primary",b=K(u),E=o(null),y=f.onChange,v=(r=function(e){return"onChange"!==e},function(e){var t={};for(var n in e)r(n||"")&&(t[n]=e[n]);return t})(f);if(!["xs","sm","md"].includes(u))throw new Error("Size must be xs, sm, or md");return"xs"===u&&(i=[14,14,14,16],l=[14,14,14,14],m=["1px"],s=["-14px","-14px","-14px","-16px"]),"sm"===u&&(i=[15,15,15,20],l=[15,15,15,20],m=["1px"],s=["-16px","-16px","-16px","-20px"]),"md"===u&&(i=[20,20,20,20],l=[20,20,20,20],m=["2px"],s=["-20px","-20px","-20px","-20px"]),a=l.map(function(e){return e+12}),e.createElement(c,{sx:M({display:"inline-block"},x)},e.createElement(c,M({as:"select",ref:E,onChange:function(e){E.current.blur(),y&&y(e)},sx:M({},b,(n={lineHeight:"normal",cursor:"pointer",WebkitAppearance:"none",MozAppearance:"none",pb:["5px"],bg:"background",pr:a,border:"none",borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:"primary",borderRadius:"0px",color:"text",width:"fit-content"},n.color=g,n.userSelect="none",n["@media (hover: none) and (pointer: coarse)"]={"&:focus-visible":{outline:"none !important",background:"transparent !important"}},n),h)},v),p),e.createElement(w,{sx:{width:l,height:i,position:"relative",ml:s,top:m,fill:"secondary",transform:"rotate(135deg)",pointerEvents:"none"}}))},it=["sx"],lt=n(function(t,n){var r=t.sx,o=L(t,it),a=r&&r.color?r.color:"primary",i=u().theme.rawColors;return e.createElement(E,M({ref:n,sx:M({"&::-webkit-slider-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},"&::-moz-range-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},":focus-visible":{outline:"none !important",background:i.secondary+" !important"},":focus":{color:a,"&::-webkit-slider-thumb":{boxShadow:"0 0 0 4px "+i.secondary},"&::-moz-range-thumb":{boxShadow:"0 0 0 4px "+i.secondary}},color:a},r)},o))}),ct={reset:{verticalAlign:"baseline",border:0,outline:0,margin:0,padding:0},row:{borderStyle:"solid",borderWidth:"0px",borderTopWidth:"1px",borderColor:"muted",pt:[3,3,3,"20px"],pb:[3,3,3,"20px"],mb:["2px"]},header:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},index:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},entry:{display:"block",fontSize:[2,2,2,3],fontFamily:"faux",letterSpacing:"faux",mb:["1px"],mt:[2,0,0,0]}},st=function(t){var n=t.data,r=t.sx,o=t.color,a=t.header,i=t.columns,l=t.start,s=t.width,m=t.index,p=void 0===m||m,d=t.borderBottom,u=void 0===d||d,x=t.borderTop,h=void 0===x||x;if(!l||!i||!s)throw new Error("Must provide columns, start, and width");return e.createElement(c,{as:"table",sx:M({display:"block"},r)},e.createElement(c,{as:"tbody",sx:{display:"block"}},a&&e.createElement(O,{as:"tr",sx:M({},ct.reset,ct.header,ct.row,{color:o,borderTopWidth:h?"1px":"0px"})},e.createElement(R,{as:"td",start:[1],width:i,sx:ct.index},a)),n.map(function(t,r){return e.createElement(O,{as:"tr",columns:i,key:r,sx:M({},ct.reset,ct.row,{pb:u&&r===n.length-1?["18px","18px","18px","22px"]:[3,3,3,"20px"],borderBottomWidth:u&&r===n.length-1?"1px":"0px",borderTopWidth:h||0!==r||a?"1px":"0px"})},t.map(function(t,n){return e.createElement(R,{as:"td",key:n,start:l[n],width:s[n],sx:M({},ct.reset,0==n&&p?ct.index:ct.entry)},t)}))})))},mt=function(t){var n=t.as;return e.createElement(te,{as:void 0===n?"figcaption":n,number:t.number,label:"table"},t.children)},pt=["value","onClick","disabled","sx"],dt=n(function(t,n){var r=t.value,o=t.onClick,a=t.disabled,i=t.sx,l=L(t,pt),s=i&&i.color?i.color:"primary";return e.createElement(c,M({ref:n,as:"button",onClick:o,role:"checkbox","aria-checked":r=!a&&r,"aria-label":"Toggle",sx:M({border:"none",background:"none",cursor:a?"default":"pointer",p:[0],m:[0],display:"inline-block"},i)},l),e.createElement(c,{sx:{width:"50px",height:"20px",borderRadius:"20px",backgroundColor:r?y(s,"primary"==s?.5:.45):"muted",position:"relative",transition:"0.15s",display:"inline-block"}},e.createElement(c,{sx:{width:"14px",height:"14px",borderRadius:"7px",position:"absolute",left:r?"32px":"4px",top:"3px",backgroundColor:r?s:"secondary",transition:"0.15s"}})))}),ut=function(t){var n=t.id;return n?e.createElement(e.Fragment,null,e.createElement("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id="+n}),e.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '"+n+"', {\n page_path: window.location.pathname,\n });\n "}})):null},xt=function(t){var n=t.expanded,r=t.sx,o=t.children;return e.createElement(e.Fragment,null,e.createElement(c,{sx:{position:"fixed",top:"56px",bottom:"0px",left:"0px",width:"calc(100vw)",mt:["56px"],bg:"background",zIndex:1e3,transition:"opacity 0.15s",opacity:n?.9:0,pointerEvents:n?"all":"none"}}),e.createElement(c,{sx:M({position:"fixed",width:"calc(100vw)",top:"0px",mt:["56px"],pb:[6,7,7,8],pt:[5,6,7,8],bg:"background",zIndex:1100,borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",transition:"transform 0.15s",ml:[-3,-4,-5,-6],pl:[3,4,5,6],pr:[3,4,5,6],transform:n?"translateY(0)":"translateY(-100%)"},r)},e.createElement(O,null,e.createElement(R,{start:[1,1,1,1],width:[6,8,10,10]},o))))},ht={month:"short",day:"numeric",year:"numeric"},ft=function(e,t,n){var r;if(!n)return null;var o="string"==typeof n?n:ht[t],a=e.toLocaleString("default",((r={})[t]=o,r));return"numeric"===o&&["day","month"].includes(t)?a.padStart(2,"0"):a},gt=function(e,t){var n;void 0===t&&(t=ht);var r=new Date(e.replace(/-/g,"/"));return[ft(r,"month",t.month),ft(r,"day",t.day),ft(r,"year",t.year)].filter(Boolean).join(null!=(n=t.separator)?n:" ")},bt=function(){var e=a(null),t=e[0],n=e[1];return i(function(){document&&Ie(document)>0&&n("custom-scrollbar")},[]),t};export{F as Avatar,N as AvatarGroup,G as Badge,X as Blockquote,Q as Button,ee as Callout,te as Caption,le as Colorbar,me as Colors,R as Column,Ve as Custom404,Ce as Dimmer,Ne as Expander,Fe as FadeIn,Pe as Figure,Ge as FigureCaption,Qe as Filter,we as Footer,H as Group,Be as Guide,ye as Header,et as Heading,nt as Input,_e as Layout,q as Link,rt as LinkGroup,de as Logo,xe as Menu,pe as Meta,ve as Monogram,O as Row,Oe as Scrollbar,at as Select,je as Settings,lt as Slider,st as Table,mt as TableCaption,Xe as Tag,dt as Toggle,ut as Tracking,xt as Tray,gt as formatDate,Ie as getScrollbarWidth,bt as useScrollbarClass};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|