FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
sureforms
/
assets
/
build
Edit File: learn.js
/*! For license information please see learn.js.LICENSE.txt */ (()=>{"use strict";var e,t,n={21020:(e,t,n)=>{var r=n(51609),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:s,_owner:a.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},51609:e=>{e.exports=window.React},74848:(e,t,n)=>{e.exports=n(21020)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(s,i),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};const s=window.wp.domReady;var i=o.n(s);const a=window.wp.element,l=window.wp.i18n;var c=o(74848),u=o(51609),d=o.t(u,2);const f=e=>{const t=g(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),m(n,t)||h(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},m=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?m(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find((({validator:e})=>e(s)))?.classGroupId},p=/^\[(.+)\]$/,h=e=>{if(p.test(e)){const t=p.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},g=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return w(Object.entries(e.classGroups),n).forEach((([e,n])=>{y(n,r,e,t)})),r},y=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return b(e)?void y(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{y(o,v(t,e),n,r)}))}else(""===e?t:v(t,e)).classGroupId=n}))},v=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},b=e=>e.isThemeGetter,w=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,x=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},k=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],s=t.length,i=e=>{const n=[];let i,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===o&&(r||e.slice(c,c+s)===t)){n.push(e.slice(l,c)),l=c+s;continue}if("/"===u){i=c;continue}}"["===u?a++:"]"===u&&a--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},E=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},R=/\s+/;function S(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=C(e))&&(r&&(r+=" "),r+=t);return r}const C=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=C(e[r]))&&(n&&(n+=" "),n+=t);return n};function P(e,...t){let n,r,o,s=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:x(e.cacheSize),parseClassName:k(e),...f(e)}))(l),r=n.cache.get,o=n.cache.set,s=i,i(a)};function i(e){const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(R);let a="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),m=r(f?u.substring(0,d):u);if(!m){if(!f){a=t+(a.length>0?" "+a:a);continue}if(m=r(u),!m){a=t+(a.length>0?" "+a:a);continue}f=!1}const p=E(l).join(":"),h=c?p+"!":p,g=h+m;if(s.includes(g))continue;s.push(g);const y=o(m,f);for(let e=0;e<y.length;++e){const t=y[e];s.push(h+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,s),s}return function(){return s(S.apply(null,arguments))}}const T=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},j=/^\[(?:([a-z-]+):)?(.+)\]$/i,N=/^\d+\/\d+$/,A=new Set(["px","full","screen"]),M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>F(e)||A.has(e)||N.test(e),V=e=>J(e,"length",Q),F=e=>Boolean(e)&&!Number.isNaN(Number(e)),z=e=>J(e,"number",F),B=e=>Boolean(e)&&Number.isInteger(Number(e)),U=e=>e.endsWith("%")&&F(e.slice(0,-1)),H=e=>j.test(e),$=e=>M.test(e),W=new Set(["length","size","percentage"]),q=e=>J(e,W,ee),G=e=>J(e,"position",ee),K=new Set(["image","url"]),Y=e=>J(e,K,ne),X=e=>J(e,"",te),Z=()=>!0,J=(e,t,n)=>{const r=j.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Q=e=>L.test(e)&&!I.test(e),ee=()=>!1,te=e=>O.test(e),ne=e=>D.test(e),re=(Symbol.toStringTag,()=>{const e=T("colors"),t=T("spacing"),n=T("blur"),r=T("brightness"),o=T("borderColor"),s=T("borderRadius"),i=T("borderSpacing"),a=T("borderWidth"),l=T("contrast"),c=T("grayscale"),u=T("hueRotate"),d=T("invert"),f=T("gap"),m=T("gradientColorStops"),p=T("gradientColorStopPositions"),h=T("inset"),g=T("margin"),y=T("opacity"),v=T("padding"),b=T("saturate"),w=T("scale"),x=T("sepia"),k=T("skew"),E=T("space"),R=T("translate"),S=()=>["auto",H,t],C=()=>[H,t],P=()=>["",_,V],j=()=>["auto",F,H],N=()=>["","0",H],A=()=>[F,H];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[_,V],blur:["none","",$,H],brightness:A(),borderColor:[e],borderRadius:["none","","full",$,H],borderSpacing:C(),borderWidth:P(),contrast:A(),grayscale:N(),hueRotate:A(),invert:N(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[U,V],inset:S(),margin:S(),opacity:A(),padding:C(),saturate:A(),scale:A(),sepia:N(),skew:A(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[$]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",H]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B,H]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",B,H]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",B,H]},H]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[B,H]},H]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[$]},$]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",z]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",F,z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_,V]}],"underline-offset":[{"underline-offset":["auto",_,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",G]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",q]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[_,H]}],"outline-w":[{outline:[_,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[_,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$,X]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$,H]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[B,H]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_,V,z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),oe=P(re);function se(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=se(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ie(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=se(e))&&(r&&(r+=" "),r+=t);return r}const ae=ie,le=(...e)=>oe(ie(...e)),ce=(...e)=>(...t)=>e.filter(Boolean).forEach((e=>e?.(...t))),ue=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},de={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},fe={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},me={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},pe={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},he={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},ge={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},ye={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},ve={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},be={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},we={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},xe={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},ke={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Ee={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Re={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Se={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Ce={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Pe={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Te=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,s]of Object.entries(e))t[r]&&o.push(t?.[r]?.[s]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const s=r;o.push(t?.[s]?.[e]??t?.[s]?.[n?.[s]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},je=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:s,justify:i,gridFlow:a,colsSubGrid:l=!1,rowsSubGrid:u=!1,autoRows:d=!1,autoCols:f=!1,children:m,...p})=>{const h=Te(t,de,1),g=Te(n,fe,"sm"),y=Te(r,me,""),v=Te(o,pe,""),b=Te(s,be,""),w=Te(i,ve,""),x=Te(a,ye,"");return(0,c.jsx)("div",{className:le("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":u,"auto-cols-auto":f,"auto-rows-auto":d},h,g,y,v,b,w,x,e),...p,children:m})};je.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:s,...i})=>{const a=Te(n,he,0),l=Te(r,ge,0),u=Te(o,we,""),d=Te(s,xe,"");return(0,c.jsx)("div",{className:le(a,l,u,d,e),...i,children:t})};const Ne=(0,u.createContext)({}),Ae=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:s,align:i,wrap:a,cols:l,className:u,children:d,...f})=>{if("grid"===e)return(0,c.jsx)(Ne.Provider,{value:{containerType:e},children:(0,c.jsx)(je,{className:u,gap:t,gapX:n,gapY:r,cols:l,children:d,align:i,justify:s,...f})});const m=Te(a,Ee,""),p=Te(t,fe,"sm"),h=Te(n,me,""),g=Te(r,pe,""),y=Te(o,ke,""),v=Te(s,ve,""),b=Te(i,be,""),w=le("flex",m,p,h,g,y,v,b,u);return(0,c.jsx)(Ne.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,c.jsx)("div",{className:w,children:d}):(0,c.jsx)(je,{className:u,gap:t,gapX:n,gapY:r,cols:l,children:d,align:i,justify:s,...f})})},Me=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:s,children:i,...a})=>{const{containerType:l,cols:d}=(0,u.useContext)(Ne);if("grid"===l)return(0,c.jsx)(je.Item,{className:s,alignSelf:r,justifySelf:o,children:i,...a});const f=Te(r,we,""),m=Te(o,xe,""),p=Te(e,Ce,0),h=Te(t,Pe,0),g=Te(n,Se,0),y=Te(d,Re,1);return(0,c.jsx)("div",{className:le("box-border",p,h,g,f,m,y,s),children:i})};Ae.Item=Me,Ae.displayName="Container",Me.displayName="Container.Item";const Le=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:s="sm",className:i=""})=>{const a={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,c.jsx)(o,{className:le("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[s]),children:e});return t?(0,c.jsxs)("div",{className:i,children:[(0,c.jsxs)("div",{children:[n&&"left"===r&&(0,c.jsxs)("div",{className:le("flex items-center",a[s]),children:[n,l()]}),n&&"right"===r&&(0,c.jsxs)("div",{className:le("flex items-center",a[s]),children:[l(),n]}),!n&&l()]}),(0,c.jsx)("p",{className:le("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[s]),children:t})]}):(0,c.jsxs)("div",{className:i,children:[n&&"left"===r&&(0,c.jsxs)("div",{className:le("flex items-center",a[s]),children:[n,l()]}),n&&"right"===r&&(0,c.jsxs)("div",{className:le("flex items-center",a[s]),children:[l(),n]}),!n&&l()]})},Ie=(0,u.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:s=!1,...i},a)=>{if(!e)return null;let l="";return s&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,c.jsx)(t,{ref:a,className:le("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...i,children:e})}));Ie.displayName="Label";const Oe=window.wp.apiFetch;var De=o.n(Oe);const _e=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var Ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Fe=(0,u.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>(0,u.createElement)("svg",{ref:l,...Ve,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:_e("lucide",o),...a},[...i.map((([e,t])=>(0,u.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),ze=(e,t)=>{const n=(0,u.forwardRef)((({className:n,...r},o)=>{return(0,u.createElement)(Fe,{ref:o,iconNode:t,className:_e(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},Be=ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let Ue=1;const He=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const s="number"==typeof t?t:Ue++;return this.#e.find((e=>e.id===s))&&(this.#e=this.#e.map((e=>e.id===s?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:s,title:n,jsx:r,...o}),s}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},$e=Object.seal(Object.assign(((e,t)=>He.default(e,t)),{success:He.success.bind(He),error:He.error.bind(He),warning:He.warning.bind(He),info:He.info.bind(He),custom:He.custom.bind(He),dismiss:He.dismiss.bind(He),update:He.update.bind(He)},{getHistory:He.history.bind(He)})),We=ze("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),qe=ze("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ge=ze("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Ke=ze("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Ye=(0,u.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:s="button",className:i,children:a,disabled:l=!1,destructive:d=!1,icon:f=null,iconPosition:m="left",loading:p=!1,...h}=e,g=d&&"focus:ring-focus-error",y=p?"opacity-50 disabled:cursor-not-allowed":"",v={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],b=d&&!l?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",w={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let x,k=null,E="";return f&&(E="flex items-center justify-center","left"===m?x=f:k=f),(0,c.jsxs)(s,{ref:t,type:o,className:le(E,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",w,v,b,g,y,{"cursor-default":l},i),disabled:l,"aria-disabled":l,...h,children:[(0,c.jsx)(u.Fragment,{children:x},"left-icon"),a?(0,c.jsx)("span",{className:"px-1",children:a}):null,(0,c.jsx)(u.Fragment,{children:k},"right-icon")]})}));Ye.displayName="Button";const Xe="light",Ze="neutral",Je=({icon:e,theme:t=Xe,variant:n=Ze})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=Xe,variant:t=Ze})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,u.isValidElement)(e))return(0,u.cloneElement)(e,{className:le(r,o,e?.props?.className??"")});const s={neutral:(0,c.jsx)(We,{className:le(r,o)}),info:(0,c.jsx)(We,{className:le(r,o)}),success:(0,c.jsx)(qe,{className:le(r,o)}),warning:(0,c.jsx)(Ge,{className:le(r,o)}),error:(0,c.jsx)(Ke,{className:le(r,o)})};return s[n]||s.neutral},Qe=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=Xe})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let s="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(s="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,c.jsx)(Ye,{variant:"outline",size:"xs",onClick:t,className:le("rounded",o,s,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,c.jsx)(Ye,{variant:"link",size:"xs",onClick:t,className:le(o,s),children:n});default:return null}},et=({theme:e=Xe,title:t="",inline:n=!1})=>t?(0,c.jsx)("span",{className:le("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,tt=({theme:e=Xe,content:t="",inline:n=!1})=>t?(0,c.jsx)("span",{className:le({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,nt=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},rt={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},ot={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},st="bg-background-inverse border-background-inverse",it={light:"text-icon-secondary",dark:"text-icon-inverse"},at=window.ReactDOM,lt=(0,u.createContext)({});function ct(e){const t=(0,u.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ut=(0,u.createContext)(null),dt=(0,u.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class ft extends u.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function mt({children:e,isPresent:t}){const n=(0,u.useId)(),r=(0,u.useRef)(null),o=(0,u.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,u.useContext)(dt);return(0,u.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:l}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,c.jsx)(ft,{isPresent:t,childRef:r,sizeRef:o,children:u.cloneElement(e,{ref:r})})}const pt=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i})=>{const a=ct(ht),l=(0,u.useId)(),d=(0,u.useCallback)((e=>{a.set(e,!0);for(const e of a.values())if(!e)return;r&&r()}),[a,r]),f=(0,u.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:d,register:e=>(a.set(e,!1),()=>a.delete(e))})),s?[Math.random(),d]:[n,d]);return(0,u.useMemo)((()=>{a.forEach(((e,t)=>a.set(t,!1)))}),[n]),u.useEffect((()=>{!n&&!a.size&&r&&r()}),[n]),"popLayout"===i&&(e=(0,c.jsx)(mt,{isPresent:n,children:e})),(0,c.jsx)(ut.Provider,{value:f,children:e})};function ht(){return new Map}function gt(e=!0){const t=(0,u.useContext)(ut);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=(0,u.useId)();(0,u.useEffect)((()=>{e&&o(s)}),[e]);const i=(0,u.useCallback)((()=>e&&r&&r(s)),[s,r,e]);return!n&&r?[!1,i]:[!0]}const yt=e=>e.key||"";function vt(e){const t=[];return u.Children.forEach(e,(e=>{(0,u.isValidElement)(e)&&t.push(e)})),t}const bt="undefined"!=typeof window,wt=bt?u.useLayoutEffect:u.useEffect,xt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1})=>{const[a,l]=gt(i),d=(0,u.useMemo)((()=>vt(e)),[e]),f=i&&!a?[]:d.map(yt),m=(0,u.useRef)(!0),p=(0,u.useRef)(d),h=ct((()=>new Map)),[g,y]=(0,u.useState)(d),[v,b]=(0,u.useState)(d);wt((()=>{m.current=!1,p.current=d;for(let e=0;e<v.length;e++){const t=yt(v[e]);f.includes(t)?h.delete(t):!0!==h.get(t)&&h.set(t,!1)}}),[v,f.length,f.join("-")]);const w=[];if(d!==g){let e=[...d];for(let t=0;t<v.length;t++){const n=v[t],r=yt(n);f.includes(r)||(e.splice(t,0,n),w.push(n))}return"wait"===s&&w.length&&(e=w),b(vt(e)),void y(d)}const{forceRender:x}=(0,u.useContext)(lt);return(0,c.jsx)(c.Fragment,{children:v.map((e=>{const u=yt(e),g=!(i&&!a)&&(d===v||f.includes(u));return(0,c.jsx)(pt,{isPresent:g,initial:!(m.current&&!n)&&void 0,custom:g?void 0:t,presenceAffectsLayout:o,mode:s,onExitComplete:g?void 0:()=>{if(!h.has(u))return;h.set(u,!0);let e=!0;h.forEach((t=>{t||(e=!1)})),e&&(null==x||x(),b(p.current),i&&(null==l||l()),r&&r())},children:e},u)}))})};function kt(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function Et(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Rt=e=>Array.isArray(e);function St(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ct(e){return"string"==typeof e||Array.isArray(e)}function Pt(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Tt(e,t,n,r){if("function"==typeof t){const[o,s]=Pt(r);t=t(void 0!==n?n:e.custom,o,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,s]=Pt(r);t=t(void 0!==n?n:e.custom,o,s)}return t}function jt(e,t,n){const r=e.getProps();return Tt(r,t,void 0!==n?n:r.custom,e)}const Nt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],At=["initial",...Nt];function Mt(e){let t;return()=>(void 0===t&&(t=e()),t)}const Lt=Mt((()=>void 0!==window.ScrollTimeline));class It{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>Lt()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Ot extends It{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Dt(e,t){return e?e[t]||e.default||e:void 0}const _t=2e4;function Vt(e){let t=0,n=e.next(t);for(;!n.done&&t<_t;)t+=50,n=e.next(t);return t>=_t?1/0:t}function Ft(e){return"function"==typeof e}function zt(e,t){e.timeline=t,e.onfinish=null}const Bt=e=>Array.isArray(e)&&"number"==typeof e[0],Ut={linearEasing:void 0};function Ht(e,t){const n=Mt(e);return()=>{var e;return null!==(e=Ut[t])&&void 0!==e?e:n()}}const $t=Ht((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Wt=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},qt=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(Wt(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Gt(e){return Boolean("function"==typeof e&&$t()||!e||"string"==typeof e&&(e in Yt||$t())||Bt(e)||Array.isArray(e)&&e.every(Gt))}const Kt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kt([0,.65,.55,1]),circOut:Kt([.55,0,1,.45]),backIn:Kt([.31,.01,.66,-.59]),backOut:Kt([.33,1.53,.69,.99])};function Xt(e,t){return e?"function"==typeof e&&$t()?qt(e,t):Bt(e)?Kt(e):Array.isArray(e)?e.map((e=>Xt(e,t)||Yt.easeOut)):Yt[e]:void 0}const Zt={x:!1,y:!1};function Jt(){return Zt.x||Zt.y}function Qt(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function en(e){return t=>{"touch"===t.pointerType||Jt()||e(t)}}const tn=(e,t)=>!!t&&(e===t||tn(e,t.parentElement)),nn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,rn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),on=new WeakSet;function sn(e){return t=>{"Enter"===t.key&&e(t)}}function an(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function ln(e){return nn(e)&&!Jt()}const cn=e=>1e3*e,un=e=>e/1e3,dn=e=>e,fn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mn=new Set(fn),pn=new Set(["width","height","top","left","right","bottom",...fn]),hn=["read","resolveKeyframes","update","preRender","render","postRender"];function gn(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=hn.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,o=!1,i=!1)=>{const a=i&&r?t:n;return o&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),s.delete(e)},process:e=>{i=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(s),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=i,m=()=>{const s=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1),o.timestamp=s,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:hn.reduce(((t,s)=>{const a=i[s];return t[s]=(t,s=!1,i=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(m)),a.schedule(t,s,i)),t}),{}),cancel:e=>{for(let t=0;t<hn.length;t++)i[hn[t]].cancel(e)},state:o,steps:i}}const{schedule:yn,cancel:vn,state:bn,steps:wn}=gn("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:dn,!0);let xn;function kn(){xn=void 0}const En={now:()=>(void 0===xn&&En.set(bn.isProcessing?bn.timestamp:performance.now()),xn),set:e=>{xn=e,queueMicrotask(kn)}};function Rn(e,t){-1===e.indexOf(t)&&e.push(t)}function Sn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Cn{constructor(){this.subscriptions=[]}add(e){return Rn(this.subscriptions,e),()=>Sn(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Pn(e,t){return t?e*(1e3/t):0}const Tn={current:void 0};class jn{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=En.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=En.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Cn);const n=this.events[e].add(t);return"change"===e?()=>{n(),yn.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Tn.current&&Tn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=En.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Pn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nn(e,t){return new jn(e,t)}function An(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nn(n))}const Mn=e=>Boolean(e&&e.getVelocity);function Ln(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Mn(r)&&r.add))return n.add(t);var r}const In=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),On="data-"+In("framerAppearId");function Dn(e){return e.props[On]}const _n=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Vn(e,t,n,r){if(e===t&&n===r)return dn;return o=>0===o||1===o?o:_n(function(e,t,n,r,o){let s,i,a=0;do{i=t+(n-t)/2,s=_n(i,r,o)-e,s>0?n=i:t=i}while(Math.abs(s)>1e-7&&++a<12);return i}(o,0,1,e,n),t,r)}const Fn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zn=e=>t=>1-e(1-t),Bn=Vn(.33,1.53,.69,.99),Un=zn(Bn),Hn=Fn(Un),$n=e=>(e*=2)<1?.5*Un(e):.5*(2-Math.pow(2,-10*(e-1))),Wn=e=>1-Math.sin(Math.acos(e)),qn=zn(Wn),Gn=Fn(Wn),Kn=e=>/^0[^.\s]+$/u.test(e),Yn=(e,t,n)=>n>t?t:n<e?e:n,Xn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Zn={...Xn,transform:e=>Yn(0,1,e)},Jn={...Xn,default:1},Qn=e=>Math.round(1e5*e)/1e5,er=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nr=(e,t)=>n=>Boolean("string"==typeof n&&tr.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),rr=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,s,i,a]=r.match(er);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},or={...Xn,transform:e=>Math.round((e=>Yn(0,255,e))(e))},sr={test:nr("rgb","red"),parse:rr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+or.transform(e)+", "+or.transform(t)+", "+or.transform(n)+", "+Qn(Zn.transform(r))+")"},ir={test:nr("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:sr.transform},ar=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lr=ar("deg"),cr=ar("%"),ur=ar("px"),dr=ar("vh"),fr=ar("vw"),mr={...cr,parse:e=>cr.parse(e)/100,transform:e=>cr.transform(100*e)},pr={test:nr("hsl","hue"),parse:rr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cr.transform(Qn(t))+", "+cr.transform(Qn(n))+", "+Qn(Zn.transform(r))+")"},hr={test:e=>sr.test(e)||ir.test(e)||pr.test(e),parse:e=>sr.test(e)?sr.parse(e):pr.test(e)?pr.parse(e):ir.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?sr.transform(e):pr.transform(e)},gr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,yr="number",vr="color",br=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const i=t.replace(br,(e=>(hr.test(e)?(r.color.push(s),o.push(vr),n.push(hr.parse(e))):e.startsWith("var(")?(r.var.push(s),o.push("var"),n.push(e)):(r.number.push(s),o.push(yr),n.push(parseFloat(e))),++s,"${}"))).split("${}");return{values:n,split:i,indexes:r,types:o}}function xr(e){return wr(e).values}function kr(e){const{split:t,types:n}=wr(e),r=t.length;return e=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],void 0!==e[s]){const t=n[s];o+=t===yr?Qn(e[s]):t===vr?hr.transform(e[s]):e[s]}return o}}const Er=e=>"number"==typeof e?0:e,Rr={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(er))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(gr))||void 0===n?void 0:n.length)||0)>0},parse:xr,createTransformer:kr,getAnimatableNone:function(e){const t=xr(e);return kr(e)(t.map(Er))}},Sr=new Set(["brightness","contrast","saturate","opacity"]);function Cr(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(er)||[];if(!r)return e;const o=n.replace(r,"");let s=Sr.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const Pr=/\b([a-z-]*)\(.*?\)/gu,Tr={...Rr,getAnimatableNone:e=>{const t=e.match(Pr);return t?t.map(Cr).join(" "):e}},jr={borderWidth:ur,borderTopWidth:ur,borderRightWidth:ur,borderBottomWidth:ur,borderLeftWidth:ur,borderRadius:ur,radius:ur,borderTopLeftRadius:ur,borderTopRightRadius:ur,borderBottomRightRadius:ur,borderBottomLeftRadius:ur,width:ur,maxWidth:ur,height:ur,maxHeight:ur,top:ur,right:ur,bottom:ur,left:ur,padding:ur,paddingTop:ur,paddingRight:ur,paddingBottom:ur,paddingLeft:ur,margin:ur,marginTop:ur,marginRight:ur,marginBottom:ur,marginLeft:ur,backgroundPositionX:ur,backgroundPositionY:ur},Nr={rotate:lr,rotateX:lr,rotateY:lr,rotateZ:lr,scale:Jn,scaleX:Jn,scaleY:Jn,scaleZ:Jn,skew:lr,skewX:lr,skewY:lr,distance:ur,translateX:ur,translateY:ur,translateZ:ur,x:ur,y:ur,z:ur,perspective:ur,transformPerspective:ur,opacity:Zn,originX:mr,originY:mr,originZ:ur},Ar={...Xn,transform:Math.round},Mr={...jr,...Nr,zIndex:Ar,size:ur,fillOpacity:Zn,strokeOpacity:Zn,numOctaves:Ar},Lr={...Mr,color:hr,backgroundColor:hr,outlineColor:hr,fill:hr,stroke:hr,borderColor:hr,borderTopColor:hr,borderRightColor:hr,borderBottomColor:hr,borderLeftColor:hr,filter:Tr,WebkitFilter:Tr},Ir=e=>Lr[e];function Or(e,t){let n=Ir(e);return n!==Tr&&(n=Rr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dr=new Set(["auto","none","0"]),_r=e=>e===Xn||e===ur,Vr=(e,t)=>parseFloat(e.split(", ")[t]),Fr=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Vr(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Vr(t[1],e):0}},zr=new Set(["x","y","z"]),Br=fn.filter((e=>!zr.has(e))),Ur={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Fr(4,13),y:Fr(5,14)};Ur.translateX=Ur.x,Ur.translateY=Ur.y;const Hr=new Set;let $r=!1,Wr=!1;function qr(){if(Wr){const e=Array.from(Hr).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Br.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Wr=!1,$r=!1,Hr.forEach((e=>e.complete())),Hr.clear()}function Gr(){Hr.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Wr=!0)}))}class Kr{constructor(e,t,n,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Hr.add(this),$r||($r=!0,yn.read(Gr),yn.resolveKeyframes(qr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Hr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Hr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Yr=dn,Xr=dn;const Zr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Jr=e=>t=>"string"==typeof t&&t.startsWith(e),Qr=Jr("--"),eo=Jr("var(--"),to=e=>!!eo(e)&&no.test(e.split("/*")[0].trim()),no=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ro=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oo(e,t,n=1){Xr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ro.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const e=s.trim();return Zr(e)?parseFloat(e):e}return to(o)?oo(o,t,n+1):o}const so=e=>t=>t.test(e),io=[Xn,ur,cr,lr,fr,dr,{test:e=>"auto"===e,parse:e=>e}],ao=e=>io.find(so(e));class lo extends Kr{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),to(r))){const o=oo(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!pn.has(n)||2!==e.length)return;const[r,o]=e,s=ao(r),i=ao(o);if(s!==i)if(_r(s)&&_r(i))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||Kn(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Dr.has(t)&&wr(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=Or(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ur[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=Ur[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const co=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Rr.test(e)&&"0"!==e||e.startsWith("url(")));function uo(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const s=e[e.length-1],i=co(o,t),a=co(s,t);return Yr(i===a,`You are trying to animate ${t} from "${o}" to "${s}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${s} via the \`style\` property.`),!(!i||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Ft(n))&&r)}const fo=e=>null!==e;function mo(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(fo),s=t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}class po{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=En.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:s,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Gr(),qr()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=En.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:s,onComplete:i,onUpdate:a,isGenerator:l}=this.options;if(!l&&!uo(e,n,r,o)){if(!s)return a&&a(mo(e,this.options,t)),i&&i(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const ho=(e,t,n)=>e+(t-e)*n;function go(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yo(e,t){return n=>n>0?t:e}const vo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},bo=[ir,sr,pr];function wo(e){const t=(n=e,bo.find((e=>e.test(n))));var n;if(Yr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===pr&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,s=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=go(a,r,e+1/3),s=go(a,r,e),i=go(a,r,e-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}(r)),r}const xo=(e,t)=>{const n=wo(e),r=wo(t);if(!n||!r)return yo(e,t);const o={...n};return e=>(o.red=vo(n.red,r.red,e),o.green=vo(n.green,r.green,e),o.blue=vo(n.blue,r.blue,e),o.alpha=ho(n.alpha,r.alpha,e),sr.transform(o))},ko=(e,t)=>n=>t(e(n)),Eo=(...e)=>e.reduce(ko),Ro=new Set(["none","hidden"]);function So(e,t){return n=>ho(e,t,n)}function Co(e){return"number"==typeof e?So:"string"==typeof e?to(e)?yo:hr.test(e)?xo:jo:Array.isArray(e)?Po:"object"==typeof e?hr.test(e)?xo:To:yo}function Po(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Co(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function To(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Co(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const jo=(e,t)=>{const n=Rr.createTransformer(t),r=wr(e),o=wr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ro.has(e)&&!o.values.length||Ro.has(t)&&!r.values.length?function(e,t){return Ro.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Eo(Po(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],a=e.indexes[i][o[i]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[s]=l,o[i]++}return r}(r,o),o.values),n):(Yr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),yo(e,t))};function No(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?ho(e,t,n):Co(e)(e,t)}function Ao(e,t,n){const r=Math.max(t-5,0);return Pn(n-e(r),t-r)}const Mo=.01,Lo=2,Io=.005,Oo=.5;const Do=12;function _o(e,t){return e*Math.sqrt(1-t*t)}const Vo=["duration","bounce"],Fo=["stiffness","damping","mass"];function zo(e,t){return t.some((t=>void 0!==e[t]))}function Bo(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!zo(e,Fo)&&zo(e,Vo))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,s=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:s}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,s;Yr(e<=cn(10),"Spring duration must be 10 seconds or less");let i=1-t;i=Yn(.05,1,i),e=Yn(.01,10,un(e)),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/_o(t,i)*Math.exp(-o)},s=t=>{const r=t*i*e,s=r*n+n,a=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=_o(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((s-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,s=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<Do;n++)r-=e(r)/t(r);return r}(o,s,5/e);if(e=cn(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-un(n.velocity||0)}),p=f||0,h=c/(2*Math.sqrt(l*u)),g=i-s,y=un(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?Mo:Lo),o||(o=v?Io:Oo),h<1){const e=_o(y,h);b=t=>{const n=Math.exp(-h*y*t);return i-n*((p+h*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-y*e)*(g+(p+y*g)*e);else{const e=y*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*y*t),r=Math.min(e*t,300);return i-n*((p+h*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const w={calculatedDuration:m&&d||null,next:e=>{const t=b(e);if(m)a.done=e>=d;else{let n=0;h<1&&(n=0===e?cn(p):Ao(b,e,t));const s=Math.abs(n)<=r,l=Math.abs(i-t)<=o;a.done=s&&l}return a.value=a.done?i:t,a},toString:()=>{const e=Math.min(Vt(w),_t),t=qt((t=>w.next(e*t).value),e,30);return e+"ms "+t}};return w}function Uo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const h=d+p,g=void 0===i?h:i(h);g!==h&&(p=g-d);const y=e=>-p*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let w,x;const k=e=>{var t;t=f.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(w=e,x=Bo({keyframes:[f.value,m(f.value)],velocity:Ao(v,e,f.value),damping:o,stiffness:s,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),k(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),f)}}}const Ho=Vn(.42,0,1,1),$o=Vn(0,0,.58,1),Wo=Vn(.42,0,.58,1),qo={linear:dn,easeIn:Ho,easeInOut:Wo,easeOut:$o,circIn:Wn,circInOut:Gn,circOut:qn,backIn:Un,backInOut:Hn,backOut:Bn,anticipate:$n},Go=e=>{if(Bt(e)){Xr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Vn(t,n,r,o)}return"string"==typeof e?(Xr(void 0!==qo[e],`Invalid easing type '${e}'`),qo[e]):e};function Ko({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Go):Go(r),s={done:!1,value:t[0]},i=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Wt(0,t,r);e.push(ho(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Xr(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||No,s=e.length-1;for(let n=0;n<s;n++){let s=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||dn:t;s=Eo(e,s)}r.push(s)}return r}(t,r,o),l=a.length,c=n=>{if(i&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=Wt(e[r],e[r+1],n);return a[r](o)};return n?t=>c(Yn(e[0],e[s-1],t)):c}(i,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Wo)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}const Yo=e=>{const t=({timestamp:t})=>e(t);return{start:()=>yn.update(t,!0),stop:()=>vn(t),now:()=>bn.isProcessing?bn.timestamp:En.now()}},Xo={decay:Uo,inertia:Uo,tween:Ko,keyframes:Ko,spring:Bo},Zo=e=>e/100;class Jo extends po{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,s=(null==r?void 0:r.KeyframeResolver)||Kr;this.resolver=new s(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,i=Ft(t)?t:Xo[t]||Ko;let a,l;i!==Ko&&"number"!=typeof e[0]&&(a=Eo(Zo,No(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===o&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===c.calculatedDuration&&(c.calculatedDuration=Vt(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:i,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:m,repeatDelay:p,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===m?(n=1-n,p&&(n-=p/u)):"mirror"===m&&(b=s)),v=Yn(0,1,n)*u}const w=y?{done:!1,value:a[0]}:b.next(v);i&&(w.value=i(w.value));let{done:x}=w;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&void 0!==r&&(w.value=mo(a,this.options,r)),h&&h(w.value),k&&this.finish(),w}get duration(){const{resolved:e}=this;return e?un(e.calculatedDuration):0}get time(){return un(this.currentTime)}set time(e){e=cn(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=un(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Yo,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Qo=new Set(["opacity","clipPath","filter","transform"]),es=Mt((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),ts={anticipate:$n,backInOut:Hn,circInOut:Gn};class ns extends po{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new lo(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:s,motionValue:i,name:a,startTime:l}=this.options;if(!i.owner||!i.owner.current)return!1;var c;if("string"==typeof o&&$t()&&o in ts&&(o=ts[o]),Ft((c=this.options).type)||"spring"===c.type||!Gt(c.ease)){const{onComplete:t,onUpdate:i,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new Jo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let s=0;for(;!r.done&&s<2e4;)r=n.sample(s),o.push(r.value),s+=10;return{times:void 0,keyframes:o,duration:s-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,s="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Xt(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===i?"alternate":"normal"})}(i.owner.current,a,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(zt(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;i.set(mo(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:s,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return un(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return un(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=cn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return dn;const{animation:n}=t;zt(n,e)}else this.pendingTimeline=e;return dn}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:s,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new Jo({...c,keyframes:n,duration:r,type:o,ease:s,times:i,isGenerator:!0}),d=cn(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return es()&&n&&Qo.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==s&&"inertia"!==i}}const rs={type:"spring",stiffness:500,damping:25,restSpeed:10},os={type:"keyframes",duration:.8},ss={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},is=(e,{keyframes:t})=>t.length>2?os:mn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rs:ss,as=(e,t,n,r={},o,s)=>i=>{const a=Dt(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=cn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...is(e,u)}),u.duration&&(u.duration=cn(u.duration)),u.repeatDelay&&(u.repeatDelay=cn(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!s&&void 0!==t.get()){const e=mo(u.keyframes,a);if(void 0!==e)return yn.update((()=>{u.onUpdate(e),u.onComplete()})),new Ot([])}return!s&&ns.supports(u)?new ns(u):new Jo(u)};function ls({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function cs(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(s=e.latestValues[t])&&void 0!==s?s:null),o=l[t];if(void 0===o||u&&ls(u,t))continue;const a={delay:n,...Dt(i||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Dn(e);if(n){const e=window.MotionHandoffAnimation(n,t,yn);null!==e&&(a.startTime=e,d=!0)}}Ln(e,t),r.start(as(t,r,o,e.shouldReduceMotion&&pn.has(t)?{type:!1}:a,e,d));const f=r.animation;f&&c.push(f)}return a&&Promise.all(c).then((()=>{yn.update((()=>{a&&function(e,t){const n=jt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const t in s)An(e,t,(i=s[t],Rt(i)?i[i.length-1]||0:i));var i}(e,a)}))})),c}function us(e,t,n={}){var r;const o=jt(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>Promise.all(cs(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(e,t,n=0,r=0,o=1,s){const i=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(ds).forEach(((e,r)=>{e.notify("AnimationStart",t),i.push(us(e,t,{...s,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,o+r,i,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[e,t]="beforeChildren"===l?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function ds(e,t){return e.sortNodePosition(t)}const fs=At.length;function ms(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ms(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<fs;n++){const r=At[n],o=e.props[r];(Ct(o)||!1===o)&&(t[r]=o)}return t}const ps=[...Nt].reverse(),hs=Nt.length;function gs(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>us(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=us(e,t,n);else{const o="function"==typeof t?jt(e,t,n.custom):t;r=Promise.all(cs(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=vs(),r=!0;const o=t=>(n,r)=>{var o;const s=jt(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(s){const{transition:e,transitionEnd:t,...r}=s;n={...n,...r,...t}}return n};function s(s){const{props:i}=e,a=ms(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<hs;t++){const p=ps[t],h=n[p],g=void 0!==i[p]?i[p]:a[p],y=Ct(g),v=p===s?h.isActive:null;!1===v&&(d=t);let b=g===a[p]&&g!==i[p]&&y;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys={...u},!h.isActive&&null===v||!g&&!h.prevProp||Et(g)||"boolean"==typeof g)continue;const w=(f=h.prevProp,"string"==typeof(m=g)?m!==f:!!Array.isArray(m)&&!St(m,f));let x=w||p===s&&h.isActive&&!b&&y||t>d&&y,k=!1;const E=Array.isArray(g)?g:[g];let R=E.reduce(o(p),{});!1===v&&(R={});const{prevResolvedValues:S={}}=h,C={...S,...R},P=t=>{x=!0,c.has(t)&&(k=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=R[e],n=S[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Rt(t)&&Rt(n)?!St(t,n):t!==n,r?null!=t?P(e):c.add(e):void 0!==t&&c.has(e)?P(e):h.protectedKeys[e]=!0}h.prevProp=g,h.prevResolvedValues=R,h.isActive&&(u={...u,...R}),r&&e.blockInitialAnimation&&(x=!1),x&&(!b||!w||k)&&l.push(...E.map((e=>({animation:e,options:{type:p}}))))}var f,m;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const i=s(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=vs(),r=!0}}}function ys(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vs(){return{animate:ys(!0),whileInView:ys(),whileHover:ys(),whileTap:ys(),whileDrag:ys(),whileFocus:ys(),exit:ys()}}class bs{constructor(e){this.isMounted=!1,this.node=e}update(){}}let ws=0;const xs={animation:{Feature:class extends bs{constructor(e){super(e),e.animationState||(e.animationState=gs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Et(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends bs{constructor(){super(...arguments),this.id=ws++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function ks(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Es(e){return{point:{x:e.pageX,y:e.pageY}}}function Rs(e,t,n,r){return ks(e,t,(e=>t=>nn(t)&&e(t,Es(t)))(n),r)}const Ss=(e,t)=>Math.abs(e-t);class Cs{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=js(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ss(e.x,t.x),r=Ss(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=bn;this.history.push({...r,timestamp:o});const{onStart:s,onMove:i}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ps(t,this.transformPagePoint),yn.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=js("pointercancel"===e.type?this.lastMoveEventInfo:Ps(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!nn(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const s=Ps(Es(e),this.transformPagePoint),{point:i}=s,{timestamp:a}=bn;this.history=[{...i,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,js(s,this.history)),this.removeListeners=Eo(Rs(this.contextWindow,"pointermove",this.handlePointerMove),Rs(this.contextWindow,"pointerup",this.handlePointerUp),Rs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),vn(this.updatePoint)}}function Ps(e,t){return t?{point:t(e.point)}:e}function Ts(e,t){return{x:e.x-t.x,y:e.y-t.y}}function js({point:e},t){return{point:e,delta:Ts(e,As(t)),offset:Ts(e,Ns(t)),velocity:Ms(t,.1)}}function Ns(e){return e[0]}function As(e){return e[e.length-1]}function Ms(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=As(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>cn(t)));)n--;if(!r)return{x:0,y:0};const s=un(o.timestamp-r.timestamp);if(0===s)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Ls(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Is(e){return e.max-e.min}function Os(e,t,n,r=.5){e.origin=r,e.originPoint=ho(t.min,t.max,e.origin),e.scale=Is(n)/Is(t),e.translate=ho(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Ds(e,t,n,r){Os(e.x,t.x,n.x,r?r.originX:void 0),Os(e.y,t.y,n.y,r?r.originY:void 0)}function _s(e,t,n){e.min=n.min+t.min,e.max=e.min+Is(t)}function Vs(e,t,n){e.min=t.min-n.min,e.max=e.min+Is(t)}function Fs(e,t,n){Vs(e.x,t.x,n.x),Vs(e.y,t.y,n.y)}function zs(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Bs(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Us=.35;function Hs(e,t,n){return{min:$s(e,t),max:$s(e,n)}}function $s(e,t){return"number"==typeof e?e:e[t]||0}const Ws=()=>({x:{min:0,max:0},y:{min:0,max:0}});function qs(e){return[e("x"),e("y")]}function Gs({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ks(e){return void 0===e||1===e}function Ys({scale:e,scaleX:t,scaleY:n}){return!Ks(e)||!Ks(t)||!Ks(n)}function Xs(e){return Ys(e)||Zs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zs(e){return Js(e.x)||Js(e.y)}function Js(e){return e&&"0%"!==e}function Qs(e,t,n){return n+t*(e-n)}function ei(e,t,n,r,o){return void 0!==o&&(e=Qs(e,o,r)),Qs(e,n,r)+t}function ti(e,t=0,n=1,r,o){e.min=ei(e.min,t,n,r,o),e.max=ei(e.max,t,n,r,o)}function ni(e,{x:t,y:n}){ti(e.x,t.translate,t.scale,t.originPoint),ti(e.y,n.translate,n.scale,n.originPoint)}const ri=.999999999999,oi=1.0000000000001;function si(e,t){e.min=e.min+t,e.max=e.max+t}function ii(e,t,n,r,o=.5){ti(e,t,n,ho(e.min,e.max,o),r)}function ai(e,t){ii(e.x,t.x,t.scaleX,t.scale,t.originX),ii(e.y,t.y,t.scaleY,t.scale,t.originY)}function li(e,t){return Gs(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ci=({current:e})=>e?e.ownerDocument.defaultView:null,ui=new WeakMap;class di{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Cs(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Es(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=n)||"y"===s?Zt[s]?null:(Zt[s]=!0,()=>{Zt[s]=!1}):Zt.x||Zt.y?null:(Zt.x=Zt.y=!0,()=>{Zt.x=Zt.y=!1}),!this.openDragLock))return;var s;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qs((e=>{let t=this.getAxisMotionValue(e).get()||0;if(cr.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Is(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&yn.postRender((()=>o(e,t))),Ln(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:i}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>qs((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:ci(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&yn.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!fi(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?ho(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ho(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&Ls(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:zs(e.x,n,o),y:zs(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Us){return!1===e?e=0:!0===e&&(e=Us),{x:Hs(e,"left","right"),y:Hs(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&qs((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ls(e))return!1;const n=e.current;Xr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=li(e,n),{scroll:o}=t;return o&&(si(r.x,o.offset.x),si(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let s=function(e,t){return{x:Bs(e.x,t.x),y:Bs(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=Gs(e))}return s}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},l=qs((i=>{if(!fi(i,t,this.currentDirection))return;let l=a&&a[i]||{};s&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Ln(this.visualElement,e),n.start(as(e,n,0,t,this.visualElement,!1))}stopAnimation(){qs((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){qs((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){qs((t=>{const{drag:n}=this.getProps();if(!fi(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:s}=r.layout.layoutBox[t];o.set(e[t]-ho(n,s,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ls(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};qs((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Is(e),o=Is(t);return o>r?n=Wt(t.min,t.max-r,e.min):r>o&&(n=Wt(e.min,e.max-o,t.min)),Yn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),qs((t=>{if(!fi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:s}=this.constraints[t];n.set(ho(o,s,r[t]))}))}addListeners(){if(!this.visualElement.current)return;ui.set(this.visualElement,this);const e=Rs(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ls(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),yn.read(t);const o=ks(window,"resize",(()=>this.scalePositionWithinConstraints())),s=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(qs((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Us,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:i}}}function fi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const mi=e=>(t,n)=>{e&&yn.postRender((()=>e(t,n)))},pi=(0,u.createContext)({}),hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yi={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ur.test(e))return e;e=parseFloat(e)}return`${gi(e,t.target.x)}% ${gi(e,t.target.y)}%`}},vi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Rr.parse(e);if(o.length>5)return r;const s=Rr.createTransformer(e),i="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const c=ho(a,l,.5);return"number"==typeof o[2+i]&&(o[2+i]/=c),"number"==typeof o[3+i]&&(o[3+i]/=c),s(o)}},bi={},{schedule:wi,cancel:xi}=gn(queueMicrotask,!1);class ki extends u.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var s;s=Ri,Object.assign(bi,s),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),hi.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||yn.postRender((()=>{const e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),wi.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ei(e){const[t,n]=gt(),r=(0,u.useContext)(lt);return(0,c.jsx)(ki,{...e,layoutGroup:r,switchLayoutGroup:(0,u.useContext)(pi),isPresent:t,safeToRemove:n})}const Ri={borderRadius:{...yi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yi,borderTopRightRadius:yi,borderBottomLeftRadius:yi,borderBottomRightRadius:yi,boxShadow:vi},Si=(e,t)=>e.depth-t.depth;class Ci{constructor(){this.children=[],this.isDirty=!1}add(e){Rn(this.children,e),this.isDirty=!0}remove(e){Sn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Si),this.isDirty=!1,this.children.forEach(e)}}function Pi(e){const t=Mn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Ti=["TopLeft","TopRight","BottomLeft","BottomRight"],ji=Ti.length,Ni=e=>"string"==typeof e?parseFloat(e):e,Ai=e=>"number"==typeof e||ur.test(e);function Mi(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Li=Oi(0,.5,qn),Ii=Oi(.5,.95,dn);function Oi(e,t,n){return r=>r<e?0:r>t?1:n(Wt(e,t,r))}function Di(e,t){e.min=t.min,e.max=t.max}function _i(e,t){Di(e.x,t.x),Di(e.y,t.y)}function Vi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Fi(e,t,n,r,o){return e=Qs(e-=t,1/n,r),void 0!==o&&(e=Qs(e,1/o,r)),e}function zi(e,t,[n,r,o],s,i){!function(e,t=0,n=1,r=.5,o,s=e,i=e){if(cr.test(t)&&(t=parseFloat(t),t=ho(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let a=ho(s.min,s.max,r);e===s&&(a-=t),e.min=Fi(e.min,t,n,a,o),e.max=Fi(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,s,i)}const Bi=["x","scaleX","originX"],Ui=["y","scaleY","originY"];function Hi(e,t,n,r){zi(e.x,t,Bi,n?n.x:void 0,r?r.x:void 0),zi(e.y,t,Ui,n?n.y:void 0,r?r.y:void 0)}function $i(e){return 0===e.translate&&1===e.scale}function Wi(e){return $i(e.x)&&$i(e.y)}function qi(e,t){return e.min===t.min&&e.max===t.max}function Gi(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ki(e,t){return Gi(e.x,t.x)&&Gi(e.y,t.y)}function Yi(e){return Is(e.x)/Is(e.y)}function Xi(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Zi{constructor(){this.members=[]}add(e){Rn(this.members,e),e.scheduleRender()}remove(e){if(Sn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ji={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qi="undefined"!=typeof window&&void 0!==window.MotionDebug,ea=["","X","Y","Z"],ta={visibility:"hidden"};let na=0;function ra(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oa(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Dn(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",yn,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&oa(r)}function sa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=na++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qi&&(Ji.totalNodes=Ji.resolvedTargetDeltas=Ji.recalculatedProjection=0),this.nodes.forEach(la),this.nodes.forEach(ha),this.nodes.forEach(ga),this.nodes.forEach(ca),Qi&&window.MotionDebug.record(Ji)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ci)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Cn),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:s,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=En.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(vn(r),e(s-t))};return yn.read(r,!0),()=>vn(r)}(r,250),hi.hasAnimatedSinceResize&&(hi.hasAnimatedSinceResize=!1,this.nodes.forEach(pa))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&i&&(o||s)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||ka,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!Ki(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Dt(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||pa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,vn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ya),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&oa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(da);this.isUpdating||this.nodes.forEach(fa),this.isUpdating=!1,this.nodes.forEach(ma),this.nodes.forEach(ia),this.nodes.forEach(aa),this.clearAllSnapshots();const e=En.now();bn.delta=Yn(0,1e3/60,e-bn.timestamp),bn.timestamp=e,bn.isProcessing=!0,wn.update.process(bn),wn.preRender.process(bn),wn.render.process(bn),bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ua),this.sharedNodes.forEach(va)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yn.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Wi(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&(t||Xs(this.latestValues)||s)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Sa((r=n).x),Sa(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(Pa)){const{scroll:e}=this.root;e&&(si(n.x,e.offset.x),si(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(_i(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:s}=r;r!==this.root&&o&&s.layoutScroll&&(o.wasRoot&&_i(n,e),si(n.x,o.offset.x),si(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};_i(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ai(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Xs(r.latestValues)&&ai(n,r.latestValues)}return Xs(this.latestValues)&&ai(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};_i(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Xs(n.latestValues))continue;Ys(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};_i(r,n.measurePageBox()),Hi(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Xs(this.latestValues)&&Hi(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:s}=this.options;if(this.layout&&(o||s)){if(this.resolvedRelativeTargetAt=bn.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Fs(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),_i(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,l=this.relativeParent.target,_s(i.x,a.x,l.x),_s(i.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):_i(this.target,this.layout.layoutBox),ni(this.target,this.targetDelta)):_i(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Fs(this.relativeTargetOrigin,this.target,e.target),_i(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qi&&Ji.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ys(this.parent.latestValues)&&!Zs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===bn.timestamp&&(r=!1),r)return;const{layout:o,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!s)return;_i(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let s,i;t.x=t.y=1;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:o}=s.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ai(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,ni(e,i)),r&&Xs(s.latestValues)&&ai(e,s.latestValues))}t.x<oi&&t.x>ri&&(t.x=1),t.y<oi&&t.y>ri&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Vi(this.prevProjectionDelta.x,this.projectionDelta.x),Vi(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ds(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&Xi(this.projectionDelta.x,this.prevProjectionDelta.x)&&Xi(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Qi&&Ji.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(xa));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;ba(s.x,e.x,n),ba(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fs(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){wa(e.x,t.x,n.x,r),wa(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,i,n),d&&function(e,t){return qi(e.x,t.x)&&qi(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),_i(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,s){o?(e.opacity=ho(0,void 0!==n.opacity?n.opacity:1,Li(r)),e.opacityExit=ho(void 0!==t.opacity?t.opacity:1,0,Ii(r))):s&&(e.opacity=ho(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ji;o++){const s=`border${Ti[o]}Radius`;let i=Mi(t,s),a=Mi(n,s);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||Ai(i)===Ai(a)?(e[s]=Math.max(ho(Ni(i),Ni(a),r),0),(cr.test(a)||cr.test(i))&&(e[s]+="%")):e[s]=a)}(t.rotate||n.rotate)&&(e.rotate=ho(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yn.update((()=>{hi.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Mn(0)?0:Nn(0);return r.start(as("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ca(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Is(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Is(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}_i(t,n),ai(t,o),Ds(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Zi),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&ra("z",e,r,this.animationValues);for(let t=0;t<ea.length;t++)ra(`rotate${ea[t]}`,e,r,this.animationValues),ra(`skew${ea[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ta;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Pi(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Pi(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Xs(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const i=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=(null==n?void 0:n.z)||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:s,skewX:i,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),s&&(r+=`rotateY(${s}deg) `),i&&(r+=`skewX(${i}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),o&&(r.transform=o(i,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r.opacity=s===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in bi){if(void 0===i[e])continue;const{correct:t,applyTo:n}=bi[e],o="none"===r.transform?i[e]:t(i[e],s);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=s===this?Pi(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(da),this.root.sharedNodes.clear()}}}function ia(e){e.updateLayout()}function aa(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;"size"===o?qs((e=>{const r=s?n.measuredBox[e]:n.layoutBox[e],o=Is(r);r.min=t[e].min,r.max=r.min+o})):Ca(o,n.layoutBox,t)&&qs((r=>{const o=s?n.measuredBox[r]:n.layoutBox[r],i=Is(t[r]);o.max=o.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+i)}));const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ds(i,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Ds(a,e.applyTransform(r,!0),n.measuredBox):Ds(a,t,n.layoutBox);const l=!Wi(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:s}=r;if(o&&s){const i={x:{min:0,max:0},y:{min:0,max:0}};Fs(i,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Fs(a,t,s.layoutBox),Ki(i,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function la(e){Qi&&Ji.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ca(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ua(e){e.clearSnapshot()}function da(e){e.clearMeasurements()}function fa(e){e.isLayoutDirty=!1}function ma(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ha(e){e.resolveTargetDelta()}function ga(e){e.calcProjection()}function ya(e){e.resetSkewAndRotation()}function va(e){e.removeLeadSnapshot()}function ba(e,t,n){e.translate=ho(t.translate,0,n),e.scale=ho(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wa(e,t,n,r){e.min=ho(t.min,n.min,r),e.max=ho(t.max,n.max,r)}function xa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ka={duration:.45,ease:[.4,0,.1,1]},Ea=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ra=Ea("applewebkit/")&&!Ea("chrome/")?Math.round:dn;function Sa(e){e.min=Ra(e.min),e.max=Ra(e.max)}function Ca(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Yi(t),o=Yi(n),!(Math.abs(r-o)<=.2));var r,o}function Pa(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Ta=sa({attachResizeListener:(e,t)=>ks(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ja={current:void 0},Na=sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ja.current){const e=new Ta({});e.mount(window),e.setOptions({layoutScroll:!0}),ja.current=e}return ja.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Aa={pan:{Feature:class extends bs{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(e){this.session=new Cs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ci(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:mi(e),onStart:mi(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&yn.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Rs(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends bs{constructor(e){super(e),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new di(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Na,MeasureLayout:Ei}};function Ma(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&yn.postRender((()=>o(t,Es(t))))}function La(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&yn.postRender((()=>o(t,Es(t))))}const Ia=new WeakMap,Oa=new WeakMap,Da=e=>{const t=Ia.get(e.target);t&&t(e)},_a=e=>{e.forEach(Da)};const Va={some:0,all:1},Fa={inView:{Feature:class extends bs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Va[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Oa.has(n)||Oa.set(n,{});const r=Oa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_a,{root:e,...t})),r[o]}(t);return Ia.set(e,n),r.observe(e),()=>{Ia.delete(e),r.unobserve(e)}}(this.node.current,s,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends bs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,s]=Qt(e,n),i=e=>{const r=e.currentTarget;if(!ln(e)||on.has(r))return;on.add(r);const s=t(e),i=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ln(e)&&on.has(r)&&(on.delete(r),"function"==typeof s&&s(e,{success:t}))},a=e=>{i(e,n.useGlobalTarget||tn(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return rn.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",i,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=sn((()=>{if(on.has(n))return;an(n,"down");const e=sn((()=>{an(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>an(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),s}(e,(e=>(La(this.node,e,"Start"),(e,{success:t})=>La(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends bs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Eo(ks(this.node.current,"focus",(()=>this.onFocus())),ks(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends bs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,s]=Qt(e,n),i=en((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const s=en((e=>{r(e),n.removeEventListener("pointerleave",s)}));n.addEventListener("pointerleave",s,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",i,o)})),s}(e,(e=>(Ma(this.node,e,"Start"),e=>Ma(this.node,e,"End")))))}unmount(){}}}},za={layout:{ProjectionNode:Na,MeasureLayout:Ei}},Ba=(0,u.createContext)({strict:!1}),Ua=(0,u.createContext)({});function Ha(e){return Et(e.animate)||At.some((t=>Ct(e[t])))}function $a(e){return Boolean(Ha(e)||e.variants)}function Wa(e){return Array.isArray(e)?e.join(" "):e}const qa={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ga={};for(const e in qa)Ga[e]={isEnabled:t=>qa[e].some((e=>!!t[e]))};const Ka=Symbol.for("motionComponentSymbol");function Ya(e,t,n){return(0,u.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ls(n)&&(n.current=r))}),[t])}function Xa(e,t,n,r,o){var s,i;const{visualElement:a}=(0,u.useContext)(Ua),l=(0,u.useContext)(Ba),c=(0,u.useContext)(ut),d=(0,u.useContext)(dt).reducedMotion,f=(0,u.useRef)(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const m=f.current,p=(0,u.useContext)(pi);!m||m.projection||!o||"html"!==m.type&&"svg"!==m.type||function(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Za(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(i)||a&&Ls(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(f.current,n,o,p);const h=(0,u.useRef)(!1);(0,u.useInsertionEffect)((()=>{m&&h.current&&m.update(n,c)}));const g=n[On],y=(0,u.useRef)(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(i=window.MotionHasOptimisedAnimation)||void 0===i?void 0:i.call(window,g)));return wt((()=>{m&&(h.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),wi.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())})),(0,u.useEffect)((()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),y.current=!1))})),m}function Za(e){if(e)return!1!==e.options.allowProjection?e.projection:Za(e.parent)}function Ja({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var s,i;function a(e,s){let i;const a={...(0,u.useContext)(dt),...e,layoutId:Qa(e)},{isStatic:l}=a,d=function(e){const{initial:t,animate:n}=function(e,t){if(Ha(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ct(t)?t:void 0,animate:Ct(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(Ua));return(0,u.useMemo)((()=>({initial:t,animate:n})),[Wa(t),Wa(n)])}(e),f=r(e,l);if(!l&&bt){(0,u.useContext)(Ba).strict;const e=function(e){const{drag:t,layout:n}=Ga;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(a);i=e.MeasureLayout,d.visualElement=Xa(o,f,a,t,e.ProjectionNode)}return(0,c.jsxs)(Ua.Provider,{value:d,children:[i&&d.visualElement?(0,c.jsx)(i,{visualElement:d.visualElement,...a}):null,n(o,e,Ya(f,d.visualElement,s),f,l,d.visualElement)]})}e&&function(e){for(const t in e)Ga[t]={...Ga[t],...e[t]}}(e),a.displayName=`motion.${"string"==typeof o?o:`create(${null!==(i=null!==(s=o.displayName)&&void 0!==s?s:o.name)&&void 0!==i?i:""})`}`;const l=(0,u.forwardRef)(a);return l[Ka]=o,l}function Qa({layoutId:e}){const t=(0,u.useContext)(lt).id;return t&&void 0!==e?t+"-"+e:e}const el=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tl(e){return"string"==typeof e&&!e.includes("-")&&!!(el.indexOf(e)>-1||/[A-Z]/u.test(e))}const nl=e=>(t,n)=>{const r=(0,u.useContext)(Ua),o=(0,u.useContext)(ut),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,s){const i={latestValues:rl(r,o,s,e),renderState:t()};return n&&(i.onMount=e=>n({props:r,current:e,...i}),i.onUpdate=e=>n(e)),i}(e,t,r,o);return n?s():ct(s)};function rl(e,t,n,r){const o={},s=r(e,{});for(const e in s)o[e]=Pi(s[e]);let{initial:i,animate:a}=e;const l=Ha(e),c=$a(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?a:i;if(d&&"boolean"!=typeof d&&!Et(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Tt(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const ol=(e,t)=>t&&"number"==typeof e?t.transform(e):e,sl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},il=fn.length;function al(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const e in t){const n=t[e];if(mn.has(e))i=!0;else if(Qr(e))o[e]=n;else{const t=ol(n,Mr[e]);e.startsWith("origin")?(a=!0,s[e]=t):r[e]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",o=!0;for(let s=0;s<il;s++){const i=fn[s],a=e[i];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(i.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=ol(a,Mr[i]);l||(o=!1,r+=`${sl[i]||i}(${e}) `),n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}const ll={offset:"stroke-dashoffset",array:"stroke-dasharray"},cl={offset:"strokeDashoffset",array:"strokeDasharray"};function ul(e,t,n){return"string"==typeof e?e:ur.transform(t+n*e)}function dl(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:s,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(al(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:p}=e;f.transform&&(p&&(m.transform=f.transform),delete f.transform),p&&(void 0!==o||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){return`${ul(t,e.x,e.width)} ${ul(n,e.y,e.height)}`}(p,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?ll:cl;e[s.offset]=ur.transform(-r);const i=ur.transform(t),a=ur.transform(n);e[s.array]=`${i} ${a}`}(f,i,a,l,!1)}const fl=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ml(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const pl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function hl(e,t,n,r){ml(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(pl.has(n)?n:In(n),t.attrs[n])}function gl(e,{layout:t,layoutId:n}){return mn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!bi[e]||"opacity"===e)}function yl(e,t,n){var r;const{style:o}=e,s={};for(const i in o)(Mn(o[i])||t.style&&Mn(t.style[i])||gl(i,e)||void 0!==(null===(r=null==n?void 0:n.getValue(i))||void 0===r?void 0:r.liveStyle))&&(s[i]=o[i]);return s}function vl(e,t,n){const r=yl(e,t,n);for(const n in e)(Mn(e[n])||Mn(t[n]))&&(r[-1!==fn.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const bl=["x","y","width","height","cx","cy","r"],wl={useVisualState:nl({scrapeMotionValuesFromProps:vl,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let s=!!e.drag;if(!s)for(const e in o)if(mn.has(e)){s=!0;break}if(!s)return;let i=!t;if(t)for(let n=0;n<bl.length;n++){const r=bl[n];e[r]!==t[r]&&(i=!0)}i&&yn.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),yn.render((()=>{dl(r,o,fl(n.tagName),e.transformTemplate),hl(n,r)}))}))}})},xl={useVisualState:nl({scrapeMotionValuesFromProps:yl,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function kl(e,t,n){for(const r in t)Mn(t[r])||gl(r,n)||(e[r]=t[r])}function El(e,t){const n={},r=function(e,t){const n={};return kl(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,u.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return al(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Rl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Sl(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rl.has(e)}let Cl=e=>!Sl(e);try{(Pl=require("@emotion/is-prop-valid").default)&&(Cl=e=>e.startsWith("on")?!Sl(e):Pl(e))}catch(e){}var Pl;function Tl(e,t,n,r){const o=(0,u.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return dl(n,t,fl(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};kl(t,e.style,e),o.style={...t,...o.style}}return o}function jl(e=!1){return(t,n,r,{latestValues:o},s)=>{const i=(tl(t)?Tl:El)(n,o,s,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Cl(o)||!0===n&&Sl(o)||!t&&!Sl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==u.Fragment?{...a,...i,ref:r}:{},{children:c}=n,d=(0,u.useMemo)((()=>Mn(c)?c.get():c),[c]);return(0,u.createElement)(t,{...l,children:d})}}function Nl(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Ja({...tl(n)?wl:xl,preloadedFeatures:e,useRender:jl(r),createVisualElement:t,Component:n})}}const Al={current:null},Ml={current:!1},Ll=[...io,hr,Rr],Il=new WeakMap,Ol=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Dl{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=En.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,yn.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=s;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Ha(t),this.isVariantNode=$a(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==a[e]&&Mn(t)&&t.set(a[e],!1)}}mount(e){this.current=e,Il.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ml.current||function(){if(Ml.current=!0,bt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Al.current=e.matches;e.addListener(t),t()}else Al.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Al.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Il.delete(this.current),this.projection&&this.projection.unmount(),vn(this.notifyUpdate),vn(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=mn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&yn.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),s&&s(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Ga){const t=Ga[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ol.length;t++){const n=Ol[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Mn(o))e.addValue(r,o);else if(Mn(s))e.addValue(r,Nn(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,Nn(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Nn(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(Zr(r)||Kn(r))?r=parseFloat(r):(o=r,!Ll.find(so(o))&&Rr.test(t)&&(r=Or(e,t))),this.setBaseTarget(e,Mn(r)?r.get():r)),Mn(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=Tt(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Mn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Cn),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _l extends Dl{constructor(){super(...arguments),this.KeyframeResolver=lo}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Mn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Vl extends _l{constructor(){super(...arguments),this.type="html",this.renderInstance=ml}readValueFromInstance(e,t){if(mn.has(t)){const e=Ir(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Qr(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return li(e,t)}build(e,t,n){al(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return yl(e,t,n)}}class Fl extends _l{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ws}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(mn.has(t)){const e=Ir(t);return e&&e.default||0}return t=pl.has(t)?t:In(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return vl(e,t,n)}build(e,t,n){dl(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){hl(e,t,0,r)}mount(e){this.isSVGTag=fl(e.tagName),super.mount(e)}}const zl=kt(Nl({...xs,...Fa,...Aa,...za},((e,t)=>tl(e)?new Fl(t):new Vl(t,{allowProjection:e!==u.Fragment}))));let Bl=!1;const Ul=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:s="light",design:i="stack",icon:a,variant:l="neutral",removeToast:d})=>{const f=(0,u.useRef)(0),m=(0,u.useRef)(0),p=(0,u.useRef)(),h=(e,t=o)=>{if(r&&!(o<0))return f.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof d&&d(e.id)}),t)};(0,u.useEffect)((()=>{const t=o;return p.current=h(e,t),()=>{clearTimeout(p.current)}}),[]),(0,u.useEffect)((()=>{!e?.dismiss||"function"!=typeof d||d(e.id)}),[e]);const g=()=>{"function"==typeof d&&e?.action?.onClick?.((()=>d(e.id)))};let y=null;return"stack"===i&&(y=(0,c.jsx)("div",{className:le("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===s?st:ot?.[l],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(p.current),m.current=(new Date).getTime()},onMouseLeave:()=>{p.current=h(e,o-(m.current-f.current))},children:"custom"!==e.type?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Je({variant:l,icon:a,theme:s})}),(0,c.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[et({title:t,theme:s}),tt({content:n,theme:s}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,c.jsx)("div",{className:"mt-2.5",children:Qe({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:g,theme:s})})]}),(0,c.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,c.jsx)("button",{className:le("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",it[s]??it.light),onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof d&&d(e.id)},children:(0,c.jsx)(Be,{})})})]}):e?.jsx?.({close:()=>d(e.id),action:e?.action?{...e?.action,onClick:g}:null})})),"inline"===i&&(y=(0,c.jsxs)("div",{className:le("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===s?st:ot?.[l],"lg:w-[47.5rem] w-full"),children:[(0,c.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Je({variant:l,icon:a,theme:s})}),(0,c.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[et({title:t,theme:s}),tt({content:n,theme:s})]}),(0,c.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,c.jsx)("button",{className:le("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",it[s]??it.light),onClick:()=>d(e.id),children:(0,c.jsx)(Be,{})})})]})),y},Hl=(e=>(0,u.memo)((t=>{const n=t.singleTon;return Bl&&n?null:(Bl=!0,(0,c.jsx)(e,{...t}))})))((({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:s=5e3})=>{const[i,a]=(0,u.useState)([]);(0,u.useEffect)((()=>{He.subscribe((e=>{e?.dismiss?a((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,at.flushSync)((()=>a((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const l=e=>{a((t=>t.filter((t=>t.id!==e))))};return(0,c.jsx)("ul",{className:le("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",rt[e]??rt["top-right"],r),children:(0,c.jsx)(xt,{initial:!1,children:i.map((e=>(0,c.jsx)(zl.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,c.jsx)(Ul,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??s,removeToast:l,variant:e.type,theme:e?.theme??n})},e.id)))})})}));function $l(e){return $l="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},$l(e)}function Wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach((function(t){Gl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gl(e,t,n){return(t=function(e){var t=function(e){if("object"!=$l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Yl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.initialModules,n=void 0===t?[]:t,r=e.saveEndpoint,o=void 0===r?null:r,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(n),2),i=s[0],c=s[1];(0,a.useEffect)((function(){n.length>0&&c(n)}),[n]);var u=(0,a.useCallback)((function(e,t,n){c((function(r){return r.map((function(r){return r.id===e?ql(ql({},r),{},{steps:r.steps.map((function(e){return e.id===t?ql(ql({},e),{},{completed:n}):e}))}):r}))})),o&&De()({path:o,method:"POST",data:{chapterId:e,stepId:t,completed:n}}).catch((function(r){c((function(r){return r.map((function(r){return r.id===e?ql(ql({},r),{},{steps:r.steps.map((function(e){return e.id===t?ql(ql({},e),{},{completed:!n}):e}))}):r}))})),$e.error((0,l.__)("Failed to save progress. Please try again.","sureforms")),console.error("Failed to save progress:",r)}))}),[o]),d=(0,a.useCallback)((function(e,t){u(e,t,!0)}),[u]),f=(0,a.useCallback)((function(e,t){u(e,t,!1)}),[u]),m=(0,a.useCallback)((function(){c((function(e){return e.map((function(e){return ql(ql({},e),{},{steps:e.steps.map((function(e){return ql(ql({},e),{},{completed:!1})}))})}))}))}),[]),p=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=i;if(c((function(t){return t.map((function(t){return e&&t.id!==e?t:ql(ql({},t),{},{steps:t.steps.map((function(e){return ql(ql({},e),{},{completed:!0})}))})}))})),o){var n=(e?t.filter((function(t){return t.id===e})):t).flatMap((function(e){return e.steps.filter((function(e){return!e.completed})).map((function(t){return De()({path:o,method:"POST",data:{chapterId:e.id,stepId:t.id,completed:!0}})}))}));Promise.all(n).catch((function(e){c(t),$e.error((0,l.__)("Failed to save progress. Please try again.","sureforms")),console.error("Failed to mark all as complete:",e)}))}}),[i,o]),h=(0,a.useMemo)((function(){var e=i.find((function(e){return e.steps.length!==e.steps.filter((function(e){return e.completed})).length}));return null==e?void 0:e.id}),[i]),g=(0,a.useMemo)((function(){var e=i.reduce((function(e,t){return e+t.steps.length}),0),t=i.reduce((function(e,t){return e+t.steps.filter((function(e){return e.completed})).length}),0),n=e>0?Math.round(t/e*100):0;return{totalModules:i.length,totalLessons:e,completedLessons:t,completionPercentage:n,isFullyCompleted:e>0&&t===e}}),[i]),y=(0,a.useCallback)((function(e){var t=i.find((function(t){return t.id===e}));if(!t)return null;var n=t.steps.length,r=t.steps.filter((function(e){return e.completed})).length;return{totalLessons:n,completedLessons:r,isCompleted:n>0&&r===n,completionPercentage:n>0?Math.round(r/n*100):0}}),[i]);return{modules:i,updateLessonCompletion:u,markLessonCompleted:d,markLessonIncomplete:f,markAllComplete:p,resetProgress:m,firstIncompleteModuleId:h,progressStats:g,getModuleStats:y}},Xl=(0,u.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:s=null,disabled:i=!1,onClose:a=()=>{},closable:l=!1,onMouseDown:u=()=>{},disableHover:d=!1},f)=>{const m={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let p="",h="group relative justify-center flex items-center cursor-pointer";const g={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return i?(p=m.disabled,h+=" cursor-not-allowed disabled"):p=m[o],e?(0,c.jsxs)("span",{className:le("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",p,!d&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:f,children:[s?(0,c.jsx)("span",{className:le("justify-center flex items-center",g[t]),children:s}):null,(0,c.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,c.jsxs)("span",{className:le(h,g[t]),onMouseDown:u,role:"button",tabIndex:0,...!i&&{onClick:a},children:[(0,c.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,c.jsx)(Be,{}),(0,c.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));Xl.displayName="Badge";const Zl=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();var Jl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ql=(0,u.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>(0,u.createElement)("svg",{ref:l,...Jl,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Zl("lucide",o),...a},[...i.map((([e,t])=>(0,u.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),ec=(e,t)=>{const n=(0,u.forwardRef)((({className:n,...r},o)=>{return(0,u.createElement)(Ql,{ref:o,iconNode:t,className:Zl(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},tc=ec("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),nc=ec("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),rc=ec("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),oc=ec("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),sc=ec("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);function ic(){return"undefined"!=typeof window}function ac(e){return uc(e)?(e.nodeName||"").toLowerCase():"#document"}function lc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function cc(e){var t;return null==(t=(uc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uc(e){return!!ic()&&(e instanceof Node||e instanceof lc(e).Node)}function dc(e){return!!ic()&&(e instanceof Element||e instanceof lc(e).Element)}function fc(e){return!!ic()&&(e instanceof HTMLElement||e instanceof lc(e).HTMLElement)}function mc(e){return!(!ic()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof lc(e).ShadowRoot)}function pc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function hc(e){return["table","td","th"].includes(ac(e))}function gc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function yc(e){const t=vc(),n=dc(e)?wc(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function vc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bc(e){return["html","body","#document"].includes(ac(e))}function wc(e){return lc(e).getComputedStyle(e)}function xc(e){return dc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kc(e){if("html"===ac(e))return e;const t=e.assignedSlot||e.parentNode||mc(e)&&e.host||cc(e);return mc(t)?t.host:t}function Ec(e){const t=kc(e);return bc(t)?e.ownerDocument?e.ownerDocument.body:e.body:fc(t)&&pc(t)?t:Ec(t)}function Rc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ec(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),i=lc(o);if(s){const e=Sc(i);return t.concat(i,i.visualViewport||[],pc(o)?o:[],e&&n?Rc(e):[])}return t.concat(o,Rc(o,[],n))}function Sc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cc(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Pc(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&mc(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Tc(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function jc(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Nc(e){return!jc().includes("jsdom/")&&(!Mc()&&0===e.width&&0===e.height||Mc()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Ac(){return/apple/i.test(navigator.vendor)}function Mc(){const e=/android/i;return e.test(Tc())||e.test(jc())}function Lc(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ic(e){return(null==e?void 0:e.ownerDocument)||document}function Oc(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Dc(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _c(e){return fc(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Vc(e){e.preventDefault(),e.stopPropagation()}var Fc=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),zc="undefined"==typeof Element,Bc=zc?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Uc=!zc&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Hc=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},$c=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!Hc(i,!1))if("SLOT"===i.tagName){var a=i.assignedElements(),l=e(a.length?a:i.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{Bc.call(i,Fc)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!Hc(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else s.unshift.apply(s,i.children)}}return o},Wc=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qc=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Wc(e)?0:e.tabIndex},Gc=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Kc=function(e){return"INPUT"===e.tagName},Yc=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Xc=function(e,t){return!(t.disabled||Hc(t)||function(e){return Kc(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Bc.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Bc.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Yc(e)}else{if("function"==typeof r){for(var s=e;e;){var i=e.parentElement,a=Uc(e);if(i&&!i.shadowRoot&&!0===r(i))return Yc(e);e=e.assignedSlot?e.assignedSlot:i||a===e.ownerDocument?i:a.host}e=s}if(function(e){var t,n,r,o,s=e&&Uc(e),i=null===(t=s)||void 0===t?void 0:t.host,a=!1;if(s&&s!==e)for(a=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&i;){var l,c,u;a=!(null===(c=i=null===(l=s=Uc(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Bc.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Zc=function(e,t){return!(function(e){return function(e){return Kc(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Uc(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||qc(t)<0||!Xc(e,t))},Jc=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Qc=function e(t){var n=[],r=[];return t.forEach((function(t,o){var s=!!t.scopeParent,i=s?t.scopeParent:t,a=function(e,t){var n=qc(e);return n<0&&t&&!Wc(e)?0:n}(i,s),l=s?e(t.candidates):i;0===a?s?n.push.apply(n,l):n.push(i):r.push({documentOrder:o,tabIndex:a,item:t,isScope:s,content:l})})),r.sort(Gc).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},eu=function(e,t){var n;return n=(t=t||{}).getShadowRoot?$c([e],t.includeContainer,{filter:Zc.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Jc}):function(e,t,n){if(Hc(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Fc));return t&&Bc.call(e,Fc)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Zc.bind(null,t)),Qc(n)};const tu=Math.min,nu=Math.max,ru=Math.round,ou=Math.floor,su=e=>({x:e,y:e}),iu={left:"right",right:"left",bottom:"top",top:"bottom"},au={start:"end",end:"start"};function lu(e,t,n){return nu(e,tu(t,n))}function cu(e,t){return"function"==typeof e?e(t):e}function uu(e){return e.split("-")[0]}function du(e){return e.split("-")[1]}function fu(e){return"x"===e?"y":"x"}function mu(e){return"y"===e?"height":"width"}function pu(e){return["top","bottom"].includes(uu(e))?"y":"x"}function hu(e){return fu(pu(e))}function gu(e){return e.replace(/start|end/g,(e=>au[e]))}function yu(e){return e.replace(/left|right|bottom|top/g,(e=>iu[e]))}function vu(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function bu(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function wu(e,t,n){let{reference:r,floating:o}=e;const s=pu(t),i=hu(t),a=mu(i),l=uu(t),c="y"===s,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(du(t)){case"start":m[i]-=f*(n&&c?-1:1);break;case"end":m[i]+=f*(n&&c?-1:1)}return m}async function xu(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=cu(t,e),p=vu(m),h=a[f?"floating"===d?"reference":"floating":d],g=bu(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(h)))||n?h:h.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},w=bu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function ku(e){const t=wc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fc(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ru(n)!==s||ru(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Eu(e){return dc(e)?e:e.contextElement}function Ru(e){const t=Eu(e);if(!fc(t))return su(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ku(t);let i=(s?ru(n.width):n.width)/r,a=(s?ru(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const Su=su(0);function Cu(e){const t=lc(e);return vc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Su}function Pu(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=Eu(e);let i=su(1);t&&(r?dc(r)&&(i=Ru(r)):i=Ru(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==lc(e))&&t}(s,n,r)?Cu(s):su(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const e=lc(s),t=r&&dc(r)?lc(r):r;let n=e,o=Sc(n);for(;o&&r&&t!==n;){const e=Ru(o),t=o.getBoundingClientRect(),r=wc(o),s=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=s,c+=i,n=lc(o),o=Sc(n)}}return bu({width:u,height:d,x:l,y:c})}function Tu(e,t){const n=xc(e).scrollLeft;return t?t.left+n:Pu(cc(e)).left+n}function ju(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Tu(e,r)),y:r.top+t.scrollTop}}function Nu(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=lc(e),r=cc(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const e=vc();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=cc(e),n=xc(e),r=e.ownerDocument.body,o=nu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Tu(e);const a=-n.scrollTop;return"rtl"===wc(r).direction&&(i+=nu(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}(cc(e));else if(dc(t))r=function(e,t){const n=Pu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=fc(e)?Ru(e):su(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=Cu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bu(r)}function Au(e,t){const n=kc(e);return!(n===t||!dc(n)||bc(n))&&("fixed"===wc(n).position||Au(n,t))}function Mu(e,t,n){const r=fc(t),o=cc(t),s="fixed"===n,i=Pu(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=su(0);function c(){l.x=Tu(o)}if(r||!r&&!s)if(("body"!==ac(t)||pc(o))&&(a=xc(t)),r){const e=Pu(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();s&&!r&&o&&c();const u=!o||r||s?su(0):ju(o,a);return{x:i.left+a.scrollLeft-l.x-u.x,y:i.top+a.scrollTop-l.y-u.y,width:i.width,height:i.height}}function Lu(e){return"static"===wc(e).position}function Iu(e,t){if(!fc(e)||"fixed"===wc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return cc(e)===n&&(n=n.ownerDocument.body),n}function Ou(e,t){const n=lc(e);if(gc(e))return n;if(!fc(e)){let t=kc(e);for(;t&&!bc(t);){if(dc(t)&&!Lu(t))return t;t=kc(t)}return n}let r=Iu(e,t);for(;r&&hc(r)&&Lu(r);)r=Iu(r,t);return r&&bc(r)&&Lu(r)&&!yc(r)?n:r||function(e){let t=kc(e);for(;fc(t)&&!bc(t);){if(yc(t))return t;if(gc(t))return null;t=kc(t)}return null}(e)||n}const Du={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,i=cc(r),a=!!t&&gc(t.floating);if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=su(1);const u=su(0),d=fc(r);if((d||!d&&!s)&&(("body"!==ac(r)||pc(i))&&(l=xc(r)),fc(r))){const e=Pu(r);c=Ru(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||s?su(0):ju(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:cc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?gc(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Rc(e,[],!1).filter((e=>dc(e)&&"body"!==ac(e))),o=null;const s="fixed"===wc(e).position;let i=s?kc(e):e;for(;dc(i)&&!bc(i);){const t=wc(i),n=yc(i);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||pc(i)&&!n&&Au(e,i))?r=r.filter((e=>e!==i)):o=t,i=kc(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=s[0],a=s.reduce(((e,n)=>{const r=Nu(t,n,o);return e.top=nu(r.top,e.top),e.right=tu(r.right,e.right),e.bottom=tu(r.bottom,e.bottom),e.left=nu(r.left,e.left),e}),Nu(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Ou,getElementRects:async function(e){const t=this.getOffsetParent||Ou,n=this.getDimensions,r=await n(e.floating);return{reference:Mu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ku(e);return{width:t,height:n}},getScale:Ru,isElement:dc,isRTL:function(e){return"rtl"===wc(e).direction}};function _u(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vu(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Eu(e),u=o||s?[...c?Rc(c):[],...Rc(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=cc(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(a||t(),!f||!m)return;const p={rootMargin:-ou(d)+"px "+-ou(o.clientWidth-(u+f))+"px "+-ou(o.clientHeight-(d+m))+"px "+-ou(u)+"px",threshold:nu(0,tu(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||_u(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),s}(c,n):null;let f,m=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let h=l?Pu(e):null;return l&&function t(){const r=Pu(e);h&&!_u(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Fu=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=uu(n),a=du(n),l="y"===pu(n),c=["left","top"].includes(i)?-1:1,u=s&&l?-1:1,d=cu(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(m="end"===a?-1*p:p),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}(t,e);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},zu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=cu(e,t),c={x:n,y:r},u=await xu(t,l),d=pu(uu(o)),f=fu(d);let m=c[f],p=c[d];if(s){const e="y"===f?"bottom":"right";m=lu(m+u["y"===f?"top":"left"],m,m-u[e])}if(i){const e="y"===d?"bottom":"right";p=lu(p+u["y"===d?"top":"left"],p,p-u[e])}const h=a.fn({...t,[f]:m,[d]:p});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:s,[d]:i}}}}}},Bu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=cu(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=uu(o),v=pu(a),b=uu(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!h?[yu(a)]:function(e){const t=yu(e);return[gu(e),t,gu(t)]}(a)),k="none"!==p;!f&&k&&x.push(...function(e,t,n,r){const o=du(e);let s=function(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}(uu(e),"start"===n,r);return o&&(s=s.map((e=>e+"-"+o)),t&&(s=s.concat(s.map(gu)))),s}(a,h,p,w));const E=[a,...x],R=await xu(t,g),S=[];let C=(null==(r=s.flip)?void 0:r.overflows)||[];if(u&&S.push(R[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=du(e),o=hu(e),s=mu(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=yu(i)),[i,yu(i)]}(o,i,w);S.push(R[e[0]],R[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var P,T;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=E[e];if(t){var j;const n="alignment"===d&&v!==pu(t),r=(null==(j=C[0])?void 0:j.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==(T=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=C.filter((e=>{if(k){const t=pu(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Uu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=cu(e,t)||{};if(null==c)return{};const d=vu(u),f={x:n,y:r},m=hu(o),p=mu(m),h=await i.getDimensions(c),g="y"===m,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=s.reference[p]+s.reference[m]-f[m]-s.floating[p],x=f[m]-s.reference[m],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=k?k[b]:0;E&&await(null==i.isElement?void 0:i.isElement(k))||(E=a.floating[b]||s.floating[p]);const R=w/2-x/2,S=E/2-h[p]/2-1,C=tu(d[y],S),P=tu(d[v],S),T=C,j=E-h[p]-P,N=E/2-h[p]/2+R,A=lu(T,N,j),M=!l.arrow&&null!=du(o)&&N!==A&&s.reference[p]/2-(N<T?C:P)-h[p]/2<0,L=M?N<T?N-T:N-j:0;return{[m]:f[m]+L,data:{[m]:A,centerOffset:N-A-L,...M&&{alignmentOffset:L}},reset:M}}}),Hu=(e,t,n)=>{const r=new Map,o={platform:Du,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=wu(c,r,l),f=r,m={},p=0;for(let n=0;n<a.length;n++){const{name:s,fn:h}=a[n],{x:g,y,data:v,reset:b}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,m={...m,[s]:{...m[s],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=wu(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:s})};var $u="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;function Wu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Wu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Wu(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function qu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gu(e,t){const n=qu(e);return Math.round(t*n)/n}function Ku(e){const t=u.useRef(e);return $u((()=>{t.current=e})),t}const Yu=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Uu({element:n.current,padding:r}).fn(t):{}:n?Uu({element:n,padding:r}).fn(t):{};var o}}),Xu=(e,t)=>({...zu(e),options:[e,t]}),Zu=(e,t)=>({...Bu(e),options:[e,t]}),Ju=(e,t)=>({...Yu(e),options:[e,t]}),Qu={...d},ed=Qu.useInsertionEffect||(e=>e());function td(e){const t=u.useRef((()=>{}));return ed((()=>{t.current=e})),u.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var nd="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}let od=!1,sd=0;const id=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sd++,ad=Qu.useId||function(){const[e,t]=u.useState((()=>od?id():void 0));return nd((()=>{null==e&&t(id())}),[]),u.useEffect((()=>{od=!0}),[]),e},ld=u.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:s}},width:i=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:d,stroke:f,d:m,style:{transform:p,...h}={},...g}=e,y=ad(),[v,b]=u.useState(!1);if(nd((()=>{r&&"rtl"===wc(r).direction&&b(!0)}),[r]),!r)return null;const[w,x]=n.split("-"),k="top"===w||"bottom"===w;let E=d;(k&&null!=s&&s.x||!k&&null!=s&&s.y)&&(E=null);const R=2*c,S=R/2,C=i/2*(l/-8+1),P=a/2*l/4,T=!!m,j=E&&"end"===x?"bottom":"top";let N=E&&"end"===x?"right":"left";E&&v&&(N="end"===x?"left":"right");const A=null!=(null==o?void 0:o.x)?E||o.x:"",M=null!=(null==o?void 0:o.y)?E||o.y:"",L=m||"M0,0 H"+i+" L"+(i-C)+","+(a-P)+" Q"+i/2+","+a+" "+C+","+(a-P)+" Z",I={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[w];return u.createElement("svg",rd({},g,{"aria-hidden":!0,ref:t,width:T?i:i+R,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[N]:A,[j]:M,[w]:k||T?"100%":"calc(100% - "+R/2+"px)",transform:[I,p].filter((e=>!!e)).join(" "),...h}}),R>0&&u.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:f,strokeWidth:R+(m?0:1),d:L}),u.createElement("path",{stroke:R&&!m?g.fill:"none",d:L}),u.createElement("clipPath",{id:y},u.createElement("rect",{x:-S,y:S*(T?-1:1),width:i+R,height:i})))}));const cd=u.createContext(null),ud=u.createContext(null),dd=()=>{var e;return(null==(e=u.useContext(cd))?void 0:e.id)||null},fd=()=>u.useContext(ud);function md(e){return"data-floating-ui-"+e}function pd(e){const t=(0,u.useRef)(e);return nd((()=>{t.current=e})),t}const hd=md("safe-polygon");function gd(e,t,n){return n&&!Lc(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let yd=0;function vd(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(yd);const s=()=>null==e?void 0:e.focus({preventScroll:n});o?s():yd=requestAnimationFrame(s)}function bd(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let wd=new WeakMap,xd=new WeakSet,kd={},Ed=0;const Rd=e=>e&&(e.host||Rd(e.parentNode));function Sd(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Ic(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",s=r?"inert":n?"aria-hidden":null,i=(a=t,e.map((e=>{if(a.contains(e))return e;const t=Rd(e);return a.contains(t)?t:null})).filter((e=>null!=e)));var a;const l=new Set,c=new Set(i),u=[];kd[o]||(kd[o]=new WeakMap);const d=kd[o];return i.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==ac(t))if(l.has(t))e(t);else{const e=s?t.getAttribute(s):null,n=null!==e&&"false"!==e,r=(wd.get(t)||0)+1,i=(d.get(t)||0)+1;wd.set(t,r),d.set(t,i),u.push(t),1===r&&n&&xd.add(t),1===i&&t.setAttribute(o,""),!n&&s&&t.setAttribute(s,"true")}}))}(t),l.clear(),Ed++,()=>{u.forEach((e=>{const t=(wd.get(e)||0)-1,n=(d.get(e)||0)-1;wd.set(e,t),d.set(e,n),t||(!xd.has(e)&&s&&e.removeAttribute(s),xd.delete(e)),n||e.removeAttribute(o)})),Ed--,Ed||(wd=new WeakMap,wd=new WeakMap,xd=new WeakSet,kd={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Cd=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Pd(e,t){const n=eu(e,Cd());"prev"===t&&n.reverse();const r=n.indexOf(Cc(Ic(e)));return n.slice(r+1)[0]}function Td(){return Pd(document.body,"next")}function jd(){return Pd(document.body,"prev")}function Nd(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Pc(n,r)}function Ad(e){eu(e,Cd()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Md(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Ld={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Id(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Od=u.forwardRef((function(e,t){const[n,r]=u.useState();nd((()=>(Ac()&&r("button"),document.addEventListener("keydown",Id),()=>{document.removeEventListener("keydown",Id)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[md("focus-guard")]:"",style:Ld};return u.createElement("span",rd({},e,o))})),Dd=u.createContext(null),_d=md("portal");function Vd(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=ad(),o=Fd(),[s,i]=u.useState(null),a=u.useRef(null);return nd((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{a.current=null}))}),[s]),nd((()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(_d,""),e.appendChild(n),a.current=n,i(n)}),[t,r]),nd((()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!dc(e)&&(e=e.current),e=e||document.body;let s=null;t&&(s=document.createElement("div"),s.id=t,e.appendChild(s));const l=document.createElement("div");l.id=r,l.setAttribute(_d,""),e=s||e,e.appendChild(l),a.current=l,i(l)}),[t,n,r,o]),s}({id:n,root:r}),[i,a]=u.useState(null),l=u.useRef(null),c=u.useRef(null),d=u.useRef(null),f=u.useRef(null),m=null==i?void 0:i.modal,p=null==i?void 0:i.open,h=!!i&&!i.modal&&i.open&&o&&!(!r&&!s);return u.useEffect((()=>{if(s&&o&&!m)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&Nd(e)&&("focusin"===e.type?Md:Ad)(s)}}),[s,o,m]),u.useEffect((()=>{s&&(p||Md(s))}),[p,s]),u.createElement(Dd.Provider,{value:u.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:f,portalNode:s,setFocusManagerState:a})),[o,s])},h&&s&&u.createElement(Od,{"data-type":"outside",ref:l,onFocus:e=>{if(Nd(e,s)){var t;null==(t=d.current)||t.focus()}else{const e=jd()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),h&&s&&u.createElement("span",{"aria-owns":s.id,style:Ld}),s&&at.createPortal(t,s),h&&s&&u.createElement(Od,{"data-type":"outside",ref:c,onFocus:e=>{if(Nd(e,s)){var t;null==(t=f.current)||t.focus()}else{const t=Td()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Fd=()=>u.useContext(Dd),zd="data-floating-ui-focusable";let Bd=[];function Ud(e){Bd=Bd.filter((e=>e.isConnected));let t=e;if(t&&"body"!==ac(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Bc.call(e,Fc)&&Zc(t,e)}(t,Cd())){const e=eu(t,Cd())[0];e&&(t=e)}Bd.push(t),Bd.length>20&&(Bd=Bd.slice(-20))}}function Hd(){return Bd.slice().reverse().find((e=>e.isConnected))}const $d=u.forwardRef((function(e,t){return u.createElement("button",rd({},e,{type:"button",ref:t,tabIndex:-1,style:Ld}))}));function Wd(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:s=!0,initialFocus:i=0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:m,refs:p,nodeId:h,onOpenChange:g,events:y,dataRef:v,floatingId:b,elements:{domReference:w,floating:x}}=t,k="number"==typeof i&&i<0,E=!!(R=w)&&"combobox"===R.getAttribute("role")&&_c(R)&&k;var R;const S="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||s,C=pd(o),P=pd(i),T=pd(a),j=fd(),N=Fd(),A=u.useRef(null),M=u.useRef(null),L=u.useRef(!1),I=u.useRef(!1),O=u.useRef(-1),D=null!=N,_=(z=x)?z.hasAttribute(zd)?z:z.querySelector("["+zd+"]")||z:null,V=td((function(e){return void 0===e&&(e=_),e?eu(e,Cd()):[]})),F=td((e=>{const t=V(e);return C.current.map((e=>w&&"reference"===e?w:_&&"floating"===e?_:t)).filter(Boolean).flat()}));var z;function B(e){return!r&&d&&c?u.createElement($d,{ref:"start"===e?A:M,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}u.useEffect((()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Pc(_,Cc(Ic(_)))&&0===V().length&&!E&&Vc(e);const t=F(),n=Dc(e);"reference"===C.current[0]&&n===w&&(Vc(e),e.shiftKey?vd(t[t.length-1]):vd(t[1])),"floating"===C.current[1]&&n===_&&e.shiftKey&&(Vc(e),vd(t[0]))}}const t=Ic(_);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,w,_,c,C,E,V,F]),u.useEffect((()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=Dc(e),n=V().indexOf(t);-1!==n&&(O.current=n)}}),[r,x,V]),u.useEffect((()=>{if(!r&&f)return x&&fc(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){I.current=!0,setTimeout((()=>{I.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(Pc(w,t)||Pc(x,t)||Pc(t,x)||Pc(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(md("focus-guard"))||j&&(bd(j.nodesRef.current,h).find((e=>{var n,r;return Pc(null==(n=e.context)?void 0:n.elements.floating,t)||Pc(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(j.nodesRef.current,h).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(l&&n&&Cc(Ic(_))===Ic(_).body){fc(_)&&_.focus();const e=O.current,t=V(),n=t[e]||t[t.length-1]||_;fc(n)&&n.focus()}!E&&c||!t||!n||I.current||t===Hd()||(L.current=!0,g(!1,e,"focus-out"))}))}}),[r,w,x,_,c,h,j,N,g,f,l,V,E]),u.useEffect((()=>{var e;if(r)return;const t=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+md("portal")+"]"))||[]);if(x){const e=[x,...t,A.current,M.current,C.current.includes("reference")||E?w:null].filter((e=>null!=e)),n=c||E?Sd(e,S,!S):Sd(e);return()=>{n()}}}),[r,w,x,c,C,N,E,S]),nd((()=>{if(r||!fc(_))return;const e=Cc(Ic(_));queueMicrotask((()=>{const t=F(_),n=P.current,r=("number"==typeof n?t[n]:n.current)||_,o=Pc(_,e);k||o||!m||vd(r,{preventScroll:r===_})}))}),[r,m,_,k,F,P]),nd((()=>{if(r||!_)return;let e=!1;const t=Ic(_),n=Cc(t);let o=v.current.openEvent;function s(t){let{open:n,reason:r,event:s,nested:i}=t;n&&(o=s),"escape-key"===r&&p.domReference.current&&Ud(p.domReference.current),"hover"===r&&"mouseleave"===s.type&&(L.current=!0),"outside-press"===r&&(i?(L.current=!1,e=!0):L.current=!(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Mc()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(s)||Nc(s)))}Ud(n),y.on("openchange",s);const i=t.createElement("span");return i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object.assign(i.style,Ld),D&&w&&w.insertAdjacentElement("afterend",i),()=>{y.off("openchange",s);const n=Cc(t),r=Pc(x,n)||j&&bd(j.nodesRef.current,h).some((e=>{var t;return Pc(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&p.domReference.current&&Ud(p.domReference.current);const a="boolean"==typeof T.current?Hd()||i:T.current.current||i;queueMicrotask((()=>{T.current&&!L.current&&fc(a)&&(a===n||n===t.body||r)&&a.focus({preventScroll:e}),i.remove()}))}}),[r,x,_,T,v,p,y,j,h,D,w]),u.useEffect((()=>{queueMicrotask((()=>{L.current=!1}))}),[r]),nd((()=>{if(!r&&N)return N.setFocusManagerState({modal:c,closeOnFocusOut:f,open:m,onOpenChange:g,refs:p}),()=>{N.setFocusManagerState(null)}}),[r,N,c,m,g,p,f]),nd((()=>{if(r)return;if(!_)return;if("function"!=typeof MutationObserver)return;if(k)return;const e=()=>{const e=_.getAttribute("tabindex"),t=V(),n=Cc(Ic(x)),r=t.indexOf(n);-1!==r&&(O.current=r),C.current.includes("floating")||n!==p.domReference.current&&0===t.length?"0"!==e&&_.setAttribute("tabindex","0"):"-1"!==e&&_.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(_,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,_,p,C,V,k]);const U=!r&&S&&(!c||!E)&&(D||c);return u.createElement(u.Fragment,null,U&&u.createElement(Od,{"data-type":"inside",ref:null==N?void 0:N.beforeInsideRef,onFocus:e=>{if(c){const e=F();vd("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(L.current=!1,Nd(e,N.portalNode)){const e=Td()||w;null==e||e.focus()}else{var t;null==(t=N.beforeOutsideRef.current)||t.focus()}}}),!E&&B("start"),n,B("end"),U&&u.createElement(Od,{"data-type":"inside",ref:null==N?void 0:N.afterInsideRef,onFocus:e=>{if(c)vd(F()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(f&&(L.current=!0),Nd(e,N.portalNode)){const e=jd()||w;null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}}))}let qd=0,Gd=()=>{};const Kd=u.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return nd((()=>{if(n)return qd++,1===qd&&(Gd=function(){const e=/iP(hone|ad|od)|iOS/.test(Tc()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,s=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var i,a;const e=(null==(i=window.visualViewport)?void 0:i.offsetLeft)||0,n=(null==(a=window.visualViewport)?void 0:a.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,s))}}()),()=>{qd--,0===qd&&Gd()}}),[n]),u.createElement("div",rd({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function Yd(e){return fc(e.target)&&"BUTTON"===e.target.tagName}function Xd(e){return _c(e)}function Zd(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:s}}=e,{enabled:i=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,m=u.useRef(),p=u.useRef(!1),h=u.useMemo((()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){const t=m.current;0===e.button&&"click"!==a&&(Lc(t,!0)&&c||(!n||!l||o.current.openEvent&&f&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=m.current;"mousedown"===a&&m.current?m.current=void 0:Lc(t,!0)&&c||(!n||!l||o.current.openEvent&&f&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!d||Yd(e)||(" "!==e.key||Xd(s)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&r(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Yd(e)||Xd(s)||" "===e.key&&p.current&&(p.current=!1,r(!n||!l,e.nativeEvent,"click"))}})),[o,s,a,c,d,r,n,f,l]);return u.useMemo((()=>i?{reference:h}:{}),[i,h])}const Jd={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Qd={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ef=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function tf(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:s}=e,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:m=!1,bubbles:p,capture:h}=t,g=fd(),y=td("function"==typeof l?l:()=>!1),v="function"==typeof l?y:l,b=u.useRef(!1),w=u.useRef(!1),{escapeKey:x,outsidePress:k}=ef(p),{escapeKey:E,outsidePress:R}=ef(h),S=u.useRef(!1),C=td((e=>{var t;if(!n||!i||!a||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,l=g?bd(g.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),P=td((e=>{var t;const n=()=>{var t;C(e),null==(t=Dc(e))||t.removeEventListener("keydown",n)};null==(t=Dc(e))||t.addEventListener("keydown",n)})),T=td((e=>{var t;const n=b.current;b.current=!1;const i=w.current;if(w.current=!1,"click"===c&&i)return;if(n)return;if("function"==typeof v&&!v(e))return;const a=Dc(e),l="["+md("inert")+"]",u=Ic(o.floating).querySelectorAll(l);let d=dc(a)?a:null;for(;d&&!bc(d);){const e=kc(d);if(bc(e)||!dc(e))break;d=e}if(u.length&&dc(a)&&!a.matches("html,body")&&!Pc(a,o.floating)&&Array.from(u).every((e=>!Pc(d,e))))return;if(fc(a)&&A){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===wc(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const f=null==(t=s.current.floatingContext)?void 0:t.nodeId,m=g&&bd(g.nodesRef.current,f).some((t=>{var n;return Oc(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Oc(e,o.floating)||Oc(e,o.domReference)||m)return;const p=g?bd(g.nodesRef.current,f):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),j=td((e=>{var t;const n=()=>{var t;T(e),null==(t=Dc(e))||t.removeEventListener(c,n)};null==(t=Dc(e))||t.addEventListener(c,n)}));u.useEffect((()=>{if(!n||!i)return;s.current.__escapeKeyBubbles=x,s.current.__outsidePressBubbles=k;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),S.current=!0}function u(){e=window.setTimeout((()=>{S.current=!1}),vc()?5:0)}const d=Ic(o.floating);a&&(d.addEventListener("keydown",E?P:C,E),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),v&&d.addEventListener(c,R?j:T,R);let f=[];return m&&(dc(o.domReference)&&(f=Rc(o.domReference)),dc(o.floating)&&(f=f.concat(Rc(o.floating))),!dc(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(Rc(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{a&&(d.removeEventListener("keydown",E?P:C,E),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),v&&d.removeEventListener(c,R?j:T,R),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,o,a,v,c,n,r,m,i,x,k,C,E,P,T,R,j]),u.useEffect((()=>{b.current=!1}),[v,c]);const N=u.useMemo((()=>({onKeyDown:C,[Jd[f]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[C,r,d,f]),A=u.useMemo((()=>({onKeyDown:C,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[Qd[c]]:()=>{b.current=!0}})),[C,c]);return u.useMemo((()=>i?{reference:N,floating:A}:{}),[i,N,A])}function nf(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ad(),s=u.useRef({}),[i]=u.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),a=null!=dd(),[l,c]=u.useState(r.reference),d=td(((e,t,r)=>{s.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),f=u.useMemo((()=>({setPositionReference:c})),[]),m=u.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return u.useMemo((()=>({dataRef:s,open:t,onOpenChange:d,elements:m,events:i,floatingId:o,refs:f})),[t,d,m,i,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=u.useState(null),[a,l]=u.useState(null),c=(null==o?void 0:o.domReference)||s,d=u.useRef(null),f=fd();nd((()=>{c&&(d.current=c)}),[c]);const m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=u.useState(r);Wu(m,r)||p(r);const[h,g]=u.useState(null),[y,v]=u.useState(null),b=u.useCallback((e=>{e!==E.current&&(E.current=e,g(e))}),[]),w=u.useCallback((e=>{e!==R.current&&(R.current=e,v(e))}),[]),x=s||h,k=i||y,E=u.useRef(null),R=u.useRef(null),S=u.useRef(d),C=null!=l,P=Ku(l),T=Ku(o),j=Ku(c),N=u.useCallback((()=>{if(!E.current||!R.current)return;const e={placement:t,strategy:n,middleware:m};T.current&&(e.platform=T.current),Hu(E.current,R.current,e).then((e=>{const t={...e,isPositioned:!1!==j.current};A.current&&!Wu(S.current,t)&&(S.current=t,at.flushSync((()=>{f(t)})))}))}),[m,t,n,T,j]);$u((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const A=u.useRef(!1);$u((()=>(A.current=!0,()=>{A.current=!1})),[]),$u((()=>{if(x&&(E.current=x),k&&(R.current=k),x&&k){if(P.current)return P.current(x,k,N);N()}}),[x,k,N,P,C]);const M=u.useMemo((()=>({reference:E,floating:R,setReference:b,setFloating:w})),[b,w]),L=u.useMemo((()=>({reference:x,floating:k})),[x,k]),I=u.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=Gu(L.floating,d.x),r=Gu(L.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...qu(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,L.floating,d.x,d.y]);return u.useMemo((()=>({...d,update:N,refs:M,elements:L,floatingStyles:I})),[d,N,M,L,I])}({...e,elements:{...o,...a&&{reference:a}}}),p=u.useCallback((e=>{const t=dc(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),m.refs.setReference(t)}),[m.refs]),h=u.useCallback((e=>{(dc(e)||null===e)&&(d.current=e,i(e)),(dc(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!dc(e))&&m.refs.setReference(e)}),[m.refs]),g=u.useMemo((()=>({...m.refs,setReference:h,setPositionReference:p,domReference:d})),[m.refs,h,p]),y=u.useMemo((()=>({...m.elements,domReference:c})),[m.elements,c]),v=u.useMemo((()=>({...m,...r,refs:g,elements:y,nodeId:t})),[m,g,y,t,r]);return nd((()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),u.useMemo((()=>({...m,context:v,refs:g,elements:y})),[m,g,y,v])}const rf="active",of="selected";function sf(e,t,n){const r=new Map,o="item"===n;let s=e;if(o&&e){const{[rf]:t,[of]:n,...r}=e;s=r}return{..."floating"===n&&{tabIndex:-1,[zd]:""},...s,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,s]=t;var i;o&&[rf,of].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof s&&(null==(i=r.get(n))||i.push(s),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=s)})),e):e),{})}}function af(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=u.useCallback((t=>sf(t,e,"reference")),t),s=u.useCallback((t=>sf(t,e,"floating")),n),i=u.useCallback((t=>sf(t,e,"item")),r);return u.useMemo((()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i})),[o,s,i])}const lf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function cf(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,a=null!=(n=lf.get(i))?n:i,l=ad(),c=null!=dd(),d=u.useMemo((()=>"tooltip"===a||"label"===i?{["aria-"+("label"===i?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":r?o:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l},..."menu"===a&&c&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}}),[a,o,c,r,l,i]),f=u.useMemo((()=>{const e={id:o,...a&&{role:a}};return"tooltip"===a||"label"===i?e:{...e,..."menu"===a&&{"aria-labelledby":l}}}),[a,o,l,i]),m=u.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(i){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,i]);return u.useMemo((()=>s?{reference:d,floating:f,item:m}:{}),[s,d,f,m])}const uf=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function df(e,t){return"function"==typeof e?e(t):e}function ff(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let e=0,i=s-1;e<s;i=e++){const[s,a]=t[e]||[0,0],[l,c]=t[i]||[0,0];a>=r!=c>=r&&n<=(l-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function mf(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,s=!1,i=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:f,nodeId:m,tree:p}=e;return function(e){function h(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:y}=e,v=[g,y],b=Dc(e),w="mouseleave"===e.type,x=Pc(d.floating,b),k=Pc(d.domReference,b),E=d.domReference.getBoundingClientRect(),R=d.floating.getBoundingClientRect(),S=u.split("-")[0],C=n>R.right-R.width/2,P=c>R.bottom-R.height/2,T=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,E),j=R.width>E.width,N=R.height>E.height,A=(j?E:R).left,M=(j?E:R).right,L=(N?E:R).top,I=(N?E:R).bottom;if(x&&(s=!0,!w))return;if(k&&(s=!1),k&&!w)return void(s=!0);if(w&&dc(e.relatedTarget)&&Pc(d.floating,e.relatedTarget))return;if(p&&bd(p.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===S&&c>=E.bottom-1||"bottom"===S&&c<=E.top+1||"left"===S&&n>=E.right-1||"right"===S&&n<=E.left+1)return h();let O=[];switch(S){case"top":O=[[A,E.top+1],[A,R.bottom-1],[M,R.bottom-1],[M,E.top+1]];break;case"bottom":O=[[A,R.top+1],[A,E.bottom-1],[M,E.bottom-1],[M,R.top+1]];break;case"left":O=[[R.right-1,I],[R.right-1,L],[E.left+1,L],[E.left+1,I]];break;case"right":O=[[E.right-1,I],[E.right-1,L],[R.left+1,L],[R.left+1,I]]}if(!ff([g,y],O)){if(s&&!T)return h();if(!w&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===a||0===r)return i=e,a=t,l=n,null;const o=e-i,s=t-a,c=Math.sqrt(o*o+s*s);return i=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}ff([g,y],function(e){let[n,r]=e;switch(S){case"top":return[[j?n+t/2:C?n+4*t:n-4*t,r+t+1],[j?n-t/2:C?n+4*t:n-4*t,r+t+1],[R.left,C||j?R.bottom-t:R.top],[R.right,C?j?R.bottom-t:R.top:R.bottom-t]];case"bottom":return[[j?n+t/2:C?n+4*t:n-4*t,r-t],[j?n-t/2:C?n+4*t:n-4*t,r-t],[R.left,C||j?R.top+t:R.bottom],[R.right,C?j?R.top+t:R.bottom:R.top+t]];case"left":{const e=[n+t+1,N?r+t/2:P?r+4*t:r-4*t],o=[n+t+1,N?r-t/2:P?r+4*t:r-4*t];return[[P||N?R.right-t:R.left,R.top],[P?N?R.right-t:R.left:R.right-t,R.bottom],e,o]}case"right":return[[n-t,N?r+t/2:P?r+4*t:r-4*t],[n-t,N?r-t/2:P?r+4*t:r-4*t],[P||N?R.left+t:R.right,R.top],[P?N?R.left+t:R.right:R.left+t,R.bottom]]}}([n,c]))?!s&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const pf=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:s,setOpen:i,children:a,className:l,tooltipPortalRoot:d,tooltipPortalId:f,boundary:m="clippingAncestors",strategy:p="fixed",offset:h=8,triggers:g=["hover","focus"],interactive:y=!1})=>{const v=(0,u.useMemo)((()=>"boolean"==typeof s&&"function"==typeof i),[s,i]),[b,w]=(0,u.useState)(!1),x=(0,u.useRef)(null),{refs:k,floatingStyles:E,context:R}=nf({open:v?s:b,onOpenChange:v?i:w,placement:t,strategy:p,middleware:[(D=h,{...Fu(D),options:[D,undefined]}),Zu({boundary:m}),Xu({boundary:m}),Ju({element:x})],whileElementsMounted:Vu}),S=Zd(R,{enabled:!v&&g.includes("click")}),C=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:d=!1,restMs:f=0,move:m=!0}=t,p=fd(),h=dd(),g=pd(c),y=pd(l),v=pd(n),b=u.useRef(),w=u.useRef(-1),x=u.useRef(),k=u.useRef(-1),E=u.useRef(!0),R=u.useRef(!1),S=u.useRef((()=>{})),C=u.useRef(!1),P=u.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);u.useEffect((()=>{if(a)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(k.current),E.current=!0,C.current=!1)}}),[a,s]),u.useEffect((()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){P()&&r(!1,e,"hover")}const t=Ic(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,a,g,P]);const T=u.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=gd(y.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[y,r]),j=td((()=>{S.current(),x.current=void 0})),N=td((()=>{if(R.current){const e=Ic(i.floating).body;e.style.pointerEvents="",e.removeAttribute(hd),R.current=!1}})),A=td((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));u.useEffect((()=>{if(a&&dc(i.domReference)){var e;const r=i.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=i.floating)||e.addEventListener("mouseleave",l),m&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",s),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=i.floating)||e.removeEventListener("mouseleave",l),m&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",s)}}function t(e){if(clearTimeout(w.current),E.current=!1,d&&!Lc(b.current)||f>0&&!gd(y.current,"open"))return;const t=gd(y.current,"open",b.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function s(e){if(A())return;S.current();const t=Ic(i.floating);if(clearTimeout(k.current),C.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){N(),j(),A()||T(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(S.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!Pc(i.floating,e.relatedTarget))&&T(e)}function l(e){A()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){N(),j(),A()||T(e)}})(e))}}),[i,a,e,d,f,m,T,j,N,r,n,v,p,y,g,o,A]),nd((()=>{var e;if(a&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){R.current=!0;const e=i.floating;if(dc(i.domReference)&&e){var t;const n=Ic(i.floating).body;n.setAttribute(hd,"");const r=i.domReference,o=null==p||null==(t=p.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[a,n,h,i,p,g,P]),nd((()=>{n||(b.current=void 0,C.current=!1,j(),N())}),[n,j,N]),u.useEffect((()=>()=>{j(),clearTimeout(w.current),clearTimeout(k.current),N()}),[a,i.domReference,j,N]);const M=u.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){E.current||v.current||r(!0,t,"hover")}d&&!Lc(b.current)||n||0===f||C.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(k.current),"touch"===b.current?o():(C.current=!0,k.current=window.setTimeout(o,f)))}}}),[d,r,n,v,f]),L=u.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){A()||T(e.nativeEvent,!1)}})),[T,A]);return u.useMemo((()=>a?{reference:M,floating:L}:{}),[a,M,L])}(R,{move:!1,enabled:!v&&g.includes("hover"),...y&&{handleClose:mf()}}),P=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:s,elements:i}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=u.useRef(!1),d=u.useRef(),f=u.useRef(!0);u.useEffect((()=>{if(!a)return;const e=lc(i.domReference);function t(){!n&&fc(i.domReference)&&i.domReference===Cc(Ic(i.domReference))&&(c.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[i.domReference,n,a]),u.useEffect((()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}}),[o,a]),u.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const m=u.useMemo((()=>({onPointerDown(e){Nc(e.nativeEvent)||(f.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Dc(e.nativeEvent);if(l&&dc(t))try{if(Ac()&&Tc().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!_c(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=dc(t)&&t.hasAttribute(md("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const a=Cc(i.domReference?i.domReference.ownerDocument:document);(t||a!==i.domReference)&&(Pc(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,a)||Pc(i.domReference,a)||o||r(!1,n,"focus"))}))}})),[s,i.domReference,r,l]);return u.useMemo((()=>a?{reference:m}:{}),[a,m])}(R,{enabled:!v&&g.includes("focus")}),T=tf(R),j=cf(R,{role:"tooltip"}),{getReferenceProps:N,getFloatingProps:A}=af([S,C,P,T,j]),{isMounted:M,styles:L}=function(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:s,duration:i=250}=t,a=e.placement,l=a.split("-")[0],c=u.useMemo((()=>({side:l,placement:a})),[l,a]),d="number"==typeof i,f=(d?i:i.open)||0,m=(d?i:i.close)||0,[p,h]=u.useState((()=>({...df(s,c),...df(n,c)}))),{isMounted:g,status:y}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,s=("number"==typeof o?o:o.close)||0,[i,a]=u.useState("unmounted"),l=function(e,t){const[n,r]=u.useState(e);return e&&!n&&r(!0),u.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,s);return l||"close"!==i||a("unmounted"),nd((()=>{if(r){if(n){a("initial");const e=requestAnimationFrame((()=>{a("open")}));return()=>{cancelAnimationFrame(e)}}a("close")}}),[n,r]),{isMounted:l,status:i}}(e,{duration:i}),v=pd(n),b=pd(r),w=pd(o),x=pd(s);return nd((()=>{const e=df(v.current,c),t=df(w.current,c),n=df(x.current,c),r=df(b.current,c)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===y&&h((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===y&&h({transitionProperty:Object.keys(r).map(uf).join(","),transitionDuration:f+"ms",...n,...r}),"close"===y){const r=t||e;h({transitionProperty:Object.keys(r).map(uf).join(","),transitionDuration:m+"ms",...n,...r})}}),[m,w,v,b,x,f,y,c]),{isMounted:g,styles:p}}(R,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),I={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],O="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var D;return(0,c.jsxs)(u.Fragment,{children:[(0,u.isValidElement)(a)&&(0,c.jsx)(u.Fragment,{children:(0,u.cloneElement)(a,{ref:nt(a.ref,k.setReference),className:le(a.props.className),...N()})},"tooltip-reference"),(0,c.jsx)(Vd,{id:f,root:d,children:M&&(0,c.jsxs)("div",{className:le("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",I,"max-w-80 w-fit",l),ref:k.setFloating,style:{...E,...L},...A(),children:[(0,c.jsxs)("div",{children:[!!n&&(0,c.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,c.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,c.jsx)(ld,{ref:x,context:R,className:le("fill-current",O)})]})})]})};pf.displayName="Tooltip";const hf=(0,u.createContext)({}),gf=()=>(0,u.useContext)(hf),yf={open:{opacity:1},exit:{opacity:0}},vf={duration:.2},bf=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:s=!1,exitOnEsc:i=!0,design:a="simple",scrollLock:l=!0})=>{const d=void 0!==e&&void 0!==t,[f,m]=(0,u.useState)(!1),p=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useMemo)((()=>d?e:f),[e,f]),y=(0,u.useMemo)((()=>d?t:m),[m,t]),{refs:v,context:b}=nf({open:g,onOpenChange:y}),w=Zd(b),x=tf(b,{enabled:s||i,escapeKey:i,outsidePress:e=>!!s&&!e?.target?.closest("ul.fui-toast-container")}),k=cf(b,{role:"dialog"}),{getFloatingProps:E}=af([w,x,k]),R=()=>{g||y(!0)},S=(0,u.useCallback)((()=>(0,u.isValidElement)(r)?(0,u.cloneElement)(r,{onClick:ce(R,r?.props?.onClick),ref:v.setReference,"aria-haspopup":"dialog","aria-expanded":g}):"function"==typeof r?r({onClick:R}):null),[r,R,v.setReference,g]);return(0,c.jsxs)(c.Fragment,{children:[S(),(0,c.jsx)(hf.Provider,{value:{open:g,setOpen:y,handleClose:()=>{g&&y(!1)},design:a,context:b,getFloatingProps:E,refs:v,dialogContainerRef:h,dialogRef:p,scrollLock:l,className:o},children:n})]})};bf.displayName="Dialog";const wf=({children:e,className:t})=>{const{open:n,handleClose:r,context:o,getFloatingProps:s,dialogRef:i,scrollLock:a,dialogContainerRef:l,className:u,refs:d}=gf();return(0,c.jsx)(xt,{children:n&&(0,c.jsx)(Kd,{ref:l,lockScroll:a,className:le("z-999999",u),"aria-modal":"true",children:(0,c.jsx)(Wd,{context:o,...d?.reference&&{returnFocus:d.reference},children:(0,c.jsx)(zl.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:yf,role:"dialog","aria-modal":"true",transition:vf,children:(0,c.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,c.jsx)("div",{ref:e=>{e&&(i.current=e,o&&o.refs.setFloating(e))},...s?.(),className:le("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})})})};wf.displayName="Dialog.Panel";const xf=({children:e,...t})=>(0,c.jsx)(Vd,{...t,children:e});xf.displayName="Dialog.Portal";const kf=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=gf();return r?.current?(0,c.jsx)(c.Fragment,{children:(0,at.createPortal)((0,c.jsx)(xt,{children:n&&(0,c.jsx)(zl.div,{className:le("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:yf,transition:vf})}),r.current)}):null};kf.displayName="Dialog.Backdrop";const Ef=({children:e,className:t,...n})=>(0,c.jsx)("div",{className:le("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});Ef.displayName="Dialog.Header";const Rf=({children:e,as:t="h3",className:n,...r})=>(0,c.jsx)(t,{className:le("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});Rf.displayName="Dialog.Title";const Sf=({children:e,as:t="p",className:n,...r})=>(0,c.jsx)(t,{className:le("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});Sf.displayName="Dialog.Description";const Cf=({className:e,...t})=>(0,c.jsx)("button",{className:le("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,c.jsx)(Be,{className:"size-4 text-text-primary shrink-0"})}),Pf=({children:e,as:t=u.Fragment,...n})=>{const{handleClose:r}=gf();return e?t===u.Fragment?"function"==typeof e?e({close:r}):(0,u.cloneElement)(e,{onClick:r}):(0,c.jsx)(t,{...n,onClick:r,"aria-label":"Close dialog",children:e}):(0,c.jsx)(Cf,{onClick:r,...n})};Pf.displayName="Dialog.CloseButton";const Tf=({children:e,className:t,...n})=>(0,c.jsx)("div",{className:le("px-5",t),...n,children:e});Tf.displayName="Dialog.Body";const jf=({children:e,className:t})=>{const{design:n,handleClose:r}=gf();return(0,c.jsx)("div",{className:le("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};jf.displayName="Dialog.Footer",bf.Panel=wf,bf.Portal=xf,bf.Title=Rf,bf.Description=Sf,bf.CloseButton=Pf,bf.Header=Ef,bf.Body=Tf,bf.Footer=jf,bf.Backdrop=kf;const Nf=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,c.jsx)("div",{className:le(r,"animate-pulse",o,t),...n})},Af=ec("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Mf=ec("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Lf=ec("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]),If=ec("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);let Of={data:""},Df=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_f=/\/\*[^]*?\*\/| +/g,Vf=/\n+/g,Ff=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];"@"==s[0]?"i"==s[1]?n=s+" "+i+";":r+="f"==s[1]?Ff(i,s):s+"{"+Ff(i,"k"==s[1]?"":t)+"}":"object"==typeof i?r+=Ff(i,t?t.replace(/([^,])+/g,(e=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s):null!=i&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ff.p?Ff.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},zf={},Bf=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Bf(e[n]);return t}return e};function Uf(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let s=Bf(e),i=zf[s]||(zf[s]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(s));if(!zf[i]){let t=s!==e?e:(e=>{let t,n,r=[{}];for(;t=Df.exec(e.replace(_f,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Vf," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Vf," ").trim();return r[0]})(e);zf[i]=Ff(o?{["@keyframes "+i]:t}:t,n?"":"."+i)}let a=n&&zf.g?zf.g:null;return n&&(zf.g=zf[i]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(zf[i],t,r,a),i})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let s=t[o];if(s&&s.call){let e=s(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;s=t?"."+t:e&&"object"==typeof e?e.props?"":Ff(e,""):!1===e?"":e}return e+r+(null==s?"":s)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,(e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Of)(t.target),t.g,t.o,t.k)}Uf.bind({g:1});let Hf,$f,Wf,qf=Uf.bind({k:1});function Gf(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;n.p=Object.assign({theme:$f&&$f()},a),n.o=/ *go\d+/.test(l),a.className=Uf.apply(n,r)+(l?" "+l:""),t&&(a.ref=i);let c=e;return e[0]&&(c=a.as||e,delete a.as),Wf&&c[0]&&Wf(a),Hf(c,a)}return t?t(o):o}}var Kf=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Yf=(()=>{let e=0;return()=>(++e).toString()})(),Xf=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Zf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return Zf(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Jf=[],Qf={toasts:[],pausedAt:void 0},em=e=>{Qf=Zf(Qf,e),Jf.forEach((e=>{e(Qf)}))},tm=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Yf()}))(t,e,n);return em({type:2,toast:r}),r.id},nm=(e,t)=>tm("blank")(e,t);nm.error=tm("error"),nm.success=tm("success"),nm.loading=tm("loading"),nm.custom=tm("custom"),nm.dismiss=e=>{em({type:3,toastId:e})},nm.remove=e=>em({type:4,toastId:e}),nm.promise=(e,t,n)=>{let r=nm.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?Kf(t.success,e):void 0;return o?nm.success(o,{id:r,...n,...null==n?void 0:n.success}):nm.dismiss(r),e})).catch((e=>{let o=t.error?Kf(t.error,e):void 0;o?nm.error(o,{id:r,...n,...null==n?void 0:n.error}):nm.dismiss(r)})),e},new Map;var rm=qf` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,om=qf` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,sm=qf` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,im=Gf("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${rm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${om} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${sm} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,am=qf` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,lm=Gf("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${am} 1s linear infinite; `,cm=qf` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,um=qf` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,dm=Gf("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${cm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${um} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,fm=Gf("div")` position: absolute; `,mm=Gf("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,pm=qf` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,hm=Gf("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${pm} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,gm=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?u.createElement(hm,null,t):t:"blank"===n?null:u.createElement(mm,null,u.createElement(lm,{...r}),"loading"!==n&&u.createElement(fm,null,"error"===n?u.createElement(im,{...r}):u.createElement(dm,{...r})))},ym=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,vm=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,bm=Gf("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,wm=Gf("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `;u.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Xf()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ym(n),vm(n)];return{animation:t?`${qf(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${qf(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=u.createElement(gm,{toast:e}),i=u.createElement(wm,{...e.ariaProps},Kf(e.message,e));return u.createElement(bm,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:s,message:i}):u.createElement(u.Fragment,null,s,i))})),function(e){Ff.p=void 0,Hf=e,$f=void 0,Wf=void 0}(u.createElement),Uf` z-index: 9999; > * { pointer-events: auto; } `,window.wp.editor,window.wp.data,window.wp.url;const xm=e=>{const t=Sm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),km(n,t)||Rm(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},km=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?km(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find((({validator:e})=>e(s)))?.classGroupId},Em=/^\[(.+)\]$/,Rm=e=>{if(Em.test(e)){const t=Em.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sm=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)Cm(n[e],r,e,t);return r},Cm=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Tm(e)?void Cm(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Cm(o,Pm(t,e),n,r)}))}else(""===e?t:Pm(t,e)).classGroupId=n}))},Pm=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Tm=e=>e.isThemeGetter,jm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Nm=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,s=0;for(let i=0;i<e.length;i++){let a=e[i];if(0===r&&0===o){if(":"===a){t.push(e.slice(s,i)),s=i+1;continue}if("/"===a){n=i;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const i=0===t.length?e:e.substring(s),a=Am(i);return{modifiers:t,hasImportantModifier:a!==i,baseClassName:a,maybePostfixModifierPosition:n&&n>s?n-s:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Am=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Mm=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},Lm=/\s+/;function Im(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Om(e))&&(r&&(r+=" "),r+=t);return r}const Om=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Om(e[r]))&&(n&&(n+=" "),n+=t);return n};function Dm(e,...t){let n,r,o,s=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:jm(e.cacheSize),parseClassName:Nm(e),sortModifiers:Mm(e),...xm(e)}))(l),r=n.cache.get,o=n.cache.set,s=i,i(a)};function i(e){const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Lm);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!m,h=r(p?f.substring(0,m):f);if(!h){if(!p){l=t+(l.length>0?" "+l:l);continue}if(h=r(f),!h){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=s(u).join(":"),y=d?g+"!":g,v=y+h;if(i.includes(v))continue;i.push(v);const b=o(h,p);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,s),s}return function(){return s(Im.apply(null,arguments))}}const _m=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Vm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zm=/^\d+\/\d+$/,Bm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Um=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$m=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qm=e=>zm.test(e),Gm=e=>!!e&&!Number.isNaN(Number(e)),Km=e=>!!e&&Number.isInteger(Number(e)),Ym=e=>e.endsWith("%")&&Gm(e.slice(0,-1)),Xm=e=>Bm.test(e),Zm=()=>!0,Jm=e=>Um.test(e)&&!Hm.test(e),Qm=()=>!1,ep=e=>$m.test(e),tp=e=>Wm.test(e),np=e=>!op(e)&&!up(e),rp=e=>yp(e,xp,Qm),op=e=>Vm.test(e),sp=e=>yp(e,kp,Jm),ip=e=>yp(e,Ep,Gm),ap=e=>yp(e,bp,Qm),lp=e=>yp(e,wp,tp),cp=e=>yp(e,Sp,ep),up=e=>Fm.test(e),dp=e=>vp(e,kp),fp=e=>vp(e,Rp),mp=e=>vp(e,bp),pp=e=>vp(e,xp),hp=e=>vp(e,wp),gp=e=>vp(e,Sp,!0),yp=(e,t,n)=>{const r=Vm.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},vp=(e,t,n=!1)=>{const r=Fm.exec(e);return!!r&&(r[1]?t(r[1]):n)},bp=e=>"position"===e||"percentage"===e,wp=e=>"image"===e||"url"===e,xp=e=>"length"===e||"size"===e||"bg-size"===e,kp=e=>"length"===e,Ep=e=>"number"===e,Rp=e=>"family-name"===e,Sp=e=>"shadow"===e,Cp=Dm((Symbol.toStringTag,()=>{const e=_m("color"),t=_m("font"),n=_m("text"),r=_m("font-weight"),o=_m("tracking"),s=_m("leading"),i=_m("breakpoint"),a=_m("container"),l=_m("spacing"),c=_m("radius"),u=_m("shadow"),d=_m("inset-shadow"),f=_m("text-shadow"),m=_m("drop-shadow"),p=_m("blur"),h=_m("perspective"),g=_m("aspect"),y=_m("ease"),v=_m("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",up,op],w=()=>[up,op,l],x=()=>[qm,"full","auto",...w()],k=()=>[Km,"none","subgrid",up,op],E=()=>["auto",{span:["full",Km,up,op]},Km,up,op],R=()=>[Km,"auto",up,op],S=()=>["auto","min","max","fr",up,op],C=()=>["auto",...w()],P=()=>[qm,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],T=()=>[e,up,op],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",mp,ap,{position:[up,op]}],N=()=>["auto","cover","contain",pp,rp,{size:[up,op]}],A=()=>[Ym,dp,sp],M=()=>["","none","full",c,up,op],L=()=>["",Gm,dp,sp],I=()=>[Gm,Ym,mp,ap],O=()=>["","none",p,up,op],D=()=>["none",Gm,up,op],_=()=>["none",Gm,up,op],V=()=>[Gm,up,op],F=()=>[qm,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xm],breakpoint:[Xm],color:[Zm],container:[Xm],"drop-shadow":[Xm],ease:["in","out","in-out"],font:[np],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xm],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xm],shadow:[Xm],spacing:["px",Gm],text:[Xm],"text-shadow":[Xm],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qm,op,up,g]}],container:["container"],columns:[{columns:[Gm,op,up,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Km,"auto",up,op]}],basis:[{basis:[qm,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Gm,qm,"auto","initial","none",op]}],grow:[{grow:["",Gm,up,op]}],shrink:[{shrink:["",Gm,up,op]}],order:[{order:[Km,"first","last","none",up,op]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[a,"screen",...P()]}],"min-w":[{"min-w":[a,"screen","none",...P()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",n,dp,sp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,up,ip]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ym,op]}],"font-family":[{font:[fp,op,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,up,op]}],"line-clamp":[{"line-clamp":[Gm,"none",up,ip]}],leading:[{leading:[s,...w()]}],"list-image":[{"list-image":["none",up,op]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",up,op]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Gm,"from-font","auto",up,sp]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Gm,"auto",up,op]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",up,op]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",up,op]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Km,up,op],radial:["",up,op],conic:[Km,up,op]},hp,lp]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Gm,up,op]}],"outline-w":[{outline:["",Gm,dp,sp]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,gp,cp]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,gp,cp]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Gm,sp]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,gp,cp]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Gm,up,op]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Gm]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[up,op]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Gm]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",up,op]}],filter:[{filter:["","none",up,op]}],blur:[{blur:O()}],brightness:[{brightness:[Gm,up,op]}],contrast:[{contrast:[Gm,up,op]}],"drop-shadow":[{"drop-shadow":["","none",m,gp,cp]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Gm,up,op]}],"hue-rotate":[{"hue-rotate":[Gm,up,op]}],invert:[{invert:["",Gm,up,op]}],saturate:[{saturate:[Gm,up,op]}],sepia:[{sepia:["",Gm,up,op]}],"backdrop-filter":[{"backdrop-filter":["","none",up,op]}],"backdrop-blur":[{"backdrop-blur":O()}],"backdrop-brightness":[{"backdrop-brightness":[Gm,up,op]}],"backdrop-contrast":[{"backdrop-contrast":[Gm,up,op]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Gm,up,op]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Gm,up,op]}],"backdrop-invert":[{"backdrop-invert":["",Gm,up,op]}],"backdrop-opacity":[{"backdrop-opacity":[Gm,up,op]}],"backdrop-saturate":[{"backdrop-saturate":[Gm,up,op]}],"backdrop-sepia":[{"backdrop-sepia":["",Gm,up,op]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",up,op]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Gm,"initial",up,op]}],ease:[{ease:["linear","initial",y,up,op]}],delay:[{delay:[Gm,up,op]}],animate:[{animate:["none",v,up,op]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,up,op]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[up,op,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",up,op]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",up,op]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Gm,dp,sp,ip]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));window.wp.hooks,window.wp.blocks;var Pp=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var r=new URL(e);return r.searchParams.set(n,t),r.toString()}catch(t){return console.error("Invalid URL:",t),e}},Tp=function(){return Cp(ae.apply(void 0,arguments))};function jp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Np(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Np(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Np(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}void 0===window._srfmSlugAutoLabels&&(window._srfmSlugAutoLabels=new Map),window._srfmSlugAutoLabels;const Ap=function(e){var t,n,r,o,s,i,c,u=e.lesson,d=e.moduleId,f=e.isExpanded,m=void 0!==f&&f,p=e.onToggle,h=e.onCompletionChange,g=e.latestFormId,y=u.id,v=u.title,b=u.description,w=u.learn,x=u.action,k=u.headerAction,E=u.docsUrl,R=u.completed,S=void 0!==R&&R,C=u.timeEstimate,P=jp((0,a.useState)(S),2),T=P[0],j=P[1],N=jp((0,a.useState)(!1),2),A=N[0],M=N[1],L=jp((0,a.useState)(!1),2),I=L[0],O=L[1],D=jp((0,a.useState)(!1),2),_=D[0],V=D[1];if((0,a.useEffect)((function(){j(S)}),[S]),(0,a.useEffect)((function(){m||M(!1)}),[m]),!y||!v)return null;var F,z,B,U,H,$=T?"completed":m?"in-progress":"incomplete",W=function(e){null==e||e.stopPropagation();var t=!T;j(t),h&&h(d,y,t)},q="latest-form"===(null==k?void 0:k.dynamic)&&null===g,G=function(){var e,t;return"dialog"===(null==w?void 0:w.type)&&"video"===(null==w||null===(e=w.content)||void 0===e?void 0:e.type)&&(null==w||null===(t=w.content)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.url)||""},K=G(),Y=function(){var e=G();if(e){var t=e.match(/(?:youtube\.com\/embed\/|youtu\.be\/)([^?&]+)/);if(t)return"https://img.youtube.com/vi/".concat(t[1],"/maxresdefault.jpg")}return null}(),X=function(){var e;if("dialog"===(null==w?void 0:w.type)&&"video"===(null==w||null===(e=w.content)||void 0===e?void 0:e.type)){var t,n=null==w||null===(t=w.content)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.duration;if(n&&"number"==typeof n){var r=Math.round(n/60);return 1===r?(0,l.__)("1 minute","sureforms"):(0,l.sprintf)((0,l.__)("%d minutes","sureforms"),r)}}return null}(),Z="dialog"===(null==w?void 0:w.type)&&"video"===(null==w||null===(t=w.content)||void 0===t?void 0:t.type),J="dialog"===(null==w?void 0:w.type)&&"image"===(null==w||null===(n=w.content)||void 0===n?void 0:n.type),Q="dialog"===(null==w?void 0:w.type)&&"gif-video"===(null==w||null===(r=w.content)||void 0===r?void 0:r.type);return React.createElement(Ae,{containerType:"flex",direction:"column",className:"border border-solid rounded-lg transition-all duration-200 ".concat(m?"bg-background-secondary border-text-tertiary":"border-border-subtle")},React.createElement(Ae.Item,null,React.createElement("div",{className:"p-4 cursor-pointer",onClick:p,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p())},role:"button",tabIndex:0,"aria-expanded":m},React.createElement(Ae,{containerType:"flex",direction:"row",align:"center",gap:"md"},React.createElement(Ae.Item,{className:"flex-1 min-w-0"},React.createElement(Ae,{containerType:"flex",direction:"row",align:"center",gap:"sm"},React.createElement(Ae.Item,null,React.createElement(pf,{content:T?(0,l.__)("Mark as incomplete","sureforms"):(0,l.__)("Mark as complete","sureforms"),arrow:!0,placement:"top",tooltipPortalId:"srfm-learn-root"},React.createElement("button",{type:"button",className:"flex items-center justify-center w-6 h-6 rounded-full cursor-pointer bg-transparent border-0 p-0 transition-all duration-200 focus:outline-none ".concat(T?"hover:opacity-60":"hover:scale-110"),onClick:W,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},"aria-label":T?(0,l.__)("Mark as incomplete","sureforms"):(0,l.__)("Mark as complete","sureforms")},function(){switch($){case"completed":return React.createElement(Af,{className:"size-4 text-support-success"});case"in-progress":return React.createElement(Mf,{className:"size-4 text-support-info"});default:return React.createElement(Mf,{className:"size-4 text-text-primary"})}}()))),React.createElement(Ae.Item,{className:"flex-1 min-w-0"},React.createElement(Ie,{className:"text-base font-normal truncate block ".concat(T?"text-misc-skeleton-element":"text-text-primary")},v)))),(!T||m)&&(X||C)&&React.createElement(Ae.Item,{className:"hidden sm:block"},React.createElement(Xl,{label:X||C,size:"sm",variant:"neutral",type:"pill"})),Z&&React.createElement(Ae.Item,{className:"hidden sm:block"},React.createElement(Ie,{className:"text-sm font-normal whitespace-nowrap ".concat("completed"===$?"text-support-success":"text-text-tertiary")},function(){switch($){case"completed":return(0,l.__)("Completed","sureforms");case"in-progress":return(0,l.__)("In Progress","sureforms");default:return(0,l.__)("Incomplete","sureforms")}}())),React.createElement(Ae.Item,null,React.createElement("div",{className:"flex items-center justify-center w-6 h-6"},m?React.createElement(rc,{className:"size-4 text-text-tertiary"}):React.createElement(oc,{className:"size-4 text-text-tertiary"})))))),m&&React.createElement(Ae.Item,null,React.createElement(Ae,{containerType:"flex",direction:"column",gap:"md",className:"p-4 pt-0"},Z&&React.createElement(Ae.Item,null,React.createElement("div",{className:"relative rounded-lg border border-solid border-border-subtle overflow-hidden aspect-video"},A?React.createElement("iframe",{src:"".concat(K,"?autoplay=1&rel=0"),title:v,className:"absolute inset-0 w-full h-full border-none",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):React.createElement(React.Fragment,null,React.createElement("img",{src:Y,alt:v,className:"absolute inset-0 w-full h-full object-cover"}),React.createElement("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20"},React.createElement(Ye,{variant:"white",size:"lg",icon:React.createElement(Lf,{className:"size-5 text-black fill-black"}),className:"rounded-full px-6 py-6 shadow-2xl border-0 outline-none","aria-label":(0,l.__)("Play video","sureforms"),onClick:function(e){null==e||e.stopPropagation(),M(!0)}}))))),b&&React.createElement(Ae.Item,null,React.createElement("div",{className:"flex items-start justify-between gap-12 px-2"},React.createElement(Ie,{className:"text-sm text-text-secondary font-normal leading-relaxed text-justify"},b),React.createElement("div",{className:"flex items-center gap-1 flex-shrink-0"},!Z&&(J||Q)&&React.createElement(pf,{content:(0,l.__)("View Steps","sureforms"),arrow:!0,tooltipPortalId:"srfm-learn-root"},React.createElement(Ye,{variant:"ghost",size:"xs",icon:React.createElement(If,{className:"size-5"}),onClick:function(e){null==e||e.stopPropagation(),V(!1),O(!0)},"aria-label":(0,l.__)("View Steps","sureforms")})),!Z&&!J&&!Q&&(null==x?void 0:x.url)&&React.createElement(pf,{content:(0,l.__)("View Steps","sureforms"),arrow:!0,tooltipPortalId:"srfm-learn-root"},React.createElement(Ye,{variant:"ghost",size:"xs",icon:React.createElement(If,{className:"size-5"}),onClick:function(e){null==e||e.stopPropagation(),null!=x&&x.url&&(null!=x&&x.isExternal?window.open(null==x?void 0:x.url,"_blank","noopener,noreferrer"):window.location.href=null==x?void 0:x.url)},"aria-label":(0,l.__)("View Steps","sureforms")})),m&&(null==k?void 0:k.url)&&(q?React.createElement(pf,{content:(0,l.__)("Please create a form first","sureforms"),arrow:!0,placement:"top",tooltipPortalId:"srfm-learn-root"},React.createElement("span",{className:"inline-block cursor-not-allowed"},React.createElement(Ye,{variant:"primary",size:"sm",className:"pointer-events-none opacity-50",disabled:!0},null==k?void 0:k.label))):React.createElement(Ye,{variant:"primary",size:"sm",onClick:function(e){if(null==e||e.stopPropagation(),null!=k&&k.url)if("latest-form"!==k.dynamic)window.open(k.url,"_blank","noopener,noreferrer");else{var t,n=localStorage.getItem("srfmLearnFormId"),r=parseInt(n,10),o=Number.isFinite(r)&&r>0?r:null,s=null!=g?g:o,i="".concat(null===(t=srfm_admin)||void 0===t?void 0:t.site_url,"/wp-admin/"),a=k.source||"learn-setup-fields",l=s?"".concat(i,"post.php?post=").concat(s,"&action=edit&source=").concat(a):"".concat(i).concat(k.url);window.open(l,"_blank","noopener,noreferrer")}}},null==k?void 0:k.label))))),React.createElement(Ae.Item,null,React.createElement(Ae,{containerType:"flex",direction:"column",gap:"md",className:"px-2"},Z&&React.createElement(Ae.Item,null,React.createElement("div",{className:"flex gap-3"},null!==(o=srfm_admin)&&void 0!==o&&o.is_pro_active?E&&React.createElement(Ye,{variant:"ghost",size:"md",className:"flex-1 shadow-sm text-link-primary bg-background-secondary outline-none shadow-none",onClick:function(e){null==e||e.stopPropagation(),E&&window.open(E,"_blank","noopener,noreferrer")}},(0,l.__)("Documentation","sureforms")):React.createElement(Ye,{variant:"ghost",size:"md",className:"flex-1 shadow-sm text-link-primary bg-background-secondary outline-none shadow-none",onClick:function(e){var t;null==e||e.stopPropagation(),window.open(Pp((null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page)||"https://sureforms.com/pricing/","learn-section-upgrade-cta"),"_blank","noopener,noreferrer")}},(0,l.__)("Upgrade to Pro","sureforms")),React.createElement(Ye,{variant:"ghost",size:"md",className:"flex-1 shadow-sm bg-background-secondary outline-none shadow-none",onClick:W},T?(0,l.__)("Mark as Incomplete","sureforms"):(0,l.__)("Mark as Completed","sureforms")))))))),Q&&React.createElement(bf,{open:I,setOpen:O,exitOnClickOutside:!0},React.createElement(bf.Backdrop,null),React.createElement(bf.Panel,{className:"!w-full !max-w-4xl"},React.createElement(bf.Header,{className:"flex flex-row items-center justify-between"},React.createElement(bf.Title,null,v),React.createElement(bf.CloseButton,null)),React.createElement(bf.Body,{className:"pb-6"},React.createElement("div",{className:"relative w-full rounded-lg overflow-hidden aspect-video"},React.createElement("iframe",{src:I?(z=(null==w||null===(F=w.content)||void 0===F||null===(F=F.data)||void 0===F?void 0:F.url)||"",B=z.match(/embed\/([^?&]+)/),U=B?B[1]:"",H=new URLSearchParams({autoplay:1,mute:1,loop:1,playlist:U,controls:0,modestbranding:1,rel:0,playsinline:1,disablekb:1}),"".concat(z,"?").concat(H.toString())):"",title:(null==w||null===(s=w.content)||void 0===s||null===(s=s.data)||void 0===s?void 0:s.alt)||v,className:"absolute inset-0 w-full h-full border-none",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))),J&&React.createElement(bf,{open:I,setOpen:O,exitOnClickOutside:!0},React.createElement(bf.Backdrop,null),React.createElement(bf.Panel,{className:"!w-auto !max-w-4xl"},React.createElement(bf.Header,{className:"flex flex-row items-center justify-between"},React.createElement(bf.Title,null,v),React.createElement(bf.CloseButton,null)),React.createElement(bf.Body,null,React.createElement("div",{className:"relative w-full rounded-lg overflow-hidden"},!_&&React.createElement(Nf,{className:"w-full h-64"}),React.createElement("img",{src:null==w||null===(i=w.content)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.src,alt:(null==w||null===(c=w.content)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.alt)||v,className:"w-full h-auto border border-solid border-border-subtle rounded-lg ".concat(_?"block":"hidden"),onLoad:function(){return V(!0)}}))))))};function Mp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||Lp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lp(e,t){if(e){if("string"==typeof e)return Ip(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ip(e,t):void 0}}function Ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Op=function(e){var t=e.modules,n=e.defaultValue,r=e.onLessonCompletionChange,o=e.onMarkAllComplete,s=e.latestFormId,i=Mp((0,a.useState)(null),2),c=i[0],u=i[1],d=Mp((0,a.useState)(null),2),f=d[0],m=d[1];(0,a.useEffect)((function(){if(n&&t.length>0){var e,r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Lp(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(e=r.n()).done;){var o,s=e.value,i=null===(o=s.steps)||void 0===o?void 0:o.find((function(e){return!e.completed}));if(i){u(s.id),m(i.id);break}}}catch(e){r.e(e)}finally{r.f()}}}),[n]);var p=function(e){var n=c===e;if(u((function(t){return t===e?null:e})),n)m(null);else{var r,o=t.find((function(t){return t.id===e}));if((null==o||null===(r=o.steps)||void 0===r?void 0:r.length)>0){var s=o.steps.find((function(e){return!e.completed}));m((null==s?void 0:s.id)||o.steps[0].id)}}};return React.createElement(Ae,{containerType:"flex",direction:"column",gap:"md"},t.map((function(e){var t=e.id,n=e.title,i=e.description,a=e.url,u=e.steps,d=void 0===u?[]:u,h=d.filter((function(e){var t,n;return"dialog"===(null===(t=e.learn)||void 0===t?void 0:t.type)&&"video"===(null===(n=e.learn)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.type)})).length>0,g=d.length,y=d.filter((function(e){return e.completed})).length,v=g>0&&y===g,b=c===t;return React.createElement(Ae.Item,{key:t},React.createElement(Ae,{containerType:"flex",direction:"column",className:"bg-background-primary rounded-xl shadow-sm border border-solid transition-all duration-200 ".concat(b?"border-border-strong":"border-border-subtle")},React.createElement(Ae.Item,null,React.createElement("div",{className:"p-4 sm:p-6 cursor-pointer",onClick:function(){return p(t)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t))},role:"button",tabIndex:0,"aria-expanded":b},React.createElement(Ae,{containerType:"flex",direction:"column",className:"w-full gap-3"},React.createElement(Ae.Item,null,React.createElement(Ae,{containerType:"flex",direction:"row",align:"center",className:"w-full gap-3"},React.createElement(Ae.Item,{className:"flex-1 min-w-0"},React.createElement(Le,{size:"sm",title:n,className:"truncate"})),a&&React.createElement(Ae.Item,null,React.createElement(Ye,{variant:"ghost",size:"sm",icon:React.createElement(tc,{className:"size-3.5"}),iconPosition:"right",className:"text-link-primary p-0 h-auto outline-none shadow-none hover:underline",onClick:function(e){e.stopPropagation(),window.open(a,"_blank","noopener,noreferrer")}},(0,l.__)("Learn how","sureforms"))),g>0&&React.createElement(Ae.Item,null,React.createElement(Xl,{className:"relative overflow-hidden w-14 sm:w-[62px] text-xs".concat(y>0?" !text-link-primary !border-brand-border-300":""),label:React.createElement(React.Fragment,null,React.createElement("span",{className:"sr-only"},(0,l.sprintf)((0,l.__)("%1$d of %2$d steps completed","sureforms"),y,g)),React.createElement("span",{className:"flex items-center"},v&&React.createElement(nc,{size:12}),React.createElement("span",{className:"px-1 relative z-10"},y,"/",g)),React.createElement("span",{className:"absolute h-full top-0 left-0 bg-badge-background-orange-30 transition-[width] duration-300 ease-in-out",style:{width:"".concat(y/g*100,"%")}})),variant:"neutral",size:"sm",type:"pill"})),React.createElement(Ae.Item,null,React.createElement("div",{className:"flex items-center justify-center w-6 h-6"},b?React.createElement(rc,{className:"size-5 text-text-secondary"}):React.createElement(oc,{className:"size-5 text-text-secondary"}))))),React.createElement(Ae.Item,null,React.createElement(Ae,{containerType:"flex",direction:"row",align:"center",justify:"between",className:"w-full gap-8"},React.createElement(Ae.Item,{className:"flex-1 min-w-0"},React.createElement(Ie,{className:"text-sm text-text-primary font-normal"},i)),h&&React.createElement(Ae.Item,{className:"flex-shrink-0"},React.createElement(Ye,{variant:"outline",size:"sm",icon:React.createElement(sc,{className:"size-4"}),onClick:function(e){return function(e,t){e.stopPropagation(),o&&"function"==typeof o&&o(t)}(e,t)},disabled:v,title:v?(0,l.__)("All lessons in this module are already complete","sureforms"):void 0},(0,l.__)("Mark All as Done","sureforms")))))))),b&&React.createElement(Ae.Item,null,React.createElement("div",{className:"px-4 sm:px-6 pb-4 sm:pb-6 pt-0"},React.createElement(Ae,{containerType:"flex",direction:"column",gap:"sm"},d.map((function(e){return React.createElement(Ae.Item,{key:e.id},React.createElement(Ap,{lesson:e,moduleId:t,isExpanded:f===e.id,onToggle:function(){return t=e.id,void m((function(e){return e===t?null:t}));var t},onCompletionChange:r,latestFormId:s}))})))))))})))};var Dp=function(){return React.createElement("div",{className:"p-4 sm:p-6 flex items-center gap-4 flex-wrap sm:flex-nowrap"},React.createElement(Nf,{variant:"rectangular",className:"w-6 h-6 bg-background-secondary rounded"}),React.createElement("div",{className:"flex-1 min-w-0"},React.createElement(Nf,{variant:"rectangular",className:"w-48 h-6 bg-background-secondary rounded"})),React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Nf,{variant:"rectangular",className:"w-24 h-4 bg-background-secondary rounded"}),React.createElement(Nf,{variant:"rectangular",className:"w-32 h-2 bg-background-secondary rounded"})),React.createElement(Nf,{variant:"rectangular",className:"w-36 h-9 bg-background-secondary rounded"}))},_p=function(e){var t=e.lessonCount,n=void 0===t?4:t;return React.createElement("div",{className:"bg-background-primary rounded-xl shadow-sm border border-solid border-border-strong"},React.createElement(Dp,null),React.createElement("div",{className:"px-4 sm:px-6 pb-4 sm:pb-6 flex flex-col gap-3"},React.createElement("div",{className:"border border-solid border-border-subtle rounded-lg"},React.createElement("div",{className:"p-4 flex items-center gap-3"},React.createElement(Nf,{variant:"circular",className:"w-6 h-6 bg-background-secondary"}),React.createElement("div",{className:"flex-1"},React.createElement(Nf,{variant:"rectangular",className:"w-2/3 h-5 bg-background-secondary rounded"})),React.createElement(Nf,{variant:"rectangular",className:"w-20 h-6 bg-background-secondary rounded hidden sm:block"}),React.createElement(Nf,{variant:"rectangular",className:"w-6 h-6 bg-background-secondary rounded"})),React.createElement("div",{className:"p-4 pt-0 flex flex-col gap-4"},React.createElement(Nf,{variant:"rectangular",className:"w-full h-48 sm:h-64 bg-background-secondary rounded-lg"}),React.createElement(Nf,{variant:"rectangular",className:"w-full h-4 bg-background-secondary rounded"}),React.createElement(Nf,{variant:"rectangular",className:"w-3/4 h-4 bg-background-secondary rounded"}),React.createElement("div",{className:"flex flex-col gap-3 mt-2"},React.createElement(Nf,{variant:"rectangular",className:"w-full h-10 bg-background-secondary rounded"}),React.createElement(Nf,{variant:"rectangular",className:"w-full h-10 bg-background-secondary rounded"})))),Array(n-1).fill(0).map((function(e,t){return React.createElement("div",{key:"lesson-skeleton-".concat(t),className:"border border-solid border-border-subtle rounded-lg p-4 flex items-center gap-3"},React.createElement(Nf,{variant:"circular",className:"w-6 h-6 bg-background-secondary"}),React.createElement("div",{className:"flex-1"},React.createElement(Nf,{variant:"rectangular",className:"w-2/3 h-5 bg-background-secondary rounded"})),React.createElement(Nf,{variant:"rectangular",className:"w-20 h-6 bg-background-secondary rounded hidden sm:block"}),React.createElement(Nf,{variant:"rectangular",className:"w-6 h-6 bg-background-secondary rounded"}))}))))},Vp=function(){return React.createElement("div",{className:"bg-background-primary rounded-xl shadow-sm border border-solid border-border-subtle"},React.createElement(Dp,null))};const Fp=function(){return React.createElement("div",{className:"flex flex-col gap-4"},React.createElement(_p,{lessonCount:6}),React.createElement(Vp,null),React.createElement(Vp,null))};function zp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Up=function(e){var t=e.modules,n=void 0===t?[]:t,r=e.endpoints,o=void 0===r?null:r,s=e.className,i=void 0===s?"":s,l=e.onProgressChange,c=zp((0,a.useState)([]),2),u=c[0],d=c[1],f=zp((0,a.useState)(!1),2),m=f[0],p=f[1],h=zp((0,a.useState)(null),2),g=h[0],y=h[1],v=zp((0,a.useState)(void 0),2),b=v[0],w=v[1],x=(0,a.useCallback)((function(){De()({path:"/wp/v2/sureforms_form?per_page=1&orderby=date&order=desc&status=any"}).then((function(e){w((null==e?void 0:e.length)>0?e[0].id:null)})).catch((function(){}))}),[]);(0,a.useEffect)((function(){x()}),[x]),(0,a.useEffect)((function(){var e=function(){"visible"===document.visibilityState&&x()};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[x]),(0,a.useEffect)((function(){if(null!=o&&o.get){var e=new AbortController;return p(!0),y(null),De()({path:o.get,signal:e.signal}).then((function(e){d(e),p(!1)})).catch((function(e){"AbortError"!==e.name&&(y(e.message||"Failed to load modules"),p(!1))})),function(){e.abort()}}}),[null==o?void 0:o.get]);var k=null!=o&&o.get?u:n,E=Yl({initialModules:k,saveEndpoint:null==o?void 0:o.set}),R=E.modules,S=E.updateLessonCompletion,C=E.markAllComplete,P=E.firstIncompleteModuleId,T=E.progressStats;return(0,a.useEffect)((function(){l&&"function"==typeof l&&R.length>0&&l(T)}),[T,l,R]),m?React.createElement("div",{className:i},React.createElement(Fp,null)):g?React.createElement("div",{className:i},React.createElement("div",{className:"text-error p-4"},g)):R&&0!==R.length?React.createElement("div",{className:i},React.createElement(Op,{modules:R,defaultValue:P,onLessonCompletionChange:S,onMarkAllComplete:C,latestFormId:b}),React.createElement(Hl,{position:"top-right",design:"stack",theme:"light",autoDismiss:!0,dismissAfter:5e3})):null};var Hp=["className"];function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$p.apply(null,arguments)}const Wp=function(e){var t,n=e.className,r=void 0===n?"block":n,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Hp);return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url},React.createElement("svg",$p({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},o),React.createElement("path",{d:"M24 0H0V24H24V0Z",fill:"#D54407"}),React.createElement("path",{d:"M6.8501 5.14209H17.1358V8.57068H8.56439L6.8501 10.285V8.57068V5.14209Z",fill:"white"}),React.createElement("path",{d:"M6.8501 10.2866H15.4215V13.7152H8.56439L6.8501 15.4294V13.7152V10.2866Z",fill:"white"}),React.createElement("path",{d:"M6.8501 15.4272H11.9929V18.8558H6.8501V15.4272Z",fill:"white"})))};function qp(e){return qp="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},qp(e)}var Gp=["selector"];function Kp(){Kp=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var s=n&&n.prototype instanceof f?n:f,i=Object.create(s.prototype);return l(i,"_invoke",function(t,n,r){var o=1;return function(s,i){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===s)throw i;return{value:e,done:!0}}for(r.method=s,r.arg=i;;){var a=r.delegate;if(a){var l=x(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new R(o||[])),!0),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function m(){}function p(){}var h={};l(h,s,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==n&&r.call(y,s)&&(h=y);var v=p.prototype=f.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,s,i,a){var l=u(e[o],e,s);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==qp(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function s(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(s,s):s()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var s=u(o,t.i,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,d;var i=s.arg;return i?i.done?(n[t.r]=i.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function k(e){this.tryEntries.push(e)}function E(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function R(e){this.tryEntries=[[-1]],e.forEach(k,this),this.reset(!0)}function S(t){if(null!=t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(qp(t)+" is not iterable")}return m.prototype=p,l(v,"constructor",p),l(p,"constructor",m),m.displayName=l(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,s){void 0===s&&(s=Promise);var i=new w(c(e,n,r,o),s);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(v),l(v,a,"Generator"),l(v,s,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=S,R.prototype={constructor:R,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){i.type="throw",i.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],i=s[4],a=this.prev,l=s[1],c=s[2];if(-1===s[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=s[0]&&s[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var s=o?o[4]:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;E(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:S(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function Yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zp(e,t,n){return(t=function(e){var t=function(e){if("object"!=qp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jp(e,t,n,r,o,s,i){try{var a=e[s](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Qp(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function i(e){Jp(s,r,o,i,a,"next",e)}function a(e){Jp(s,r,o,i,a,"throw",e)}i(void 0)}))}}var eh=function(){return eh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eh.apply(this,arguments)},th=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))},nh=function(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},rh={rssFeedURL:"",selector:"",uniqueKey:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"…",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},oh=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),sh.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new ih(this),this.RSS_View_Instance=new ah(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector","uniqueKey"].forEach((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var n=e[t];Array.isArray(n)&&n.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,n;this.args=eh(eh(eh({},rh),e),{viewAll:eh(eh({},rh.viewAll),null==e?void 0:e.viewAll),triggerButton:eh(eh({},rh.triggerButton),null==e?void 0:e.triggerButton),flyout:eh(eh(eh({},rh.flyout),null==e?void 0:e.flyout),{innerContent:eh(eh({},rh.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:eh(eh({},rh.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return th(this,void 0,void 0,(function(){var e=this;return nh(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){return th(e,[t],void 0,(function(e){var t,n=e.key;return nh(this,(function(e){switch(e.label){case 0:return t=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return t=e.sent(),[3,3];case 2:t=sh.getLastPostUnixTime(n),e.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+t:this.lastPostUnixTime=+t,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(n){var r=t[n];if(r.length){e.multiNotificationCount[n]=0;var o=+r[0].date,s=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>s&&(r.forEach((function(t){t.date>s&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))})).catch(console.error)];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),n=document.getElementById(this.RSS_View_Instance.getFlyoutID()),r=n.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),s=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),i=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var s=o[t];if(s.length){var i=+s[0].date,a=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;s.forEach((function(n){var o=!!a&&n.date>a,s=e.getArgs().flyout.innerContent.titleLink?'<a href="'.concat(n.postLink,'" target="_blank">\n\t\t\t\t\t\t\t\t<h2>').concat(n.title,"</h2>\n\t\t\t\t\t\t\t</a>"):"<h2>".concat(n.title,"</h2>"),i='\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>'.concat(e.RSS_View_Instance.formatDate(new Date(n.date)),"</p>\n\t\t\t\t\t\t\t\t\t").concat(s,"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(n.description,n.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(n.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),r.innerHTML+=e.RSS_View_Instance.innerContentWrapper(i,o,l.join(" "))})),e.getArgs().viewAll.link&&(r.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t<a href="'.concat(e.getArgs().viewAll.link,'" class="button view-all">').concat(e.getArgs().viewAll.label,"</a>\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),n.classList.add("ready"),e.getArgs().flyout.onReady(e),n.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=i,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(i,t):sh.setLastPostUnixTime(i,t)))}})).catch(console.error)};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),n.classList.remove("closed"),n.classList.add("open"),n.removeAttribute("style"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),e.isMultiFeedRSS()){var r=s.querySelectorAll("button");r.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(n){n.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var n=t[o][0].date;e.multiLastPostUnixTime[o]=n,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(n,o):sh.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})).catch(console.error),r.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,n=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(n).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),i(o)}))})),r[0].click()}else i(null)}));var a=function(){n.classList.add("closed"),n.classList.remove("open"),n.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),r.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.contains("open")&&a()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",a),o.addEventListener("click",a)},e}(),sh=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;var r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),ih=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse(sh.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return th(this,void 0,void 0,(function(){var e,t=this;return nh(this,(function(n){switch(n.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return th(t,void 0,void 0,(function(){var t,n,r=this;return nh(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/»/g,"&raquo;"),n=new DOMParser,n.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var n,o=t.querySelector("title").textContent,s=t.querySelector("link").textContent,i=t.querySelector("content\\:encoded, encoded"),a=i?i.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:s,description:a.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),sh.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),ah=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e,t=this.RSS.getArgs().triggerButton.label;e=t?"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t').concat(t,"\n\t\t\t</a>\n\t\t\t").concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"):"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"),this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('<nav id="'.concat(this.getFlyoutMultiFeedNavID(),'" class="whats-new-rss-multi-feed-nav">')),this.RSS.getRSSFeedURLs().forEach((function(e){t.push('<button type="button" data-feed-key="'.concat(e.key,'">\n\t\t\t\t\t\t').concat(e.label,'\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t'))})),t.push("</nav>"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility: hidden;"),n.innerHTML='\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>'.concat(this.RSS.getArgs().flyout.title,'</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="').concat(this.getFlyoutCloseBtnID(),'">').concat(this.RSS.getArgs().flyout.closeBtnIcon,"</button>\n\t\t\t</div>\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t<div class="'.concat(r.join(" "),'">\n\t\t\t').concat(t?'<small class="new-post-badge">New ✨</small>':"","\n\t\t\t").concat(e,"\n\t\t</div>\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,s=n.readMore;if(!r)return e;var i=e.replace(/<[^>]*>/g,"").split(/\s+/),a=i.slice(0,r).join(" ");return o&&(a+=o),r>i.length?e:t&&(null==s?void 0:s.label)?"<p>".concat(a,' <a href="').concat(t,'" target="_blank" class="').concat(s.className,'">').concat(s.label,"</a></p>"):"<p>".concat(a,"</p>")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),s=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">'.concat(e.post_title,'</h4>\n\t\t\t\t\t<span class="sub-version-date">').concat(t.formatDate(new Date(e.post_date)),'</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">').concat(n.documentElement.textContent,"</div>\n\t\t\t"),s.appendChild(r)})),o.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',r.appendChild(o),r.appendChild(s),s.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,s=24*o,i=7*s,a=30*s;if(r<6e4)return"Just now";if(r<o){var l=Math.floor(r/6e4);return"".concat(l," minute").concat(l>1?"s":""," ago")}if(r<s){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<i){var u=Math.floor(r/s);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<a){var d=Math.floor(r/i);return"".concat(d," week").concat(d>1?"s":""," ago")}var f=Math.floor(r/a);return"".concat(f," month").concat(f>1?"s":""," ago")},e}();function lh(){return ch.apply(this,arguments)}function ch(){return(ch=Qp(Kp().mark((function e(){return Kp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",'.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}');case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uh(){return(uh=Qp(Kp().mark((function e(){var t,n;return Kp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="whats-new-rss-styles",document.getElementById(t)){e.next=8;break}return(n=document.createElement("style")).id=t,e.next=6,lh();case 6:n.innerHTML=e.sent,document.head.appendChild(n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const dh=function(e){var t=e.selector,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Gp),r=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e;return function(){uh.apply(this,arguments)}(),r.current||(r.current=(e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xp(Object(n),!0).forEach((function(t){Zp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selector:t},n),new oh(e))),function(){r.current&&"function"==typeof r.current.destroy&&r.current.destroy()}}),[t].concat(function(e){return function(e){if(Array.isArray(e))return Yp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.values(n)))),r.current},fh=({children:e,gap:t="lg",className:n,...r})=>(0,c.jsx)("div",{className:le("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",ue(t),n),...r,children:e});fh.displayName="Topbar";const mh=({gap:e="sm",children:t,className:n})=>(0,c.jsx)("div",{className:le("flex items-center",ue(e),n),children:t});mh.displayName="Topbar.Left";const ph=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,c.jsx)("div",{className:le("flex items-center grow",ue(e),o,r),children:t})};ph.displayName="Topbar.Middle";const hh=({gap:e="sm",children:t,className:n})=>(0,c.jsx)("div",{className:le("flex items-center",ue(e),n),children:t});hh.displayName="Topbar.Right";const gh=({children:e,className:t})=>(0,c.jsx)("div",{className:le("flex items-center [&>svg]:block h-full",t),children:e});gh.displayName="Topbar.Item",fh.Left=mh,fh.Middle=ph,fh.Right=hh,fh.Item=gh;const yh=(0,u.createContext)({}),vh=yh.Provider,bh=()=>(0,u.useContext)(yh),wh=(e,t,n)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const r=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),s=n?r?.x-o?.x+r?.width/2:o?.width-(o?.right-r?.x)+r?.width/2,i=r?.y-o?.y+r?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${s}px ${i}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${r?.width/2}px at ${s}px ${i}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},xh=e=>(0,c.jsx)(zl.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),kh=({className:e})=>{const{toggleOpen:t,setTriggerRef:n}=bh();return(0,c.jsx)(Ye,{ref:n,className:le("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu",icon:(0,c.jsxs)(zl.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,c.jsx)(xh,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,c.jsx)(xh,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,c.jsx)(xh,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},Eh={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},Rh=({tag:e="a",active:t,icon:n,iconPosition:r="left",className:o,children:s,...i})=>{let a=null,l=null;const d=n&&(0,u.isValidElement)(n)?(0,u.cloneElement)(n,{key:"left-icon",className:le("size-5",t?"text-brand-800":"text-icon-secondary",n.props?.className??"")}):null;switch(r){case"left":a=d;break;case"right":l=d;break;default:a=null,l=null}return(0,c.jsx)(Ch,{children:(0,c.jsxs)(e,{className:le("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...i,children:[!!a&&a,(0,c.jsx)("span",{className:"contents",children:s}),!!l&&l]})})},Sh={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},Ch=({children:e})=>(0,c.jsx)(zl.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:Sh,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),Ph=({children:e,className:t})=>{const{triggerRef:n,triggerOnRight:r,triggerOnLeft:o}=bh(),[s,i]=(0,u.useState)(null);return n?(0,c.jsxs)(zl.div,{ref:i,className:le("absolute top-0 bottom-0 w-80 h-screen",r?"right-0":"left-0",t),children:[s&&(0,c.jsx)(zl.div,{className:le("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",r?"right-0":"left-0"),variants:wh(n,s,o??!1)}),(0,c.jsx)(zl.ul,{variants:Eh,className:le("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},Th=({className:e,children:t})=>{const[n,r]=function(...e){const t=(0,u.useRef)(0),[n,r]=(0,u.useState)(e[t.current]);return[n,(0,u.useCallback)((n=>{t.current="number"!=typeof n?((e,t,n)=>{const r=t-0;return((n-0)%r+r)%r+0})(0,e.length,t.current+1):n,r(e[t.current])}),[e.length,...e])]}(!1,!0),[o,s]=(0,u.useState)(null),i=(0,u.useRef)(null),{height:a}=(e=>{const t=(0,u.useRef)({width:0,height:0});return(0,u.useEffect)((()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)}),[]),t.current})(i),{isRight:l=!1,isLeft:d=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),n=window.innerWidth,r=n/2,o=t.right<r,s=t.left>r;return{isLeft:o,isRight:s,isCenter:!o&&!s,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:n,center:r}}})(o);return(0,c.jsx)(vh,{value:{isOpen:n,toggleOpen:r,setTriggerRef:e=>{(0,u.startTransition)((()=>{s(e)}))},triggerRef:o,triggerOnRight:l,triggerOnLeft:d},children:(0,c.jsx)("div",{className:le("size-6 z-[1]",e),children:(0,c.jsx)(zl.nav,{className:"h-full",initial:!1,animate:n?"open":"closed",custom:a,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:i,children:t})})})};Th.displayName="HamburgerMenu",kh.displayName="HamburgerMenu.Toggle",Ph.displayName="HamburgerMenu.Options",Rh.displayName="HamburgerMenu.Option",Th.Options=Ph,Th.Option=Rh,Th.Toggle=kh;const jh=ec("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),Nh=ec("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Ah=ec("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),Mh=ec("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Lh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ih(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ih(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Oh="srfm_upgrade_notice_seen";const Dh=function(e){var t=e.onClose,n=Lh((0,a.useState)(!0),2),r=n[0],o=n[1],s=Lh((0,a.useState)(!1),2),i=s[0],c=s[1];return(0,a.useEffect)((function(){var e,t;e=Oh,2===(t="; ".concat(document.cookie).split("; ".concat(e,"="))).length&&t.pop().split(";").shift()||c(!0)}),[]),i&&r?React.createElement(Ae,{className:"relative bg-brand-background-hover-100 p-2 text-xs text-center w-full gap-1",align:"center"},React.createElement("p",{className:"text-text-primary w-full mx-7 lg:mx-0"},React.createElement("span",{className:" font-semibold text-xs"},(0,l.__)("Ready to go beyond free plan?","sureforms"))," ",React.createElement(Ye,{tag:"a",variant:"link",className:"p-0 [&>span]:p-0 underline underline-offset-2 font-normal",size:"xs",onClick:function(){var e,t;return window.open(Pp((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-upgrade-notice-cta"),"_blank","noreferrer")}},(0,l.__)("Upgrade now","sureforms"))," ",React.createElement("span",{className:"font-normal text-xs"},(0,l.__)("and unlock the full power of SureForms!","sureforms"))),React.createElement(Ae.Item,{className:"absolute right-2 inset-y-0 inline-flex items-center"},React.createElement(Ye,{variant:"ghost",size:"xs",className:"p-1 hover:bg-transparent",icon:React.createElement(Mh,{className:"size-4"}),onClick:function(){var e,n;o(!1),e=Oh,(n=new Date).setTime(n.getTime()+864e6),document.cookie="".concat(e,"=").concat("true","; expires=").concat(n.toUTCString(),"; path=/"),"function"==typeof t&&t()}}))):null};function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(null,arguments)}const Vh=function(e){var t;return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url,className:"inline-flex"},React.createElement("svg",_h({width:"120",height:"20",viewBox:"0 0 120 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),React.createElement("g",{clipPath:"url(#clip0_22722_181577)"},React.createElement("mask",{id:"mask0_22722_181577",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"120",height:"20"},React.createElement("path",{d:"M120 0H0V20H120V0Z",fill:"white"})),React.createElement("g",{mask:"url(#mask0_22722_181577)"},React.createElement("path",{d:"M20 0H0V20H20V0Z",fill:"#D54407"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.6665 13.8361L27.4936 12.6205C27.8732 13.0586 28.3781 13.4272 29.0083 13.7265C29.6384 14.0258 30.3009 14.1754 30.9956 14.1754C31.7905 14.1754 32.41 14.0039 32.8539 13.6608C33.3051 13.3177 33.5308 12.8688 33.5308 12.3139C33.5308 11.9635 33.409 11.6678 33.1655 11.4269C32.922 11.186 32.6069 10.9998 32.2202 10.8684C31.8334 10.7371 31.4073 10.6166 30.9419 10.5071C30.4764 10.3976 30.0073 10.2698 29.5347 10.1238C29.0692 9.97782 28.6431 9.79894 28.2564 9.58725C27.8696 9.3755 27.5545 9.07619 27.311 8.68932C27.0675 8.29507 26.9458 7.82788 26.9458 7.28763C26.9458 6.39694 27.2967 5.65602 27.9986 5.06469C28.7004 4.46606 29.6636 4.16675 30.8882 4.16675C32.5066 4.16675 33.8172 4.69237 34.8198 5.74362L34.0571 6.90438C33.7276 6.49557 33.2836 6.16704 32.7251 5.91882C32.1736 5.66332 31.5613 5.53556 30.8882 5.53556C30.1792 5.53556 29.6098 5.69982 29.1801 6.02833C28.7505 6.34957 28.5356 6.75469 28.5356 7.24382C28.5356 7.55775 28.6574 7.82419 28.9009 8.04325C29.1443 8.25494 29.4559 8.42282 29.8354 8.54694C30.2221 8.66375 30.6483 8.77688 31.1138 8.88644C31.5864 8.98863 32.0554 9.11638 32.5209 9.26969C32.9936 9.42301 33.4197 9.61275 33.7993 9.83913C34.186 10.0581 34.5011 10.3757 34.7446 10.7918C34.9881 11.2079 35.1098 11.7007 35.1098 12.2701C35.1098 13.2191 34.7446 14.0039 34.0141 14.6244C33.2908 15.2377 32.2703 15.5443 30.9526 15.5443C29.1694 15.5443 27.7408 14.9749 26.6665 13.8361ZM36.9153 12.0839V4.44051H38.5589V11.5693C38.5589 12.4745 38.763 13.1133 39.1712 13.4856C39.5794 13.8506 40.1738 14.0331 40.9544 14.0331C41.5703 14.0331 42.1647 13.8761 42.7376 13.5623C43.3104 13.2483 43.7581 12.8614 44.0803 12.4015V4.44051H45.7346V15.2706H44.0803V13.7484C43.6363 14.2594 43.0813 14.6865 42.4153 15.0296C41.7493 15.3727 41.0439 15.5443 40.2991 15.5443C38.0433 15.5443 36.9153 14.3908 36.9153 12.0839ZM48.1524 15.2706H49.796V7.60519C50.0395 7.15988 50.4584 6.762 51.0529 6.41163C51.6473 6.05388 52.1987 5.87502 52.7071 5.87502C52.8718 5.87502 53.0831 5.88962 53.3409 5.91882V4.18865C52.6534 4.18865 52.0053 4.37116 51.3966 4.73617C50.7878 5.09389 50.2544 5.57206 49.796 6.17069V4.44051H48.1524V15.2706ZM53.9111 9.83913C53.9111 8.80244 54.1331 7.85344 54.5771 6.992C55.0283 6.12324 55.6549 5.437 56.457 4.93329C57.2591 4.42226 58.1578 4.16675 59.1533 4.16675C60.1988 4.16675 61.1119 4.42591 61.8925 4.94424C62.6731 5.46255 63.2606 6.15974 63.6543 7.03575C64.0549 7.9045 64.2556 8.88638 64.2556 9.98144V10.4085H55.6728C55.7373 11.4744 56.1096 12.365 56.79 13.0804C57.4775 13.7959 58.3726 14.1536 59.4755 14.1536C60.0986 14.1536 60.6966 14.0331 61.2694 13.7922C61.8496 13.5513 62.3544 13.2083 62.7843 12.7629L63.5681 13.8579C62.4439 14.9821 61.0368 15.5443 59.3466 15.5443C57.7568 15.5443 56.4534 15.015 55.4365 13.9565C54.4196 12.8979 53.9111 11.5255 53.9111 9.83913ZM55.6513 9.14925H62.6231C62.6162 8.73313 62.5406 8.32063 62.3974 7.91182C62.2613 7.503 62.0573 7.11969 61.7851 6.762C61.5129 6.40432 61.1477 6.11594 60.6894 5.89693C60.2311 5.67062 59.7118 5.55746 59.1318 5.55746C58.5875 5.55746 58.0934 5.66696 57.6494 5.88597C57.2054 6.10498 56.8437 6.39338 56.5644 6.75107C56.2923 7.1015 56.0774 7.48475 55.9199 7.90082C55.7623 8.30969 55.6728 8.72582 55.6513 9.14925Z",fill:"#030712"}),React.createElement("path",{d:"M68.2325 15.6356H65.9331V4.63989H73.5762V6.70057H68.2325V9.00851H73.4625V11.0692H68.2325V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M80.3168 15.8336C77.0462 15.8336 74.6655 13.4597 74.6655 10.1462C74.6655 6.83263 77.0462 4.45874 80.3168 4.45874C83.5712 4.45874 85.9518 6.83263 85.9518 10.1462C85.9518 13.4597 83.5712 15.8336 80.3168 15.8336ZM80.3168 13.7564C82.3087 13.7564 83.5874 12.1904 83.5874 10.1462C83.5874 8.08551 82.3087 6.53588 80.3168 6.53588C78.3087 6.53588 77.0299 8.08551 77.0299 10.1462C77.0299 12.1904 78.3087 13.7564 80.3168 13.7564Z",fill:"#030712"}),React.createElement("path",{d:"M96.3254 15.6356H93.6698L91.5486 11.7286H89.8648V15.6356H87.5654V4.63989H92.6173C94.8679 4.63989 96.2604 6.14006 96.2604 8.18426C96.2604 10.113 95.0461 11.1681 93.8804 11.4483L96.3254 15.6356ZM92.2936 9.66789C93.2004 9.66789 93.8967 9.10739 93.8967 8.16776C93.8967 7.26107 93.2004 6.70057 92.2936 6.70057H89.8648V9.66789H92.2936Z",fill:"#030712"}),React.createElement("path",{d:"M109.678 15.6356H107.362V7.70614L104.318 15.6356H103.314L100.27 7.70614V15.6356H97.9707V4.63989H101.193L103.816 11.5143L106.439 4.63989H109.678V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M115.676 15.8335C113.588 15.8335 112.098 15.1246 111.078 14.086L112.341 12.2562C113.102 13.0639 114.284 13.7563 115.774 13.7563C117.053 13.7563 117.652 13.1793 117.652 12.5364C117.652 10.6241 111.434 11.9594 111.434 7.82163C111.434 5.99175 112.989 4.4751 115.531 4.4751C117.247 4.4751 118.672 5.00263 119.741 6.00823L118.462 7.75569C117.588 6.93138 116.421 6.55225 115.32 6.55225C114.349 6.55225 113.798 6.98088 113.798 7.64025C113.798 9.37125 120 8.20075 120 12.3056C120 14.3168 118.575 15.8335 115.676 15.8335Z",fill:"#030712"}))),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_22722_181577"},React.createElement("rect",{width:"120",height:"20",fill:"white"})))))},Fh=ze("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),zh=ze("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Bh={sm:{text:"text-sm",separator:"text-sm",separatorIconSize:16},md:{text:"text-base",separator:"text-base",separatorIconSize:18}},Uh=(0,u.createContext)({sizes:Bh.sm}),Hh=({children:e,size:t="sm"})=>{const n=Bh[t]||Bh.sm;return(0,c.jsx)(Uh.Provider,{value:{sizes:n},children:(0,c.jsx)("nav",{className:"flex m-0","aria-label":"Breadcrumb",children:(0,c.jsx)("ul",{className:"m-0 inline-flex items-center space-x-1 md:space-x-1",children:e})})})};Hh.displayName="Breadcrumb";const $h=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});$h.displayName="Breadcrumb.List";const Wh=({children:e})=>(0,c.jsx)("li",{className:"m-0 inline-flex items-center gap-2",children:e});Wh.displayName="Breadcrumb.Item";const qh=({href:e,children:t,className:n,as:r="a",...o})=>{const{sizes:s}=(0,u.useContext)(Uh);return(0,c.jsx)(r,{href:e,className:le(s.text,"px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline","focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm","transition-all duration-200",n),...o,children:t})};qh.displayName="Breadcrumb.Link";const Gh=({type:e})=>{const{sizes:t}=(0,u.useContext)(Uh),n={slash:(0,c.jsx)("span",{className:le("mx-1",t.separator),children:"/"}),arrow:(0,c.jsx)(Fh,{size:t.separatorIconSize})};return(0,c.jsx)("li",{role:"separator",className:"flex items-center text-text-tertiary mx-2 p-0 list-none","aria-hidden":"true",children:n[e]||n.arrow})};Gh.displayName="Breadcrumb.Separator";const Kh=()=>{const{sizes:e}=(0,u.useContext)(Uh);return(0,c.jsx)(zh,{className:"mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary",size:e.separatorIconSize+4})};Kh.displayName="Breadcrumb.Ellipsis";const Yh=({children:e})=>{const{sizes:t}=(0,u.useContext)(Uh);return(0,c.jsx)("span",{className:le(t.text,"font-medium text-text-primary"),children:e})};Yh.displayName="Breadcrumb.Page",Hh.List=$h,Hh.Item=Wh,Hh.Link=qh,Hh.Separator=Gh,Hh.Ellipsis=Kh,Hh.Page=Yh;const Xh=function(e){var t=e.options;return React.createElement(Hh,null,React.createElement(Hh.List,null,t.map((function(e,t){switch(e.type){case"separator":return React.createElement(Hh.Separator,{key:t});case"ellipsis":return React.createElement(Hh.Item,{key:t},React.createElement(Hh.Ellipsis,null));case"page":return React.createElement(Hh.Item,{key:t},React.createElement(Hh.Page,null,e.text));default:return React.createElement(Hh.Item,{key:t},React.createElement(Hh.Link,null==e?void 0:e.linkProps,e.text))}}))))};var Zh=["title","content","placement","arrow","interactive","portalId","children"];function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(null,arguments)}const Qh=function(e){var t=e.title,n=e.content,r=e.placement,o=void 0===r?"bottom":r,s=e.arrow,i=void 0===s||s,a=e.interactive,l=void 0!==a&&a,c=e.portalId,u=void 0===c?"srfm-settings-container":c,d=e.children,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Zh);return d?React.createElement(pf,Jh({title:t,content:n,placement:o,arrow:i,interactive:l,tooltipPortalId:u},f),d):null};function eg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||tg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tg(e,t){if(e){if("string"==typeof e)return ng(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ng(e,t):void 0}}function ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rg=srfm_admin,og=rg.site_url,sg=void 0===og?"":og,ig=rg.is_pro_active,ag=void 0!==ig&&ig,lg=rg.additional_header_nav_items,cg=void 0===lg?[]:lg,ug=[{slug:"sureforms_menu",text:(0,l.__)("Dashboard","sureforms"),link:"".concat(sg,"/wp-admin/admin.php?page=sureforms_menu")},{slug:"sureforms_forms",text:(0,l.__)("Forms","sureforms"),link:"".concat(sg,"/wp-admin/admin.php?page=sureforms_forms")},{slug:"sureforms_entries",text:(0,l.__)("Entries","sureforms"),link:"".concat(sg,"/wp-admin/admin.php?page=sureforms_entries")},{slug:"sureforms_payments",text:(0,l.__)("Payments","sureforms"),link:"".concat(sg,"/wp-admin/admin.php?page=sureforms_payments")}].concat(function(e){return function(e){if(Array.isArray(e))return ng(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(cg),[{slug:"sureforms_form_settings",text:(0,l.__)("Settings","sureforms"),link:"".concat(sg,"/wp-admin/admin.php?page=sureforms_form_settings&tab=general-settings")},{slug:"sureforms_learn",text:(0,l.__)("Learn","sureforms"),link:"".concat(sg,"/wp-admin/admin.php?page=sureforms_learn")}]),dg=function(e){var t=e.title,n=e.icon,r=e.onClick,o=e.children;return React.createElement(fh.Item,{className:"p-1 gap-2"},React.createElement(Qh,{title:t,placement:"bottom",className:"z-999999",portalId:"srfm-dashboard-container",variant:"dark"},o||React.createElement(Ye,{size:"xs",variant:"ghost",className:"p-0 focus:[box-shadow:none] [box-shadow:none] text-text-primary",onClick:r,icon:n})))};const fg=function(e){var t,n,r,o,s,i,c=e.breadCrumb,u=eg((0,a.useState)(null),2),d=u[0],f=u[1],m=eg((0,a.useState)((null===(t=srfm_admin)||void 0===t?void 0:t.is_license_active)||!1),2),p=m[0],h=m[1],g=(null===(n=srfm_admin)||void 0===n?void 0:n.is_first_form_created)||!1;return(0,a.useEffect)((function(){var e=new URLSearchParams(window.location.search),t=e.get("page");t||(t=e.get("post_type")),f(ug.find((function(e){return e.slug===t})))}),[]),dh({uniqueKey:"sureforms",rssFeedURL:"https://sureforms.com/whats-new/feed/",selector:"#srfm_whats_new",icon:(0,a.renderToString)(React.createElement(jh,{className:"size-4 m-1"})),flyout:{title:(0,l.__)("What's New?","sureforms")},triggerButton:{icon:(0,a.renderToString)(React.createElement(jh,{className:"size-4 m-1 text-text-primary"}))}}),(0,a.useEffect)((function(){window.addEventListener("srfm_license_status_updated",(function(e){null!=e&&e.detail&&h(e.detail.is_license_active)}))}),[]),React.createElement("div",{className:"top-8 z-[1]"},!ag&&!p&&"sureforms_menu"===(null==d?void 0:d.slug)&&g&&(null===(r=srfm_admin)||void 0===r?void 0:r.check_three_days_threshold)&&React.createElement(Dh,null),React.createElement(fh,{className:"py-0 px-4 min-h-0 h-14 gap-4 shadow-sm bg-background-primary/75 backdrop-blur-[5px]"},React.createElement(fh.Left,{className:"gap-3"},React.createElement(fh.Item,{className:"w-auto h-auto lg:hidden"},React.createElement(Th,null,React.createElement(Th.Toggle,{className:"size-6"}),React.createElement(Th.Options,null,ug.map((function(e){return React.createElement(Th.Option,{key:e.slug,active:(null==d?void 0:d.slug)===e.slug,href:e.link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_self"},e.text)})),!ag&&!p&&React.createElement(Th.Option,{href:ug[0].link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_blank",className:"text-link-primary gap-1"},(0,l.__)("Upgrade SureForms","sureforms")," ",React.createElement(Nh,{className:"!size-5"}))))),React.createElement(fh.Item,null,c?React.createElement(Vh,null):React.createElement(Wp,null)),c&&!(null==c||!c.length)&&React.createElement(fh.Item,{className:"[&_li]:m-0 -ml-1"},React.createElement(Xh,{options:c}))),React.createElement(fh.Middle,{align:"left",className:"h-full hidden lg:flex"},React.createElement(fh.Item,null,!c&&React.createElement("nav",{className:"flex items-center gap-4 h-full"},ug.map((function(e){return React.createElement("a",{className:Tp("h-full text-text-secondary text-sm font-medium no-underline px-1 content-center relative focus:outline-none hover:text-text-primary focus:[box-shadow:none]",(null==d?void 0:d.slug)===(null==e?void 0:e.slug)&&'text-text-primary before:content-[""] before:absolute before:h-px before:bg-border-interactive before:bottom-0 before:inset-x-0'),href:e.link,key:e.slug},e.text)})))),!ag&&!p&&React.createElement(fh.Item,null,React.createElement(Ye,{icon:React.createElement(Nh,{className:"!size-5"}),iconPosition:"right",variant:"link",size:"sm",className:"h-full text-link-primary text-sm font-semibold no-underline hover:no-underline hover:text-link-primary-hover px-1 content-center [box-shadow:none] focus:[box-shadow:none] focus:outline-none",onClick:function(){var e,t;return window.open(Pp((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-header-cta"),"_blank","noreferrer")}},(0,l.__)("Upgrade SureForms","sureforms")))),React.createElement(fh.Right,null,React.createElement(fh.Item,{className:"flex gap-3 items-center"},React.createElement(Ie,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(o=srfm_admin)||void 0===o?void 0:o.plugin_version),React.createElement(Xl,{label:(0,l.__)("Core","sureforms"),className:"text-text-tertiary",size:"xs",type:"rounded",variant:"neutral"}),ag&&React.createElement(React.Fragment,null,React.createElement("span",{className:"text-text-tertiary"},"|"),React.createElement(Ie,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(s=srfm_admin)||void 0===s?void 0:s.pro_plugin_version),React.createElement(Xl,{label:null===(i=srfm_admin)||void 0===i?void 0:i.pro_plugin_name.split(" ")[1],size:"xs",variant:"inverse",type:"rounded"}))),(ag||p)&&React.createElement(fh.Item,null,React.createElement(Ye,{variant:"ghost",className:"p-0 hover:bg-transparent focus:[box-shadow:none] [box-shadow:none]",onClick:function(){p||window.open("".concat(sg,"/wp-admin/admin.php?page=sureforms_form_settings&tab=account-settings"),"_self","noopener noreferrer")},icon:React.createElement(Xl,{label:p?(0,l.__)("Activated","sureforms"):(0,l.__)("Unlicensed","sureforms"),size:"xs",variant:p?"green":"red"})})),React.createElement(dg,{title:(0,l.__)("Knowledge Base","sureforms"),icon:React.createElement(Ah,{className:"size-4"}),onClick:function(){return window.open("https://sureforms.com/docs/","_blank","noopener noreferrer")}}),React.createElement(dg,{title:(0,l.__)("What’s New","sureforms")},React.createElement("div",{id:"srfm_whats_new",className:"[&>a]:p-0.5 [&>a]:pl-0"})))))},mg=({design:e="inline",theme:t="light",variant:n="neutral",className:r="",title:o="",content:s="",icon:i=null,onClose:a,action:l={label:"",onClick:()=>{},type:"link"}})=>{const u=()=>{"function"==typeof a&&a()},d={neutral:"ring-alert-border-neutral bg-alert-background-neutral",custom:"ring-alert-border-neutral bg-alert-background-neutral",info:"ring-alert-border-info bg-alert-background-info",success:"ring-alert-border-green bg-alert-background-green",warning:"ring-alert-border-warning bg-alert-background-warning",error:"ring-alert-border-danger bg-alert-background-danger"},f="bg-background-inverse ring-background-inverse",m={light:"text-icon-secondary",dark:"text-icon-inverse"},p=()=>{l?.onClick?.(u)};return"stack"===e?(0,c.jsx)("div",{className:le("flex items-center justify-start p-4 gap-2 relative ring-1 rounded-md shadow-lg","dark"===t?f:d?.[n],r),children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Je({variant:n,icon:i,theme:t})}),(0,c.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-7",children:[et({title:o,theme:t}),tt({content:s,theme:t}),l?.label&&"function"==typeof l?.onClick&&(0,c.jsx)("div",{className:"mt-2.5",children:Qe({actionLabel:l?.label,actionType:l?.type??"button",onAction:p,theme:t})})]}),(0,c.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,c.jsx)("button",{className:le("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",m[t]??m.light),onClick:()=>u(),"aria-label":"Close alert",children:(0,c.jsx)(Be,{})})})]})}):(0,c.jsxs)("div",{className:le("flex items-center justify-between p-3 gap-2 relative ring-1 rounded-lg shadow-lg","dark"===t?f:d?.[n],r),children:[(0,c.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[(0,c.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Je({variant:n,icon:i,theme:t})}),(0,c.jsxs)("p",{className:"content-start space-x-1 my-0 mr-10 px-1",children:[et({title:o,theme:t,inline:!0}),tt({content:s,theme:t,inline:!0})]})]}),(0,c.jsxs)("div",{className:"flex h-full justify-start gap-4 [&_svg]:size-4",children:[l?.label&&"function"==typeof l?.onClick&&(0,c.jsx)("div",{className:"self-center flex h-5",children:Qe({actionLabel:l?.label,actionType:l?.type??"button",onAction:p,theme:t})}),"function"==typeof a&&(0,c.jsx)("button",{className:le("self-start bg-transparent m-0 border-none p-0.5 focus:outline-none active:outline-none cursor-pointer size-5",m[t]??m.light),onClick:()=>u(),"aria-label":"Close alert",children:(0,c.jsx)(Be,{})})]})]})},pg=ec("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),hg=ec("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var gg=function(e){switch(e){case"error":return React.createElement(If,{className:"!size-6"});case"warning":return React.createElement(pg,{className:"!size-6"});case"success":return React.createElement(Af,{className:"!size-6"});default:return React.createElement(hg,{className:"!size-6"})}},yg=function(e){switch(e){case"error":return"shadow-none bg-alert-background-danger";case"warning":return"shadow-none bg-alert-background-warning";case"success":return"shadow-none bg-alert-background-success";default:return"shadow-none bg-alert-background-info"}},vg=function(e){var t=e.variant,n=void 0===t?"info":t,r=e.message,o=e.title,s=e.actions,i=void 0===s?[]:s,a=React.createElement("span",{className:"flex flex-col gap-3.5"},React.createElement("span",null,r,i.length>0&&i.map((function(e,t){return React.createElement("span",{key:t}," ",React.createElement(Ye,{onClick:function(){e.url&&("_blank"===e.target?window.open(e.url,"_blank","noopener,noreferrer"):window.location.href=e.url),e.onClick&&e.onClick()},variant:"link",size:"xs",className:"inline-flex text-link-primary p-0 [&>span]:p-0"},e.label))}))));return React.createElement(mg,{content:a,icon:gg(n),title:o||null,variant:n,className:yg(n)})};const bg=function(e){var t,n=e.currentPage,r=void 0===n?"all":n,o=(null===(t=window.srfm_admin)||void 0===t?void 0:t.notices)||[];if(!o||0===o.length)return null;var s=o.filter((function(e){return!(e.pages&&!e.pages.includes("all"))||e.pages.includes(r)}));return 0===s.length?null:React.createElement("div",{className:"flex flex-col gap-4"},s.map((function(e){return React.createElement(vg,{key:e.id,variant:e.variant||"info",message:e.message,title:e.title,actions:e.actions||[]})})))},wg=function(){var e,t;return React.createElement(Ae,{className:"h-full",direction:"column",gap:0},React.createElement(fg,null),React.createElement("main",{className:"bg-background-secondary min-h-[calc(100vh_-_8rem)]"},React.createElement("h1",{className:"sr-only"},(0,l.__)("Learn","sureforms")),(null===(e=window.srfm_admin)||void 0===e||null===(e=e.notices)||void 0===e?void 0:e.length)>0&&React.createElement("div",{className:"px-5 xl:px-8 py-4"},React.createElement(bg,{currentPage:"sureforms_menu"})),React.createElement(Ae,{className:Tp("md:p-8 sm:p-6 p-4",(null===(t=window.srfm_admin)||void 0===t||null===(t=t.notices)||void 0===t?void 0:t.length)>0&&"!pt-0"),cols:12,containerType:"grid",gap:"2xl"},React.createElement(Ae.Item,{className:"flex flex-col gap-6",colSpan:{lg:8,md:10,sm:12},colStart:{lg:3,md:2,sm:0}},React.createElement(Ae,{containerType:"flex",direction:"column",className:"gap-2"},React.createElement(Ae.Item,null,React.createElement(Le,{size:"lg",tag:"h2",title:(0,l.__)("Learn","sureforms"),className:"text-text-primary"})),React.createElement(Ae.Item,null,React.createElement(Ie,{size:"sm",variant:"help",className:"text-text-secondary"},(0,l.__)("To help you take full control and ensure success of your forms, we have outlined a few tasks and prepared a set of instructional videos. These will help you learn how to setup, customize and grow your forms.","sureforms")))),React.createElement(Up,{endpoints:{get:"/sureforms/v1/get-learn-chapters",set:"/sureforms/v1/update-learn-progress"}})))))};i()((function(){var e=document.getElementById("srfm-learn-root");e&&(0,a.createRoot)(e).render(React.createElement(wg,null))}))})();
Save
Back