@oaknational/oak-components 0.41.0 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -11,5 +11,5 @@ import e,{css as n,ThemeProvider as t,createGlobalStyle as r,keyframes as o}from
|
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function za(){if(Sa)return Ma;Sa=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return Ma=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var s in i=Object(arguments[l]))n.call(i,s)&&(c[s]=i[s]);if(e){a=e(i);for(var d=0;d<a.length;d++)t.call(i,a[d])&&(c[a[d]]=i[a[d]])}}return c},Ma}function La(){return ja?Ia:(ja=1,Ia=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Ba=Aa();ya.exports=function(){if(Ta)return Da;Ta=1;var e=Aa(),n=za(),t=wa(),r=La(),o=function(){if(Na)return Oa;Na=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=wa(),t={},r=La();e=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function o(o,i,a,c,l){if("production"!==process.env.NODE_ENV)for(var s in o)if(r(o,s)){var d;try{if("function"!=typeof o[s]){var u=Error((c||"React class")+": "+a+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[s](i,s,c,a,null,n)}catch(e){d=e}if(!d||d instanceof Error||e((c||"React class")+": type specification of "+a+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},Oa=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}),Da=function(c,l){var s="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:b(a),arrayOf:function(e){return b((function(n,r,o,i,a){if("function"!=typeof e)return new g("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=n[r];if(!Array.isArray(c))return new g("Invalid "+i+" `"+a+"` of type `"+y(c)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<c.length;l++){var s=e(c,l,o,i,a+"["+l+"]",t);if(s instanceof Error)return s}return null}))},element:b((function(e,n,t,r,o){var i=e[n];return c(i)?null:new g("Invalid "+r+" `"+o+"` of type `"+y(i)+"` supplied to `"+t+"`, expected a single ReactElement.")})),elementType:b((function(n,t,r,o,i){var a=n[t];return e.isValidElementType(a)?null:new g("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return b((function(n,t,r,o,i){if(!(n[t]instanceof e)){var a=e.name||u;return new g("Invalid "+o+" `"+i+"` of type `"+((c=n[t]).constructor&&c.constructor.name?c.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var c;return null}))},node:b((function(e,n,t,r,o){return v(e[n])?null:new g("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return b((function(n,o,i,a,c){if("function"!=typeof e)return new g("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=n[o],s=y(l);if("object"!==s)return new g("Invalid "+a+" `"+c+"` of type `"+s+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,a,c+"."+d,t);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?b((function(n,t,r,o,i){for(var a=n[t],c=0;c<e.length;c++)if(f(a,e[c]))return null;var l=JSON.stringify(e,(function(e,n){return"symbol"===w(n)?String(n):n}));return new g("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+n+"."),a}return b((function(n,o,i,a,c){for(var l=[],s=0;s<e.length;s++){var d=(0,e[s])(n,o,i,a,c,t);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new g("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return b((function(n,r,o,i,a){var c=n[r],l=y(c);if("object"!==l)return new g("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var d=e[s];if("function"!=typeof d)return m(o,i,a,s,w(d));var u=d(c,s,o,i,a+"."+s,t);if(u)return u}return null}))},exact:function(e){return b((function(o,i,a,c,l){var s=o[i],d=y(s);if("object"!==d)return new g("Invalid "+c+" `"+l+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=n({},o[i],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return m(a,c,l,p,w(f));if(!f)return new g("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var b=f(s,p,a,c,l+"."+p,t);if(b)return b}return null}))}};function f(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function g(e,n){this.message=e,this.data=n&&"object"==typeof n?n:{},this.stack=""}function b(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,a,c,s,d,p,f){if(s=s||u,p=p||c,f!==t){if(l){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=s+":"+c;!n[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==a[c]?o?null===a[c]?new g("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `null`."):new g("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(a,c,s,d,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function h(e){return b((function(n,t,r,o,i,a){var c=n[t];return y(c)!==e?new g("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,n,t,r,o){return new g((e||"React class")+": "+n+" type `"+t+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||c(e))return!0;var n=function(e){var n=e&&(s&&e[s]||e[d]);if("function"==typeof n)return n}(e);if(!n)return!1;var t,r=n.call(e);if(n!==e.entries){for(;!(t=r.next()).done;)if(!v(t.value))return!1}else for(;!(t=r.next()).done;){var o=t.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function y(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function w(e){if(null==e)return""+e;var n=y(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function x(e){var n=w(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return g.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Da}()(Ba.isElement,!0)}else ya.exports=function(){if(va)return ma;va=1;var e=wa();function n(){}function t(){}return t.resetWarningCache=n,ma=function(){function r(n,t,r,o,i,a){if(a!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i}}()();var Za=ya.exports,Pa=ga(Za),Fa="data-focus-lock",qa="data-focus-lock-disabled",Wa={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};"production"===process.env.NODE_ENV||Pa.node;var Ha=aa({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),_a=aa(),Ga=aa(),Va=ca({async:!0,ssr:"undefined"!=typeof document}),Ya=s(void 0),Ua=[],Xa=i.forwardRef((function(e,n){var t,r=i.useState(),o=r[0],a=r[1],c=i.useRef(),l=i.useRef(!1),s=i.useRef(null),d=i.useState({})[1],u=e.children,p=e.disabled,f=void 0!==p&&p,g=e.noFocusGuards,b=void 0!==g&&g,h=e.persistentFocus,m=void 0!==h&&h,v=e.crossFrame,y=void 0===v||v,w=e.autoFocus,x=void 0===w||w,$=e.allowTextSelection,C=e.group,E=e.className,k=e.whiteList,M=e.hasPositiveIndices,S=e.shards,I=void 0===S?Ua:S,j=e.as,O=void 0===j?"div":j,N=e.lockProps,D=void 0===N?{}:N,T=e.sideCar,R=e.returnFocus,A=void 0!==R&&R,z=e.focusOptions,L=e.onActivation,B=e.onDeactivation,Z=i.useState({})[0],P=i.useCallback((function(e){var n=e.captureFocusRestore;if(!s.current){var t,r=null==(t=document)?void 0:t.activeElement;s.current=r,r!==document.body&&(s.current=n(r))}c.current&&L&&L(c.current),l.current=!0,d()}),[L]),F=i.useCallback((function(){l.current=!1,B&&B(c.current),d()}),[B]),q=i.useCallback((function(e){var n=s.current;if(n){var t=("function"==typeof n?n():n)||document.body,r="function"==typeof A?A(t):A;if(r){var o="object"==typeof r?r:void 0;s.current=null,e?Promise.resolve().then((function(){return t.focus(o)})):t.focus(o)}}}),[A]),W=i.useCallback((function(e){l.current&&Ha.useMedium(e)}),[]),H=_a.useMedium,_=i.useCallback((function(e){c.current!==e&&(c.current=e,a(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==$&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),i.useEffect((function(){c.current||"string"==typeof O||console.error("FocusLock: could not obtain ref to internal node")}),[]));var G=fa(((t={})[qa]=f&&"disabled",t[Fa]=C,t),D),V=!0!==b,Y=V&&"tail"!==b,U=ra([n,_]),X=i.useMemo((function(){return{observed:c,shards:I,enabled:!f,active:l.current}}),[f,l.current,I,o]);return i.createElement(i.Fragment,null,V&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:Wa}),M?i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:Wa}):null],!f&&i.createElement(T,{id:Z,sideCar:Va,observed:o,disabled:f,persistentFocus:m,crossFrame:y,autoFocus:x,whiteList:k,shards:I,onActivation:P,onDeactivation:F,returnFocus:q,focusOptions:z}),i.createElement(O,fa({ref:U},G,{className:E,onBlur:H,onFocus:W}),i.createElement(Ya.Provider,{value:X},u)),Y&&i.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:Wa}))}));Xa.propTypes="production"!==process.env.NODE_ENV?{children:Za.node,disabled:Za.bool,returnFocus:Za.oneOfType([Za.bool,Za.object,Za.func]),focusOptions:Za.object,noFocusGuards:Za.bool,hasPositiveIndices:Za.bool,allowTextSelection:Za.bool,autoFocus:Za.bool,persistentFocus:Za.bool,crossFrame:Za.bool,group:Za.string,className:Za.string,whiteList:Za.func,shards:Za.arrayOf(Za.any),as:Za.oneOfType([Za.string,Za.func,Za.object]),lockProps:Za.object,onActivation:Za.func,onDeactivation:Za.func,sideCar:Za.any.isRequired}:{};var Ka=Xa;function Ja(e){setTimeout(e,1)}var Qa=function(e){return e&&"current"in e?e.current:e},ec=ca(),nc="data-focus-on-hidden",tc={preventScroll:!0},rc=i.forwardRef((function(e,n){var t=i.useState(!1),r=t[0],o=t[1],a=e.children,c=e.autoFocus,l=e.shards,s=e.crossFrame,d=e.enabled,u=void 0===d||d,p=e.scrollLock,f=void 0===p||p,g=e.focusLock,b=void 0===g||g,h=e.returnFocus,m=void 0===h||h,v=e.inert,y=e.allowPinchZoom,w=e.sideCar,x=e.className,$=e.shouldIgnore,C=e.preventScrollOnFocus,E=e.style,k=e.as,M=e.gapMode,j=I(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),O=w,N=r.onActivation,D=r.onDeactivation,T=I(r,["onActivation","onDeactivation"]),R=S(S({},T),{as:k,style:E,sideCar:w,shards:l,allowPinchZoom:y,gapMode:M,inert:v,enabled:u&&f});return i.createElement(i.Fragment,null,i.createElement(Ka,{ref:n,sideCar:w,disabled:!(r&&u&&b),returnFocus:m,autoFocus:c,shards:l,crossFrame:s,onActivation:N,onDeactivation:D,className:x,whiteList:$,lockProps:R,focusOptions:C?tc:void 0,as:pa},a),u&&i.createElement(O,S({},j,{sideCar:ec,setLockProps:o,shards:l})))}));function oc(e,n){return oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},oc(e,n)}function ic(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,oc(e,n)}function ac(e){return ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ac(e)}function cc(e){var n=function(e,n){if("object"!==ac(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===ac(n)?n:String(n)}var lc=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},sc=function(e){return Array.isArray(e)?e:[e]},dc=function(e){return Array.isArray(e)?e[0]:e},uc=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},pc=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},fc=function(e,n){return!e||pc(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!(!n||!n.getPropertyValue||"none"!==n.getPropertyValue("display")&&"hidden"!==n.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&n(uc(e))},gc=function(e,n){var t=e.get(n);if(void 0!==t)return t;var r=fc(n,gc.bind(void 0,e));return e.set(n,r),r},bc=function(e,n){var t=e.get(n);if(void 0!==t)return t;var r=function(e,n){return!(e&&!pc(e))||!!yc(e)&&n(uc(e))}(n,bc.bind(void 0,e));return e.set(n,r),r},hc=function(e){return e.dataset},mc=function(e){return"INPUT"===e.tagName},vc=function(e){return mc(e)&&"radio"===e.type},yc=function(e){var n=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(n)},wc=function(e){var n;return Boolean(e&&(null===(n=hc(e))||void 0===n?void 0:n.focusGuard))},xc=function(e){return!wc(e)},$c=function(e){return Boolean(e)},Cc=function(e,n){var t=Math.max(0,e.tabIndex),r=Math.max(0,n.tabIndex),o=t-r,i=e.index-n.index;if(o){if(!t)return 1;if(!r)return-1}return o||i},Ec=function(e,n,t){return lc(e).map((function(e,n){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:n,tabIndex:t&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!n||e.tabIndex>=0})).sort(Cc)},kc=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Mc="".concat(kc,", [data-focus-guard]"),Sc=function(e,n){return lc((e.shadowRoot||e).children).reduce((function(e,t){return e.concat(t.matches(n?Mc:kc)?[t]:[],Sc(t))}),[])},Ic=function(e,n){return e.reduce((function(e,t){var r,o=Sc(t,n),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,n){var t;return e instanceof HTMLIFrameElement&&(null===(t=e.contentDocument)||void 0===t?void 0:t.body)?Ic([e.contentDocument.body],n):[e]}(e,n)})));return e.concat(i,t.parentNode?lc(t.parentNode.querySelectorAll(kc)).filter((function(e){return e===t})):[])}),[])},jc=function(e,n){return lc(e).filter((function(e){return gc(n,e)})).filter((function(e){return function(e){return!((mc(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},Oc=function(e,n){return void 0===n&&(n=new Map),lc(e).filter((function(e){return bc(n,e)}))},Nc=function(e,n,t){return Ec(jc(Ic(e,t),n),!0,t)},Dc=function(e,n){return Ec(jc(Ic(e),n),!1)},Tc=function(e,n){return jc((t=e.querySelectorAll("[".concat("data-autofocus-inside","]")),lc(t).map((function(e){return Ic([e])})).reduce((function(e,n){return e.concat(n)}),[])),n);var t},Rc=function(e,n){return e.shadowRoot?Rc(e.shadowRoot,n):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,n))||lc(e.children).some((function(e){var t;if(e instanceof HTMLIFrameElement){var r=null===(t=e.contentDocument)||void 0===t?void 0:t.body;return!!r&&Rc(r,n)}return Rc(e,n)}))},Ac=function(e){return e.parentNode?Ac(e.parentNode):e},zc=function(e){return sc(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute(Fa);return e.push.apply(e,t?function(e){for(var n=new Set,t=e.length,r=0;r<t;r+=1)for(var o=r+1;o<t;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(r)}return e.filter((function(e,t){return!n.has(t)}))}(lc(Ac(n).querySelectorAll("[".concat(Fa,'="').concat(t,'"]:not([').concat(qa,'="disabled"])')))):[n]),e}),[])},Lc=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var n=e.activeElement;return n.shadowRoot?Lc(n.shadowRoot):n instanceof HTMLIFrameElement&&function(e){try{return e()}catch(e){return}}((function(){return n.contentWindow.document}))?Lc(n.contentWindow.document):n}},Bc=function(e,n){return void 0===n&&(n=Lc(dc(e).ownerDocument)),!(!n||n.dataset&&n.dataset.focusGuard)&&zc(e).some((function(e){return Rc(e,n)||function(e,n){return Boolean(lc(e.querySelectorAll("iframe")).some((function(e){return function(e,n){return e===n}(e,n)})))}(e,n)}))},Zc=function(e,n){return vc(e)&&e.name?function(e,n){return n.filter(vc).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,n):e},Pc=function(e){return e[0]&&e.length>1?Zc(e[0],e):e[0]},Fc=function(e,n){return e.indexOf(Zc(n,e))},qc="NEW_FOCUS",Wc=function(e,n,t,r,o){var i=e.length,a=e[0],c=e[i-1],l=wc(r);if(!(r&&e.indexOf(r)>=0)){var s=void 0!==r?t.indexOf(r):-1,d=o?t.indexOf(o):s,u=o?e.indexOf(o):-1;if(-1===s)return-1!==u?u:qc;if(-1===u)return qc;var p,f,g=s-d,b=t.indexOf(a),h=t.indexOf(c),m=(p=t,f=new Set,p.forEach((function(e){return f.add(Zc(e,p))})),p.filter((function(e){return f.has(e)}))),v=(void 0!==r?m.indexOf(r):-1)-(o?m.indexOf(o):s);if(!g&&u>=0)return u;if(0===n.length)return u;var y=Fc(e,n[0]),w=Fc(e,n[n.length-1]);return s<=b&&l&&Math.abs(g)>1?w:s>=h&&l&&Math.abs(g)>1?y:g&&Math.abs(v)>1?u:s<=b?w:s>h?y:g?Math.abs(g)>1?u:(i+u+g)%i:void 0}},Hc=function(e,n,t){var r,o=e.map((function(e){return e.node})),i=Oc(o.filter((r=t,function(e){var n,t=null===(n=hc(e))||void 0===n?void 0:n.autofocus;return e.autofocus||void 0!==t&&"false"!==t||r.indexOf(e)>=0})));return i&&i.length?Pc(i):Pc(Oc(n))},_c=function(e,n){return void 0===n&&(n=[]),n.push(e),e.parentNode&&_c(e.parentNode.host||e.parentNode,n),n},Gc=function(e,n){for(var t=_c(e),r=_c(n),o=0;o<t.length;o+=1){var i=t[o];if(r.indexOf(i)>=0)return i}return!1},Vc=function(e,n,t){var r=sc(e),o=sc(n),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Gc(a||e,e)||a,t.filter(Boolean).forEach((function(e){var n=Gc(i,e);n&&(a=!a||Rc(n,a)?n:Gc(n,a))}))})),a},Yc=function(e,n){return e.reduce((function(e,t){return e.concat(Tc(t,n))}),[])},Uc=function(e,n){var t=Lc(sc(e).length>0?document:dc(e).ownerDocument),r=zc(e).filter(xc),o=Vc(t||e,e,r),i=new Map,a=Dc(r,i),c=a.filter((function(e){var n=e.node;return xc(n)}));if(c[0]){var l,s,d,u=Dc([o],i).map((function(e){return e.node})),p=(l=u,s=c,d=new Map,s.forEach((function(e){return d.set(e.node,e)})),l.map((function(e){return d.get(e)})).filter($c)),f=p.map((function(e){return e.node})),g=p.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),b=Wc(f,g,u,t,n);if(b===qc){var h=Hc(a,g,Yc(r,i))||Hc(a,f,Yc(r,i));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===b?b:p[b]}},Xc=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Kc=0,Jc=!1,Qc=function(e,n,t){void 0===t&&(t={});var r=Uc(e,n);if(!Jc&&r){if(Kc>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Jc=!0,void setTimeout((function(){Jc=!1}),1);Kc++,Xc(r.node,t.focusOptions),Kc--}};function el(e){if(!e)return null;var n=e?new WeakRef(e):null;return function(){return(null==n?void 0:n.deref())||null}}var nl=function(e,n,t){void 0===n&&(n={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(n),o=function(e,n,t){if(!e||!n)return console.error("no element or scope given"),{};var r=sc(n);if(r.every((function(n){return!Rc(n,e)})))return console.error("Active element is not contained in the scope"),{};var o=t?Nc(r,new Map):Dc(r,new Map),i=o.findIndex((function(n){return n.node===e}));return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=t(o,r.cycle);i&&Xc(i.node,r.focusOptions)}},tl=function(e,n,t){var r,o,i,a,c=(o=e,i=null===(r=n.onlyTabbable)||void 0===r||r,{first:(a=i?Nc(sc(o),new Map):Dc(sc(o),new Map))[0],last:a[a.length-1]})[t];c&&Xc(c.node,n.focusOptions)},rl=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var n=Lc(e);return!!n&&lc(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return Rc(e,n)}))}()},ol=null,il=null,al=null,cl=!1,ll=function(){return!0};function sl(e,n,t,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=t)!==n);o&&(o.node.tabIndex=0)}var dl=function e(n,t,r){return t&&(t.host===n&&(!t.activeElement||r.contains(t.activeElement))||t.parentNode&&e(n,t.parentNode,r))},ul=function(){var e,n,t,r,o,i,a=!1;if(ol){var c=ol,l=c.observed,s=c.persistentFocus,d=c.autoFocus,u=c.shards,p=c.crossFrame,f=c.focusOptions,g=l||al&&al.portaledElement,b=document&&document.activeElement;if(g){var h=[g].concat(u.map(Qa).filter(Boolean));if(b&&!function(e){return(ol.whiteList||ll)(e)}(b)||(s||(p?Boolean(cl):"meanwhile"===cl)||!rl()||!il&&d)&&(g&&!(Bc(h)||b&&function(e,n){return n.some((function(n){return dl(e,n,n)}))}(b,h)||(i=b,al&&al.portaledElement===i))&&(document&&!il&&b&&!d?(b.blur&&b.blur(),document.body.focus()):(a=Qc(h,il,{focusOptions:f}),al={})),cl=!1,il=document&&document.activeElement),document&&b!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var m=document&&document.activeElement,v=(n=zc(e=h).filter(xc),t=Vc(e,e,n),r=Ec(Ic([t],!0),!0,!0),o=Ic(n,!1),r.map((function(e){var n=e.node;return{node:n,index:e.index,lockItem:o.indexOf(n)>=0,guard:wc(n)}}))),y=v.map((function(e){return e.node})).indexOf(m);y>-1&&(v.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),sl(y,v.length,1,v),sl(y,-1,-1,v))}}}return a},pl=function(e){ul()&&e&&(e.stopPropagation(),e.preventDefault())},fl=function(){return Ja(ul)};"production"===process.env.NODE_ENV||Pa.node.isRequired;var gl=function(){cl="just",Ja((function(){cl="meanwhile"}))};var bl={moveFocusInside:Qc,focusInside:Bc,focusNextElement:function(e,n){void 0===n&&(n={}),nl(e,n,(function(e,n){var t=e.next,r=e.first;return t||n&&r}))},focusPrevElement:function(e,n){void 0===n&&(n={}),nl(e,n,(function(e,n){var t=e.prev,r=e.last;return t||n&&r}))},focusFirstElement:function(e,n){void 0===n&&(n={}),tl(e,n,"first")},focusLastElement:function(e,n){void 0===n&&(n={}),tl(e,n,"last")},captureFocusRestore:function(e){var n=function(e){if(!e)return null;for(var n=[],t=e;t&&t!==document.body;)n.push({current:el(t),parent:el(t.parentElement),left:el(t.previousElementSibling),right:el(t.nextElementSibling)}),t=t.parentElement;return{element:el(e),stack:n,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var n,t,r,o,i;if(e)for(var a=e.stack,c=e.ownerDocument,l=new Map,s=0,d=a;s<d.length;s++){var u=d[s],p=null===(n=u.parent)||void 0===n?void 0:n.call(u);if(p&&c.contains(p)){for(var f=null===(t=u.left)||void 0===t?void 0:t.call(u),g=u.current(),b=p.contains(g)?g:void 0,h=null===(r=u.right)||void 0===r?void 0:r.call(u),m=Nc([p],l),v=null!==(i=null!==(o=null!=b?b:null==f?void 0:f.nextElementSibling)&&void 0!==o?o:h)&&void 0!==i?i:f;v;){for(var y=0,w=m;y<w.length;y++){var x=w[y];if(null==v?void 0:v.contains(x.node))return x.node}v=v.nextElementSibling}if(m.length)return m[0].node}}}(n)}}};Ha.assignSyncMedium((function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(al={observerNode:t,portaledElement:n})})),_a.assignMedium(fl),Ga.assignMedium((function(e){return e(bl)}));var hl=function(e,n){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof n)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(t){if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw new Error("Expected WrappedComponent to be a React component.");var r,o=[];function i(){r=e(o.map((function(e){return e.props}))),n(r)}var c=function(e){function n(){return e.apply(this,arguments)||this}ic(n,e),n.peek=function(){return r};var c=n.prototype;return c.componentDidMount=function(){o.push(this),i()},c.componentDidUpdate=function(){i()},c.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},c.render=function(){return a.createElement(t,this.props)},n}(g);return function(e,n,t){(n=cc(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t}(c,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(t)+")"),c}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!ol&&(document.addEventListener("focusin",pl),document.addEventListener("focusout",fl),window.addEventListener("blur",gl));var t=ol,r=t&&n&&n.id===t.id;ol=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(il=null,r&&t.observed===n.observed||n.onActivation(bl),ul(),Ja(ul)):(document.removeEventListener("focusin",pl),document.removeEventListener("focusout",fl),window.removeEventListener("blur",gl),il=null)}))((function(){return null}));sa(Va,hl);function ml(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return n&&e.setAttribute("nonce",n),e}var vl=function(){var e=0,n=null;return{add:function(t){var r;0==e&&(n=ml())&&(!function(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}(n,t),r=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},yl=function(){var e,n=(e=vl(),function(n,t){i.useEffect((function(){return e.add(n),function(){e.remove()}}),[n&&t])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},wl={left:0,top:0,right:0,gap:0},xl=function(e){return parseInt(e||"",10)||0},$l=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return wl;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[xl(t),xl(r),xl(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},Cl=yl(),El="data-scroll-locked",kl=function(e,n,t,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===t&&(t="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(El,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===t&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Qi," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(ea," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Qi," .").concat(Qi," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ea," .").concat(ea," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(El,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},Ml=function(){var e=parseInt(document.body.getAttribute(El)||"0",10);return isFinite(e)?e:0},Sl=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;i.useEffect((function(){return document.body.setAttribute(El,(Ml()+1).toString()),function(){var e=Ml()-1;e<=0?document.body.removeAttribute(El):document.body.setAttribute(El,e.toString())}}),[]);var a=i.useMemo((function(){return $l(o)}),[o]);return i.createElement(Cl,{styles:kl(a,!n,o,t?"":"!important")})},Il=!1;if("undefined"!=typeof window)try{var jl=Object.defineProperty({},"passive",{get:function(){return Il=!0,!0}});window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch(e){Il=!1}var Ol=!!Il&&{passive:!1},Nl=function(e,n){var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===t[n])},Dl=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Tl(e,r)){var o=Rl(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},Tl=function(e,n){return"v"===e?function(e){return Nl(e,"overflowY")}(n):function(e){return Nl(e,"overflowX")}(n)},Rl=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},Al=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zl=function(e){return[e.deltaX,e.deltaY]},Ll=function(e){return e&&"current"in e?e.current:e},Bl=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Zl=0,Pl=[];function Fl(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}sa(da,(function(e){var n=i.useRef([]),t=i.useRef([0,0]),r=i.useRef(),o=i.useState(Zl++)[0],a=i.useState(yl)[0],c=i.useRef(e);i.useEffect((function(){c.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var n=N([e.lockRef.current],(e.shards||[]).map(Ll),!0).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),n.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback((function(e,n){if("touches"in e&&2===e.touches.length)return!c.current.allowPinchZoom;var o,i=Al(e),a=t.current,l="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],d=e.target,u=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=Dl(u,d);if(!p)return!0;if(p?o=u:(o="v"===u?"h":"v",p=Dl(u,d)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||s)&&(r.current=o),!o)return!0;var f=r.current||o;return function(e,n,t,r,o){var i=function(e,n){return"h"===e&&"rtl"===n?-1:1}(e,window.getComputedStyle(n).direction),a=i*r,c=t.target,l=n.contains(c),s=!1,d=a>0,u=0,p=0;do{var f=Rl(e,c),g=f[0],b=f[1]-f[2]-i*g;(g||b)&&Tl(e,c)&&(u+=b,p+=g),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!l&&c!==document.body||l&&(n.contains(c)||n===c));return(d&&(o&&Math.abs(u)<1||!o&&a>u)||!d&&(o&&Math.abs(p)<1||!o&&-a>p))&&(s=!0),s}(f,n,e,"h"===f?l:s,!0)}),[]),s=i.useCallback((function(e){var t=e;if(Pl.length&&Pl[Pl.length-1]===a){var r="deltaY"in t?zl(t):Al(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(c.current.shards||[]).map(Ll).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?l(t,i[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),d=i.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Fl(r)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),u=i.useCallback((function(e){t.current=Al(e),r.current=void 0}),[]),p=i.useCallback((function(n){d(n.type,zl(n),n.target,l(n,e.lockRef.current))}),[]),f=i.useCallback((function(n){d(n.type,Al(n),n.target,l(n,e.lockRef.current))}),[]);i.useEffect((function(){return Pl.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Ol),document.addEventListener("touchmove",s,Ol),document.addEventListener("touchstart",u,Ol),function(){Pl=Pl.filter((function(e){return e!==a})),document.removeEventListener("wheel",s,Ol),document.removeEventListener("touchmove",s,Ol),document.removeEventListener("touchstart",u,Ol)}}),[]);var g=e.removeScrollBar,b=e.inert;return i.createElement(i.Fragment,null,b?i.createElement(a,{styles:Bl(o)}):null,g?i.createElement(Sl,{gapMode:e.gapMode}):null)}));var ql=new WeakMap,Wl=new WeakMap,Hl={},_l=0,Gl=function(e){return e&&(e.host||Gl(e.parentNode))},Vl=function(e,n,t,r){var o=function(e,n){return n.map((function(n){if(e.contains(n))return n;var t=Gl(n);return t&&e.contains(t)?t:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(n,Array.isArray(e)?e:[e]);Hl[t]||(Hl[t]=new WeakMap);var i=Hl[t],a=[],c=new Set,l=new Set(o),s=function(e){e&&!c.has(e)&&(c.add(e),s(e.parentNode))};o.forEach(s);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))d(e);else{var n=e.getAttribute(r),o=null!==n&&"false"!==n,l=(ql.get(e)||0)+1,s=(i.get(e)||0)+1;ql.set(e,l),i.set(e,s),a.push(e),1===l&&o&&Wl.set(e,!0),1===s&&e.setAttribute(t,"true"),o||e.setAttribute(r,"true")}}))};return d(n),c.clear(),_l++,function(){a.forEach((function(e){var n=ql.get(e)-1,o=i.get(e)-1;ql.set(e,n),i.set(e,o),n||(Wl.has(e)||e.removeAttribute(r),Wl.delete(e)),o||e.removeAttribute(t)})),--_l||(ql=new WeakMap,ql=new WeakMap,Wl=new WeakMap,Hl={})}},Yl=function(e,n,t){void 0===t&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=n||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vl(r,o,t,"aria-hidden")):function(){return null}},Ul=yl(),Xl="\n ["+nc+"] {\n pointer-events: none !important;\n }\n",Kl=function(){return i.createElement(Ul,{styles:Xl})},Jl=function(e){return"current"in e?e.current:e};var Ql=sa(ec,(function(e){var n=e.setLockProps,t=e.onEscapeKey,r=e.onClickOutside,o=e.shards,a=e.onActivation,l=e.onDeactivation,s=e.noIsolation,d=c(void 0),p=d[0],f=d[1],g=u(null),h=u(0);return i.useEffect((function(){var e=function(e){e.defaultPrevented||"Escape"!==e.code&&"Escape"!==e.key&&27!==e.keyCode||!t||t(e)},n=function(e){e.defaultPrevented||e.target===g.current||e instanceof MouseEvent&&0!==e.button||o&&o.map(Jl).some((function(n){return n&&n.contains(e.target)||n===e.target}))||r&&r(e)},i=function(e){n(e),h.current=e.touches.length},a=function(e){h.current=e.touches.length};if(p)return document.addEventListener("keydown",e),document.addEventListener("mousedown",n),document.addEventListener("touchstart",i),document.addEventListener("touchend",a),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",i),document.removeEventListener("touchend",a)}}),[p,r,t]),b((function(){if(p)return a&&a(p),function(){l&&l()}}),[!!p]),b((function(){var e=function(){return null},t=!1;return n({onMouseDown:function(e){g.current=e.target},onTouchStart:function(e){g.current=e.target},onActivation:function(n){s||(e=Yl(function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),o=0;for(n=0;n<t;n++)for(var i=arguments[n],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}([n],(o||[]).map(Jl)),document.body,nc)),f((function(){return n}))},onDeactivation:function(){e(),t||f(null)}}),function(){t=!0,n(!1)}}),[]),i.createElement(Kl,null)})),es=function(e){return i.createElement(Ql,S({},e))},ns=i.forwardRef((function(e,n){return i.createElement(rc,S({},e,{ref:n,sideCar:es}))}));var ts=!1,rs="production"!==process.env.NODE_ENV?Pa.oneOfType([Pa.number,Pa.shape({enter:Pa.number,exit:Pa.number,appear:Pa.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Pa.oneOfType([Pa.string,Pa.shape({enter:Pa.string,exit:Pa.string,active:Pa.string}),Pa.shape({enter:Pa.string,enterDone:Pa.string,enterActive:Pa.string,exit:Pa.string,exitDone:Pa.string,exitActive:Pa.string})]);var os=a.createContext(null),is="unmounted",as="exited",cs="entering",ls="entered",ss="exiting",ds=function(e){function n(n,t){var r;r=e.call(this,n,t)||this;var o,i=t&&!t.isMounting?n.enter:n.appear;return r.appearStatus=null,n.in?i?(o=as,r.appearStatus=cs):o=ls:o=n.unmountOnExit||n.mountOnEnter?is:as,r.state={status:o},r.nextCallback=null,r}ic(n,e),n.getDerivedStateFromProps=function(e,n){return e.in&&n.status===is?{status:as}:null};var t=n.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(e){var n=null;if(e!==this.props){var t=this.state.status;this.props.in?t!==cs&&t!==ls&&(n=cs):t!==cs&&t!==ls||(n=ss)}this.updateStatus(!1,n)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var e,n,t,r=this.props.timeout;return e=n=t=r,null!=r&&"number"!=typeof r&&(e=r.exit,n=r.enter,t=void 0!==r.appear?r.appear:n),{exit:e,enter:n,appear:t}},t.updateStatus=function(e,n){if(void 0===e&&(e=!1),null!==n)if(this.cancelNextCallback(),n===cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var t=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);t&&function(e){e.scrollTop}(t)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===as&&this.setState({status:is})},t.performEnter=function(e){var n=this,t=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[C.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!e&&!t||ts?this.safeSetState({status:ls},(function(){n.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:cs},(function(){n.props.onEntering(i,a),n.onTransitionEnd(l,(function(){n.safeSetState({status:ls},(function(){n.props.onEntered(i,a)}))}))})))},t.performExit=function(){var e=this,n=this.props.exit,t=this.getTimeouts(),r=this.props.nodeRef?void 0:C.findDOMNode(this);n&&!ts?(this.props.onExit(r),this.safeSetState({status:ss},(function(){e.props.onExiting(r),e.onTransitionEnd(t.exit,(function(){e.safeSetState({status:as},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:as},(function(){e.props.onExited(r)}))},t.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},t.setNextCallback=function(e){var n=this,t=!0;return this.nextCallback=function(r){t&&(t=!1,n.nextCallback=null,e(r))},this.nextCallback.cancel=function(){t=!1},this.nextCallback},t.onTransitionEnd=function(e,n){this.setNextCallback(n);var t=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(t&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[t,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},t.render=function(){var e=this.state.status;if(e===is)return null;var n=this.props,t=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a.createElement(os.Provider,{value:null},"function"==typeof t?t(e,r):a.cloneElement(a.Children.only(t),r))},n}(a.Component);function us(){}ds.contextType=os,ds.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Pa.shape({current:"undefined"==typeof Element?Pa.any:function(e,n,t,r,o,i){var a=e[n];return Pa.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,n,t,r,o,i)}}),children:Pa.oneOfType([Pa.func.isRequired,Pa.element.isRequired]).isRequired,in:Pa.bool,mountOnEnter:Pa.bool,unmountOnExit:Pa.bool,appear:Pa.bool,enter:Pa.bool,exit:Pa.bool,timeout:function(e){var n=rs;e.addEndListener||(n=n.isRequired);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.apply(void 0,[e].concat(r))},addEndListener:Pa.func,onEnter:Pa.func,onEntering:Pa.func,onEntered:Pa.func,onExit:Pa.func,onExiting:Pa.func,onExited:Pa.func}:{},ds.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:us,onEntering:us,onEntered:us,onExit:us,onExiting:us,onExited:us},ds.UNMOUNTED=is,ds.EXITED=as,ds.ENTERING=cs,ds.ENTERED=ls,ds.EXITING=ss;var ps,fs,gs,bs,hs,ms,vs,ys,ws,xs,$s,Cs,Es,ks,Ms,Ss,Is,js,Os=ds,Ns=e(nt)(ps||(ps=D(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),(function(e){switch(e.$state){case"entered":case"entering":return An("semi-transparent");default:return An("transparent")}})),Ds=e(rt)(fs||(fs=D(["\n max-width: calc(100vw - ",");\n transform: ",";\n"],["\n max-width: calc(100vw - ",");\n transform: ",";\n"])),ne("inner-padding-l"),(function(e){switch(e.$state){case"entered":case"entering":return"translateX(0)";default:return"translateX(-100%)"}})),Ts="https://".concat(process.env.NEXT_PUBLIC_OAK_ASSETS_HOST,"/").concat(process.env.NEXT_PUBLIC_OAK_ASSETS_PATH,"/logo-mark.svg"),Rs=function(e){var n=e.children,t=e.footerSlot,r=e.domContainer,o=void 0===r?document.body:r,i=e.isOpen,l=e.onClose,s=I(e,["children","footerSlot","domContainer","isOpen","onClose"]),d=O(c(null),2),p=d[0],g=d[1],b=O(c(!1),2),h=b[0],m=b[1],v=u(null);return f((function(){if(p){var e=new IntersectionObserver((function(e){m(!e.some((function(e){return e.isIntersecting})))}),{root:p.parentElement});return e.observe(p),function(){e.disconnect()}}}),[p]),E(a.createElement(Os,{in:i,nodeRef:v,addEndListener:function(e){var n;null===(n=v.current)||void 0===n||n.addEventListener("transitionend",e)},timeout:500,mountOnEnter:!0,unmountOnExit:!0},(function(e){return a.createElement(ns,{onEscapeKey:l,returnFocus:!0,autoFocus:!0},a.createElement(Ns,{$position:"fixed",$inset:"all-spacing-0",$zIndex:"modal-dialog",$background:"black",$opacity:"semi-transparent",$state:e,$transition:"standard-ease"}),a.createElement(Ds,S({ref:v,$background:"bg-primary",$position:"fixed",$left:"all-spacing-0",$top:"all-spacing-0",$bottom:"all-spacing-0",$width:["all-spacing-22"],$zIndex:"modal-dialog",$flexDirection:"column",$transition:"standard-ease",$color:"text-primary",role:"dialog",$state:e},s),a.createElement(rt,{$ma:"space-between-s",$justifyContent:"space-between",$alignItems:"center"},a.createElement(St,{src:Ts,$height:"all-spacing-8",$width:"all-spacing-7",alt:""}),a.createElement(ao,{onClick:l,"aria-label":"Close",defaultIconBackground:"transparent",defaultIconColor:"black",defaultTextColor:"transparent",hoverTextColor:"transparent",disabledTextColor:"transparent",hoverIconBackground:"black",hoverIconColor:"white",disabledIconBackground:"transparent",iconBackgroundSize:"all-spacing-6",iconSize:"all-spacing-6",iconName:"cross"})),a.createElement("div",{style:{display:"contents"},"data-autofocus-inside":!0},a.createElement(rt,{$flexGrow:1,$flexDirection:"column",$overflow:"auto",$bt:"border-solid-s",$borderColor:h?"border-neutral-lighter":"transparent"},a.createElement("div",{ref:g}),n),t)))})),o)},As=function(e){return a.createElement(nt,{$mv:"space-between-m",$ph:"inner-padding-m"},e.children)},zs=function(e){return a.createElement(rt,S({},e,{$flexDirection:["column","row"],$bt:"border-solid-s",$borderColor:"border-neutral-lighter",$pa:"inner-padding-xl",$gap:["space-between-s","space-between-m"],$width:"100%"}))},Ls=e(ns)(gs||(gs=D(["\n ","\n"],["\n ","\n"])),et),Bs=e(nt)(bs||(bs=D(["\n backdrop-filter: blur(3px);\n"],["\n backdrop-filter: blur(3px);\n"]))),Zs=e(rt)(hs||(hs=D(["\n opacity: ",";\n transition: opacity 0s;\n"],["\n opacity: ",";\n transition: opacity 0s;\n"])),(function(e){switch(e.$state){case"entered":case"entering":return"1";default:return"0"}})),Ps=function(e){var n=e.children,t=e.domContainer,r=e.isOpen,o=e.onClose,i=void 0===o?function(){}:o,s=e.disableBackdropClick,d=void 0!==s&&s,p=e.disableEscapeKey,g=void 0!==p&&p,h=e.hideCloseButton,m=void 0!==h&&h,v=e.modalFlexProps,y=e.backdropFlexProps,w=e.footerSlot,x=O(c({top:!1,bottom:!1}),2),$=x[0],C=x[1],k=u(null),M=u(null),I=l((function(){var e=M.current;e&&(e.scrollHeight>e.clientHeight&&(M.current.tabIndex=0),C({top:e.scrollTop>0,bottom:e.scrollHeight>e.clientHeight}))}),[]);f((function(){var e;return I(),null===(e=M.current)||void 0===e||e.addEventListener("scroll",I),function(){var e;null===(e=M.current)||void 0===e||e.removeEventListener("scroll",I)}}),[r]),b((function(){return window.addEventListener("resize",I),function(){window.removeEventListener("resize",I)}}));var j="undefined"!=typeof window,N=a.createElement(Os,{in:r,nodeRef:k,addEndListener:function(e){var n;null===(n=k.current)||void 0===n||n.addEventListener("transitionend",e)},timeout:0,mountOnEnter:!0,unmountOnExit:!0},(function(e){return a.createElement(Zs,{ref:k,$state:e,$position:"fixed",$inset:"all-spacing-0",$justifyContent:"center",$alignItems:"center",$zIndex:"modal-dialog"},a.createElement(Bs,S({$position:"fixed",$inset:"all-spacing-0",$zIndex:"behind",$background:"blackSemiTransparent","data-testid":"backdrop"},y)),a.createElement(rt,{$alignItems:"center",$justifyContent:"center",$maxWidth:"all-spacing-23",$width:"100%",$pa:"inner-padding-l"},a.createElement(Ls,{onEscapeKey:function(){return!g&&i()},onClickOutside:function(){return!d&&i()},returnFocus:!0,autoFocus:!0,$width:"100%"},a.createElement(rt,S({$flexDirection:"column",$background:"white",$borderRadius:"border-radius-l",$ba:"border-solid-xl",$borderColor:"border-decorative1-stronger",$width:"100%",$position:"relative",role:"alertdialog",style:{maxHeight:"calc(100vh - ".concat(ne("inner-padding-xl5")," - ").concat(ne("inner-padding-xl5"),")")}},v),a.createElement(nt,{$minHeight:"inner-padding-xl5",$position:"relative"},!m&&a.createElement(nt,{$position:"absolute",$top:"all-spacing-3",$right:"all-spacing-3"},a.createElement(ao,{onClick:i,"aria-label":"Close Modal",defaultIconBackground:"transparent",defaultIconColor:"black",defaultTextColor:"transparent",hoverTextColor:"transparent",disabledTextColor:"transparent",hoverIconBackground:"black",hoverIconColor:"white",disabledIconBackground:"transparent",iconBackgroundSize:"all-spacing-7",iconSize:"all-spacing-7",iconName:"cross","data-testid":"close-button"}))),a.createElement("div",{style:{display:"contents"},"data-autofocus-inside":!0},a.createElement(rt,{ref:M,"data-testid":"modal-main-content",$overflow:"auto",$flexDirection:"column",$ph:"inner-padding-xl5",$bt:$.top?"border-solid-s":"border-solid-none",$bb:$.bottom?"border-solid-s":"border-solid-none",$borderColor:"border-neutral-lighter"},n),w)))))}));return t&&j?E(N,t):N},Fs=function(e){var n=e.children,t=e.iconName,r=void 0===t?"info":t,o=e.title,i=e.headingOverride,c=e.iconOverride;return a.createElement(rt,{$pb:"inner-padding-xl",$width:"100%",$flexDirection:"column",$alignItems:"center",$justifyContent:"center"},a.createElement(Qt,S({iconName:r,$width:"all-spacing-15",$height:"all-spacing-15",$mb:"space-between-m2","data-testid":"icon"},c)),a.createElement(Nt,S({$font:["heading-5","heading-5","heading-4"],"data-testid":"OakHeading-id",tag:"h1",$mb:"space-between-m2",$textAlign:"center"},i),o),n)},qs=function(e){var n=e.$pa,t=void 0===n?"inner-padding-xl":n,r=e.fill,o=void 0===r?"black":r,i=e.stroke,c=e.$width,l=void 0===c?"fit-content":c,s=I(e,["$pa","fill","stroke","$width"]);return a.createElement(si,S({$pa:t,$width:l,backgroundElement:a.createElement(Ei,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1280 130",preserveAspectRatio:"none",$fill:o,$stroke:i},a.createElement("path",{d:"M1279.41 10.776C1279 10.0177 1279.5 7.99963 1277.5 8.65073C1277 8.65073 1275.53 8.70062 1276 9.41902C1276.56 23.5974 1276.34 113.092 1276.5 127.5C1279.56 128.617 0.908149 127.396 3.00021 126.907C0.314877 122.776 4.03063 33.3856 3.00021 28.4965C1.50142 21.2426 3.15634 15.9345 3.00021 9.88797C2.50062 2.40466 5.02719 2.69402 30.132 3.02328C65.2287 3.02328 92.6753 2.94346 121.902 3.02328C179.387 2.95344 224.944 3.04324 265.786 3.02328C337.634 3.14302 398.835 2.90355 455.258 3.04324C613.381 2.74391 948.86 2.91353 1106.55 2.8836C1140.74 2.77384 1210.34 2.98337 1265.54 2.8836C1265.92 2.77384 1272.26 3.18293 1271.91 2.48449C1272.69 2.02551 1272.54 1.09758 1272.79 0.508892C1269.63 -0.269372 1265.04 0.199582 1262.14 0.169649C1031.33 0.329293 652.911 0.109783 455.508 0.459004C362.396 0.508892 273.03 0.478959 185.725 0.488937C140.918 0.488937 80.5913 0.488937 37.501 0.468981C16.0808 -0.488882 9.05519 0.399137 2.62287 0.369204C0.249785 0.359226 1.74858 2.66408 1.34265 3.45233C-1.40389 6.89465 0.178862 11.9996 0.000150621 17.1218C-0.343323 26.9699 0.312234 116.849 0.0936605 129.88C5.37066 130.16 24.0119 129.88 25.1984 129.94C172.236 130.1 523.859 129.87 669.117 129.91C885.755 129.86 1045.25 129.79 1261.02 129.79C1260.7 129.332 1284.53 130.898 1279.22 128.723C1279.09 113.178 1279.09 26.7005 1279.41 10.776ZM1268.85 2.47451C1268.6 2.4346 1268.45 2.30489 1268.73 2.13526C1269.2 2.00555 1269.54 2.69402 1268.85 2.47451ZM1263.73 0.73838C1264.98 0.73838 1265.39 1.28716 1263.92 0.927957C1263.14 0.808225 1262.95 0.73838 1263.73 0.73838ZM1260.83 1.96564C1261.39 1.78604 1264.54 1.58649 1262.64 1.96564C1261.17 2.23504 1259.3 2.99335 1260.83 1.96564ZM1277 12.8015C1276.59 11.9633 1277 8.56953 1277.5 10.4996C1277.75 12.6349 1278.5 13.4996 1277 12.8015ZM1266.1 2.255C1269.04 2.46453 1264.57 2.54435 1265.64 2.29491C1265.64 2.17518 1265.64 2.13526 1266.1 2.255ZM1266.35 0.698469C1266.35 0.698469 1266.64 0.748358 1266.64 0.848136C1266.98 1.25722 1265.04 0.688492 1266.35 0.698469ZM1278.5 9.63853C1278.5 9.63853 1278.78 10.0376 1278.78 10.8359C1279.12 14.1285 1278 9.63853 1278.5 9.63853ZM1269.48 1.46676C1270.04 1.7162 1269.23 1.76609 1269.2 1.5366C1269.2 1.42684 1269.32 1.38693 1269.48 1.46676ZM1255.58 0.129738C1256.67 0.0598939 1257.77 0.019983 1258.02 0.059894C1259.83 0.159671 1251.05 0.309338 1255.58 0.129738ZM1197.41 2.32484C1198.75 2.29491 1198.72 2.62417 1197.41 2.62417C1196.1 2.62417 1196.07 2.30489 1197.41 2.32484ZM1168.5 2.10533C1168.84 2.01553 1171.77 1.91575 1172.09 2.10533C1172.52 2.14524 1167.81 2.30489 1168.5 2.10533ZM1112.35 0.20956C1116.57 0.269427 1110.51 0.239493 1110.32 0.20956C1110.6 0.20956 1111.54 0.20956 1112.35 0.20956ZM1109.76 0.878069C1111.1 0.878069 1111.07 1.03771 1109.76 1.03771C1108.45 1.03771 1108.42 0.888047 1109.76 0.878069ZM1088.5 1.04769C1089.34 0.688492 1094.59 0.498915 1091.15 0.967869C1087.72 1.34702 1086.72 1.41687 1088.5 1.04769ZM1084.38 0.139716C1086.91 0.179627 1086.28 0.179627 1083.91 0.159671C1081.47 0.139716 1081.82 0.11976 1084.38 0.139716ZM1071.92 2.67406C1071.45 2.69402 1071.17 2.69402 1070.45 2.67406C1067.51 2.59424 1073.54 2.6142 1071.92 2.67406ZM1069.67 2.31486C1070.2 2.28493 1073.32 2.24502 1071.79 2.37473C1071.45 2.4346 1067.26 2.38471 1069.67 2.31486ZM1063.42 1.19736C1064.14 1.0876 1065.49 1.52662 1063.71 1.58649C1061.99 1.76609 1060.02 1.24725 1063.42 1.19736ZM1046.69 0.73838C1046.84 0.658558 1047.56 0.528848 1048.22 0.528848C1052.09 0.379182 1045.59 1.13749 1046.69 0.73838ZM1026.52 2.58426C1027.27 2.55433 1028.51 2.58426 1029.33 2.6142C1032.2 2.67406 1025.39 2.64413 1026.52 2.58426ZM1010.84 2.56431C1013.71 2.58426 1009.62 2.63415 1009.28 2.58426C1009.28 2.57428 1009.84 2.56431 1010.84 2.56431ZM991.514 0.788269C992.7 0.908002 994.012 0.478959 995.323 0.927957C994.98 1.45678 985.799 0.708447 991.514 0.788269ZM968.001 2.10533C970.031 1.8958 970 2.10533 968.001 2.255C966.034 2.46453 966.034 2.255 968.001 2.10533ZM964.254 1.40689C966.378 1.81598 961.756 1.85589 961.069 1.90578C961.788 1.66631 963.88 1.60644 964.254 1.40689ZM958.009 2.22506C958.977 2.1652 959.508 2.1652 960.476 2.22506C963.224 2.30489 955.293 2.30489 958.009 2.22506ZM955.761 0.059894C958.852 0.0299607 954.106 0.159671 954.075 0.0798494C954.075 0.0698717 954.824 0.059894 955.761 0.059894ZM950.984 2.27495C951.452 2.30489 952.888 2.27495 953.451 2.49446C954.169 2.73393 946.737 2.6142 950.984 2.27495ZM937.744 2.60422C938.494 2.59424 939.68 2.60422 940.43 2.6142C944.364 2.64413 935.621 2.64413 937.744 2.60422ZM896.965 1.99558C899.713 2.15522 897.964 2.10533 896.965 2.28493C898.214 2.82373 893.124 1.96564 896.965 1.99558ZM872.984 1.94569C873.765 1.87584 874.67 1.806 875.045 1.87584C876.512 2.18515 868.644 2.51442 872.984 1.94569ZM864.741 2.4346H867.208C869.83 2.68404 859.932 2.42462 864.741 2.4346ZM850.471 2.5244C850.471 2.5244 853.999 2.31486 853.562 2.5244C853.562 2.55433 850.034 2.64413 850.471 2.5244ZM845.225 2.59424C845.225 2.66408 843.601 2.59424 843.445 2.59424H845.225ZM826.147 0.0798494C827.646 0.0598939 828.239 0.0598939 828.707 0.0798494C828.926 0.149694 820.62 0.159671 826.147 0.0798494ZM821.432 2.57429H823.93C825.647 2.6142 816.842 2.58426 821.432 2.57429ZM786.554 0.82818C786.804 0.82818 791.05 0.778291 791.113 0.848136C791.113 0.898024 786.429 0.848135 786.554 0.82818ZM703.558 2.56431C704.058 2.54435 707.555 2.50444 705.619 2.56431C705.119 2.57429 701.622 2.60422 703.558 2.56431ZM698.625 0.189605C700.529 0.149694 701.497 0.159671 701.497 0.20956C701.903 0.29936 695.127 0.239493 698.625 0.189605ZM531.322 2.69402H535.194C541.47 2.75388 527.294 2.72395 531.322 2.69402ZM520.862 2.71397C521.642 2.71397 522.829 2.71397 523.547 2.71397C525.67 2.74391 515.335 2.74391 520.862 2.71397ZM514.336 0.638603C517.052 0.60867 513.399 0.778291 513.336 0.688492C513.336 0.668536 513.805 0.648581 514.336 0.638603ZM486.702 2.62417C488.513 2.65411 485.921 2.66408 485.484 2.64413C484.297 2.6142 485.172 2.59424 486.702 2.62417ZM448.326 0.419093C448.514 0.419093 448.732 0.409115 448.951 0.409115C453.291 0.409115 444.517 0.488937 448.326 0.419093ZM447.265 2.75388C448.482 2.74391 449.482 2.74391 449.856 2.75388C449.482 2.77384 442.113 2.86364 447.265 2.75388ZM414.322 1.0876C415.009 1.0876 416.04 1.06765 416.633 1.0876C417.726 1.10756 411.481 1.15745 414.322 1.0876ZM403.925 2.67406C404.83 2.67406 406.079 2.72395 406.079 2.75388C405.954 2.77384 400.833 2.76386 403.925 2.67406ZM396.274 2.13526C396.274 2.13526 399.709 2.11531 399.397 2.13526C399.397 2.13526 395.869 2.17518 396.274 2.13526ZM394.214 1.58649C396.15 1.58649 396.306 1.64636 394.214 1.6264C392.246 1.59647 392.246 1.59647 394.214 1.58649ZM389.186 1.52662C389.686 1.50667 390.342 1.49669 390.841 1.49669C393.183 1.50667 388.343 1.57651 389.186 1.52662ZM381.536 2.75388C383.41 2.72395 384.315 2.72395 383.691 2.76386C383.285 2.81375 378.164 2.81375 381.536 2.75388ZM363.301 0.688492C367.329 0.758336 361.99 0.798247 361.833 0.688492C361.771 0.668536 362.052 0.668536 363.301 0.688492ZM322.584 1.84591C323.926 1.81598 323.895 1.92573 322.584 1.8958C321.272 1.88582 321.241 1.85589 322.584 1.84591ZM312.436 0.967869C312.436 0.967869 315.496 0.908002 315.152 0.967869C315.215 0.967869 312.061 1.02773 312.436 0.967869ZM301.132 1.84591C301.601 1.79602 304.348 1.79602 304.848 1.83593C305.223 1.83593 300.726 1.87584 301.132 1.84591ZM276.34 1.59647C276.496 1.57651 281.18 1.55656 281.336 1.59647C280.836 1.59647 276.402 1.65633 276.34 1.59647ZM275.903 2.73393C278.557 2.73393 279.431 2.76386 277.37 2.78382C275.028 2.82373 274.466 2.78382 275.903 2.73393ZM263.6 0.548803C266.91 0.528848 262.663 0.618647 261.976 0.578736C262.195 0.558781 262.913 0.548803 263.6 0.548803ZM224.507 0.468981C225.037 0.468981 225.662 0.468981 226.037 0.468981C226.567 0.508892 221.415 0.548803 224.507 0.468981ZM210.018 2.704C211.736 2.69402 211.642 2.78382 209.644 2.75388C207.864 2.75388 208.082 2.71397 210.018 2.704ZM196.311 1.10756C197.122 1.0876 198.059 1.07762 198.371 1.0876C197.56 1.14747 192.158 1.20733 196.311 1.10756ZM182.353 1.32707C183.696 1.30711 183.665 1.36698 182.353 1.37696C181.042 1.39691 181.01 1.32707 182.353 1.32707ZM175.39 0.349248C180.167 0.339271 172.018 0.409115 173.079 0.359226C173.079 0.359226 174.11 0.339271 175.39 0.349248ZM171.674 0.439048C172.018 0.42907 172.705 0.419093 173.204 0.419093C176.358 0.449026 170.925 0.508892 171.674 0.439048ZM167.771 1.76609C169.114 1.76609 169.988 1.78604 169.364 1.806C168.458 1.82595 165.46 1.76609 167.771 1.76609ZM160.933 0.868091C161.589 0.868091 162.307 0.888046 162.525 0.898024C162.525 0.947913 157.529 0.848136 160.933 0.868091ZM145.164 0.379182C148.724 0.449026 143.822 0.409115 143.322 0.379182C141.854 0.329293 142.698 0.329293 145.164 0.379182ZM131.363 2.72395C133.955 2.73393 129.895 2.83371 129.739 2.77384C128.802 2.73393 129.427 2.71397 131.363 2.72395ZM124.119 2.71397C125.867 2.71397 126.492 2.78382 124.119 2.75388C122.12 2.71397 122.12 2.72395 124.119 2.71397ZM104.01 1.59647C105.509 1.51664 105.103 1.64636 104.01 1.64636C102.792 1.65633 102.792 1.64636 104.01 1.59647ZM95.0484 2.13526C102.293 2.00555 89.5528 2.90355 91.0516 2.39469C91.0516 2.26498 92.8315 2.13526 95.0484 2.13526ZM64.573 2.63415C71.7235 2.63415 62.356 2.83371 60.8884 2.71397C61.1694 2.65411 62.8868 2.63415 64.573 2.63415ZM63.6987 2.40466C62.7619 2.53437 52.7075 2.81375 53.8316 2.40466H63.6987ZM42.1535 1.95567C46.9621 1.95567 53.9565 2.22506 51.2087 2.28493C46.0566 2.46453 34.8157 2.20511 42.1535 1.95567ZM31.9742 2.69402C40.3112 2.62417 35.003 2.86364 30.7252 2.85366C24.0743 2.85366 24.855 2.73393 31.9742 2.69402ZM1.68613 118.526C1.2802 119.084 1.2802 124.083 0.999181 121.379C-1.42455e-05 119.942 2.49797 114.096 1.68613 118.526ZM1.62492 13.5099C1.31267 20.2648 1.15655 8.76049 1.50002 7.77269C1.7186 5.96672 1.84349 8.94009 1.62492 13.5099ZM2.50021 33.0762C-0.715945 42.3655 1.00021 30.9996 2.50021 29.5985C1.25122 29.8778 2.87491 31.839 2.50021 33.0762ZM36.5955 127.585C32.2865 127.625 29.7885 127.635 29.1328 127.615C27.8213 127.436 53.4257 127.326 36.5955 127.585ZM58.89 129.651C56.9541 129.312 55.4241 129.501 53.4257 129.222C51.1463 128.952 64.5417 129.691 58.89 129.651ZM84.3695 127.346C92.7066 127.336 89.6153 127.555 83.5889 127.555C76.2511 127.555 77.0317 127.406 84.3695 127.346ZM94.7362 127.745C88.3975 127.745 88.4912 127.446 94.7362 127.386C100.856 127.446 100.95 127.735 94.7362 127.745ZM115.032 128.344C104.978 128.174 104.978 127.915 115.032 127.745C125.087 127.915 125.087 128.174 115.032 128.344ZM140.855 128.443C127.803 128.443 139.637 128.174 144.04 128.274C151.534 128.384 150.41 128.443 140.855 128.443ZM156.842 129.451C156.28 129.491 154.438 129.571 152.658 129.571C143.947 129.641 156.874 129.242 156.842 129.451ZM172.736 129.371C169.676 129.371 166.335 129.312 165.304 129.202C168.833 128.972 187.974 129.461 172.736 129.371ZM174.266 127.526C172.642 127.446 184.601 127.156 184.508 127.186C186.256 127.306 174.172 127.555 174.266 127.526ZM189.847 128.922C187.849 128.982 185.101 128.982 183.946 128.982C177.513 128.703 197.029 128.703 189.847 128.922ZM196.498 127.346C195.249 127.376 191.689 127.426 188.473 127.466C174.547 127.546 206.677 127.007 196.498 127.346ZM234.748 129.012C228.566 129.361 230.908 129.022 236.934 128.753C242.898 128.443 241.399 128.633 234.748 129.012ZM273.904 128.753C271.5 128.753 268.659 128.713 267.659 128.673C266.504 128.483 287.893 128.683 273.904 128.753ZM310 128.683C307.596 128.683 303.287 128.643 300.445 128.593C285.426 128.364 315.589 128.533 310 128.683ZM344.878 128.883C334.855 128.613 345.315 128.434 349.5 128.703C355.901 129.072 353.715 129.132 344.878 128.883ZM366.892 129.062C359.71 129.162 367.641 128.843 369.14 128.982C369.14 128.982 368.141 129.062 366.892 129.062ZM373.824 127.645C371.107 127.516 372.731 127.446 374.386 127.526C376.79 127.605 376.322 127.725 373.824 127.645ZM382.91 128.094C382.473 127.915 384.284 127.875 384.721 127.975C385.564 128.054 384.034 128.174 382.91 128.094ZM396.774 129.711C393.121 129.691 397.086 129.561 397.898 129.591C399.647 129.671 399.241 129.711 396.774 129.711ZM466.062 129.621C464.751 129.621 464.719 129.431 466.062 129.441C467.405 129.421 467.373 129.621 466.062 129.621ZM475.679 129.381C464.407 129.351 474.618 128.982 478.677 129.032C486.077 129.172 484.204 129.381 475.679 129.381ZM478.958 127.805C478.365 127.835 475.336 128.134 476.085 127.895C476.959 127.735 481.799 127.516 478.958 127.805ZM483.392 127.775C481.706 127.775 481.425 127.735 482.268 127.705C483.642 127.565 488.107 127.795 483.392 127.775ZM497.88 129.691C497.068 129.731 496.319 129.731 496.1 129.691C494.82 129.451 500.628 129.611 497.88 129.691ZM537.255 129.621C534.444 129.621 532.04 129.511 532.04 129.511C532.196 129.172 550.775 129.551 537.255 129.621ZM678.703 129.102C675.987 129.102 672.271 129.032 670.585 128.992C667.587 128.753 695.034 128.972 678.703 129.102ZM732.285 129.561C721.762 129.551 733.472 129.312 737.843 129.561H732.285ZM734.783 128.992C716.235 128.902 734.408 128.773 739.779 128.912C747.71 128.972 741.184 128.932 734.783 128.992ZM831.268 129.092H815.53C799.418 128.354 861.587 129.132 831.268 129.092ZM929.064 129.252C926.285 129.351 923.006 129.441 921.039 129.351C918.198 128.922 945.176 128.473 929.064 129.252ZM931.343 128.384C928.408 128.384 929.876 128.284 934.778 128.094C951.764 127.685 962.318 128.334 931.343 128.384Z"}))},s))},Ws=e(ho)(ms||(ms=D(["\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ",";\n }\n }\n"],["\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ",";\n }\n }\n"])),un("border-solid-l"),z("border-primary"),un("border-solid-l"),z("text-disabled"),z("bg-primary")),Hs=e(rt)($s||($s=D(["\n &:not(:focus-within) {\n ","\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:hover input:not(:disabled) {\n background: ",";\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(\n ",'\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: "";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ',";\n border-radius: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ",";\n }\n\n &:has(input:checked:disabled) {\n outline-color: ",";\n }\n\n &:has(input:disabled:not(:checked)) {\n ","\n }\n\n &:has(input:disabled:checked) {\n ",";\n }\n }\n"],["\n &:not(:focus-within) {\n ","\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:hover input:not(:disabled) {\n background: ",";\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(\n ",'\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: "";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ',";\n border-radius: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ",";\n }\n\n &:has(input:checked:disabled) {\n outline-color: ",";\n }\n\n &:has(input:disabled:not(:checked)) {\n ","\n }\n\n &:has(input:disabled:checked) {\n ",";\n }\n }\n"])),(function(e){return!!e.$outlineColor&&n(vs||(vs=D(["\n outline: ","\n ",";\n "],["\n outline: ","\n ",";\n "])),un("border-solid-xl"),z(e.$outlineColor))}),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),z("bg-decorative1-subdued"),z("bg-primary"),Fo,Fo,un("border-solid-xl"),pn("border-radius-m2"),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),un("border-solid-xl"),(function(e){return n(ys||(ys=D(["\n ","\n "],["\n ","\n "])),z(e.$overlayBorderColor))}),(function(e){return e.$feedbackBgColor?n(ws||(ws=D(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),e.$feedbackBgColor):void 0}),(function(e){return n(xs||(xs=D(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),z(e.$feedbackBgColor))})),_s=function(e){var n,t,r,o=e.id,i=e.value,c=e.feedback,l=e.image,s=e.disabled,d=e.innerRef,p=e.displayValue,f=e.isHighlighted,g=I(e,["id","value","feedback","image","disabled","innerRef","displayValue","isHighlighted"]),b=!!c,h=u(null),m=null!=d?d:h,v="correct"===c&&(null===(n=m.current)||void 0===n?void 0:n.checked)||"incorrect"===c&&!(null===(t=m.current)||void 0===t?void 0:t.checked),y="incorrect"===c&&(null===(r=m.current)||void 0===r?void 0:r.checked),w=a.createElement(rt,{$flexDirection:"column",$minWidth:"all-spacing-20",$gap:"space-between-s"},a.createElement(nt,null,l),p),x=v?"bg-correct":"bg-incorrect",$=v?"border-success":"border-error",C=a.createElement(Hs,{$pa:"inner-padding-l",$borderRadius:"border-radius-m2",$borderColor:f?"border-decorative5-stronger":"border-primary",$background:s&&!b?"bg-neutral-stronger":"bg-primary",$flexGrow:1,onClick:function(e){var n;e.target.id!==o&&(null===(n=m.current)||void 0===n||n.click())},$overlayBorderColor:b?$:"text-disabled",$feedbackBgColor:b?x:void 0,$outlineColor:f?"border-decorative5-stronger":"transparent"},a.createElement(Fo,{pointerEvents:"none",htmlFor:o,labelGap:"space-between-s",labelAlignItems:"center",$color:s&&!b?"text-disabled":"text-primary",$font:"body-1",disabled:s},a.createElement(Wo,{size:"all-spacing-7",iconPadding:"inner-padding-ssx",checkedIcon:a.createElement(nt,{$width:"100%",$height:"100%",$background:s||b?"text-disabled":"text-primary"},a.createElement(nt,{$ba:"border-solid-m",$borderColor:"white",$width:"100%",$height:"100%"})),internalCheckbox:a.createElement(Ws,S({id:o,value:i,disabled:s||b},g,{$width:"all-spacing-7",$height:"all-spacing-7",$ba:"border-solid-m",$borderColor:"border-neutral",$borderRadius:"border-radius-s",$background:f?"bg-decorative5-main":"bg-primary",$checkedBackground:null,ref:m}))}),l?w:p),b&&(v||y)&&a.createElement(rt,{className:"feedbackIconWrapper",$flexGrow:1,$justifyContent:"flex-end",$alignItems:"flex-end",$height:"100%"},v&&a.createElement(Qt,{iconName:"tick",$colorFilter:"icon-success",alt:"correct"===c?"Correct":"Unselected correct choice"}),y&&a.createElement(Qt,{iconName:"cross",$colorFilter:"icon-error",alt:"Incorrect"})));return a.createElement(rt,{$width:"100%",$position:"relative"},C)},Gs=function(e){var n,t,r=e.feedback,o=e.readOnly,i=I(e,["feedback","readOnly"]),c=void 0;switch(r){case"correct":n="valid",t="tick",c="Correct";break;case"incorrect":n="invalid",t="cross",c="Incorrect"}return a.createElement(Yo,S({},i,{validity:n,iconName:t,iconAlt:c,readOnly:o||!!r,isTrailingIcon:!0}))},Vs=e(rt)(Ms||(Ms=D(["\n &:not(:focus-within) {\n ","\n }\n\n &:hover {\n cursor: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n &:not(:focus-within) {\n ","\n }\n\n &:hover {\n cursor: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),(function(e){return!!e.$outlineColor&&n(Cs||(Cs=D(["\n outline: ","\n ",";\n "],["\n outline: ","\n ",";\n "])),un("border-solid-xl"),z(e.$outlineColor))}),(function(e){return e.$disabled?"default":"pointer"}),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return!e.$disabled&&n(Es||(Es=D(["\n &:hover {\n background-color: ",";\n text-decoration: underline;\n }\n "],["\n &:hover {\n background-color: ",";\n text-decoration: underline;\n }\n "])),z("bg-decorative1-subdued"))}),(function(e){return!e.$disabled&&!e.$checked&&n(ks||(ks=D(['\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: "";\n position: absolute;\n inset: 0;\n border-radius: ',";\n border-bottom: "," ",";\n }\n "],['\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: "";\n position: absolute;\n inset: 0;\n border-radius: ',";\n border-bottom: "," ",";\n }\n "])),pn("border-radius-m2"),un("border-solid-l"),z("grey60"))})),Ys=function(e){var n,t,r=e.value,o=e.feedback,i=e.image,c=e.disabled,l=e.isHighlighted,s=e.label,u=I(e,["value","feedback","image","disabled","isHighlighted","label"]),p=!!o,f=d(lo).currentValue===r,g="bg-primary",b=null,h="bg-primary";switch(!0){case c&&!p:g="bg-neutral-stronger";break;case"correct"===o&&f:n="border-success",g="bg-correct",b="tick",t="Correct";break;case"incorrect"===o&&f:n="border-error",g="bg-incorrect",b="cross",t="Incorrect";break;case"incorrect"===o&&!f:b="tick",t="Unselected correct choice";break;case l:h="bg-decorative5-main",n="border-decorative5-stronger";break;case f&&!c:n="border-primary"}return a.createElement(Vs,{$pa:"inner-padding-l",$borderRadius:"border-radius-m2",$justifyContent:"space-between",$position:"relative",$alignContent:"center",onClick:function(e){var n;null===(n=e.currentTarget.querySelector("input"))||void 0===n||n.click()},$disabled:c||p,$checked:f,$outlineColor:n,$background:g},a.createElement(bo,S({value:r,disabled:c||p,$labelGap:"space-between-s",disableFocusRing:!0,radioInnerSize:"all-spacing-6",radioOuterSize:"all-spacing-7",radioBackground:h,checkedRadioBorderWidth:"border-solid-l",label:i?a.createElement(rt,{$flexDirection:"column",$minWidth:"all-spacing-20",$gap:"space-between-s"},a.createElement(nt,null,i),s):s},u)),p&&b&&a.createElement(rt,{$alignSelf:"flex-end"},a.createElement(Qt,{iconName:b,$colorFilter:"tick"===b?"icon-success":"icon-error",alt:t})))},Us=e(ao)(Ss||(Ss=D(["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"],["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"])),Dn("drop-shadow-lemon"),Dn("drop-shadow-grey")),Xs=function(e){var n=e.isOpen,t=e.disabled,r=e.buttonProps;return a.createElement(Us,S({iconName:n&&!t?"lightbulb-yellow":"lightbulb",defaultIconBackground:n?"black":"bg-decorative5-main",hoverIconBackground:n?"black":"bg-decorative5-main",defaultTextColor:"text-primary",hoverTextColor:"text-primary",disabledIconBackground:"bg-btn-primary-disabled",disabledTextColor:"text-disabled",disabledIconColor:"white",onClick:e.onClick,isLoading:e.isLoading,disabled:e.disabled,iconBackgroundSize:"all-spacing-8",iconSize:"all-spacing-6","data-rac":!0},r),n?"Close hint":"Need a hint?")},Ks=function(e){var n=e.hint,t=O(c(!1),2),r=t[0],o=t[1];return a.createElement(ei,{tooltip:n,isOpen:r,id:"hint-tooltip"},a.createElement(Xs,{isOpen:r,onClick:function(){o(!r)},buttonProps:{"aria-describedby":"hint-tooltip"}}))},Js=function(e){var n,t=e.feedback,r=e.answerFeedback;switch(t){case"correct":n="Correct";break;case"incorrect":n="Incorrect";break;case"partially-correct":n="Almost correct"}return a.createElement(nt,{"aria-live":"polite"},a.createElement(rt,{$gap:"space-between-xs"},a.createElement(Uo,{iconName:"correct"===t?"tick":"cross",alt:"",$pa:"inner-padding-none",$background:"correct"===t?"icon-success":"icon-error",$colorFilter:"text-inverted",$width:"all-spacing-6",$height:"all-spacing-6"}),a.createElement(ot,{$font:"heading-6",$color:"correct"===t?"text-success":"text-error"},n)),r&&a.createElement(ot,{as:"p",$mt:"space-between-xs",$font:"correct"===t?"body-2-bold":"body-2"},r))},Qs=e(rt)(Is||(Is=D(["\n box-sizing: content-box;\n"],["\n box-sizing: content-box;\n"]))),ed=function(e){var n,t=e.hint,r=e.feedback,o=e.answerFeedback,i=e.children;switch(!0){case!!r:n=a.createElement(Js,{feedback:r,answerFeedback:o});break;case!!t:n=a.createElement(Ks,{hint:t});break;default:n=null}return a.createElement(Qs,{$flexDirection:["column","row"],$pa:"inner-padding-m",$minHeight:"all-spacing-9",$gap:"space-between-m"},a.createElement(rt,{$alignItems:"center"},n),a.createElement(rt,{$flexGrow:"1",$height:"fit-content",$alignSelf:"flex-end",$justifyContent:["initial","flex-end"],$width:["100%","auto"]},i))},nd=e(ot)(js||(js=D(["\n @media (min-width: ","px) {\n display: none;\n }\n"],["\n @media (min-width: ","px) {\n display: none;\n }\n"])),G("small")),td=function(e){var n=e.lessonSectionName,t=e.backLinkSlot,r=e.counterSlot,o=e.heading,i=e.mobileSummary;return a.createElement(rt,{$gap:"space-between-m",$alignItems:"center"},a.createElement(nt,{$pl:["inner-padding-none","inner-padding-s"]},t),a.createElement(rt,{$flexGrow:"none"},a.createElement(Uo,S({},function(e){switch(e){case"intro":return{iconName:"intro",$background:"aqua110"};case"starter-quiz":return{iconName:"quiz",$background:"mint110"};case"video":return{iconName:"video",$background:"pink110"};case"exit-quiz":return{iconName:"quiz",$background:"lemon110"}}}(n),{$width:"all-spacing-8",$height:"all-spacing-8"}))),a.createElement(nt,null,a.createElement(Nt,{tag:"h1",$font:["heading-7","heading-5"]},o),a.createElement(nd,{$font:"body-3"},i)),a.createElement(rt,{$flexGrow:1,$justifyContent:"flex-end"},a.createElement(nt,{$display:["none","block"]},r)))};var rd,od,id=function(e){var n=e.counter,t=e.total;return a.createElement(ot,{$font:"heading-light-4",$color:"text-disabled"},a.createElement(ot,{$font:"heading-4",$color:"text-primary"},n," "),"of ",t)},ad=e(nt)(rd||(rd=D(["\n @media (min-width: ","px) {\n padding-top: ",";\n }\n"],["\n @media (min-width: ","px) {\n padding-top: ",";\n }\n"])),G("small"),ne("space-between-xl")),cd=e(nt)(od||(od=D(["\n position: sticky;\n bottom: 0;\n z-index: 10;\n"],["\n position: sticky;\n bottom: 0;\n z-index: 10;\n"]))),ld=function(e){var n=e.lessonSectionName,t=e.topNavSlot,r=e.bottomNavSlot,o=e.children,i=O(function(e){switch(e){case"overview":case"review":return["bg-decorative1-main","bg-primary","border-decorative1-stronger","bg-primary"];case"intro":return["bg-decorative2-subdued","bg-decorative2-very-subdued","border-inverted","bg-decorative2-subdued"];case"starter-quiz":return["bg-decorative1-main","bg-decorative1-very-subdued","border-inverted","bg-decorative1-subdued"];case"video":return["bg-decorative4-subdued","bg-primary","border-decorative4","bg-primary"];case"exit-quiz":return["bg-decorative5-main","bg-decorative5-very-subdued","border-inverted","bg-decorative5-subdued"]}}(n),4),c=i[0],l=i[1],s=i[2],d=i[3];return a.createElement(ad,{$display:"flex",$width:"100%",$minHeight:"100%",$ph:["inner-padding-none","inner-padding-xl"],$background:c},a.createElement(rt,{$flexDirection:"column",$flexGrow:1,$background:[d,l],$btr:[null,"border-radius-xl"],$bt:[null,"border-solid-xl"],$bh:[null,"border-solid-xl"],$borderColor:[null,s],$maxWidth:"all-spacing-24",$minHeight:"100%",$mh:"auto",$pt:["inner-padding-none","inner-padding-m"],$gap:["space-between-l","space-between-xl"]},t&&a.createElement(nt,{$pv:"inner-padding-l",$pl:["inner-padding-m","inner-padding-xs"],$pr:["inner-padding-m","inner-padding-none"],$mr:["space-between-none","space-between-l"],$background:["bg-primary","transparent"]},t),a.createElement(rt,{$flexGrow:1,$flexDirection:"column"},o),r&&a.createElement(cd,{$mh:["space-between-none","space-between-none","space-between-sssx"],$borderColor:s,$bt:"border-solid-xl",$background:["bg-primary",l]},r)))};var sd,dd,ud,pd,fd,gd,bd=e(nt)(sd||(sd=D([""],[""]))),hd=e(Uo)(dd||(dd=D(["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"],["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"])),ne("all-spacing-8"),ne("all-spacing-8"),(function(e){return at(e.$disabled?"icon-disabled":"icon-inverted")})),md=n(ud||(ud=D(["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"],["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"])),hd,z("bg-btn-primary"),at("icon-main")),vd=e(rt)(fd||(fd=D(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return e.$disabled&&"cursor: default"}),(function(e){return!e.$disabled&&n(pd||(pd=D(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n }\n "],["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n }\n "])),bd,md,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"),md)})),yd=e(nt)(gd||(gd=D(["\n flex: 1;\n"],["\n flex: 1;\n"]))),wd=function(e){var n=e.as,t=e.lessonSectionName,r=e.progress,o=e.disabled,i=e.href,c=e.onClick,l=I(e,["as","lessonSectionName","progress","disabled","href","onClick"]),s=O(function(e){switch(e){case"intro":return["bg-decorative2-very-subdued","bg-decorative2-main","border-decorative2-stronger"];case"starter-quiz":return["bg-decorative1-very-subdued","bg-decorative1-main","border-decorative1-stronger"];case"video":return["bg-decorative4-very-subdued","bg-decorative4-main","border-decorative4-stronger"];case"exit-quiz":return["bg-decorative5-very-subdued","bg-decorative5-main","border-decorative5-stronger"]}}(t),3),d=s[0],u=s[1],p=s[2];return a.createElement(vd,S({as:o?"div":null!=n?n:"a",$gap:"space-between-m",$alignItems:"center",$background:"not-started"===r?d:u,$ph:["inner-padding-m","inner-padding-xl"],$pv:"inner-padding-l",$borderRadius:"border-radius-l",$borderColor:p,$ba:"border-solid-l",$disabled:o,$color:"text-primary",href:o?void 0:i,onClick:o?void 0:c},l),a.createElement(rt,{$width:"all-spacing-13",$justifyContent:"center"},a.createElement(Qt,{iconName:xd(t),$width:"all-spacing-10",$height:"all-spacing-10"})),a.createElement(yd,null,a.createElement(bd,{as:"strong",$font:["heading-6","heading-5"],$color:o?"text-disabled":"text-primary"},function(e){switch(e){case"intro":return"Introduction";case"starter-quiz":return"Starter quiz";case"video":return"Lesson video";case"exit-quiz":return"Exit quiz"}}(t)),a.createElement(nt,{$font:["body-2","body-1"]},function(e){switch(e.progress){case"not-started":return function(e){switch(e.lessonSectionName){case"intro":return"Prepare";case"starter-quiz":return"Activate - ".concat(e.numQuestions," Questions");case"exit-quiz":return"Check - ".concat(e.numQuestions," questions");case"video":return"Learn"}}(e);case"in-progress":return"In progress...";case"complete":return a.createElement(rt,{$gap:"space-between-sssx",$alignItems:"center"},a.createElement(Qt,{iconName:"tick",$width:"all-spacing-6",$height:"all-spacing-6"}),function(e){switch(e.lessonSectionName){case"intro":case"video":return"Completed";case"starter-quiz":case"exit-quiz":return a.createElement(a.Fragment,null,a.createElement(nt,{$display:["none","block"]},"Completed"),a.createElement(nt,{$display:["block","none"]},e.grade,"/",e.numQuestions," correct"))}}(e))}}(e))),function(e){if("complete"!==e.progress)return null;switch(e.lessonSectionName){case"exit-quiz":case"starter-quiz":return a.createElement(nt,{$display:["none","block"],$mr:"space-between-m"},a.createElement(ot,{$font:"heading-4"},e.grade),a.createElement(ot,{$font:"heading-6"}," / ",e.numQuestions));default:return null}}(e),a.createElement(hd,{iconName:"chevron-right",$disabled:o}))};function xd(e){switch(e){case"intro":return"intro";case"starter-quiz":case"exit-quiz":return"quiz";case"video":return"video"}}var $d,Cd=e(rt)($d||($d=D(["\n outline: none;\n text-align: initial;\n"],["\n outline: none;\n text-align: initial;\n"]))),Ed=function(e){var n=e.completed,t=e.lessonSectionName,r=I(e,["completed","lessonSectionName"]),o=O(Id(t),3),i=o[0],c=o[1],l=o[2],s=new Map;return s.set("intro","intro"),s.set("starter-quiz","quiz"),s.set("exit-quiz","quiz"),s.set("video","video"),a.createElement(Cd,S({completed:n,$gap:"space-between-m",$alignItems:"center",$background:n?i:"white",$ph:["inner-padding-m","inner-padding-xl"],$pv:"inner-padding-l",$borderRadius:"border-radius-l",$borderColor:n?i:c,$ba:"border-solid-l"},r),a.createElement(Uo,{iconName:s.get(t),$width:"all-spacing-10",$height:"all-spacing-10",$background:l}),a.createElement(rt,{$flexGrow:1,$flexShrink:1,$flexDirection:"column"},a.createElement(nt,{$font:["heading-6","heading-5"],$color:"text-primary"},Sd(t)),a.createElement(nt,{$font:["body-2","body-1"]},kd(e))),jd(e))},kd=function(e){return!1===e.completed?Md(e):a.createElement(rt,{$gap:"space-between-sssx",$alignItems:"center"},a.createElement(Qt,{iconName:"tick",$width:"all-spacing-6",$height:"all-spacing-6"}),"Completed")},Md=function(e){switch(e.lessonSectionName){case"intro":return"Prepare";case"starter-quiz":return"Activate - ".concat(e.numQuestions," questions");case"exit-quiz":return"Check - ".concat(e.numQuestions," questions");case"video":return"Learn"}},Sd=function(e){switch(e){case"intro":return"Introduction";case"starter-quiz":return"Starter quiz";case"video":return"Lesson video";case"exit-quiz":return"Exit quiz"}},Id=function(e){switch(e){case"intro":return["bg-decorative2-very-subdued","border-decorative2","aqua"];case"starter-quiz":return["bg-decorative1-very-subdued","border-decorative1","mint"];case"video":return["bg-decorative4-very-subdued","border-decorative4","pink"];case"exit-quiz":return["bg-decorative5-very-subdued","border-decorative5","lemon"]}},jd=function(e){if(!1===e.completed)return null;switch(e.lessonSectionName){case"exit-quiz":case"starter-quiz":return a.createElement(nt,null,a.createElement(ot,{$font:"heading-4"},e.grade),a.createElement(ot,{$font:"heading-6"}," / ",e.numQuestions));default:return null}},Od=function(e){var n=e.children,t=e.id,r=e.signLanguageControl,o=void 0===r?null:r,i=O(c(!1),2),l=i[0],s=i[1];return a.createElement(a.Fragment,null,a.createElement(rt,{$flexDirection:["column-reverse","row"],$justifyContent:"space-between"},a.createElement(nt,null,n&&a.createElement(co,{onClick:function(){return s(!l)},iconName:l?"chevron-up":"chevron-down",isTrailingIcon:!0,"aria-controls":t,"aria-expanded":l,$mb:"space-between-m"},l?"Hide transcript":"Show transcript")),o&&a.createElement(nt,{$mb:"space-between-m"},o)),n&&a.createElement(zi,{id:t,$maxHeight:"all-spacing-23",isOpen:l,$font:"body-1",$color:"text-primary"},n))};const Nd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Dd(e){const n=Object.prototype.toString.call(e);return"[object Window]"===n||"[object global]"===n}function Td(e){return"nodeType"in e}function Rd(e){var n,t;return e?Dd(e)?e:Td(e)&&null!=(n=null==(t=e.ownerDocument)?void 0:t.defaultView)?n:window:window}function Ad(e){const{Document:n}=Rd(e);return e instanceof n}function zd(e){return!Dd(e)&&e instanceof Rd(e).HTMLElement}function Ld(e){return e instanceof Rd(e).SVGElement}function Bd(e){return e?Dd(e)?e.document:Td(e)?Ad(e)?e:zd(e)||Ld(e)?e.ownerDocument:document:document:document}const Zd=Nd?f:b;function Pd(e){const n=u(e);return Zd((()=>{n.current=e})),l((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Fd(e,n){void 0===n&&(n=[e]);const t=u(e);return Zd((()=>{t.current!==e&&(t.current=e)}),n),t}function qd(e,n){const t=u();return h((()=>{const n=e(t.current);return t.current=n,n}),[...n])}function Wd(e){const n=Pd(e),t=u(null),r=l((e=>{e!==t.current&&(null==n||n(e,t.current)),t.current=e}),[]);return[t,r]}function Hd(e){const n=u();return b((()=>{n.current=e}),[e]),n.current}let _d={};function Gd(e,n){return h((()=>{if(n)return n;const t=null==_d[e]?0:_d[e]+1;return _d[e]=t,e+"-"+t}),[e,n])}function Vd(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.reduce(((n,t)=>{const r=Object.entries(t);for(const[t,o]of r){const r=n[t];null!=r&&(n[t]=r+e*o)}return n}),{...n})}}const Yd=Vd(1),Ud=Vd(-1);function Xd(e){if(!e)return!1;const{KeyboardEvent:n}=Rd(e.target);return n&&e instanceof n}function Kd(e){if(function(e){if(!e)return!1;const{TouchEvent:n}=Rd(e.target);return n&&e instanceof n}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Jd=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[Jd.Translate.toString(e),Jd.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:r}=e;return n+" "+t+"ms "+r}}}),Qd="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function eu(e){return e.matches(Qd)?e:e.querySelector(Qd)}const nu={display:"none"};function tu(e){let{id:n,value:t}=e;return a.createElement("div",{id:n,style:nu},t)}function ru(e){let{id:n,announcement:t,ariaLiveType:r="assertive"}=e;return a.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},t)}const ou=s(null);const iu={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},au={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function cu(e){let{announcements:n=au,container:t,hiddenTextDescribedById:r,screenReaderInstructions:o=iu}=e;const{announce:i,announcement:s}=function(){const[e,n]=c("");return{announce:l((e=>{null!=e&&n(e)}),[]),announcement:e}}(),u=Gd("DndLiveRegion"),[p,f]=c(!1);if(b((()=>{f(!0)}),[]),function(e){const n=d(ou);b((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)}),[e,n])}(h((()=>({onDragStart(e){let{active:t}=e;i(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&i(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;i(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;i(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;i(n.onDragCancel({active:t,over:r}))}})),[i,n])),!p)return null;const g=a.createElement(a.Fragment,null,a.createElement(tu,{id:r,value:o.draggable}),a.createElement(ru,{id:u,announcement:s}));return t?E(g,t):g}var lu;function su(){}function du(e,n){return h((()=>({sensor:e,options:null!=n?n:{}})),[e,n])}function uu(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return h((()=>[...n].filter((e=>null!=e))),[...n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(lu||(lu={}));const pu=Object.freeze({x:0,y:0});function fu(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function gu(e,n){const t=Kd(e);if(!t)return"0 0";return(t.x-n.left)/n.width*100+"% "+(t.y-n.top)/n.height*100+"%"}function bu(e,n){let{data:{value:t}}=e,{data:{value:r}}=n;return t-r}function hu(e,n){let{data:{value:t}}=e,{data:{value:r}}=n;return r-t}function mu(e){let{left:n,top:t,height:r,width:o}=e;return[{x:n,y:t},{x:n+o,y:t},{x:n,y:t+r},{x:n+o,y:t+r}]}function vu(e,n){if(!e||0===e.length)return null;const[t]=e;return n?t[n]:t}function yu(e,n,t){return void 0===n&&(n=e.left),void 0===t&&(t=e.top),{x:n+.5*e.width,y:t+.5*e.height}}const wu=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const o=yu(n,n.left,n.top),i=[];for(const e of r){const{id:n}=e,r=t.get(n);if(r){const t=fu(yu(r),o);i.push({id:n,data:{droppableContainer:e,value:t}})}}return i.sort(bu)};function xu(e,n){const t=Math.max(n.top,e.top),r=Math.max(n.left,e.left),o=Math.min(n.left+n.width,e.left+e.width),i=Math.min(n.top+n.height,e.top+e.height),a=o-r,c=i-t;if(r<o&&t<i){const t=n.width*n.height,r=e.width*e.height,o=a*c;return Number((o/(t+r-o)).toFixed(4))}return 0}const $u=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=t.get(r);if(i){const t=xu(i,n);t>0&&o.push({id:r,data:{droppableContainer:e,value:t}})}}return o.sort(hu)};function Cu(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:pu}function Eu(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.reduce(((n,t)=>({...n,top:n.top+e*t.y,bottom:n.bottom+e*t.y,left:n.left+e*t.x,right:n.right+e*t.x})),{...n})}}const ku=Eu(1);function Mu(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}const Su={ignoreTransform:!1};function Iu(e,n){void 0===n&&(n=Su);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:n,transformOrigin:r}=Rd(e).getComputedStyle(e);n&&(t=function(e,n,t){const r=Mu(n);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:c}=r,l=e.left-a-(1-o)*parseFloat(t),s=e.top-c-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),d=o?e.width/o:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:s,right:l+d,bottom:s+u,left:l}}(t,n,r))}const{top:r,left:o,width:i,height:a,bottom:c,right:l}=t;return{top:r,left:o,width:i,height:a,bottom:c,right:l}}function ju(e){return Iu(e,{ignoreTransform:!0})}function Ou(e,n){const t=[];return e?function r(o){if(null!=n&&t.length>=n)return t;if(!o)return t;if(Ad(o)&&null!=o.scrollingElement&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!zd(o)||Ld(o))return t;if(t.includes(o))return t;const i=Rd(e).getComputedStyle(o);return o!==e&&function(e,n){void 0===n&&(n=Rd(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=n[e];return"string"==typeof r&&t.test(r)}))}(o,i)&&t.push(o),function(e,n){return void 0===n&&(n=Rd(e).getComputedStyle(e)),"fixed"===n.position}(o,i)?t:r(o.parentNode)}(e):t}function Nu(e){const[n]=Ou(e,1);return null!=n?n:null}function Du(e){return Nd&&e?Dd(e)?e:Td(e)?Ad(e)||e===Bd(e).scrollingElement?window:zd(e)?e:null:null:null}function Tu(e){return Dd(e)?e.scrollX:e.scrollLeft}function Ru(e){return Dd(e)?e.scrollY:e.scrollTop}function Au(e){return{x:Tu(e),y:Ru(e)}}var zu;function Lu(e){return!(!Nd||!e)&&e===document.scrollingElement}function Bu(e){const n={x:0,y:0},t=Lu(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height};return{isTop:e.scrollTop<=n.y,isLeft:e.scrollLeft<=n.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:n}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(zu||(zu={}));const Zu={x:.2,y:.2};function Pu(e,n,t,r,o){let{top:i,left:a,right:c,bottom:l}=t;void 0===r&&(r=10),void 0===o&&(o=Zu);const{isTop:s,isBottom:d,isLeft:u,isRight:p}=Bu(e),f={x:0,y:0},g={x:0,y:0},b=n.height*o.y,h=n.width*o.x;return!s&&i<=n.top+b?(f.y=zu.Backward,g.y=r*Math.abs((n.top+b-i)/b)):!d&&l>=n.bottom-b&&(f.y=zu.Forward,g.y=r*Math.abs((n.bottom-b-l)/b)),!p&&c>=n.right-h?(f.x=zu.Forward,g.x=r*Math.abs((n.right-h-c)/h)):!u&&a<=n.left+h&&(f.x=zu.Backward,g.x=r*Math.abs((n.left+h-a)/h)),{direction:f,speed:g}}function Fu(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:n}=window;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}const{top:n,left:t,right:r,bottom:o}=e.getBoundingClientRect();return{top:n,left:t,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function qu(e){return e.reduce(((e,n)=>Yd(e,Au(n))),pu)}function Wu(e,n){if(void 0===n&&(n=Iu),!e)return;const{top:t,left:r,bottom:o,right:i}=n(e);Nu(e)&&(o<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Hu=[["x",["left","right"],function(e){return e.reduce(((e,n)=>e+Tu(n)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,n)=>e+Ru(n)),0)}]];class _u{constructor(e,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const t=Ou(n),r=qu(t);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,n,o]of Hu)for(const i of n)Object.defineProperty(this,i,{get:()=>{const n=o(t),a=r[e]-n;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Gu{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var n;return null==(n=this.target)?void 0:n.removeEventListener(...e)}))},this.target=e}add(e,n,t){var r;null==(r=this.target)||r.addEventListener(e,n,t),this.listeners.push([e,n,t])}}function Vu(e,n){const t=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof n?Math.sqrt(t**2+r**2)>n:"x"in n&&"y"in n?t>n.x&&r>n.y:"x"in n?t>n.x:"y"in n&&r>n.y}var Yu,Uu;function Xu(e){e.preventDefault()}function Ku(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Yu||(Yu={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Uu||(Uu={}));const Ju={start:[Uu.Space,Uu.Enter],cancel:[Uu.Esc],end:[Uu.Space,Uu.Enter]},Qu=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case Uu.Right:return{...t,x:t.x+25};case Uu.Left:return{...t,x:t.x-25};case Uu.Down:return{...t,y:t.y+25};case Uu.Up:return{...t,y:t.y-25}}};class ep{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new Gu(Bd(n)),this.windowListeners=new Gu(Rd(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Yu.Resize,this.handleCancel),this.windowListeners.add(Yu.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Yu.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:n}=this.props,t=e.node.current;t&&Wu(t),n(pu)}handleKeyDown(e){if(Xd(e)){const{active:n,context:t,options:r}=this.props,{keyboardCodes:o=Ju,coordinateGetter:i=Qu,scrollBehavior:a="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:l}=t.current,s=l?{x:l.left,y:l.top}:pu;this.referenceCoordinates||(this.referenceCoordinates=s);const d=i(e,{active:n,context:t.current,currentCoordinates:s});if(d){const n=Ud(d,s),r={x:0,y:0},{scrollableAncestors:o}=t.current;for(const t of o){const o=e.code,{isTop:i,isRight:c,isLeft:l,isBottom:s,maxScroll:u,minScroll:p}=Bu(t),f=Fu(t),g={x:Math.min(o===Uu.Right?f.right-f.width/2:f.right,Math.max(o===Uu.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(o===Uu.Down?f.bottom-f.height/2:f.bottom,Math.max(o===Uu.Down?f.top:f.top+f.height/2,d.y))},b=o===Uu.Right&&!c||o===Uu.Left&&!l,h=o===Uu.Down&&!s||o===Uu.Up&&!i;if(b&&g.x!==d.x){const e=t.scrollLeft+n.x,i=o===Uu.Right&&e<=u.x||o===Uu.Left&&e>=p.x;if(i&&!n.y)return void t.scrollTo({left:e,behavior:a});r.x=i?t.scrollLeft-e:o===Uu.Right?t.scrollLeft-u.x:t.scrollLeft-p.x,r.x&&t.scrollBy({left:-r.x,behavior:a});break}if(h&&g.y!==d.y){const e=t.scrollTop+n.y,i=o===Uu.Down&&e<=u.y||o===Uu.Up&&e>=p.y;if(i&&!n.x)return void t.scrollTo({top:e,behavior:a});r.y=i?t.scrollTop-e:o===Uu.Down?t.scrollTop-u.y:t.scrollTop-p.y,r.y&&t.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Yd(Ud(d,this.referenceCoordinates),r))}}}handleMove(e,n){const{onMove:t}=this.props;e.preventDefault(),t(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function np(e){return Boolean(e&&"distance"in e)}function tp(e){return Boolean(e&&"delay"in e)}ep.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:r=Ju,onActivation:o}=n,{active:i}=t;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const n=i.activatorNode.current;return(!n||e.target===n)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class rp{constructor(e,n,t){var r;void 0===t&&(t=function(e){const{EventTarget:n}=Rd(e);return e instanceof n?e:Bd(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;const{event:o}=e,{target:i}=o;this.props=e,this.events=n,this.document=Bd(i),this.documentListeners=new Gu(this.document),this.listeners=new Gu(t),this.windowListeners=new Gu(Rd(i)),this.initialCoordinates=null!=(r=Kd(o))?r:pu,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Yu.Resize,this.handleCancel),this.windowListeners.add(Yu.DragStart,Xu),this.windowListeners.add(Yu.VisibilityChange,this.handleCancel),this.windowListeners.add(Yu.ContextMenu,Xu),this.documentListeners.add(Yu.Keydown,this.handleKeydown),n){if(null!=t&&t({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tp(n))return void(this.timeoutId=setTimeout(this.handleStart,n.delay));if(np(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(Yu.Click,Ku,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Yu.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:t,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const c=null!=(n=Kd(e))?n:pu,l=Ud(r,c);if(!t&&a){if(np(a)){if(null!=a.tolerance&&Vu(l,a.tolerance))return this.handleCancel();if(Vu(l,a.distance))return this.handleStart()}return tp(a)&&Vu(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Uu.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const op={move:{name:"pointermove"},end:{name:"pointerup"}};class ip extends rp{constructor(e){const{event:n}=e,t=Bd(n.target);super(e,op,t)}}ip.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return!(!t.isPrimary||0!==t.button)&&(null==r||r({event:t}),!0)}}];const ap={move:{name:"mousemove"},end:{name:"mouseup"}};var cp;!function(e){e[e.RightClick=2]="RightClick"}(cp||(cp={}));class lp extends rp{constructor(e){super(e,ap,Bd(e.event.target))}}lp.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return t.button!==cp.RightClick&&(null==r||r({event:t}),!0)}}];const sp={move:{name:"touchmove"},end:{name:"touchend"}};class dp extends rp{constructor(e){super(e,sp)}static setup(){return window.addEventListener(sp.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(sp.move.name,e)};function e(){}}}var up,pp;function fp(e){let{acceleration:n,activator:t=up.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:c=pp.TreeOrder,pointerCoordinates:s,scrollableAncestors:d,scrollableAncestorRects:p,delta:f,threshold:g}=e;const m=function(e){let{delta:n,disabled:t}=e;const r=Hd(n);return qd((e=>{if(t||!r||!e)return gp;const o={x:Math.sign(n.x-r.x),y:Math.sign(n.y-r.y)};return{x:{[zu.Backward]:e.x[zu.Backward]||-1===o.x,[zu.Forward]:e.x[zu.Forward]||1===o.x},y:{[zu.Backward]:e.y[zu.Backward]||-1===o.y,[zu.Forward]:e.y[zu.Forward]||1===o.y}}}),[t,n,r])}({delta:f,disabled:!i}),[v,y]=function(){const e=u(null);return[l(((n,t)=>{e.current=setInterval(n,t)}),[]),l((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),w=u({x:0,y:0}),x=u({x:0,y:0}),$=h((()=>{switch(t){case up.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case up.DraggableRect:return o}}),[t,o,s]),C=u(null),E=l((()=>{const e=C.current;if(!e)return;const n=w.current.x*x.current.x,t=w.current.y*x.current.y;e.scrollBy(n,t)}),[]),k=h((()=>c===pp.TreeOrder?[...d].reverse():d),[c,d]);b((()=>{if(i&&d.length&&$){for(const e of k){if(!1===(null==r?void 0:r(e)))continue;const t=d.indexOf(e),o=p[t];if(!o)continue;const{direction:i,speed:c}=Pu(e,o,$,n,g);for(const e of["x","y"])m[e][i[e]]||(c[e]=0,i[e]=0);if(c.x>0||c.y>0)return y(),C.current=e,v(E,a),w.current=c,void(x.current=i)}w.current={x:0,y:0},x.current={x:0,y:0},y()}else y()}),[n,E,r,y,i,a,JSON.stringify($),JSON.stringify(m),v,d,k,p,JSON.stringify(g)])}dp.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;const{touches:o}=t;return!(o.length>1)&&(null==r||r({event:t}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(up||(up={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(pp||(pp={}));const gp={x:{[zu.Backward]:!1,[zu.Forward]:!1},y:{[zu.Backward]:!1,[zu.Forward]:!1}};var bp,hp;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(bp||(bp={})),function(e){e.Optimized="optimized"}(hp||(hp={}));const mp=new Map;function vp(e,n){return qd((t=>e?t||("function"==typeof n?n(e):e):null),[n,e])}function yp(e){let{callback:n,disabled:t}=e;const r=Pd(n),o=h((()=>{if(t||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[t]);return b((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function wp(e){return new _u(Iu(e),e)}function xp(e,n,t){void 0===n&&(n=wp);const[r,o]=v((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:t)?o:null;const i=n(e);if(JSON.stringify(r)===JSON.stringify(i))return r;return i}),null),i=function(e){let{callback:n,disabled:t}=e;const r=Pd(n),o=h((()=>{if(t||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,t]);return b((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(n){if(e)for(const t of n){const{type:n,target:r}=t;if("childList"===n&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),a=yp({callback:o});return Zd((()=>{o(),e?(null==a||a.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==i||i.disconnect())}),[e]),r}const $p=[];function Cp(e,n){void 0===n&&(n=[]);const t=u(null);return b((()=>{t.current=null}),n),b((()=>{const n=e!==pu;n&&!t.current&&(t.current=e),!n&&t.current&&(t.current=null)}),[e]),t.current?Ud(e,t.current):pu}function Ep(e){return h((()=>e?function(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}(e):null),[e])}const kp=[];function Mp(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return zd(n)?n:e}const Sp=[{sensor:ip,options:{}},{sensor:ep,options:{}}],Ip={current:{}},jp={draggable:{measure:ju},droppable:{measure:ju,strategy:bp.WhileDragging,frequency:hp.Optimized},dragOverlay:{measure:Iu}};class Op extends Map{get(e){var n;return null!=e&&null!=(n=super.get(e))?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:n}=e;return!n}))}getNodeFor(e){var n,t;return null!=(n=null==(t=this.get(e))?void 0:t.node.current)?n:void 0}}const Np={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Op,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:su},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:jp,measureDroppableContainers:su,windowRect:null,measuringScheduled:!1},Dp={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:su,draggableNodes:new Map,over:null,measureDroppableContainers:su},Tp=s(Dp),Rp=s(Np);function Ap(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Op}}}function zp(e,n){switch(n.type){case lu.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case lu.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case lu.DragEnd:case lu.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case lu.RegisterDroppable:{const{element:t}=n,{id:r}=t,o=new Op(e.droppable.containers);return o.set(r,t),{...e,droppable:{...e.droppable,containers:o}}}case lu.SetDroppableDisabled:{const{id:t,key:r,disabled:o}=n,i=e.droppable.containers.get(t);if(!i||r!==i.key)return e;const a=new Op(e.droppable.containers);return a.set(t,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case lu.UnregisterDroppable:{const{id:t,key:r}=n,o=e.droppable.containers.get(t);if(!o||r!==o.key)return e;const i=new Op(e.droppable.containers);return i.delete(t),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Lp(e){let{disabled:n}=e;const{active:t,activatorEvent:r,draggableNodes:o}=d(Tp),i=Hd(r),a=Hd(null==t?void 0:t.id);return b((()=>{if(!n&&!r&&i&&null!=a){if(!Xd(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:n,node:t}=e;if(!n.current&&!t.current)return;requestAnimationFrame((()=>{for(const e of[n.current,t.current]){if(!e)continue;const n=eu(e);if(n){n.focus();break}}}))}}),[r,n,o,a,i]),null}function Bp(e,n){let{transform:t,...r}=n;return null!=e&&e.length?e.reduce(((e,n)=>n({transform:e,...r})),t):t}const Zp=s({...pu,scaleX:1,scaleY:1});var Pp;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Pp||(Pp={}));const Fp=m((function(e){var n,t,r,o;let{id:i,accessibility:s,autoScroll:d=!0,children:p,sensors:f=Sp,collisionDetection:g=$u,measuring:m,modifiers:y,...w}=e;const x=v(zp,void 0,Ap),[$,C]=x,[E,M]=function(){const[e]=c((()=>new Set)),n=l((n=>(e.add(n),()=>e.delete(n))),[e]);return[l((n=>{let{type:t,event:r}=n;e.forEach((e=>{var n;return null==(n=e[t])?void 0:n.call(e,r)}))}),[e]),n]}(),[S,I]=c(Pp.Uninitialized),j=S===Pp.Initialized,{draggable:{active:O,nodes:N,translate:D},droppable:{containers:T}}=$,R=O?N.get(O):null,A=u({initial:null,translated:null}),z=h((()=>{var e;return null!=O?{id:O,data:null!=(e=null==R?void 0:R.data)?e:Ip,rect:A}:null}),[O,R]),L=u(null),[B,Z]=c(null),[P,F]=c(null),q=Fd(w,Object.values(w)),W=Gd("DndDescribedBy",i),H=h((()=>T.getEnabled()),[T]),_=function(e){return h((()=>({draggable:{...jp.draggable,...null==e?void 0:e.draggable},droppable:{...jp.droppable,...null==e?void 0:e.droppable},dragOverlay:{...jp.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(m),{droppableRects:G,measureDroppableContainers:V,measuringScheduled:Y}=function(e,n){let{dragging:t,dependencies:r,config:o}=n;const[i,a]=c(null),{frequency:s,measure:d,strategy:p}=o,f=u(e),g=function(){switch(p){case bp.Always:return!1;case bp.BeforeDragging:return t;default:return!t}}(),h=Fd(g),m=l((function(e){void 0===e&&(e=[]),h.current||a((n=>null===n?e:n.concat(e.filter((e=>!n.includes(e))))))}),[h]),v=u(null),y=qd((n=>{if(g&&!t)return mp;if(!n||n===mp||f.current!==e||null!=i){const n=new Map;for(let t of e){if(!t)continue;if(i&&i.length>0&&!i.includes(t.id)&&t.rect.current){n.set(t.id,t.rect.current);continue}const e=t.node.current,r=e?new _u(d(e),e):null;t.rect.current=r,r&&n.set(t.id,r)}return n}return n}),[e,i,t,g,d]);return b((()=>{f.current=e}),[e]),b((()=>{g||m()}),[t,g]),b((()=>{i&&i.length>0&&a(null)}),[JSON.stringify(i)]),b((()=>{g||"number"!=typeof s||null!==v.current||(v.current=setTimeout((()=>{m(),v.current=null}),s))}),[s,g,m,...r]),{droppableRects:y,measureDroppableContainers:m,measuringScheduled:null!=i}}(H,{dragging:j,dependencies:[D.x,D.y],config:_.droppable}),U=function(e,n){const t=null!==n?e.get(n):void 0,r=t?t.node.current:null;return qd((e=>{var t;return null===n?null:null!=(t=null!=r?r:e)?t:null}),[r,n])}(N,O),X=h((()=>P?Kd(P):null),[P]),K=function(){const e=!1===(null==B?void 0:B.autoScrollEnabled),n="object"==typeof d?!1===d.enabled:!1===d,t=j&&!e&&!n;if("object"==typeof d)return{...d,enabled:t};return{enabled:t}}(),J=function(e,n){return vp(e,n)}(U,_.draggable.measure);!function(e){let{activeNode:n,measure:t,initialRect:r,config:o=!0}=e;const i=u(!1),{x:a,y:c}="boolean"==typeof o?{x:o,y:o}:o;Zd((()=>{if(!a&&!c||!n)return void(i.current=!1);if(i.current||!r)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const o=Cu(t(e),r);if(a||(o.x=0),c||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const n=Nu(e);n&&n.scrollBy({top:o.y,left:o.x})}}),[n,a,c,r,t])}({activeNode:O?N.get(O):null,config:K.layoutShiftCompensation,initialRect:J,measure:_.draggable.measure});const Q=xp(U,_.draggable.measure,J),ee=xp(U?U.parentElement:null),ne=u({activatorEvent:null,active:null,activeNode:U,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),te=T.getNodeFor(null==(n=ne.current.over)?void 0:n.id),re=function(e){let{measure:n}=e;const[t,r]=c(null),o=yp({callback:l((e=>{for(const{target:t}of e)if(zd(t)){r((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),i=l((e=>{const t=Mp(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),r(t?n(t):null)}),[n,o]),[a,s]=Wd(i);return h((()=>({nodeRef:a,rect:t,setRef:s})),[t,a,s])}({measure:_.dragOverlay.measure}),oe=null!=(t=re.nodeRef.current)?t:U,ie=j?null!=(r=re.rect)?r:Q:null,ae=Boolean(re.nodeRef.current&&re.rect),ce=Cu(le=ae?null:Q,vp(le));var le;const se=Ep(oe?Rd(oe):null),de=function(e){const n=u(e),t=qd((t=>e?t&&t!==$p&&e&&n.current&&e.parentNode===n.current.parentNode?t:Ou(e):$p),[e]);return b((()=>{n.current=e}),[e]),t}(j?null!=te?te:U:null),ue=function(e,n){void 0===n&&(n=Iu);const[t]=e,r=Ep(t?Rd(t):null),[o,i]=v((function(){return e.length?e.map((e=>Lu(e)?r:new _u(n(e),e))):kp}),kp),a=yp({callback:i});return e.length>0&&o===kp&&i(),Zd((()=>{e.length?e.forEach((e=>null==a?void 0:a.observe(e))):(null==a||a.disconnect(),i())}),[e]),o}(de),pe=Bp(y,{transform:{x:D.x-ce.x,y:D.y-ce.y,scaleX:1,scaleY:1},activatorEvent:P,active:z,activeNodeRect:Q,containerNodeRect:ee,draggingNodeRect:ie,over:ne.current.over,overlayNodeRect:re.rect,scrollableAncestors:de,scrollableAncestorRects:ue,windowRect:se}),fe=X?Yd(X,D):null,ge=function(e){const[n,t]=c(null),r=u(e),o=l((e=>{const n=Du(e.target);n&&t((e=>e?(e.set(n,Au(n)),new Map(e)):null))}),[]);return b((()=>{const n=r.current;if(e!==n){i(n);const a=e.map((e=>{const n=Du(e);return n?(n.addEventListener("scroll",o,{passive:!0}),[n,Au(n)]):null})).filter((e=>null!=e));t(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(n)};function i(e){e.forEach((e=>{const n=Du(e);null==n||n.removeEventListener("scroll",o)}))}}),[o,e]),h((()=>e.length?n?Array.from(n.values()).reduce(((e,n)=>Yd(e,n)),pu):qu(e):pu),[e,n])}(de),be=Cp(ge),he=Cp(ge,[Q]),me=Yd(pe,be),ve=ie?ku(ie,pe):null,ye=z&&ve?g({active:z,collisionRect:ve,droppableRects:G,droppableContainers:H,pointerCoordinates:fe}):null,we=vu(ye,"id"),[xe,$e]=c(null),Ce=function(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}(ae?pe:Yd(pe,he),null!=(o=null==xe?void 0:xe.rect)?o:null,Q),Ee=l(((e,n)=>{let{sensor:t,options:r}=n;if(null==L.current)return;const o=N.get(L.current);if(!o)return;const i=e.nativeEvent,a=new t({active:L.current,activeNode:o,event:i,options:r,context:ne,onStart(e){const n=L.current;if(null==n)return;const t=N.get(n);if(!t)return;const{onDragStart:r}=q.current,o={active:{id:n,data:t.data,rect:A}};k((()=>{null==r||r(o),I(Pp.Initializing),C({type:lu.DragStart,initialCoordinates:e,active:n}),E({type:"onDragStart",event:o})}))},onMove(e){C({type:lu.DragMove,coordinates:e})},onEnd:c(lu.DragEnd),onCancel:c(lu.DragCancel)});function c(e){return async function(){const{active:n,collisions:t,over:r,scrollAdjustedTranslate:o}=ne.current;let a=null;if(n&&o){const{cancelDrop:c}=q.current;if(a={activatorEvent:i,active:n,collisions:t,delta:o,over:r},e===lu.DragEnd&&"function"==typeof c){await Promise.resolve(c(a))&&(e=lu.DragCancel)}}L.current=null,k((()=>{C({type:e}),I(Pp.Uninitialized),$e(null),Z(null),F(null);const n=e===lu.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=q.current[n];null==e||e(a),E({type:n,event:a})}}))}}k((()=>{Z(a),F(e.nativeEvent)}))}),[N]),ke=l(((e,n)=>(t,r)=>{const o=t.nativeEvent,i=N.get(r);if(null!==L.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(t,n.options,a)&&(o.dndKit={capturedBy:n.sensor},L.current=r,Ee(t,n))}),[N,Ee]),Me=function(e,n){return h((()=>e.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[e,n])}(f,ke);!function(e){b((()=>{if(!Nd)return;const n=e.map((e=>{let{sensor:n}=e;return null==n.setup?void 0:n.setup()}));return()=>{for(const e of n)null==e||e()}}),e.map((e=>{let{sensor:n}=e;return n})))}(f),Zd((()=>{Q&&S===Pp.Initializing&&I(Pp.Initialized)}),[Q,S]),b((()=>{const{onDragMove:e}=q.current,{active:n,activatorEvent:t,collisions:r,over:o}=ne.current;if(!n||!t)return;const i={active:n,activatorEvent:t,collisions:r,delta:{x:me.x,y:me.y},over:o};k((()=>{null==e||e(i),E({type:"onDragMove",event:i})}))}),[me.x,me.y]),b((()=>{const{active:e,activatorEvent:n,collisions:t,droppableContainers:r,scrollAdjustedTranslate:o}=ne.current;if(!e||null==L.current||!n||!o)return;const{onDragOver:i}=q.current,a=r.get(we),c=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:n,collisions:t,delta:{x:o.x,y:o.y},over:c};k((()=>{$e(c),null==i||i(l),E({type:"onDragOver",event:l})}))}),[we]),Zd((()=>{ne.current={activatorEvent:P,active:z,activeNode:U,collisionRect:ve,collisions:ye,droppableRects:G,draggableNodes:N,draggingNode:oe,draggingNodeRect:ie,droppableContainers:T,over:xe,scrollableAncestors:de,scrollAdjustedTranslate:me},A.current={initial:ie,translated:ve}}),[z,U,ye,ve,N,oe,ie,G,T,xe,de,me]),fp({...K,delta:D,draggingRect:ve,pointerCoordinates:fe,scrollableAncestors:de,scrollableAncestorRects:ue});const Se=h((()=>({active:z,activeNode:U,activeNodeRect:Q,activatorEvent:P,collisions:ye,containerNodeRect:ee,dragOverlay:re,draggableNodes:N,droppableContainers:T,droppableRects:G,over:xe,measureDroppableContainers:V,scrollableAncestors:de,scrollableAncestorRects:ue,measuringConfiguration:_,measuringScheduled:Y,windowRect:se})),[z,U,Q,P,ye,ee,re,N,T,G,xe,V,de,ue,_,Y,se]),Ie=h((()=>({activatorEvent:P,activators:Me,active:z,activeNodeRect:Q,ariaDescribedById:{draggable:W},dispatch:C,draggableNodes:N,over:xe,measureDroppableContainers:V})),[P,Me,z,Q,C,W,N,xe,V]);return a.createElement(ou.Provider,{value:M},a.createElement(Tp.Provider,{value:Ie},a.createElement(Rp.Provider,{value:Se},a.createElement(Zp.Provider,{value:Ce},p)),a.createElement(Lp,{disabled:!1===(null==s?void 0:s.restoreFocus)})),a.createElement(cu,{...s,hiddenTextDescribedById:W}))})),qp=s(null),Wp="button",Hp="Droppable";function _p(e){let{id:n,data:t,disabled:r=!1,attributes:o}=e;const i=Gd(Hp),{activators:a,activatorEvent:c,active:l,activeNodeRect:s,ariaDescribedById:u,draggableNodes:p,over:f}=d(Tp),{role:g=Wp,roleDescription:b="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==l?void 0:l.id)===n,y=d(v?Zp:qp),[w,x]=Wd(),[$,C]=Wd(),E=function(e,n){return h((()=>e.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[e,n])}(a,n),k=Fd(t);Zd((()=>(p.set(n,{id:n,key:i,node:w,activatorNode:$,data:k}),()=>{const e=p.get(n);e&&e.key===i&&p.delete(n)})),[p,n]);return{active:l,activatorEvent:c,activeNodeRect:s,attributes:h((()=>({role:g,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||g!==Wp)||void 0,"aria-roledescription":b,"aria-describedby":u.draggable})),[r,g,m,v,b,u.draggable]),isDragging:v,listeners:r?void 0:E,node:w,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:y}}function Gp(){return d(Rp)}const Vp="Droppable",Yp={timeout:25};function Up(e){let{data:n,disabled:t=!1,id:r,resizeObserverConfig:o}=e;const i=Gd(Vp),{active:a,dispatch:c,over:s,measureDroppableContainers:p}=d(Tp),f=u({disabled:t}),g=u(!1),h=u(null),m=u(null),{disabled:v,updateMeasurementsFor:y,timeout:w}={...Yp,...o},x=Fd(null!=y?y:r),$=yp({callback:l((()=>{g.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{p(Array.isArray(x.current)?x.current:[x.current]),m.current=null}),w)):g.current=!0}),[w]),disabled:v||!a}),C=l(((e,n)=>{$&&(n&&($.unobserve(n),g.current=!1),e&&$.observe(e))}),[$]),[E,k]=Wd(C),M=Fd(n);return b((()=>{$&&E.current&&($.disconnect(),g.current=!1,$.observe(E.current))}),[E,$]),Zd((()=>(c({type:lu.RegisterDroppable,element:{id:r,key:i,disabled:t,node:E,rect:h,data:M}}),()=>c({type:lu.UnregisterDroppable,key:i,id:r}))),[r]),b((()=>{t!==f.current.disabled&&(c({type:lu.SetDroppableDisabled,id:r,key:i,disabled:t}),f.current.disabled=t)}),[r,i,t,c]),{active:a,rect:h,isOver:(null==s?void 0:s.id)===r,node:E,over:s,setNodeRef:k}}function Xp(e){let{animation:n,children:t}=e;const[r,o]=c(null),[i,l]=c(null),s=Hd(t);return t||r||!s||o(s),Zd((()=>{if(!i)return;const e=null==r?void 0:r.key,t=null==r?void 0:r.props.id;null!=e&&null!=t?Promise.resolve(n(t,i)).then((()=>{o(null)})):o(null)}),[n,r,i]),a.createElement(a.Fragment,null,t,r?y(r,{ref:l}):null)}const Kp={x:0,y:0,scaleX:1,scaleY:1};function Jp(e){let{children:n}=e;return a.createElement(Tp.Provider,{value:Dp},a.createElement(Zp.Provider,{value:Kp},n))}const Qp={position:"fixed",touchAction:"none"},ef=e=>Xd(e)?"transform 250ms ease":void 0,nf=p(((e,n)=>{let{as:t,activatorEvent:r,adjustScale:o,children:i,className:c,rect:l,style:s,transform:d,transition:u=ef}=e;if(!l)return null;const p=o?d:{...d,scaleX:1,scaleY:1},f={...Qp,width:l.width,height:l.height,top:l.top,left:l.left,transform:Jd.Transform.toString(p),transformOrigin:o&&r?gu(r,l):void 0,transition:"function"==typeof u?u(r):u,...s};return a.createElement(t,{className:c,style:f,ref:n},i)})),tf=e=>n=>{let{active:t,dragOverlay:r}=n;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,n]of Object.entries(i.active))void 0!==n&&(o[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(const[e,n]of Object.entries(i.dragOverlay))void 0!==n&&r.node.style.setProperty(e,n);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,n]of Object.entries(o))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}},rf={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:n,final:t}}=e;return[{transform:Jd.Transform.toString(n)},{transform:Jd.Transform.toString(t)}]},sideEffects:tf({styles:{active:{opacity:"0"}}})};function of(e){let{config:n,draggableNodes:t,droppableContainers:r,measuringConfiguration:o}=e;return Pd(((e,i)=>{if(null===n)return;const a=t.get(e);if(!a)return;const c=a.node.current;if(!c)return;const l=Mp(i);if(!l)return;const{transform:s}=Rd(i).getComputedStyle(i),d=Mu(s);if(!d)return;const u="function"==typeof n?n:function(e){const{duration:n,easing:t,sideEffects:r,keyframes:o}={...rf,...e};return e=>{let{active:i,dragOverlay:a,transform:c,...l}=e;if(!n)return;const s={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},d={scaleX:1!==c.scaleX?i.rect.width*c.scaleX/a.rect.width:1,scaleY:1!==c.scaleY?i.rect.height*c.scaleY/a.rect.height:1},u={x:c.x-s.x,y:c.y-s.y,...d},p=o({...l,active:i,dragOverlay:a,transform:{initial:c,final:u}}),[f]=p,g=p[p.length-1];if(JSON.stringify(f)===JSON.stringify(g))return;const b=null==r?void 0:r({active:i,dragOverlay:a,...l}),h=a.node.animate(p,{duration:n,easing:t,fill:"forwards"});return new Promise((e=>{h.onfinish=()=>{null==b||b(),e()}}))}}(n);return Wu(c,o.draggable.measure),u({active:{id:e,data:a.data,node:c,rect:o.draggable.measure(c)},draggableNodes:t,dragOverlay:{node:i,rect:o.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}let af=0;function cf(e){return h((()=>{if(null!=e)return af++,af}),[e])}const lf=a.memo((e=>{let{adjustScale:n=!1,children:t,dropAnimation:r,style:o,transition:i,modifiers:c,wrapperElement:l="div",className:s,zIndex:u=999}=e;const{activatorEvent:p,active:f,activeNodeRect:g,containerNodeRect:b,draggableNodes:h,droppableContainers:m,dragOverlay:v,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:$,windowRect:C}=Gp(),E=d(Zp),k=cf(null==f?void 0:f.id),M=Bp(c,{activatorEvent:p,active:f,activeNodeRect:g,containerNodeRect:b,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:x,scrollableAncestorRects:$,transform:E,windowRect:C}),S=vp(g),I=of({config:r,draggableNodes:h,droppableContainers:m,measuringConfiguration:w}),j=S?v.setRef:void 0;return a.createElement(Jp,null,a.createElement(Xp,{animation:I},f&&k?a.createElement(nf,{key:k,id:f.id,ref:j,as:l,activatorEvent:p,adjustScale:n,className:s,transition:i,rect:S,style:{zIndex:u,...o},transform:M},t):null))}));function sf(e,n,t){const r=e.slice();return r.splice(t<0?r.length+t:t,0,r.splice(n,1)[0]),r}function df(e,n){return e.reduce(((e,t,r)=>{const o=n.get(t);return o&&(e[r]=o),e}),Array(e.length))}function uf(e){return null!==e&&e>=0}const pf=e=>{let{rects:n,activeIndex:t,overIndex:r,index:o}=e;const i=sf(n,r,t),a=n[o],c=i[o];return c&&a?{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}:null},ff={scaleX:1,scaleY:1},gf=e=>{var n;let{activeIndex:t,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const c=null!=(n=i[t])?n:r;if(!c)return null;if(o===t){const e=i[a];return e?{x:0,y:t<a?e.top+e.height-(c.top+c.height):e.top-c.top,...ff}:null}const l=function(e,n,t){const r=e[n],o=e[n-1],i=e[n+1];if(!r)return 0;if(t<n)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-l,...ff}:o<t&&o>=a?{x:0,y:c.height+l,...ff}:{x:0,y:0,...ff}};const bf="Sortable",hf=a.createContext({activeIndex:-1,containerId:bf,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pf,disabled:{draggable:!1,droppable:!1}});function mf(e){let{children:n,id:t,items:r,strategy:o=pf,disabled:i=!1}=e;const{active:c,dragOverlay:l,droppableRects:s,over:d,measureDroppableContainers:p}=Gp(),f=Gd(bf,t),g=Boolean(null!==l.rect),m=h((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),v=null!=c,y=c?m.indexOf(c.id):-1,w=d?m.indexOf(d.id):-1,x=u(m),$=!function(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}(m,x.current),C=-1!==w&&-1===y||$,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);Zd((()=>{$&&v&&p(m)}),[$,m,v,p]),b((()=>{x.current=m}),[m]);const k=h((()=>({activeIndex:y,containerId:f,disabled:E,disableTransforms:C,items:m,overIndex:w,useDragOverlay:g,sortedRects:df(m,s),strategy:o})),[y,f,E.draggable,E.droppable,C,m,w,s,g,o]);return a.createElement(hf.Provider,{value:k},n)}const vf=e=>{let{id:n,items:t,activeIndex:r,overIndex:o}=e;return sf(t,r,o).indexOf(n)},yf=e=>{let{containerId:n,isSorting:t,wasDragging:r,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:l,transition:s}=e;return!(!s||!r)&&((c===i||o!==a)&&(!!t||a!==o&&n===l))},wf={duration:200,easing:"ease"},xf="transform",$f=Jd.Transition.toString({property:xf,duration:0,easing:"linear"}),Cf={roleDescription:"sortable"};function Ef(e){let{animateLayoutChanges:n=yf,attributes:t,disabled:r,data:o,getNewIndex:i=vf,id:a,strategy:l,resizeObserverConfig:s,transition:p=wf}=e;const{items:f,containerId:g,activeIndex:m,disabled:v,disableTransforms:y,sortedRects:w,overIndex:x,useDragOverlay:$,strategy:C}=d(hf),E=function(e,n){var t,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(t=null==e?void 0:e.draggable)?t:n.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:n.droppable}}(r,v),k=f.indexOf(a),M=h((()=>({sortable:{containerId:g,index:k,items:f},...o})),[g,o,k,f]),S=h((()=>f.slice(f.indexOf(a))),[f,a]),{rect:I,node:j,isOver:O,setNodeRef:N}=Up({id:a,data:M,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...s}}),{active:D,activatorEvent:T,activeNodeRect:R,attributes:A,setNodeRef:z,listeners:L,isDragging:B,over:Z,setActivatorNodeRef:P,transform:F}=_p({id:a,data:M,attributes:{...Cf,...t},disabled:E.draggable}),q=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return h((()=>e=>{n.forEach((n=>n(e)))}),n)}(N,z),W=Boolean(D),H=W&&!y&&uf(m)&&uf(x),_=!$&&B,G=_&&H?F:null,V=H?null!=G?G:(null!=l?l:C)({rects:w,activeNodeRect:R,activeIndex:m,overIndex:x,index:k}):null,Y=uf(m)&&uf(x)?i({id:a,items:f,activeIndex:m,overIndex:x}):k,U=null==D?void 0:D.id,X=u({activeId:U,items:f,newIndex:Y,containerId:g}),K=f!==X.current.items,J=n({active:D,containerId:g,isDragging:B,isSorting:W,id:a,index:k,items:f,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:p,wasDragging:null!=X.current.activeId}),Q=function(e){let{disabled:n,index:t,node:r,rect:o}=e;const[i,a]=c(null),l=u(t);return Zd((()=>{if(!n&&t!==l.current&&r.current){const e=o.current;if(e){const n=Iu(r.current,{ignoreTransform:!0}),t={x:e.left-n.left,y:e.top-n.top,scaleX:e.width/n.width,scaleY:e.height/n.height};(t.x||t.y)&&a(t)}}t!==l.current&&(l.current=t)}),[n,t,r,o]),b((()=>{i&&a(null)}),[i]),i}({disabled:!J,index:k,node:j,rect:I});return b((()=>{W&&X.current.newIndex!==Y&&(X.current.newIndex=Y),g!==X.current.containerId&&(X.current.containerId=g),f!==X.current.items&&(X.current.items=f)}),[W,Y,g,f]),b((()=>{if(U===X.current.activeId)return;if(U&&!X.current.activeId)return void(X.current.activeId=U);const e=setTimeout((()=>{X.current.activeId=U}),50);return()=>clearTimeout(e)}),[U]),{active:D,activeIndex:m,attributes:A,data:M,rect:I,index:k,newIndex:Y,items:f,isOver:O,isSorting:W,isDragging:B,listeners:L,node:j,overIndex:x,over:Z,setNodeRef:q,setActivatorNodeRef:P,setDroppableNodeRef:N,setDraggableNodeRef:z,transform:null!=Q?Q:V,transition:function(){if(Q||K&&X.current.newIndex===k)return $f;if(_&&!Xd(T)||!p)return;if(W||J)return Jd.Transition.toString({...p,property:xf});return}()}}function kf(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&"object"==typeof n.sortable&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Mf=[Uu.Down,Uu.Right,Uu.Up,Uu.Left],Sf=(e,n)=>{let{context:{active:t,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:c}}=n;if(Mf.includes(e.code)){if(e.preventDefault(),!t||!r)return;const n=[];i.getEnabled().forEach((t=>{if(!t||null!=t&&t.disabled)return;const i=o.get(t.id);if(i)switch(e.code){case Uu.Down:r.top<i.top&&n.push(t);break;case Uu.Up:r.top>i.top&&n.push(t);break;case Uu.Left:r.left>i.left&&n.push(t);break;case Uu.Right:r.left<i.left&&n.push(t)}}));const l=(e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const o=mu(n),i=[];for(const e of r){const{id:n}=e,r=t.get(n);if(r){const t=mu(r),a=o.reduce(((e,n,r)=>e+fu(t[r],n)),0),c=Number((a/4).toFixed(4));i.push({id:n,data:{droppableContainer:e,value:c}})}}return i.sort(bu)})({active:t,collisionRect:r,droppableRects:o,droppableContainers:n,pointerCoordinates:null});let s=vu(l,"id");if(s===(null==a?void 0:a.id)&&l.length>1&&(s=l[1].id),null!=s){const e=i.get(t.id),n=i.get(s),a=n?o.get(n.id):null,l=null==n?void 0:n.node.current;if(l&&a&&e&&n){const t=Ou(l).some(((e,n)=>c[n]!==e)),o=If(e,n),i=function(e,n){if(!kf(e)||!kf(n))return!1;if(!If(e,n))return!1;return e.data.current.sortable.index<n.data.current.sortable.index}(e,n),s=t||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},d={x:a.left,y:a.top};return s.x&&s.y?d:Ud(d,s)}}}};function If(e,n){return!(!kf(e)||!kf(n))&&e.data.current.sortable.containerId===n.data.current.sortable.containerId}var jf=s(Fp),Of=function(e){var n=d(jf);return b((function(){var e=document.documentElement.style.scrollBehavior;return document.documentElement.style.scrollBehavior="auto",function(){document.documentElement.style.scrollBehavior=e}})),a.createElement(n,S({},e))};function Nf(){var e=O(c(!1),2),n=e[0],t=e[1];return b((function(){var e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches)}),[]),n}var Df=function(e){var n=e.id,t=e.label,r=e.isHighlighted,o=Ef({id:n}),i=o.attributes,c=o.listeners,l=o.setNodeRef,s=o.transform,d=o.transition,u=o.isOver,p=o.isDragging,f={transform:Jd.Transform.toString(s),transition:d};return a.createElement(Ui,{isOver:u,isHighlighted:r},a.createElement(Vi,S({ref:l,style:f,isDisabled:p},i,c,{"aria-describedby":void 0,"aria-roledescription":"sortable item","aria-pressed":void 0,"aria-selected":!!i["aria-pressed"],role:"option"}),t))},Tf=function(e){var n=e.initialItems,t=e.onChange,r=e.isHighlighted,o=O(c(n),2),i=o[0],l=o[1],s=O(c(null),2),d=s[0],u=s[1],p=i.find((function(e){return e.id===d})),f=uu(du(lp),du(dp),du(ep,{coordinateGetter:Sf,scrollBehavior:Nf()?"instant":"smooth"}));return a.createElement(a.Fragment,null,a.createElement(Wi,{$mb:"space-between-m2"}),a.createElement(Of,{sensors:f,collisionDetection:wu,onDragEnd:function(e){var n=e.active,r=e.over;n.id!==(null==r?void 0:r.id)&&l((function(e){var o=e.findIndex((function(e){return e.id===n.id})),i=e.findIndex((function(e){return e.id===(null==r?void 0:r.id)})),a=sf(e,o,i);return null==t||t(a),a}));u(null)},onDragStart:function(e){var n=e.active;u(n.id.toString())},accessibility:{announcements:Rf(i)}},a.createElement(mf,{items:i,strategy:gf},a.createElement(rt,{$gap:"space-between-s",$flexDirection:"column",role:"listbox","aria-label":"Sortable items"},i.map((function(e){return a.createElement(Df,S({key:e.id},e,{isHighlighted:r}))}))),E(a.createElement(lf,null,p&&a.createElement(Vi,{isDragging:!0},p.label)),document.body))))};function Rf(e){var n=function(n){return e.findIndex((function(e){return e.id===n}))+1},t=function(n){var t;return null===(t=e.find((function(e){return e.id===n})))||void 0===t?void 0:t.label};return{onDragStart:function(){},onDragOver:function(r){var o=r.active,i=r.over;if(i)return"Sortable item ".concat(t(o.id)," is in position ").concat(n(i.id)," of ").concat(e.length)},onDragEnd:function(r){var o=r.active,i=r.over;if(i)return"Sortable item ".concat(t(o.id)," was dropped into position ").concat(n(i.id)," of ").concat(e.length)},onDragCancel:function(e){var n=e.active;return"Dragging was cancelled. Sortable item ".concat(t(n.id)," was dropped.")}}}var Af,zf,Lf,Bf=e(nt)(Af||(Af=D(["\n background-color: ",";\n background-color: color-mix(in lch, ",' 5%, transparent);\n\n &[data-over="true"] {\n background-color: ',";\n background-color: color-mix(\n in lch,\n "," 60%,\n transparent\n );\n }\n"],["\n background-color: ",";\n background-color: color-mix(in lch, ",' 5%, transparent);\n\n &[data-over="true"] {\n background-color: ',";\n background-color: color-mix(\n in lch,\n "," 60%,\n transparent\n );\n }\n"])),z("grey20"),z("black"),z("white"),z("white")),Zf=p((function(e,n){var t=e.isOver,r=e.children,o=I(e,["isOver","children"]),i=O(c(null),2),l=i[0],s=i[1],d=O(c(0),2),u=d[0],p=d[1];return f((function(){if(l){var e=new ResizeObserver((function(e){var n,t,r=function(e){p((function(n){var t,r;return Math.max(null!==(r=null===(t=e.borderBoxSize[0])||void 0===t?void 0:t.blockSize)&&void 0!==r?r:0,n)}))};try{for(var o=j(e),i=o.next();!i.done;i=o.next()){r(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}}));return e.observe(l),window.addEventListener("resize",n),function(){e.disconnect(),window.removeEventListener("resize",n)}}function n(){p(0)}}),[l]),a.createElement(Bf,S({ref:n,$mb:"space-between-m2",$borderRadius:"border-radius-l","data-over":t,style:{minHeight:0===u?"auto":u}},o),a.createElement(rt,{$alignItems:"flex-start",$minHeight:"all-spacing-13",$pa:"inner-padding-s",$gap:"space-between-xs",$flexWrap:"wrap",ref:s},r))})),Pf=function(e){var n=e.id,t=e.label,r=e.isOver,o=_p({id:n,data:{id:n,label:t}}),i=o.attributes,c=o.listeners,l=o.setNodeRef,s=o.isDragging;return a.createElement(Vi,S({ref:l,isDisabled:r,color:"text-inverted",background:"bg-btn-primary",iconColor:"icon-main"},i,c,{role:"option","aria-describedby":void 0,"aria-roledescription":"draggable item","aria-pressed":void 0,"aria-selected":!!i["aria-pressed"],style:{opacity:s?0:1}}),t)},Ff=function(e){var n=e.children,t=Up({id:"holding-pen",data:{label:"holding pen"}}),r=t.setNodeRef,o=t.isOver;return a.createElement(Zf,{ref:r,isOver:o,"aria-label":"Available items","data-testid":"holding-pen",role:"listbox"},n)},qf=function(e){var n=e.id,t=e.label,r=e.match,o=e.isHighlighted,i=Up({id:n,data:{id:n,label:t}}),c=i.setNodeRef,l=i.isOver,s=i.active;return a.createElement(Ui,{isOver:l,isDisabled:!s,ref:c,id:n,labelSlot:t,"data-testid":"slot",isHighlighted:o},r&&a.createElement(Pf,S({},r,{isOver:l})))},Wf=function(e){var n=e.initialOptions,t=e.initialSlots,r=e.isHighlighted,o=e.onChange,i=O(c({}),2),l=i[0],s=i[1],d=u(n.slice().sort((function(){return Math.random()-.5}))).current,p=u(t).current,f=O(c(null),2),g=f[0],b=f[1],h=d.find((function(e){return e.id===g})),m=Nf(),v=uu(du(lp),du(dp),du(ep,{coordinateGetter:Sf,scrollBehavior:m?"instant":"smooth"})),y=Object.values(l).map((function(e){return e.id})),w=d.filter((function(e){return!y.includes(e.id)}));return a.createElement(a.Fragment,null,a.createElement(Wi,{$mb:"space-between-m2"}),a.createElement(Of,{sensors:v,collisionDetection:wu,onDragEnd:function(e){var n=e.active,t=e.over;t&&s((function(e){var r=Object.entries(e).filter((function(e){var t=O(e,2)[1];return(null==t?void 0:t.id)!==n.id})),i=Object.fromEntries(r);return"holding-pen"!==t.id&&(i[t.id]=n.data.current),null==o||o(i),i}));b(null)},onDragStart:function(e){var n=e.active;b(n.id.toString())},accessibility:{announcements:Hf}},a.createElement(Ff,null,w.map((function(e){return a.createElement(Pf,S({key:e.id},e))}))),a.createElement(rt,{$gap:"space-between-s",$flexDirection:"column","aria-label":"Matched items",role:"listbox"},p.map((function(e){return a.createElement(qf,S({key:e.id},e,{isHighlighted:r,match:l[e.id]}))}))),E(a.createElement(lf,{dropAnimation:m?null:void 0},h&&a.createElement(Vi,{isDragging:!0},h.label)),document.body)))},Hf={onDragStart:function(){},onDragOver:function(e){var n,t=e.active,r=e.over;if((null==r?void 0:r.data.current)&&(null===(n=t.data)||void 0===n?void 0:n.current))return"Item ".concat(t.data.current.label," is over ").concat(r.data.current.label)},onDragEnd:function(e){var n,t=e.active,r=e.over;if((null==r?void 0:r.data.current)&&(null===(n=t.data)||void 0===n?void 0:n.current))return"Item ".concat(t.data.current.label," was dropped onto ").concat(r.data.current.label)},onDragCancel:function(e){var n,t=e.active;if(null===(n=t.data)||void 0===n?void 0:n.current)return"Dragging was cancelled. Item ".concat(t.data.current.label," was dropped.")}},_f=e(rt)(Lf||(Lf=D(["\n @media (min-width: ","px) {\n ","\n"],["\n @media (min-width: ","px) {\n ","\n"])),G("large"),(function(e){return n(zf||(zf=D(["\n background-image: url(",");\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n "],["\n background-image: url(",");\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n "])),function(e,n){var t="https://".concat(process.env.NEXT_PUBLIC_OAK_ASSETS_HOST,"/").concat(process.env.NEXT_PUBLIC_OAK_ASSETS_PATH,"/");switch(e){case"lesson-listing":return"primary"===n?"".concat(t).concat(Pt):"".concat(t).concat(Ft);case"unit-listing":return"primary"===n?"".concat(t).concat(Wt):"".concat(t).concat(Ht);case"subject-listing":return"".concat(t).concat(_t);case"year-listing":return"".concat(t).concat(qt);default:return""}}(e.sectionName,null==e?void 0:e.phase))})),Gf=function(e){var n=e.sectionName,t=e.topNavSlot,r=e.phase,o=e.children,i=function(){switch(!0){case"lesson-listing"===n&&"primary"===r:return"bg-decorative4-very-subdued";case"lesson-listing"===n&&"secondary"===r:return"bg-decorative3-very-subdued";case"unit-listing"===n&&"primary"===r:return"bg-decorative4-very-subdued";case"unit-listing"===n&&"secondary"===r:return"bg-decorative3-very-subdued";case"tier-listing"===n&&"primary"===r:return"bg-decorative4-very-subdued";case"tier-listing"===n&&"secondary"===r:return"bg-decorative3-very-subdued";case"subject-listing"===n:case"year-listing"===n:return"bg-decorative1-main"}}();return a.createElement(_f,{$background:i,$flexDirection:"column",$alignItems:"center",$ph:["inner-padding-s","inner-padding-xl"],sectionName:n,phase:r},t&&a.createElement(rt,{$height:["all-spacing-13","all-spacing-14","all-spacing-16"],$alignItems:"center",$width:["100%","100%","all-spacing-24"]},t),o)};var Vf,Yf,Uf,Xf,Kf,Jf,Qf,eg,ng=e(ao)(Vf||(Vf=D(["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"],["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"])),Dn("drop-shadow-lemon"),Dn("drop-shadow-grey")),tg=function(e){var n=e.isLoading,t=e.disabled,r=e.onClick,o=e.isOpen,i=e.buttonProps;return a.createElement(ng,S({iconName:o&&!t?"cross":"info",defaultIconBackground:o?"black":"bg-decorative5-main",defaultIconColor:o?"white":"black",hoverIconBackground:o?"black":"bg-decorative5-main",defaultTextColor:"text-primary",hoverTextColor:"text-primary",disabledIconBackground:"bg-btn-primary-disabled",disabledTextColor:"text-disabled",disabledIconColor:"white",isLoading:n,disabled:e.disabled,iconBackgroundSize:"all-spacing-8",iconSize:"all-spacing-7",onClick:r,"data-rac":!0},i))},rg=function(e){e.hint,e.isLoading,e.disabled;var n=I(e,["hint","isLoading","disabled"]),t=O(c(!1),2),r=t[0],o=t[1];return a.createElement(ei,S({tooltip:e.hint,isOpen:r,id:"info-tooltip"},n),a.createElement(tg,{onClick:function(){o(!r)},isOpen:r,buttonProps:{"aria-describedby":"info-tooltip"}}))},og=e(nt)(Yf||(Yf=D([""],[""]))),ig=e(Uo)(Uf||(Uf=D(["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"],["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"])),ne("all-spacing-8"),ne("all-spacing-8"),(function(e){return at(e.$disabled?"icon-disabled":"icon-inverted")})),ag=n(Xf||(Xf=D(["\n "," {\n box-shadow: ",",\n ",";\n }\n"],["\n "," {\n box-shadow: ",",\n ",";\n }\n"])),ig,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey")),cg=n(Kf||(Kf=D(["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"],["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"])),ig,z("bg-btn-primary"),at("icon-main")),lg=e(rt)(Qf||(Qf=D(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return e.$disabled&&"cursor: not-allowed"}),(function(e){return!e.$disabled&&n(Jf||(Jf=D(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n ","\n }\n "],["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n ","\n }\n "])),z("bg-decorative1-subdued"),og,cg,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"),ag,cg)})),sg=e(nt)(eg||(eg=D(["\n flex: 1;\n"],["\n flex: 1;\n"]))),dg=function(e){var n=e.as;e.lessonSectionName,e.progress;var t=e.disabled,r=e.href,o=e.unavailable,i=e.onClick,c=I(e,["as","lessonSectionName","progress","disabled","href","unavailable","onClick"]),l=t||o;return a.createElement(nt,{role:"listitem"},a.createElement(lg,S({as:l?"div":null!=n?n:"a",$gap:["space-between-s","space-between-m2"],$alignItems:"center",$justifyContent:"space-between",$flexWrap:"wrap",$background:o?"bg-neutral":"bg-primary",$pa:["inner-padding-l","inner-padding-xl"],$borderRadius:"border-radius-m",$ba:o?"border-solid-m":"border-solid-none",$borderColor:o?"border-neutral-lighter":"transparent",$disabled:l,$color:"text-primary",href:l?void 0:r,onClick:l?void 0:i},c),a.createElement(rt,{$alignItems:"center",$gap:["space-between-m2"]}," ",a.createElement(rt,null,a.createElement(nt,{$font:["heading-5","heading-4"],$color:e.unavailable?"text-subdued":"text-primary",$textDecoration:"none"},e.index)),a.createElement(sg,null,a.createElement(og,{$font:["heading-6","heading-5"],$color:l?"text-subdued":"text-primary"},e.title))),a.createElement(rt,{$alignItems:"center",$gap:"space-between-xs",$flexBasis:"auto",$flexGrow:1,$justifyContent:"flex-end"},e.numberOfLessons&&!e.unavailable&&a.createElement(og,{$font:"heading-7",$color:l?"text-subdued":"text-primary"},e.numberOfLessons," lessons"),e.unavailable&&a.createElement(og,{$font:"heading-7",$color:l?"text-subdued":"text-primary"},"Unavailable"),!e.unavailable&&a.createElement(ig,{iconName:"chevron-right",$disabled:l}))))},ug=function(e){var n=e.phase,t=e.element,r=I(e,["phase","element"]),o="primary"===n?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",i="primary"===n?"bg-decorative4-main":"bg-decorative3-main",c="primary"===n?"border-decorative4-stronger":"border-decorative3-stronger";return a.createElement(eo,S({element:null!=t?t:"button",pv:"inner-padding-xl",ph:"inner-padding-xl",font:"heading-6",defaultBorderColor:c,defaultBackground:o,defaultTextColor:"text-primary",hoverBackground:i,hoverBorderColor:c,hoverTextColor:"text-primary",disabledBackground:"bg-btn-secondary-disabled",disabledBorderColor:"border-neutral-lighter",disabledTextColor:"text-subdued"},r))},pg=function(e){var n=e.phase,t=e.element,r=e.subjectIconName,o=I(e,["phase","element","subjectIconName"]),i="primary"===n?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",c="primary"===n?"bg-decorative4-main":"bg-decorative3-main",l="primary"===n?"border-decorative4-stronger":"border-decorative3-stronger",s=a.createElement(Qt,{iconName:r,$minWidth:"all-spacing-12",$minHeight:"all-spacing-12","aria-hidden":"true"});return a.createElement(eo,S({element:null!=t?t:"button",iconOverride:s,iconLayout:"column",iconGap:"space-between-sssx",pv:null,pt:"inner-padding-s",pb:"inner-padding-xl",ph:"inner-padding-s",font:"heading-7",defaultBorderColor:l,defaultBackground:i,defaultTextColor:"text-primary",hoverBackground:c,hoverBorderColor:l,hoverTextColor:"text-primary",disabledBackground:"bg-btn-secondary-disabled",disabledBorderColor:"border-neutral-lighter",disabledTextColor:"text-subdued",textAlign:"center",innerWidth:"all-spacing-16"},o))},fg=function(e){var n=e.count,t=e.countHeader,r=e.tag;return a.createElement(Nt,{tag:r,$font:["heading-6","heading-6"]},t,a.createElement(ot,{$font:"heading-light-6"}," (".concat(n,")")))},gg=function(e){var n=e.numberOfLessons,t=e.listItems;return a.createElement(rt,{$flexDirection:["column","row"],$flexWrap:"wrap",$justifyContent:"space-between",$flexGrow:[null,1],$alignItems:["flex-start","center"],$gap:"space-between-m",$mt:"space-between-m2"},a.createElement(fg,{tag:"h1",count:n,countHeader:"Previously released lessons"}),a.createElement(ii,{listItems:t,$background:"bg-decorative5-very-subdued",$borderRadius:"border-radius-s",$borderColor:"border-decorative5",$ba:"border-solid-s",$ph:"inner-padding-xs",$pv:"inner-padding-ssx"}))},bg=function(e){var n=e.children,t=e.phase,r=e.titleSlot,o=e.counterSlot,i="primary"===t?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",c="primary"===t?"bg-decorative4-subdued":"bg-decorative3-subdued";return a.createElement(rt,{$flexDirection:"column",$width:["100%","all-spacing-22","all-spacing-23"],$background:i},r&&a.createElement(rt,{$flexDirection:"column",$gap:["space-between-m","space-between-m2","space-between-m2"]},r,a.createElement(ji,{hrColor:"white",$height:"all-spacing-1"})),a.createElement(rt,{$mv:"space-between-m"},o),a.createElement(rt,{$flexDirection:"column",$pa:"inner-padding-m",$borderRadius:"border-radius-l",$gap:"space-between-s",$background:c,role:"list"},n))},hg=function(e){var n=e.iconBackground,t=void 0===n?"primary":n,r=e.title,o=e.iconName,i=e.alt,c=e.breadcrumbs,l=e.optionalityTitle;return a.createElement(rt,{$flexDirection:"row",$gap:"space-between-m"},a.createElement(Mi,{fill:mg(t),iconName:o,$flexGrow:0,iconHeight:["all-spacing-9","all-spacing-10","all-spacing-10"],iconWidth:["all-spacing-9","all-spacing-10","all-spacing-10"],$width:["all-spacing-11","all-spacing-13","all-spacing-13"],$height:["all-spacing-11","all-spacing-13","all-spacing-13"],alt:i}),a.createElement(rt,{$flexDirection:"column",$gap:"space-between-s"},l&&a.createElement(Nt,{tag:"h2",$font:["heading-7"]},l),a.createElement(Nt,{tag:"h1",$font:["heading-5","heading-4"]},r),a.createElement(ii,{listItems:c})))};function mg(e){return"primary"===e?"bg-decorative4-main":"bg-decorative3-main"}var vg,yg,wg,xg,$g,Cg,Eg,kg,Mg,Sg,Ig,jg,Og,Ng,Dg,Tg,Rg,Ag=function(e){var n=e.children,t=e.phase,r=e.titleSlot,o=e.optionTitleSlot,i="primary"===t?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",c="primary"===t?"bg-decorative4-subdued":"bg-decorative3-subdued";return a.createElement(rt,{$flexDirection:"column",$width:["100%","all-spacing-22","all-spacing-23"],$background:i},r&&a.createElement(rt,{$flexDirection:"column",$gap:["space-between-m","space-between-m2","space-between-m2"],$mb:"space-between-m2"},r,a.createElement(ji,{hrColor:"white",$height:"all-spacing-1"})),a.createElement(rt,{$justifyContent:"center",$background:"bg-primary",$ba:"border-solid-m",$borderRadius:"border-radius-l",$pa:"inner-padding-xl",$borderColor:c},a.createElement(rt,{$pv:"inner-padding-xl",$flexDirection:"column",$alignItems:"center",$gap:"space-between-l"},o,a.createElement(rt,{$gap:"space-between-s",$flexWrap:"wrap",$justifyContent:"center"},n))))},zg=function(e){return void 0===e&&(e=[]),Array.from(new Set(null==e?void 0:e.map((function(e){return e.contentguidanceLabel}))))},Lg=function(e){var n=e.isOpen,t=e.onAccept,r=e.onDecline,o=e.contentGuidance,i=e.supervisionLevel,c=void 0===i?null:i,l=e.acceptText,s=void 0===l?"I understand, continue":l,d=e.declineText,u=void 0===d?"Take me back to lessons":d;return a.createElement(Ps,{isOpen:n,modalFlexProps:{"aria-label":"Content guidance modal"},footerSlot:a.createElement(rt,{$alignItems:"center",$flexDirection:"column",$justifyContent:"center",$pv:"inner-padding-xl",$rowGap:"space-between-m"},a.createElement(no,{$font:"heading-7",onClick:t,"data-testid":"acceptButton"},s),a.createElement(to,{$font:"heading-7",iconName:"arrow-left",onClick:r,"data-testid":"declineButton"},u)),hideCloseButton:!0},a.createElement(Fs,{iconName:"warning",iconOverride:{$colorFilter:"amber"},title:"Content guidance"},a.createElement(rt,{$flexDirection:"column",$rowGap:"space-between-m2"},zg(o).map((function(e,n){return a.createElement(Nt,{key:n,$font:["heading-light-7","heading-light-7","heading-light-6"],$textAlign:"center",tag:"h2"},e)})),c&&a.createElement(Nt,{$font:["heading-light-7","heading-light-7","heading-light-6"],$textAlign:"center",tag:"h2"},c))))},Bg=function(e){var n=e.children;e.index,e.title;var t=e.unavailable;e.disabled;var r=I(e,["children","index","title","unavailable","disabled"]),o=e.disabled||e.unavailable;return a.createElement(rt,S({$borderRadius:"border-radius-m",$pa:"inner-padding-xl",$flexDirection:"column",$gap:"space-between-m",$background:t?"bg-neutral":"bg-primary"},r),a.createElement(rt,{$alignItems:"center",$gap:"space-between-m2"},a.createElement(rt,null,a.createElement(nt,{$font:["heading-5","heading-4"],$color:e.unavailable?"text-subdued":"text-primary",$textDecoration:"none"},e.index)),a.createElement(nt,{$font:["heading-6","heading-5"],$color:o?"text-subdued":"text-primary"},e.title)),a.createElement(nr,{$gridTemplateColumns:["repeat(1,1fr)","repeat(2, 1fr)"],$cg:"space-between-xs",$rg:"space-between-xs"},n))},Zg=e(nt)(vg||(vg=D([""],[""]))),Pg=e(rt)(wg||(wg=D(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return e.$disabled&&"cursor: not-allowed"}),(function(e){return!e.$disabled&&n(yg||(yg=D(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n }\n "],["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n }\n "])),z("bg-decorative1-subdued"),Zg,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"))})),Fg=function(e){e.lessonSectionName,e.progress;var n=e.disabled,t=e.href,r=e.unavailable,o=e.onClick,i=e.numberOfLessons,c=I(e,["lessonSectionName","progress","disabled","href","unavailable","onClick","numberOfLessons"]),l=n||r;return a.createElement(Pg,S({as:l?"div":"a",$flexGrow:1,$background:r?"bg-neutral":"bg-primary",$disabled:l,$color:"text-primary",href:l?void 0:t,onClick:l?void 0:o},c),a.createElement(qs,{fill:r?"border-neutral-lighter":"black",stroke:r?"border-neutral-lighter":"black",strokeWidth:"border-solid-s"},a.createElement(rt,{$flexDirection:"column",$gap:"all-spacing-2"},a.createElement(Zg,{$font:["heading-7","heading-6"],$color:l?"text-subdued":"text-primary"},e.title),a.createElement(rt,{$alignItems:"center",$gap:"space-between-sssx"},!e.unavailable&&a.createElement(a.Fragment,null,a.createElement(Zg,{$font:"heading-light-7",$color:l?"text-subdued":"text-primary"},i," lessons"),a.createElement(Uo,{iconName:"chevron-right",$width:"all-spacing-7",$height:"all-spacing-7",$background:"transparent",$colorFilter:l?"icon-disabled":"icon-inverted"})),e.unavailable&&a.createElement(Zg,{$font:"heading-7",$color:l?"text-subdued":"text-primary"},"Unavailable")))))},qg=e(Qt)(xg||(xg=D([""],[""]))),Wg=e(ho)($g||($g=D(["\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + "," {\n filter: ",";\n }\n\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n &:hover:not(:disabled) {\n background: ",";\n }\n"],["\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + "," {\n filter: ",";\n }\n\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n &:hover:not(:disabled) {\n background: ",";\n }\n"])),qg,(function(e){return e.keepIconColor?"none":at("white")}),un("border-solid-l"),z("border-primary"),un("border-solid-l"),z("text-disabled"),z("bg-primary")),Hg=e(rt)(Cg||(Cg=D(["\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ",";\n color: ",";\n }\n"],["\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ",";\n color: ",";\n }\n"])),Fo,z("bg-neutral"),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),z("black"),z("white")),_g=function(e){var n=e.id,t=e.value,r=e.disabled,o=e.innerRef,i=e.displayValue,c=e.icon,l=I(e,["id","value","disabled","innerRef","displayValue","icon"]),s=u(null),d=null!=o?o:s;return a.createElement(rt,{$minHeight:"all-spacing-8",$position:"relative"},a.createElement(Hg,{$borderRadius:"border-radius-s",$borderColor:"border-neutral-lighter",$ba:"border-solid-s",$background:"white",onClick:function(e){var t;e.target.id!==n&&(null===(t=d.current)||void 0===t||t.click())},$ph:"inner-padding-s",$pv:"inner-padding-ssx",$gap:"space-between-sssx"},a.createElement(Wg,S({id:n,value:t,disabled:r,ref:d},l)),c&&a.createElement(qg,{alt:"",iconName:c}),a.createElement(Fo,{pointerEvents:"none",htmlFor:n,$font:"heading-7",disabled:r},i)))},Gg=e.nav(Eg||(Eg=D(["\n outline: none;\n"],["\n outline: none;\n"]))),Vg=e(Zi)(kg||(kg=D(["\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ",";\n color: ",";\n text-align: center;\n line-height: 32px;\n margin-right: ",";\n text-decoration: none;\n }\n &:hover::before {\n background-color: ",";\n box-shadow: ",";\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow: ",",\n ",";\n text-decoration: none;\n }\n &:active {\n color: ",";\n }\n &:active::before {\n box-shadow: ",",\n ",";\n background-color: ",";\n }\n"],["\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ",";\n color: ",";\n text-align: center;\n line-height: 32px;\n margin-right: ",";\n text-decoration: none;\n }\n &:hover::before {\n background-color: ",";\n box-shadow: ",";\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow: ",",\n ",";\n text-decoration: none;\n }\n &:active {\n color: ",";\n }\n &:active::before {\n box-shadow: ",",\n ",";\n background-color: ",";\n }\n"])),z("black"),z("white"),ne("space-between-xs"),z("bg-btn-primary-hover"),Dn("drop-shadow-lemon"),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),z("black"),Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"),z("black")),Yg=e.ol(Mg||(Mg=D(["\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n"],["\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n"]))),Ug=e(zt)(Sg||(Sg=D(["\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ",";\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ",";\n }\n"],["\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ",";\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ",";\n }\n"])),ne("space-between-xs"),z("bg-btn-primary-hover")),Xg=function(e){var n=e.items,t=e.ariaLabel,r=e.title,o=e.anchorTarget,i=e.onClick,l=I(e,["items","ariaLabel","title","anchorTarget","onClick"]),s=O(c(null),2),d=s[0],u=s[1],p=function(e){e.key&&"Tab"!==e.key&&u(e.currentTarget.hash)};return a.createElement(Gg,S({"aria-label":t},l),o&&a.createElement(Wr,{id:o}),r&&a.createElement(nt,{$mb:"space-between-m"},a.createElement(ot,{$font:"heading-light-7"},r)),a.createElement(Yg,{role:"list"},n.map((function(e,n){return a.createElement(Ug,{$font:"heading-7",key:n},a.createElement(Vg,{onClick:i,href:e.href,"aria-current":e.href===d?"true":void 0,onKeyDown:p},e.title))}))))},Kg=n(Ig||(Ig=D(["\n ","\n"],["\n ","\n"])),He),Jg=function(e){return a.createElement(co,{element:"a",iconName:"chevron-right",href:e.href,isTrailingIcon:!0,$pt:["inner-padding-xs","inner-padding-none"]},e.isLegacy?"Curriculum download":"Full ".concat(e.phase," curriculum"))},Qg=e((function(e){var n=e.subject,t=e.isLegacy,r=e.phase,o=e.href,i=I(e,["subject","isLegacy","phase","href"]),c=n.slice(0,1).toUpperCase()+n.slice(1).toLowerCase(),l=t?"Resources made during the pandemic to support remote teaching.":"Brand-new teaching resources, thoughtfully crafted by teachers for classroom needs.";return a.createElement(rt,S({$gap:"space-between-sssx",$alignItems:["flex-start","center"],$justifyContent:"space-between",$flexDirection:["column","row"]},i),a.createElement(rt,{$gap:"space-between-ssx",$flexDirection:"column"},a.createElement(rt,{$gap:"space-between-ssx"},a.createElement(Nt,{$font:"heading-4",tag:"h4"},t?"Units released in 2020-22":"".concat(c," units")),!t&&a.createElement(Ni,null)),a.createElement(It,{$font:"body-2"},l)),a.createElement(Jg,{isLegacy:t,phase:r,href:o}))}))(jg||(jg=D(["\n ","\n"],["\n ","\n"])),Kg),eb=n(Og||(Og=D([""],[""]))),nb=e((function(e){var n=e.isLegacy,t=e.showHeader,r=e.unitCards,o=e.curriculumHref,i=e.phase,c=e.subject,l=I(e,["isLegacy","showHeader","unitCards","curriculumHref","phase","subject"]);return a.createElement.apply(a,N([rt,S({$gap:"space-between-s",$alignItems:"center"},l,{$background:n?"bg-neutral":"bg-decorative3-very-subdued",$flexDirection:"column",$pa:"inner-padding-m",$borderRadius:"border-radius-m"}),t&&a.createElement(Qg,{isLegacy:n,href:o,phase:i,subject:c,$width:"100%"})],O(r),!1))}))(Ng||(Ng=D(["\n ","\n"],["\n ","\n"])),eb),tb=n(Dg||(Dg=D([""],[""]))),rb=e((function(e){var n,t=e.childSubjects,r=e.tiers,o=e.getTierSubjectValues,i=O(c(t&&t[0]?null===(n=t[0])||void 0===n?void 0:n.subjectSlug:null),2),l=i[0],s=i[1],d=O(c("foundation"),2),u=d[0],p=d[1];return a.createElement(rt,{$flexDirection:"column",$gap:"space-between-m"},a.createElement(Nt,{$font:"heading-4",tag:"h4"},"Download"),t&&a.createElement(so,{label:"Choose subject for KS4 units",name:"childSubjectRadio",onChange:function(e){var n=e.currentTarget.value;s(n)},$flexDirection:"column",$gap:"space-between-s",defaultValue:l||"combined-science","data-testid":"child-subject-selector"},t.map((function(e){var n=e.subject,t=e.subjectSlug;return a.createElement(bo,{id:t,label:n,value:t,"data-testid":"child-subject-radio-button",key:t})}))),r&&a.createElement(so,{"data-testid":"tier-selector",label:"Choose learning tier for KS4 units",name:"tierRadio",onChange:function(e){var n=e.currentTarget.value;p(n)},$flexDirection:"column",$gap:"space-between-s",defaultValue:u},r.map((function(e){var n=e.tier,t=e.tierSlug;return a.createElement(bo,{id:t,label:n,value:t,"data-testid":"tier-radio-button",key:t})}))),a.createElement(no,{iconName:"arrow-right",isTrailingIcon:!0,onClick:function(){o(u,l)}},"Next"))}))(Tg||(Tg=D(["\n ","\n"],["\n ","\n"])),tb),ob=function(e){var n=e.showPromoTag,t=I(e,["showPromoTag"]);return a.createElement(nt,{$width:"fit-content",$height:"fit-content",$position:"relative"},a.createElement(Mi,S({},t)),n&&a.createElement(nt,{$position:"absolute",$top:["all-spacing-0","all-spacing-2"],$left:["all-spacing-0","all-spacing-2"]},a.createElement(Ni,null)))},ib=e(no)(Rg||(Rg=D(["\n pointer-events: none;\n"],["\n pointer-events: none;\n"]))),ab=function(e){var n=e.href,t=e.isCurrent,r=void 0!==t&&t,o=e.shallow,i=void 0===o||o,c=e.children;return r?a.createElement(ib,{element:"span","aria-current":"page"},c):a.createElement(to,{element:M,href:n,shallow:i,isTrailingIcon:!0},c)},cb=function(e){var n=e.ariaLabel,t=e.navItems;return a.createElement("nav",{"aria-label":n},a.createElement(rt,{as:"ul",$flexDirection:["row"],$gap:"space-between-m",$mh:"space-between-none",$mv:"space-between-none",$ph:"inner-padding-none"},t.map((function(e,n){var t=e.href,r=e.isCurrent,o=e.children;return a.createElement(zt,{$listStyle:"none",key:n},a.createElement(ab,{href:t,isCurrent:r},o))}))))},lb=function(e){var n=e.state,t=e.innerMaxWidth,r=e.onOpenSettings,o=e.onHide,i=e.onAccept,c=e.onReject,l=e.isFixed,s=void 0!==l&&l,d=e.zIndex;return a.createElement(nt,{$background:"bg-neutral",$bt:"border-solid-s",$borderColor:"border-neutral",$position:s?"fixed":void 0,$bottom:s?"all-spacing-0":void 0,$right:s?"all-spacing-0":void 0,$left:s?"all-spacing-0":void 0,$zIndex:d||(s?"always-on-top":void 0),$color:"text-primary","data-testid":"cookie-banner"},a.createElement(nt,{$maxWidth:t,$mh:"auto"},a.createElement(rt,{$alignItems:["flex-start","flex-start","center"],$flexDirection:["column","column","row"],$mh:["space-between-s","space-between-m","space-between-xl"],$pv:"inner-padding-xl",$gap:["space-between-m","space-between-m","space-between-m2"]},function(){switch(n){case"accepted":case"rejected":return a.createElement(a.Fragment,null,a.createElement(nt,{$font:["body-3","body-2","heading-light-7"]},"You've"," ",a.createElement(ot,{as:"strong",$font:["body-3-bold","body-2-bold","heading-7"]},n)," ","additional cookies. You can"," ",a.createElement(Fi,{element:"button",onClick:r},"change your cookie settings")," ","at any time."),a.createElement(rt,{$justifyContent:"flex-end",$flexGrow:1},a.createElement(ro,{onClick:o},"Hide this message")));default:return a.createElement(a.Fragment,null,a.createElement(nt,{$font:["body-3","body-2"]},a.createElement(ot,{as:"strong",$font:["body-3-bold","body-2-bold"]},"This site uses cookies to store information on your computer.")," ","Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used."),a.createElement(rt,{$gap:["space-between-xs","space-between-m2"],$justifyContent:"flex-end",$flexDirection:["column","row"],$flexWrap:["wrap","wrap","nowrap"],$flexGrow:1},a.createElement(rt,{$font:"heading-7",$whiteSpace:"nowrap",$alignItems:"center"},a.createElement(Fi,{element:"button",type:"button",onClick:c,"data-testid":"cookie-banner-reject"},"Reject non-essential cookies")),a.createElement(ro,{onClick:r},"Cookie settings"),a.createElement(no,{onClick:i,"data-testid":"cookie-banner-accept"},"Accept all cookies")))}}())))},sb=function(e){var n=e.isOpen,t=e.onClose,r=e.onReject,o=e.onConfirm,i=e.onAccept,c=e.policyURL,l=e.policies,s=e.initialConsents;return a.createElement(Rs,{isOpen:n,onClose:t,footerSlot:a.createElement(zs,null,a.createElement(ro,{onClick:r,width:"100%"},"Reject non-essential cookies"),a.createElement(no,{type:"submit",form:"cookie-settings-form",width:"100%"},"Confirm my choices"))},a.createElement(As,null,a.createElement(Nt,{tag:"h2",$font:"heading-5",$mb:"space-between-s"},"This site uses cookies to store information on your computer."),a.createElement(Dt,{$mb:"space-between-m"},"Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used."),a.createElement(Dt,{$mb:"space-between-l"},"For more information, view our"," ",a.createElement(Pi,{href:c,target:"_blank"},"cookie policy"),"."),a.createElement(nt,{$mb:"space-between-xl"},a.createElement(no,{onClick:i,width:"all-spacing-18"},"Allow all")),a.createElement(nt,{$ph:"inner-padding-xs",as:"form",id:"cookie-settings-form",onSubmit:function(e){var n,t,r,i;e.preventDefault();var a=new FormData(e.currentTarget),c={};try{for(var s=j(l),d=s.next();!d.done;d=s.next()){var u=d.value;c[u.id]=u.strictlyNecessary?"granted":"denied"}}catch(e){n={error:e}}finally{try{d&&!d.done&&(t=s.return)&&t.call(s)}finally{if(n)throw n.error}}try{for(var p=j(a.getAll("consent")),f=p.next();!f.done;f=p.next()){c[f.value.toString()]="granted"}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}o(c)}},a.createElement(Nt,{tag:"h3",$font:"heading-6",$mb:"space-between-m"},"Manage consent preferences"),l.map((function(e){return a.createElement(Ji,{key:e.id,header:a.createElement(ot,{id:"cookie-settings-".concat(e.id,"-label")},e.label),id:"cookies-settings-".concat(e.id,"-accordion"),headerAfterSlot:a.createElement(Ho,{id:"cookies-settings-".concat(e.id,"-checkbox"),name:"consent",displayValue:"",value:e.id,defaultChecked:e.strictlyNecessary||"granted"===s[e.id],disabled:e.strictlyNecessary,"aria-labelledby":"cookie-settings-".concat(e.id,"-label")})},a.createElement(Dt,{$mb:"space-between-m2"},e.description),a.createElement(nt,{as:"dl",$pl:"inner-padding-m"},e.parties.length>0&&a.createElement(a.Fragment,null,a.createElement("dt",null,"Who do we share data with?"),a.createElement(nt,{as:"dd",$font:"body-3-bold",$mb:"space-between-s"},a.createElement(Tt,{$reset:!0},e.parties.map((function(e,n,t){return a.createElement(nt,{as:"li",key:n,$display:"inline"},a.createElement(Fi,{href:e.policyURL,target:"_blank",rel:"external nofollow"},e.name),n<t.length-1&&", ")}))))),a.createElement("dt",null,"Does this policy need cookies to work?"),a.createElement(nt,{as:"dd",$font:"body-3-bold"},"Yes.")))})))))};function db(e,n){switch(n.type){case"confirmModalConsents":case"acceptModalConsents":case"rejectModalConsents":return S(S({},e),{isSettingsModalOpen:!1,bannerState:"hidden"});case"acceptBannerConsents":return S(S({},e),{bannerState:"accepted"});case"rejectBannerConsents":return S(S({},e),{bannerState:"rejected"});case"openModal":return S(S({},e),{isSettingsModalOpen:!0});case"closeModal":return S(S({},e),{isSettingsModalOpen:!1});case"showBanner":return S(S({},e),{bannerState:"initial"});case"hideBanner":return S(S({},e),{bannerState:"hidden"});default:return e}}function ub(){return{isSettingsModalOpen:!1,bannerState:"hidden"}}var pb=s({isSettingsModalOpen:!1,policies:[],currentConsents:{},showBanner:function(){},hideBanner:function(){},openSettings:function(){},closeSettings:function(){},rejectModalConsents:function(){},confirmModalConsents:function(){},acceptModalConsents:function(){},rejectBannerConsents:function(){},acceptBannerConsents:function(){},bannerState:"initial"});function fb(){var e=d(pb);return{showBanner:e.showBanner,openSettings:e.openSettings}}var gb,bb,hb,mb=function(e){var n=e.children,t=e.currentConsents,r=e.policies,o=e.onConsentChange,i=O(v(db,null,ub),2),c=i[0],s=i[1],d=l((function(){return s({type:"closeModal"})}),[]),u=l((function(){o(Object.fromEntries(r.map((function(e){return[e.id,"granted"]}))))}),[o,r]),p=l((function(){o(Object.fromEntries(r.map((function(e){return[e.id,e.strictlyNecessary?"granted":"denied"]}))))}),[o,r]),f=l((function(){return s({type:"hideBanner"})}),[]),g=l((function(){return s({type:"showBanner"})}),[]),b=l((function(){return s({type:"openModal"})}),[]),h=l((function(){u(),s({type:"acceptBannerConsents"})}),[u]),m=l((function(){p(),s({type:"rejectBannerConsents"})}),[p]),y=l((function(){u(),s({type:"acceptModalConsents"})}),[u,f]),w=l((function(){p(),s({type:"rejectModalConsents"})}),[p,f]),x=l((function(e){o(e),s({type:"confirmModalConsents"})}),[o,f]);return a.createElement(pb.Provider,{value:{isSettingsModalOpen:c.isSettingsModalOpen,bannerState:c.bannerState,policies:r,currentConsents:t,showBanner:g,hideBanner:f,openSettings:b,closeSettings:d,confirmModalConsents:x,acceptBannerConsents:h,rejectBannerConsents:m,acceptModalConsents:y,rejectModalConsents:w}},n)},vb=function(e){var n=e.policyURL,t=e.isFixed,r=e.innerMaxWidth,o=e.zIndex,i=d(pb),c=i.policies,l=i.acceptModalConsents,s=i.rejectModalConsents,u=i.confirmModalConsents,p=i.hideBanner,f=i.openSettings,g=i.closeSettings,b=i.currentConsents,h=i.isSettingsModalOpen,m=i.acceptBannerConsents,v=i.rejectBannerConsents,y=i.bannerState;return a.createElement(a.Fragment,null,"hidden"!==y&&a.createElement(lb,{onHide:p,onAccept:m,onReject:v,onOpenSettings:f,state:y,isFixed:t,innerMaxWidth:r,zIndex:o}),a.createElement(sb,{policyURL:n,policies:c,isOpen:h,onClose:g,onReject:s,onConfirm:u,onAccept:l,initialConsents:b}))},yb=e(St)(gb||(gb=D(["\n width: 50px;\n height: 50px;\n margin-right: 12px;\n img {\n border-radius: 50%;\n }\n"],["\n width: 50px;\n height: 50px;\n margin-right: 12px;\n img {\n border-radius: 50%;\n }\n"]))),wb=n(bb||(bb=D([""],[""]))),xb=e((function(e){var n=e.headingTitle,t=e.breadcrumbs,r=e.authorName,o=e.authorTitle,i=e.subHeadingText,c=e.heroImageSrc,l=e.authorImageSrc,s=e.heroImageAlt,d=e.authorImageAlt;return a.createElement(nt,{$width:"100%",$background:"bg-decorative3-main",$overflowX:"hidden"},a.createElement(cr,null,a.createElement(rt,{$minWidth:"100%",$flexDirection:["column-reverse","column-reverse","row"],$alignItems:["center",null],$minHeight:"all-spacing-20",$background:"bg-decorative3-main",$zIndex:"neutral",$justifyContent:["space-between"],"data-testid":"oak-header-component"},a.createElement(rt,{$alignSelf:"flex-start",$height:"100%",$flexDirection:"column"},a.createElement(nt,{$display:["none","none","block"],$pv:"inner-padding-xl"},t),a.createElement(rt,{$flexDirection:"column",$maxWidth:"all-spacing-22",$minHeight:["all-spacing-0","all-spacing-0","all-spacing-20"],$mb:["space-between-none","space-between-l","space-between-none"],$justifyContent:"center"},a.createElement(Nt,{tag:"h2",$color:"grey80",$font:["heading-4","heading-3"],$mb:"space-between-m"},n),a.createElement(rt,{$mb:"space-between-m",$flexDirection:"row",$alignItems:"center"},a.createElement(yb,{alt:d,src:l,$zIndex:"in-front"}),a.createElement(nt,null,a.createElement(Dt,{$font:"heading-7"},r),a.createElement(Dt,{$font:"body-3"},o))),a.createElement(Dt,{$font:"body-1",$mb:["space-between-l","space-between-none"]},i))),a.createElement(rt,{$position:"relative",$minHeight:["all-spacing-18","all-spacing-21","all-spacing-21"],$alignItems:"center",$justifyContent:"center",$mb:["space-between-none","space-between-m2","space-between-none"]},a.createElement(St,{$transform:"rotate(-2.025deg)",src:c,width:100,$minHeight:["all-spacing-19","all-spacing-20","all-spacing-20"],$minWidth:["all-spacing-19","all-spacing-22","all-spacing-21"],alt:s,$zIndex:"in-front"}),a.createElement(rt,{$position:"absolute",$top:"all-spacing-0",$bottom:"all-spacing-0",$width:["all-spacing-20","all-spacing-23","all-spacing-23"]},a.createElement(Qt,{iconName:"loopdown",alt:"loopdown ui-graphic",$position:"absolute",$height:"100%",$width:"100%"}))),a.createElement(rt,{$alignSelf:"flex-start",$ml:"space-between-m",$pt:"inner-padding-xl",$pb:[null,"inner-padding-xl"],$display:["block","block","none"]},t))))}))(hb||(hb=D(["\n ","\n"],["\n ","\n"])),wb);export{Ot as HeadingTagComponent,Ji as OakAccordion,Wr as OakAnchorTarget,oi as OakBackLink,nt as OakBox,ii as OakBulletList,Di as OakCardHeader,qs as OakCardWithHandDrawnBorder,Ho as OakCheckBox,Lr as OakCloudinaryConfigProvider,Br as OakCloudinaryImage,zi as OakCollapsibleContent,lb as OakCookieBanner,vb as OakCookieConsent,mb as OakCookieConsentProvider,sb as OakCookieSettingsModal,rb as OakDownloadsJourneyChildSubjectTierSelector,Wi as OakDragAndDropInstructions,Vi as OakDraggable,Xi as OakDraggableFeedback,Ui as OakDroppable,Hr as OakFieldError,rt as OakFlex,it as OakForm,qr as OakGlobalStyle,nr as OakGrid,ir as OakGridArea,ki as OakHandDrawnCard,Mi as OakHandDrawnCardWithIcon,ji as OakHandDrawnHR,xb as OakHeaderHero,Nt as OakHeading,Xs as OakHintButton,Qt as OakIcon,St as OakImage,rg as OakInfo,tg as OakInfoButton,Zr as OakKbd,zt as OakLI,Bt as OakLabel,ed as OakLessonBottomNav,Ti as OakLessonInfoCard,ld as OakLessonLayout,wd as OakLessonNavItem,Ed as OakLessonReviewItem,td as OakLessonTopNav,Od as OakLessonVideoTranscript,Pi as OakLink,Ur as OakLoadingSpinner,cr as OakMaxWidth,Rs as OakModal,As as OakModalBody,Ps as OakModalCenter,Fs as OakModalCenterBody,zs as OakModalFooter,Rt as OakOL,Dt as OakP,no as OakPrimaryButton,to as OakPrimaryInvertedButton,cb as OakPrimaryNav,ab as OakPrimaryNavItem,Ni as OakPromoTag,Lg as OakPupilJourneyContentGuidance,hg as OakPupilJourneyHeader,Gf as OakPupilJourneyLayout,bg as OakPupilJourneyList,fg as OakPupilJourneyListCounter,dg as OakPupilJourneyListItem,Fg as OakPupilJourneyOptionalityButton,Bg as OakPupilJourneyOptionalityItem,gg as OakPupilJourneyPreviousLessons,Ag as OakPupilJourneyProgrammeOptions,pg as OakPupilJourneySubjectButton,ug as OakPupilJourneyYearButton,_s as OakQuizCheckBox,id as OakQuizCounter,Js as OakQuizFeedback,Ks as OakQuizHint,Wf as OakQuizMatch,Tf as OakQuizOrder,Ys as OakQuizRadioButton,Gs as OakQuizTextInput,bo as OakRadioButton,so as OakRadioGroup,Uo as OakRoundIcon,_g as OakSearchFilterCheckBox,ro as OakSecondaryButton,Fi as OakSecondaryLink,ot as OakSpan,Ri as OakStaticMessageCard,ob as OakSubjectIcon,co as OakTertiaryButton,Xg as OakTertiaryOLNav,Yo as OakTextInput,ar as OakThemeProvider,ei as OakTooltip,It as OakTypography,Tt as OakUL,nb as OakUnitsContainer,Qg as OakUnitsHeader,Vt as isValidIconName,J as oakAllSpacingTokens,dn as oakBorderRadiusTokens,sn as oakBorderWidthTokens,et as oakBoxCss,T as oakColorTokens,di as oakDefaultTheme,Nn as oakDropShadowTokens,Pn as oakFontSizeTokens,Fn as oakFontTokens,jt as oakHeadingTags,Gt as oakIconNames,Q as oakInnerPaddingTokens,Rn as oakOpacityTokens,ee as oakSpaceBetweenTokens,Bn as oakTransitionTokens,A as oakUiRoleTokens,zg as removedGuidanceDuplicates,fb as useCookieConsent};
|
|
14
|
+
*/function za(){if(Sa)return Ma;Sa=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return Ma=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var s in i=Object(arguments[l]))n.call(i,s)&&(c[s]=i[s]);if(e){a=e(i);for(var d=0;d<a.length;d++)t.call(i,a[d])&&(c[a[d]]=i[a[d]])}}return c},Ma}function La(){return ja?Ia:(ja=1,Ia=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Ba=Aa();ya.exports=function(){if(Ta)return Da;Ta=1;var e=Aa(),n=za(),t=wa(),r=La(),o=function(){if(Na)return Oa;Na=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=wa(),t={},r=La();e=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function o(o,i,a,c,l){if("production"!==process.env.NODE_ENV)for(var s in o)if(r(o,s)){var d;try{if("function"!=typeof o[s]){var u=Error((c||"React class")+": "+a+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[s](i,s,c,a,null,n)}catch(e){d=e}if(!d||d instanceof Error||e((c||"React class")+": type specification of "+a+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},Oa=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}),Da=function(c,l){var s="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:b(a),arrayOf:function(e){return b((function(n,r,o,i,a){if("function"!=typeof e)return new g("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=n[r];if(!Array.isArray(c))return new g("Invalid "+i+" `"+a+"` of type `"+y(c)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<c.length;l++){var s=e(c,l,o,i,a+"["+l+"]",t);if(s instanceof Error)return s}return null}))},element:b((function(e,n,t,r,o){var i=e[n];return c(i)?null:new g("Invalid "+r+" `"+o+"` of type `"+y(i)+"` supplied to `"+t+"`, expected a single ReactElement.")})),elementType:b((function(n,t,r,o,i){var a=n[t];return e.isValidElementType(a)?null:new g("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return b((function(n,t,r,o,i){if(!(n[t]instanceof e)){var a=e.name||u;return new g("Invalid "+o+" `"+i+"` of type `"+((c=n[t]).constructor&&c.constructor.name?c.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var c;return null}))},node:b((function(e,n,t,r,o){return v(e[n])?null:new g("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return b((function(n,o,i,a,c){if("function"!=typeof e)return new g("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=n[o],s=y(l);if("object"!==s)return new g("Invalid "+a+" `"+c+"` of type `"+s+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,a,c+"."+d,t);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?b((function(n,t,r,o,i){for(var a=n[t],c=0;c<e.length;c++)if(f(a,e[c]))return null;var l=JSON.stringify(e,(function(e,n){return"symbol"===w(n)?String(n):n}));return new g("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+n+"."),a}return b((function(n,o,i,a,c){for(var l=[],s=0;s<e.length;s++){var d=(0,e[s])(n,o,i,a,c,t);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new g("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return b((function(n,r,o,i,a){var c=n[r],l=y(c);if("object"!==l)return new g("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var d=e[s];if("function"!=typeof d)return m(o,i,a,s,w(d));var u=d(c,s,o,i,a+"."+s,t);if(u)return u}return null}))},exact:function(e){return b((function(o,i,a,c,l){var s=o[i],d=y(s);if("object"!==d)return new g("Invalid "+c+" `"+l+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=n({},o[i],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return m(a,c,l,p,w(f));if(!f)return new g("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var b=f(s,p,a,c,l+"."+p,t);if(b)return b}return null}))}};function f(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function g(e,n){this.message=e,this.data=n&&"object"==typeof n?n:{},this.stack=""}function b(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,a,c,s,d,p,f){if(s=s||u,p=p||c,f!==t){if(l){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=s+":"+c;!n[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==a[c]?o?null===a[c]?new g("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `null`."):new g("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(a,c,s,d,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function h(e){return b((function(n,t,r,o,i,a){var c=n[t];return y(c)!==e?new g("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,n,t,r,o){return new g((e||"React class")+": "+n+" type `"+t+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||c(e))return!0;var n=function(e){var n=e&&(s&&e[s]||e[d]);if("function"==typeof n)return n}(e);if(!n)return!1;var t,r=n.call(e);if(n!==e.entries){for(;!(t=r.next()).done;)if(!v(t.value))return!1}else for(;!(t=r.next()).done;){var o=t.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function y(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function w(e){if(null==e)return""+e;var n=y(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function x(e){var n=w(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return g.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Da}()(Ba.isElement,!0)}else ya.exports=function(){if(va)return ma;va=1;var e=wa();function n(){}function t(){}return t.resetWarningCache=n,ma=function(){function r(n,t,r,o,i,a){if(a!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i}}()();var Za=ya.exports,Pa=ga(Za),Fa="data-focus-lock",qa="data-focus-lock-disabled",Wa={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};"production"===process.env.NODE_ENV||Pa.node;var Ha=aa({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),_a=aa(),Ga=aa(),Va=ca({async:!0,ssr:"undefined"!=typeof document}),Ya=s(void 0),Ua=[],Xa=i.forwardRef((function(e,n){var t,r=i.useState(),o=r[0],a=r[1],c=i.useRef(),l=i.useRef(!1),s=i.useRef(null),d=i.useState({})[1],u=e.children,p=e.disabled,f=void 0!==p&&p,g=e.noFocusGuards,b=void 0!==g&&g,h=e.persistentFocus,m=void 0!==h&&h,v=e.crossFrame,y=void 0===v||v,w=e.autoFocus,x=void 0===w||w,$=e.allowTextSelection,C=e.group,E=e.className,k=e.whiteList,M=e.hasPositiveIndices,S=e.shards,I=void 0===S?Ua:S,j=e.as,O=void 0===j?"div":j,N=e.lockProps,D=void 0===N?{}:N,T=e.sideCar,R=e.returnFocus,A=void 0!==R&&R,z=e.focusOptions,L=e.onActivation,B=e.onDeactivation,Z=i.useState({})[0],P=i.useCallback((function(e){var n=e.captureFocusRestore;if(!s.current){var t,r=null==(t=document)?void 0:t.activeElement;s.current=r,r!==document.body&&(s.current=n(r))}c.current&&L&&L(c.current),l.current=!0,d()}),[L]),F=i.useCallback((function(){l.current=!1,B&&B(c.current),d()}),[B]),q=i.useCallback((function(e){var n=s.current;if(n){var t=("function"==typeof n?n():n)||document.body,r="function"==typeof A?A(t):A;if(r){var o="object"==typeof r?r:void 0;s.current=null,e?Promise.resolve().then((function(){return t.focus(o)})):t.focus(o)}}}),[A]),W=i.useCallback((function(e){l.current&&Ha.useMedium(e)}),[]),H=_a.useMedium,_=i.useCallback((function(e){c.current!==e&&(c.current=e,a(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==$&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),i.useEffect((function(){c.current||"string"==typeof O||console.error("FocusLock: could not obtain ref to internal node")}),[]));var G=fa(((t={})[qa]=f&&"disabled",t[Fa]=C,t),D),V=!0!==b,Y=V&&"tail"!==b,U=ra([n,_]),X=i.useMemo((function(){return{observed:c,shards:I,enabled:!f,active:l.current}}),[f,l.current,I,o]);return i.createElement(i.Fragment,null,V&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:Wa}),M?i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:Wa}):null],!f&&i.createElement(T,{id:Z,sideCar:Va,observed:o,disabled:f,persistentFocus:m,crossFrame:y,autoFocus:x,whiteList:k,shards:I,onActivation:P,onDeactivation:F,returnFocus:q,focusOptions:z}),i.createElement(O,fa({ref:U},G,{className:E,onBlur:H,onFocus:W}),i.createElement(Ya.Provider,{value:X},u)),Y&&i.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:Wa}))}));Xa.propTypes="production"!==process.env.NODE_ENV?{children:Za.node,disabled:Za.bool,returnFocus:Za.oneOfType([Za.bool,Za.object,Za.func]),focusOptions:Za.object,noFocusGuards:Za.bool,hasPositiveIndices:Za.bool,allowTextSelection:Za.bool,autoFocus:Za.bool,persistentFocus:Za.bool,crossFrame:Za.bool,group:Za.string,className:Za.string,whiteList:Za.func,shards:Za.arrayOf(Za.any),as:Za.oneOfType([Za.string,Za.func,Za.object]),lockProps:Za.object,onActivation:Za.func,onDeactivation:Za.func,sideCar:Za.any.isRequired}:{};var Ka=Xa;function Ja(e){setTimeout(e,1)}var Qa=function(e){return e&&"current"in e?e.current:e},ec=ca(),nc="data-focus-on-hidden",tc={preventScroll:!0},rc=i.forwardRef((function(e,n){var t=i.useState(!1),r=t[0],o=t[1],a=e.children,c=e.autoFocus,l=e.shards,s=e.crossFrame,d=e.enabled,u=void 0===d||d,p=e.scrollLock,f=void 0===p||p,g=e.focusLock,b=void 0===g||g,h=e.returnFocus,m=void 0===h||h,v=e.inert,y=e.allowPinchZoom,w=e.sideCar,x=e.className,$=e.shouldIgnore,C=e.preventScrollOnFocus,E=e.style,k=e.as,M=e.gapMode,j=I(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),O=w,N=r.onActivation,D=r.onDeactivation,T=I(r,["onActivation","onDeactivation"]),R=S(S({},T),{as:k,style:E,sideCar:w,shards:l,allowPinchZoom:y,gapMode:M,inert:v,enabled:u&&f});return i.createElement(i.Fragment,null,i.createElement(Ka,{ref:n,sideCar:w,disabled:!(r&&u&&b),returnFocus:m,autoFocus:c,shards:l,crossFrame:s,onActivation:N,onDeactivation:D,className:x,whiteList:$,lockProps:R,focusOptions:C?tc:void 0,as:pa},a),u&&i.createElement(O,S({},j,{sideCar:ec,setLockProps:o,shards:l})))}));function oc(e,n){return oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},oc(e,n)}function ic(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,oc(e,n)}function ac(e){return ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ac(e)}function cc(e){var n=function(e,n){if("object"!==ac(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===ac(n)?n:String(n)}var lc=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},sc=function(e){return Array.isArray(e)?e:[e]},dc=function(e){return Array.isArray(e)?e[0]:e},uc=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},pc=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},fc=function(e,n){return!e||pc(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!(!n||!n.getPropertyValue||"none"!==n.getPropertyValue("display")&&"hidden"!==n.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&n(uc(e))},gc=function(e,n){var t=e.get(n);if(void 0!==t)return t;var r=fc(n,gc.bind(void 0,e));return e.set(n,r),r},bc=function(e,n){var t=e.get(n);if(void 0!==t)return t;var r=function(e,n){return!(e&&!pc(e))||!!yc(e)&&n(uc(e))}(n,bc.bind(void 0,e));return e.set(n,r),r},hc=function(e){return e.dataset},mc=function(e){return"INPUT"===e.tagName},vc=function(e){return mc(e)&&"radio"===e.type},yc=function(e){var n=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(n)},wc=function(e){var n;return Boolean(e&&(null===(n=hc(e))||void 0===n?void 0:n.focusGuard))},xc=function(e){return!wc(e)},$c=function(e){return Boolean(e)},Cc=function(e,n){var t=Math.max(0,e.tabIndex),r=Math.max(0,n.tabIndex),o=t-r,i=e.index-n.index;if(o){if(!t)return 1;if(!r)return-1}return o||i},Ec=function(e,n,t){return lc(e).map((function(e,n){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:n,tabIndex:t&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!n||e.tabIndex>=0})).sort(Cc)},kc=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Mc="".concat(kc,", [data-focus-guard]"),Sc=function(e,n){return lc((e.shadowRoot||e).children).reduce((function(e,t){return e.concat(t.matches(n?Mc:kc)?[t]:[],Sc(t))}),[])},Ic=function(e,n){return e.reduce((function(e,t){var r,o=Sc(t,n),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,n){var t;return e instanceof HTMLIFrameElement&&(null===(t=e.contentDocument)||void 0===t?void 0:t.body)?Ic([e.contentDocument.body],n):[e]}(e,n)})));return e.concat(i,t.parentNode?lc(t.parentNode.querySelectorAll(kc)).filter((function(e){return e===t})):[])}),[])},jc=function(e,n){return lc(e).filter((function(e){return gc(n,e)})).filter((function(e){return function(e){return!((mc(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},Oc=function(e,n){return void 0===n&&(n=new Map),lc(e).filter((function(e){return bc(n,e)}))},Nc=function(e,n,t){return Ec(jc(Ic(e,t),n),!0,t)},Dc=function(e,n){return Ec(jc(Ic(e),n),!1)},Tc=function(e,n){return jc((t=e.querySelectorAll("[".concat("data-autofocus-inside","]")),lc(t).map((function(e){return Ic([e])})).reduce((function(e,n){return e.concat(n)}),[])),n);var t},Rc=function(e,n){return e.shadowRoot?Rc(e.shadowRoot,n):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,n))||lc(e.children).some((function(e){var t;if(e instanceof HTMLIFrameElement){var r=null===(t=e.contentDocument)||void 0===t?void 0:t.body;return!!r&&Rc(r,n)}return Rc(e,n)}))},Ac=function(e){return e.parentNode?Ac(e.parentNode):e},zc=function(e){return sc(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute(Fa);return e.push.apply(e,t?function(e){for(var n=new Set,t=e.length,r=0;r<t;r+=1)for(var o=r+1;o<t;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(r)}return e.filter((function(e,t){return!n.has(t)}))}(lc(Ac(n).querySelectorAll("[".concat(Fa,'="').concat(t,'"]:not([').concat(qa,'="disabled"])')))):[n]),e}),[])},Lc=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var n=e.activeElement;return n.shadowRoot?Lc(n.shadowRoot):n instanceof HTMLIFrameElement&&function(e){try{return e()}catch(e){return}}((function(){return n.contentWindow.document}))?Lc(n.contentWindow.document):n}},Bc=function(e,n){return void 0===n&&(n=Lc(dc(e).ownerDocument)),!(!n||n.dataset&&n.dataset.focusGuard)&&zc(e).some((function(e){return Rc(e,n)||function(e,n){return Boolean(lc(e.querySelectorAll("iframe")).some((function(e){return function(e,n){return e===n}(e,n)})))}(e,n)}))},Zc=function(e,n){return vc(e)&&e.name?function(e,n){return n.filter(vc).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,n):e},Pc=function(e){return e[0]&&e.length>1?Zc(e[0],e):e[0]},Fc=function(e,n){return e.indexOf(Zc(n,e))},qc="NEW_FOCUS",Wc=function(e,n,t,r,o){var i=e.length,a=e[0],c=e[i-1],l=wc(r);if(!(r&&e.indexOf(r)>=0)){var s=void 0!==r?t.indexOf(r):-1,d=o?t.indexOf(o):s,u=o?e.indexOf(o):-1;if(-1===s)return-1!==u?u:qc;if(-1===u)return qc;var p,f,g=s-d,b=t.indexOf(a),h=t.indexOf(c),m=(p=t,f=new Set,p.forEach((function(e){return f.add(Zc(e,p))})),p.filter((function(e){return f.has(e)}))),v=(void 0!==r?m.indexOf(r):-1)-(o?m.indexOf(o):s);if(!g&&u>=0)return u;if(0===n.length)return u;var y=Fc(e,n[0]),w=Fc(e,n[n.length-1]);return s<=b&&l&&Math.abs(g)>1?w:s>=h&&l&&Math.abs(g)>1?y:g&&Math.abs(v)>1?u:s<=b?w:s>h?y:g?Math.abs(g)>1?u:(i+u+g)%i:void 0}},Hc=function(e,n,t){var r,o=e.map((function(e){return e.node})),i=Oc(o.filter((r=t,function(e){var n,t=null===(n=hc(e))||void 0===n?void 0:n.autofocus;return e.autofocus||void 0!==t&&"false"!==t||r.indexOf(e)>=0})));return i&&i.length?Pc(i):Pc(Oc(n))},_c=function(e,n){return void 0===n&&(n=[]),n.push(e),e.parentNode&&_c(e.parentNode.host||e.parentNode,n),n},Gc=function(e,n){for(var t=_c(e),r=_c(n),o=0;o<t.length;o+=1){var i=t[o];if(r.indexOf(i)>=0)return i}return!1},Vc=function(e,n,t){var r=sc(e),o=sc(n),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Gc(a||e,e)||a,t.filter(Boolean).forEach((function(e){var n=Gc(i,e);n&&(a=!a||Rc(n,a)?n:Gc(n,a))}))})),a},Yc=function(e,n){return e.reduce((function(e,t){return e.concat(Tc(t,n))}),[])},Uc=function(e,n){var t=Lc(sc(e).length>0?document:dc(e).ownerDocument),r=zc(e).filter(xc),o=Vc(t||e,e,r),i=new Map,a=Dc(r,i),c=a.filter((function(e){var n=e.node;return xc(n)}));if(c[0]){var l,s,d,u=Dc([o],i).map((function(e){return e.node})),p=(l=u,s=c,d=new Map,s.forEach((function(e){return d.set(e.node,e)})),l.map((function(e){return d.get(e)})).filter($c)),f=p.map((function(e){return e.node})),g=p.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),b=Wc(f,g,u,t,n);if(b===qc){var h=Hc(a,g,Yc(r,i))||Hc(a,f,Yc(r,i));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===b?b:p[b]}},Xc=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Kc=0,Jc=!1,Qc=function(e,n,t){void 0===t&&(t={});var r=Uc(e,n);if(!Jc&&r){if(Kc>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Jc=!0,void setTimeout((function(){Jc=!1}),1);Kc++,Xc(r.node,t.focusOptions),Kc--}};function el(e){if(!e)return null;var n=e?new WeakRef(e):null;return function(){return(null==n?void 0:n.deref())||null}}var nl=function(e,n,t){void 0===n&&(n={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(n),o=function(e,n,t){if(!e||!n)return console.error("no element or scope given"),{};var r=sc(n);if(r.every((function(n){return!Rc(n,e)})))return console.error("Active element is not contained in the scope"),{};var o=t?Nc(r,new Map):Dc(r,new Map),i=o.findIndex((function(n){return n.node===e}));return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=t(o,r.cycle);i&&Xc(i.node,r.focusOptions)}},tl=function(e,n,t){var r,o,i,a,c=(o=e,i=null===(r=n.onlyTabbable)||void 0===r||r,{first:(a=i?Nc(sc(o),new Map):Dc(sc(o),new Map))[0],last:a[a.length-1]})[t];c&&Xc(c.node,n.focusOptions)},rl=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var n=Lc(e);return!!n&&lc(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return Rc(e,n)}))}()},ol=null,il=null,al=null,cl=!1,ll=function(){return!0};function sl(e,n,t,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=t)!==n);o&&(o.node.tabIndex=0)}var dl=function e(n,t,r){return t&&(t.host===n&&(!t.activeElement||r.contains(t.activeElement))||t.parentNode&&e(n,t.parentNode,r))},ul=function(){var e,n,t,r,o,i,a=!1;if(ol){var c=ol,l=c.observed,s=c.persistentFocus,d=c.autoFocus,u=c.shards,p=c.crossFrame,f=c.focusOptions,g=l||al&&al.portaledElement,b=document&&document.activeElement;if(g){var h=[g].concat(u.map(Qa).filter(Boolean));if(b&&!function(e){return(ol.whiteList||ll)(e)}(b)||(s||(p?Boolean(cl):"meanwhile"===cl)||!rl()||!il&&d)&&(g&&!(Bc(h)||b&&function(e,n){return n.some((function(n){return dl(e,n,n)}))}(b,h)||(i=b,al&&al.portaledElement===i))&&(document&&!il&&b&&!d?(b.blur&&b.blur(),document.body.focus()):(a=Qc(h,il,{focusOptions:f}),al={})),cl=!1,il=document&&document.activeElement),document&&b!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var m=document&&document.activeElement,v=(n=zc(e=h).filter(xc),t=Vc(e,e,n),r=Ec(Ic([t],!0),!0,!0),o=Ic(n,!1),r.map((function(e){var n=e.node;return{node:n,index:e.index,lockItem:o.indexOf(n)>=0,guard:wc(n)}}))),y=v.map((function(e){return e.node})).indexOf(m);y>-1&&(v.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),sl(y,v.length,1,v),sl(y,-1,-1,v))}}}return a},pl=function(e){ul()&&e&&(e.stopPropagation(),e.preventDefault())},fl=function(){return Ja(ul)};"production"===process.env.NODE_ENV||Pa.node.isRequired;var gl=function(){cl="just",Ja((function(){cl="meanwhile"}))};var bl={moveFocusInside:Qc,focusInside:Bc,focusNextElement:function(e,n){void 0===n&&(n={}),nl(e,n,(function(e,n){var t=e.next,r=e.first;return t||n&&r}))},focusPrevElement:function(e,n){void 0===n&&(n={}),nl(e,n,(function(e,n){var t=e.prev,r=e.last;return t||n&&r}))},focusFirstElement:function(e,n){void 0===n&&(n={}),tl(e,n,"first")},focusLastElement:function(e,n){void 0===n&&(n={}),tl(e,n,"last")},captureFocusRestore:function(e){var n=function(e){if(!e)return null;for(var n=[],t=e;t&&t!==document.body;)n.push({current:el(t),parent:el(t.parentElement),left:el(t.previousElementSibling),right:el(t.nextElementSibling)}),t=t.parentElement;return{element:el(e),stack:n,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var n,t,r,o,i;if(e)for(var a=e.stack,c=e.ownerDocument,l=new Map,s=0,d=a;s<d.length;s++){var u=d[s],p=null===(n=u.parent)||void 0===n?void 0:n.call(u);if(p&&c.contains(p)){for(var f=null===(t=u.left)||void 0===t?void 0:t.call(u),g=u.current(),b=p.contains(g)?g:void 0,h=null===(r=u.right)||void 0===r?void 0:r.call(u),m=Nc([p],l),v=null!==(i=null!==(o=null!=b?b:null==f?void 0:f.nextElementSibling)&&void 0!==o?o:h)&&void 0!==i?i:f;v;){for(var y=0,w=m;y<w.length;y++){var x=w[y];if(null==v?void 0:v.contains(x.node))return x.node}v=v.nextElementSibling}if(m.length)return m[0].node}}}(n)}}};Ha.assignSyncMedium((function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(al={observerNode:t,portaledElement:n})})),_a.assignMedium(fl),Ga.assignMedium((function(e){return e(bl)}));var hl=function(e,n){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof n)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(t){if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw new Error("Expected WrappedComponent to be a React component.");var r,o=[];function i(){r=e(o.map((function(e){return e.props}))),n(r)}var c=function(e){function n(){return e.apply(this,arguments)||this}ic(n,e),n.peek=function(){return r};var c=n.prototype;return c.componentDidMount=function(){o.push(this),i()},c.componentDidUpdate=function(){i()},c.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},c.render=function(){return a.createElement(t,this.props)},n}(g);return function(e,n,t){(n=cc(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t}(c,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(t)+")"),c}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!ol&&(document.addEventListener("focusin",pl),document.addEventListener("focusout",fl),window.addEventListener("blur",gl));var t=ol,r=t&&n&&n.id===t.id;ol=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(il=null,r&&t.observed===n.observed||n.onActivation(bl),ul(),Ja(ul)):(document.removeEventListener("focusin",pl),document.removeEventListener("focusout",fl),window.removeEventListener("blur",gl),il=null)}))((function(){return null}));sa(Va,hl);function ml(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return n&&e.setAttribute("nonce",n),e}var vl=function(){var e=0,n=null;return{add:function(t){var r;0==e&&(n=ml())&&(!function(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}(n,t),r=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},yl=function(){var e,n=(e=vl(),function(n,t){i.useEffect((function(){return e.add(n),function(){e.remove()}}),[n&&t])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},wl={left:0,top:0,right:0,gap:0},xl=function(e){return parseInt(e||"",10)||0},$l=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return wl;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[xl(t),xl(r),xl(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},Cl=yl(),El="data-scroll-locked",kl=function(e,n,t,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===t&&(t="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(El,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===t&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Qi," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(ea," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Qi," .").concat(Qi," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ea," .").concat(ea," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(El,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},Ml=function(){var e=parseInt(document.body.getAttribute(El)||"0",10);return isFinite(e)?e:0},Sl=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;i.useEffect((function(){return document.body.setAttribute(El,(Ml()+1).toString()),function(){var e=Ml()-1;e<=0?document.body.removeAttribute(El):document.body.setAttribute(El,e.toString())}}),[]);var a=i.useMemo((function(){return $l(o)}),[o]);return i.createElement(Cl,{styles:kl(a,!n,o,t?"":"!important")})},Il=!1;if("undefined"!=typeof window)try{var jl=Object.defineProperty({},"passive",{get:function(){return Il=!0,!0}});window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch(e){Il=!1}var Ol=!!Il&&{passive:!1},Nl=function(e,n){var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===t[n])},Dl=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Tl(e,r)){var o=Rl(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},Tl=function(e,n){return"v"===e?function(e){return Nl(e,"overflowY")}(n):function(e){return Nl(e,"overflowX")}(n)},Rl=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},Al=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zl=function(e){return[e.deltaX,e.deltaY]},Ll=function(e){return e&&"current"in e?e.current:e},Bl=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Zl=0,Pl=[];function Fl(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}sa(da,(function(e){var n=i.useRef([]),t=i.useRef([0,0]),r=i.useRef(),o=i.useState(Zl++)[0],a=i.useState(yl)[0],c=i.useRef(e);i.useEffect((function(){c.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var n=N([e.lockRef.current],(e.shards||[]).map(Ll),!0).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),n.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback((function(e,n){if("touches"in e&&2===e.touches.length)return!c.current.allowPinchZoom;var o,i=Al(e),a=t.current,l="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],d=e.target,u=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=Dl(u,d);if(!p)return!0;if(p?o=u:(o="v"===u?"h":"v",p=Dl(u,d)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||s)&&(r.current=o),!o)return!0;var f=r.current||o;return function(e,n,t,r,o){var i=function(e,n){return"h"===e&&"rtl"===n?-1:1}(e,window.getComputedStyle(n).direction),a=i*r,c=t.target,l=n.contains(c),s=!1,d=a>0,u=0,p=0;do{var f=Rl(e,c),g=f[0],b=f[1]-f[2]-i*g;(g||b)&&Tl(e,c)&&(u+=b,p+=g),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!l&&c!==document.body||l&&(n.contains(c)||n===c));return(d&&(o&&Math.abs(u)<1||!o&&a>u)||!d&&(o&&Math.abs(p)<1||!o&&-a>p))&&(s=!0),s}(f,n,e,"h"===f?l:s,!0)}),[]),s=i.useCallback((function(e){var t=e;if(Pl.length&&Pl[Pl.length-1]===a){var r="deltaY"in t?zl(t):Al(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(c.current.shards||[]).map(Ll).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?l(t,i[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),d=i.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Fl(r)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),u=i.useCallback((function(e){t.current=Al(e),r.current=void 0}),[]),p=i.useCallback((function(n){d(n.type,zl(n),n.target,l(n,e.lockRef.current))}),[]),f=i.useCallback((function(n){d(n.type,Al(n),n.target,l(n,e.lockRef.current))}),[]);i.useEffect((function(){return Pl.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Ol),document.addEventListener("touchmove",s,Ol),document.addEventListener("touchstart",u,Ol),function(){Pl=Pl.filter((function(e){return e!==a})),document.removeEventListener("wheel",s,Ol),document.removeEventListener("touchmove",s,Ol),document.removeEventListener("touchstart",u,Ol)}}),[]);var g=e.removeScrollBar,b=e.inert;return i.createElement(i.Fragment,null,b?i.createElement(a,{styles:Bl(o)}):null,g?i.createElement(Sl,{gapMode:e.gapMode}):null)}));var ql=new WeakMap,Wl=new WeakMap,Hl={},_l=0,Gl=function(e){return e&&(e.host||Gl(e.parentNode))},Vl=function(e,n,t,r){var o=function(e,n){return n.map((function(n){if(e.contains(n))return n;var t=Gl(n);return t&&e.contains(t)?t:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(n,Array.isArray(e)?e:[e]);Hl[t]||(Hl[t]=new WeakMap);var i=Hl[t],a=[],c=new Set,l=new Set(o),s=function(e){e&&!c.has(e)&&(c.add(e),s(e.parentNode))};o.forEach(s);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))d(e);else{var n=e.getAttribute(r),o=null!==n&&"false"!==n,l=(ql.get(e)||0)+1,s=(i.get(e)||0)+1;ql.set(e,l),i.set(e,s),a.push(e),1===l&&o&&Wl.set(e,!0),1===s&&e.setAttribute(t,"true"),o||e.setAttribute(r,"true")}}))};return d(n),c.clear(),_l++,function(){a.forEach((function(e){var n=ql.get(e)-1,o=i.get(e)-1;ql.set(e,n),i.set(e,o),n||(Wl.has(e)||e.removeAttribute(r),Wl.delete(e)),o||e.removeAttribute(t)})),--_l||(ql=new WeakMap,ql=new WeakMap,Wl=new WeakMap,Hl={})}},Yl=function(e,n,t){void 0===t&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=n||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vl(r,o,t,"aria-hidden")):function(){return null}},Ul=yl(),Xl="\n ["+nc+"] {\n pointer-events: none !important;\n }\n",Kl=function(){return i.createElement(Ul,{styles:Xl})},Jl=function(e){return"current"in e?e.current:e};var Ql=sa(ec,(function(e){var n=e.setLockProps,t=e.onEscapeKey,r=e.onClickOutside,o=e.shards,a=e.onActivation,l=e.onDeactivation,s=e.noIsolation,d=c(void 0),p=d[0],f=d[1],g=u(null),h=u(0);return i.useEffect((function(){var e=function(e){e.defaultPrevented||"Escape"!==e.code&&"Escape"!==e.key&&27!==e.keyCode||!t||t(e)},n=function(e){e.defaultPrevented||e.target===g.current||e instanceof MouseEvent&&0!==e.button||o&&o.map(Jl).some((function(n){return n&&n.contains(e.target)||n===e.target}))||r&&r(e)},i=function(e){n(e),h.current=e.touches.length},a=function(e){h.current=e.touches.length};if(p)return document.addEventListener("keydown",e),document.addEventListener("mousedown",n),document.addEventListener("touchstart",i),document.addEventListener("touchend",a),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",i),document.removeEventListener("touchend",a)}}),[p,r,t]),b((function(){if(p)return a&&a(p),function(){l&&l()}}),[!!p]),b((function(){var e=function(){return null},t=!1;return n({onMouseDown:function(e){g.current=e.target},onTouchStart:function(e){g.current=e.target},onActivation:function(n){s||(e=Yl(function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),o=0;for(n=0;n<t;n++)for(var i=arguments[n],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}([n],(o||[]).map(Jl)),document.body,nc)),f((function(){return n}))},onDeactivation:function(){e(),t||f(null)}}),function(){t=!0,n(!1)}}),[]),i.createElement(Kl,null)})),es=function(e){return i.createElement(Ql,S({},e))},ns=i.forwardRef((function(e,n){return i.createElement(rc,S({},e,{ref:n,sideCar:es}))}));var ts=!1,rs="production"!==process.env.NODE_ENV?Pa.oneOfType([Pa.number,Pa.shape({enter:Pa.number,exit:Pa.number,appear:Pa.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Pa.oneOfType([Pa.string,Pa.shape({enter:Pa.string,exit:Pa.string,active:Pa.string}),Pa.shape({enter:Pa.string,enterDone:Pa.string,enterActive:Pa.string,exit:Pa.string,exitDone:Pa.string,exitActive:Pa.string})]);var os=a.createContext(null),is="unmounted",as="exited",cs="entering",ls="entered",ss="exiting",ds=function(e){function n(n,t){var r;r=e.call(this,n,t)||this;var o,i=t&&!t.isMounting?n.enter:n.appear;return r.appearStatus=null,n.in?i?(o=as,r.appearStatus=cs):o=ls:o=n.unmountOnExit||n.mountOnEnter?is:as,r.state={status:o},r.nextCallback=null,r}ic(n,e),n.getDerivedStateFromProps=function(e,n){return e.in&&n.status===is?{status:as}:null};var t=n.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(e){var n=null;if(e!==this.props){var t=this.state.status;this.props.in?t!==cs&&t!==ls&&(n=cs):t!==cs&&t!==ls||(n=ss)}this.updateStatus(!1,n)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var e,n,t,r=this.props.timeout;return e=n=t=r,null!=r&&"number"!=typeof r&&(e=r.exit,n=r.enter,t=void 0!==r.appear?r.appear:n),{exit:e,enter:n,appear:t}},t.updateStatus=function(e,n){if(void 0===e&&(e=!1),null!==n)if(this.cancelNextCallback(),n===cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var t=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);t&&function(e){e.scrollTop}(t)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===as&&this.setState({status:is})},t.performEnter=function(e){var n=this,t=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[C.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!e&&!t||ts?this.safeSetState({status:ls},(function(){n.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:cs},(function(){n.props.onEntering(i,a),n.onTransitionEnd(l,(function(){n.safeSetState({status:ls},(function(){n.props.onEntered(i,a)}))}))})))},t.performExit=function(){var e=this,n=this.props.exit,t=this.getTimeouts(),r=this.props.nodeRef?void 0:C.findDOMNode(this);n&&!ts?(this.props.onExit(r),this.safeSetState({status:ss},(function(){e.props.onExiting(r),e.onTransitionEnd(t.exit,(function(){e.safeSetState({status:as},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:as},(function(){e.props.onExited(r)}))},t.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},t.setNextCallback=function(e){var n=this,t=!0;return this.nextCallback=function(r){t&&(t=!1,n.nextCallback=null,e(r))},this.nextCallback.cancel=function(){t=!1},this.nextCallback},t.onTransitionEnd=function(e,n){this.setNextCallback(n);var t=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(t&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[t,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},t.render=function(){var e=this.state.status;if(e===is)return null;var n=this.props,t=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a.createElement(os.Provider,{value:null},"function"==typeof t?t(e,r):a.cloneElement(a.Children.only(t),r))},n}(a.Component);function us(){}ds.contextType=os,ds.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Pa.shape({current:"undefined"==typeof Element?Pa.any:function(e,n,t,r,o,i){var a=e[n];return Pa.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,n,t,r,o,i)}}),children:Pa.oneOfType([Pa.func.isRequired,Pa.element.isRequired]).isRequired,in:Pa.bool,mountOnEnter:Pa.bool,unmountOnExit:Pa.bool,appear:Pa.bool,enter:Pa.bool,exit:Pa.bool,timeout:function(e){var n=rs;e.addEndListener||(n=n.isRequired);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.apply(void 0,[e].concat(r))},addEndListener:Pa.func,onEnter:Pa.func,onEntering:Pa.func,onEntered:Pa.func,onExit:Pa.func,onExiting:Pa.func,onExited:Pa.func}:{},ds.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:us,onEntering:us,onEntered:us,onExit:us,onExiting:us,onExited:us},ds.UNMOUNTED=is,ds.EXITED=as,ds.ENTERING=cs,ds.ENTERED=ls,ds.EXITING=ss;var ps,fs,gs,bs,hs,ms,vs,ys,ws,xs,$s,Cs,Es,ks,Ms,Ss,Is,js,Os=ds,Ns=e(nt)(ps||(ps=D(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),(function(e){switch(e.$state){case"entered":case"entering":return An("semi-transparent");default:return An("transparent")}})),Ds=e(rt)(fs||(fs=D(["\n max-width: calc(100vw - ",");\n transform: ",";\n"],["\n max-width: calc(100vw - ",");\n transform: ",";\n"])),ne("inner-padding-l"),(function(e){switch(e.$state){case"entered":case"entering":return"translateX(0)";default:return"translateX(-100%)"}})),Ts="https://".concat(process.env.NEXT_PUBLIC_OAK_ASSETS_HOST,"/").concat(process.env.NEXT_PUBLIC_OAK_ASSETS_PATH,"/logo-mark.svg"),Rs=function(e){var n=e.children,t=e.footerSlot,r=e.domContainer,o=e.isOpen,i=e.onClose,l=I(e,["children","footerSlot","domContainer","isOpen","onClose"]),s=O(c(null),2),d=s[0],p=s[1],g=O(c(!1),2),h=g[0],m=g[1],v=u(null);f((function(){if(d){var e=new IntersectionObserver((function(e){m(!e.some((function(e){return e.isIntersecting})))}),{root:d.parentElement});return e.observe(d),function(){e.disconnect()}}}),[d]);var y=O(c(!1),2),w=y[0],x=y[1];return b((function(){x(!0)}),[]),w?E(a.createElement(Os,{in:o,nodeRef:v,addEndListener:function(e){var n;null===(n=v.current)||void 0===n||n.addEventListener("transitionend",e)},timeout:500,mountOnEnter:!0,unmountOnExit:!0},(function(e){return a.createElement(ns,{onEscapeKey:i,returnFocus:!0,autoFocus:!0},a.createElement(Ns,{$position:"fixed",$inset:"all-spacing-0",$zIndex:"modal-dialog",$background:"black",$opacity:"semi-transparent",$state:e,$transition:"standard-ease"}),a.createElement(Ds,S({ref:v,$background:"bg-primary",$position:"fixed",$left:"all-spacing-0",$top:"all-spacing-0",$bottom:"all-spacing-0",$width:["all-spacing-22"],$zIndex:"modal-dialog",$flexDirection:"column",$transition:"standard-ease",$color:"text-primary",role:"dialog",$state:e},l),a.createElement(rt,{$ma:"space-between-s",$justifyContent:"space-between",$alignItems:"center"},a.createElement(St,{src:Ts,$height:"all-spacing-8",$width:"all-spacing-7",alt:""}),a.createElement(ao,{onClick:i,"aria-label":"Close",defaultIconBackground:"transparent",defaultIconColor:"black",defaultTextColor:"transparent",hoverTextColor:"transparent",disabledTextColor:"transparent",hoverIconBackground:"black",hoverIconColor:"white",disabledIconBackground:"transparent",iconBackgroundSize:"all-spacing-6",iconSize:"all-spacing-6",iconName:"cross"})),a.createElement("div",{style:{display:"contents"},"data-autofocus-inside":!0},a.createElement(rt,{$flexGrow:1,$flexDirection:"column",$overflow:"auto",$bt:"border-solid-s",$borderColor:h?"border-neutral-lighter":"transparent"},a.createElement("div",{ref:p}),n),t)))})),null!=r?r:document.body):null},As=function(e){return a.createElement(nt,{$mv:"space-between-m",$ph:"inner-padding-m"},e.children)},zs=function(e){return a.createElement(rt,S({},e,{$flexDirection:["column","row"],$bt:"border-solid-s",$borderColor:"border-neutral-lighter",$pa:"inner-padding-xl",$gap:["space-between-s","space-between-m"],$width:"100%"}))},Ls=e(ns)(gs||(gs=D(["\n ","\n"],["\n ","\n"])),et),Bs=e(nt)(bs||(bs=D(["\n backdrop-filter: blur(3px);\n"],["\n backdrop-filter: blur(3px);\n"]))),Zs=e(rt)(hs||(hs=D(["\n opacity: ",";\n transition: opacity 0s;\n"],["\n opacity: ",";\n transition: opacity 0s;\n"])),(function(e){switch(e.$state){case"entered":case"entering":return"1";default:return"0"}})),Ps=function(e){var n=e.children,t=e.domContainer,r=e.isOpen,o=e.onClose,i=void 0===o?function(){}:o,s=e.disableBackdropClick,d=void 0!==s&&s,p=e.disableEscapeKey,g=void 0!==p&&p,h=e.hideCloseButton,m=void 0!==h&&h,v=e.modalFlexProps,y=e.backdropFlexProps,w=e.footerSlot,x=O(c({top:!1,bottom:!1}),2),$=x[0],C=x[1],k=u(null),M=u(null),I=l((function(){var e=M.current;e&&(e.scrollHeight>e.clientHeight&&(M.current.tabIndex=0),C({top:e.scrollTop>0,bottom:e.scrollHeight>e.clientHeight}))}),[]);f((function(){var e;return I(),null===(e=M.current)||void 0===e||e.addEventListener("scroll",I),function(){var e;null===(e=M.current)||void 0===e||e.removeEventListener("scroll",I)}}),[r]),b((function(){return window.addEventListener("resize",I),function(){window.removeEventListener("resize",I)}}));var j="undefined"!=typeof window,N=a.createElement(Os,{in:r,nodeRef:k,addEndListener:function(e){var n;null===(n=k.current)||void 0===n||n.addEventListener("transitionend",e)},timeout:0,mountOnEnter:!0,unmountOnExit:!0},(function(e){return a.createElement(Zs,{ref:k,$state:e,$position:"fixed",$inset:"all-spacing-0",$justifyContent:"center",$alignItems:"center",$zIndex:"modal-dialog"},a.createElement(Bs,S({$position:"fixed",$inset:"all-spacing-0",$zIndex:"behind",$background:"blackSemiTransparent","data-testid":"backdrop"},y)),a.createElement(rt,{$alignItems:"center",$justifyContent:"center",$maxWidth:"all-spacing-23",$width:"100%",$pa:"inner-padding-l"},a.createElement(Ls,{onEscapeKey:function(){return!g&&i()},onClickOutside:function(){return!d&&i()},returnFocus:!0,autoFocus:!0,$width:"100%"},a.createElement(rt,S({$flexDirection:"column",$background:"white",$borderRadius:"border-radius-l",$ba:"border-solid-xl",$borderColor:"border-decorative1-stronger",$width:"100%",$position:"relative",role:"alertdialog",style:{maxHeight:"calc(100vh - ".concat(ne("inner-padding-xl5")," - ").concat(ne("inner-padding-xl5"),")")}},v),a.createElement(nt,{$minHeight:"inner-padding-xl5",$position:"relative"},!m&&a.createElement(nt,{$position:"absolute",$top:"all-spacing-3",$right:"all-spacing-3"},a.createElement(ao,{onClick:i,"aria-label":"Close Modal",defaultIconBackground:"transparent",defaultIconColor:"black",defaultTextColor:"transparent",hoverTextColor:"transparent",disabledTextColor:"transparent",hoverIconBackground:"black",hoverIconColor:"white",disabledIconBackground:"transparent",iconBackgroundSize:"all-spacing-7",iconSize:"all-spacing-7",iconName:"cross","data-testid":"close-button"}))),a.createElement("div",{style:{display:"contents"},"data-autofocus-inside":!0},a.createElement(rt,{ref:M,"data-testid":"modal-main-content",$overflow:"auto",$flexDirection:"column",$ph:"inner-padding-xl5",$bt:$.top?"border-solid-s":"border-solid-none",$bb:$.bottom?"border-solid-s":"border-solid-none",$borderColor:"border-neutral-lighter"},n),w)))))}));return t&&j?E(N,t):N},Fs=function(e){var n=e.children,t=e.iconName,r=void 0===t?"info":t,o=e.title,i=e.headingOverride,c=e.iconOverride;return a.createElement(rt,{$pb:"inner-padding-xl",$width:"100%",$flexDirection:"column",$alignItems:"center",$justifyContent:"center"},a.createElement(Qt,S({iconName:r,$width:"all-spacing-15",$height:"all-spacing-15",$mb:"space-between-m2","data-testid":"icon"},c)),a.createElement(Nt,S({$font:["heading-5","heading-5","heading-4"],"data-testid":"OakHeading-id",tag:"h1",$mb:"space-between-m2",$textAlign:"center"},i),o),n)},qs=function(e){var n=e.$pa,t=void 0===n?"inner-padding-xl":n,r=e.fill,o=void 0===r?"black":r,i=e.stroke,c=e.$width,l=void 0===c?"fit-content":c,s=I(e,["$pa","fill","stroke","$width"]);return a.createElement(si,S({$pa:t,$width:l,backgroundElement:a.createElement(Ei,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1280 130",preserveAspectRatio:"none",$fill:o,$stroke:i},a.createElement("path",{d:"M1279.41 10.776C1279 10.0177 1279.5 7.99963 1277.5 8.65073C1277 8.65073 1275.53 8.70062 1276 9.41902C1276.56 23.5974 1276.34 113.092 1276.5 127.5C1279.56 128.617 0.908149 127.396 3.00021 126.907C0.314877 122.776 4.03063 33.3856 3.00021 28.4965C1.50142 21.2426 3.15634 15.9345 3.00021 9.88797C2.50062 2.40466 5.02719 2.69402 30.132 3.02328C65.2287 3.02328 92.6753 2.94346 121.902 3.02328C179.387 2.95344 224.944 3.04324 265.786 3.02328C337.634 3.14302 398.835 2.90355 455.258 3.04324C613.381 2.74391 948.86 2.91353 1106.55 2.8836C1140.74 2.77384 1210.34 2.98337 1265.54 2.8836C1265.92 2.77384 1272.26 3.18293 1271.91 2.48449C1272.69 2.02551 1272.54 1.09758 1272.79 0.508892C1269.63 -0.269372 1265.04 0.199582 1262.14 0.169649C1031.33 0.329293 652.911 0.109783 455.508 0.459004C362.396 0.508892 273.03 0.478959 185.725 0.488937C140.918 0.488937 80.5913 0.488937 37.501 0.468981C16.0808 -0.488882 9.05519 0.399137 2.62287 0.369204C0.249785 0.359226 1.74858 2.66408 1.34265 3.45233C-1.40389 6.89465 0.178862 11.9996 0.000150621 17.1218C-0.343323 26.9699 0.312234 116.849 0.0936605 129.88C5.37066 130.16 24.0119 129.88 25.1984 129.94C172.236 130.1 523.859 129.87 669.117 129.91C885.755 129.86 1045.25 129.79 1261.02 129.79C1260.7 129.332 1284.53 130.898 1279.22 128.723C1279.09 113.178 1279.09 26.7005 1279.41 10.776ZM1268.85 2.47451C1268.6 2.4346 1268.45 2.30489 1268.73 2.13526C1269.2 2.00555 1269.54 2.69402 1268.85 2.47451ZM1263.73 0.73838C1264.98 0.73838 1265.39 1.28716 1263.92 0.927957C1263.14 0.808225 1262.95 0.73838 1263.73 0.73838ZM1260.83 1.96564C1261.39 1.78604 1264.54 1.58649 1262.64 1.96564C1261.17 2.23504 1259.3 2.99335 1260.83 1.96564ZM1277 12.8015C1276.59 11.9633 1277 8.56953 1277.5 10.4996C1277.75 12.6349 1278.5 13.4996 1277 12.8015ZM1266.1 2.255C1269.04 2.46453 1264.57 2.54435 1265.64 2.29491C1265.64 2.17518 1265.64 2.13526 1266.1 2.255ZM1266.35 0.698469C1266.35 0.698469 1266.64 0.748358 1266.64 0.848136C1266.98 1.25722 1265.04 0.688492 1266.35 0.698469ZM1278.5 9.63853C1278.5 9.63853 1278.78 10.0376 1278.78 10.8359C1279.12 14.1285 1278 9.63853 1278.5 9.63853ZM1269.48 1.46676C1270.04 1.7162 1269.23 1.76609 1269.2 1.5366C1269.2 1.42684 1269.32 1.38693 1269.48 1.46676ZM1255.58 0.129738C1256.67 0.0598939 1257.77 0.019983 1258.02 0.059894C1259.83 0.159671 1251.05 0.309338 1255.58 0.129738ZM1197.41 2.32484C1198.75 2.29491 1198.72 2.62417 1197.41 2.62417C1196.1 2.62417 1196.07 2.30489 1197.41 2.32484ZM1168.5 2.10533C1168.84 2.01553 1171.77 1.91575 1172.09 2.10533C1172.52 2.14524 1167.81 2.30489 1168.5 2.10533ZM1112.35 0.20956C1116.57 0.269427 1110.51 0.239493 1110.32 0.20956C1110.6 0.20956 1111.54 0.20956 1112.35 0.20956ZM1109.76 0.878069C1111.1 0.878069 1111.07 1.03771 1109.76 1.03771C1108.45 1.03771 1108.42 0.888047 1109.76 0.878069ZM1088.5 1.04769C1089.34 0.688492 1094.59 0.498915 1091.15 0.967869C1087.72 1.34702 1086.72 1.41687 1088.5 1.04769ZM1084.38 0.139716C1086.91 0.179627 1086.28 0.179627 1083.91 0.159671C1081.47 0.139716 1081.82 0.11976 1084.38 0.139716ZM1071.92 2.67406C1071.45 2.69402 1071.17 2.69402 1070.45 2.67406C1067.51 2.59424 1073.54 2.6142 1071.92 2.67406ZM1069.67 2.31486C1070.2 2.28493 1073.32 2.24502 1071.79 2.37473C1071.45 2.4346 1067.26 2.38471 1069.67 2.31486ZM1063.42 1.19736C1064.14 1.0876 1065.49 1.52662 1063.71 1.58649C1061.99 1.76609 1060.02 1.24725 1063.42 1.19736ZM1046.69 0.73838C1046.84 0.658558 1047.56 0.528848 1048.22 0.528848C1052.09 0.379182 1045.59 1.13749 1046.69 0.73838ZM1026.52 2.58426C1027.27 2.55433 1028.51 2.58426 1029.33 2.6142C1032.2 2.67406 1025.39 2.64413 1026.52 2.58426ZM1010.84 2.56431C1013.71 2.58426 1009.62 2.63415 1009.28 2.58426C1009.28 2.57428 1009.84 2.56431 1010.84 2.56431ZM991.514 0.788269C992.7 0.908002 994.012 0.478959 995.323 0.927957C994.98 1.45678 985.799 0.708447 991.514 0.788269ZM968.001 2.10533C970.031 1.8958 970 2.10533 968.001 2.255C966.034 2.46453 966.034 2.255 968.001 2.10533ZM964.254 1.40689C966.378 1.81598 961.756 1.85589 961.069 1.90578C961.788 1.66631 963.88 1.60644 964.254 1.40689ZM958.009 2.22506C958.977 2.1652 959.508 2.1652 960.476 2.22506C963.224 2.30489 955.293 2.30489 958.009 2.22506ZM955.761 0.059894C958.852 0.0299607 954.106 0.159671 954.075 0.0798494C954.075 0.0698717 954.824 0.059894 955.761 0.059894ZM950.984 2.27495C951.452 2.30489 952.888 2.27495 953.451 2.49446C954.169 2.73393 946.737 2.6142 950.984 2.27495ZM937.744 2.60422C938.494 2.59424 939.68 2.60422 940.43 2.6142C944.364 2.64413 935.621 2.64413 937.744 2.60422ZM896.965 1.99558C899.713 2.15522 897.964 2.10533 896.965 2.28493C898.214 2.82373 893.124 1.96564 896.965 1.99558ZM872.984 1.94569C873.765 1.87584 874.67 1.806 875.045 1.87584C876.512 2.18515 868.644 2.51442 872.984 1.94569ZM864.741 2.4346H867.208C869.83 2.68404 859.932 2.42462 864.741 2.4346ZM850.471 2.5244C850.471 2.5244 853.999 2.31486 853.562 2.5244C853.562 2.55433 850.034 2.64413 850.471 2.5244ZM845.225 2.59424C845.225 2.66408 843.601 2.59424 843.445 2.59424H845.225ZM826.147 0.0798494C827.646 0.0598939 828.239 0.0598939 828.707 0.0798494C828.926 0.149694 820.62 0.159671 826.147 0.0798494ZM821.432 2.57429H823.93C825.647 2.6142 816.842 2.58426 821.432 2.57429ZM786.554 0.82818C786.804 0.82818 791.05 0.778291 791.113 0.848136C791.113 0.898024 786.429 0.848135 786.554 0.82818ZM703.558 2.56431C704.058 2.54435 707.555 2.50444 705.619 2.56431C705.119 2.57429 701.622 2.60422 703.558 2.56431ZM698.625 0.189605C700.529 0.149694 701.497 0.159671 701.497 0.20956C701.903 0.29936 695.127 0.239493 698.625 0.189605ZM531.322 2.69402H535.194C541.47 2.75388 527.294 2.72395 531.322 2.69402ZM520.862 2.71397C521.642 2.71397 522.829 2.71397 523.547 2.71397C525.67 2.74391 515.335 2.74391 520.862 2.71397ZM514.336 0.638603C517.052 0.60867 513.399 0.778291 513.336 0.688492C513.336 0.668536 513.805 0.648581 514.336 0.638603ZM486.702 2.62417C488.513 2.65411 485.921 2.66408 485.484 2.64413C484.297 2.6142 485.172 2.59424 486.702 2.62417ZM448.326 0.419093C448.514 0.419093 448.732 0.409115 448.951 0.409115C453.291 0.409115 444.517 0.488937 448.326 0.419093ZM447.265 2.75388C448.482 2.74391 449.482 2.74391 449.856 2.75388C449.482 2.77384 442.113 2.86364 447.265 2.75388ZM414.322 1.0876C415.009 1.0876 416.04 1.06765 416.633 1.0876C417.726 1.10756 411.481 1.15745 414.322 1.0876ZM403.925 2.67406C404.83 2.67406 406.079 2.72395 406.079 2.75388C405.954 2.77384 400.833 2.76386 403.925 2.67406ZM396.274 2.13526C396.274 2.13526 399.709 2.11531 399.397 2.13526C399.397 2.13526 395.869 2.17518 396.274 2.13526ZM394.214 1.58649C396.15 1.58649 396.306 1.64636 394.214 1.6264C392.246 1.59647 392.246 1.59647 394.214 1.58649ZM389.186 1.52662C389.686 1.50667 390.342 1.49669 390.841 1.49669C393.183 1.50667 388.343 1.57651 389.186 1.52662ZM381.536 2.75388C383.41 2.72395 384.315 2.72395 383.691 2.76386C383.285 2.81375 378.164 2.81375 381.536 2.75388ZM363.301 0.688492C367.329 0.758336 361.99 0.798247 361.833 0.688492C361.771 0.668536 362.052 0.668536 363.301 0.688492ZM322.584 1.84591C323.926 1.81598 323.895 1.92573 322.584 1.8958C321.272 1.88582 321.241 1.85589 322.584 1.84591ZM312.436 0.967869C312.436 0.967869 315.496 0.908002 315.152 0.967869C315.215 0.967869 312.061 1.02773 312.436 0.967869ZM301.132 1.84591C301.601 1.79602 304.348 1.79602 304.848 1.83593C305.223 1.83593 300.726 1.87584 301.132 1.84591ZM276.34 1.59647C276.496 1.57651 281.18 1.55656 281.336 1.59647C280.836 1.59647 276.402 1.65633 276.34 1.59647ZM275.903 2.73393C278.557 2.73393 279.431 2.76386 277.37 2.78382C275.028 2.82373 274.466 2.78382 275.903 2.73393ZM263.6 0.548803C266.91 0.528848 262.663 0.618647 261.976 0.578736C262.195 0.558781 262.913 0.548803 263.6 0.548803ZM224.507 0.468981C225.037 0.468981 225.662 0.468981 226.037 0.468981C226.567 0.508892 221.415 0.548803 224.507 0.468981ZM210.018 2.704C211.736 2.69402 211.642 2.78382 209.644 2.75388C207.864 2.75388 208.082 2.71397 210.018 2.704ZM196.311 1.10756C197.122 1.0876 198.059 1.07762 198.371 1.0876C197.56 1.14747 192.158 1.20733 196.311 1.10756ZM182.353 1.32707C183.696 1.30711 183.665 1.36698 182.353 1.37696C181.042 1.39691 181.01 1.32707 182.353 1.32707ZM175.39 0.349248C180.167 0.339271 172.018 0.409115 173.079 0.359226C173.079 0.359226 174.11 0.339271 175.39 0.349248ZM171.674 0.439048C172.018 0.42907 172.705 0.419093 173.204 0.419093C176.358 0.449026 170.925 0.508892 171.674 0.439048ZM167.771 1.76609C169.114 1.76609 169.988 1.78604 169.364 1.806C168.458 1.82595 165.46 1.76609 167.771 1.76609ZM160.933 0.868091C161.589 0.868091 162.307 0.888046 162.525 0.898024C162.525 0.947913 157.529 0.848136 160.933 0.868091ZM145.164 0.379182C148.724 0.449026 143.822 0.409115 143.322 0.379182C141.854 0.329293 142.698 0.329293 145.164 0.379182ZM131.363 2.72395C133.955 2.73393 129.895 2.83371 129.739 2.77384C128.802 2.73393 129.427 2.71397 131.363 2.72395ZM124.119 2.71397C125.867 2.71397 126.492 2.78382 124.119 2.75388C122.12 2.71397 122.12 2.72395 124.119 2.71397ZM104.01 1.59647C105.509 1.51664 105.103 1.64636 104.01 1.64636C102.792 1.65633 102.792 1.64636 104.01 1.59647ZM95.0484 2.13526C102.293 2.00555 89.5528 2.90355 91.0516 2.39469C91.0516 2.26498 92.8315 2.13526 95.0484 2.13526ZM64.573 2.63415C71.7235 2.63415 62.356 2.83371 60.8884 2.71397C61.1694 2.65411 62.8868 2.63415 64.573 2.63415ZM63.6987 2.40466C62.7619 2.53437 52.7075 2.81375 53.8316 2.40466H63.6987ZM42.1535 1.95567C46.9621 1.95567 53.9565 2.22506 51.2087 2.28493C46.0566 2.46453 34.8157 2.20511 42.1535 1.95567ZM31.9742 2.69402C40.3112 2.62417 35.003 2.86364 30.7252 2.85366C24.0743 2.85366 24.855 2.73393 31.9742 2.69402ZM1.68613 118.526C1.2802 119.084 1.2802 124.083 0.999181 121.379C-1.42455e-05 119.942 2.49797 114.096 1.68613 118.526ZM1.62492 13.5099C1.31267 20.2648 1.15655 8.76049 1.50002 7.77269C1.7186 5.96672 1.84349 8.94009 1.62492 13.5099ZM2.50021 33.0762C-0.715945 42.3655 1.00021 30.9996 2.50021 29.5985C1.25122 29.8778 2.87491 31.839 2.50021 33.0762ZM36.5955 127.585C32.2865 127.625 29.7885 127.635 29.1328 127.615C27.8213 127.436 53.4257 127.326 36.5955 127.585ZM58.89 129.651C56.9541 129.312 55.4241 129.501 53.4257 129.222C51.1463 128.952 64.5417 129.691 58.89 129.651ZM84.3695 127.346C92.7066 127.336 89.6153 127.555 83.5889 127.555C76.2511 127.555 77.0317 127.406 84.3695 127.346ZM94.7362 127.745C88.3975 127.745 88.4912 127.446 94.7362 127.386C100.856 127.446 100.95 127.735 94.7362 127.745ZM115.032 128.344C104.978 128.174 104.978 127.915 115.032 127.745C125.087 127.915 125.087 128.174 115.032 128.344ZM140.855 128.443C127.803 128.443 139.637 128.174 144.04 128.274C151.534 128.384 150.41 128.443 140.855 128.443ZM156.842 129.451C156.28 129.491 154.438 129.571 152.658 129.571C143.947 129.641 156.874 129.242 156.842 129.451ZM172.736 129.371C169.676 129.371 166.335 129.312 165.304 129.202C168.833 128.972 187.974 129.461 172.736 129.371ZM174.266 127.526C172.642 127.446 184.601 127.156 184.508 127.186C186.256 127.306 174.172 127.555 174.266 127.526ZM189.847 128.922C187.849 128.982 185.101 128.982 183.946 128.982C177.513 128.703 197.029 128.703 189.847 128.922ZM196.498 127.346C195.249 127.376 191.689 127.426 188.473 127.466C174.547 127.546 206.677 127.007 196.498 127.346ZM234.748 129.012C228.566 129.361 230.908 129.022 236.934 128.753C242.898 128.443 241.399 128.633 234.748 129.012ZM273.904 128.753C271.5 128.753 268.659 128.713 267.659 128.673C266.504 128.483 287.893 128.683 273.904 128.753ZM310 128.683C307.596 128.683 303.287 128.643 300.445 128.593C285.426 128.364 315.589 128.533 310 128.683ZM344.878 128.883C334.855 128.613 345.315 128.434 349.5 128.703C355.901 129.072 353.715 129.132 344.878 128.883ZM366.892 129.062C359.71 129.162 367.641 128.843 369.14 128.982C369.14 128.982 368.141 129.062 366.892 129.062ZM373.824 127.645C371.107 127.516 372.731 127.446 374.386 127.526C376.79 127.605 376.322 127.725 373.824 127.645ZM382.91 128.094C382.473 127.915 384.284 127.875 384.721 127.975C385.564 128.054 384.034 128.174 382.91 128.094ZM396.774 129.711C393.121 129.691 397.086 129.561 397.898 129.591C399.647 129.671 399.241 129.711 396.774 129.711ZM466.062 129.621C464.751 129.621 464.719 129.431 466.062 129.441C467.405 129.421 467.373 129.621 466.062 129.621ZM475.679 129.381C464.407 129.351 474.618 128.982 478.677 129.032C486.077 129.172 484.204 129.381 475.679 129.381ZM478.958 127.805C478.365 127.835 475.336 128.134 476.085 127.895C476.959 127.735 481.799 127.516 478.958 127.805ZM483.392 127.775C481.706 127.775 481.425 127.735 482.268 127.705C483.642 127.565 488.107 127.795 483.392 127.775ZM497.88 129.691C497.068 129.731 496.319 129.731 496.1 129.691C494.82 129.451 500.628 129.611 497.88 129.691ZM537.255 129.621C534.444 129.621 532.04 129.511 532.04 129.511C532.196 129.172 550.775 129.551 537.255 129.621ZM678.703 129.102C675.987 129.102 672.271 129.032 670.585 128.992C667.587 128.753 695.034 128.972 678.703 129.102ZM732.285 129.561C721.762 129.551 733.472 129.312 737.843 129.561H732.285ZM734.783 128.992C716.235 128.902 734.408 128.773 739.779 128.912C747.71 128.972 741.184 128.932 734.783 128.992ZM831.268 129.092H815.53C799.418 128.354 861.587 129.132 831.268 129.092ZM929.064 129.252C926.285 129.351 923.006 129.441 921.039 129.351C918.198 128.922 945.176 128.473 929.064 129.252ZM931.343 128.384C928.408 128.384 929.876 128.284 934.778 128.094C951.764 127.685 962.318 128.334 931.343 128.384Z"}))},s))},Ws=e(ho)(ms||(ms=D(["\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ",";\n }\n }\n"],["\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ",";\n }\n }\n"])),un("border-solid-l"),z("border-primary"),un("border-solid-l"),z("text-disabled"),z("bg-primary")),Hs=e(rt)($s||($s=D(["\n &:not(:focus-within) {\n ","\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:hover input:not(:disabled) {\n background: ",";\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(\n ",'\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: "";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ',";\n border-radius: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ",";\n }\n\n &:has(input:checked:disabled) {\n outline-color: ",";\n }\n\n &:has(input:disabled:not(:checked)) {\n ","\n }\n\n &:has(input:disabled:checked) {\n ",";\n }\n }\n"],["\n &:not(:focus-within) {\n ","\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:hover input:not(:disabled) {\n background: ",";\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(\n ",'\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: "";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ',";\n border-radius: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ",";\n }\n\n &:has(input:checked:disabled) {\n outline-color: ",";\n }\n\n &:has(input:disabled:not(:checked)) {\n ","\n }\n\n &:has(input:disabled:checked) {\n ",";\n }\n }\n"])),(function(e){return!!e.$outlineColor&&n(vs||(vs=D(["\n outline: ","\n ",";\n "],["\n outline: ","\n ",";\n "])),un("border-solid-xl"),z(e.$outlineColor))}),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),z("bg-decorative1-subdued"),z("bg-primary"),Fo,Fo,un("border-solid-xl"),pn("border-radius-m2"),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),un("border-solid-xl"),(function(e){return n(ys||(ys=D(["\n ","\n "],["\n ","\n "])),z(e.$overlayBorderColor))}),(function(e){return e.$feedbackBgColor?n(ws||(ws=D(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),e.$feedbackBgColor):void 0}),(function(e){return n(xs||(xs=D(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),z(e.$feedbackBgColor))})),_s=function(e){var n,t,r,o=e.id,i=e.value,c=e.feedback,l=e.image,s=e.disabled,d=e.innerRef,p=e.displayValue,f=e.isHighlighted,g=I(e,["id","value","feedback","image","disabled","innerRef","displayValue","isHighlighted"]),b=!!c,h=u(null),m=null!=d?d:h,v="correct"===c&&(null===(n=m.current)||void 0===n?void 0:n.checked)||"incorrect"===c&&!(null===(t=m.current)||void 0===t?void 0:t.checked),y="incorrect"===c&&(null===(r=m.current)||void 0===r?void 0:r.checked),w=a.createElement(rt,{$flexDirection:"column",$minWidth:"all-spacing-20",$gap:"space-between-s"},a.createElement(nt,null,l),p),x=v?"bg-correct":"bg-incorrect",$=v?"border-success":"border-error",C=a.createElement(Hs,{$pa:"inner-padding-l",$borderRadius:"border-radius-m2",$borderColor:f?"border-decorative5-stronger":"border-primary",$background:s&&!b?"bg-neutral-stronger":"bg-primary",$flexGrow:1,onClick:function(e){var n;e.target.id!==o&&(null===(n=m.current)||void 0===n||n.click())},$overlayBorderColor:b?$:"text-disabled",$feedbackBgColor:b?x:void 0,$outlineColor:f?"border-decorative5-stronger":"transparent"},a.createElement(Fo,{pointerEvents:"none",htmlFor:o,labelGap:"space-between-s",labelAlignItems:"center",$color:s&&!b?"text-disabled":"text-primary",$font:"body-1",disabled:s},a.createElement(Wo,{size:"all-spacing-7",iconPadding:"inner-padding-ssx",checkedIcon:a.createElement(nt,{$width:"100%",$height:"100%",$background:s||b?"text-disabled":"text-primary"},a.createElement(nt,{$ba:"border-solid-m",$borderColor:"white",$width:"100%",$height:"100%"})),internalCheckbox:a.createElement(Ws,S({id:o,value:i,disabled:s||b},g,{$width:"all-spacing-7",$height:"all-spacing-7",$ba:"border-solid-m",$borderColor:"border-neutral",$borderRadius:"border-radius-s",$background:f?"bg-decorative5-main":"bg-primary",$checkedBackground:null,ref:m}))}),l?w:p),b&&(v||y)&&a.createElement(rt,{className:"feedbackIconWrapper",$flexGrow:1,$justifyContent:"flex-end",$alignItems:"flex-end",$height:"100%"},v&&a.createElement(Qt,{iconName:"tick",$colorFilter:"icon-success",alt:"correct"===c?"Correct":"Unselected correct choice"}),y&&a.createElement(Qt,{iconName:"cross",$colorFilter:"icon-error",alt:"Incorrect"})));return a.createElement(rt,{$width:"100%",$position:"relative"},C)},Gs=function(e){var n,t,r=e.feedback,o=e.readOnly,i=I(e,["feedback","readOnly"]),c=void 0;switch(r){case"correct":n="valid",t="tick",c="Correct";break;case"incorrect":n="invalid",t="cross",c="Incorrect"}return a.createElement(Yo,S({},i,{validity:n,iconName:t,iconAlt:c,readOnly:o||!!r,isTrailingIcon:!0}))},Vs=e(rt)(Ms||(Ms=D(["\n &:not(:focus-within) {\n ","\n }\n\n &:hover {\n cursor: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n &:not(:focus-within) {\n ","\n }\n\n &:hover {\n cursor: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),(function(e){return!!e.$outlineColor&&n(Cs||(Cs=D(["\n outline: ","\n ",";\n "],["\n outline: ","\n ",";\n "])),un("border-solid-xl"),z(e.$outlineColor))}),(function(e){return e.$disabled?"default":"pointer"}),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return!e.$disabled&&n(Es||(Es=D(["\n &:hover {\n background-color: ",";\n text-decoration: underline;\n }\n "],["\n &:hover {\n background-color: ",";\n text-decoration: underline;\n }\n "])),z("bg-decorative1-subdued"))}),(function(e){return!e.$disabled&&!e.$checked&&n(ks||(ks=D(['\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: "";\n position: absolute;\n inset: 0;\n border-radius: ',";\n border-bottom: "," ",";\n }\n "],['\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: "";\n position: absolute;\n inset: 0;\n border-radius: ',";\n border-bottom: "," ",";\n }\n "])),pn("border-radius-m2"),un("border-solid-l"),z("grey60"))})),Ys=function(e){var n,t,r=e.value,o=e.feedback,i=e.image,c=e.disabled,l=e.isHighlighted,s=e.label,u=I(e,["value","feedback","image","disabled","isHighlighted","label"]),p=!!o,f=d(lo).currentValue===r,g="bg-primary",b=null,h="bg-primary";switch(!0){case c&&!p:g="bg-neutral-stronger";break;case"correct"===o&&f:n="border-success",g="bg-correct",b="tick",t="Correct";break;case"incorrect"===o&&f:n="border-error",g="bg-incorrect",b="cross",t="Incorrect";break;case"incorrect"===o&&!f:b="tick",t="Unselected correct choice";break;case l:h="bg-decorative5-main",n="border-decorative5-stronger";break;case f&&!c:n="border-primary"}return a.createElement(Vs,{$pa:"inner-padding-l",$borderRadius:"border-radius-m2",$justifyContent:"space-between",$position:"relative",$alignContent:"center",onClick:function(e){var n;null===(n=e.currentTarget.querySelector("input"))||void 0===n||n.click()},$disabled:c||p,$checked:f,$outlineColor:n,$background:g},a.createElement(bo,S({value:r,disabled:c||p,$labelGap:"space-between-s",disableFocusRing:!0,radioInnerSize:"all-spacing-6",radioOuterSize:"all-spacing-7",radioBackground:h,checkedRadioBorderWidth:"border-solid-l",label:i?a.createElement(rt,{$flexDirection:"column",$minWidth:"all-spacing-20",$gap:"space-between-s"},a.createElement(nt,null,i),s):s},u)),p&&b&&a.createElement(rt,{$alignSelf:"flex-end"},a.createElement(Qt,{iconName:b,$colorFilter:"tick"===b?"icon-success":"icon-error",alt:t})))},Us=e(ao)(Ss||(Ss=D(["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"],["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"])),Dn("drop-shadow-lemon"),Dn("drop-shadow-grey")),Xs=function(e){var n=e.isOpen,t=e.disabled,r=e.buttonProps;return a.createElement(Us,S({iconName:n&&!t?"lightbulb-yellow":"lightbulb",defaultIconBackground:n?"black":"bg-decorative5-main",hoverIconBackground:n?"black":"bg-decorative5-main",defaultTextColor:"text-primary",hoverTextColor:"text-primary",disabledIconBackground:"bg-btn-primary-disabled",disabledTextColor:"text-disabled",disabledIconColor:"white",onClick:e.onClick,isLoading:e.isLoading,disabled:e.disabled,iconBackgroundSize:"all-spacing-8",iconSize:"all-spacing-6","data-rac":!0},r),n?"Close hint":"Need a hint?")},Ks=function(e){var n=e.hint,t=O(c(!1),2),r=t[0],o=t[1];return a.createElement(ei,{tooltip:n,isOpen:r,id:"hint-tooltip"},a.createElement(Xs,{isOpen:r,onClick:function(){o(!r)},buttonProps:{"aria-describedby":"hint-tooltip"}}))},Js=function(e){var n,t=e.feedback,r=e.answerFeedback;switch(t){case"correct":n="Correct";break;case"incorrect":n="Incorrect";break;case"partially-correct":n="Almost correct"}return a.createElement(nt,{"aria-live":"polite"},a.createElement(rt,{$gap:"space-between-xs"},a.createElement(Uo,{iconName:"correct"===t?"tick":"cross",alt:"",$pa:"inner-padding-none",$background:"correct"===t?"icon-success":"icon-error",$colorFilter:"text-inverted",$width:"all-spacing-6",$height:"all-spacing-6"}),a.createElement(ot,{$font:"heading-6",$color:"correct"===t?"text-success":"text-error"},n)),r&&a.createElement(ot,{as:"p",$mt:"space-between-xs",$font:"correct"===t?"body-2-bold":"body-2"},r))},Qs=e(rt)(Is||(Is=D(["\n box-sizing: content-box;\n"],["\n box-sizing: content-box;\n"]))),ed=function(e){var n,t=e.hint,r=e.feedback,o=e.answerFeedback,i=e.children;switch(!0){case!!r:n=a.createElement(Js,{feedback:r,answerFeedback:o});break;case!!t:n=a.createElement(Ks,{hint:t});break;default:n=null}return a.createElement(Qs,{$flexDirection:["column","row"],$pa:"inner-padding-m",$minHeight:"all-spacing-9",$gap:"space-between-m"},a.createElement(rt,{$alignItems:"center"},n),a.createElement(rt,{$flexGrow:"1",$height:"fit-content",$alignSelf:"flex-end",$justifyContent:["initial","flex-end"],$width:["100%","auto"]},i))},nd=e(ot)(js||(js=D(["\n @media (min-width: ","px) {\n display: none;\n }\n"],["\n @media (min-width: ","px) {\n display: none;\n }\n"])),G("small")),td=function(e){var n=e.lessonSectionName,t=e.backLinkSlot,r=e.counterSlot,o=e.heading,i=e.mobileSummary;return a.createElement(rt,{$gap:"space-between-m",$alignItems:"center"},a.createElement(nt,{$pl:["inner-padding-none","inner-padding-s"]},t),a.createElement(rt,{$flexGrow:"none"},a.createElement(Uo,S({},function(e){switch(e){case"intro":return{iconName:"intro",$background:"aqua110"};case"starter-quiz":return{iconName:"quiz",$background:"mint110"};case"video":return{iconName:"video",$background:"pink110"};case"exit-quiz":return{iconName:"quiz",$background:"lemon110"}}}(n),{$width:"all-spacing-8",$height:"all-spacing-8"}))),a.createElement(nt,null,a.createElement(Nt,{tag:"h1",$font:["heading-7","heading-5"]},o),a.createElement(nd,{$font:"body-3"},i)),a.createElement(rt,{$flexGrow:1,$justifyContent:"flex-end"},a.createElement(nt,{$display:["none","block"]},r)))};var rd,od,id=function(e){var n=e.counter,t=e.total;return a.createElement(ot,{$font:"heading-light-4",$color:"text-disabled"},a.createElement(ot,{$font:"heading-4",$color:"text-primary"},n," "),"of ",t)},ad=e(nt)(rd||(rd=D(["\n @media (min-width: ","px) {\n padding-top: ",";\n }\n"],["\n @media (min-width: ","px) {\n padding-top: ",";\n }\n"])),G("small"),ne("space-between-xl")),cd=e(nt)(od||(od=D(["\n position: sticky;\n bottom: 0;\n z-index: 10;\n"],["\n position: sticky;\n bottom: 0;\n z-index: 10;\n"]))),ld=function(e){var n=e.lessonSectionName,t=e.topNavSlot,r=e.bottomNavSlot,o=e.children,i=O(function(e){switch(e){case"overview":case"review":return["bg-decorative1-main","bg-primary","border-decorative1-stronger","bg-primary"];case"intro":return["bg-decorative2-subdued","bg-decorative2-very-subdued","border-inverted","bg-decorative2-subdued"];case"starter-quiz":return["bg-decorative1-main","bg-decorative1-very-subdued","border-inverted","bg-decorative1-subdued"];case"video":return["bg-decorative4-subdued","bg-primary","border-decorative4","bg-primary"];case"exit-quiz":return["bg-decorative5-main","bg-decorative5-very-subdued","border-inverted","bg-decorative5-subdued"]}}(n),4),c=i[0],l=i[1],s=i[2],d=i[3];return a.createElement(ad,{$display:"flex",$width:"100%",$minHeight:"100%",$ph:["inner-padding-none","inner-padding-xl"],$background:c},a.createElement(rt,{$flexDirection:"column",$flexGrow:1,$background:[d,l],$btr:[null,"border-radius-xl"],$bt:[null,"border-solid-xl"],$bh:[null,"border-solid-xl"],$borderColor:[null,s],$maxWidth:"all-spacing-24",$minHeight:"100%",$mh:"auto",$pt:["inner-padding-none","inner-padding-m"],$gap:["space-between-l","space-between-xl"]},t&&a.createElement(nt,{$pv:"inner-padding-l",$pl:["inner-padding-m","inner-padding-xs"],$pr:["inner-padding-m","inner-padding-none"],$mr:["space-between-none","space-between-l"],$background:["bg-primary","transparent"]},t),a.createElement(rt,{$flexGrow:1,$flexDirection:"column"},o),r&&a.createElement(cd,{$mh:["space-between-none","space-between-none","space-between-sssx"],$borderColor:s,$bt:"border-solid-xl",$background:["bg-primary",l]},r)))};var sd,dd,ud,pd,fd,gd,bd=e(nt)(sd||(sd=D([""],[""]))),hd=e(Uo)(dd||(dd=D(["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"],["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"])),ne("all-spacing-8"),ne("all-spacing-8"),(function(e){return at(e.$disabled?"icon-disabled":"icon-inverted")})),md=n(ud||(ud=D(["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"],["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"])),hd,z("bg-btn-primary"),at("icon-main")),vd=e(rt)(fd||(fd=D(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return e.$disabled&&"cursor: default"}),(function(e){return!e.$disabled&&n(pd||(pd=D(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n }\n "],["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n }\n "])),bd,md,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"),md)})),yd=e(nt)(gd||(gd=D(["\n flex: 1;\n"],["\n flex: 1;\n"]))),wd=function(e){var n=e.as,t=e.lessonSectionName,r=e.progress,o=e.disabled,i=e.href,c=e.onClick,l=I(e,["as","lessonSectionName","progress","disabled","href","onClick"]),s=O(function(e){switch(e){case"intro":return["bg-decorative2-very-subdued","bg-decorative2-main","border-decorative2-stronger"];case"starter-quiz":return["bg-decorative1-very-subdued","bg-decorative1-main","border-decorative1-stronger"];case"video":return["bg-decorative4-very-subdued","bg-decorative4-main","border-decorative4-stronger"];case"exit-quiz":return["bg-decorative5-very-subdued","bg-decorative5-main","border-decorative5-stronger"]}}(t),3),d=s[0],u=s[1],p=s[2];return a.createElement(vd,S({as:o?"div":null!=n?n:"a",$gap:"space-between-m",$alignItems:"center",$background:"not-started"===r?d:u,$ph:["inner-padding-m","inner-padding-xl"],$pv:"inner-padding-l",$borderRadius:"border-radius-l",$borderColor:p,$ba:"border-solid-l",$disabled:o,$color:"text-primary",href:o?void 0:i,onClick:o?void 0:c},l),a.createElement(rt,{$width:"all-spacing-13",$justifyContent:"center"},a.createElement(Qt,{iconName:xd(t),$width:"all-spacing-10",$height:"all-spacing-10"})),a.createElement(yd,null,a.createElement(bd,{as:"strong",$font:["heading-6","heading-5"],$color:o?"text-disabled":"text-primary"},function(e){switch(e){case"intro":return"Introduction";case"starter-quiz":return"Starter quiz";case"video":return"Lesson video";case"exit-quiz":return"Exit quiz"}}(t)),a.createElement(nt,{$font:["body-2","body-1"]},function(e){switch(e.progress){case"not-started":return function(e){switch(e.lessonSectionName){case"intro":return"Prepare";case"starter-quiz":return"Activate - ".concat(e.numQuestions," Questions");case"exit-quiz":return"Check - ".concat(e.numQuestions," questions");case"video":return"Learn"}}(e);case"in-progress":return"In progress...";case"complete":return a.createElement(rt,{$gap:"space-between-sssx",$alignItems:"center"},a.createElement(Qt,{iconName:"tick",$width:"all-spacing-6",$height:"all-spacing-6"}),function(e){switch(e.lessonSectionName){case"intro":case"video":return"Completed";case"starter-quiz":case"exit-quiz":return a.createElement(a.Fragment,null,a.createElement(nt,{$display:["none","block"]},"Completed"),a.createElement(nt,{$display:["block","none"]},e.grade,"/",e.numQuestions," correct"))}}(e))}}(e))),function(e){if("complete"!==e.progress)return null;switch(e.lessonSectionName){case"exit-quiz":case"starter-quiz":return a.createElement(nt,{$display:["none","block"],$mr:"space-between-m"},a.createElement(ot,{$font:"heading-4"},e.grade),a.createElement(ot,{$font:"heading-6"}," / ",e.numQuestions));default:return null}}(e),a.createElement(hd,{iconName:"chevron-right",$disabled:o}))};function xd(e){switch(e){case"intro":return"intro";case"starter-quiz":case"exit-quiz":return"quiz";case"video":return"video"}}var $d,Cd=e(rt)($d||($d=D(["\n outline: none;\n text-align: initial;\n"],["\n outline: none;\n text-align: initial;\n"]))),Ed=function(e){var n=e.completed,t=e.lessonSectionName,r=I(e,["completed","lessonSectionName"]),o=O(Id(t),3),i=o[0],c=o[1],l=o[2],s=new Map;return s.set("intro","intro"),s.set("starter-quiz","quiz"),s.set("exit-quiz","quiz"),s.set("video","video"),a.createElement(Cd,S({completed:n,$gap:"space-between-m",$alignItems:"center",$background:n?i:"white",$ph:["inner-padding-m","inner-padding-xl"],$pv:"inner-padding-l",$borderRadius:"border-radius-l",$borderColor:n?i:c,$ba:"border-solid-l"},r),a.createElement(Uo,{iconName:s.get(t),$width:"all-spacing-10",$height:"all-spacing-10",$background:l}),a.createElement(rt,{$flexGrow:1,$flexShrink:1,$flexDirection:"column"},a.createElement(nt,{$font:["heading-6","heading-5"],$color:"text-primary"},Sd(t)),a.createElement(nt,{$font:["body-2","body-1"]},kd(e))),jd(e))},kd=function(e){return!1===e.completed?Md(e):a.createElement(rt,{$gap:"space-between-sssx",$alignItems:"center"},a.createElement(Qt,{iconName:"tick",$width:"all-spacing-6",$height:"all-spacing-6"}),"Completed")},Md=function(e){switch(e.lessonSectionName){case"intro":return"Prepare";case"starter-quiz":return"Activate - ".concat(e.numQuestions," questions");case"exit-quiz":return"Check - ".concat(e.numQuestions," questions");case"video":return"Learn"}},Sd=function(e){switch(e){case"intro":return"Introduction";case"starter-quiz":return"Starter quiz";case"video":return"Lesson video";case"exit-quiz":return"Exit quiz"}},Id=function(e){switch(e){case"intro":return["bg-decorative2-very-subdued","border-decorative2","aqua"];case"starter-quiz":return["bg-decorative1-very-subdued","border-decorative1","mint"];case"video":return["bg-decorative4-very-subdued","border-decorative4","pink"];case"exit-quiz":return["bg-decorative5-very-subdued","border-decorative5","lemon"]}},jd=function(e){if(!1===e.completed)return null;switch(e.lessonSectionName){case"exit-quiz":case"starter-quiz":return a.createElement(nt,null,a.createElement(ot,{$font:"heading-4"},e.grade),a.createElement(ot,{$font:"heading-6"}," / ",e.numQuestions));default:return null}},Od=function(e){var n=e.children,t=e.id,r=e.signLanguageControl,o=void 0===r?null:r,i=O(c(!1),2),l=i[0],s=i[1];return a.createElement(a.Fragment,null,a.createElement(rt,{$flexDirection:["column-reverse","row"],$justifyContent:"space-between"},a.createElement(nt,null,n&&a.createElement(co,{onClick:function(){return s(!l)},iconName:l?"chevron-up":"chevron-down",isTrailingIcon:!0,"aria-controls":t,"aria-expanded":l,$mb:"space-between-m"},l?"Hide transcript":"Show transcript")),o&&a.createElement(nt,{$mb:"space-between-m"},o)),n&&a.createElement(zi,{id:t,$maxHeight:"all-spacing-23",isOpen:l,$font:"body-1",$color:"text-primary"},n))};const Nd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Dd(e){const n=Object.prototype.toString.call(e);return"[object Window]"===n||"[object global]"===n}function Td(e){return"nodeType"in e}function Rd(e){var n,t;return e?Dd(e)?e:Td(e)&&null!=(n=null==(t=e.ownerDocument)?void 0:t.defaultView)?n:window:window}function Ad(e){const{Document:n}=Rd(e);return e instanceof n}function zd(e){return!Dd(e)&&e instanceof Rd(e).HTMLElement}function Ld(e){return e instanceof Rd(e).SVGElement}function Bd(e){return e?Dd(e)?e.document:Td(e)?Ad(e)?e:zd(e)||Ld(e)?e.ownerDocument:document:document:document}const Zd=Nd?f:b;function Pd(e){const n=u(e);return Zd((()=>{n.current=e})),l((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Fd(e,n){void 0===n&&(n=[e]);const t=u(e);return Zd((()=>{t.current!==e&&(t.current=e)}),n),t}function qd(e,n){const t=u();return h((()=>{const n=e(t.current);return t.current=n,n}),[...n])}function Wd(e){const n=Pd(e),t=u(null),r=l((e=>{e!==t.current&&(null==n||n(e,t.current)),t.current=e}),[]);return[t,r]}function Hd(e){const n=u();return b((()=>{n.current=e}),[e]),n.current}let _d={};function Gd(e,n){return h((()=>{if(n)return n;const t=null==_d[e]?0:_d[e]+1;return _d[e]=t,e+"-"+t}),[e,n])}function Vd(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.reduce(((n,t)=>{const r=Object.entries(t);for(const[t,o]of r){const r=n[t];null!=r&&(n[t]=r+e*o)}return n}),{...n})}}const Yd=Vd(1),Ud=Vd(-1);function Xd(e){if(!e)return!1;const{KeyboardEvent:n}=Rd(e.target);return n&&e instanceof n}function Kd(e){if(function(e){if(!e)return!1;const{TouchEvent:n}=Rd(e.target);return n&&e instanceof n}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Jd=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[Jd.Translate.toString(e),Jd.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:r}=e;return n+" "+t+"ms "+r}}}),Qd="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function eu(e){return e.matches(Qd)?e:e.querySelector(Qd)}const nu={display:"none"};function tu(e){let{id:n,value:t}=e;return a.createElement("div",{id:n,style:nu},t)}function ru(e){let{id:n,announcement:t,ariaLiveType:r="assertive"}=e;return a.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},t)}const ou=s(null);const iu={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},au={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function cu(e){let{announcements:n=au,container:t,hiddenTextDescribedById:r,screenReaderInstructions:o=iu}=e;const{announce:i,announcement:s}=function(){const[e,n]=c("");return{announce:l((e=>{null!=e&&n(e)}),[]),announcement:e}}(),u=Gd("DndLiveRegion"),[p,f]=c(!1);if(b((()=>{f(!0)}),[]),function(e){const n=d(ou);b((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)}),[e,n])}(h((()=>({onDragStart(e){let{active:t}=e;i(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&i(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;i(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;i(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;i(n.onDragCancel({active:t,over:r}))}})),[i,n])),!p)return null;const g=a.createElement(a.Fragment,null,a.createElement(tu,{id:r,value:o.draggable}),a.createElement(ru,{id:u,announcement:s}));return t?E(g,t):g}var lu;function su(){}function du(e,n){return h((()=>({sensor:e,options:null!=n?n:{}})),[e,n])}function uu(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return h((()=>[...n].filter((e=>null!=e))),[...n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(lu||(lu={}));const pu=Object.freeze({x:0,y:0});function fu(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function gu(e,n){const t=Kd(e);if(!t)return"0 0";return(t.x-n.left)/n.width*100+"% "+(t.y-n.top)/n.height*100+"%"}function bu(e,n){let{data:{value:t}}=e,{data:{value:r}}=n;return t-r}function hu(e,n){let{data:{value:t}}=e,{data:{value:r}}=n;return r-t}function mu(e){let{left:n,top:t,height:r,width:o}=e;return[{x:n,y:t},{x:n+o,y:t},{x:n,y:t+r},{x:n+o,y:t+r}]}function vu(e,n){if(!e||0===e.length)return null;const[t]=e;return n?t[n]:t}function yu(e,n,t){return void 0===n&&(n=e.left),void 0===t&&(t=e.top),{x:n+.5*e.width,y:t+.5*e.height}}const wu=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const o=yu(n,n.left,n.top),i=[];for(const e of r){const{id:n}=e,r=t.get(n);if(r){const t=fu(yu(r),o);i.push({id:n,data:{droppableContainer:e,value:t}})}}return i.sort(bu)};function xu(e,n){const t=Math.max(n.top,e.top),r=Math.max(n.left,e.left),o=Math.min(n.left+n.width,e.left+e.width),i=Math.min(n.top+n.height,e.top+e.height),a=o-r,c=i-t;if(r<o&&t<i){const t=n.width*n.height,r=e.width*e.height,o=a*c;return Number((o/(t+r-o)).toFixed(4))}return 0}const $u=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=t.get(r);if(i){const t=xu(i,n);t>0&&o.push({id:r,data:{droppableContainer:e,value:t}})}}return o.sort(hu)};function Cu(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:pu}function Eu(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.reduce(((n,t)=>({...n,top:n.top+e*t.y,bottom:n.bottom+e*t.y,left:n.left+e*t.x,right:n.right+e*t.x})),{...n})}}const ku=Eu(1);function Mu(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}const Su={ignoreTransform:!1};function Iu(e,n){void 0===n&&(n=Su);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:n,transformOrigin:r}=Rd(e).getComputedStyle(e);n&&(t=function(e,n,t){const r=Mu(n);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:c}=r,l=e.left-a-(1-o)*parseFloat(t),s=e.top-c-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),d=o?e.width/o:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:s,right:l+d,bottom:s+u,left:l}}(t,n,r))}const{top:r,left:o,width:i,height:a,bottom:c,right:l}=t;return{top:r,left:o,width:i,height:a,bottom:c,right:l}}function ju(e){return Iu(e,{ignoreTransform:!0})}function Ou(e,n){const t=[];return e?function r(o){if(null!=n&&t.length>=n)return t;if(!o)return t;if(Ad(o)&&null!=o.scrollingElement&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!zd(o)||Ld(o))return t;if(t.includes(o))return t;const i=Rd(e).getComputedStyle(o);return o!==e&&function(e,n){void 0===n&&(n=Rd(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=n[e];return"string"==typeof r&&t.test(r)}))}(o,i)&&t.push(o),function(e,n){return void 0===n&&(n=Rd(e).getComputedStyle(e)),"fixed"===n.position}(o,i)?t:r(o.parentNode)}(e):t}function Nu(e){const[n]=Ou(e,1);return null!=n?n:null}function Du(e){return Nd&&e?Dd(e)?e:Td(e)?Ad(e)||e===Bd(e).scrollingElement?window:zd(e)?e:null:null:null}function Tu(e){return Dd(e)?e.scrollX:e.scrollLeft}function Ru(e){return Dd(e)?e.scrollY:e.scrollTop}function Au(e){return{x:Tu(e),y:Ru(e)}}var zu;function Lu(e){return!(!Nd||!e)&&e===document.scrollingElement}function Bu(e){const n={x:0,y:0},t=Lu(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height};return{isTop:e.scrollTop<=n.y,isLeft:e.scrollLeft<=n.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:n}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(zu||(zu={}));const Zu={x:.2,y:.2};function Pu(e,n,t,r,o){let{top:i,left:a,right:c,bottom:l}=t;void 0===r&&(r=10),void 0===o&&(o=Zu);const{isTop:s,isBottom:d,isLeft:u,isRight:p}=Bu(e),f={x:0,y:0},g={x:0,y:0},b=n.height*o.y,h=n.width*o.x;return!s&&i<=n.top+b?(f.y=zu.Backward,g.y=r*Math.abs((n.top+b-i)/b)):!d&&l>=n.bottom-b&&(f.y=zu.Forward,g.y=r*Math.abs((n.bottom-b-l)/b)),!p&&c>=n.right-h?(f.x=zu.Forward,g.x=r*Math.abs((n.right-h-c)/h)):!u&&a<=n.left+h&&(f.x=zu.Backward,g.x=r*Math.abs((n.left+h-a)/h)),{direction:f,speed:g}}function Fu(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:n}=window;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}const{top:n,left:t,right:r,bottom:o}=e.getBoundingClientRect();return{top:n,left:t,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function qu(e){return e.reduce(((e,n)=>Yd(e,Au(n))),pu)}function Wu(e,n){if(void 0===n&&(n=Iu),!e)return;const{top:t,left:r,bottom:o,right:i}=n(e);Nu(e)&&(o<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Hu=[["x",["left","right"],function(e){return e.reduce(((e,n)=>e+Tu(n)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,n)=>e+Ru(n)),0)}]];class _u{constructor(e,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const t=Ou(n),r=qu(t);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,n,o]of Hu)for(const i of n)Object.defineProperty(this,i,{get:()=>{const n=o(t),a=r[e]-n;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Gu{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var n;return null==(n=this.target)?void 0:n.removeEventListener(...e)}))},this.target=e}add(e,n,t){var r;null==(r=this.target)||r.addEventListener(e,n,t),this.listeners.push([e,n,t])}}function Vu(e,n){const t=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof n?Math.sqrt(t**2+r**2)>n:"x"in n&&"y"in n?t>n.x&&r>n.y:"x"in n?t>n.x:"y"in n&&r>n.y}var Yu,Uu;function Xu(e){e.preventDefault()}function Ku(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Yu||(Yu={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Uu||(Uu={}));const Ju={start:[Uu.Space,Uu.Enter],cancel:[Uu.Esc],end:[Uu.Space,Uu.Enter]},Qu=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case Uu.Right:return{...t,x:t.x+25};case Uu.Left:return{...t,x:t.x-25};case Uu.Down:return{...t,y:t.y+25};case Uu.Up:return{...t,y:t.y-25}}};class ep{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new Gu(Bd(n)),this.windowListeners=new Gu(Rd(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Yu.Resize,this.handleCancel),this.windowListeners.add(Yu.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Yu.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:n}=this.props,t=e.node.current;t&&Wu(t),n(pu)}handleKeyDown(e){if(Xd(e)){const{active:n,context:t,options:r}=this.props,{keyboardCodes:o=Ju,coordinateGetter:i=Qu,scrollBehavior:a="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:l}=t.current,s=l?{x:l.left,y:l.top}:pu;this.referenceCoordinates||(this.referenceCoordinates=s);const d=i(e,{active:n,context:t.current,currentCoordinates:s});if(d){const n=Ud(d,s),r={x:0,y:0},{scrollableAncestors:o}=t.current;for(const t of o){const o=e.code,{isTop:i,isRight:c,isLeft:l,isBottom:s,maxScroll:u,minScroll:p}=Bu(t),f=Fu(t),g={x:Math.min(o===Uu.Right?f.right-f.width/2:f.right,Math.max(o===Uu.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(o===Uu.Down?f.bottom-f.height/2:f.bottom,Math.max(o===Uu.Down?f.top:f.top+f.height/2,d.y))},b=o===Uu.Right&&!c||o===Uu.Left&&!l,h=o===Uu.Down&&!s||o===Uu.Up&&!i;if(b&&g.x!==d.x){const e=t.scrollLeft+n.x,i=o===Uu.Right&&e<=u.x||o===Uu.Left&&e>=p.x;if(i&&!n.y)return void t.scrollTo({left:e,behavior:a});r.x=i?t.scrollLeft-e:o===Uu.Right?t.scrollLeft-u.x:t.scrollLeft-p.x,r.x&&t.scrollBy({left:-r.x,behavior:a});break}if(h&&g.y!==d.y){const e=t.scrollTop+n.y,i=o===Uu.Down&&e<=u.y||o===Uu.Up&&e>=p.y;if(i&&!n.x)return void t.scrollTo({top:e,behavior:a});r.y=i?t.scrollTop-e:o===Uu.Down?t.scrollTop-u.y:t.scrollTop-p.y,r.y&&t.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Yd(Ud(d,this.referenceCoordinates),r))}}}handleMove(e,n){const{onMove:t}=this.props;e.preventDefault(),t(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function np(e){return Boolean(e&&"distance"in e)}function tp(e){return Boolean(e&&"delay"in e)}ep.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:r=Ju,onActivation:o}=n,{active:i}=t;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const n=i.activatorNode.current;return(!n||e.target===n)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class rp{constructor(e,n,t){var r;void 0===t&&(t=function(e){const{EventTarget:n}=Rd(e);return e instanceof n?e:Bd(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;const{event:o}=e,{target:i}=o;this.props=e,this.events=n,this.document=Bd(i),this.documentListeners=new Gu(this.document),this.listeners=new Gu(t),this.windowListeners=new Gu(Rd(i)),this.initialCoordinates=null!=(r=Kd(o))?r:pu,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Yu.Resize,this.handleCancel),this.windowListeners.add(Yu.DragStart,Xu),this.windowListeners.add(Yu.VisibilityChange,this.handleCancel),this.windowListeners.add(Yu.ContextMenu,Xu),this.documentListeners.add(Yu.Keydown,this.handleKeydown),n){if(null!=t&&t({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tp(n))return void(this.timeoutId=setTimeout(this.handleStart,n.delay));if(np(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(Yu.Click,Ku,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Yu.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:t,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const c=null!=(n=Kd(e))?n:pu,l=Ud(r,c);if(!t&&a){if(np(a)){if(null!=a.tolerance&&Vu(l,a.tolerance))return this.handleCancel();if(Vu(l,a.distance))return this.handleStart()}return tp(a)&&Vu(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Uu.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const op={move:{name:"pointermove"},end:{name:"pointerup"}};class ip extends rp{constructor(e){const{event:n}=e,t=Bd(n.target);super(e,op,t)}}ip.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return!(!t.isPrimary||0!==t.button)&&(null==r||r({event:t}),!0)}}];const ap={move:{name:"mousemove"},end:{name:"mouseup"}};var cp;!function(e){e[e.RightClick=2]="RightClick"}(cp||(cp={}));class lp extends rp{constructor(e){super(e,ap,Bd(e.event.target))}}lp.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return t.button!==cp.RightClick&&(null==r||r({event:t}),!0)}}];const sp={move:{name:"touchmove"},end:{name:"touchend"}};class dp extends rp{constructor(e){super(e,sp)}static setup(){return window.addEventListener(sp.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(sp.move.name,e)};function e(){}}}var up,pp;function fp(e){let{acceleration:n,activator:t=up.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:c=pp.TreeOrder,pointerCoordinates:s,scrollableAncestors:d,scrollableAncestorRects:p,delta:f,threshold:g}=e;const m=function(e){let{delta:n,disabled:t}=e;const r=Hd(n);return qd((e=>{if(t||!r||!e)return gp;const o={x:Math.sign(n.x-r.x),y:Math.sign(n.y-r.y)};return{x:{[zu.Backward]:e.x[zu.Backward]||-1===o.x,[zu.Forward]:e.x[zu.Forward]||1===o.x},y:{[zu.Backward]:e.y[zu.Backward]||-1===o.y,[zu.Forward]:e.y[zu.Forward]||1===o.y}}}),[t,n,r])}({delta:f,disabled:!i}),[v,y]=function(){const e=u(null);return[l(((n,t)=>{e.current=setInterval(n,t)}),[]),l((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),w=u({x:0,y:0}),x=u({x:0,y:0}),$=h((()=>{switch(t){case up.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case up.DraggableRect:return o}}),[t,o,s]),C=u(null),E=l((()=>{const e=C.current;if(!e)return;const n=w.current.x*x.current.x,t=w.current.y*x.current.y;e.scrollBy(n,t)}),[]),k=h((()=>c===pp.TreeOrder?[...d].reverse():d),[c,d]);b((()=>{if(i&&d.length&&$){for(const e of k){if(!1===(null==r?void 0:r(e)))continue;const t=d.indexOf(e),o=p[t];if(!o)continue;const{direction:i,speed:c}=Pu(e,o,$,n,g);for(const e of["x","y"])m[e][i[e]]||(c[e]=0,i[e]=0);if(c.x>0||c.y>0)return y(),C.current=e,v(E,a),w.current=c,void(x.current=i)}w.current={x:0,y:0},x.current={x:0,y:0},y()}else y()}),[n,E,r,y,i,a,JSON.stringify($),JSON.stringify(m),v,d,k,p,JSON.stringify(g)])}dp.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;const{touches:o}=t;return!(o.length>1)&&(null==r||r({event:t}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(up||(up={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(pp||(pp={}));const gp={x:{[zu.Backward]:!1,[zu.Forward]:!1},y:{[zu.Backward]:!1,[zu.Forward]:!1}};var bp,hp;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(bp||(bp={})),function(e){e.Optimized="optimized"}(hp||(hp={}));const mp=new Map;function vp(e,n){return qd((t=>e?t||("function"==typeof n?n(e):e):null),[n,e])}function yp(e){let{callback:n,disabled:t}=e;const r=Pd(n),o=h((()=>{if(t||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[t]);return b((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function wp(e){return new _u(Iu(e),e)}function xp(e,n,t){void 0===n&&(n=wp);const[r,o]=v((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:t)?o:null;const i=n(e);if(JSON.stringify(r)===JSON.stringify(i))return r;return i}),null),i=function(e){let{callback:n,disabled:t}=e;const r=Pd(n),o=h((()=>{if(t||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,t]);return b((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(n){if(e)for(const t of n){const{type:n,target:r}=t;if("childList"===n&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),a=yp({callback:o});return Zd((()=>{o(),e?(null==a||a.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==i||i.disconnect())}),[e]),r}const $p=[];function Cp(e,n){void 0===n&&(n=[]);const t=u(null);return b((()=>{t.current=null}),n),b((()=>{const n=e!==pu;n&&!t.current&&(t.current=e),!n&&t.current&&(t.current=null)}),[e]),t.current?Ud(e,t.current):pu}function Ep(e){return h((()=>e?function(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}(e):null),[e])}const kp=[];function Mp(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return zd(n)?n:e}const Sp=[{sensor:ip,options:{}},{sensor:ep,options:{}}],Ip={current:{}},jp={draggable:{measure:ju},droppable:{measure:ju,strategy:bp.WhileDragging,frequency:hp.Optimized},dragOverlay:{measure:Iu}};class Op extends Map{get(e){var n;return null!=e&&null!=(n=super.get(e))?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:n}=e;return!n}))}getNodeFor(e){var n,t;return null!=(n=null==(t=this.get(e))?void 0:t.node.current)?n:void 0}}const Np={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Op,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:su},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:jp,measureDroppableContainers:su,windowRect:null,measuringScheduled:!1},Dp={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:su,draggableNodes:new Map,over:null,measureDroppableContainers:su},Tp=s(Dp),Rp=s(Np);function Ap(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Op}}}function zp(e,n){switch(n.type){case lu.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case lu.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case lu.DragEnd:case lu.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case lu.RegisterDroppable:{const{element:t}=n,{id:r}=t,o=new Op(e.droppable.containers);return o.set(r,t),{...e,droppable:{...e.droppable,containers:o}}}case lu.SetDroppableDisabled:{const{id:t,key:r,disabled:o}=n,i=e.droppable.containers.get(t);if(!i||r!==i.key)return e;const a=new Op(e.droppable.containers);return a.set(t,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case lu.UnregisterDroppable:{const{id:t,key:r}=n,o=e.droppable.containers.get(t);if(!o||r!==o.key)return e;const i=new Op(e.droppable.containers);return i.delete(t),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Lp(e){let{disabled:n}=e;const{active:t,activatorEvent:r,draggableNodes:o}=d(Tp),i=Hd(r),a=Hd(null==t?void 0:t.id);return b((()=>{if(!n&&!r&&i&&null!=a){if(!Xd(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:n,node:t}=e;if(!n.current&&!t.current)return;requestAnimationFrame((()=>{for(const e of[n.current,t.current]){if(!e)continue;const n=eu(e);if(n){n.focus();break}}}))}}),[r,n,o,a,i]),null}function Bp(e,n){let{transform:t,...r}=n;return null!=e&&e.length?e.reduce(((e,n)=>n({transform:e,...r})),t):t}const Zp=s({...pu,scaleX:1,scaleY:1});var Pp;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Pp||(Pp={}));const Fp=m((function(e){var n,t,r,o;let{id:i,accessibility:s,autoScroll:d=!0,children:p,sensors:f=Sp,collisionDetection:g=$u,measuring:m,modifiers:y,...w}=e;const x=v(zp,void 0,Ap),[$,C]=x,[E,M]=function(){const[e]=c((()=>new Set)),n=l((n=>(e.add(n),()=>e.delete(n))),[e]);return[l((n=>{let{type:t,event:r}=n;e.forEach((e=>{var n;return null==(n=e[t])?void 0:n.call(e,r)}))}),[e]),n]}(),[S,I]=c(Pp.Uninitialized),j=S===Pp.Initialized,{draggable:{active:O,nodes:N,translate:D},droppable:{containers:T}}=$,R=O?N.get(O):null,A=u({initial:null,translated:null}),z=h((()=>{var e;return null!=O?{id:O,data:null!=(e=null==R?void 0:R.data)?e:Ip,rect:A}:null}),[O,R]),L=u(null),[B,Z]=c(null),[P,F]=c(null),q=Fd(w,Object.values(w)),W=Gd("DndDescribedBy",i),H=h((()=>T.getEnabled()),[T]),_=function(e){return h((()=>({draggable:{...jp.draggable,...null==e?void 0:e.draggable},droppable:{...jp.droppable,...null==e?void 0:e.droppable},dragOverlay:{...jp.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(m),{droppableRects:G,measureDroppableContainers:V,measuringScheduled:Y}=function(e,n){let{dragging:t,dependencies:r,config:o}=n;const[i,a]=c(null),{frequency:s,measure:d,strategy:p}=o,f=u(e),g=function(){switch(p){case bp.Always:return!1;case bp.BeforeDragging:return t;default:return!t}}(),h=Fd(g),m=l((function(e){void 0===e&&(e=[]),h.current||a((n=>null===n?e:n.concat(e.filter((e=>!n.includes(e))))))}),[h]),v=u(null),y=qd((n=>{if(g&&!t)return mp;if(!n||n===mp||f.current!==e||null!=i){const n=new Map;for(let t of e){if(!t)continue;if(i&&i.length>0&&!i.includes(t.id)&&t.rect.current){n.set(t.id,t.rect.current);continue}const e=t.node.current,r=e?new _u(d(e),e):null;t.rect.current=r,r&&n.set(t.id,r)}return n}return n}),[e,i,t,g,d]);return b((()=>{f.current=e}),[e]),b((()=>{g||m()}),[t,g]),b((()=>{i&&i.length>0&&a(null)}),[JSON.stringify(i)]),b((()=>{g||"number"!=typeof s||null!==v.current||(v.current=setTimeout((()=>{m(),v.current=null}),s))}),[s,g,m,...r]),{droppableRects:y,measureDroppableContainers:m,measuringScheduled:null!=i}}(H,{dragging:j,dependencies:[D.x,D.y],config:_.droppable}),U=function(e,n){const t=null!==n?e.get(n):void 0,r=t?t.node.current:null;return qd((e=>{var t;return null===n?null:null!=(t=null!=r?r:e)?t:null}),[r,n])}(N,O),X=h((()=>P?Kd(P):null),[P]),K=function(){const e=!1===(null==B?void 0:B.autoScrollEnabled),n="object"==typeof d?!1===d.enabled:!1===d,t=j&&!e&&!n;if("object"==typeof d)return{...d,enabled:t};return{enabled:t}}(),J=function(e,n){return vp(e,n)}(U,_.draggable.measure);!function(e){let{activeNode:n,measure:t,initialRect:r,config:o=!0}=e;const i=u(!1),{x:a,y:c}="boolean"==typeof o?{x:o,y:o}:o;Zd((()=>{if(!a&&!c||!n)return void(i.current=!1);if(i.current||!r)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const o=Cu(t(e),r);if(a||(o.x=0),c||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const n=Nu(e);n&&n.scrollBy({top:o.y,left:o.x})}}),[n,a,c,r,t])}({activeNode:O?N.get(O):null,config:K.layoutShiftCompensation,initialRect:J,measure:_.draggable.measure});const Q=xp(U,_.draggable.measure,J),ee=xp(U?U.parentElement:null),ne=u({activatorEvent:null,active:null,activeNode:U,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),te=T.getNodeFor(null==(n=ne.current.over)?void 0:n.id),re=function(e){let{measure:n}=e;const[t,r]=c(null),o=yp({callback:l((e=>{for(const{target:t}of e)if(zd(t)){r((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),i=l((e=>{const t=Mp(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),r(t?n(t):null)}),[n,o]),[a,s]=Wd(i);return h((()=>({nodeRef:a,rect:t,setRef:s})),[t,a,s])}({measure:_.dragOverlay.measure}),oe=null!=(t=re.nodeRef.current)?t:U,ie=j?null!=(r=re.rect)?r:Q:null,ae=Boolean(re.nodeRef.current&&re.rect),ce=Cu(le=ae?null:Q,vp(le));var le;const se=Ep(oe?Rd(oe):null),de=function(e){const n=u(e),t=qd((t=>e?t&&t!==$p&&e&&n.current&&e.parentNode===n.current.parentNode?t:Ou(e):$p),[e]);return b((()=>{n.current=e}),[e]),t}(j?null!=te?te:U:null),ue=function(e,n){void 0===n&&(n=Iu);const[t]=e,r=Ep(t?Rd(t):null),[o,i]=v((function(){return e.length?e.map((e=>Lu(e)?r:new _u(n(e),e))):kp}),kp),a=yp({callback:i});return e.length>0&&o===kp&&i(),Zd((()=>{e.length?e.forEach((e=>null==a?void 0:a.observe(e))):(null==a||a.disconnect(),i())}),[e]),o}(de),pe=Bp(y,{transform:{x:D.x-ce.x,y:D.y-ce.y,scaleX:1,scaleY:1},activatorEvent:P,active:z,activeNodeRect:Q,containerNodeRect:ee,draggingNodeRect:ie,over:ne.current.over,overlayNodeRect:re.rect,scrollableAncestors:de,scrollableAncestorRects:ue,windowRect:se}),fe=X?Yd(X,D):null,ge=function(e){const[n,t]=c(null),r=u(e),o=l((e=>{const n=Du(e.target);n&&t((e=>e?(e.set(n,Au(n)),new Map(e)):null))}),[]);return b((()=>{const n=r.current;if(e!==n){i(n);const a=e.map((e=>{const n=Du(e);return n?(n.addEventListener("scroll",o,{passive:!0}),[n,Au(n)]):null})).filter((e=>null!=e));t(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(n)};function i(e){e.forEach((e=>{const n=Du(e);null==n||n.removeEventListener("scroll",o)}))}}),[o,e]),h((()=>e.length?n?Array.from(n.values()).reduce(((e,n)=>Yd(e,n)),pu):qu(e):pu),[e,n])}(de),be=Cp(ge),he=Cp(ge,[Q]),me=Yd(pe,be),ve=ie?ku(ie,pe):null,ye=z&&ve?g({active:z,collisionRect:ve,droppableRects:G,droppableContainers:H,pointerCoordinates:fe}):null,we=vu(ye,"id"),[xe,$e]=c(null),Ce=function(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}(ae?pe:Yd(pe,he),null!=(o=null==xe?void 0:xe.rect)?o:null,Q),Ee=l(((e,n)=>{let{sensor:t,options:r}=n;if(null==L.current)return;const o=N.get(L.current);if(!o)return;const i=e.nativeEvent,a=new t({active:L.current,activeNode:o,event:i,options:r,context:ne,onStart(e){const n=L.current;if(null==n)return;const t=N.get(n);if(!t)return;const{onDragStart:r}=q.current,o={active:{id:n,data:t.data,rect:A}};k((()=>{null==r||r(o),I(Pp.Initializing),C({type:lu.DragStart,initialCoordinates:e,active:n}),E({type:"onDragStart",event:o})}))},onMove(e){C({type:lu.DragMove,coordinates:e})},onEnd:c(lu.DragEnd),onCancel:c(lu.DragCancel)});function c(e){return async function(){const{active:n,collisions:t,over:r,scrollAdjustedTranslate:o}=ne.current;let a=null;if(n&&o){const{cancelDrop:c}=q.current;if(a={activatorEvent:i,active:n,collisions:t,delta:o,over:r},e===lu.DragEnd&&"function"==typeof c){await Promise.resolve(c(a))&&(e=lu.DragCancel)}}L.current=null,k((()=>{C({type:e}),I(Pp.Uninitialized),$e(null),Z(null),F(null);const n=e===lu.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=q.current[n];null==e||e(a),E({type:n,event:a})}}))}}k((()=>{Z(a),F(e.nativeEvent)}))}),[N]),ke=l(((e,n)=>(t,r)=>{const o=t.nativeEvent,i=N.get(r);if(null!==L.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(t,n.options,a)&&(o.dndKit={capturedBy:n.sensor},L.current=r,Ee(t,n))}),[N,Ee]),Me=function(e,n){return h((()=>e.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[e,n])}(f,ke);!function(e){b((()=>{if(!Nd)return;const n=e.map((e=>{let{sensor:n}=e;return null==n.setup?void 0:n.setup()}));return()=>{for(const e of n)null==e||e()}}),e.map((e=>{let{sensor:n}=e;return n})))}(f),Zd((()=>{Q&&S===Pp.Initializing&&I(Pp.Initialized)}),[Q,S]),b((()=>{const{onDragMove:e}=q.current,{active:n,activatorEvent:t,collisions:r,over:o}=ne.current;if(!n||!t)return;const i={active:n,activatorEvent:t,collisions:r,delta:{x:me.x,y:me.y},over:o};k((()=>{null==e||e(i),E({type:"onDragMove",event:i})}))}),[me.x,me.y]),b((()=>{const{active:e,activatorEvent:n,collisions:t,droppableContainers:r,scrollAdjustedTranslate:o}=ne.current;if(!e||null==L.current||!n||!o)return;const{onDragOver:i}=q.current,a=r.get(we),c=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:n,collisions:t,delta:{x:o.x,y:o.y},over:c};k((()=>{$e(c),null==i||i(l),E({type:"onDragOver",event:l})}))}),[we]),Zd((()=>{ne.current={activatorEvent:P,active:z,activeNode:U,collisionRect:ve,collisions:ye,droppableRects:G,draggableNodes:N,draggingNode:oe,draggingNodeRect:ie,droppableContainers:T,over:xe,scrollableAncestors:de,scrollAdjustedTranslate:me},A.current={initial:ie,translated:ve}}),[z,U,ye,ve,N,oe,ie,G,T,xe,de,me]),fp({...K,delta:D,draggingRect:ve,pointerCoordinates:fe,scrollableAncestors:de,scrollableAncestorRects:ue});const Se=h((()=>({active:z,activeNode:U,activeNodeRect:Q,activatorEvent:P,collisions:ye,containerNodeRect:ee,dragOverlay:re,draggableNodes:N,droppableContainers:T,droppableRects:G,over:xe,measureDroppableContainers:V,scrollableAncestors:de,scrollableAncestorRects:ue,measuringConfiguration:_,measuringScheduled:Y,windowRect:se})),[z,U,Q,P,ye,ee,re,N,T,G,xe,V,de,ue,_,Y,se]),Ie=h((()=>({activatorEvent:P,activators:Me,active:z,activeNodeRect:Q,ariaDescribedById:{draggable:W},dispatch:C,draggableNodes:N,over:xe,measureDroppableContainers:V})),[P,Me,z,Q,C,W,N,xe,V]);return a.createElement(ou.Provider,{value:M},a.createElement(Tp.Provider,{value:Ie},a.createElement(Rp.Provider,{value:Se},a.createElement(Zp.Provider,{value:Ce},p)),a.createElement(Lp,{disabled:!1===(null==s?void 0:s.restoreFocus)})),a.createElement(cu,{...s,hiddenTextDescribedById:W}))})),qp=s(null),Wp="button",Hp="Droppable";function _p(e){let{id:n,data:t,disabled:r=!1,attributes:o}=e;const i=Gd(Hp),{activators:a,activatorEvent:c,active:l,activeNodeRect:s,ariaDescribedById:u,draggableNodes:p,over:f}=d(Tp),{role:g=Wp,roleDescription:b="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==l?void 0:l.id)===n,y=d(v?Zp:qp),[w,x]=Wd(),[$,C]=Wd(),E=function(e,n){return h((()=>e.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[e,n])}(a,n),k=Fd(t);Zd((()=>(p.set(n,{id:n,key:i,node:w,activatorNode:$,data:k}),()=>{const e=p.get(n);e&&e.key===i&&p.delete(n)})),[p,n]);return{active:l,activatorEvent:c,activeNodeRect:s,attributes:h((()=>({role:g,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||g!==Wp)||void 0,"aria-roledescription":b,"aria-describedby":u.draggable})),[r,g,m,v,b,u.draggable]),isDragging:v,listeners:r?void 0:E,node:w,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:y}}function Gp(){return d(Rp)}const Vp="Droppable",Yp={timeout:25};function Up(e){let{data:n,disabled:t=!1,id:r,resizeObserverConfig:o}=e;const i=Gd(Vp),{active:a,dispatch:c,over:s,measureDroppableContainers:p}=d(Tp),f=u({disabled:t}),g=u(!1),h=u(null),m=u(null),{disabled:v,updateMeasurementsFor:y,timeout:w}={...Yp,...o},x=Fd(null!=y?y:r),$=yp({callback:l((()=>{g.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{p(Array.isArray(x.current)?x.current:[x.current]),m.current=null}),w)):g.current=!0}),[w]),disabled:v||!a}),C=l(((e,n)=>{$&&(n&&($.unobserve(n),g.current=!1),e&&$.observe(e))}),[$]),[E,k]=Wd(C),M=Fd(n);return b((()=>{$&&E.current&&($.disconnect(),g.current=!1,$.observe(E.current))}),[E,$]),Zd((()=>(c({type:lu.RegisterDroppable,element:{id:r,key:i,disabled:t,node:E,rect:h,data:M}}),()=>c({type:lu.UnregisterDroppable,key:i,id:r}))),[r]),b((()=>{t!==f.current.disabled&&(c({type:lu.SetDroppableDisabled,id:r,key:i,disabled:t}),f.current.disabled=t)}),[r,i,t,c]),{active:a,rect:h,isOver:(null==s?void 0:s.id)===r,node:E,over:s,setNodeRef:k}}function Xp(e){let{animation:n,children:t}=e;const[r,o]=c(null),[i,l]=c(null),s=Hd(t);return t||r||!s||o(s),Zd((()=>{if(!i)return;const e=null==r?void 0:r.key,t=null==r?void 0:r.props.id;null!=e&&null!=t?Promise.resolve(n(t,i)).then((()=>{o(null)})):o(null)}),[n,r,i]),a.createElement(a.Fragment,null,t,r?y(r,{ref:l}):null)}const Kp={x:0,y:0,scaleX:1,scaleY:1};function Jp(e){let{children:n}=e;return a.createElement(Tp.Provider,{value:Dp},a.createElement(Zp.Provider,{value:Kp},n))}const Qp={position:"fixed",touchAction:"none"},ef=e=>Xd(e)?"transform 250ms ease":void 0,nf=p(((e,n)=>{let{as:t,activatorEvent:r,adjustScale:o,children:i,className:c,rect:l,style:s,transform:d,transition:u=ef}=e;if(!l)return null;const p=o?d:{...d,scaleX:1,scaleY:1},f={...Qp,width:l.width,height:l.height,top:l.top,left:l.left,transform:Jd.Transform.toString(p),transformOrigin:o&&r?gu(r,l):void 0,transition:"function"==typeof u?u(r):u,...s};return a.createElement(t,{className:c,style:f,ref:n},i)})),tf=e=>n=>{let{active:t,dragOverlay:r}=n;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,n]of Object.entries(i.active))void 0!==n&&(o[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(const[e,n]of Object.entries(i.dragOverlay))void 0!==n&&r.node.style.setProperty(e,n);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,n]of Object.entries(o))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}},rf={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:n,final:t}}=e;return[{transform:Jd.Transform.toString(n)},{transform:Jd.Transform.toString(t)}]},sideEffects:tf({styles:{active:{opacity:"0"}}})};function of(e){let{config:n,draggableNodes:t,droppableContainers:r,measuringConfiguration:o}=e;return Pd(((e,i)=>{if(null===n)return;const a=t.get(e);if(!a)return;const c=a.node.current;if(!c)return;const l=Mp(i);if(!l)return;const{transform:s}=Rd(i).getComputedStyle(i),d=Mu(s);if(!d)return;const u="function"==typeof n?n:function(e){const{duration:n,easing:t,sideEffects:r,keyframes:o}={...rf,...e};return e=>{let{active:i,dragOverlay:a,transform:c,...l}=e;if(!n)return;const s={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},d={scaleX:1!==c.scaleX?i.rect.width*c.scaleX/a.rect.width:1,scaleY:1!==c.scaleY?i.rect.height*c.scaleY/a.rect.height:1},u={x:c.x-s.x,y:c.y-s.y,...d},p=o({...l,active:i,dragOverlay:a,transform:{initial:c,final:u}}),[f]=p,g=p[p.length-1];if(JSON.stringify(f)===JSON.stringify(g))return;const b=null==r?void 0:r({active:i,dragOverlay:a,...l}),h=a.node.animate(p,{duration:n,easing:t,fill:"forwards"});return new Promise((e=>{h.onfinish=()=>{null==b||b(),e()}}))}}(n);return Wu(c,o.draggable.measure),u({active:{id:e,data:a.data,node:c,rect:o.draggable.measure(c)},draggableNodes:t,dragOverlay:{node:i,rect:o.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}let af=0;function cf(e){return h((()=>{if(null!=e)return af++,af}),[e])}const lf=a.memo((e=>{let{adjustScale:n=!1,children:t,dropAnimation:r,style:o,transition:i,modifiers:c,wrapperElement:l="div",className:s,zIndex:u=999}=e;const{activatorEvent:p,active:f,activeNodeRect:g,containerNodeRect:b,draggableNodes:h,droppableContainers:m,dragOverlay:v,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:$,windowRect:C}=Gp(),E=d(Zp),k=cf(null==f?void 0:f.id),M=Bp(c,{activatorEvent:p,active:f,activeNodeRect:g,containerNodeRect:b,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:x,scrollableAncestorRects:$,transform:E,windowRect:C}),S=vp(g),I=of({config:r,draggableNodes:h,droppableContainers:m,measuringConfiguration:w}),j=S?v.setRef:void 0;return a.createElement(Jp,null,a.createElement(Xp,{animation:I},f&&k?a.createElement(nf,{key:k,id:f.id,ref:j,as:l,activatorEvent:p,adjustScale:n,className:s,transition:i,rect:S,style:{zIndex:u,...o},transform:M},t):null))}));function sf(e,n,t){const r=e.slice();return r.splice(t<0?r.length+t:t,0,r.splice(n,1)[0]),r}function df(e,n){return e.reduce(((e,t,r)=>{const o=n.get(t);return o&&(e[r]=o),e}),Array(e.length))}function uf(e){return null!==e&&e>=0}const pf=e=>{let{rects:n,activeIndex:t,overIndex:r,index:o}=e;const i=sf(n,r,t),a=n[o],c=i[o];return c&&a?{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}:null},ff={scaleX:1,scaleY:1},gf=e=>{var n;let{activeIndex:t,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const c=null!=(n=i[t])?n:r;if(!c)return null;if(o===t){const e=i[a];return e?{x:0,y:t<a?e.top+e.height-(c.top+c.height):e.top-c.top,...ff}:null}const l=function(e,n,t){const r=e[n],o=e[n-1],i=e[n+1];if(!r)return 0;if(t<n)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-l,...ff}:o<t&&o>=a?{x:0,y:c.height+l,...ff}:{x:0,y:0,...ff}};const bf="Sortable",hf=a.createContext({activeIndex:-1,containerId:bf,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pf,disabled:{draggable:!1,droppable:!1}});function mf(e){let{children:n,id:t,items:r,strategy:o=pf,disabled:i=!1}=e;const{active:c,dragOverlay:l,droppableRects:s,over:d,measureDroppableContainers:p}=Gp(),f=Gd(bf,t),g=Boolean(null!==l.rect),m=h((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),v=null!=c,y=c?m.indexOf(c.id):-1,w=d?m.indexOf(d.id):-1,x=u(m),$=!function(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}(m,x.current),C=-1!==w&&-1===y||$,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);Zd((()=>{$&&v&&p(m)}),[$,m,v,p]),b((()=>{x.current=m}),[m]);const k=h((()=>({activeIndex:y,containerId:f,disabled:E,disableTransforms:C,items:m,overIndex:w,useDragOverlay:g,sortedRects:df(m,s),strategy:o})),[y,f,E.draggable,E.droppable,C,m,w,s,g,o]);return a.createElement(hf.Provider,{value:k},n)}const vf=e=>{let{id:n,items:t,activeIndex:r,overIndex:o}=e;return sf(t,r,o).indexOf(n)},yf=e=>{let{containerId:n,isSorting:t,wasDragging:r,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:l,transition:s}=e;return!(!s||!r)&&((c===i||o!==a)&&(!!t||a!==o&&n===l))},wf={duration:200,easing:"ease"},xf="transform",$f=Jd.Transition.toString({property:xf,duration:0,easing:"linear"}),Cf={roleDescription:"sortable"};function Ef(e){let{animateLayoutChanges:n=yf,attributes:t,disabled:r,data:o,getNewIndex:i=vf,id:a,strategy:l,resizeObserverConfig:s,transition:p=wf}=e;const{items:f,containerId:g,activeIndex:m,disabled:v,disableTransforms:y,sortedRects:w,overIndex:x,useDragOverlay:$,strategy:C}=d(hf),E=function(e,n){var t,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(t=null==e?void 0:e.draggable)?t:n.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:n.droppable}}(r,v),k=f.indexOf(a),M=h((()=>({sortable:{containerId:g,index:k,items:f},...o})),[g,o,k,f]),S=h((()=>f.slice(f.indexOf(a))),[f,a]),{rect:I,node:j,isOver:O,setNodeRef:N}=Up({id:a,data:M,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...s}}),{active:D,activatorEvent:T,activeNodeRect:R,attributes:A,setNodeRef:z,listeners:L,isDragging:B,over:Z,setActivatorNodeRef:P,transform:F}=_p({id:a,data:M,attributes:{...Cf,...t},disabled:E.draggable}),q=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return h((()=>e=>{n.forEach((n=>n(e)))}),n)}(N,z),W=Boolean(D),H=W&&!y&&uf(m)&&uf(x),_=!$&&B,G=_&&H?F:null,V=H?null!=G?G:(null!=l?l:C)({rects:w,activeNodeRect:R,activeIndex:m,overIndex:x,index:k}):null,Y=uf(m)&&uf(x)?i({id:a,items:f,activeIndex:m,overIndex:x}):k,U=null==D?void 0:D.id,X=u({activeId:U,items:f,newIndex:Y,containerId:g}),K=f!==X.current.items,J=n({active:D,containerId:g,isDragging:B,isSorting:W,id:a,index:k,items:f,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:p,wasDragging:null!=X.current.activeId}),Q=function(e){let{disabled:n,index:t,node:r,rect:o}=e;const[i,a]=c(null),l=u(t);return Zd((()=>{if(!n&&t!==l.current&&r.current){const e=o.current;if(e){const n=Iu(r.current,{ignoreTransform:!0}),t={x:e.left-n.left,y:e.top-n.top,scaleX:e.width/n.width,scaleY:e.height/n.height};(t.x||t.y)&&a(t)}}t!==l.current&&(l.current=t)}),[n,t,r,o]),b((()=>{i&&a(null)}),[i]),i}({disabled:!J,index:k,node:j,rect:I});return b((()=>{W&&X.current.newIndex!==Y&&(X.current.newIndex=Y),g!==X.current.containerId&&(X.current.containerId=g),f!==X.current.items&&(X.current.items=f)}),[W,Y,g,f]),b((()=>{if(U===X.current.activeId)return;if(U&&!X.current.activeId)return void(X.current.activeId=U);const e=setTimeout((()=>{X.current.activeId=U}),50);return()=>clearTimeout(e)}),[U]),{active:D,activeIndex:m,attributes:A,data:M,rect:I,index:k,newIndex:Y,items:f,isOver:O,isSorting:W,isDragging:B,listeners:L,node:j,overIndex:x,over:Z,setNodeRef:q,setActivatorNodeRef:P,setDroppableNodeRef:N,setDraggableNodeRef:z,transform:null!=Q?Q:V,transition:function(){if(Q||K&&X.current.newIndex===k)return $f;if(_&&!Xd(T)||!p)return;if(W||J)return Jd.Transition.toString({...p,property:xf});return}()}}function kf(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&"object"==typeof n.sortable&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Mf=[Uu.Down,Uu.Right,Uu.Up,Uu.Left],Sf=(e,n)=>{let{context:{active:t,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:c}}=n;if(Mf.includes(e.code)){if(e.preventDefault(),!t||!r)return;const n=[];i.getEnabled().forEach((t=>{if(!t||null!=t&&t.disabled)return;const i=o.get(t.id);if(i)switch(e.code){case Uu.Down:r.top<i.top&&n.push(t);break;case Uu.Up:r.top>i.top&&n.push(t);break;case Uu.Left:r.left>i.left&&n.push(t);break;case Uu.Right:r.left<i.left&&n.push(t)}}));const l=(e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const o=mu(n),i=[];for(const e of r){const{id:n}=e,r=t.get(n);if(r){const t=mu(r),a=o.reduce(((e,n,r)=>e+fu(t[r],n)),0),c=Number((a/4).toFixed(4));i.push({id:n,data:{droppableContainer:e,value:c}})}}return i.sort(bu)})({active:t,collisionRect:r,droppableRects:o,droppableContainers:n,pointerCoordinates:null});let s=vu(l,"id");if(s===(null==a?void 0:a.id)&&l.length>1&&(s=l[1].id),null!=s){const e=i.get(t.id),n=i.get(s),a=n?o.get(n.id):null,l=null==n?void 0:n.node.current;if(l&&a&&e&&n){const t=Ou(l).some(((e,n)=>c[n]!==e)),o=If(e,n),i=function(e,n){if(!kf(e)||!kf(n))return!1;if(!If(e,n))return!1;return e.data.current.sortable.index<n.data.current.sortable.index}(e,n),s=t||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},d={x:a.left,y:a.top};return s.x&&s.y?d:Ud(d,s)}}}};function If(e,n){return!(!kf(e)||!kf(n))&&e.data.current.sortable.containerId===n.data.current.sortable.containerId}var jf=s(Fp),Of=function(e){var n=d(jf);return b((function(){var e=document.documentElement.style.scrollBehavior;return document.documentElement.style.scrollBehavior="auto",function(){document.documentElement.style.scrollBehavior=e}})),a.createElement(n,S({},e))};function Nf(){var e=O(c(!1),2),n=e[0],t=e[1];return b((function(){var e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches)}),[]),n}var Df=function(e){var n=e.id,t=e.label,r=e.isHighlighted,o=Ef({id:n}),i=o.attributes,c=o.listeners,l=o.setNodeRef,s=o.transform,d=o.transition,u=o.isOver,p=o.isDragging,f={transform:Jd.Transform.toString(s),transition:d};return a.createElement(Ui,{isOver:u,isHighlighted:r},a.createElement(Vi,S({ref:l,style:f,isDisabled:p},i,c,{"aria-describedby":void 0,"aria-roledescription":"sortable item","aria-pressed":void 0,"aria-selected":!!i["aria-pressed"],role:"option"}),t))},Tf=function(e){var n=e.initialItems,t=e.onChange,r=e.isHighlighted,o=O(c(n),2),i=o[0],l=o[1],s=O(c(null),2),d=s[0],u=s[1],p=i.find((function(e){return e.id===d})),f=uu(du(lp),du(dp),du(ep,{coordinateGetter:Sf,scrollBehavior:Nf()?"instant":"smooth"}));return a.createElement(a.Fragment,null,a.createElement(Wi,{$mb:"space-between-m2"}),a.createElement(Of,{sensors:f,collisionDetection:wu,onDragEnd:function(e){var n=e.active,r=e.over;n.id!==(null==r?void 0:r.id)&&l((function(e){var o=e.findIndex((function(e){return e.id===n.id})),i=e.findIndex((function(e){return e.id===(null==r?void 0:r.id)})),a=sf(e,o,i);return null==t||t(a),a}));u(null)},onDragStart:function(e){var n=e.active;u(n.id.toString())},accessibility:{announcements:Rf(i)}},a.createElement(mf,{items:i,strategy:gf},a.createElement(rt,{$gap:"space-between-s",$flexDirection:"column",role:"listbox","aria-label":"Sortable items"},i.map((function(e){return a.createElement(Df,S({key:e.id},e,{isHighlighted:r}))}))),E(a.createElement(lf,null,p&&a.createElement(Vi,{isDragging:!0},p.label)),document.body))))};function Rf(e){var n=function(n){return e.findIndex((function(e){return e.id===n}))+1},t=function(n){var t;return null===(t=e.find((function(e){return e.id===n})))||void 0===t?void 0:t.label};return{onDragStart:function(){},onDragOver:function(r){var o=r.active,i=r.over;if(i)return"Sortable item ".concat(t(o.id)," is in position ").concat(n(i.id)," of ").concat(e.length)},onDragEnd:function(r){var o=r.active,i=r.over;if(i)return"Sortable item ".concat(t(o.id)," was dropped into position ").concat(n(i.id)," of ").concat(e.length)},onDragCancel:function(e){var n=e.active;return"Dragging was cancelled. Sortable item ".concat(t(n.id)," was dropped.")}}}var Af,zf,Lf,Bf=e(nt)(Af||(Af=D(["\n background-color: ",";\n background-color: color-mix(in lch, ",' 5%, transparent);\n\n &[data-over="true"] {\n background-color: ',";\n background-color: color-mix(\n in lch,\n "," 60%,\n transparent\n );\n }\n"],["\n background-color: ",";\n background-color: color-mix(in lch, ",' 5%, transparent);\n\n &[data-over="true"] {\n background-color: ',";\n background-color: color-mix(\n in lch,\n "," 60%,\n transparent\n );\n }\n"])),z("grey20"),z("black"),z("white"),z("white")),Zf=p((function(e,n){var t=e.isOver,r=e.children,o=I(e,["isOver","children"]),i=O(c(null),2),l=i[0],s=i[1],d=O(c(0),2),u=d[0],p=d[1];return f((function(){if(l){var e=new ResizeObserver((function(e){var n,t,r=function(e){p((function(n){var t,r;return Math.max(null!==(r=null===(t=e.borderBoxSize[0])||void 0===t?void 0:t.blockSize)&&void 0!==r?r:0,n)}))};try{for(var o=j(e),i=o.next();!i.done;i=o.next()){r(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}}));return e.observe(l),window.addEventListener("resize",n),function(){e.disconnect(),window.removeEventListener("resize",n)}}function n(){p(0)}}),[l]),a.createElement(Bf,S({ref:n,$mb:"space-between-m2",$borderRadius:"border-radius-l","data-over":t,style:{minHeight:0===u?"auto":u}},o),a.createElement(rt,{$alignItems:"flex-start",$minHeight:"all-spacing-13",$pa:"inner-padding-s",$gap:"space-between-xs",$flexWrap:"wrap",ref:s},r))})),Pf=function(e){var n=e.id,t=e.label,r=e.isOver,o=_p({id:n,data:{id:n,label:t}}),i=o.attributes,c=o.listeners,l=o.setNodeRef,s=o.isDragging;return a.createElement(Vi,S({ref:l,isDisabled:r,color:"text-inverted",background:"bg-btn-primary",iconColor:"icon-main"},i,c,{role:"option","aria-describedby":void 0,"aria-roledescription":"draggable item","aria-pressed":void 0,"aria-selected":!!i["aria-pressed"],style:{opacity:s?0:1}}),t)},Ff=function(e){var n=e.children,t=Up({id:"holding-pen",data:{label:"holding pen"}}),r=t.setNodeRef,o=t.isOver;return a.createElement(Zf,{ref:r,isOver:o,"aria-label":"Available items","data-testid":"holding-pen",role:"listbox"},n)},qf=function(e){var n=e.id,t=e.label,r=e.match,o=e.isHighlighted,i=Up({id:n,data:{id:n,label:t}}),c=i.setNodeRef,l=i.isOver,s=i.active;return a.createElement(Ui,{isOver:l,isDisabled:!s,ref:c,id:n,labelSlot:t,"data-testid":"slot",isHighlighted:o},r&&a.createElement(Pf,S({},r,{isOver:l})))},Wf=function(e){var n=e.initialOptions,t=e.initialSlots,r=e.isHighlighted,o=e.onChange,i=O(c({}),2),l=i[0],s=i[1],d=u(n.slice().sort((function(){return Math.random()-.5}))).current,p=u(t).current,f=O(c(null),2),g=f[0],b=f[1],h=d.find((function(e){return e.id===g})),m=Nf(),v=uu(du(lp),du(dp),du(ep,{coordinateGetter:Sf,scrollBehavior:m?"instant":"smooth"})),y=Object.values(l).map((function(e){return e.id})),w=d.filter((function(e){return!y.includes(e.id)}));return a.createElement(a.Fragment,null,a.createElement(Wi,{$mb:"space-between-m2"}),a.createElement(Of,{sensors:v,collisionDetection:wu,onDragEnd:function(e){var n=e.active,t=e.over;t&&s((function(e){var r=Object.entries(e).filter((function(e){var t=O(e,2)[1];return(null==t?void 0:t.id)!==n.id})),i=Object.fromEntries(r);return"holding-pen"!==t.id&&(i[t.id]=n.data.current),null==o||o(i),i}));b(null)},onDragStart:function(e){var n=e.active;b(n.id.toString())},accessibility:{announcements:Hf}},a.createElement(Ff,null,w.map((function(e){return a.createElement(Pf,S({key:e.id},e))}))),a.createElement(rt,{$gap:"space-between-s",$flexDirection:"column","aria-label":"Matched items",role:"listbox"},p.map((function(e){return a.createElement(qf,S({key:e.id},e,{isHighlighted:r,match:l[e.id]}))}))),E(a.createElement(lf,{dropAnimation:m?null:void 0},h&&a.createElement(Vi,{isDragging:!0},h.label)),document.body)))},Hf={onDragStart:function(){},onDragOver:function(e){var n,t=e.active,r=e.over;if((null==r?void 0:r.data.current)&&(null===(n=t.data)||void 0===n?void 0:n.current))return"Item ".concat(t.data.current.label," is over ").concat(r.data.current.label)},onDragEnd:function(e){var n,t=e.active,r=e.over;if((null==r?void 0:r.data.current)&&(null===(n=t.data)||void 0===n?void 0:n.current))return"Item ".concat(t.data.current.label," was dropped onto ").concat(r.data.current.label)},onDragCancel:function(e){var n,t=e.active;if(null===(n=t.data)||void 0===n?void 0:n.current)return"Dragging was cancelled. Item ".concat(t.data.current.label," was dropped.")}},_f=e(rt)(Lf||(Lf=D(["\n @media (min-width: ","px) {\n ","\n"],["\n @media (min-width: ","px) {\n ","\n"])),G("large"),(function(e){return n(zf||(zf=D(["\n background-image: url(",");\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n "],["\n background-image: url(",");\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n "])),function(e,n){var t="https://".concat(process.env.NEXT_PUBLIC_OAK_ASSETS_HOST,"/").concat(process.env.NEXT_PUBLIC_OAK_ASSETS_PATH,"/");switch(e){case"lesson-listing":return"primary"===n?"".concat(t).concat(Pt):"".concat(t).concat(Ft);case"unit-listing":return"primary"===n?"".concat(t).concat(Wt):"".concat(t).concat(Ht);case"subject-listing":return"".concat(t).concat(_t);case"year-listing":return"".concat(t).concat(qt);default:return""}}(e.sectionName,null==e?void 0:e.phase))})),Gf=function(e){var n=e.sectionName,t=e.topNavSlot,r=e.phase,o=e.children,i=function(){switch(!0){case"lesson-listing"===n&&"primary"===r:return"bg-decorative4-very-subdued";case"lesson-listing"===n&&"secondary"===r:return"bg-decorative3-very-subdued";case"unit-listing"===n&&"primary"===r:return"bg-decorative4-very-subdued";case"unit-listing"===n&&"secondary"===r:return"bg-decorative3-very-subdued";case"tier-listing"===n&&"primary"===r:return"bg-decorative4-very-subdued";case"tier-listing"===n&&"secondary"===r:return"bg-decorative3-very-subdued";case"subject-listing"===n:case"year-listing"===n:return"bg-decorative1-main"}}();return a.createElement(_f,{$background:i,$flexDirection:"column",$alignItems:"center",$ph:["inner-padding-s","inner-padding-xl"],sectionName:n,phase:r},t&&a.createElement(rt,{$height:["all-spacing-13","all-spacing-14","all-spacing-16"],$alignItems:"center",$width:["100%","100%","all-spacing-24"]},t),o)};var Vf,Yf,Uf,Xf,Kf,Jf,Qf,eg,ng=e(ao)(Vf||(Vf=D(["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"],["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow: ",",\n "," !important;\n }\n"])),Dn("drop-shadow-lemon"),Dn("drop-shadow-grey")),tg=function(e){var n=e.isLoading,t=e.disabled,r=e.onClick,o=e.isOpen,i=e.buttonProps;return a.createElement(ng,S({iconName:o&&!t?"cross":"info",defaultIconBackground:o?"black":"bg-decorative5-main",defaultIconColor:o?"white":"black",hoverIconBackground:o?"black":"bg-decorative5-main",defaultTextColor:"text-primary",hoverTextColor:"text-primary",disabledIconBackground:"bg-btn-primary-disabled",disabledTextColor:"text-disabled",disabledIconColor:"white",isLoading:n,disabled:e.disabled,iconBackgroundSize:"all-spacing-8",iconSize:"all-spacing-7",onClick:r,"data-rac":!0},i))},rg=function(e){e.hint,e.isLoading,e.disabled;var n=I(e,["hint","isLoading","disabled"]),t=O(c(!1),2),r=t[0],o=t[1];return a.createElement(ei,S({tooltip:e.hint,isOpen:r,id:"info-tooltip"},n),a.createElement(tg,{onClick:function(){o(!r)},isOpen:r,buttonProps:{"aria-describedby":"info-tooltip"}}))},og=e(nt)(Yf||(Yf=D([""],[""]))),ig=e(Uo)(Uf||(Uf=D(["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"],["\n width: ",";\n height: ",";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ",";\n }\n"])),ne("all-spacing-8"),ne("all-spacing-8"),(function(e){return at(e.$disabled?"icon-disabled":"icon-inverted")})),ag=n(Xf||(Xf=D(["\n "," {\n box-shadow: ",",\n ",";\n }\n"],["\n "," {\n box-shadow: ",",\n ",";\n }\n"])),ig,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey")),cg=n(Kf||(Kf=D(["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"],["\n "," {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"])),ig,z("bg-btn-primary"),at("icon-main")),lg=e(rt)(Qf||(Qf=D(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return e.$disabled&&"cursor: not-allowed"}),(function(e){return!e.$disabled&&n(Jf||(Jf=D(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n ","\n }\n "],["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n\n ","\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n ","\n ","\n }\n "])),z("bg-decorative1-subdued"),og,cg,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"),ag,cg)})),sg=e(nt)(eg||(eg=D(["\n flex: 1;\n"],["\n flex: 1;\n"]))),dg=function(e){var n=e.as;e.lessonSectionName,e.progress;var t=e.disabled,r=e.href,o=e.unavailable,i=e.onClick,c=I(e,["as","lessonSectionName","progress","disabled","href","unavailable","onClick"]),l=t||o;return a.createElement(nt,{role:"listitem"},a.createElement(lg,S({as:l?"div":null!=n?n:"a",$gap:["space-between-s","space-between-m2"],$alignItems:"center",$justifyContent:"space-between",$flexWrap:"wrap",$background:o?"bg-neutral":"bg-primary",$pa:["inner-padding-l","inner-padding-xl"],$borderRadius:"border-radius-m",$ba:o?"border-solid-m":"border-solid-none",$borderColor:o?"border-neutral-lighter":"transparent",$disabled:l,$color:"text-primary",href:l?void 0:r,onClick:l?void 0:i},c),a.createElement(rt,{$alignItems:"center",$gap:["space-between-m2"]}," ",a.createElement(rt,null,a.createElement(nt,{$font:["heading-5","heading-4"],$color:e.unavailable?"text-subdued":"text-primary",$textDecoration:"none"},e.index)),a.createElement(sg,null,a.createElement(og,{$font:["heading-6","heading-5"],$color:l?"text-subdued":"text-primary"},e.title))),a.createElement(rt,{$alignItems:"center",$gap:"space-between-xs",$flexBasis:"auto",$flexGrow:1,$justifyContent:"flex-end"},e.numberOfLessons&&!e.unavailable&&a.createElement(og,{$font:"heading-7",$color:l?"text-subdued":"text-primary"},e.numberOfLessons," lessons"),e.unavailable&&a.createElement(og,{$font:"heading-7",$color:l?"text-subdued":"text-primary"},"Unavailable"),!e.unavailable&&a.createElement(ig,{iconName:"chevron-right",$disabled:l}))))},ug=function(e){var n=e.phase,t=e.element,r=I(e,["phase","element"]),o="primary"===n?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",i="primary"===n?"bg-decorative4-main":"bg-decorative3-main",c="primary"===n?"border-decorative4-stronger":"border-decorative3-stronger";return a.createElement(eo,S({element:null!=t?t:"button",pv:"inner-padding-xl",ph:"inner-padding-xl",font:"heading-6",defaultBorderColor:c,defaultBackground:o,defaultTextColor:"text-primary",hoverBackground:i,hoverBorderColor:c,hoverTextColor:"text-primary",disabledBackground:"bg-btn-secondary-disabled",disabledBorderColor:"border-neutral-lighter",disabledTextColor:"text-subdued"},r))},pg=function(e){var n=e.phase,t=e.element,r=e.subjectIconName,o=I(e,["phase","element","subjectIconName"]),i="primary"===n?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",c="primary"===n?"bg-decorative4-main":"bg-decorative3-main",l="primary"===n?"border-decorative4-stronger":"border-decorative3-stronger",s=a.createElement(Qt,{iconName:r,$minWidth:"all-spacing-12",$minHeight:"all-spacing-12","aria-hidden":"true"});return a.createElement(eo,S({element:null!=t?t:"button",iconOverride:s,iconLayout:"column",iconGap:"space-between-sssx",pv:null,pt:"inner-padding-s",pb:"inner-padding-xl",ph:"inner-padding-s",font:"heading-7",defaultBorderColor:l,defaultBackground:i,defaultTextColor:"text-primary",hoverBackground:c,hoverBorderColor:l,hoverTextColor:"text-primary",disabledBackground:"bg-btn-secondary-disabled",disabledBorderColor:"border-neutral-lighter",disabledTextColor:"text-subdued",textAlign:"center",innerWidth:"all-spacing-16"},o))},fg=function(e){var n=e.count,t=e.countHeader,r=e.tag;return a.createElement(Nt,{tag:r,$font:["heading-6","heading-6"]},t,a.createElement(ot,{$font:"heading-light-6"}," (".concat(n,")")))},gg=function(e){var n=e.numberOfLessons,t=e.listItems;return a.createElement(rt,{$flexDirection:["column","row"],$flexWrap:"wrap",$justifyContent:"space-between",$flexGrow:[null,1],$alignItems:["flex-start","center"],$gap:"space-between-m",$mt:"space-between-m2"},a.createElement(fg,{tag:"h1",count:n,countHeader:"Previously released lessons"}),a.createElement(ii,{listItems:t,$background:"bg-decorative5-very-subdued",$borderRadius:"border-radius-s",$borderColor:"border-decorative5",$ba:"border-solid-s",$ph:"inner-padding-xs",$pv:"inner-padding-ssx"}))},bg=function(e){var n=e.children,t=e.phase,r=e.titleSlot,o=e.counterSlot,i="primary"===t?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",c="primary"===t?"bg-decorative4-subdued":"bg-decorative3-subdued";return a.createElement(rt,{$flexDirection:"column",$width:["100%","all-spacing-22","all-spacing-23"],$background:i},r&&a.createElement(rt,{$flexDirection:"column",$gap:["space-between-m","space-between-m2","space-between-m2"]},r,a.createElement(ji,{hrColor:"white",$height:"all-spacing-1"})),a.createElement(rt,{$mv:"space-between-m"},o),a.createElement(rt,{$flexDirection:"column",$pa:"inner-padding-m",$borderRadius:"border-radius-l",$gap:"space-between-s",$background:c,role:"list"},n))},hg=function(e){var n=e.iconBackground,t=void 0===n?"primary":n,r=e.title,o=e.iconName,i=e.alt,c=e.breadcrumbs,l=e.optionalityTitle;return a.createElement(rt,{$flexDirection:"row",$gap:"space-between-m"},a.createElement(Mi,{fill:mg(t),iconName:o,$flexGrow:0,iconHeight:["all-spacing-9","all-spacing-10","all-spacing-10"],iconWidth:["all-spacing-9","all-spacing-10","all-spacing-10"],$width:["all-spacing-11","all-spacing-13","all-spacing-13"],$height:["all-spacing-11","all-spacing-13","all-spacing-13"],alt:i}),a.createElement(rt,{$flexDirection:"column",$gap:"space-between-s"},l&&a.createElement(Nt,{tag:"h2",$font:["heading-7"]},l),a.createElement(Nt,{tag:"h1",$font:["heading-5","heading-4"]},r),a.createElement(ii,{listItems:c})))};function mg(e){return"primary"===e?"bg-decorative4-main":"bg-decorative3-main"}var vg,yg,wg,xg,$g,Cg,Eg,kg,Mg,Sg,Ig,jg,Og,Ng,Dg,Tg,Rg,Ag=function(e){var n=e.children,t=e.phase,r=e.titleSlot,o=e.optionTitleSlot,i="primary"===t?"bg-decorative4-very-subdued":"bg-decorative3-very-subdued",c="primary"===t?"bg-decorative4-subdued":"bg-decorative3-subdued";return a.createElement(rt,{$flexDirection:"column",$width:["100%","all-spacing-22","all-spacing-23"],$background:i},r&&a.createElement(rt,{$flexDirection:"column",$gap:["space-between-m","space-between-m2","space-between-m2"],$mb:"space-between-m2"},r,a.createElement(ji,{hrColor:"white",$height:"all-spacing-1"})),a.createElement(rt,{$justifyContent:"center",$background:"bg-primary",$ba:"border-solid-m",$borderRadius:"border-radius-l",$pa:"inner-padding-xl",$borderColor:c},a.createElement(rt,{$pv:"inner-padding-xl",$flexDirection:"column",$alignItems:"center",$gap:"space-between-l"},o,a.createElement(rt,{$gap:"space-between-s",$flexWrap:"wrap",$justifyContent:"center"},n))))},zg=function(e){return void 0===e&&(e=[]),Array.from(new Set(null==e?void 0:e.map((function(e){return e.contentguidanceLabel}))))},Lg=function(e){var n=e.isOpen,t=e.onAccept,r=e.onDecline,o=e.contentGuidance,i=e.supervisionLevel,c=void 0===i?null:i,l=e.acceptText,s=void 0===l?"I understand, continue":l,d=e.declineText,u=void 0===d?"Take me back to lessons":d;return a.createElement(Ps,{isOpen:n,modalFlexProps:{"aria-label":"Content guidance modal"},footerSlot:a.createElement(rt,{$alignItems:"center",$flexDirection:"column",$justifyContent:"center",$pv:"inner-padding-xl",$rowGap:"space-between-m"},a.createElement(no,{$font:"heading-7",onClick:t,"data-testid":"acceptButton"},s),a.createElement(to,{$font:"heading-7",iconName:"arrow-left",onClick:r,"data-testid":"declineButton"},u)),hideCloseButton:!0},a.createElement(Fs,{iconName:"warning",iconOverride:{$colorFilter:"amber"},title:"Content guidance"},a.createElement(rt,{$flexDirection:"column",$rowGap:"space-between-m2"},zg(o).map((function(e,n){return a.createElement(Nt,{key:n,$font:["heading-light-7","heading-light-7","heading-light-6"],$textAlign:"center",tag:"h2"},e)})),c&&a.createElement(Nt,{$font:["heading-light-7","heading-light-7","heading-light-6"],$textAlign:"center",tag:"h2"},c))))},Bg=function(e){var n=e.children;e.index,e.title;var t=e.unavailable;e.disabled;var r=I(e,["children","index","title","unavailable","disabled"]),o=e.disabled||e.unavailable;return a.createElement(rt,S({$borderRadius:"border-radius-m",$pa:"inner-padding-xl",$flexDirection:"column",$gap:"space-between-m",$background:t?"bg-neutral":"bg-primary"},r),a.createElement(rt,{$alignItems:"center",$gap:"space-between-m2"},a.createElement(rt,null,a.createElement(nt,{$font:["heading-5","heading-4"],$color:e.unavailable?"text-subdued":"text-primary",$textDecoration:"none"},e.index)),a.createElement(nt,{$font:["heading-6","heading-5"],$color:o?"text-subdued":"text-primary"},e.title)),a.createElement(nr,{$gridTemplateColumns:["repeat(1,1fr)","repeat(2, 1fr)"],$cg:"space-between-xs",$rg:"space-between-xs"},n))},Zg=e(nt)(vg||(vg=D([""],[""]))),Pg=e(rt)(wg||(wg=D(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"],["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow: ",",\n ",";\n }\n\n ","\n\n ","\n"])),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),(function(e){return e.$disabled&&"cursor: not-allowed"}),(function(e){return!e.$disabled&&n(yg||(yg=D(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n }\n "],["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ",";\n "," {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow: ",",\n ",";\n }\n "])),z("bg-decorative1-subdued"),Zg,Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"))})),Fg=function(e){e.lessonSectionName,e.progress;var n=e.disabled,t=e.href,r=e.unavailable,o=e.onClick,i=e.numberOfLessons,c=I(e,["lessonSectionName","progress","disabled","href","unavailable","onClick","numberOfLessons"]),l=n||r;return a.createElement(Pg,S({as:l?"div":"a",$flexGrow:1,$background:r?"bg-neutral":"bg-primary",$disabled:l,$color:"text-primary",href:l?void 0:t,onClick:l?void 0:o},c),a.createElement(qs,{fill:r?"border-neutral-lighter":"black",stroke:r?"border-neutral-lighter":"black",strokeWidth:"border-solid-s"},a.createElement(rt,{$flexDirection:"column",$gap:"all-spacing-2"},a.createElement(Zg,{$font:["heading-7","heading-6"],$color:l?"text-subdued":"text-primary"},e.title),a.createElement(rt,{$alignItems:"center",$gap:"space-between-sssx"},!e.unavailable&&a.createElement(a.Fragment,null,a.createElement(Zg,{$font:"heading-light-7",$color:l?"text-subdued":"text-primary"},i," lessons"),a.createElement(Uo,{iconName:"chevron-right",$width:"all-spacing-7",$height:"all-spacing-7",$background:"transparent",$colorFilter:l?"icon-disabled":"icon-inverted"})),e.unavailable&&a.createElement(Zg,{$font:"heading-7",$color:l?"text-subdued":"text-primary"},"Unavailable")))))},qg=e(Qt)(xg||(xg=D([""],[""]))),Wg=e(ho)($g||($g=D(["\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + "," {\n filter: ",";\n }\n\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n &:hover:not(:disabled) {\n background: ",";\n }\n"],["\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + "," {\n filter: ",";\n }\n\n &:checked:not(:disabled) {\n border: ",";\n border-color: ",";\n }\n\n &:checked:disabled {\n border: ",";\n border-color: ",";\n }\n\n &:hover:not(:disabled) {\n background: ",";\n }\n"])),qg,(function(e){return e.keepIconColor?"none":at("white")}),un("border-solid-l"),z("border-primary"),un("border-solid-l"),z("text-disabled"),z("bg-primary")),Hg=e(rt)(Cg||(Cg=D(["\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ",";\n color: ",";\n }\n"],["\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) "," {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ",";\n }\n\n &:focus-within {\n box-shadow: ",",\n ",";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ",";\n color: ",";\n }\n"])),Fo,z("bg-neutral"),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),z("black"),z("white")),_g=function(e){var n=e.id,t=e.value,r=e.disabled,o=e.innerRef,i=e.displayValue,c=e.icon,l=I(e,["id","value","disabled","innerRef","displayValue","icon"]),s=u(null),d=null!=o?o:s;return a.createElement(rt,{$minHeight:"all-spacing-8",$position:"relative"},a.createElement(Hg,{$borderRadius:"border-radius-s",$borderColor:"border-neutral-lighter",$ba:"border-solid-s",$background:"white",onClick:function(e){var t;e.target.id!==n&&(null===(t=d.current)||void 0===t||t.click())},$ph:"inner-padding-s",$pv:"inner-padding-ssx",$gap:"space-between-sssx"},a.createElement(Wg,S({id:n,value:t,disabled:r,ref:d},l)),c&&a.createElement(qg,{alt:"",iconName:c}),a.createElement(Fo,{pointerEvents:"none",htmlFor:n,$font:"heading-7",disabled:r},i)))},Gg=e.nav(Eg||(Eg=D(["\n outline: none;\n"],["\n outline: none;\n"]))),Vg=e(Zi)(kg||(kg=D(["\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ",";\n color: ",";\n text-align: center;\n line-height: 32px;\n margin-right: ",";\n text-decoration: none;\n }\n &:hover::before {\n background-color: ",";\n box-shadow: ",";\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow: ",",\n ",";\n text-decoration: none;\n }\n &:active {\n color: ",";\n }\n &:active::before {\n box-shadow: ",",\n ",";\n background-color: ",";\n }\n"],["\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ",";\n color: ",";\n text-align: center;\n line-height: 32px;\n margin-right: ",";\n text-decoration: none;\n }\n &:hover::before {\n background-color: ",";\n box-shadow: ",";\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow: ",",\n ",";\n text-decoration: none;\n }\n &:active {\n color: ",";\n }\n &:active::before {\n box-shadow: ",",\n ",";\n background-color: ",";\n }\n"])),z("black"),z("white"),ne("space-between-xs"),z("bg-btn-primary-hover"),Dn("drop-shadow-lemon"),Dn("drop-shadow-centered-lemon"),Dn("drop-shadow-centered-grey"),z("black"),Dn("drop-shadow-lemon"),Dn("drop-shadow-grey"),z("black")),Yg=e.ol(Mg||(Mg=D(["\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n"],["\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n"]))),Ug=e(zt)(Sg||(Sg=D(["\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ",";\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ",";\n }\n"],["\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ",";\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ",";\n }\n"])),ne("space-between-xs"),z("bg-btn-primary-hover")),Xg=function(e){var n=e.items,t=e.ariaLabel,r=e.title,o=e.anchorTarget,i=e.onClick,l=I(e,["items","ariaLabel","title","anchorTarget","onClick"]),s=O(c(null),2),d=s[0],u=s[1],p=function(e){e.key&&"Tab"!==e.key&&u(e.currentTarget.hash)};return a.createElement(Gg,S({"aria-label":t},l),o&&a.createElement(Wr,{id:o}),r&&a.createElement(nt,{$mb:"space-between-m"},a.createElement(ot,{$font:"heading-light-7"},r)),a.createElement(Yg,{role:"list"},n.map((function(e,n){return a.createElement(Ug,{$font:"heading-7",key:n},a.createElement(Vg,{onClick:i,href:e.href,"aria-current":e.href===d?"true":void 0,onKeyDown:p},e.title))}))))},Kg=n(Ig||(Ig=D(["\n ","\n"],["\n ","\n"])),He),Jg=function(e){return a.createElement(co,{element:"a",iconName:"chevron-right",href:e.href,isTrailingIcon:!0,$pt:["inner-padding-xs","inner-padding-none"]},e.isLegacy?"Curriculum download":"Full ".concat(e.phase," curriculum"))},Qg=e((function(e){var n=e.subject,t=e.isLegacy,r=e.phase,o=e.href,i=I(e,["subject","isLegacy","phase","href"]),c=n.slice(0,1).toUpperCase()+n.slice(1).toLowerCase(),l=t?"Resources made during the pandemic to support remote teaching.":"Brand-new teaching resources, thoughtfully crafted by teachers for classroom needs.";return a.createElement(rt,S({$gap:"space-between-sssx",$alignItems:["flex-start","center"],$justifyContent:"space-between",$flexDirection:["column","row"]},i),a.createElement(rt,{$gap:"space-between-ssx",$flexDirection:"column"},a.createElement(rt,{$gap:"space-between-ssx"},a.createElement(Nt,{$font:"heading-4",tag:"h4"},t?"Units released in 2020-22":"".concat(c," units")),!t&&a.createElement(Ni,null)),a.createElement(It,{$font:"body-2"},l)),a.createElement(Jg,{isLegacy:t,phase:r,href:o}))}))(jg||(jg=D(["\n ","\n"],["\n ","\n"])),Kg),eb=n(Og||(Og=D([""],[""]))),nb=e((function(e){var n=e.isLegacy,t=e.showHeader,r=e.unitCards,o=e.curriculumHref,i=e.phase,c=e.subject,l=I(e,["isLegacy","showHeader","unitCards","curriculumHref","phase","subject"]);return a.createElement.apply(a,N([rt,S({$gap:"space-between-s",$alignItems:"center"},l,{$background:n?"bg-neutral":"bg-decorative3-very-subdued",$flexDirection:"column",$pa:"inner-padding-m",$borderRadius:"border-radius-m"}),t&&a.createElement(Qg,{isLegacy:n,href:o,phase:i,subject:c,$width:"100%"})],O(r),!1))}))(Ng||(Ng=D(["\n ","\n"],["\n ","\n"])),eb),tb=n(Dg||(Dg=D([""],[""]))),rb=e((function(e){var n,t=e.childSubjects,r=e.tiers,o=e.getTierSubjectValues,i=O(c(t&&t[0]?null===(n=t[0])||void 0===n?void 0:n.subjectSlug:null),2),l=i[0],s=i[1],d=O(c("foundation"),2),u=d[0],p=d[1];return a.createElement(rt,{$flexDirection:"column",$gap:"space-between-m"},a.createElement(Nt,{$font:"heading-4",tag:"h4"},"Download"),t&&a.createElement(so,{label:"Choose subject for KS4 units",name:"childSubjectRadio",onChange:function(e){var n=e.currentTarget.value;s(n)},$flexDirection:"column",$gap:"space-between-s",defaultValue:l||"combined-science","data-testid":"child-subject-selector"},t.map((function(e){var n=e.subject,t=e.subjectSlug;return a.createElement(bo,{id:t,label:n,value:t,"data-testid":"child-subject-radio-button",key:t})}))),r&&a.createElement(so,{"data-testid":"tier-selector",label:"Choose learning tier for KS4 units",name:"tierRadio",onChange:function(e){var n=e.currentTarget.value;p(n)},$flexDirection:"column",$gap:"space-between-s",defaultValue:u},r.map((function(e){var n=e.tier,t=e.tierSlug;return a.createElement(bo,{id:t,label:n,value:t,"data-testid":"tier-radio-button",key:t})}))),a.createElement(no,{iconName:"arrow-right",isTrailingIcon:!0,onClick:function(){o(u,l)}},"Next"))}))(Tg||(Tg=D(["\n ","\n"],["\n ","\n"])),tb),ob=function(e){var n=e.showPromoTag,t=I(e,["showPromoTag"]);return a.createElement(nt,{$width:"fit-content",$height:"fit-content",$position:"relative"},a.createElement(Mi,S({},t)),n&&a.createElement(nt,{$position:"absolute",$top:["all-spacing-0","all-spacing-2"],$left:["all-spacing-0","all-spacing-2"]},a.createElement(Ni,null)))},ib=e(no)(Rg||(Rg=D(["\n pointer-events: none;\n"],["\n pointer-events: none;\n"]))),ab=function(e){var n=e.href,t=e.isCurrent,r=void 0!==t&&t,o=e.shallow,i=void 0===o||o,c=e.children;return r?a.createElement(ib,{element:"span","aria-current":"page"},c):a.createElement(to,{element:M,href:n,shallow:i,isTrailingIcon:!0},c)},cb=function(e){var n=e.ariaLabel,t=e.navItems;return a.createElement("nav",{"aria-label":n},a.createElement(rt,{as:"ul",$flexDirection:["row"],$gap:"space-between-m",$mh:"space-between-none",$mv:"space-between-none",$ph:"inner-padding-none"},t.map((function(e,n){var t=e.href,r=e.isCurrent,o=e.children;return a.createElement(zt,{$listStyle:"none",key:n},a.createElement(ab,{href:t,isCurrent:r},o))}))))},lb=function(e){var n=e.state,t=e.innerMaxWidth,r=e.onOpenSettings,o=e.onHide,i=e.onAccept,c=e.onReject,l=e.isFixed,s=void 0!==l&&l,d=e.zIndex;return a.createElement(nt,{$background:"bg-neutral",$bt:"border-solid-s",$borderColor:"border-neutral",$position:s?"fixed":void 0,$bottom:s?"all-spacing-0":void 0,$right:s?"all-spacing-0":void 0,$left:s?"all-spacing-0":void 0,$zIndex:d||(s?"always-on-top":void 0),$color:"text-primary","data-testid":"cookie-banner"},a.createElement(nt,{$maxWidth:t,$mh:"auto"},a.createElement(rt,{$alignItems:["flex-start","flex-start","center"],$flexDirection:["column","column","row"],$mh:["space-between-s","space-between-m","space-between-xl"],$pv:"inner-padding-xl",$gap:["space-between-m","space-between-m","space-between-m2"]},function(){switch(n){case"accepted":case"rejected":return a.createElement(a.Fragment,null,a.createElement(nt,{$font:["body-3","body-2","heading-light-7"]},"You've"," ",a.createElement(ot,{as:"strong",$font:["body-3-bold","body-2-bold","heading-7"]},n)," ","additional cookies. You can"," ",a.createElement(Fi,{element:"button",onClick:r},"change your cookie settings")," ","at any time."),a.createElement(rt,{$justifyContent:"flex-end",$flexGrow:1},a.createElement(ro,{onClick:o},"Hide this message")));default:return a.createElement(a.Fragment,null,a.createElement(nt,{$font:["body-3","body-2"]},a.createElement(ot,{as:"strong",$font:["body-3-bold","body-2-bold"]},"This site uses cookies to store information on your computer.")," ","Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used."),a.createElement(rt,{$gap:["space-between-xs","space-between-m2"],$justifyContent:"flex-end",$flexDirection:["column","row"],$flexWrap:["wrap","wrap","nowrap"],$flexGrow:1},a.createElement(rt,{$font:"heading-7",$whiteSpace:"nowrap",$alignItems:"center"},a.createElement(Fi,{element:"button",type:"button",onClick:c,"data-testid":"cookie-banner-reject"},"Reject non-essential cookies")),a.createElement(ro,{onClick:r},"Cookie settings"),a.createElement(no,{onClick:i,"data-testid":"cookie-banner-accept"},"Accept all cookies")))}}())))},sb=function(e){var n=e.isOpen,t=e.onClose,r=e.onReject,o=e.onConfirm,i=e.onAccept,c=e.policyURL,l=e.policies,s=e.initialConsents;return a.createElement(Rs,{isOpen:n,onClose:t,footerSlot:a.createElement(zs,null,a.createElement(ro,{onClick:r,width:"100%"},"Reject non-essential cookies"),a.createElement(no,{type:"submit",form:"cookie-settings-form",width:"100%"},"Confirm my choices"))},a.createElement(As,null,a.createElement(Nt,{tag:"h2",$font:"heading-5",$mb:"space-between-s"},"This site uses cookies to store information on your computer."),a.createElement(Dt,{$mb:"space-between-m"},"Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used."),a.createElement(Dt,{$mb:"space-between-l"},"For more information, view our"," ",a.createElement(Pi,{href:c,target:"_blank"},"cookie policy"),"."),a.createElement(nt,{$mb:"space-between-xl"},a.createElement(no,{onClick:i,width:"all-spacing-18"},"Allow all")),a.createElement(nt,{$ph:"inner-padding-xs",as:"form",id:"cookie-settings-form",onSubmit:function(e){var n,t,r,i;e.preventDefault();var a=new FormData(e.currentTarget),c={};try{for(var s=j(l),d=s.next();!d.done;d=s.next()){var u=d.value;c[u.id]=u.strictlyNecessary?"granted":"denied"}}catch(e){n={error:e}}finally{try{d&&!d.done&&(t=s.return)&&t.call(s)}finally{if(n)throw n.error}}try{for(var p=j(a.getAll("consent")),f=p.next();!f.done;f=p.next()){c[f.value.toString()]="granted"}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}o(c)}},a.createElement(Nt,{tag:"h3",$font:"heading-6",$mb:"space-between-m"},"Manage consent preferences"),l.map((function(e){return a.createElement(Ji,{key:e.id,header:a.createElement(ot,{id:"cookie-settings-".concat(e.id,"-label")},e.label),id:"cookies-settings-".concat(e.id,"-accordion"),headerAfterSlot:a.createElement(Ho,{id:"cookies-settings-".concat(e.id,"-checkbox"),name:"consent",displayValue:"",value:e.id,defaultChecked:e.strictlyNecessary||"granted"===s[e.id],disabled:e.strictlyNecessary,"aria-labelledby":"cookie-settings-".concat(e.id,"-label")})},a.createElement(Dt,{$mb:"space-between-m2"},e.description),a.createElement(nt,{as:"dl",$pl:"inner-padding-m"},e.parties.length>0&&a.createElement(a.Fragment,null,a.createElement("dt",null,"Who do we share data with?"),a.createElement(nt,{as:"dd",$font:"body-3-bold",$mb:"space-between-s"},a.createElement(Tt,{$reset:!0},e.parties.map((function(e,n,t){return a.createElement(nt,{as:"li",key:n,$display:"inline"},a.createElement(Fi,{href:e.policyURL,target:"_blank",rel:"external nofollow"},e.name),n<t.length-1&&", ")}))))),a.createElement("dt",null,"Does this policy need cookies to work?"),a.createElement(nt,{as:"dd",$font:"body-3-bold"},"Yes.")))})))))};function db(e,n){switch(n.type){case"confirmModalConsents":case"acceptModalConsents":case"rejectModalConsents":return S(S({},e),{isSettingsModalOpen:!1,bannerState:"hidden"});case"acceptBannerConsents":return S(S({},e),{bannerState:"accepted"});case"rejectBannerConsents":return S(S({},e),{bannerState:"rejected"});case"openModal":return S(S({},e),{isSettingsModalOpen:!0});case"closeModal":return S(S({},e),{isSettingsModalOpen:!1});case"showBanner":return S(S({},e),{bannerState:"initial"});case"hideBanner":return S(S({},e),{bannerState:"hidden"});default:return e}}function ub(){return{isSettingsModalOpen:!1,bannerState:"hidden"}}var pb=s({isSettingsModalOpen:!1,policies:[],currentConsents:{},showBanner:function(){},hideBanner:function(){},openSettings:function(){},closeSettings:function(){},rejectModalConsents:function(){},confirmModalConsents:function(){},acceptModalConsents:function(){},rejectBannerConsents:function(){},acceptBannerConsents:function(){},bannerState:"initial"});function fb(){var e=d(pb);return{showBanner:e.showBanner,openSettings:e.openSettings}}var gb,bb,hb,mb=function(e){var n=e.children,t=e.currentConsents,r=e.policies,o=e.onConsentChange,i=O(v(db,null,ub),2),c=i[0],s=i[1],d=l((function(){return s({type:"closeModal"})}),[]),u=l((function(){o(Object.fromEntries(r.map((function(e){return[e.id,"granted"]}))))}),[o,r]),p=l((function(){o(Object.fromEntries(r.map((function(e){return[e.id,e.strictlyNecessary?"granted":"denied"]}))))}),[o,r]),f=l((function(){return s({type:"hideBanner"})}),[]),g=l((function(){return s({type:"showBanner"})}),[]),b=l((function(){return s({type:"openModal"})}),[]),h=l((function(){u(),s({type:"acceptBannerConsents"})}),[u]),m=l((function(){p(),s({type:"rejectBannerConsents"})}),[p]),y=l((function(){u(),s({type:"acceptModalConsents"})}),[u,f]),w=l((function(){p(),s({type:"rejectModalConsents"})}),[p,f]),x=l((function(e){o(e),s({type:"confirmModalConsents"})}),[o,f]);return a.createElement(pb.Provider,{value:{isSettingsModalOpen:c.isSettingsModalOpen,bannerState:c.bannerState,policies:r,currentConsents:t,showBanner:g,hideBanner:f,openSettings:b,closeSettings:d,confirmModalConsents:x,acceptBannerConsents:h,rejectBannerConsents:m,acceptModalConsents:y,rejectModalConsents:w}},n)},vb=function(e){var n=e.policyURL,t=e.isFixed,r=e.innerMaxWidth,o=e.zIndex,i=d(pb),c=i.policies,l=i.acceptModalConsents,s=i.rejectModalConsents,u=i.confirmModalConsents,p=i.hideBanner,f=i.openSettings,g=i.closeSettings,b=i.currentConsents,h=i.isSettingsModalOpen,m=i.acceptBannerConsents,v=i.rejectBannerConsents,y=i.bannerState;return a.createElement(a.Fragment,null,"hidden"!==y&&a.createElement(lb,{onHide:p,onAccept:m,onReject:v,onOpenSettings:f,state:y,isFixed:t,innerMaxWidth:r,zIndex:o}),a.createElement(sb,{policyURL:n,policies:c,isOpen:h,onClose:g,onReject:s,onConfirm:u,onAccept:l,initialConsents:b}))},yb=e(St)(gb||(gb=D(["\n width: 50px;\n height: 50px;\n margin-right: 12px;\n img {\n border-radius: 50%;\n }\n"],["\n width: 50px;\n height: 50px;\n margin-right: 12px;\n img {\n border-radius: 50%;\n }\n"]))),wb=n(bb||(bb=D([""],[""]))),xb=e((function(e){var n=e.headingTitle,t=e.breadcrumbs,r=e.authorName,o=e.authorTitle,i=e.subHeadingText,c=e.heroImageSrc,l=e.authorImageSrc,s=e.heroImageAlt,d=e.authorImageAlt;return a.createElement(nt,{$width:"100%",$background:"bg-decorative3-main",$overflowX:"hidden"},a.createElement(cr,null,a.createElement(rt,{$minWidth:"100%",$flexDirection:["column-reverse","column-reverse","row"],$alignItems:["center",null],$minHeight:"all-spacing-20",$background:"bg-decorative3-main",$zIndex:"neutral",$justifyContent:["space-between"],"data-testid":"oak-header-component"},a.createElement(rt,{$alignSelf:"flex-start",$height:"100%",$flexDirection:"column"},a.createElement(nt,{$display:["none","none","block"],$pv:"inner-padding-xl"},t),a.createElement(rt,{$flexDirection:"column",$maxWidth:"all-spacing-22",$minHeight:["all-spacing-0","all-spacing-0","all-spacing-20"],$mb:["space-between-none","space-between-l","space-between-none"],$justifyContent:"center"},a.createElement(Nt,{tag:"h2",$color:"grey80",$font:["heading-4","heading-3"],$mb:"space-between-m"},n),a.createElement(rt,{$mb:"space-between-m",$flexDirection:"row",$alignItems:"center"},a.createElement(yb,{alt:d,src:l,$zIndex:"in-front"}),a.createElement(nt,null,a.createElement(Dt,{$font:"heading-7"},r),a.createElement(Dt,{$font:"body-3"},o))),a.createElement(Dt,{$font:"body-1",$mb:["space-between-l","space-between-none"]},i))),a.createElement(rt,{$position:"relative",$minHeight:["all-spacing-18","all-spacing-21","all-spacing-21"],$alignItems:"center",$justifyContent:"center",$mb:["space-between-none","space-between-m2","space-between-none"]},a.createElement(St,{$transform:"rotate(-2.025deg)",src:c,width:100,$minHeight:["all-spacing-19","all-spacing-20","all-spacing-20"],$minWidth:["all-spacing-19","all-spacing-22","all-spacing-21"],alt:s,$zIndex:"in-front"}),a.createElement(rt,{$position:"absolute",$top:"all-spacing-0",$bottom:"all-spacing-0",$width:["all-spacing-20","all-spacing-23","all-spacing-23"]},a.createElement(Qt,{iconName:"loopdown",alt:"loopdown ui-graphic",$position:"absolute",$height:"100%",$width:"100%"}))),a.createElement(rt,{$alignSelf:"flex-start",$ml:"space-between-m",$pt:"inner-padding-xl",$pb:[null,"inner-padding-xl"],$display:["block","block","none"]},t))))}))(hb||(hb=D(["\n ","\n"],["\n ","\n"])),wb);export{Ot as HeadingTagComponent,Ji as OakAccordion,Wr as OakAnchorTarget,oi as OakBackLink,nt as OakBox,ii as OakBulletList,Di as OakCardHeader,qs as OakCardWithHandDrawnBorder,Ho as OakCheckBox,Lr as OakCloudinaryConfigProvider,Br as OakCloudinaryImage,zi as OakCollapsibleContent,lb as OakCookieBanner,vb as OakCookieConsent,mb as OakCookieConsentProvider,sb as OakCookieSettingsModal,rb as OakDownloadsJourneyChildSubjectTierSelector,Wi as OakDragAndDropInstructions,Vi as OakDraggable,Xi as OakDraggableFeedback,Ui as OakDroppable,Hr as OakFieldError,rt as OakFlex,it as OakForm,qr as OakGlobalStyle,nr as OakGrid,ir as OakGridArea,ki as OakHandDrawnCard,Mi as OakHandDrawnCardWithIcon,ji as OakHandDrawnHR,xb as OakHeaderHero,Nt as OakHeading,Xs as OakHintButton,Qt as OakIcon,St as OakImage,rg as OakInfo,tg as OakInfoButton,Zr as OakKbd,zt as OakLI,Bt as OakLabel,ed as OakLessonBottomNav,Ti as OakLessonInfoCard,ld as OakLessonLayout,wd as OakLessonNavItem,Ed as OakLessonReviewItem,td as OakLessonTopNav,Od as OakLessonVideoTranscript,Pi as OakLink,Ur as OakLoadingSpinner,cr as OakMaxWidth,Rs as OakModal,As as OakModalBody,Ps as OakModalCenter,Fs as OakModalCenterBody,zs as OakModalFooter,Rt as OakOL,Dt as OakP,no as OakPrimaryButton,to as OakPrimaryInvertedButton,cb as OakPrimaryNav,ab as OakPrimaryNavItem,Ni as OakPromoTag,Lg as OakPupilJourneyContentGuidance,hg as OakPupilJourneyHeader,Gf as OakPupilJourneyLayout,bg as OakPupilJourneyList,fg as OakPupilJourneyListCounter,dg as OakPupilJourneyListItem,Fg as OakPupilJourneyOptionalityButton,Bg as OakPupilJourneyOptionalityItem,gg as OakPupilJourneyPreviousLessons,Ag as OakPupilJourneyProgrammeOptions,pg as OakPupilJourneySubjectButton,ug as OakPupilJourneyYearButton,_s as OakQuizCheckBox,id as OakQuizCounter,Js as OakQuizFeedback,Ks as OakQuizHint,Wf as OakQuizMatch,Tf as OakQuizOrder,Ys as OakQuizRadioButton,Gs as OakQuizTextInput,bo as OakRadioButton,so as OakRadioGroup,Uo as OakRoundIcon,_g as OakSearchFilterCheckBox,ro as OakSecondaryButton,Fi as OakSecondaryLink,ot as OakSpan,Ri as OakStaticMessageCard,ob as OakSubjectIcon,co as OakTertiaryButton,Xg as OakTertiaryOLNav,Yo as OakTextInput,ar as OakThemeProvider,ei as OakTooltip,It as OakTypography,Tt as OakUL,nb as OakUnitsContainer,Qg as OakUnitsHeader,Vt as isValidIconName,J as oakAllSpacingTokens,dn as oakBorderRadiusTokens,sn as oakBorderWidthTokens,et as oakBoxCss,T as oakColorTokens,di as oakDefaultTheme,Nn as oakDropShadowTokens,Pn as oakFontSizeTokens,Fn as oakFontTokens,jt as oakHeadingTags,Gt as oakIconNames,Q as oakInnerPaddingTokens,Rn as oakOpacityTokens,ee as oakSpaceBetweenTokens,Bn as oakTransitionTokens,A as oakUiRoleTokens,zg as removedGuidanceDuplicates,fb as useCookieConsent};
|
|
15
15
|
//# sourceMappingURL=index.js.map
|